From c4013594e458d2ab709ebd508c07fef2c719c2d7 Mon Sep 17 00:00:00 2001 From: BenjaminHofstetter Date: Thu, 5 Dec 2024 16:00:34 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20zazuko/r?= =?UTF-8?q?df-sketch@d195d195ba5566b6818b673a199bc879873cfd45=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/CustomJsonLdSerializer-DTOusYP8.js | 1 + assets/CustomJsonLdSerializer-DTZy0vPJ.js | 2 - assets/CustomRdfXmlParser-BnFBQjMk.js | 28 - assets/CustomRdfXmlParser-CK1Us3uO.js | 1 + assets/N3StreamParser-Bkfk54FL.js | 3 - assets/canonicalize-Bd8h0v92.js | 1 - assets/index-BMw9Z_By.js | 52 - assets/index-BOvYCoiN.js | 1 - assets/index-CZ2V_JFV.js | 1 + assets/index-CpxM9Dlb.js | 3 - .../{index-wrpfIQEt.js => index-bEMZdyV6.js} | 6 +- assets/index-d5GvA7NS.js | 5 - assets/index-jd32SyoQ.js | 1 - assets/index-keipGPtm.js | 1 - assets/{main-B94FsnA1.js => main-Bw33fkyv.js} | 2 +- assets/main-CO-45Vwa.js | 3319 ---------------- assets/{main-Rstpr1kO.js => main-CPJAraVa.js} | 2 +- assets/{main-DQofh_ad.js => main-CntB7osZ.js} | 2 +- assets/{main-DvYAR6pV.js => main-Crg7QqIq.js} | 2 +- assets/{main-V12eunPc.js => main-Dhp4ePPX.js} | 2 +- assets/{main-BIUkwmxE.js => main-DimUcN7z.js} | 2 +- assets/main-DsJMMZjG.js | 3417 +++++++++++++++++ .../{main-Cn_tAjBT.css => main-_2tfKWhP.css} | 2 +- assets/{main-iH2f1yx-.js => main-gYTlQIEk.js} | 2 +- assets/{main-BEQE4T9J.js => main-y9VuuvvT.js} | 2 +- assets/readable-BmS1kvD9.js | 1 - ...{stream-DR3nFz_Q.js => stream-DnaGyEVM.js} | 2 +- index.html | 4 +- service-worker.js | 2 +- 29 files changed, 3436 insertions(+), 3433 deletions(-) create mode 100644 assets/CustomJsonLdSerializer-DTOusYP8.js delete mode 100644 assets/CustomJsonLdSerializer-DTZy0vPJ.js delete mode 100644 assets/CustomRdfXmlParser-BnFBQjMk.js create mode 100644 assets/CustomRdfXmlParser-CK1Us3uO.js delete mode 100644 assets/N3StreamParser-Bkfk54FL.js delete mode 100644 assets/canonicalize-Bd8h0v92.js delete mode 100644 assets/index-BMw9Z_By.js delete mode 100644 assets/index-BOvYCoiN.js create mode 100644 assets/index-CZ2V_JFV.js delete mode 100644 assets/index-CpxM9Dlb.js rename assets/{index-wrpfIQEt.js => index-bEMZdyV6.js} (73%) delete mode 100644 assets/index-d5GvA7NS.js delete mode 100644 assets/index-jd32SyoQ.js delete mode 100644 assets/index-keipGPtm.js rename assets/{main-B94FsnA1.js => main-Bw33fkyv.js} (99%) delete mode 100644 assets/main-CO-45Vwa.js rename assets/{main-Rstpr1kO.js => main-CPJAraVa.js} (96%) rename assets/{main-DQofh_ad.js => main-CntB7osZ.js} (94%) rename assets/{main-DvYAR6pV.js => main-Crg7QqIq.js} (97%) rename assets/{main-V12eunPc.js => main-Dhp4ePPX.js} (99%) rename assets/{main-BIUkwmxE.js => main-DimUcN7z.js} (98%) create mode 100644 assets/main-DsJMMZjG.js rename assets/{main-Cn_tAjBT.css => main-_2tfKWhP.css} (99%) rename assets/{main-iH2f1yx-.js => main-gYTlQIEk.js} (97%) rename assets/{main-BEQE4T9J.js => main-y9VuuvvT.js} (98%) delete mode 100644 assets/readable-BmS1kvD9.js rename assets/{stream-DR3nFz_Q.js => stream-DnaGyEVM.js} (83%) diff --git a/assets/CustomJsonLdSerializer-DTOusYP8.js b/assets/CustomJsonLdSerializer-DTOusYP8.js new file mode 100644 index 0000000..9003509 --- /dev/null +++ b/assets/CustomJsonLdSerializer-DTOusYP8.js @@ -0,0 +1 @@ +import{S as e}from"./main-DsJMMZjG.js";class t extends e{constructor({...r}={}){super({encoding:"string",...r})}}export{t as default}; diff --git a/assets/CustomJsonLdSerializer-DTZy0vPJ.js b/assets/CustomJsonLdSerializer-DTZy0vPJ.js deleted file mode 100644 index 3ced4f1..0000000 --- a/assets/CustomJsonLdSerializer-DTZy0vPJ.js +++ /dev/null @@ -1,2 +0,0 @@ -import{S as hi}from"./index-BOvYCoiN.js";import{a as Ye,e as lt,b as Ie,d as $e,s as bi}from"./main-CO-45Vwa.js";var un={exports:{}},vt={exports:{}},H={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array},dn={exports:{}};(function(e){const t=Ie,{kResistStopPropagation:r,SymbolDispose:i}=H,l=globalThis.AbortSignal||Ye().AbortSignal,s=globalThis.AbortController||Ye().AbortController,d=Object.getPrototypeOf(async function(){}).constructor,g=globalThis.Blob||t.Blob,R=typeof g<"u"?function(u){return u instanceof g}:function(u){return!1},h=(c,u)=>{if(c!==void 0&&(c===null||typeof c!="object"||!("aborted"in c)))throw new ERR_INVALID_ARG_TYPE(u,"AbortSignal",c)},_=(c,u)=>{if(typeof c!="function")throw new ERR_INVALID_ARG_TYPE(u,"Function",c)};class v extends Error{constructor(u){if(!Array.isArray(u))throw new TypeError(`Expected input to be an Array, got ${typeof u}`);let m="";for(let b=0;b{c=b,u=A}),resolve:c,reject:u}},promisify(c){return new Promise((u,m)=>{c((b,...A)=>b?m(b):u(...A))})},debuglog(){return function(){}},format(c,...u){return c.replace(/%([sdifj])/g,function(...[m,b]){const A=u.shift();return b==="f"?A.toFixed(6):b==="j"?JSON.stringify(A):b==="s"&&typeof A=="object"?`${A.constructor!==Object?A.constructor.name:""} {}`.trim():A.toString()})},inspect(c){switch(typeof c){case"string":if(c.includes("'"))if(c.includes('"')){if(!c.includes("`")&&!c.includes("${"))return`\`${c}\``}else return`"${c}"`;return`'${c}'`;case"number":return isNaN(c)?"NaN":Object.is(c,-0)?String(c):c;case"bigint":return`${String(c)}n`;case"boolean":case"undefined":return String(c);case"object":return"{}"}},types:{isAsyncFunction(c){return c instanceof d},isArrayBufferView(c){return ArrayBuffer.isView(c)}},isBlob:R,deprecate(c,u){return c},addAbortListener:lt.addAbortListener||function(u,m){if(u===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",u);h(u,"signal"),_(m,"listener");let b;return u.aborted?queueMicrotask(()=>m()):(u.addEventListener("abort",m,{__proto__:null,once:!0,[r]:!0}),b=()=>{u.removeEventListener("abort",m)}),{__proto__:null,[i](){var A;(A=b)===null||A===void 0||A()}}},AbortSignalAny:l.any||function(u){if(u.length===1)return u[0];const m=new s,b=()=>m.abort();return u.forEach(A=>{h(A,"signals"),A.addEventListener("abort",b,{once:!0})}),m.signal.addEventListener("abort",()=>{u.forEach(A=>A.removeEventListener("abort",b))},{once:!0}),m.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(dn);var te=dn.exports,er={};const{format:pi,inspect:nt,AggregateError:_i}=te,yi=globalThis.AggregateError||_i,wi=Symbol("kIsNodeError"),gi=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Si=/^([A-Z][a-z0-9]*)+$/,Ei="__node_internal_",at={};function ve(e,t){if(!e)throw new at.ERR_INTERNAL_ASSERTION(t)}function Rr(e){let t="",r=e.length;const i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Ri(e,t,r){if(typeof t=="function")return ve(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return ve(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?t:pi(t,...r)}function Q(e,t,r){r||(r=Error);class i extends r{constructor(...s){super(Ri(e,t,s))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[wi]=!0,at[e]=i}function Ar(e){const t=Ei+e.name;return Object.defineProperty(e,"name",{value:t}),e}function Ai(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new yi([t,e],t.message);return r.code=t.code,r}return e||t}let mi=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new at.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};Q("ERR_ASSERTION","%s",Error);Q("ERR_INVALID_ARG_TYPE",(e,t,r)=>{ve(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";e.endsWith(" argument")?i+=`${e} `:i+=`"${e}" ${e.includes(".")?"property":"argument"} `,i+="must be ";const l=[],s=[],d=[];for(const R of t)ve(typeof R=="string","All expected entries have to be of type string"),gi.includes(R)?l.push(R.toLowerCase()):Si.test(R)?s.push(R):(ve(R!=="object",'The value "object" should be written as "Object"'),d.push(R));if(s.length>0){const R=l.indexOf("object");R!==-1&&(l.splice(l,R,1),s.push("Object"))}if(l.length>0){switch(l.length){case 1:i+=`of type ${l[0]}`;break;case 2:i+=`one of type ${l[0]} or ${l[1]}`;break;default:{const R=l.pop();i+=`one of type ${l.join(", ")}, or ${R}`}}(s.length>0||d.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const R=s.pop();i+=`an instance of ${s.join(", ")}, or ${R}`}}d.length>0&&(i+=" or ")}switch(d.length){case 0:break;case 1:d[0].toLowerCase()!==d[0]&&(i+="an "),i+=`${d[0]}`;break;case 2:i+=`one of ${d[0]} or ${d[1]}`;break;default:{const R=d.pop();i+=`one of ${d.join(", ")}, or ${R}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var g;if((g=r.constructor)!==null&&g!==void 0&&g.name)i+=`. Received an instance of ${r.constructor.name}`;else{const R=nt(r,{depth:-1});i+=`. Received ${R}`}}else{let R=nt(r,{colors:!1});R.length>25&&(R=`${R.slice(0,25)}...`),i+=`. Received type ${typeof r} (${R})`}return i},TypeError);Q("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=nt(t);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${i}`},TypeError);Q("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var i;const l=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${l}.`},TypeError);Q("ERR_MISSING_ARGS",(...e)=>{ve(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(i=>`"${i}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const i=e.pop();t+=`The ${e.join(", ")}, and ${i} arguments`}break}return`${t} must be specified`},TypeError);Q("ERR_OUT_OF_RANGE",(e,t,r)=>{ve(t,'Missing "range" argument');let i;return Number.isInteger(r)&&Math.abs(r)>2**32?i=Rr(String(r)):typeof r=="bigint"?(i=String(r),(r>2n**32n||r<-(2n**32n))&&(i=Rr(i)),i+="n"):i=nt(r),`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError);Q("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Q("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Q("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Q("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Q("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Q("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Q("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Q("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Q("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Q("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var ie={AbortError:mi,aggregateTwoErrors:Ar(Ai),hideStackFrames:Ar,codes:at};const{ArrayIsArray:tr,ArrayPrototypeIncludes:cn,ArrayPrototypeJoin:hn,ArrayPrototypeMap:vi,NumberIsInteger:rr,NumberIsNaN:Ti,NumberMAX_SAFE_INTEGER:Ii,NumberMIN_SAFE_INTEGER:$i,NumberParseInt:Ni,ObjectPrototypeHasOwnProperty:Di,RegExpPrototypeExec:bn,String:Mi,StringPrototypeToUpperCase:ki,StringPrototypeTrim:Pi}=H,{hideStackFrames:ae,codes:{ERR_SOCKET_BAD_PORT:Li,ERR_INVALID_ARG_TYPE:ee,ERR_INVALID_ARG_VALUE:Fe,ERR_OUT_OF_RANGE:Te,ERR_UNKNOWN_SIGNAL:mr}}=ie,{normalizeEncoding:Oi}=te,{isAsyncFunction:xi,isArrayBufferView:Wi}=te.types,vr={};function Ci(e){return e===(e|0)}function Fi(e){return e===e>>>0}const ji=/^[0-7]+$/,Ui="must be a 32-bit unsigned integer or an octal string";function Bi(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(bn(ji,e)===null)throw new Fe(t,e,Ui);e=Ni(e,8)}return pn(e,t),e}const Gi=ae((e,t,r=$i,i=Ii)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!rr(e))throw new Te(t,"an integer",e);if(ei)throw new Te(t,`>= ${r} && <= ${i}`,e)}),Vi=ae((e,t,r=-2147483648,i=2147483647)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!rr(e))throw new Te(t,"an integer",e);if(ei)throw new Te(t,`>= ${r} && <= ${i}`,e)}),pn=ae((e,t,r=!1)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!rr(e))throw new Te(t,"an integer",e);const i=r?1:0,l=4294967295;if(el)throw new Te(t,`>= ${i} && <= ${l}`,e)});function nr(e,t){if(typeof e!="string")throw new ee(t,"string",e)}function Hi(e,t,r=void 0,i){if(typeof e!="number")throw new ee(t,"number",e);if(r!=null&&ei||(r!=null||i!=null)&&Ti(e))throw new Te(t,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,e)}const qi=ae((e,t,r)=>{if(!cn(r,e)){const l="must be one of: "+hn(vi(r,s=>typeof s=="string"?`'${s}'`:Mi(s)),", ");throw new Fe(t,e,l)}});function _n(e,t){if(typeof e!="boolean")throw new ee(t,"boolean",e)}function Tt(e,t,r){return e==null||!Di(e,t)?r:e[t]}const Yi=ae((e,t,r=null)=>{const i=Tt(r,"allowArray",!1),l=Tt(r,"allowFunction",!1);if(!Tt(r,"nullable",!1)&&e===null||!i&&tr(e)||typeof e!="object"&&(!l||typeof e!="function"))throw new ee(t,"Object",e)}),Ki=ae((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new ee(t,"a dictionary",e)}),st=ae((e,t,r=0)=>{if(!tr(e))throw new ee(t,"Array",e);if(e.length{if(!Wi(e))throw new ee(t,["Buffer","TypedArray","DataView"],e)});function eo(e,t){const r=Oi(t),i=e.length;if(r==="hex"&&i%2!==0)throw new Fe("encoding",t,`is invalid for data of length ${i}`)}function to(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&Pi(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new Li(t,e,r);return e|0}const yn=ae((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new ee(t,"AbortSignal",e)}),ro=ae((e,t)=>{if(typeof e!="function")throw new ee(t,"Function",e)}),no=ae((e,t)=>{if(typeof e!="function"||xi(e))throw new ee(t,"Function",e)}),io=ae((e,t)=>{if(e!==void 0)throw new ee(t,"undefined",e)});function oo(e,t,r){if(!cn(r,e))throw new ee(t,`('${hn(r,"|")}')`,e)}const lo=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Tr(e,t){if(typeof e>"u"||!bn(lo,e))throw new Fe(t,e,'must be an array or string of format "; rel=preload; as=style"')}function ao(e){if(typeof e=="string")return Tr(e,"hints"),e;if(tr(e)){const t=e.length;let r="";if(t===0)return r;for(let i=0;i; rel=preload; as=style"')}var Ke={isInt32:Ci,isUint32:Fi,parseFileMode:Bi,validateArray:st,validateStringArray:zi,validateBooleanArray:Ji,validateAbortSignalArray:Xi,validateBoolean:_n,validateBuffer:Zi,validateDictionary:Ki,validateEncoding:eo,validateFunction:ro,validateInt32:Vi,validateInteger:Gi,validateNumber:Hi,validateObject:Yi,validateOneOf:qi,validatePlainFunction:no,validatePort:to,validateSignalName:Qi,validateString:nr,validateUint32:pn,validateUndefined:io,validateUnion:oo,validateAbortSignal:yn,validateLinkHeaderValue:ao},ir={exports:{}};const{SymbolAsyncIterator:Ir,SymbolIterator:$r,SymbolFor:Ne}=H,wn=Ne("nodejs.stream.destroyed"),gn=Ne("nodejs.stream.errored"),Gt=Ne("nodejs.stream.readable"),Vt=Ne("nodejs.stream.writable"),Sn=Ne("nodejs.stream.disturbed"),so=Ne("nodejs.webstream.isClosedPromise"),fo=Ne("nodejs.webstream.controllerErrorFunction");function ft(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function ut(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function uo(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function de(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function En(e){return!!(e&&!de(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function Rn(e){return!!(e&&!de(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function An(e){return!!(e&&!de(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function co(e){return En(e)||Rn(e)||An(e)}function ho(e,t){return e==null?!1:t===!0?typeof e[Ir]=="function":t===!1?typeof e[$r]=="function":typeof e[Ir]=="function"||typeof e[$r]=="function"}function dt(e){if(!de(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!!(e.destroyed||e[wn]||i!=null&&i.destroyed)}function mn(e){if(!ut(e))return null;if(e.writableEnded===!0)return!0;const t=e._writableState;return t!=null&&t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function bo(e,t){if(!ut(e))return null;if(e.writableFinished===!0)return!0;const r=e._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function po(e){if(!ft(e))return null;if(e.readableEnded===!0)return!0;const t=e._readableState;return!t||t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function vn(e,t){if(!ft(e))return null;const r=e._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function Tn(e){return e&&e[Gt]!=null?e[Gt]:typeof(e==null?void 0:e.readable)!="boolean"?null:dt(e)?!1:ft(e)&&e.readable&&!vn(e)}function In(e){return e&&e[Vt]!=null?e[Vt]:typeof(e==null?void 0:e.writable)!="boolean"?null:dt(e)?!1:ut(e)&&e.writable&&!mn(e)}function _o(e,t){return de(e)?dt(e)?!0:!((t==null?void 0:t.readable)!==!1&&Tn(e)||(t==null?void 0:t.writable)!==!1&&In(e)):null}function yo(e){var t,r;return de(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function wo(e){var t,r;return de(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function go(e){if(!de(e))return null;if(typeof e.closed=="boolean")return e.closed;const t=e._writableState,r=e._readableState;return typeof(t==null?void 0:t.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(t==null?void 0:t.closed)||(r==null?void 0:r.closed):typeof e._closed=="boolean"&&$n(e)?e._closed:null}function $n(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function Nn(e){return typeof e._sent100=="boolean"&&$n(e)}function So(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function Eo(e){if(!de(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!i&&Nn(e)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function Ro(e){var t;return!!(e&&((t=e[Sn])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function Ao(e){var t,r,i,l,s,d,g,R,h,_;return!!(e&&((t=(r=(i=(l=(s=(d=e[gn])!==null&&d!==void 0?d:e.readableErrored)!==null&&s!==void 0?s:e.writableErrored)!==null&&l!==void 0?l:(g=e._readableState)===null||g===void 0?void 0:g.errorEmitted)!==null&&i!==void 0?i:(R=e._writableState)===null||R===void 0?void 0:R.errorEmitted)!==null&&r!==void 0?r:(h=e._readableState)===null||h===void 0?void 0:h.errored)!==null&&t!==void 0?t:!((_=e._writableState)===null||_===void 0)&&_.errored))}var ye={isDestroyed:dt,kIsDestroyed:wn,isDisturbed:Ro,kIsDisturbed:Sn,isErrored:Ao,kIsErrored:gn,isReadable:Tn,kIsReadable:Gt,kIsClosedPromise:so,kControllerErrorFunction:fo,kIsWritable:Vt,isClosed:go,isDuplexNodeStream:uo,isFinished:_o,isIterable:ho,isReadableNodeStream:ft,isReadableStream:En,isReadableEnded:po,isReadableFinished:vn,isReadableErrored:wo,isNodeStream:de,isWebStream:co,isWritable:In,isWritableNodeStream:ut,isWritableStream:Rn,isWritableEnded:mn,isWritableFinished:bo,isWritableErrored:yo,isServerRequest:So,isServerResponse:Nn,willEmitClose:Eo,isTransformStream:An};const ge=$e,{AbortError:Dn,codes:mo}=ie,{ERR_INVALID_ARG_TYPE:vo,ERR_STREAM_PREMATURE_CLOSE:Nr}=mo,{kEmptyObject:Ht,once:qt}=te,{validateAbortSignal:To,validateFunction:Io,validateObject:$o,validateBoolean:No}=Ke,{Promise:Do,PromisePrototypeThen:Mo,SymbolDispose:Mn}=H,{isClosed:ko,isReadable:Dr,isReadableNodeStream:It,isReadableStream:Po,isReadableFinished:Mr,isReadableErrored:kr,isWritable:Pr,isWritableNodeStream:Lr,isWritableStream:Lo,isWritableFinished:Or,isWritableErrored:xr,isNodeStream:Oo,willEmitClose:xo,kIsClosedPromise:Wo}=ye;let We;function Co(e){return e.setHeader&&typeof e.abort=="function"}const Yt=()=>{};function kn(e,t,r){var i,l;if(arguments.length===2?(r=t,t=Ht):t==null?t=Ht:$o(t,"options"),Io(r,"callback"),To(t.signal,"options.signal"),r=qt(r),Po(e)||Lo(e))return Fo(e,t,r);if(!Oo(e))throw new vo("stream",["ReadableStream","WritableStream","Stream"],e);const s=(i=t.readable)!==null&&i!==void 0?i:It(e),d=(l=t.writable)!==null&&l!==void 0?l:Lr(e),g=e._writableState,R=e._readableState,h=()=>{e.writable||c()};let _=xo(e)&&It(e)===s&&Lr(e)===d,v=Or(e,!1);const c=()=>{v=!0,e.destroyed&&(_=!1),!(_&&(!e.readable||s))&&(!s||u)&&r.call(e)};let u=Mr(e,!1);const m=()=>{u=!0,e.destroyed&&(_=!1),!(_&&(!e.writable||d))&&(!d||v)&&r.call(e)},b=P=>{r.call(e,P)};let A=ko(e);const k=()=>{A=!0;const P=xr(e)||kr(e);if(P&&typeof P!="boolean")return r.call(e,P);if(s&&!u&&It(e,!0)&&!Mr(e,!1))return r.call(e,new Nr);if(d&&!v&&!Or(e,!1))return r.call(e,new Nr);r.call(e)},M=()=>{A=!0;const P=xr(e)||kr(e);if(P&&typeof P!="boolean")return r.call(e,P);r.call(e)},y=()=>{e.req.on("finish",c)};Co(e)?(e.on("complete",c),_||e.on("abort",k),e.req?y():e.on("request",y)):d&&!g&&(e.on("end",h),e.on("close",h)),!_&&typeof e.aborted=="boolean"&&e.on("aborted",k),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",b),e.on("close",k),A?ge.nextTick(k):g!=null&&g.errorEmitted||R!=null&&R.errorEmitted?_||ge.nextTick(M):(!s&&(!_||Dr(e))&&(v||Pr(e)===!1)||!d&&(!_||Pr(e))&&(u||Dr(e)===!1)||R&&e.req&&e.aborted)&&ge.nextTick(M);const j=()=>{r=Yt,e.removeListener("aborted",k),e.removeListener("complete",c),e.removeListener("abort",k),e.removeListener("request",y),e.req&&e.req.removeListener("finish",c),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",b),e.removeListener("close",k)};if(t.signal&&!A){const P=()=>{const J=r;j(),J.call(e,new Dn(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)ge.nextTick(P);else{We=We||te.addAbortListener;const J=We(t.signal,P),oe=r;r=qt((...B)=>{J[Mn](),oe.apply(e,B)})}}return j}function Fo(e,t,r){let i=!1,l=Yt;if(t.signal)if(l=()=>{i=!0,r.call(e,new Dn(void 0,{cause:t.signal.reason}))},t.signal.aborted)ge.nextTick(l);else{We=We||te.addAbortListener;const d=We(t.signal,l),g=r;r=qt((...R)=>{d[Mn](),g.apply(e,R)})}const s=(...d)=>{i||ge.nextTick(()=>r.apply(e,d))};return Mo(e[Wo].promise,s,s),Yt}function jo(e,t){var r;let i=!1;return t===null&&(t=Ht),(r=t)!==null&&r!==void 0&&r.cleanup&&(No(t.cleanup,"cleanup"),i=t.cleanup),new Do((l,s)=>{const d=kn(e,t,g=>{i&&d(),g?s(g):l()})})}ir.exports=kn;ir.exports.finished=jo;var Se=ir.exports;const fe=$e,{aggregateTwoErrors:Uo,codes:{ERR_MULTIPLE_CALLBACK:Bo},AbortError:Go}=ie,{Symbol:Pn}=H,{kIsDestroyed:Vo,isDestroyed:Ho,isFinished:qo,isServerRequest:Yo}=ye,Ln=Pn("kDestroy"),Kt=Pn("kConstruct");function On(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function Ko(e,t){const r=this._readableState,i=this._writableState,l=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(On(e,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),l.constructed?Wr(this,e,t):this.once(Ln,function(s){Wr(this,Uo(s,e),t)}),this)}function Wr(e,t,r){let i=!1;function l(s){if(i)return;i=!0;const d=e._readableState,g=e._writableState;On(s,g,d),g&&(g.closed=!0),d&&(d.closed=!0),typeof r=="function"&&r(s),s?fe.nextTick(zo,e,s):fe.nextTick(xn,e)}try{e._destroy(t||null,l)}catch(s){l(s)}}function zo(e,t){zt(e,t),xn(e)}function xn(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function zt(e,t){const r=e._readableState,i=e._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function Jo(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function Jt(e,t,r){const i=e._readableState,l=e._writableState;if(l!=null&&l.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||l!=null&&l.autoDestroy?e.destroy(t):t&&(t.stack,l&&!l.errored&&(l.errored=t),i&&!i.errored&&(i.errored=t),r?fe.nextTick(zt,e,t):zt(e,t))}function Xo(e,t){if(typeof e._construct!="function")return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(Kt,t),!(e.listenerCount(Kt)>1)&&fe.nextTick(Qo,e)}function Qo(e){let t=!1;function r(i){if(t){Jt(e,i??new Bo);return}t=!0;const l=e._readableState,s=e._writableState,d=s||l;l&&(l.constructed=!0),s&&(s.constructed=!0),d.destroyed?e.emit(Ln,i):i?Jt(e,i,!0):fe.nextTick(Zo,e)}try{e._construct(i=>{fe.nextTick(r,i)})}catch(i){fe.nextTick(r,i)}}function Zo(e){e.emit(Kt)}function Cr(e){return(e==null?void 0:e.setHeader)&&typeof e.abort=="function"}function Wn(e){e.emit("close")}function el(e,t){e.emit("error",t),fe.nextTick(Wn,e)}function tl(e,t){!e||Ho(e)||(!t&&!qo(e)&&(t=new Go),Yo(e)?(e.socket=null,e.destroy(t)):Cr(e)?e.abort():Cr(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?fe.nextTick(el,e,t):fe.nextTick(Wn,e),e.destroyed||(e[Vo]=!0))}var je={construct:Xo,destroyer:tl,destroy:Ko,undestroy:Jo,errorOrDestroy:Jt};const{ArrayIsArray:rl,ObjectSetPrototypeOf:Cn}=H,{EventEmitter:ct}=lt;function ht(e){ct.call(this,e)}Cn(ht.prototype,ct.prototype);Cn(ht,ct);ht.prototype.pipe=function(e,t){const r=this;function i(_){e.writable&&e.write(_)===!1&&r.pause&&r.pause()}r.on("data",i);function l(){r.readable&&r.resume&&r.resume()}e.on("drain",l),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",d),r.on("close",g));let s=!1;function d(){s||(s=!0,e.end())}function g(){s||(s=!0,typeof e.destroy=="function"&&e.destroy())}function R(_){h(),ct.listenerCount(this,"error")===0&&this.emit("error",_)}Xt(r,"error",R),Xt(e,"error",R);function h(){r.removeListener("data",i),e.removeListener("drain",l),r.removeListener("end",d),r.removeListener("close",g),r.removeListener("error",R),e.removeListener("error",R),r.removeListener("end",h),r.removeListener("close",h),e.removeListener("close",h)}return r.on("end",h),r.on("close",h),e.on("close",h),e.emit("pipe",r),e};function Xt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):rl(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}var or={Stream:ht,prependListener:Xt},Fn={exports:{}};(function(e){const{SymbolDispose:t}=H,{AbortError:r,codes:i}=ie,{isNodeStream:l,isWebStream:s,kControllerErrorFunction:d}=ye,g=Se,{ERR_INVALID_ARG_TYPE:R}=i;let h;const _=(v,c)=>{if(typeof v!="object"||!("aborted"in v))throw new R(c,"AbortSignal",v)};e.exports.addAbortSignal=function(c,u){if(_(c,"signal"),!l(u)&&!s(u))throw new R("stream",["ReadableStream","WritableStream","Stream"],u);return e.exports.addAbortSignalNoValidate(c,u)},e.exports.addAbortSignalNoValidate=function(v,c){if(typeof v!="object"||!("aborted"in v))return c;const u=l(c)?()=>{c.destroy(new r(void 0,{cause:v.reason}))}:()=>{c[d](new r(void 0,{cause:v.reason}))};if(v.aborted)u();else{h=h||te.addAbortListener;const m=h(v,u);g(c,m[t])}return c}})(Fn);var bt=Fn.exports;const{StringPrototypeSlice:Fr,SymbolIterator:nl,TypedArrayPrototypeSet:Qe,Uint8Array:il}=H,{Buffer:$t}=Ie,{inspect:ol}=te;var ll=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){const r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=t+r.data;return i}concat(t){if(this.length===0)return $t.alloc(0);const r=$t.allocUnsafe(t>>>0);let i=this.head,l=0;for(;i;)Qe(r,i.data,l),l+=i.data.length,i=i.next;return r}consume(t,r){const i=this.head.data;if(ts.length)r+=s,t-=s.length;else{t===s.length?(r+=s,++l,i.next?this.head=i.next:this.head=this.tail=null):(r+=Fr(s,0,t),this.head=i,i.data=Fr(s,t));break}++l}while((i=i.next)!==null);return this.length-=l,r}_getBuffer(t){const r=$t.allocUnsafe(t),i=t;let l=this.head,s=0;do{const d=l.data;if(t>d.length)Qe(r,d,i-t),t-=d.length;else{t===d.length?(Qe(r,d,i-t),++s,l.next?this.head=l.next:this.head=this.tail=null):(Qe(r,new il(d.buffer,d.byteOffset,t),i-t),this.head=l,l.data=d.slice(t));break}++s}while((l=l.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return ol(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:al,NumberIsInteger:sl}=H,{validateInteger:fl}=Ke,{ERR_INVALID_ARG_VALUE:ul}=ie.codes;let jn=16*1024,Un=16;function dl(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Bn(e){return e?Un:jn}function cl(e,t){fl(t,"value",0),e?Un=t:jn=t}function hl(e,t,r,i){const l=dl(t,i,r);if(l!=null){if(!sl(l)||l<0){const s=i?`options.${r}`:"options.highWaterMark";throw new ul(s,l)}return al(l)}return Bn(e.objectMode)}var pt={getHighWaterMark:hl,getDefaultHighWaterMark:Bn,setDefaultHighWaterMark:cl};const jr=$e,{PromisePrototypeThen:bl,SymbolAsyncIterator:Ur,SymbolIterator:Br}=H,{Buffer:pl}=Ie,{ERR_INVALID_ARG_TYPE:_l,ERR_STREAM_NULL_VALUES:yl}=ie.codes;function wl(e,t,r){let i;if(typeof t=="string"||t instanceof pl)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let l;if(t&&t[Ur])l=!0,i=t[Ur]();else if(t&&t[Br])l=!1,i=t[Br]();else throw new _l("iterable",["Iterable"],t);const s=new e({objectMode:!0,highWaterMark:1,...r});let d=!1;s._read=function(){d||(d=!0,R())},s._destroy=function(h,_){bl(g(h),()=>jr.nextTick(_,h),v=>jr.nextTick(_,v||h))};async function g(h){const _=h!=null,v=typeof i.throw=="function";if(_&&v){const{value:c,done:u}=await i.throw(h);if(await c,u)return}if(typeof i.return=="function"){const{value:c}=await i.return();await c}}async function R(){for(;;){try{const{value:h,done:_}=l?await i.next():i.next();if(_)s.push(null);else{const v=h&&typeof h.then=="function"?await h:h;if(v===null)throw d=!1,new yl;if(s.push(v))continue;d=!1}}catch(h){s.destroy(h)}break}}return s}var Gn=wl,Nt,Gr;function _t(){if(Gr)return Nt;Gr=1;const e=$e,{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:i,NumberParseInt:l,ObjectDefineProperties:s,ObjectKeys:d,ObjectSetPrototypeOf:g,Promise:R,SafeSet:h,SymbolAsyncDispose:_,SymbolAsyncIterator:v,Symbol:c}=H;Nt=D,D.ReadableState=he;const{EventEmitter:u}=lt,{Stream:m,prependListener:b}=or,{Buffer:A}=Ie,{addAbortSignal:k}=bt,M=Se;let y=te.debuglog("stream",n=>{y=n});const j=ll,P=je,{getHighWaterMark:J,getDefaultHighWaterMark:oe}=pt,{aggregateTwoErrors:B,codes:{ERR_INVALID_ARG_TYPE:q,ERR_METHOD_NOT_IMPLEMENTED:re,ERR_OUT_OF_RANGE:ne,ERR_STREAM_PUSH_AFTER_EOF:x,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:w},AbortError:W}=ie,{validateObject:L}=Ke,O=c("kPaused"),{StringDecoder:Y}=bi,K=Gn;g(D.prototype,m.prototype),g(D,m);const V=()=>{},{errorOrDestroy:z}=P,C=1,ce=2,N=4,X=8,se=16,ke=32,Pe=64,Le=128,Ue=256,wt=512,Be=1024,Oe=2048,a=4096,f=8192,p=16384,I=32768,$=65536,U=1<<17,G=1<<18;function F(n){return{enumerable:!1,get(){return(this.state&n)!==0},set(o){o?this.state|=n:this.state&=~n}}}s(he.prototype,{objectMode:F(C),ended:F(ce),endEmitted:F(N),reading:F(X),constructed:F(se),sync:F(ke),needReadable:F(Pe),emittedReadable:F(Le),readableListening:F(Ue),resumeScheduled:F(wt),errorEmitted:F(Be),emitClose:F(Oe),autoDestroy:F(a),destroyed:F(f),closed:F(p),closeEmitted:F(I),multiAwaitDrain:F($),readingMore:F(U),dataEmitted:F(G)});function he(n,o,S){typeof S!="boolean"&&(S=o instanceof pe()),this.state=Oe|a|se|ke,n&&n.objectMode&&(this.state|=C),S&&n&&n.readableObjectMode&&(this.state|=C),this.highWaterMark=n?J(this,n,"readableHighWaterMark",S):oe(!1),this.buffer=new j,this.length=0,this.pipes=[],this.flowing=null,this[O]=null,n&&n.emitClose===!1&&(this.state&=~Oe),n&&n.autoDestroy===!1&&(this.state&=~a),this.errored=null,this.defaultEncoding=n&&n.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,n&&n.encoding&&(this.decoder=new Y(n.encoding),this.encoding=n.encoding)}function D(n){if(!(this instanceof D))return new D(n);const o=this instanceof pe();this._readableState=new he(n,this,o),n&&(typeof n.read=="function"&&(this._read=n.read),typeof n.destroy=="function"&&(this._destroy=n.destroy),typeof n.construct=="function"&&(this._construct=n.construct),n.signal&&!o&&k(n.signal,this)),m.call(this,n),P.construct(this,()=>{this._readableState.needReadable&&Xe(this,this._readableState)})}D.prototype.destroy=P.destroy,D.prototype._undestroy=P.undestroy,D.prototype._destroy=function(n,o){o(n)},D.prototype[u.captureRejectionSymbol]=function(n){this.destroy(n)},D.prototype[_]=function(){let n;return this.destroyed||(n=this.readableEnded?null:new W,this.destroy(n)),new R((o,S)=>M(this,E=>E&&E!==n?S(E):o(null)))},D.prototype.push=function(n,o){return we(this,n,o,!1)},D.prototype.unshift=function(n,o){return we(this,n,o,!0)};function we(n,o,S,E){y("readableAddChunk",o);const T=n._readableState;let Z;if(T.state&C||(typeof o=="string"?(S=S||T.defaultEncoding,T.encoding!==S&&(E&&T.encoding?o=A.from(o,S).toString(T.encoding):(o=A.from(o,S),S=""))):o instanceof A?S="":m._isUint8Array(o)?(o=m._uint8ArrayToBuffer(o),S=""):o!=null&&(Z=new q("chunk",["string","Buffer","Uint8Array"],o))),Z)z(n,Z);else if(o===null)T.state&=~X,ni(n,T);else if(T.state&C||o&&o.length>0)if(E)if(T.state&N)z(n,new w);else{if(T.destroyed||T.errored)return!1;gt(n,T,o,!0)}else if(T.ended)z(n,new x);else{if(T.destroyed||T.errored)return!1;T.state&=~X,T.decoder&&!S?(o=T.decoder.write(o),T.objectMode||o.length!==0?gt(n,T,o,!1):Xe(n,T)):gt(n,T,o,!1)}else E||(T.state&=~X,Xe(n,T));return!T.ended&&(T.length0?(o.state&$?o.awaitDrainWriters.clear():o.awaitDrainWriters=null,o.dataEmitted=!0,n.emit("data",S)):(o.length+=o.objectMode?1:S.length,E?o.buffer.unshift(S):o.buffer.push(S),o.state&Pe&&Je(n)),Xe(n,o)}D.prototype.isPaused=function(){const n=this._readableState;return n[O]===!0||n.flowing===!1},D.prototype.setEncoding=function(n){const o=new Y(n);this._readableState.decoder=o,this._readableState.encoding=this._readableState.decoder.encoding;const S=this._readableState.buffer;let E="";for(const T of S)E+=o.write(T);return S.clear(),E!==""&&S.push(E),this._readableState.length=E.length,this};const ti=1073741824;function ri(n){if(n>ti)throw new ne("size","<= 1GiB",n);return n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++,n}function dr(n,o){return n<=0||o.length===0&&o.ended?0:o.state&C?1:i(n)?o.flowing&&o.length?o.buffer.first().length:o.length:n<=o.length?n:o.ended?o.length:0}D.prototype.read=function(n){y("read",n),n===void 0?n=NaN:r(n)||(n=l(n,10));const o=this._readableState,S=n;if(n>o.highWaterMark&&(o.highWaterMark=ri(n)),n!==0&&(o.state&=~Le),n===0&&o.needReadable&&((o.highWaterMark!==0?o.length>=o.highWaterMark:o.length>0)||o.ended))return y("read: emitReadable",o.length,o.ended),o.length===0&&o.ended?St(this):Je(this),null;if(n=dr(n,o),n===0&&o.ended)return o.length===0&&St(this),null;let E=(o.state&Pe)!==0;if(y("need readable",E),(o.length===0||o.length-n0?T=_r(n,o):T=null,T===null?(o.needReadable=o.length<=o.highWaterMark,n=0):(o.length-=n,o.multiAwaitDrain?o.awaitDrainWriters.clear():o.awaitDrainWriters=null),o.length===0&&(o.ended||(o.needReadable=!0),S!==n&&o.ended&&St(this)),T!==null&&!o.errorEmitted&&!o.closeEmitted&&(o.dataEmitted=!0,this.emit("data",T)),T};function ni(n,o){if(y("onEofChunk"),!o.ended){if(o.decoder){const S=o.decoder.end();S&&S.length&&(o.buffer.push(S),o.length+=o.objectMode?1:S.length)}o.ended=!0,o.sync?Je(n):(o.needReadable=!1,o.emittedReadable=!0,cr(n))}}function Je(n){const o=n._readableState;y("emitReadable",o.needReadable,o.emittedReadable),o.needReadable=!1,o.emittedReadable||(y("emitReadable",o.flowing),o.emittedReadable=!0,e.nextTick(cr,n))}function cr(n){const o=n._readableState;y("emitReadable_",o.destroyed,o.length,o.ended),!o.destroyed&&!o.errored&&(o.length||o.ended)&&(n.emit("readable"),o.emittedReadable=!1),o.needReadable=!o.flowing&&!o.ended&&o.length<=o.highWaterMark,br(n)}function Xe(n,o){!o.readingMore&&o.constructed&&(o.readingMore=!0,e.nextTick(ii,n,o))}function ii(n,o){for(;!o.reading&&!o.ended&&(o.length1&&E.pipes.includes(n)&&(y("false write response, pause",E.awaitDrainWriters.size),E.awaitDrainWriters.add(n)),S.pause()),Ee||(Ee=oi(S,n),n.on("drain",Ee))}S.on("data",Er);function Er(Re){y("ondata");const be=n.write(Re);y("dest.write",be),be===!1&&Sr()}function Rt(Re){if(y("onerror",Re),Ge(),n.removeListener("error",Rt),n.listenerCount("error")===0){const be=n._writableState||n._readableState;be&&!be.errorEmitted?z(n,Re):n.emit("error",Re)}}b(n,"error",Rt);function At(){n.removeListener("finish",mt),Ge()}n.once("close",At);function mt(){y("onfinish"),n.removeListener("close",At),Ge()}n.once("finish",mt);function Ge(){y("unpipe"),S.unpipe(n)}return n.emit("pipe",S),n.writableNeedDrain===!0?Sr():E.flowing||(y("pipe resume"),S.resume()),n};function oi(n,o){return function(){const E=n._readableState;E.awaitDrainWriters===o?(y("pipeOnDrain",1),E.awaitDrainWriters=null):E.multiAwaitDrain&&(y("pipeOnDrain",E.awaitDrainWriters.size),E.awaitDrainWriters.delete(o)),(!E.awaitDrainWriters||E.awaitDrainWriters.size===0)&&n.listenerCount("data")&&n.resume()}}D.prototype.unpipe=function(n){const o=this._readableState,S={hasUnpiped:!1};if(o.pipes.length===0)return this;if(!n){const T=o.pipes;o.pipes=[],this.pause();for(let Z=0;Z0,E.flowing!==!1&&this.resume()):n==="readable"&&!E.endEmitted&&!E.readableListening&&(E.readableListening=E.needReadable=!0,E.flowing=!1,E.emittedReadable=!1,y("on readable",E.length,E.reading),E.length?Je(this):E.reading||e.nextTick(li,this)),S},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(n,o){const S=m.prototype.removeListener.call(this,n,o);return n==="readable"&&e.nextTick(hr,this),S},D.prototype.off=D.prototype.removeListener,D.prototype.removeAllListeners=function(n){const o=m.prototype.removeAllListeners.apply(this,arguments);return(n==="readable"||n===void 0)&&e.nextTick(hr,this),o};function hr(n){const o=n._readableState;o.readableListening=n.listenerCount("readable")>0,o.resumeScheduled&&o[O]===!1?o.flowing=!0:n.listenerCount("data")>0?n.resume():o.readableListening||(o.flowing=null)}function li(n){y("readable nexttick read 0"),n.read(0)}D.prototype.resume=function(){const n=this._readableState;return n.flowing||(y("resume"),n.flowing=!n.readableListening,ai(this,n)),n[O]=!1,this};function ai(n,o){o.resumeScheduled||(o.resumeScheduled=!0,e.nextTick(si,n,o))}function si(n,o){y("resume",o.reading),o.reading||n.read(0),o.resumeScheduled=!1,n.emit("resume"),br(n),o.flowing&&!o.reading&&n.read(0)}D.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[O]=!0,this};function br(n){const o=n._readableState;for(y("flow",o.flowing);o.flowing&&n.read()!==null;);}D.prototype.wrap=function(n){let o=!1;n.on("data",E=>{!this.push(E)&&n.pause&&(o=!0,n.pause())}),n.on("end",()=>{this.push(null)}),n.on("error",E=>{z(this,E)}),n.on("close",()=>{this.destroy()}),n.on("destroy",()=>{this.destroy()}),this._read=()=>{o&&n.resume&&(o=!1,n.resume())};const S=d(n);for(let E=1;E{T=le?B(T,le):null,S(),S=V});try{for(;;){const le=n.destroyed?null:n.read();if(le!==null)yield le;else{if(T)throw T;if(T===null)return;await new R(E)}}}catch(le){throw T=B(T,le),T}finally{(T||(o==null?void 0:o.destroyOnReturn)!==!1)&&(T===void 0||n._readableState.autoDestroy)?P.destroyer(n,null):(n.off("readable",E),Z())}}s(D.prototype,{readable:{__proto__:null,get(){const n=this._readableState;return!!n&&n.readable!==!1&&!n.destroyed&&!n.errorEmitted&&!n.endEmitted},set(n){this._readableState&&(this._readableState.readable=!!n)}},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(n){this._readableState&&(this._readableState.flowing=n)}},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(n){this._readableState&&(this._readableState.destroyed=n)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(he.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[O]!==!1},set(n){this[O]=!!n}}}),D._fromList=_r;function _r(n,o){if(o.length===0)return null;let S;return o.objectMode?S=o.buffer.shift():!n||n>=o.length?(o.decoder?S=o.buffer.join(""):o.buffer.length===1?S=o.buffer.first():S=o.buffer.concat(o.length),o.buffer.clear()):S=o.buffer.consume(n,o.decoder),S}function St(n){const o=n._readableState;y("endReadable",o.endEmitted),o.endEmitted||(o.ended=!0,e.nextTick(ui,o,n))}function ui(n,o){if(y("endReadableNT",n.endEmitted,n.length),!n.errored&&!n.closeEmitted&&!n.endEmitted&&n.length===0){if(n.endEmitted=!0,o.emit("end"),o.writable&&o.allowHalfOpen===!1)e.nextTick(di,o);else if(n.autoDestroy){const S=o._writableState;(!S||S.autoDestroy&&(S.finished||S.writable===!1))&&o.destroy()}}}function di(n){n.writable&&!n.writableEnded&&!n.destroyed&&n.end()}D.from=function(n,o){return K(D,n,o)};let Et;function yr(){return Et===void 0&&(Et={}),Et}return D.fromWeb=function(n,o){return yr().newStreamReadableFromReadableStream(n,o)},D.toWeb=function(n,o){return yr().newReadableStreamFromStreamReadable(n,o)},D.wrap=function(n,o){var S,E;return new D({objectMode:(S=(E=n.readableObjectMode)!==null&&E!==void 0?E:n.objectMode)!==null&&S!==void 0?S:!0,...o,destroy(T,Z){P.destroyer(n,T),Z(T)}}).wrap(n)},Nt}var Dt,Vr;function lr(){if(Vr)return Dt;Vr=1;const e=$e,{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:l,ObjectDefineProperties:s,ObjectSetPrototypeOf:d,StringPrototypeToLowerCase:g,Symbol:R,SymbolHasInstance:h}=H;Dt=L,L.WritableState=w;const{EventEmitter:_}=lt,v=or.Stream,{Buffer:c}=Ie,u=je,{addAbortSignal:m}=bt,{getHighWaterMark:b,getDefaultHighWaterMark:A}=pt,{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_MULTIPLE_CALLBACK:y,ERR_STREAM_CANNOT_PIPE:j,ERR_STREAM_DESTROYED:P,ERR_STREAM_ALREADY_FINISHED:J,ERR_STREAM_NULL_VALUES:oe,ERR_STREAM_WRITE_AFTER_END:B,ERR_UNKNOWN_ENCODING:q}=ie.codes,{errorOrDestroy:re}=u;d(L.prototype,v.prototype),d(L,v);function ne(){}const x=R("kOnFinished");function w(a,f,p){typeof p!="boolean"&&(p=f instanceof pe()),this.objectMode=!!(a&&a.objectMode),p&&(this.objectMode=this.objectMode||!!(a&&a.writableObjectMode)),this.highWaterMark=a?b(this,a,"writableHighWaterMark",p):A(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const I=!!(a&&a.decodeStrings===!1);this.decodeStrings=!I,this.defaultEncoding=a&&a.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=z.bind(void 0,f),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,W(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!a||a.emitClose!==!1,this.autoDestroy=!a||a.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[x]=[]}function W(a){a.buffered=[],a.bufferedIndex=0,a.allBuffers=!0,a.allNoop=!0}w.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},l(w.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function L(a){const f=this instanceof pe();if(!f&&!i(L,this))return new L(a);this._writableState=new w(a,this,f),a&&(typeof a.write=="function"&&(this._write=a.write),typeof a.writev=="function"&&(this._writev=a.writev),typeof a.destroy=="function"&&(this._destroy=a.destroy),typeof a.final=="function"&&(this._final=a.final),typeof a.construct=="function"&&(this._construct=a.construct),a.signal&&m(a.signal,this)),v.call(this,a),u.construct(this,()=>{const p=this._writableState;p.writing||X(this,p),Le(this,p)})}l(L,h,{__proto__:null,value:function(a){return i(this,a)?!0:this!==L?!1:a&&a._writableState instanceof w}}),L.prototype.pipe=function(){re(this,new j)};function O(a,f,p,I){const $=a._writableState;if(typeof p=="function")I=p,p=$.defaultEncoding;else{if(!p)p=$.defaultEncoding;else if(p!=="buffer"&&!c.isEncoding(p))throw new q(p);typeof I!="function"&&(I=ne)}if(f===null)throw new oe;if(!$.objectMode)if(typeof f=="string")$.decodeStrings!==!1&&(f=c.from(f,p),p="buffer");else if(f instanceof c)p="buffer";else if(v._isUint8Array(f))f=v._uint8ArrayToBuffer(f),p="buffer";else throw new k("chunk",["string","Buffer","Uint8Array"],f);let U;return $.ending?U=new B:$.destroyed&&(U=new P("write")),U?(e.nextTick(I,U),re(a,U,!0),U):($.pendingcb++,Y(a,$,f,p,I))}L.prototype.write=function(a,f,p){return O(this,a,f,p)===!0},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){const a=this._writableState;a.corked&&(a.corked--,a.writing||X(this,a))},L.prototype.setDefaultEncoding=function(f){if(typeof f=="string"&&(f=g(f)),!c.isEncoding(f))throw new q(f);return this._writableState.defaultEncoding=f,this};function Y(a,f,p,I,$){const U=f.objectMode?1:p.length;f.length+=U;const G=f.lengthp.bufferedIndex&&X(a,p),I?p.afterWriteTickInfo!==null&&p.afterWriteTickInfo.cb===$?p.afterWriteTickInfo.count++:(p.afterWriteTickInfo={count:1,cb:$,stream:a,state:p},e.nextTick(C,p.afterWriteTickInfo)):ce(a,p,1,$))}function C({stream:a,state:f,count:p,cb:I}){return f.afterWriteTickInfo=null,ce(a,f,p,I)}function ce(a,f,p,I){for(!f.ending&&!a.destroyed&&f.length===0&&f.needDrain&&(f.needDrain=!1,a.emit("drain"));p-- >0;)f.pendingcb--,I();f.destroyed&&N(f),Le(a,f)}function N(a){if(a.writing)return;for(let $=a.bufferedIndex;$1&&a._writev){f.pendingcb-=U-1;const F=f.allNoop?ne:D=>{for(let we=G;we256?(p.splice(0,G),f.bufferedIndex=0):f.bufferedIndex=G}f.bufferProcessing=!1}L.prototype._write=function(a,f,p){if(this._writev)this._writev([{chunk:a,encoding:f}],p);else throw new M("_write()")},L.prototype._writev=null,L.prototype.end=function(a,f,p){const I=this._writableState;typeof a=="function"?(p=a,a=null,f=null):typeof f=="function"&&(p=f,f=null);let $;if(a!=null){const U=O(this,a,f);U instanceof r&&($=U)}return I.corked&&(I.corked=1,this.uncork()),$||(!I.errored&&!I.ending?(I.ending=!0,Le(this,I,!0),I.ended=!0):I.finished?$=new J("end"):I.destroyed&&($=new P("end"))),typeof p=="function"&&($||I.finished?e.nextTick(p,$):I[x].push(p)),this};function se(a){return a.ending&&!a.destroyed&&a.constructed&&a.length===0&&!a.errored&&a.buffered.length===0&&!a.finished&&!a.writing&&!a.errorEmitted&&!a.closeEmitted}function ke(a,f){let p=!1;function I($){if(p){re(a,$??y());return}if(p=!0,f.pendingcb--,$){const U=f[x].splice(0);for(let G=0;G{se($)?Ue(I,$):$.pendingcb--},a,f)):se(f)&&(f.pendingcb++,Ue(a,f))))}function Ue(a,f){f.pendingcb--,f.finished=!0;const p=f[x].splice(0);for(let I=0;I{if(N!=null)throw new m("nully","body",N)},N=>{b(C,N)});return C=new q({objectMode:!0,readable:!1,write:Y,final(N){K(async()=>{try{await ce,e.nextTick(N,null)}catch(X){e.nextTick(N,X)}})},destroy:V})}throw new m("Iterable, AsyncIterable or AsyncFunction",W,O)}if(J(w))return x(w.arrayBuffer());if(l(w))return j(q,w,{objectMode:!0,writable:!1});if(h(w==null?void 0:w.readable)&&_(w==null?void 0:w.writable))return q.fromWeb(w);if(typeof(w==null?void 0:w.writable)=="object"||typeof(w==null?void 0:w.readable)=="object"){const O=w!=null&&w.readable?d(w==null?void 0:w.readable)?w==null?void 0:w.readable:x(w.readable):void 0,Y=w!=null&&w.writable?g(w==null?void 0:w.writable)?w==null?void 0:w.writable:x(w.writable):void 0;return ne({readable:O,writable:Y})}const L=w==null?void 0:w.then;if(typeof L=="function"){let O;return B(L,w,Y=>{Y!=null&&O.push(Y),O.push(null)},Y=>{b(O,Y)}),O=new q({objectMode:!0,writable:!1,read(){}})}throw new u(W,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],w)};function re(x){let{promise:w,resolve:W}=y();const L=new oe,O=L.signal;return{value:x(async function*(){for(;;){const K=w;w=null;const{chunk:V,done:z,cb:C}=await K;if(e.nextTick(C),z)return;if(O.aborted)throw new c(void 0,{cause:O.reason});({promise:w,resolve:W}=y()),yield V}}(),{signal:O}),write(K,V,z){const C=W;W=null,C({chunk:K,done:!1,cb:z})},final(K){const V=W;W=null,V({done:!0,cb:K})},destroy(K,V){L.abort(),V(K)}}}function ne(x){const w=x.readable&&typeof x.readable.read!="function"?k.wrap(x.readable):x.readable,W=x.writable;let L=!!r(w),O=!!i(W),Y,K,V,z,C;function ce(N){const X=z;z=null,X?X(N):N&&C.destroy(N)}return C=new q({readableObjectMode:!!(w!=null&&w.readableObjectMode),writableObjectMode:!!(W!=null&&W.writableObjectMode),readable:L,writable:O}),O&&(v(W,N=>{O=!1,N&&b(w,N),ce(N)}),C._write=function(N,X,se){W.write(N,X)?se():Y=se},C._final=function(N){W.end(),K=N},W.on("drain",function(){if(Y){const N=Y;Y=null,N()}}),W.on("finish",function(){if(K){const N=K;K=null,N()}})),L&&(v(w,N=>{L=!1,N&&b(w,N),ce(N)}),w.on("readable",function(){if(V){const N=V;V=null,N()}}),w.on("end",function(){C.push(null)}),C._read=function(){for(;;){const N=w.read();if(N===null){V=C._read;return}if(!C.push(N))return}}),C._destroy=function(N,X){!N&&z!==null&&(N=new c),V=null,Y=null,K=null,z===null?X(N):(z=X,b(W,N),b(w,N))},C}return Mt}var kt,qr;function pe(){if(qr)return kt;qr=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:i}=H;kt=d;const l=_t(),s=lr();i(d.prototype,l.prototype),i(d,l);{const _=r(s.prototype);for(let v=0;v<_.length;v++){const c=_[v];d.prototype[c]||(d.prototype[c]=s.prototype[c])}}function d(_){if(!(this instanceof d))return new d(_);l.call(this,_),s.call(this,_),_?(this.allowHalfOpen=_.allowHalfOpen!==!1,_.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),_.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}e(d.prototype,{writable:{__proto__:null,...t(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...t(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...t(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...t(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...t(s.prototype,"writableLength")},writableFinished:{__proto__:null,...t(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...t(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...t(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...t(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(_){this._readableState&&this._writableState&&(this._readableState.destroyed=_,this._writableState.destroyed=_)}}});let g;function R(){return g===void 0&&(g={}),g}d.fromWeb=function(_,v){return R().newStreamDuplexFromReadableWritablePair(_,v)},d.toWeb=function(_){return R().newReadableWritablePairFromDuplex(_)};let h;return d.from=function(_){return h||(h=gl()),h(_,"body")},kt}const{ObjectSetPrototypeOf:Vn,Symbol:Sl}=H;var Hn=_e;const{ERR_METHOD_NOT_IMPLEMENTED:El}=ie.codes,ar=pe(),{getHighWaterMark:Rl}=pt;Vn(_e.prototype,ar.prototype);Vn(_e,ar);const He=Sl("kCallback");function _e(e){if(!(this instanceof _e))return new _e(e);const t=e?Rl(this,e,"readableHighWaterMark",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),ar.call(this,e),this._readableState.sync=!1,this[He]=null,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Al)}function Qt(e){typeof this._flush=="function"&&!this.destroyed?this._flush((t,r)=>{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function Al(){this._final!==Qt&&Qt.call(this)}_e.prototype._final=Qt;_e.prototype._transform=function(e,t,r){throw new El("_transform()")};_e.prototype._write=function(e,t,r){const i=this._readableState,l=this._writableState,s=i.length;this._transform(e,t,(d,g)=>{if(d){r(d);return}g!=null&&this.push(g),l.ended||s===i.length||i.length{i=!0});const l=it(e,{readable:t,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,Nl.destroyer(e,s||new kl("pipe")))},cleanup:l}}function jl(e){return Ol(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function Ft(e){if(me(e))return e;if(rt(e))return Ul(e);throw new Zt("val",["Readable","Iterable","AsyncIterable"],e)}async function*Ul(e){Wt||(Wt=_t()),yield*Wt.prototype[Tl].call(e)}async function Ze(e,t,r,{end:i}){let l,s=null;const d=h=>{if(h&&(l=h),s){const _=s;s=null,_()}},g=()=>new vl((h,_)=>{l?_(l):s=()=>{l?_(l):h()}});t.on("drain",d);const R=it(t,{readable:!1},d);try{t.writableNeedDrain&&await g();for await(const h of e)t.write(h)||await g();i&&(t.end(),await g()),r()}catch(h){r(l!==h?Dl(l,h):h)}finally{R(),t.off("drain",d)}}async function jt(e,t,r,{end:i}){xe(t)&&(t=t.writable);const l=t.getWriter();try{for await(const s of e)await l.ready,l.write(s).catch(()=>{});await l.ready,i&&await l.close(),r()}catch(s){try{await l.abort(s),r(s)}catch(d){r(d)}}}function Bl(...e){return Kn(e,$l(jl(e)))}function Kn(e,t,r){if(e.length===1&&ml(e[0])&&(e=e[0]),e.length<2)throw new Ml("streams");const i=new Fl,l=i.signal,s=r==null?void 0:r.signal,d=[];xl(s,"options.signal");function g(){m(new Ll)}Ct=Ct||te.addAbortListener;let R;s&&(R=Ct(s,g));let h,_;const v=[];let c=0;function u(M){m(M,--c===0)}function m(M,y){var j;if(M&&(!h||h.code==="ERR_STREAM_PREMATURE_CLOSE")&&(h=M),!(!h&&!y)){for(;v.length;)v.shift()(h);(j=R)===null||j===void 0||j[Il](),i.abort(),y&&(h||d.forEach(P=>P()),Ve.nextTick(t,h,_))}}let b;for(let M=0;M0,J=j||(r==null?void 0:r.end)!==!1,oe=M===e.length-1;if(Kr(y)){let B=function(q){q&&q.name!=="AbortError"&&q.code!=="ERR_STREAM_PREMATURE_CLOSE"&&u(q)};if(J){const{destroy:q,cleanup:re}=zr(y,j,P);v.push(q),Lt(y)&&oe&&d.push(re)}y.on("error",B),Lt(y)&&oe&&d.push(()=>{y.removeListener("error",B)})}if(M===0)if(typeof y=="function"){if(b=y({signal:l}),!me(b))throw new Pt("Iterable, AsyncIterable or Stream","source",b)}else me(y)||rt(y)||xe(y)?b=y:b=Yr.from(y);else if(typeof y=="function"){if(xe(b)){var A;b=Ft((A=b)===null||A===void 0?void 0:A.readable)}else b=Ft(b);if(b=y(b,{signal:l}),j){if(!me(b,!0))throw new Pt("AsyncIterable",`transform[${M-1}]`,b)}else{var k;xt||(xt=Yn);const B=new xt({objectMode:!0}),q=(k=b)===null||k===void 0?void 0:k.then;if(typeof q=="function")c++,q.call(b,x=>{_=x,x!=null&&B.write(x),J&&B.end(),Ve.nextTick(u)},x=>{B.destroy(x),Ve.nextTick(u,x)});else if(me(b,!0))c++,Ze(b,B,u,{end:J});else if(Ot(b)||xe(b)){const x=b.readable||b;c++,Ze(x,B,u,{end:J})}else throw new Pt("AsyncIterable or Promise","destination",b);b=B;const{destroy:re,cleanup:ne}=zr(b,!1,!0);v.push(re),oe&&d.push(ne)}}else if(Kr(y)){if(rt(b)){c+=2;const B=Gl(b,y,u,{end:J});Lt(y)&&oe&&d.push(B)}else if(xe(b)||Ot(b)){const B=b.readable||b;c++,Ze(B,y,u,{end:J})}else if(me(b))c++,Ze(b,y,u,{end:J});else throw new Zt("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],b);b=y}else if(Wl(y)){if(rt(b))c++,jt(Ft(b),y,u,{end:J});else if(Ot(b)||me(b))c++,jt(b,y,u,{end:J});else if(xe(b))c++,jt(b.readable,y,u,{end:J});else throw new Zt("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],b);b=y}else b=Yr.from(y)}return(l!=null&&l.aborted||s!=null&&s.aborted)&&Ve.nextTick(g),b}function Gl(e,t,r,{end:i}){let l=!1;if(t.on("close",()=>{l||r(new Pl)}),e.pipe(t,{end:!1}),i){let s=function(){l=!0,t.end()};Cl(e)?Ve.nextTick(s):e.once("end",s)}else r();return it(e,{readable:!0,writable:!1},s=>{const d=e._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&d&&d.ended&&!d.errored&&!d.errorEmitted?e.once("end",r).once("error",r):r(s)}),it(t,{readable:!1,writable:!0},r)}var fr={pipelineImpl:Kn,pipeline:Bl};const{pipeline:Vl}=fr,et=pe(),{destroyer:Hl}=je,{isNodeStream:tt,isReadable:Jr,isWritable:Xr,isWebStream:Ut,isTransformStream:Ae,isWritableStream:Qr,isReadableStream:Zr}=ye,{AbortError:ql,codes:{ERR_INVALID_ARG_VALUE:en,ERR_MISSING_ARGS:Yl}}=ie,Kl=Se;var zn=function(...t){if(t.length===0)throw new Yl("streams");if(t.length===1)return et.from(t[0]);const r=[...t];if(typeof t[0]=="function"&&(t[0]=et.from(t[0])),typeof t[t.length-1]=="function"){const u=t.length-1;t[u]=et.from(t[u])}for(let u=0;u0&&!(Xr(t[u])||Qr(t[u])||Ae(t[u])))throw new en(`streams[${u}]`,r[u],"must be writable")}let i,l,s,d,g;function R(u){const m=d;d=null,m?m(u):u?g.destroy(u):!c&&!v&&g.destroy()}const h=t[0],_=Vl(t,R),v=!!(Xr(h)||Qr(h)||Ae(h)),c=!!(Jr(_)||Zr(_)||Ae(_));if(g=new et({writableObjectMode:!!(h!=null&&h.writableObjectMode),readableObjectMode:!!(_!=null&&_.readableObjectMode),writable:v,readable:c}),v){if(tt(h))g._write=function(m,b,A){h.write(m,b)?A():i=A},g._final=function(m){h.end(),l=m},h.on("drain",function(){if(i){const m=i;i=null,m()}});else if(Ut(h)){const b=(Ae(h)?h.writable:h).getWriter();g._write=async function(A,k,M){try{await b.ready,b.write(A).catch(()=>{}),M()}catch(y){M(y)}},g._final=async function(A){try{await b.ready,b.close().catch(()=>{}),l=A}catch(k){A(k)}}}const u=Ae(_)?_.readable:_;Kl(u,()=>{if(l){const m=l;l=null,m()}})}if(c){if(tt(_))_.on("readable",function(){if(s){const u=s;s=null,u()}}),_.on("end",function(){g.push(null)}),g._read=function(){for(;;){const u=_.read();if(u===null){s=g._read;return}if(!g.push(u))return}};else if(Ut(_)){const m=(Ae(_)?_.readable:_).getReader();g._read=async function(){for(;;)try{const{value:b,done:A}=await m.read();if(!g.push(b))return;if(A){g.push(null);return}}catch{return}}}}return g._destroy=function(u,m){!u&&d!==null&&(u=new ql),s=null,i=null,l=null,d===null?m(u):(d=m,tt(_)&&Hl(_,u))},g};const zl=globalThis.AbortController||Ye().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Jl,ERR_INVALID_ARG_TYPE:ze,ERR_MISSING_ARGS:Xl,ERR_OUT_OF_RANGE:Ql},AbortError:ue}=ie,{validateAbortSignal:De,validateInteger:tn,validateObject:Me}=Ke,Zl=H.Symbol("kWeak"),ea=H.Symbol("kResistStopPropagation"),{finished:ta}=Se,ra=zn,{addAbortSignalNoValidate:na}=bt,{isWritable:ia,isNodeStream:oa}=ye,{deprecate:la}=te,{ArrayPrototypePush:aa,Boolean:sa,MathFloor:rn,Number:fa,NumberIsNaN:ua,Promise:nn,PromiseReject:on,PromiseResolve:da,PromisePrototypeThen:ln,Symbol:Jn}=H,ot=Jn("kEmpty"),an=Jn("kEof");function ca(e,t){if(t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),oa(e)&&!ia(e))throw new Jl("stream",e,"must be writable");const r=ra(this,e);return t!=null&&t.signal&&na(t.signal,r),r}function yt(e,t){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal");let r=1;(t==null?void 0:t.concurrency)!=null&&(r=rn(t.concurrency));let i=r-1;return(t==null?void 0:t.highWaterMark)!=null&&(i=rn(t.highWaterMark)),tn(r,"options.concurrency",1),tn(i,"options.highWaterMark",0),i+=r,(async function*(){const s=te.AbortSignalAny([t==null?void 0:t.signal].filter(sa)),d=this,g=[],R={signal:s};let h,_,v=!1,c=0;function u(){v=!0,m()}function m(){c-=1,b()}function b(){_&&!v&&c=i||c>=r)&&await new nn(M=>{_=M})}g.push(an)}catch(k){const M=on(k);ln(M,m,u),g.push(M)}finally{v=!0,h&&(h(),h=null)}}A();try{for(;;){for(;g.length>0;){const k=await g[0];if(k===an)return;if(s.aborted)throw new ue;k!==ot&&(yield k),g.shift(),b()}await new nn(k=>{h=k})}}finally{v=!0,_&&(_(),_=null)}}).call(this)}function ha(e=void 0){return e!=null&&Me(e,"options"),(e==null?void 0:e.signal)!=null&&De(e.signal,"options.signal"),(async function*(){let r=0;for await(const l of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ue({cause:e.signal.reason});yield[r++,l]}}).call(this)}async function Xn(e,t=void 0){for await(const r of ur.call(this,e,t))return!0;return!1}async function ba(e,t=void 0){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);return!await Xn.call(this,async(...r)=>!await e(...r),t)}async function pa(e,t){for await(const r of ur.call(this,e,t))return r}async function _a(e,t){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);async function r(i,l){return await e(i,l),ot}for await(const i of yt.call(this,r,t));}function ur(e,t){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);async function r(i,l){return await e(i,l)?i:ot}return yt.call(this,r,t)}class ya extends Xl{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function wa(e,t,r){var i;if(typeof e!="function")throw new ze("reducer",["Function","AsyncFunction"],e);r!=null&&Me(r,"options"),(r==null?void 0:r.signal)!=null&&De(r.signal,"options.signal");let l=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){const h=new ue(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await ta(this.destroy(h)),h}const s=new zl,d=s.signal;if(r!=null&&r.signal){const h={once:!0,[Zl]:this,[ea]:!0};r.signal.addEventListener("abort",()=>s.abort(),h)}let g=!1;try{for await(const h of this){var R;if(g=!0,r!=null&&(R=r.signal)!==null&&R!==void 0&&R.aborted)throw new ue;l?t=await e(t,h,{signal:d}):(t=h,l=!0)}if(!g&&!l)throw new ya}finally{s.abort()}return t}async function ga(e){e!=null&&Me(e,"options"),(e==null?void 0:e.signal)!=null&&De(e.signal,"options.signal");const t=[];for await(const i of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new ue(void 0,{cause:e.signal.reason});aa(t,i)}return t}function Sa(e,t){const r=yt.call(this,e,t);return(async function*(){for await(const l of r)yield*l}).call(this)}function Qn(e){if(e=fa(e),ua(e))return 0;if(e<0)throw new Ql("number",">= 0",e);return e}function Ea(e,t=void 0){return t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),e=Qn(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ue;for await(const s of this){var l;if(t!=null&&(l=t.signal)!==null&&l!==void 0&&l.aborted)throw new ue;e--<=0&&(yield s)}}).call(this)}function Ra(e,t=void 0){return t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),e=Qn(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ue;for await(const s of this){var l;if(t!=null&&(l=t.signal)!==null&&l!==void 0&&l.aborted)throw new ue;if(e-- >0&&(yield s),e<=0)return}}).call(this)}er.streamReturningOperators={asIndexedPairs:la(ha,"readable.asIndexedPairs will be removed in a future version."),drop:Ea,filter:ur,flatMap:Sa,map:yt,take:Ra,compose:ca};er.promiseReturningOperators={every:ba,forEach:_a,reduce:wa,toArray:ga,some:Xn,find:pa};var Bt,sn;function Zn(){if(sn)return Bt;sn=1;const{ArrayPrototypePop:e,Promise:t}=H,{isIterable:r,isNodeStream:i,isWebStream:l}=ye,{pipelineImpl:s}=fr,{finished:d}=Se;ei();function g(...R){return new t((h,_)=>{let v,c;const u=R[R.length-1];if(u&&typeof u=="object"&&!i(u)&&!r(u)&&!l(u)){const m=e(R);v=m.signal,c=m.end}s(R,(m,b)=>{m?_(m):h(b)},{signal:v,end:c})})}return Bt={finished:d,pipeline:g},Bt}var fn;function ei(){if(fn)return vt.exports;fn=1;const{Buffer:e}=Ie,{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:i}=H,{promisify:{custom:l}}=te,{streamReturningOperators:s,promiseReturningOperators:d}=er,{codes:{ERR_ILLEGAL_CONSTRUCTOR:g}}=ie,R=zn,{setDefaultHighWaterMark:h,getDefaultHighWaterMark:_}=pt,{pipeline:v}=fr,{destroyer:c}=je,u=Se,m=Zn(),b=ye,A=vt.exports=or.Stream;A.isDestroyed=b.isDestroyed,A.isDisturbed=b.isDisturbed,A.isErrored=b.isErrored,A.isReadable=b.isReadable,A.isWritable=b.isWritable,A.Readable=_t();for(const M of r(s)){let j=function(...P){if(new.target)throw g();return A.Readable.from(i(y,this,P))};const y=s[M];t(j,"name",{__proto__:null,value:y.name}),t(j,"length",{__proto__:null,value:y.length}),t(A.Readable.prototype,M,{__proto__:null,value:j,enumerable:!1,configurable:!0,writable:!0})}for(const M of r(d)){let j=function(...P){if(new.target)throw g();return i(y,this,P)};const y=d[M];t(j,"name",{__proto__:null,value:y.name}),t(j,"length",{__proto__:null,value:y.length}),t(A.Readable.prototype,M,{__proto__:null,value:j,enumerable:!1,configurable:!0,writable:!0})}A.Writable=lr(),A.Duplex=pe(),A.Transform=Hn,A.PassThrough=Yn,A.pipeline=v;const{addAbortSignal:k}=bt;return A.addAbortSignal=k,A.finished=u,A.destroy=c,A.compose=R,A.setDefaultHighWaterMark=h,A.getDefaultHighWaterMark=_,t(A,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),t(v,l,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),t(u,l,{__proto__:null,enumerable:!0,get(){return m.finished}}),A.Stream=A,A._isUint8Array=function(y){return y instanceof Uint8Array},A._uint8ArrayToBuffer=function(y){return e.from(y.buffer,y.byteOffset,y.byteLength)},vt.exports}(function(e){const t=ei(),r=Zn(),i=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=i,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return r}}),e.exports.Stream=t.Stream,e.exports.default=e.exports})(un);var Aa=un.exports;class ma{constructor(t){this.stream=t,this.array=[]}push(t){this.array.push(t)}end(){this.stream.push(this.array),this.stream.push(null)}}class va{constructor(t){this.stream=t,this.first=!0,this.stream.push("[")}push(t){this.first?this.first=!1:this.stream.push(","),this.stream.push(JSON.stringify(t))}end(){this.stream.push("]"),this.stream.push(null)}}class qe extends Aa.Readable{constructor(t,{encoding:r="object"}={}){if(super({objectMode:!0,read:()=>{}}),r==="object"&&(this.encoder=new ma(this)),r==="string"&&(this.encoder=new va(this)),!this.encoder)throw new Error(`unknown encoding: ${r}`);t.on("data",i=>{const l={};let s=l;i.graph.termType!=="DefaultGraph"&&(l["@id"]=i.graph.value,l["@graph"]={},s=l["@graph"]),s["@id"]=qe.subjectValue(i.subject),i.predicate.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"?s["@type"]=qe.subjectValue(i.object):s[i.predicate.value]=qe.objectValue(i.object),this.encoder.push(l)}),t.on("end",()=>this.encoder.end()),t.on("error",i=>this.emit("error",i))}static subjectValue(t){return t.termType==="BlankNode"?"_:"+t.value:t.value}static objectValue(t){return t.termType==="NamedNode"?{"@id":t.value}:t.termType==="BlankNode"?{"@id":"_:"+t.value}:t.language?{"@language":t.language,"@value":t.value}:t.datatype&&t.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"?{"@type":t.datatype.value,"@value":t.value}:t.value}}class Ta extends hi{constructor(t){super(qe,t)}}class Ma extends Ta{constructor({...t}={}){super({encoding:"string",...t})}}export{Ma as default}; diff --git a/assets/CustomRdfXmlParser-BnFBQjMk.js b/assets/CustomRdfXmlParser-BnFBQjMk.js deleted file mode 100644 index d723cbe..0000000 --- a/assets/CustomRdfXmlParser-BnFBQjMk.js +++ /dev/null @@ -1,28 +0,0 @@ -import{a as pt,e as Pt,b as je,d as Be,s as vo,c as ve}from"./main-CO-45Vwa.js";import{r as Co,a as Io}from"./index-keipGPtm.js";var pn={},tt={},it={},_n={};(function(t){/** - * Character classes and associated utilities for the 5th edition of XML 1.0. - * - * @author Louis-Dominique Dubeau - * @license MIT - * @copyright Louis-Dominique Dubeau - */Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR=` -\r -퟿-�𐀀-􏿿`,t.S=` \r -`,t.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",t.NAME_CHAR="-"+t.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.CHAR_RE=new RegExp("^["+t.CHAR+"]$","u"),t.S_RE=new RegExp("^["+t.S+"]+$","u"),t.NAME_START_CHAR_RE=new RegExp("^["+t.NAME_START_CHAR+"]$","u"),t.NAME_CHAR_RE=new RegExp("^["+t.NAME_CHAR+"]$","u"),t.NAME_RE=new RegExp("^["+t.NAME_START_CHAR+"]["+t.NAME_CHAR+"]*$","u"),t.NMTOKEN_RE=new RegExp("^["+t.NAME_CHAR+"]+$","u");var e=9,i=10,r=13,n=32;t.S_LIST=[n,i,r,e];function a(d){return d>=n&&d<=55295||d===i||d===r||d===e||d>=57344&&d<=65533||d>=65536&&d<=1114111}t.isChar=a;function u(d){return d===n||d===i||d===r||d===e}t.isS=u;function b(d){return d>=65&&d<=90||d>=97&&d<=122||d===58||d===95||d===8204||d===8205||d>=192&&d<=214||d>=216&&d<=246||d>=248&&d<=767||d>=880&&d<=893||d>=895&&d<=8191||d>=8304&&d<=8591||d>=11264&&d<=12271||d>=12289&&d<=55295||d>=63744&&d<=64975||d>=65008&&d<=65533||d>=65536&&d<=983039}t.isNameStartChar=b;function g(d){return b(d)||d>=48&&d<=57||d===45||d===46||d===183||d>=768&&d<=879||d>=8255&&d<=8256}t.isNameChar=g})(_n);var gn={};(function(t){/** - * Character classes and associated utilities for the 2nd edition of XML 1.1. - * - * @author Louis-Dominique Dubeau - * @license MIT - * @copyright Louis-Dominique Dubeau - */Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR="-퟿-�𐀀-􏿿",t.RESTRICTED_CHAR="-\b\v\f--„†-Ÿ",t.S=` \r -`,t.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",t.NAME_CHAR="-"+t.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.CHAR_RE=new RegExp("^["+t.CHAR+"]$","u"),t.RESTRICTED_CHAR_RE=new RegExp("^["+t.RESTRICTED_CHAR+"]$","u"),t.S_RE=new RegExp("^["+t.S+"]+$","u"),t.NAME_START_CHAR_RE=new RegExp("^["+t.NAME_START_CHAR+"]$","u"),t.NAME_CHAR_RE=new RegExp("^["+t.NAME_CHAR+"]$","u"),t.NAME_RE=new RegExp("^["+t.NAME_START_CHAR+"]["+t.NAME_CHAR+"]*$","u"),t.NMTOKEN_RE=new RegExp("^["+t.NAME_CHAR+"]+$","u");var e=9,i=10,r=13,n=32;t.S_LIST=[n,i,r,e];function a(l){return l>=1&&l<=55295||l>=57344&&l<=65533||l>=65536&&l<=1114111}t.isChar=a;function u(l){return l>=1&&l<=8||l===11||l===12||l>=14&&l<=31||l>=127&&l<=132||l>=134&&l<=159}t.isRestrictedChar=u;function b(l){return l===9||l===10||l===13||l>31&&l<127||l===133||l>159&&l<=55295||l>=57344&&l<=65533||l>=65536&&l<=1114111}t.isCharAndNotRestricted=b;function g(l){return l===n||l===i||l===r||l===e}t.isS=g;function d(l){return l>=65&&l<=90||l>=97&&l<=122||l===58||l===95||l===8204||l===8205||l>=192&&l<=214||l>=216&&l<=246||l>=248&&l<=767||l>=880&&l<=893||l>=895&&l<=8191||l>=8304&&l<=8591||l>=11264&&l<=12271||l>=12289&&l<=55295||l>=63744&&l<=64975||l>=65008&&l<=65533||l>=65536&&l<=983039}t.isNameStartChar=d;function _(l){return d(l)||l>=48&&l<=57||l===45||l===46||l===183||l>=768&&l<=879||l>=8255&&l<=8256}t.isNameChar=_})(gn);var wn={};(function(t){/** - * Character class utilities for XML NS 1.0 edition 3. - * - * @author Louis-Dominique Dubeau - * @license MIT - * @copyright Louis-Dominique Dubeau - */Object.defineProperty(t,"__esModule",{value:!0}),t.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",t.NC_NAME_CHAR="-"+t.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.NC_NAME_START_CHAR_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]$","u"),t.NC_NAME_CHAR_RE=new RegExp("^["+t.NC_NAME_CHAR+"]$","u"),t.NC_NAME_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]["+t.NC_NAME_CHAR+"]*$","u");function e(r){return r>=65&&r<=90||r===95||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}t.isNCNameStartChar=e;function i(r){return e(r)||r===45||r===46||r>=48&&r<=57||r===183||r>=768&&r<=879||r>=8255&&r<=8256}t.isNCNameChar=i})(wn);Object.defineProperty(it,"__esModule",{value:!0});it.SaxesParser=it.EVENTS=void 0;const nt=_n,$o=gn,Hi=wn;var de=nt.isS,Po=nt.isChar,dt=nt.isNameStartChar,fr=nt.isNameChar,yn=nt.S_LIST,Mo=nt.NAME_RE,Oo=$o.isChar,Lo=Hi.isNCNameStartChar,ko=Hi.isNCNameChar,Wo=Hi.NC_NAME_RE;const Nt="http://www.w3.org/XML/1998/namespace",Je="http://www.w3.org/2000/xmlns/",jo={__proto__:null,xml:Nt,xmlns:Je},Bo={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},G=-1,_e=-2,cr=0,Ho=1,ei=2,Uo=3,Ke=4,Vo=5,Go=6,qo=7,ti=8,Xo=9,Yo=10,Ko=11,zo=12,le=13,St=14,ii=15,Qo=16,ri=17,Zo=18,Jo=19,ni=20,es=21,ts=22,is=23,hr=24,oi=25,Et=26,br=27,rs=28,ns=29,pr=30,os=31,ss=32,Pe=33,as=34,si=35,ft=36,ai=37,ls=38,_r=39,gr=40,us=41,wr=42,ds=43,fs=44,li=9,be=10,ui=13,yr=32,Sr=33,Sn=34,ct=38,En=39,mt=45,Rt=47,cs=59,Te=60,ze=61,ee=62,ne=63,mn=91,Qe=93,Er=133,mr=8232,At=t=>t===Sn||t===En,Rn=[Sn,En],hs=[...Rn,mn,ee],bs=[...Rn,Te,Qe],ps=[ze,ne,...yn],_s=[...yn,ee,ct,Te];function vi(t,e,i){switch(e){case"xml":i!==Nt&&t.fail(`xml prefix must be bound to ${Nt}.`);break;case"xmlns":i!==Je&&t.fail(`xmlns prefix must be bound to ${Je}.`);break}switch(i){case Je:t.fail(e===""?`the default namespace may not be set to ${i}.`:`may not assign a prefix (even "xmlns") to the URI ${Je}.`);break;case Nt:switch(e){case"xml":break;case"":t.fail(`the default namespace may not be set to ${i}.`);break;default:t.fail("may not assign the xml namespace to another prefix.")}break}}function gs(t,e){for(const i of Object.keys(e))vi(t,i,e[i])}const ws=t=>Wo.test(t),ys=t=>Mo.test(t),Me=0,Rr=1,di=2;it.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const Ar={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Ss{get closed(){return this._closed}constructor(e){this.opt=e??{},this.fragmentOpt=!!this.opt.fragment;const i=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,i){this.nameStartCheck=Lo,this.nameCheck=ko,this.isName=ws,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},jo);const r=this.opt.additionalNamespaces;r!=null&&(gs(this,r),Object.assign(this.ns,r))}else this.nameStartCheck=dt,this.nameCheck=fr,this.isName=ys,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}_init(){var e;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=Me,this.attribList=[];const{fragmentOpt:i}=this;this.state=i?le:cr,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=i,this.xmlDeclPossible=!i,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:r}=this.opt;if(r===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");r="1.0"}this.setXMLVersion(r),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Bo),(e=this.readyHandler)===null||e===void 0||e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,i){this[Ar[e]]=i}off(e){this[Ar[e]]=void 0}makeError(e){var i;let r=(i=this.fileName)!==null&&i!==void 0?i:"";return this.trackPosition&&(r.length>0&&(r+=":"),r+=`${this.line}:${this.column}`),r.length>0&&(r+=": "),new Error(r+e)}fail(e){const i=this.makeError(e),r=this.errorHandler;if(r===void 0)throw i;return r(i),this}write(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let i=!1;e===null?(i=!0,e=""):typeof e=="object"&&(e=e.toString()),this.carriedFromPrevious!==void 0&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let r=e.length;const n=e.charCodeAt(r-1);!i&&(n===ui||n>=55296&&n<=56319)&&(this.carriedFromPrevious=e[r-1],r--,e=e.slice(0,r));const{stateTable:a}=this;for(this.chunk=e,this.i=0;this.i=e.length)return G;const r=e.charCodeAt(i);if(this.column++,r<55296){if(r>=yr||r===li)return r;switch(r){case be:return this.line++,this.column=0,this.positionAtNewLine=this.position,be;case ui:return e.charCodeAt(i+1)===be&&(this.i=i+2),this.line++,this.column=0,this.positionAtNewLine=this.position,_e;default:return this.fail("disallowed character."),r}}if(r>56319)return r>=57344&&r<=65533||this.fail("disallowed character."),r;const n=65536+(r-55296)*1024+(e.charCodeAt(i+1)-56320);return this.i=i+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:e,i}=this;if(this.prevI=i,this.i=i+1,i>=e.length)return G;const r=e.charCodeAt(i);if(this.column++,r<55296){if(r>31&&r<127||r>159&&r!==mr||r===li)return r;switch(r){case be:return this.line++,this.column=0,this.positionAtNewLine=this.position,be;case ui:{const a=e.charCodeAt(i+1);(a===be||a===Er)&&(this.i=i+2)}case Er:case mr:return this.line++,this.column=0,this.positionAtNewLine=this.position,_e;default:return this.fail("disallowed character."),r}}if(r>56319)return r>=57344&&r<=65533||this.fail("disallowed character."),r;const n=65536+(r-55296)*1024+(e.charCodeAt(i+1)-56320);return this.i=i+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const e=this.getCode();return e===_e?be:e}unget(){this.i=this.prevI,this.column--}captureTo(e){let{i}=this;const{chunk:r}=this;for(;;){const n=this.getCode(),a=n===_e,u=a?be:n;if(u===G||e.includes(u))return this.text+=r.slice(i,this.prevI),u;a&&(this.text+=`${r.slice(i,this.prevI)} -`,i=this.i)}}captureToChar(e){let{i}=this;const{chunk:r}=this;for(;;){let n=this.getCode();switch(n){case _e:this.text+=`${r.slice(i,this.prevI)} -`,i=this.i,n=be;break;case G:return this.text+=r.slice(i),!1}if(n===e)return this.text+=r.slice(i,this.prevI),!0}}captureNameChars(){const{chunk:e,i}=this;for(;;){const r=this.getCode();if(r===G)return this.name+=e.slice(i),G;if(!fr(r))return this.name+=e.slice(i,this.prevI),r===_e?be:r}}skipSpaces(){for(;;){const e=this.getCodeNorm();if(e===G||!de(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,e==="1.0"?(this.isChar=Po,this.getCode=this.getCode10):(this.isChar=Oo,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=Ho}sBeginWhitespace(){const e=this.i,i=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),i){case Te:if(this.state=ii,this.text.length!==0)throw new Error("no-empty text at start");break;case G:break;default:this.unget(),this.state=le,this.xmlDeclPossible=!1}}sDoctype(){var e;const i=this.captureTo(hs);switch(i){case ee:{(e=this.doctypeHandler)===null||e===void 0||e.call(this,this.text),this.text="",this.state=le,this.doctype=!0;break}case G:break;default:this.text+=String.fromCodePoint(i),i===mn?this.state=Ke:At(i)&&(this.state=Uo,this.q=i)}}sDoctypeQuote(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=ei)}sDTD(){const e=this.captureTo(bs);e!==G&&(this.text+=String.fromCodePoint(e),e===Qe?this.state=ei:e===Te?this.state=Go:At(e)&&(this.state=Vo,this.q=e))}sDTDQuoted(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=Ke,this.q=null)}sDTDOpenWaka(){const e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case Sr:this.state=qo,this.openWakaBang="";break;case ne:this.state=Ko;break;default:this.state=Ke}}sDTDOpenWakaBang(){const e=String.fromCodePoint(this.getCodeNorm()),i=this.openWakaBang+=e;this.text+=e,i!=="-"&&(this.state=i==="--"?ti:Ke,this.openWakaBang="")}sDTDComment(){this.captureToChar(mt)&&(this.text+="-",this.state=Xo)}sDTDCommentEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=e===mt?Yo:ti}sDTDCommentEnded(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===ee?this.state=Ke:(this.fail("malformed comment."),this.state=ti)}sDTDPI(){this.captureToChar(ne)&&(this.text+="?",this.state=zo)}sDTDPIEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===ee&&(this.state=Ke)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:e}=this;const{chunk:i}=this;e:for(;;)switch(this.getCode()){case _e:this.entity+=`${i.slice(e,this.prevI)} -`,e=this.i;break;case cs:{const{entityReturnState:r}=this,n=this.entity+i.slice(e,this.prevI);this.state=r;let a;n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),(r!==le||this.textHandler!==void 0)&&(this.text+=a);break e}case G:this.entity+=i.slice(e);break e}}sOpenWaka(){const e=this.getCode();if(dt(e))this.state=as,this.unget(),this.xmlDeclPossible=!1;else switch(e){case Rt:this.state=ds,this.xmlDeclPossible=!1;break;case Sr:this.state=Qo,this.openWakaBang="",this.xmlDeclPossible=!1;break;case ne:this.state=is;break;default:this.fail("disallowed character in tag name"),this.state=le,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=ni,this.openWakaBang="";break;case"--":this.state=ri,this.openWakaBang="";break;case"DOCTYPE":this.state=ei,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(mt)&&(this.state=Zo)}sCommentEnding(){var e;const i=this.getCodeNorm();i===mt?(this.state=Jo,(e=this.commentHandler)===null||e===void 0||e.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(i)}`,this.state=ri)}sCommentEnded(){const e=this.getCodeNorm();e!==ee?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(e)}`,this.state=ri):this.state=le}sCData(){this.captureToChar(Qe)&&(this.state=es)}sCDataEnding(){const e=this.getCodeNorm();e===Qe?this.state=ts:(this.text+=`]${String.fromCodePoint(e)}`,this.state=ni)}sCDataEnding2(){var e;const i=this.getCodeNorm();switch(i){case ee:{(e=this.cdataHandler)===null||e===void 0||e.call(this,this.text),this.text="",this.state=le;break}case Qe:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(i)}`,this.state=ni}}sPIFirstChar(){const e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=hr):e===ne||de(e)?(this.fail("processing instruction without a target."),this.state=e===ne?Et:oi):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=hr)}sPIRest(){const{chunk:e,i}=this;for(;;){const r=this.getCodeNorm();if(r===G){this.piTarget+=e.slice(i);return}if(!this.nameCheck(r)){this.piTarget+=e.slice(i,this.prevI);const n=r===ne;n||de(r)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?Pe:br):this.state=n?Et:oi:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(r));break}}}sPIBody(){if(this.text.length===0){const e=this.getCodeNorm();e===ne?this.state=Et:de(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(ne)&&(this.state=Et)}sPIEnding(){var e;const i=this.getCodeNorm();if(i===ee){const{piTarget:r}=this;r.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(e=this.piHandler)===null||e===void 0||e.call(this,{target:r,body:this.text}),this.piTarget=this.text="",this.state=le}else i===ne?this.text+="?":(this.text+=`?${String.fromCodePoint(i)}`,this.state=oi);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const e=this.skipSpaces();if(e===ne){this.state=Pe;return}e!==G&&(this.state=rs,this.name=String.fromCodePoint(e))}sXMLDeclName(){const e=this.captureTo(ps);if(e===ne){this.state=Pe,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(de(e)||e===ze){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=e===ze?pr:ns}}sXMLDeclEq(){const e=this.getCodeNorm();if(e===ne){this.state=Pe,this.fail("XML declaration is incomplete.");return}de(e)||(e!==ze&&this.fail("value required."),this.state=pr)}sXMLDeclValueStart(){const e=this.getCodeNorm();if(e===ne){this.state=Pe,this.fail("XML declaration is incomplete.");return}de(e)||(At(e)?this.q=e:(this.fail("value must be quoted."),this.q=yr),this.state=os)}sXMLDeclValue(){const e=this.captureTo([this.q,ne]);if(e===ne){this.state=Pe,this.text="",this.fail("XML declaration is incomplete.");return}if(e===G)return;const i=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const r=i;this.xmlDecl.version=r,/^1\.[0-9]+$/.test(r)?this.opt.forceXMLVersion||this.setXMLVersion(r):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(i)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=i;break;case"standalone":i!=="yes"&&i!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=i;break}this.name="",this.state=ss}sXMLDeclSeparator(){const e=this.getCodeNorm();if(e===ne){this.state=Pe;return}de(e)||(this.fail("whitespace required."),this.unget()),this.state=br}sXMLDeclEnding(){var e;this.getCodeNorm()===ee?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(e=this.xmldeclHandler)===null||e===void 0||e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=le):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var e;const i=this.captureNameChars();if(i===G)return;const r=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=r.ns=Object.create(null)),(e=this.openTagStartHandler)===null||e===void 0||e.call(this,r),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),i){case ee:this.openTag();break;case Rt:this.state=si;break;default:de(i)||this.fail("disallowed character in tag name."),this.state=ft}}sOpenTagSlash(){this.getCode()===ee?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=ft)}sAttrib(){const e=this.skipSpaces();e!==G&&(dt(e)?(this.unget(),this.state=ai):e===ee?this.openTag():e===Rt?this.state=si:this.fail("disallowed character in attribute name."))}sAttribName(){const e=this.captureNameChars();e===ze?this.state=_r:de(e)?this.state=ls:e===ee?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):e!==G&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const e=this.skipSpaces();switch(e){case G:return;case ze:this.state=_r;break;default:this.fail("attribute without value."),this.text="",this.name="",e===ee?this.openTag():dt(e)?(this.unget(),this.state=ai):(this.fail("disallowed character in attribute name."),this.state=ft)}}sAttribValue(){const e=this.getCodeNorm();At(e)?(this.q=e,this.state=gr):de(e)||(this.fail("unquoted attribute value."),this.state=wr,this.unget())}sAttribValueQuoted(){const{q:e,chunk:i}=this;let{i:r}=this;for(;;)switch(this.getCode()){case e:this.pushAttrib(this.name,this.text+i.slice(r,this.prevI)),this.name=this.text="",this.q=null,this.state=us;return;case ct:this.text+=i.slice(r,this.prevI),this.state=St,this.entityReturnState=gr;return;case be:case _e:case li:this.text+=`${i.slice(r,this.prevI)} `,r=this.i;break;case Te:this.text+=i.slice(r,this.prevI),this.fail("disallowed character.");return;case G:this.text+=i.slice(r);return}}sAttribValueClosed(){const e=this.getCodeNorm();de(e)?this.state=ft:e===ee?this.openTag():e===Rt?this.state=si:dt(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=ai):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const e=this.captureTo(_s);switch(e){case ct:this.state=St,this.entityReturnState=wr;break;case Te:this.fail("disallowed character.");break;case G:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",e===ee?this.openTag():this.state=ft}}sCloseTag(){const e=this.captureNameChars();e===ee?this.closeTag():de(e)?this.state=fs:e!==G&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case ee:this.closeTag();break;case G:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:e,forbiddenState:i}=this;const{chunk:r,textHandler:n}=this;e:for(;;)switch(this.getCode()){case Te:{if(this.state=ii,n!==void 0){const{text:a}=this,u=r.slice(e,this.prevI);a.length!==0?(n(a+u),this.text=""):u.length!==0&&n(u)}i=Me;break e}case ct:this.state=St,this.entityReturnState=le,n!==void 0&&(this.text+=r.slice(e,this.prevI)),i=Me;break e;case Qe:switch(i){case Me:i=Rr;break;case Rr:i=di;break;case di:break;default:throw new Error("impossible state")}break;case ee:i===di&&this.fail('the string "]]>" is disallowed in char data.'),i=Me;break;case _e:n!==void 0&&(this.text+=`${r.slice(e,this.prevI)} -`),e=this.i,i=Me;break;case G:n!==void 0&&(this.text+=r.slice(e));break e;default:i=Me}this.forbiddenState=i}handleTextOutsideRoot(){let{i:e}=this;const{chunk:i,textHandler:r}=this;let n=!1;e:for(;;){const a=this.getCode();switch(a){case Te:{if(this.state=ii,r!==void 0){const{text:u}=this,b=i.slice(e,this.prevI);u.length!==0?(r(u+b),this.text=""):b.length!==0&&r(b)}break e}case ct:this.state=St,this.entityReturnState=le,r!==void 0&&(this.text+=i.slice(e,this.prevI)),n=!0;break e;case _e:r!==void 0&&(this.text+=`${i.slice(e,this.prevI)} -`),e=this.i;break;case G:r!==void 0&&(this.text+=i.slice(e));break e;default:de(a)||(n=!0)}}n&&(!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(e,i){var r;const{prefix:n,local:a}=this.qname(e),u={name:e,prefix:n,local:a,value:i};if(this.attribList.push(u),(r=this.attributeHandler)===null||r===void 0||r.call(this,u),n==="xmlns"){const b=i.trim();this.currentXMLVersion==="1.0"&&b===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[a]=b,vi(this,a,b)}else if(e==="xmlns"){const b=i.trim();this.topNS[""]=b,vi(this,"",b)}}pushAttribPlain(e,i){var r;const n={name:e,value:i};this.attribList.push(n),(r=this.attributeHandler)===null||r===void 0||r.call(this,n)}end(){var e,i;this.sawRoot||this.fail("document must contain a root element.");const{tags:r}=this;for(;r.length>0;){const a=r.pop();this.fail(`unclosed tag: ${a.name}`)}this.state!==cr&&this.state!==le&&this.fail("unexpected end.");const{text:n}=this;return n.length!==0&&((e=this.textHandler)===null||e===void 0||e.call(this,n),this.text=""),this._closed=!0,(i=this.endHandler)===null||i===void 0||i.call(this),this._init(),this}resolve(e){var i,r;let n=this.topNS[e];if(n!==void 0)return n;const{tags:a}=this;for(let u=a.length-1;u>=0;u--)if(n=a[u].ns[e],n!==void 0)return n;return n=this.ns[e],n!==void 0?n:(r=(i=this.opt).resolvePrefix)===null||r===void 0?void 0:r.call(i,e)}qname(e){const i=e.indexOf(":");if(i===-1)return{prefix:"",local:e};const r=e.slice(i+1),n=e.slice(0,i);return(n===""||r===""||r.includes(":"))&&this.fail(`malformed name: ${e}.`),{prefix:n,local:r}}processAttribsNS(){var e;const{attribList:i}=this,r=this.tag;{const{prefix:u,local:b}=this.qname(r.name);r.prefix=u,r.local=b;const g=r.uri=(e=this.resolve(u))!==null&&e!==void 0?e:"";u!==""&&(u==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),g===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(u)}.`),r.uri=u))}if(i.length===0)return;const{attributes:n}=r,a=new Set;for(const u of i){const{name:b,prefix:g,local:d}=u;let _,l;g===""?(_=b==="xmlns"?Je:"",l=b):(_=this.resolve(g),_===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(g)}.`),_=g),l=`{${_}}${d}`),a.has(l)&&this.fail(`duplicate attribute: ${l}.`),a.add(l),u.uri=_,n[b]=u}this.attribList=[]}processAttribsPlain(){const{attribList:e}=this,i=this.tag.attributes;for(const{name:r,value:n}of e)i[r]!==void 0&&this.fail(`duplicate attribute: ${r}.`),i[r]=n;this.attribList=[]}openTag(){var e;this.processAttribs();const{tags:i}=this,r=this.tag;r.isSelfClosing=!1,(e=this.openTagHandler)===null||e===void 0||e.call(this,r),i.push(r),this.state=le,this.name=""}openSelfClosingTag(){var e,i,r;this.processAttribs();const{tags:n}=this,a=this.tag;a.isSelfClosing=!0,(e=this.openTagHandler)===null||e===void 0||e.call(this,a),(i=this.closeTagHandler)===null||i===void 0||i.call(this,a),(this.tag=(r=n[n.length-1])!==null&&r!==void 0?r:null)===null&&(this.closedRoot=!0),this.state=le,this.name=""}closeTag(){const{tags:e,name:i}=this;if(this.state=le,this.name="",i===""){this.fail("weird empty close tag."),this.text+="";return}const r=this.closeTagHandler;let n=e.length;for(;n-- >0;){const a=this.tag=e.pop();if(this.topNS=a.ns,r==null||r(a),a.name===i)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${i}.`),this.text+=``)}parseEntity(e){if(e[0]!=="#"){const r=this.ENTITIES[e];return r!==void 0?r:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),`&${e};`)}let i=NaN;return e[1]==="x"&&/^#x[0-9a-f]+$/i.test(e)?i=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(i=parseInt(e.slice(1),10)),this.isChar(i)?String.fromCodePoint(i):(this.fail("malformed character entity."),`&${e};`)}}it.SaxesParser=Ss;var An={exports:{}},fi={exports:{}},Z={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,i){return t.slice(e,i)},Error,FunctionPrototypeCall(t,e,...i){return t.call(e,...i)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,i){return Object.defineProperty(t,e,i)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,i){return t.then(e,i)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,i){return t.slice(e,i)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,i){return t.set(e,i)},Boolean,Uint8Array},Fn={exports:{}};(function(t){const e=je,{kResistStopPropagation:i,SymbolDispose:r}=Z,n=globalThis.AbortSignal||pt().AbortSignal,a=globalThis.AbortController||pt().AbortController,u=Object.getPrototypeOf(async function(){}).constructor,b=globalThis.Blob||e.Blob,g=typeof b<"u"?function(h){return h instanceof b}:function(h){return!1},d=(p,h)=>{if(p!==void 0&&(p===null||typeof p!="object"||!("aborted"in p)))throw new ERR_INVALID_ARG_TYPE(h,"AbortSignal",p)},_=(p,h)=>{if(typeof p!="function")throw new ERR_INVALID_ARG_TYPE(h,"Function",p)};class l extends Error{constructor(h){if(!Array.isArray(h))throw new TypeError(`Expected input to be an Array, got ${typeof h}`);let F="";for(let w=0;w{p=w,h=A}),resolve:p,reject:h}},promisify(p){return new Promise((h,F)=>{p((w,...A)=>w?F(w):h(...A))})},debuglog(){return function(){}},format(p,...h){return p.replace(/%([sdifj])/g,function(...[F,w]){const A=h.shift();return w==="f"?A.toFixed(6):w==="j"?JSON.stringify(A):w==="s"&&typeof A=="object"?`${A.constructor!==Object?A.constructor.name:""} {}`.trim():A.toString()})},inspect(p){switch(typeof p){case"string":if(p.includes("'"))if(p.includes('"')){if(!p.includes("`")&&!p.includes("${"))return`\`${p}\``}else return`"${p}"`;return`'${p}'`;case"number":return isNaN(p)?"NaN":Object.is(p,-0)?String(p):p;case"bigint":return`${String(p)}n`;case"boolean":case"undefined":return String(p);case"object":return"{}"}},types:{isAsyncFunction(p){return p instanceof u},isArrayBufferView(p){return ArrayBuffer.isView(p)}},isBlob:g,deprecate(p,h){return p},addAbortListener:Pt.addAbortListener||function(h,F){if(h===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",h);d(h,"signal"),_(F,"listener");let w;return h.aborted?queueMicrotask(()=>F()):(h.addEventListener("abort",F,{__proto__:null,once:!0,[i]:!0}),w=()=>{h.removeEventListener("abort",F)}),{__proto__:null,[r](){var A;(A=w)===null||A===void 0||A()}}},AbortSignalAny:n.any||function(h){if(h.length===1)return h[0];const F=new a,w=()=>F.abort();return h.forEach(A=>{d(A,"signals"),A.addEventListener("abort",w,{once:!0})}),F.signal.addEventListener("abort",()=>{h.forEach(A=>A.removeEventListener("abort",w))},{once:!0}),F.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Fn);var ue=Fn.exports,Ui={};const{format:Es,inspect:Ct,AggregateError:ms}=ue,Rs=globalThis.AggregateError||ms,As=Symbol("kIsNodeError"),Fs=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Ds=/^([A-Z][a-z0-9]*)+$/,xs="__node_internal_",Mt={};function ke(t,e){if(!t)throw new Mt.ERR_INTERNAL_ASSERTION(e)}function Fr(t){let e="",i=t.length;const r=t[0]==="-"?1:0;for(;i>=r+4;i-=3)e=`_${t.slice(i-3,i)}${e}`;return`${t.slice(0,i)}${e}`}function Ts(t,e,i){if(typeof e=="function")return ke(e.length<=i.length,`Code: ${t}; The provided arguments length (${i.length}) does not match the required ones (${e.length}).`),e(...i);const r=(e.match(/%[dfijoOs]/g)||[]).length;return ke(r===i.length,`Code: ${t}; The provided arguments length (${i.length}) does not match the required ones (${r}).`),i.length===0?e:Es(e,...i)}function oe(t,e,i){i||(i=Error);class r extends i{constructor(...a){super(Ts(t,e,a))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(r.prototype,{name:{value:i.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),r.prototype.code=t,r.prototype[As]=!0,Mt[t]=r}function Dr(t){const e=xs+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Ns(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const i=new Rs([e,t],e.message);return i.code=e.code,i}return t||e}let vs=class extends Error{constructor(e="The operation was aborted",i=void 0){if(i!==void 0&&typeof i!="object")throw new Mt.ERR_INVALID_ARG_TYPE("options","Object",i);super(e,i),this.code="ABORT_ERR",this.name="AbortError"}};oe("ERR_ASSERTION","%s",Error);oe("ERR_INVALID_ARG_TYPE",(t,e,i)=>{ke(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let r="The ";t.endsWith(" argument")?r+=`${t} `:r+=`"${t}" ${t.includes(".")?"property":"argument"} `,r+="must be ";const n=[],a=[],u=[];for(const g of e)ke(typeof g=="string","All expected entries have to be of type string"),Fs.includes(g)?n.push(g.toLowerCase()):Ds.test(g)?a.push(g):(ke(g!=="object",'The value "object" should be written as "Object"'),u.push(g));if(a.length>0){const g=n.indexOf("object");g!==-1&&(n.splice(n,g,1),a.push("Object"))}if(n.length>0){switch(n.length){case 1:r+=`of type ${n[0]}`;break;case 2:r+=`one of type ${n[0]} or ${n[1]}`;break;default:{const g=n.pop();r+=`one of type ${n.join(", ")}, or ${g}`}}(a.length>0||u.length>0)&&(r+=" or ")}if(a.length>0){switch(a.length){case 1:r+=`an instance of ${a[0]}`;break;case 2:r+=`an instance of ${a[0]} or ${a[1]}`;break;default:{const g=a.pop();r+=`an instance of ${a.join(", ")}, or ${g}`}}u.length>0&&(r+=" or ")}switch(u.length){case 0:break;case 1:u[0].toLowerCase()!==u[0]&&(r+="an "),r+=`${u[0]}`;break;case 2:r+=`one of ${u[0]} or ${u[1]}`;break;default:{const g=u.pop();r+=`one of ${u.join(", ")}, or ${g}`}}if(i==null)r+=`. Received ${i}`;else if(typeof i=="function"&&i.name)r+=`. Received function ${i.name}`;else if(typeof i=="object"){var b;if((b=i.constructor)!==null&&b!==void 0&&b.name)r+=`. Received an instance of ${i.constructor.name}`;else{const g=Ct(i,{depth:-1});r+=`. Received ${g}`}}else{let g=Ct(i,{colors:!1});g.length>25&&(g=`${g.slice(0,25)}...`),r+=`. Received type ${typeof i} (${g})`}return r},TypeError);oe("ERR_INVALID_ARG_VALUE",(t,e,i="is invalid")=>{let r=Ct(e);return r.length>128&&(r=r.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${i}. Received ${r}`},TypeError);oe("ERR_INVALID_RETURN_VALUE",(t,e,i)=>{var r;const n=i!=null&&(r=i.constructor)!==null&&r!==void 0&&r.name?`instance of ${i.constructor.name}`:`type ${typeof i}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);oe("ERR_MISSING_ARGS",(...t)=>{ke(t.length>0,"At least one arg needs to be specified");let e;const i=t.length;switch(t=(Array.isArray(t)?t:[t]).map(r=>`"${r}"`).join(" or "),i){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const r=t.pop();e+=`The ${t.join(", ")}, and ${r} arguments`}break}return`${e} must be specified`},TypeError);oe("ERR_OUT_OF_RANGE",(t,e,i)=>{ke(e,'Missing "range" argument');let r;return Number.isInteger(i)&&Math.abs(i)>2**32?r=Fr(String(i)):typeof i=="bigint"?(r=String(i),(i>2n**32n||i<-(2n**32n))&&(r=Fr(r)),r+="n"):r=Ct(i),`The value of "${t}" is out of range. It must be ${e}. Received ${r}`},RangeError);oe("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);oe("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);oe("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);oe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);oe("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);oe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);oe("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);oe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);oe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);oe("ERR_STREAM_WRITE_AFTER_END","write after end",Error);oe("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var fe={AbortError:vs,aggregateTwoErrors:Dr(Ns),hideStackFrames:Dr,codes:Mt};const{ArrayIsArray:Vi,ArrayPrototypeIncludes:Dn,ArrayPrototypeJoin:xn,ArrayPrototypeMap:Cs,NumberIsInteger:Gi,NumberIsNaN:Is,NumberMAX_SAFE_INTEGER:$s,NumberMIN_SAFE_INTEGER:Ps,NumberParseInt:Ms,ObjectPrototypeHasOwnProperty:Os,RegExpPrototypeExec:Tn,String:Ls,StringPrototypeToUpperCase:ks,StringPrototypeTrim:Ws}=Z,{hideStackFrames:he,codes:{ERR_SOCKET_BAD_PORT:js,ERR_INVALID_ARG_TYPE:ae,ERR_INVALID_ARG_VALUE:ot,ERR_OUT_OF_RANGE:We,ERR_UNKNOWN_SIGNAL:xr}}=fe,{normalizeEncoding:Bs}=ue,{isAsyncFunction:Hs,isArrayBufferView:Us}=ue.types,Tr={};function Vs(t){return t===(t|0)}function Gs(t){return t===t>>>0}const qs=/^[0-7]+$/,Xs="must be a 32-bit unsigned integer or an octal string";function Ys(t,e,i){if(typeof t>"u"&&(t=i),typeof t=="string"){if(Tn(qs,t)===null)throw new ot(e,t,Xs);t=Ms(t,8)}return Nn(t,e),t}const Ks=he((t,e,i=Ps,r=$s)=>{if(typeof t!="number")throw new ae(e,"number",t);if(!Gi(t))throw new We(e,"an integer",t);if(tr)throw new We(e,`>= ${i} && <= ${r}`,t)}),zs=he((t,e,i=-2147483648,r=2147483647)=>{if(typeof t!="number")throw new ae(e,"number",t);if(!Gi(t))throw new We(e,"an integer",t);if(tr)throw new We(e,`>= ${i} && <= ${r}`,t)}),Nn=he((t,e,i=!1)=>{if(typeof t!="number")throw new ae(e,"number",t);if(!Gi(t))throw new We(e,"an integer",t);const r=i?1:0,n=4294967295;if(tn)throw new We(e,`>= ${r} && <= ${n}`,t)});function qi(t,e){if(typeof t!="string")throw new ae(e,"string",t)}function Qs(t,e,i=void 0,r){if(typeof t!="number")throw new ae(e,"number",t);if(i!=null&&tr||(i!=null||r!=null)&&Is(t))throw new We(e,`${i!=null?`>= ${i}`:""}${i!=null&&r!=null?" && ":""}${r!=null?`<= ${r}`:""}`,t)}const Zs=he((t,e,i)=>{if(!Dn(i,t)){const n="must be one of: "+xn(Cs(i,a=>typeof a=="string"?`'${a}'`:Ls(a)),", ");throw new ot(e,t,n)}});function vn(t,e){if(typeof t!="boolean")throw new ae(e,"boolean",t)}function ci(t,e,i){return t==null||!Os(t,e)?i:t[e]}const Js=he((t,e,i=null)=>{const r=ci(i,"allowArray",!1),n=ci(i,"allowFunction",!1);if(!ci(i,"nullable",!1)&&t===null||!r&&Vi(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new ae(e,"Object",t)}),ea=he((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new ae(e,"a dictionary",t)}),Ot=he((t,e,i=0)=>{if(!Vi(t))throw new ae(e,"Array",t);if(t.length{if(!Us(t))throw new ae(e,["Buffer","TypedArray","DataView"],t)});function sa(t,e){const i=Bs(e),r=t.length;if(i==="hex"&&r%2!==0)throw new ot("encoding",e,`is invalid for data of length ${r}`)}function aa(t,e="Port",i=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&Ws(t).length===0||+t!==+t>>>0||t>65535||t===0&&!i)throw new js(e,t,i);return t|0}const Cn=he((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new ae(e,"AbortSignal",t)}),la=he((t,e)=>{if(typeof t!="function")throw new ae(e,"Function",t)}),ua=he((t,e)=>{if(typeof t!="function"||Hs(t))throw new ae(e,"Function",t)}),da=he((t,e)=>{if(t!==void 0)throw new ae(e,"undefined",t)});function fa(t,e,i){if(!Dn(i,t))throw new ae(e,`('${xn(i,"|")}')`,t)}const ca=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Nr(t,e){if(typeof t>"u"||!Tn(ca,t))throw new ot(e,t,'must be an array or string of format "; rel=preload; as=style"')}function ha(t){if(typeof t=="string")return Nr(t,"hints"),t;if(Vi(t)){const e=t.length;let i="";if(e===0)return i;for(let r=0;r; rel=preload; as=style"')}var _t={isInt32:Vs,isUint32:Gs,parseFileMode:Ys,validateArray:Ot,validateStringArray:ta,validateBooleanArray:ia,validateAbortSignalArray:ra,validateBoolean:vn,validateBuffer:oa,validateDictionary:ea,validateEncoding:sa,validateFunction:la,validateInt32:zs,validateInteger:Ks,validateNumber:Qs,validateObject:Js,validateOneOf:Zs,validatePlainFunction:ua,validatePort:aa,validateSignalName:na,validateString:qi,validateUint32:Nn,validateUndefined:da,validateUnion:fa,validateAbortSignal:Cn,validateLinkHeaderValue:ha},Xi={exports:{}};const{SymbolAsyncIterator:vr,SymbolIterator:Cr,SymbolFor:He}=Z,In=He("nodejs.stream.destroyed"),$n=He("nodejs.stream.errored"),Ci=He("nodejs.stream.readable"),Ii=He("nodejs.stream.writable"),Pn=He("nodejs.stream.disturbed"),ba=He("nodejs.webstream.isClosedPromise"),pa=He("nodejs.webstream.controllerErrorFunction");function Lt(t,e=!1){var i;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((i=t._readableState)===null||i===void 0?void 0:i.readable)!==!1)&&(!t._writableState||t._readableState))}function kt(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function _a(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function ye(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function Mn(t){return!!(t&&!ye(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function On(t){return!!(t&&!ye(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function Ln(t){return!!(t&&!ye(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function ga(t){return Mn(t)||On(t)||Ln(t)}function wa(t,e){return t==null?!1:e===!0?typeof t[vr]=="function":e===!1?typeof t[Cr]=="function":typeof t[vr]=="function"||typeof t[Cr]=="function"}function Wt(t){if(!ye(t))return null;const e=t._writableState,i=t._readableState,r=e||i;return!!(t.destroyed||t[In]||r!=null&&r.destroyed)}function kn(t){if(!kt(t))return null;if(t.writableEnded===!0)return!0;const e=t._writableState;return e!=null&&e.errored?!1:typeof(e==null?void 0:e.ended)!="boolean"?null:e.ended}function ya(t,e){if(!kt(t))return null;if(t.writableFinished===!0)return!0;const i=t._writableState;return i!=null&&i.errored?!1:typeof(i==null?void 0:i.finished)!="boolean"?null:!!(i.finished||e===!1&&i.ended===!0&&i.length===0)}function Sa(t){if(!Lt(t))return null;if(t.readableEnded===!0)return!0;const e=t._readableState;return!e||e.errored?!1:typeof(e==null?void 0:e.ended)!="boolean"?null:e.ended}function Wn(t,e){if(!Lt(t))return null;const i=t._readableState;return i!=null&&i.errored?!1:typeof(i==null?void 0:i.endEmitted)!="boolean"?null:!!(i.endEmitted||e===!1&&i.ended===!0&&i.length===0)}function jn(t){return t&&t[Ci]!=null?t[Ci]:typeof(t==null?void 0:t.readable)!="boolean"?null:Wt(t)?!1:Lt(t)&&t.readable&&!Wn(t)}function Bn(t){return t&&t[Ii]!=null?t[Ii]:typeof(t==null?void 0:t.writable)!="boolean"?null:Wt(t)?!1:kt(t)&&t.writable&&!kn(t)}function Ea(t,e){return ye(t)?Wt(t)?!0:!((e==null?void 0:e.readable)!==!1&&jn(t)||(e==null?void 0:e.writable)!==!1&&Bn(t)):null}function ma(t){var e,i;return ye(t)?t.writableErrored?t.writableErrored:(e=(i=t._writableState)===null||i===void 0?void 0:i.errored)!==null&&e!==void 0?e:null:null}function Ra(t){var e,i;return ye(t)?t.readableErrored?t.readableErrored:(e=(i=t._readableState)===null||i===void 0?void 0:i.errored)!==null&&e!==void 0?e:null:null}function Aa(t){if(!ye(t))return null;if(typeof t.closed=="boolean")return t.closed;const e=t._writableState,i=t._readableState;return typeof(e==null?void 0:e.closed)=="boolean"||typeof(i==null?void 0:i.closed)=="boolean"?(e==null?void 0:e.closed)||(i==null?void 0:i.closed):typeof t._closed=="boolean"&&Hn(t)?t._closed:null}function Hn(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function Un(t){return typeof t._sent100=="boolean"&&Hn(t)}function Fa(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function Da(t){if(!ye(t))return null;const e=t._writableState,i=t._readableState,r=e||i;return!r&&Un(t)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}function xa(t){var e;return!!(t&&((e=t[Pn])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function Ta(t){var e,i,r,n,a,u,b,g,d,_;return!!(t&&((e=(i=(r=(n=(a=(u=t[$n])!==null&&u!==void 0?u:t.readableErrored)!==null&&a!==void 0?a:t.writableErrored)!==null&&n!==void 0?n:(b=t._readableState)===null||b===void 0?void 0:b.errorEmitted)!==null&&r!==void 0?r:(g=t._writableState)===null||g===void 0?void 0:g.errorEmitted)!==null&&i!==void 0?i:(d=t._readableState)===null||d===void 0?void 0:d.errored)!==null&&e!==void 0?e:!((_=t._writableState)===null||_===void 0)&&_.errored))}var De={isDestroyed:Wt,kIsDestroyed:In,isDisturbed:xa,kIsDisturbed:Pn,isErrored:Ta,kIsErrored:$n,isReadable:jn,kIsReadable:Ci,kIsClosedPromise:ba,kControllerErrorFunction:pa,kIsWritable:Ii,isClosed:Aa,isDuplexNodeStream:_a,isFinished:Ea,isIterable:wa,isReadableNodeStream:Lt,isReadableStream:Mn,isReadableEnded:Sa,isReadableFinished:Wn,isReadableErrored:Ra,isNodeStream:ye,isWebStream:ga,isWritable:Bn,isWritableNodeStream:kt,isWritableStream:On,isWritableEnded:kn,isWritableFinished:ya,isWritableErrored:ma,isServerRequest:Fa,isServerResponse:Un,willEmitClose:Da,isTransformStream:Ln};const Ne=Be,{AbortError:Vn,codes:Na}=fe,{ERR_INVALID_ARG_TYPE:va,ERR_STREAM_PREMATURE_CLOSE:Ir}=Na,{kEmptyObject:$i,once:Pi}=ue,{validateAbortSignal:Ca,validateFunction:Ia,validateObject:$a,validateBoolean:Pa}=_t,{Promise:Ma,PromisePrototypeThen:Oa,SymbolDispose:Gn}=Z,{isClosed:La,isReadable:$r,isReadableNodeStream:hi,isReadableStream:ka,isReadableFinished:Pr,isReadableErrored:Mr,isWritable:Or,isWritableNodeStream:Lr,isWritableStream:Wa,isWritableFinished:kr,isWritableErrored:Wr,isNodeStream:ja,willEmitClose:Ba,kIsClosedPromise:Ha}=De;let et;function Ua(t){return t.setHeader&&typeof t.abort=="function"}const Mi=()=>{};function qn(t,e,i){var r,n;if(arguments.length===2?(i=e,e=$i):e==null?e=$i:$a(e,"options"),Ia(i,"callback"),Ca(e.signal,"options.signal"),i=Pi(i),ka(t)||Wa(t))return Va(t,e,i);if(!ja(t))throw new va("stream",["ReadableStream","WritableStream","Stream"],t);const a=(r=e.readable)!==null&&r!==void 0?r:hi(t),u=(n=e.writable)!==null&&n!==void 0?n:Lr(t),b=t._writableState,g=t._readableState,d=()=>{t.writable||p()};let _=Ba(t)&&hi(t)===a&&Lr(t)===u,l=kr(t,!1);const p=()=>{l=!0,t.destroyed&&(_=!1),!(_&&(!t.readable||a))&&(!a||h)&&i.call(t)};let h=Pr(t,!1);const F=()=>{h=!0,t.destroyed&&(_=!1),!(_&&(!t.writable||u))&&(!u||l)&&i.call(t)},w=$=>{i.call(t,$)};let A=La(t);const I=()=>{A=!0;const $=Wr(t)||Mr(t);if($&&typeof $!="boolean")return i.call(t,$);if(a&&!h&&hi(t,!0)&&!Pr(t,!1))return i.call(t,new Ir);if(u&&!l&&!kr(t,!1))return i.call(t,new Ir);i.call(t)},v=()=>{A=!0;const $=Wr(t)||Mr(t);if($&&typeof $!="boolean")return i.call(t,$);i.call(t)},S=()=>{t.req.on("finish",p)};Ua(t)?(t.on("complete",p),_||t.on("abort",I),t.req?S():t.on("request",S)):u&&!b&&(t.on("end",d),t.on("close",d)),!_&&typeof t.aborted=="boolean"&&t.on("aborted",I),t.on("end",F),t.on("finish",p),e.error!==!1&&t.on("error",w),t.on("close",I),A?Ne.nextTick(I):b!=null&&b.errorEmitted||g!=null&&g.errorEmitted?_||Ne.nextTick(v):(!a&&(!_||$r(t))&&(l||Or(t)===!1)||!u&&(!_||Or(t))&&(h||$r(t)===!1)||g&&t.req&&t.aborted)&&Ne.nextTick(v);const j=()=>{i=Mi,t.removeListener("aborted",I),t.removeListener("complete",p),t.removeListener("abort",I),t.removeListener("request",S),t.req&&t.req.removeListener("finish",p),t.removeListener("end",d),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("end",F),t.removeListener("error",w),t.removeListener("close",I)};if(e.signal&&!A){const $=()=>{const V=i;j(),V.call(t,new Vn(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Ne.nextTick($);else{et=et||ue.addAbortListener;const V=et(e.signal,$),ie=i;i=Pi((...H)=>{V[Gn](),ie.apply(t,H)})}}return j}function Va(t,e,i){let r=!1,n=Mi;if(e.signal)if(n=()=>{r=!0,i.call(t,new Vn(void 0,{cause:e.signal.reason}))},e.signal.aborted)Ne.nextTick(n);else{et=et||ue.addAbortListener;const u=et(e.signal,n),b=i;i=Pi((...g)=>{u[Gn](),b.apply(t,g)})}const a=(...u)=>{r||Ne.nextTick(()=>i.apply(t,u))};return Oa(t[Ha].promise,a,a),Mi}function Ga(t,e){var i;let r=!1;return e===null&&(e=$i),(i=e)!==null&&i!==void 0&&i.cleanup&&(Pa(e.cleanup,"cleanup"),r=e.cleanup),new Ma((n,a)=>{const u=qn(t,e,b=>{r&&u(),b?a(b):n()})})}Xi.exports=qn;Xi.exports.finished=Ga;var Ce=Xi.exports;const ge=Be,{aggregateTwoErrors:qa,codes:{ERR_MULTIPLE_CALLBACK:Xa},AbortError:Ya}=fe,{Symbol:Xn}=Z,{kIsDestroyed:Ka,isDestroyed:za,isFinished:Qa,isServerRequest:Za}=De,Yn=Xn("kDestroy"),Oi=Xn("kConstruct");function Kn(t,e,i){t&&(t.stack,e&&!e.errored&&(e.errored=t),i&&!i.errored&&(i.errored=t))}function Ja(t,e){const i=this._readableState,r=this._writableState,n=r||i;return r!=null&&r.destroyed||i!=null&&i.destroyed?(typeof e=="function"&&e(),this):(Kn(t,r,i),r&&(r.destroyed=!0),i&&(i.destroyed=!0),n.constructed?jr(this,t,e):this.once(Yn,function(a){jr(this,qa(a,t),e)}),this)}function jr(t,e,i){let r=!1;function n(a){if(r)return;r=!0;const u=t._readableState,b=t._writableState;Kn(a,b,u),b&&(b.closed=!0),u&&(u.closed=!0),typeof i=="function"&&i(a),a?ge.nextTick(el,t,a):ge.nextTick(zn,t)}try{t._destroy(e||null,n)}catch(a){n(a)}}function el(t,e){Li(t,e),zn(t)}function zn(t){const e=t._readableState,i=t._writableState;i&&(i.closeEmitted=!0),e&&(e.closeEmitted=!0),(i!=null&&i.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function Li(t,e){const i=t._readableState,r=t._writableState;r!=null&&r.errorEmitted||i!=null&&i.errorEmitted||(r&&(r.errorEmitted=!0),i&&(i.errorEmitted=!0),t.emit("error",e))}function tl(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function ki(t,e,i){const r=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||r!=null&&r.destroyed)return this;r!=null&&r.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),r&&!r.errored&&(r.errored=e),i?ge.nextTick(Li,t,e):Li(t,e))}function il(t,e){if(typeof t._construct!="function")return;const i=t._readableState,r=t._writableState;i&&(i.constructed=!1),r&&(r.constructed=!1),t.once(Oi,e),!(t.listenerCount(Oi)>1)&&ge.nextTick(rl,t)}function rl(t){let e=!1;function i(r){if(e){ki(t,r??new Xa);return}e=!0;const n=t._readableState,a=t._writableState,u=a||n;n&&(n.constructed=!0),a&&(a.constructed=!0),u.destroyed?t.emit(Yn,r):r?ki(t,r,!0):ge.nextTick(nl,t)}try{t._construct(r=>{ge.nextTick(i,r)})}catch(r){ge.nextTick(i,r)}}function nl(t){t.emit(Oi)}function Br(t){return(t==null?void 0:t.setHeader)&&typeof t.abort=="function"}function Qn(t){t.emit("close")}function ol(t,e){t.emit("error",e),ge.nextTick(Qn,t)}function sl(t,e){!t||za(t)||(!e&&!Qa(t)&&(e=new Ya),Za(t)?(t.socket=null,t.destroy(e)):Br(t)?t.abort():Br(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?ge.nextTick(ol,t,e):ge.nextTick(Qn,t),t.destroyed||(t[Ka]=!0))}var st={construct:il,destroyer:sl,destroy:Ja,undestroy:tl,errorOrDestroy:ki};const{ArrayIsArray:al,ObjectSetPrototypeOf:Zn}=Z,{EventEmitter:jt}=Pt;function Bt(t){jt.call(this,t)}Zn(Bt.prototype,jt.prototype);Zn(Bt,jt);Bt.prototype.pipe=function(t,e){const i=this;function r(_){t.writable&&t.write(_)===!1&&i.pause&&i.pause()}i.on("data",r);function n(){i.readable&&i.resume&&i.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(i.on("end",u),i.on("close",b));let a=!1;function u(){a||(a=!0,t.end())}function b(){a||(a=!0,typeof t.destroy=="function"&&t.destroy())}function g(_){d(),jt.listenerCount(this,"error")===0&&this.emit("error",_)}Wi(i,"error",g),Wi(t,"error",g);function d(){i.removeListener("data",r),t.removeListener("drain",n),i.removeListener("end",u),i.removeListener("close",b),i.removeListener("error",g),t.removeListener("error",g),i.removeListener("end",d),i.removeListener("close",d),t.removeListener("close",d)}return i.on("end",d),i.on("close",d),t.on("close",d),t.emit("pipe",i),t};function Wi(t,e,i){if(typeof t.prependListener=="function")return t.prependListener(e,i);!t._events||!t._events[e]?t.on(e,i):al(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]}var Yi={Stream:Bt,prependListener:Wi},Jn={exports:{}};(function(t){const{SymbolDispose:e}=Z,{AbortError:i,codes:r}=fe,{isNodeStream:n,isWebStream:a,kControllerErrorFunction:u}=De,b=Ce,{ERR_INVALID_ARG_TYPE:g}=r;let d;const _=(l,p)=>{if(typeof l!="object"||!("aborted"in l))throw new g(p,"AbortSignal",l)};t.exports.addAbortSignal=function(p,h){if(_(p,"signal"),!n(h)&&!a(h))throw new g("stream",["ReadableStream","WritableStream","Stream"],h);return t.exports.addAbortSignalNoValidate(p,h)},t.exports.addAbortSignalNoValidate=function(l,p){if(typeof l!="object"||!("aborted"in l))return p;const h=n(p)?()=>{p.destroy(new i(void 0,{cause:l.reason}))}:()=>{p[u](new i(void 0,{cause:l.reason}))};if(l.aborted)h();else{d=d||ue.addAbortListener;const F=d(l,h);b(p,F[e])}return p}})(Jn);var Ht=Jn.exports;const{StringPrototypeSlice:Hr,SymbolIterator:ll,TypedArrayPrototypeSet:Ft,Uint8Array:ul}=Z,{Buffer:bi}=je,{inspect:dl}=ue;var fl=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const i={data:e,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}unshift(e){const i={data:e,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}shift(){if(this.length===0)return;const e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let i=this.head,r=""+i.data;for(;(i=i.next)!==null;)r+=e+i.data;return r}concat(e){if(this.length===0)return bi.alloc(0);const i=bi.allocUnsafe(e>>>0);let r=this.head,n=0;for(;r;)Ft(i,r.data,n),n+=r.data.length,r=r.next;return i}consume(e,i){const r=this.head.data;if(ea.length)i+=a,e-=a.length;else{e===a.length?(i+=a,++n,r.next?this.head=r.next:this.head=this.tail=null):(i+=Hr(a,0,e),this.head=r,r.data=Hr(a,e));break}++n}while((r=r.next)!==null);return this.length-=n,i}_getBuffer(e){const i=bi.allocUnsafe(e),r=e;let n=this.head,a=0;do{const u=n.data;if(e>u.length)Ft(i,u,r-e),e-=u.length;else{e===u.length?(Ft(i,u,r-e),++a,n.next?this.head=n.next:this.head=this.tail=null):(Ft(i,new ul(u.buffer,u.byteOffset,e),r-e),this.head=n,n.data=u.slice(e));break}++a}while((n=n.next)!==null);return this.length-=a,i}[Symbol.for("nodejs.util.inspect.custom")](e,i){return dl(this,{...i,depth:0,customInspect:!1})}};const{MathFloor:cl,NumberIsInteger:hl}=Z,{validateInteger:bl}=_t,{ERR_INVALID_ARG_VALUE:pl}=fe.codes;let eo=16*1024,to=16;function _l(t,e,i){return t.highWaterMark!=null?t.highWaterMark:e?t[i]:null}function io(t){return t?to:eo}function gl(t,e){bl(e,"value",0),t?to=e:eo=e}function wl(t,e,i,r){const n=_l(e,r,i);if(n!=null){if(!hl(n)||n<0){const a=r?`options.${i}`:"options.highWaterMark";throw new pl(a,n)}return cl(n)}return io(t.objectMode)}var Ut={getHighWaterMark:wl,getDefaultHighWaterMark:io,setDefaultHighWaterMark:gl};const Ur=Be,{PromisePrototypeThen:yl,SymbolAsyncIterator:Vr,SymbolIterator:Gr}=Z,{Buffer:Sl}=je,{ERR_INVALID_ARG_TYPE:El,ERR_STREAM_NULL_VALUES:ml}=fe.codes;function Rl(t,e,i){let r;if(typeof e=="string"||e instanceof Sl)return new t({objectMode:!0,...i,read(){this.push(e),this.push(null)}});let n;if(e&&e[Vr])n=!0,r=e[Vr]();else if(e&&e[Gr])n=!1,r=e[Gr]();else throw new El("iterable",["Iterable"],e);const a=new t({objectMode:!0,highWaterMark:1,...i});let u=!1;a._read=function(){u||(u=!0,g())},a._destroy=function(d,_){yl(b(d),()=>Ur.nextTick(_,d),l=>Ur.nextTick(_,l||d))};async function b(d){const _=d!=null,l=typeof r.throw=="function";if(_&&l){const{value:p,done:h}=await r.throw(d);if(await p,h)return}if(typeof r.return=="function"){const{value:p}=await r.return();await p}}async function g(){for(;;){try{const{value:d,done:_}=n?await r.next():r.next();if(_)a.push(null);else{const l=d&&typeof d.then=="function"?await d:d;if(l===null)throw u=!1,new ml;if(a.push(l))continue;u=!1}}catch(d){a.destroy(d)}break}}return a}var ro=Rl,pi,qr;function Vt(){if(qr)return pi;qr=1;const t=Be,{ArrayPrototypeIndexOf:e,NumberIsInteger:i,NumberIsNaN:r,NumberParseInt:n,ObjectDefineProperties:a,ObjectKeys:u,ObjectSetPrototypeOf:b,Promise:g,SafeSet:d,SymbolAsyncDispose:_,SymbolAsyncIterator:l,Symbol:p}=Z;pi=C,C.ReadableState=Ee;const{EventEmitter:h}=Pt,{Stream:F,prependListener:w}=Yi,{Buffer:A}=je,{addAbortSignal:I}=Ht,v=Ce;let S=ue.debuglog("stream",o=>{S=o});const j=fl,$=st,{getHighWaterMark:V,getDefaultHighWaterMark:ie}=Ut,{aggregateTwoErrors:H,codes:{ERR_INVALID_ARG_TYPE:q,ERR_METHOD_NOT_IMPLEMENTED:re,ERR_OUT_OF_RANGE:te,ERR_STREAM_PUSH_AFTER_EOF:O,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:E},AbortError:k}=fe,{validateObject:P}=_t,M=p("kPaused"),{StringDecoder:X}=vo,Q=ro;b(C.prototype,F.prototype),b(C,F);const Y=()=>{},{errorOrDestroy:K}=$,W=1,Se=2,N=4,J=8,pe=16,Ge=32,qe=64,Xe=128,at=256,Xt=512,lt=1024,Ye=2048,f=4096,c=8192,y=16384,x=32768,T=65536,U=1<<17,z=1<<18;function B(o){return{enumerable:!1,get(){return(this.state&o)!==0},set(s){s?this.state|=o:this.state&=~o}}}a(Ee.prototype,{objectMode:B(W),ended:B(Se),endEmitted:B(N),reading:B(J),constructed:B(pe),sync:B(Ge),needReadable:B(qe),emittedReadable:B(Xe),readableListening:B(at),resumeScheduled:B(Xt),errorEmitted:B(lt),emitClose:B(Ye),autoDestroy:B(f),destroyed:B(c),closed:B(y),closeEmitted:B(x),multiAwaitDrain:B(T),readingMore:B(U),dataEmitted:B(z)});function Ee(o,s,m){typeof m!="boolean"&&(m=s instanceof Ae()),this.state=Ye|f|pe|Ge,o&&o.objectMode&&(this.state|=W),m&&o&&o.readableObjectMode&&(this.state|=W),this.highWaterMark=o?V(this,o,"readableHighWaterMark",m):ie(!1),this.buffer=new j,this.length=0,this.pipes=[],this.flowing=null,this[M]=null,o&&o.emitClose===!1&&(this.state&=~Ye),o&&o.autoDestroy===!1&&(this.state&=~f),this.errored=null,this.defaultEncoding=o&&o.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,o&&o.encoding&&(this.decoder=new X(o.encoding),this.encoding=o.encoding)}function C(o){if(!(this instanceof C))return new C(o);const s=this instanceof Ae();this._readableState=new Ee(o,this,s),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&&!s&&I(o.signal,this)),F.call(this,o),$.construct(this,()=>{this._readableState.needReadable&&yt(this,this._readableState)})}C.prototype.destroy=$.destroy,C.prototype._undestroy=$.undestroy,C.prototype._destroy=function(o,s){s(o)},C.prototype[h.captureRejectionSymbol]=function(o){this.destroy(o)},C.prototype[_]=function(){let o;return this.destroyed||(o=this.readableEnded?null:new k,this.destroy(o)),new g((s,m)=>v(this,R=>R&&R!==o?m(R):s(null)))},C.prototype.push=function(o,s){return xe(this,o,s,!1)},C.prototype.unshift=function(o,s){return xe(this,o,s,!0)};function xe(o,s,m,R){S("readableAddChunk",s);const D=o._readableState;let se;if(D.state&W||(typeof s=="string"?(m=m||D.defaultEncoding,D.encoding!==m&&(R&&D.encoding?s=A.from(s,m).toString(D.encoding):(s=A.from(s,m),m=""))):s instanceof A?m="":F._isUint8Array(s)?(s=F._uint8ArrayToBuffer(s),m=""):s!=null&&(se=new q("chunk",["string","Buffer","Uint8Array"],s))),se)K(o,se);else if(s===null)D.state&=~J,So(o,D);else if(D.state&W||s&&s.length>0)if(R)if(D.state&N)K(o,new E);else{if(D.destroyed||D.errored)return!1;Yt(o,D,s,!0)}else if(D.ended)K(o,new O);else{if(D.destroyed||D.errored)return!1;D.state&=~J,D.decoder&&!m?(s=D.decoder.write(s),D.objectMode||s.length!==0?Yt(o,D,s,!1):yt(o,D)):Yt(o,D,s,!1)}else R||(D.state&=~J,yt(o,D));return!D.ended&&(D.length0?(s.state&T?s.awaitDrainWriters.clear():s.awaitDrainWriters=null,s.dataEmitted=!0,o.emit("data",m)):(s.length+=s.objectMode?1:m.length,R?s.buffer.unshift(m):s.buffer.push(m),s.state&qe&&wt(o)),yt(o,s)}C.prototype.isPaused=function(){const o=this._readableState;return o[M]===!0||o.flowing===!1},C.prototype.setEncoding=function(o){const s=new X(o);this._readableState.decoder=s,this._readableState.encoding=this._readableState.decoder.encoding;const m=this._readableState.buffer;let R="";for(const D of m)R+=s.write(D);return m.clear(),R!==""&&m.push(R),this._readableState.length=R.length,this};const wo=1073741824;function yo(o){if(o>wo)throw new te("size","<= 1GiB",o);return o--,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o++,o}function er(o,s){return o<=0||s.length===0&&s.ended?0:s.state&W?1:r(o)?s.flowing&&s.length?s.buffer.first().length:s.length:o<=s.length?o:s.ended?s.length:0}C.prototype.read=function(o){S("read",o),o===void 0?o=NaN:i(o)||(o=n(o,10));const s=this._readableState,m=o;if(o>s.highWaterMark&&(s.highWaterMark=yo(o)),o!==0&&(s.state&=~Xe),o===0&&s.needReadable&&((s.highWaterMark!==0?s.length>=s.highWaterMark:s.length>0)||s.ended))return S("read: emitReadable",s.length,s.ended),s.length===0&&s.ended?Kt(this):wt(this),null;if(o=er(o,s),o===0&&s.ended)return s.length===0&&Kt(this),null;let R=(s.state&qe)!==0;if(S("need readable",R),(s.length===0||s.length-o0?D=or(o,s):D=null,D===null?(s.needReadable=s.length<=s.highWaterMark,o=0):(s.length-=o,s.multiAwaitDrain?s.awaitDrainWriters.clear():s.awaitDrainWriters=null),s.length===0&&(s.ended||(s.needReadable=!0),m!==o&&s.ended&&Kt(this)),D!==null&&!s.errorEmitted&&!s.closeEmitted&&(s.dataEmitted=!0,this.emit("data",D)),D};function So(o,s){if(S("onEofChunk"),!s.ended){if(s.decoder){const m=s.decoder.end();m&&m.length&&(s.buffer.push(m),s.length+=s.objectMode?1:m.length)}s.ended=!0,s.sync?wt(o):(s.needReadable=!1,s.emittedReadable=!0,tr(o))}}function wt(o){const s=o._readableState;S("emitReadable",s.needReadable,s.emittedReadable),s.needReadable=!1,s.emittedReadable||(S("emitReadable",s.flowing),s.emittedReadable=!0,t.nextTick(tr,o))}function tr(o){const s=o._readableState;S("emitReadable_",s.destroyed,s.length,s.ended),!s.destroyed&&!s.errored&&(s.length||s.ended)&&(o.emit("readable"),s.emittedReadable=!1),s.needReadable=!s.flowing&&!s.ended&&s.length<=s.highWaterMark,rr(o)}function yt(o,s){!s.readingMore&&s.constructed&&(s.readingMore=!0,t.nextTick(Eo,o,s))}function Eo(o,s){for(;!s.reading&&!s.ended&&(s.length1&&R.pipes.includes(o)&&(S("false write response, pause",R.awaitDrainWriters.size),R.awaitDrainWriters.add(o)),m.pause()),Ie||(Ie=mo(m,o),o.on("drain",Ie))}m.on("data",dr);function dr($e){S("ondata");const me=o.write($e);S("dest.write",me),me===!1&&ur()}function Qt($e){if(S("onerror",$e),ut(),o.removeListener("error",Qt),o.listenerCount("error")===0){const me=o._writableState||o._readableState;me&&!me.errorEmitted?K(o,$e):o.emit("error",$e)}}w(o,"error",Qt);function Zt(){o.removeListener("finish",Jt),ut()}o.once("close",Zt);function Jt(){S("onfinish"),o.removeListener("close",Zt),ut()}o.once("finish",Jt);function ut(){S("unpipe"),m.unpipe(o)}return o.emit("pipe",m),o.writableNeedDrain===!0?ur():R.flowing||(S("pipe resume"),m.resume()),o};function mo(o,s){return function(){const R=o._readableState;R.awaitDrainWriters===s?(S("pipeOnDrain",1),R.awaitDrainWriters=null):R.multiAwaitDrain&&(S("pipeOnDrain",R.awaitDrainWriters.size),R.awaitDrainWriters.delete(s)),(!R.awaitDrainWriters||R.awaitDrainWriters.size===0)&&o.listenerCount("data")&&o.resume()}}C.prototype.unpipe=function(o){const s=this._readableState,m={hasUnpiped:!1};if(s.pipes.length===0)return this;if(!o){const D=s.pipes;s.pipes=[],this.pause();for(let se=0;se0,R.flowing!==!1&&this.resume()):o==="readable"&&!R.endEmitted&&!R.readableListening&&(R.readableListening=R.needReadable=!0,R.flowing=!1,R.emittedReadable=!1,S("on readable",R.length,R.reading),R.length?wt(this):R.reading||t.nextTick(Ro,this)),m},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(o,s){const m=F.prototype.removeListener.call(this,o,s);return o==="readable"&&t.nextTick(ir,this),m},C.prototype.off=C.prototype.removeListener,C.prototype.removeAllListeners=function(o){const s=F.prototype.removeAllListeners.apply(this,arguments);return(o==="readable"||o===void 0)&&t.nextTick(ir,this),s};function ir(o){const s=o._readableState;s.readableListening=o.listenerCount("readable")>0,s.resumeScheduled&&s[M]===!1?s.flowing=!0:o.listenerCount("data")>0?o.resume():s.readableListening||(s.flowing=null)}function Ro(o){S("readable nexttick read 0"),o.read(0)}C.prototype.resume=function(){const o=this._readableState;return o.flowing||(S("resume"),o.flowing=!o.readableListening,Ao(this,o)),o[M]=!1,this};function Ao(o,s){s.resumeScheduled||(s.resumeScheduled=!0,t.nextTick(Fo,o,s))}function Fo(o,s){S("resume",s.reading),s.reading||o.read(0),s.resumeScheduled=!1,o.emit("resume"),rr(o),s.flowing&&!s.reading&&o.read(0)}C.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[M]=!0,this};function rr(o){const s=o._readableState;for(S("flow",s.flowing);s.flowing&&o.read()!==null;);}C.prototype.wrap=function(o){let s=!1;o.on("data",R=>{!this.push(R)&&o.pause&&(s=!0,o.pause())}),o.on("end",()=>{this.push(null)}),o.on("error",R=>{K(this,R)}),o.on("close",()=>{this.destroy()}),o.on("destroy",()=>{this.destroy()}),this._read=()=>{s&&o.resume&&(s=!1,o.resume())};const m=u(o);for(let R=1;R{D=ce?H(D,ce):null,m(),m=Y});try{for(;;){const ce=o.destroyed?null:o.read();if(ce!==null)yield ce;else{if(D)throw D;if(D===null)return;await new g(R)}}}catch(ce){throw D=H(D,ce),D}finally{(D||(s==null?void 0:s.destroyOnReturn)!==!1)&&(D===void 0||o._readableState.autoDestroy)?$.destroyer(o,null):(o.off("readable",R),se())}}a(C.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}}}),a(Ee.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[M]!==!1},set(o){this[M]=!!o}}}),C._fromList=or;function or(o,s){if(s.length===0)return null;let m;return s.objectMode?m=s.buffer.shift():!o||o>=s.length?(s.decoder?m=s.buffer.join(""):s.buffer.length===1?m=s.buffer.first():m=s.buffer.concat(s.length),s.buffer.clear()):m=s.buffer.consume(o,s.decoder),m}function Kt(o){const s=o._readableState;S("endReadable",s.endEmitted),s.endEmitted||(s.ended=!0,t.nextTick(xo,s,o))}function xo(o,s){if(S("endReadableNT",o.endEmitted,o.length),!o.errored&&!o.closeEmitted&&!o.endEmitted&&o.length===0){if(o.endEmitted=!0,s.emit("end"),s.writable&&s.allowHalfOpen===!1)t.nextTick(To,s);else if(o.autoDestroy){const m=s._writableState;(!m||m.autoDestroy&&(m.finished||m.writable===!1))&&s.destroy()}}}function To(o){o.writable&&!o.writableEnded&&!o.destroyed&&o.end()}C.from=function(o,s){return Q(C,o,s)};let zt;function sr(){return zt===void 0&&(zt={}),zt}return C.fromWeb=function(o,s){return sr().newStreamReadableFromReadableStream(o,s)},C.toWeb=function(o,s){return sr().newReadableStreamFromStreamReadable(o,s)},C.wrap=function(o,s){var m,R;return new C({objectMode:(m=(R=o.readableObjectMode)!==null&&R!==void 0?R:o.objectMode)!==null&&m!==void 0?m:!0,...s,destroy(D,se){$.destroyer(o,D),se(D)}}).wrap(o)},pi}var _i,Xr;function Ki(){if(Xr)return _i;Xr=1;const t=Be,{ArrayPrototypeSlice:e,Error:i,FunctionPrototypeSymbolHasInstance:r,ObjectDefineProperty:n,ObjectDefineProperties:a,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:b,Symbol:g,SymbolHasInstance:d}=Z;_i=P,P.WritableState=E;const{EventEmitter:_}=Pt,l=Yi.Stream,{Buffer:p}=je,h=st,{addAbortSignal:F}=Ht,{getHighWaterMark:w,getDefaultHighWaterMark:A}=Ut,{ERR_INVALID_ARG_TYPE:I,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:j,ERR_STREAM_DESTROYED:$,ERR_STREAM_ALREADY_FINISHED:V,ERR_STREAM_NULL_VALUES:ie,ERR_STREAM_WRITE_AFTER_END:H,ERR_UNKNOWN_ENCODING:q}=fe.codes,{errorOrDestroy:re}=h;u(P.prototype,l.prototype),u(P,l);function te(){}const O=g("kOnFinished");function E(f,c,y){typeof y!="boolean"&&(y=c instanceof Ae()),this.objectMode=!!(f&&f.objectMode),y&&(this.objectMode=this.objectMode||!!(f&&f.writableObjectMode)),this.highWaterMark=f?w(this,f,"writableHighWaterMark",y):A(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const x=!!(f&&f.decodeStrings===!1);this.decodeStrings=!x,this.defaultEncoding=f&&f.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=K.bind(void 0,c),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,k(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!f||f.emitClose!==!1,this.autoDestroy=!f||f.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[O]=[]}function k(f){f.buffered=[],f.bufferedIndex=0,f.allBuffers=!0,f.allNoop=!0}E.prototype.getBuffer=function(){return e(this.buffered,this.bufferedIndex)},n(E.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function P(f){const c=this instanceof Ae();if(!c&&!r(P,this))return new P(f);this._writableState=new E(f,this,c),f&&(typeof f.write=="function"&&(this._write=f.write),typeof f.writev=="function"&&(this._writev=f.writev),typeof f.destroy=="function"&&(this._destroy=f.destroy),typeof f.final=="function"&&(this._final=f.final),typeof f.construct=="function"&&(this._construct=f.construct),f.signal&&F(f.signal,this)),l.call(this,f),h.construct(this,()=>{const y=this._writableState;y.writing||J(this,y),Xe(this,y)})}n(P,d,{__proto__:null,value:function(f){return r(this,f)?!0:this!==P?!1:f&&f._writableState instanceof E}}),P.prototype.pipe=function(){re(this,new j)};function M(f,c,y,x){const T=f._writableState;if(typeof y=="function")x=y,y=T.defaultEncoding;else{if(!y)y=T.defaultEncoding;else if(y!=="buffer"&&!p.isEncoding(y))throw new q(y);typeof x!="function"&&(x=te)}if(c===null)throw new ie;if(!T.objectMode)if(typeof c=="string")T.decodeStrings!==!1&&(c=p.from(c,y),y="buffer");else if(c instanceof p)y="buffer";else if(l._isUint8Array(c))c=l._uint8ArrayToBuffer(c),y="buffer";else throw new I("chunk",["string","Buffer","Uint8Array"],c);let U;return T.ending?U=new H:T.destroyed&&(U=new $("write")),U?(t.nextTick(x,U),re(f,U,!0),U):(T.pendingcb++,X(f,T,c,y,x))}P.prototype.write=function(f,c,y){return M(this,f,c,y)===!0},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){const f=this._writableState;f.corked&&(f.corked--,f.writing||J(this,f))},P.prototype.setDefaultEncoding=function(c){if(typeof c=="string"&&(c=b(c)),!p.isEncoding(c))throw new q(c);return this._writableState.defaultEncoding=c,this};function X(f,c,y,x,T){const U=c.objectMode?1:y.length;c.length+=U;const z=c.lengthy.bufferedIndex&&J(f,y),x?y.afterWriteTickInfo!==null&&y.afterWriteTickInfo.cb===T?y.afterWriteTickInfo.count++:(y.afterWriteTickInfo={count:1,cb:T,stream:f,state:y},t.nextTick(W,y.afterWriteTickInfo)):Se(f,y,1,T))}function W({stream:f,state:c,count:y,cb:x}){return c.afterWriteTickInfo=null,Se(f,c,y,x)}function Se(f,c,y,x){for(!c.ending&&!f.destroyed&&c.length===0&&c.needDrain&&(c.needDrain=!1,f.emit("drain"));y-- >0;)c.pendingcb--,x();c.destroyed&&N(c),Xe(f,c)}function N(f){if(f.writing)return;for(let T=f.bufferedIndex;T1&&f._writev){c.pendingcb-=U-1;const B=c.allNoop?te:C=>{for(let xe=z;xe256?(y.splice(0,z),c.bufferedIndex=0):c.bufferedIndex=z}c.bufferProcessing=!1}P.prototype._write=function(f,c,y){if(this._writev)this._writev([{chunk:f,encoding:c}],y);else throw new v("_write()")},P.prototype._writev=null,P.prototype.end=function(f,c,y){const x=this._writableState;typeof f=="function"?(y=f,f=null,c=null):typeof c=="function"&&(y=c,c=null);let T;if(f!=null){const U=M(this,f,c);U instanceof i&&(T=U)}return x.corked&&(x.corked=1,this.uncork()),T||(!x.errored&&!x.ending?(x.ending=!0,Xe(this,x,!0),x.ended=!0):x.finished?T=new V("end"):x.destroyed&&(T=new $("end"))),typeof y=="function"&&(T||x.finished?t.nextTick(y,T):x[O].push(y)),this};function pe(f){return f.ending&&!f.destroyed&&f.constructed&&f.length===0&&!f.errored&&f.buffered.length===0&&!f.finished&&!f.writing&&!f.errorEmitted&&!f.closeEmitted}function Ge(f,c){let y=!1;function x(T){if(y){re(f,T??S());return}if(y=!0,c.pendingcb--,T){const U=c[O].splice(0);for(let z=0;z{pe(T)?at(x,T):T.pendingcb--},f,c)):pe(c)&&(c.pendingcb++,at(f,c))))}function at(f,c){c.pendingcb--,c.finished=!0;const y=c[O].splice(0);for(let x=0;x{if(N!=null)throw new F("nully","body",N)},N=>{w(W,N)});return W=new q({objectMode:!0,readable:!1,write:X,final(N){Q(async()=>{try{await Se,t.nextTick(N,null)}catch(J){t.nextTick(N,J)}})},destroy:Y})}throw new F("Iterable, AsyncIterable or AsyncFunction",k,M)}if(V(E))return O(E.arrayBuffer());if(n(E))return j(q,E,{objectMode:!0,writable:!1});if(d(E==null?void 0:E.readable)&&_(E==null?void 0:E.writable))return q.fromWeb(E);if(typeof(E==null?void 0:E.writable)=="object"||typeof(E==null?void 0:E.readable)=="object"){const M=E!=null&&E.readable?u(E==null?void 0:E.readable)?E==null?void 0:E.readable:O(E.readable):void 0,X=E!=null&&E.writable?b(E==null?void 0:E.writable)?E==null?void 0:E.writable:O(E.writable):void 0;return te({readable:M,writable:X})}const P=E==null?void 0:E.then;if(typeof P=="function"){let M;return H(P,E,X=>{X!=null&&M.push(X),M.push(null)},X=>{w(M,X)}),M=new q({objectMode:!0,writable:!1,read(){}})}throw new h(k,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],E)};function re(O){let{promise:E,resolve:k}=S();const P=new ie,M=P.signal;return{value:O(async function*(){for(;;){const Q=E;E=null;const{chunk:Y,done:K,cb:W}=await Q;if(t.nextTick(W),K)return;if(M.aborted)throw new p(void 0,{cause:M.reason});({promise:E,resolve:k}=S()),yield Y}}(),{signal:M}),write(Q,Y,K){const W=k;k=null,W({chunk:Q,done:!1,cb:K})},final(Q){const Y=k;k=null,Y({done:!0,cb:Q})},destroy(Q,Y){P.abort(),Y(Q)}}}function te(O){const E=O.readable&&typeof O.readable.read!="function"?I.wrap(O.readable):O.readable,k=O.writable;let P=!!i(E),M=!!r(k),X,Q,Y,K,W;function Se(N){const J=K;K=null,J?J(N):N&&W.destroy(N)}return W=new q({readableObjectMode:!!(E!=null&&E.readableObjectMode),writableObjectMode:!!(k!=null&&k.writableObjectMode),readable:P,writable:M}),M&&(l(k,N=>{M=!1,N&&w(E,N),Se(N)}),W._write=function(N,J,pe){k.write(N,J)?pe():X=pe},W._final=function(N){k.end(),Q=N},k.on("drain",function(){if(X){const N=X;X=null,N()}}),k.on("finish",function(){if(Q){const N=Q;Q=null,N()}})),P&&(l(E,N=>{P=!1,N&&w(E,N),Se(N)}),E.on("readable",function(){if(Y){const N=Y;Y=null,N()}}),E.on("end",function(){W.push(null)}),W._read=function(){for(;;){const N=E.read();if(N===null){Y=W._read;return}if(!W.push(N))return}}),W._destroy=function(N,J){!N&&K!==null&&(N=new p),Y=null,X=null,Q=null,K===null?J(N):(K=J,w(k,N),w(E,N))},W}return gi}var wi,Kr;function Ae(){if(Kr)return wi;Kr=1;const{ObjectDefineProperties:t,ObjectGetOwnPropertyDescriptor:e,ObjectKeys:i,ObjectSetPrototypeOf:r}=Z;wi=u;const n=Vt(),a=Ki();r(u.prototype,n.prototype),r(u,n);{const _=i(a.prototype);for(let l=0;l<_.length;l++){const p=_[l];u.prototype[p]||(u.prototype[p]=a.prototype[p])}}function u(_){if(!(this instanceof u))return new u(_);n.call(this,_),a.call(this,_),_?(this.allowHalfOpen=_.allowHalfOpen!==!1,_.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),_.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}t(u.prototype,{writable:{__proto__:null,...e(a.prototype,"writable")},writableHighWaterMark:{__proto__:null,...e(a.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...e(a.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...e(a.prototype,"writableBuffer")},writableLength:{__proto__:null,...e(a.prototype,"writableLength")},writableFinished:{__proto__:null,...e(a.prototype,"writableFinished")},writableCorked:{__proto__:null,...e(a.prototype,"writableCorked")},writableEnded:{__proto__:null,...e(a.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...e(a.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(_){this._readableState&&this._writableState&&(this._readableState.destroyed=_,this._writableState.destroyed=_)}}});let b;function g(){return b===void 0&&(b={}),b}u.fromWeb=function(_,l){return g().newStreamDuplexFromReadableWritablePair(_,l)},u.toWeb=function(_){return g().newReadableWritablePairFromDuplex(_)};let d;return u.from=function(_){return d||(d=Al()),d(_,"body")},wi}const{ObjectSetPrototypeOf:no,Symbol:Fl}=Z;var oo=Fe;const{ERR_METHOD_NOT_IMPLEMENTED:Dl}=fe.codes,zi=Ae(),{getHighWaterMark:xl}=Ut;no(Fe.prototype,zi.prototype);no(Fe,zi);const bt=Fl("kCallback");function Fe(t){if(!(this instanceof Fe))return new Fe(t);const e=t?xl(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),zi.call(this,t),this._readableState.sync=!1,this[bt]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",Tl)}function ji(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,i)=>{if(e){t?t(e):this.destroy(e);return}i!=null&&this.push(i),this.push(null),t&&t()}):(this.push(null),t&&t())}function Tl(){this._final!==ji&&ji.call(this)}Fe.prototype._final=ji;Fe.prototype._transform=function(t,e,i){throw new Dl("_transform()")};Fe.prototype._write=function(t,e,i){const r=this._readableState,n=this._writableState,a=r.length;this._transform(t,e,(u,b)=>{if(u){i(u);return}b!=null&&this.push(b),n.ended||a===r.length||r.length{r=!0});const n=It(t,{readable:e,writable:i},a=>{r=!a});return{destroy:a=>{r||(r=!0,Pl.destroyer(t,a||new Ll("pipe")))},cleanup:n}}function Gl(t){return jl(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Fi(t){if(Le(t))return t;if(vt(t))return ql(t);throw new Bi("val",["Readable","Iterable","AsyncIterable"],t)}async function*ql(t){Ri||(Ri=Vt()),yield*Ri.prototype[Cl].call(t)}async function Dt(t,e,i,{end:r}){let n,a=null;const u=d=>{if(d&&(n=d),a){const _=a;a=null,_()}},b=()=>new vl((d,_)=>{n?_(n):a=()=>{n?_(n):d()}});e.on("drain",u);const g=It(e,{readable:!1},u);try{e.writableNeedDrain&&await b();for await(const d of t)e.write(d)||await b();r&&(e.end(),await b()),i()}catch(d){i(n!==d?Ml(n,d):d)}finally{g(),e.off("drain",u)}}async function Di(t,e,i,{end:r}){Ze(e)&&(e=e.writable);const n=e.getWriter();try{for await(const a of t)await n.ready,n.write(a).catch(()=>{});await n.ready,r&&await n.close(),i()}catch(a){try{await n.abort(a),i(a)}catch(u){i(u)}}}function Xl(...t){return lo(t,$l(Gl(t)))}function lo(t,e,i){if(t.length===1&&Nl(t[0])&&(t=t[0]),t.length<2)throw new Ol("streams");const r=new Vl,n=r.signal,a=i==null?void 0:i.signal,u=[];Bl(a,"options.signal");function b(){F(new Wl)}Ai=Ai||ue.addAbortListener;let g;a&&(g=Ai(a,b));let d,_;const l=[];let p=0;function h(v){F(v,--p===0)}function F(v,S){var j;if(v&&(!d||d.code==="ERR_STREAM_PREMATURE_CLOSE")&&(d=v),!(!d&&!S)){for(;l.length;)l.shift()(d);(j=g)===null||j===void 0||j[Il](),r.abort(),S&&(d||u.forEach($=>$()),ht.nextTick(e,d,_))}}let w;for(let v=0;v0,V=j||(i==null?void 0:i.end)!==!1,ie=v===t.length-1;if(Qr(S)){let H=function(q){q&&q.name!=="AbortError"&&q.code!=="ERR_STREAM_PREMATURE_CLOSE"&&h(q)};if(V){const{destroy:q,cleanup:re}=Zr(S,j,$);l.push(q),Si(S)&&ie&&u.push(re)}S.on("error",H),Si(S)&&ie&&u.push(()=>{S.removeListener("error",H)})}if(v===0)if(typeof S=="function"){if(w=S({signal:n}),!Le(w))throw new yi("Iterable, AsyncIterable or Stream","source",w)}else Le(S)||vt(S)||Ze(S)?w=S:w=zr.from(S);else if(typeof S=="function"){if(Ze(w)){var A;w=Fi((A=w)===null||A===void 0?void 0:A.readable)}else w=Fi(w);if(w=S(w,{signal:n}),j){if(!Le(w,!0))throw new yi("AsyncIterable",`transform[${v-1}]`,w)}else{var I;mi||(mi=ao);const H=new mi({objectMode:!0}),q=(I=w)===null||I===void 0?void 0:I.then;if(typeof q=="function")p++,q.call(w,O=>{_=O,O!=null&&H.write(O),V&&H.end(),ht.nextTick(h)},O=>{H.destroy(O),ht.nextTick(h,O)});else if(Le(w,!0))p++,Dt(w,H,h,{end:V});else if(Ei(w)||Ze(w)){const O=w.readable||w;p++,Dt(O,H,h,{end:V})}else throw new yi("AsyncIterable or Promise","destination",w);w=H;const{destroy:re,cleanup:te}=Zr(w,!1,!0);l.push(re),ie&&u.push(te)}}else if(Qr(S)){if(vt(w)){p+=2;const H=Yl(w,S,h,{end:V});Si(S)&&ie&&u.push(H)}else if(Ze(w)||Ei(w)){const H=w.readable||w;p++,Dt(H,S,h,{end:V})}else if(Le(w))p++,Dt(w,S,h,{end:V});else throw new Bi("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],w);w=S}else if(Hl(S)){if(vt(w))p++,Di(Fi(w),S,h,{end:V});else if(Ei(w)||Le(w))p++,Di(w,S,h,{end:V});else if(Ze(w))p++,Di(w.readable,S,h,{end:V});else throw new Bi("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],w);w=S}else w=zr.from(S)}return(n!=null&&n.aborted||a!=null&&a.aborted)&&ht.nextTick(b),w}function Yl(t,e,i,{end:r}){let n=!1;if(e.on("close",()=>{n||i(new kl)}),t.pipe(e,{end:!1}),r){let a=function(){n=!0,e.end()};Ul(t)?ht.nextTick(a):t.once("end",a)}else i();return It(t,{readable:!0,writable:!1},a=>{const u=t._readableState;a&&a.code==="ERR_STREAM_PREMATURE_CLOSE"&&u&&u.ended&&!u.errored&&!u.errorEmitted?t.once("end",i).once("error",i):i(a)}),It(e,{readable:!1,writable:!0},i)}var Zi={pipelineImpl:lo,pipeline:Xl};const{pipeline:Kl}=Zi,xt=Ae(),{destroyer:zl}=st,{isNodeStream:Tt,isReadable:Jr,isWritable:en,isWebStream:xi,isTransformStream:Oe,isWritableStream:tn,isReadableStream:rn}=De,{AbortError:Ql,codes:{ERR_INVALID_ARG_VALUE:nn,ERR_MISSING_ARGS:Zl}}=fe,Jl=Ce;var uo=function(...e){if(e.length===0)throw new Zl("streams");if(e.length===1)return xt.from(e[0]);const i=[...e];if(typeof e[0]=="function"&&(e[0]=xt.from(e[0])),typeof e[e.length-1]=="function"){const h=e.length-1;e[h]=xt.from(e[h])}for(let h=0;h0&&!(en(e[h])||tn(e[h])||Oe(e[h])))throw new nn(`streams[${h}]`,i[h],"must be writable")}let r,n,a,u,b;function g(h){const F=u;u=null,F?F(h):h?b.destroy(h):!p&&!l&&b.destroy()}const d=e[0],_=Kl(e,g),l=!!(en(d)||tn(d)||Oe(d)),p=!!(Jr(_)||rn(_)||Oe(_));if(b=new xt({writableObjectMode:!!(d!=null&&d.writableObjectMode),readableObjectMode:!!(_!=null&&_.readableObjectMode),writable:l,readable:p}),l){if(Tt(d))b._write=function(F,w,A){d.write(F,w)?A():r=A},b._final=function(F){d.end(),n=F},d.on("drain",function(){if(r){const F=r;r=null,F()}});else if(xi(d)){const w=(Oe(d)?d.writable:d).getWriter();b._write=async function(A,I,v){try{await w.ready,w.write(A).catch(()=>{}),v()}catch(S){v(S)}},b._final=async function(A){try{await w.ready,w.close().catch(()=>{}),n=A}catch(I){A(I)}}}const h=Oe(_)?_.readable:_;Jl(h,()=>{if(n){const F=n;n=null,F()}})}if(p){if(Tt(_))_.on("readable",function(){if(a){const h=a;a=null,h()}}),_.on("end",function(){b.push(null)}),b._read=function(){for(;;){const h=_.read();if(h===null){a=b._read;return}if(!b.push(h))return}};else if(xi(_)){const F=(Oe(_)?_.readable:_).getReader();b._read=async function(){for(;;)try{const{value:w,done:A}=await F.read();if(!b.push(w))return;if(A){b.push(null);return}}catch{return}}}}return b._destroy=function(h,F){!h&&u!==null&&(h=new Ql),a=null,r=null,n=null,u===null?F(h):(u=F,Tt(_)&&zl(_,h))},b};const eu=globalThis.AbortController||pt().AbortController,{codes:{ERR_INVALID_ARG_VALUE:tu,ERR_INVALID_ARG_TYPE:gt,ERR_MISSING_ARGS:iu,ERR_OUT_OF_RANGE:ru},AbortError:we}=fe,{validateAbortSignal:Ue,validateInteger:on,validateObject:Ve}=_t,nu=Z.Symbol("kWeak"),ou=Z.Symbol("kResistStopPropagation"),{finished:su}=Ce,au=uo,{addAbortSignalNoValidate:lu}=Ht,{isWritable:uu,isNodeStream:du}=De,{deprecate:fu}=ue,{ArrayPrototypePush:cu,Boolean:hu,MathFloor:sn,Number:bu,NumberIsNaN:pu,Promise:an,PromiseReject:ln,PromiseResolve:_u,PromisePrototypeThen:un,Symbol:fo}=Z,$t=fo("kEmpty"),dn=fo("kEof");function gu(t,e){if(e!=null&&Ve(e,"options"),(e==null?void 0:e.signal)!=null&&Ue(e.signal,"options.signal"),du(t)&&!uu(t))throw new tu("stream",t,"must be writable");const i=au(this,t);return e!=null&&e.signal&&lu(e.signal,i),i}function Gt(t,e){if(typeof t!="function")throw new gt("fn",["Function","AsyncFunction"],t);e!=null&&Ve(e,"options"),(e==null?void 0:e.signal)!=null&&Ue(e.signal,"options.signal");let i=1;(e==null?void 0:e.concurrency)!=null&&(i=sn(e.concurrency));let r=i-1;return(e==null?void 0:e.highWaterMark)!=null&&(r=sn(e.highWaterMark)),on(i,"options.concurrency",1),on(r,"options.highWaterMark",0),r+=i,(async function*(){const a=ue.AbortSignalAny([e==null?void 0:e.signal].filter(hu)),u=this,b=[],g={signal:a};let d,_,l=!1,p=0;function h(){l=!0,F()}function F(){p-=1,w()}function w(){_&&!l&&p=r||p>=i)&&await new an(v=>{_=v})}b.push(dn)}catch(I){const v=ln(I);un(v,F,h),b.push(v)}finally{l=!0,d&&(d(),d=null)}}A();try{for(;;){for(;b.length>0;){const I=await b[0];if(I===dn)return;if(a.aborted)throw new we;I!==$t&&(yield I),b.shift(),w()}await new an(I=>{d=I})}}finally{l=!0,_&&(_(),_=null)}}).call(this)}function wu(t=void 0){return t!=null&&Ve(t,"options"),(t==null?void 0:t.signal)!=null&&Ue(t.signal,"options.signal"),(async function*(){let i=0;for await(const n of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new we({cause:t.signal.reason});yield[i++,n]}}).call(this)}async function co(t,e=void 0){for await(const i of Ji.call(this,t,e))return!0;return!1}async function yu(t,e=void 0){if(typeof t!="function")throw new gt("fn",["Function","AsyncFunction"],t);return!await co.call(this,async(...i)=>!await t(...i),e)}async function Su(t,e){for await(const i of Ji.call(this,t,e))return i}async function Eu(t,e){if(typeof t!="function")throw new gt("fn",["Function","AsyncFunction"],t);async function i(r,n){return await t(r,n),$t}for await(const r of Gt.call(this,i,e));}function Ji(t,e){if(typeof t!="function")throw new gt("fn",["Function","AsyncFunction"],t);async function i(r,n){return await t(r,n)?r:$t}return Gt.call(this,i,e)}class mu extends iu{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function Ru(t,e,i){var r;if(typeof t!="function")throw new gt("reducer",["Function","AsyncFunction"],t);i!=null&&Ve(i,"options"),(i==null?void 0:i.signal)!=null&&Ue(i.signal,"options.signal");let n=arguments.length>1;if(i!=null&&(r=i.signal)!==null&&r!==void 0&&r.aborted){const d=new we(void 0,{cause:i.signal.reason});throw this.once("error",()=>{}),await su(this.destroy(d)),d}const a=new eu,u=a.signal;if(i!=null&&i.signal){const d={once:!0,[nu]:this,[ou]:!0};i.signal.addEventListener("abort",()=>a.abort(),d)}let b=!1;try{for await(const d of this){var g;if(b=!0,i!=null&&(g=i.signal)!==null&&g!==void 0&&g.aborted)throw new we;n?e=await t(e,d,{signal:u}):(e=d,n=!0)}if(!b&&!n)throw new mu}finally{a.abort()}return e}async function Au(t){t!=null&&Ve(t,"options"),(t==null?void 0:t.signal)!=null&&Ue(t.signal,"options.signal");const e=[];for await(const r of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new we(void 0,{cause:t.signal.reason});cu(e,r)}return e}function Fu(t,e){const i=Gt.call(this,t,e);return(async function*(){for await(const n of i)yield*n}).call(this)}function ho(t){if(t=bu(t),pu(t))return 0;if(t<0)throw new ru("number",">= 0",t);return t}function Du(t,e=void 0){return e!=null&&Ve(e,"options"),(e==null?void 0:e.signal)!=null&&Ue(e.signal,"options.signal"),t=ho(t),(async function*(){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new we;for await(const a of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new we;t--<=0&&(yield a)}}).call(this)}function xu(t,e=void 0){return e!=null&&Ve(e,"options"),(e==null?void 0:e.signal)!=null&&Ue(e.signal,"options.signal"),t=ho(t),(async function*(){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new we;for await(const a of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new we;if(t-- >0&&(yield a),t<=0)return}}).call(this)}Ui.streamReturningOperators={asIndexedPairs:fu(wu,"readable.asIndexedPairs will be removed in a future version."),drop:Du,filter:Ji,flatMap:Fu,map:Gt,take:xu,compose:gu};Ui.promiseReturningOperators={every:yu,forEach:Eu,reduce:Ru,toArray:Au,some:co,find:Su};var Ti,fn;function bo(){if(fn)return Ti;fn=1;const{ArrayPrototypePop:t,Promise:e}=Z,{isIterable:i,isNodeStream:r,isWebStream:n}=De,{pipelineImpl:a}=Zi,{finished:u}=Ce;po();function b(...g){return new e((d,_)=>{let l,p;const h=g[g.length-1];if(h&&typeof h=="object"&&!r(h)&&!i(h)&&!n(h)){const F=t(g);l=F.signal,p=F.end}a(g,(F,w)=>{F?_(F):d(w)},{signal:l,end:p})})}return Ti={finished:u,pipeline:b},Ti}var cn;function po(){if(cn)return fi.exports;cn=1;const{Buffer:t}=je,{ObjectDefineProperty:e,ObjectKeys:i,ReflectApply:r}=Z,{promisify:{custom:n}}=ue,{streamReturningOperators:a,promiseReturningOperators:u}=Ui,{codes:{ERR_ILLEGAL_CONSTRUCTOR:b}}=fe,g=uo,{setDefaultHighWaterMark:d,getDefaultHighWaterMark:_}=Ut,{pipeline:l}=Zi,{destroyer:p}=st,h=Ce,F=bo(),w=De,A=fi.exports=Yi.Stream;A.isDestroyed=w.isDestroyed,A.isDisturbed=w.isDisturbed,A.isErrored=w.isErrored,A.isReadable=w.isReadable,A.isWritable=w.isWritable,A.Readable=Vt();for(const v of i(a)){let j=function(...$){if(new.target)throw b();return A.Readable.from(r(S,this,$))};const S=a[v];e(j,"name",{__proto__:null,value:S.name}),e(j,"length",{__proto__:null,value:S.length}),e(A.Readable.prototype,v,{__proto__:null,value:j,enumerable:!1,configurable:!0,writable:!0})}for(const v of i(u)){let j=function(...$){if(new.target)throw b();return r(S,this,$)};const S=u[v];e(j,"name",{__proto__:null,value:S.name}),e(j,"length",{__proto__:null,value:S.length}),e(A.Readable.prototype,v,{__proto__:null,value:j,enumerable:!1,configurable:!0,writable:!0})}A.Writable=Ki(),A.Duplex=Ae(),A.Transform=oo,A.PassThrough=ao,A.pipeline=l;const{addAbortSignal:I}=Ht;return A.addAbortSignal=I,A.finished=h,A.destroy=p,A.compose=g,A.setDefaultHighWaterMark=d,A.getDefaultHighWaterMark=_,e(A,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return F}}),e(l,n,{__proto__:null,enumerable:!0,get(){return F.pipeline}}),e(h,n,{__proto__:null,enumerable:!0,get(){return F.finished}}),A.Stream=A,A._isUint8Array=function(S){return S instanceof Uint8Array},A._uint8ArrayToBuffer=function(S){return t.from(S.buffer,S.byteOffset,S.byteLength)},fi.exports}(function(t){const e=po(),i=bo(),r=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=r,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return i}}),t.exports.Stream=e.Stream,t.exports.default=t.exports})(An);var Tu=An.exports,qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.ParseError=void 0;class Nu extends Error{constructor(e,i){const r=e.saxParser;super(e.trackPosition?`Line ${r.line} column ${r.column+1}: ${i}`:i)}}qt.ParseError=Nu;var _o={},go={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateIri=t.IriValidationStrategy=void 0;function e(){const b="[!$&'()*+,;=]",g="%[a-fA-F0-9]{2}",d="([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",_=`${d}\\.${d}\\.${d}\\.${d}`,l="[a-fA-F0-9]{1,4}",p=`(${l}:${l}|${_})`,h=`((${l}:){6}${p}|::(${l}:){5}${p}|(${l})?::(${l}:){4}${p}|((${l}:){0,1}${l})?::(${l}:){3}${p}|((${l}:){0,2}${l})?::(${l}:){2}${p}|((${l}:){0,3}${l})?::${l}:${p}|((${l}:){0,4}${l})?::${p}|((${l}:){0,5}${l})?::${l}|((${l}:){0,6}${l})?::)`,F=`v[a-fA-F0-9]+\\.(${b}|${b}|":)+`,w=`\\[(${h}|${F})\\]`,A="[0-9]*",I="[a-zA-Z][a-zA-Z0-9+\\-.]*",S="[-󰀀-󿿽􀀀-􏿽]",V="[a-zA-Z0-9\\-._~ -퟿豈-﷏ﷰ-￯𐀀-🿽𠀀-𯿽𰀀-𿿽񀀀-񏿽񐀀-񟿽񠀀-񯿽񰀀-񿿽򀀀-򏿽򐀀-򟿽򠀀-򯿽򰀀-򿿽󀀀-󏿽󐀀-󟿽󡀀-󯿽]",ie=`(${V}|${g}|${b}|[:@])*`,H=`(${ie}|[\\/?])*`,q=`(${ie}|${S}|[\\/?])*`,re=`(${ie})+`,te=`(${ie})*`,O="",E=`${re}(\\/${te})*`,k=`\\/(${re}(\\/${te})*)?`,P=`(\\/${te})*`,M=`(${V}|${g}|${b})*`,X=`(${w}|${_}|${M})`,K=`(\\/\\/${`(${`(${V}|${g}|${b}|:)*`}@)?${X}(:${A})?`}${P}|${k}|${E}|${O})`,W=`^${I}:${K}(\\?${q})?(#${H})?$`;return new RegExp(W,"u")}const i=e(),r=/^[A-Za-z][\d+-.A-Za-z]*:[^\u0000-\u0020"<>\\^`{|}]*$/u;var n;(function(u){u.Strict="strict",u.Pragmatic="pragmatic",u.None="none"})(n=t.IriValidationStrategy||(t.IriValidationStrategy={}));function a(u,b=n.Strict){switch(b){case n.Strict:return i.test(u)?void 0:new Error(`Invalid IRI according to RFC 3987: '${u}'`);case n.Pragmatic:return r.test(u)?void 0:new Error(`Invalid IRI according to RDF Turtle: '${u}'`);case n.None:return;default:return new Error(`Not supported validation strategy "${b}"`)}}t.validateIri=a})(go);(function(t){var e=ve&&ve.__createBinding||(Object.create?function(r,n,a,u){u===void 0&&(u=a);var b=Object.getOwnPropertyDescriptor(n,a);(!b||("get"in b?!n.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return n[a]}}),Object.defineProperty(r,u,b)}:function(r,n,a,u){u===void 0&&(u=a),r[u]=n[a]}),i=ve&&ve.__exportStar||function(r,n){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(n,a)&&e(n,r,a)};Object.defineProperty(t,"__esModule",{value:!0}),i(go,t)})(_o);Object.defineProperty(tt,"__esModule",{value:!0});tt.ParseType=tt.RdfXmlParser=void 0;const hn=Co,vu=it,bn=Tu,Cu=qt,Iu=Io,Ni=_o;class L extends bn.Transform{constructor(e){super({readableObjectMode:!0}),this.activeTagStack=[],this.nodeIds={},e&&(Object.assign(this,e),this.options=e),this.dataFactory||(this.dataFactory=new Iu.DataFactory),this.baseIRI||(this.baseIRI=""),this.defaultGraph||(this.defaultGraph=this.dataFactory.defaultGraph()),this.validateUri!==!1&&(this.validateUri=!0),this.iriValidationStrategy||(this.iriValidationStrategy=this.validateUri?Ni.IriValidationStrategy.Pragmatic:Ni.IriValidationStrategy.None),this.saxParser=new vu.SaxesParser({xmlns:!0,position:this.trackPosition}),this.attachSaxListeners()}import(e){const i=new bn.PassThrough({readableObjectMode:!0});e.on("error",n=>r.emit("error",n)),e.on("data",n=>i.push(n)),e.on("end",()=>i.push(null));const r=i.pipe(new L(this.options));return r}_transform(e,i,r){try{this.saxParser.write(e)}catch(n){return r(n)}r()}newParseError(e){return new Cu.ParseError(this,e)}valueToUri(e,i){return this.uriToNamedNode((0,hn.resolve)(e,i.baseIRI))}uriToNamedNode(e){const i=(0,Ni.validateIri)(e,this.iriValidationStrategy);if(i instanceof Error)throw this.newParseError(i.message);return this.dataFactory.namedNode(e)}validateNcname(e){if(!L.NCNAME_MATCHER.test(e))throw this.newParseError(`Not a valid NCName: ${e}`)}attachSaxListeners(){this.saxParser.on("error",e=>this.emit("error",e)),this.saxParser.on("opentag",this.onTag.bind(this)),this.saxParser.on("text",this.onText.bind(this)),this.saxParser.on("cdata",this.onText.bind(this)),this.saxParser.on("closetag",this.onCloseTag.bind(this)),this.saxParser.on("doctype",this.onDoctype.bind(this))}onTag(e){const i=this.activeTagStack.length?this.activeTagStack[this.activeTagStack.length-1]:null;let r=Re.RESOURCE;if(i&&(i.hadChildren=!0,r=i.childrenParseType),i&&i.childrenStringTags){const a=e.name;let u="";for(const _ in e.attributes)u+=` ${_}="${e.attributes[_].value}"`;const g=`<${`${a}${u}`}>`;i.childrenStringTags.push(g);const d={childrenStringTags:i.childrenStringTags};d.childrenStringEmitClosingTag=``,this.activeTagStack.push(d);return}const n={};i?(n.language=i.language,n.baseIRI=i.baseIRI):n.baseIRI=this.baseIRI,this.activeTagStack.push(n),r===Re.RESOURCE?this.onTagResource(e,n,i,!i):this.onTagProperty(e,n,i)}onTagResource(e,i,r,n){i.childrenParseType=Re.PROPERTY;let a=!0;if(e.uri===L.RDF){if(!n&&L.FORBIDDEN_NODE_ELEMENTS.indexOf(e.local)>=0)throw this.newParseError(`Illegal node element name: ${e.local}`);switch(e.local){case"RDF":i.childrenParseType=Re.RESOURCE;case"Description":a=!1}}const u=[],b=[];let g=null,d=!1,_=!1,l=null;for(const p in e.attributes){const h=e.attributes[p];if(r&&h.uri===L.RDF)switch(h.local){case"about":if(g)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${h.value} and ${g} where found.`);g=h.value;continue;case"ID":if(g)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${h.value} and ${g} where found.`);this.validateNcname(h.value),g="#"+h.value,d=!0;continue;case"nodeID":if(g)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${h.value} and ${g} where found.`);this.validateNcname(h.value),g=h.value,_=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"type":l=h.value;continue;case"aboutEach":throw this.newParseError("rdf:aboutEach is not supported.");case"aboutEachPrefix":throw this.newParseError("rdf:aboutEachPrefix is not supported.");case"li":throw this.newParseError("rdf:li on node elements are not supported.")}else if(h.uri===L.XML){if(h.local==="lang"){i.language=h.value===""?null:h.value.toLowerCase();continue}else if(h.local==="base"){i.baseIRI=(0,hn.resolve)(h.value,i.baseIRI);continue}}h.prefix!=="xml"&&h.prefix!=="xmlns"&&(h.prefix!==""||h.local!=="xmlns")&&h.uri&&(u.push(this.uriToNamedNode(h.uri+h.local)),b.push(h.value))}if(g!==null&&(i.subject=_?this.dataFactory.blankNode(g):this.valueToUri(g,i),d&&this.claimNodeId(i.subject)),i.subject||(i.subject=this.dataFactory.blankNode()),a){const p=this.uriToNamedNode(e.uri+e.local);this.emitTriple(i.subject,this.dataFactory.namedNode(L.RDF+"type"),p,r?r.reifiedStatementId:null)}if(r){if(r.predicate)if(r.childrenCollectionSubject){const p=this.dataFactory.blankNode();this.emitTriple(r.childrenCollectionSubject,r.childrenCollectionPredicate,p,r.reifiedStatementId),this.emitTriple(p,this.dataFactory.namedNode(L.RDF+"first"),i.subject,i.reifiedStatementId),r.childrenCollectionSubject=p,r.childrenCollectionPredicate=this.dataFactory.namedNode(L.RDF+"rest")}else{this.emitTriple(r.subject,r.predicate,i.subject,r.reifiedStatementId);for(let p=0;p=0)throw this.newParseError(`Illegal property element name: ${e.local}`);i.predicateSubPredicates=[],i.predicateSubObjects=[];let n=!1,a=!1,u=null,b=!0;const g=[],d=[];for(const _ in e.attributes){const l=e.attributes[_];if(l.uri===L.RDF)switch(l.local){case"resource":if(u)throw this.newParseError(`Found both rdf:resource (${l.value}) and rdf:nodeID (${u}).`);if(n)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:resource (${l.value})`);i.hadChildren=!0,u=l.value,b=!1;continue;case"datatype":if(a)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:datatype (${l.value}).`);if(n)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${l.value})`);i.datatype=this.valueToUri(l.value,i);continue;case"nodeID":if(a)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:nodeID (${l.value}).`);if(i.hadChildren)throw this.newParseError(`Found both rdf:resource and rdf:nodeID (${l.value}).`);if(n)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID (${l.value})`);this.validateNcname(l.value),i.hadChildren=!0,u=l.value,b=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"parseType":if(a)throw this.newParseError("rdf:parseType is not allowed when non-rdf:* property attributes are present");if(i.datatype)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${i.datatype.value})`);if(u)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID or rdf:resource (${u})`);if(l.value==="Resource"){n=!0,i.childrenParseType=Re.PROPERTY;const p=this.dataFactory.blankNode();this.emitTriple(i.subject,i.predicate,p,i.reifiedStatementId),i.subject=p,i.predicate=null}else l.value==="Collection"?(n=!0,i.hadChildren=!0,i.childrenCollectionSubject=i.subject,i.childrenCollectionPredicate=i.predicate,b=!1):l.value==="Literal"&&(n=!0,i.childrenTagsToString=!0,i.childrenStringTags=[]);continue;case"ID":this.validateNcname(l.value),i.reifiedStatementId=this.valueToUri("#"+l.value,i),this.claimNodeId(i.reifiedStatementId);continue}else if(l.uri===L.XML&&l.local==="lang"){i.language=l.value===""?null:l.value.toLowerCase();continue}if(l.prefix!=="xml"&&l.prefix!=="xmlns"&&(l.prefix!==""||l.local!=="xmlns")&&l.uri){if(n||i.datatype)throw this.newParseError(`Found illegal rdf:* properties on property element with attribute: ${l.value}`);i.hadChildren=!0,a=!0,g.push(this.uriToNamedNode(l.uri+l.local)),d.push(this.dataFactory.literal(l.value,i.datatype||i.language))}}if(u!==null){const _=i.subject;i.subject=b?this.dataFactory.blankNode(u):this.valueToUri(u,i),this.emitTriple(_,i.predicate,i.subject,i.reifiedStatementId);for(let l=0;l/g,(i,r,n)=>(this.saxParser.ENTITIES[r]=n,""))}}tt.RdfXmlParser=L;L.MIME_TYPE="application/rdf+xml";L.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";L.XML="http://www.w3.org/XML/1998/namespace";L.FORBIDDEN_NODE_ELEMENTS=["RDF","ID","about","bagID","parseType","resource","nodeID","li","aboutEach","aboutEachPrefix"];L.FORBIDDEN_PROPERTY_ELEMENTS=["Description","RDF","ID","about","bagID","parseType","resource","nodeID","aboutEach","aboutEachPrefix"];L.NCNAME_MATCHER=/^([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_])([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_\-.0-9#xB7\u{0300}-\u{036F}\u{203F}-\u{2040}])*$/u;var Re;(function(t){t[t.RESOURCE=0]="RESOURCE",t[t.PROPERTY=1]="PROPERTY"})(Re||(tt.ParseType=Re={}));(function(t){var e=ve&&ve.__createBinding||(Object.create?function(r,n,a,u){u===void 0&&(u=a);var b=Object.getOwnPropertyDescriptor(n,a);(!b||("get"in b?!n.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return n[a]}}),Object.defineProperty(r,u,b)}:function(r,n,a,u){u===void 0&&(u=a),r[u]=n[a]}),i=ve&&ve.__exportStar||function(r,n){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(n,a)&&e(n,r,a)};Object.defineProperty(t,"__esModule",{value:!0}),i(tt,t)})(pn);class Lu extends pn.RdfXmlParser{constructor({factory:e,...i}={}){super({...i,dataFactory:e})}}export{Lu as default}; diff --git a/assets/CustomRdfXmlParser-CK1Us3uO.js b/assets/CustomRdfXmlParser-CK1Us3uO.js new file mode 100644 index 0000000..28459e2 --- /dev/null +++ b/assets/CustomRdfXmlParser-CK1Us3uO.js @@ -0,0 +1 @@ +import{a as s}from"./main-DsJMMZjG.js";class m extends s.RdfXmlParser{constructor({factory:r,...a}={}){super({...a,dataFactory:r})}}export{m as default}; diff --git a/assets/N3StreamParser-Bkfk54FL.js b/assets/N3StreamParser-Bkfk54FL.js deleted file mode 100644 index 2ef0986..0000000 --- a/assets/N3StreamParser-Bkfk54FL.js +++ /dev/null @@ -1,3 +0,0 @@ -import{g as Fn,b as Ee,a as et,e as gt,d as $e,s as Wn}from"./main-CO-45Vwa.js";/*! queue-microtask. MIT License. Feross Aboukhadijeh */let Mr;var Bn=typeof queueMicrotask=="function"?queueMicrotask.bind(window):e=>(Mr||(Mr=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0));const Un=Fn(Bn),Ye="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Ke="http://www.w3.org/2001/XMLSchema#",Mt="http://www.w3.org/2000/10/swap/",ue={xsd:{decimal:`${Ke}decimal`,boolean:`${Ke}boolean`,double:`${Ke}double`,integer:`${Ke}integer`,string:`${Ke}string`},rdf:{type:`${Ye}type`,nil:`${Ye}nil`,first:`${Ye}first`,rest:`${Ye}rest`,langString:`${Ye}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${Mt}reify#forSome`,forAll:`${Mt}reify#forAll`},log:{implies:`${Mt}log#implies`}},{xsd:at}=ue,Gn=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,Or={"\\":"\\","'":"'",'"':'"',n:` -`,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},qn=/[\x00-\x20<>\\"\{\}\|\^\`]/,Hn={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},Vn=/$0^/;class zn{constructor(t){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]*)?$/,t=t||{},this._lineMode=!!t.lineMode){this._n3Mode=!1;for(const r in this)!(r in Hn)&&this[r]instanceof RegExp&&(this[r]=Vn)}else this._n3Mode=t.n3!==!1;this.comments=!!t.comments,this._literalClosingPos=0}_tokenizeToEnd(t,r){let i=this._input,a=i.length;for(;;){let d,y;for(;d=this._newline.exec(i);)this.comments&&(y=this._comment.exec(d[0]))&&o("comment",y[1],"",this._line,d[0].length),i=i.substr(d[0].length,i.length),a=i.length,this._line++;if(!d&&(d=this._whitespace.exec(i))&&(i=i.substr(d[0].length,i.length)),this._endOfFile.test(i))return r&&(this.comments&&(y=this._comment.exec(i))&&o("comment",y[1],"",this._line,i.length),i=null,o("eof","","",this._line,0)),this._input=i;const _=this._line,g=i[0];let w="",c="",h="",p=null,b=0,A=!1;switch(g){case"^":if(i.length<3)break;if(i[1]==="^"){if(this._previousMarker="^^",i=i.substr(2),i[0]!=="<"){A=!0;break}}else{this._n3Mode&&(b=1,w="^");break}case"<":if(p=this._unescapedIri.exec(i))w="IRI",c=p[1];else if(p=this._iri.exec(i)){if(c=this._unescape(p[1]),c===null||qn.test(c))return l(this);w="IRI"}else i.length>1&&i[1]==="<"?(w="<<",b=2):this._n3Mode&&i.length>1&&i[1]==="="&&(w="inverse",b=2,c=">");break;case">":i.length>1&&i[1]===">"&&(w=">>",b=2);break;case"_":((p=this._blank.exec(i))||r&&(p=this._blank.exec(`${i} `)))&&(w="blank",h="_",c=p[1]);break;case'"':if(p=this._simpleQuotedString.exec(i))c=p[1];else if({value:c,matchLength:b}=this._parseLiteral(i),c===null)return l(this);(p!==null||b!==0)&&(w="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(p=this._simpleApostropheString.exec(i))c=p[1];else if({value:c,matchLength:b}=this._parseLiteral(i),c===null)return l(this);(p!==null||b!==0)&&(w="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(p=this._variable.exec(i))&&(w="var",c=p[0]);break;case"@":this._previousMarker==="literal"&&(p=this._langcode.exec(i))?(w="langcode",c=p[1]):(p=this._keyword.exec(i))&&(w=p[0]);break;case".":if(i.length===1?r:i[1]<"0"||i[1]>"9"){w=".",b=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(p=this._number.exec(i)||r&&(p=this._number.exec(`${i} `)))&&(w="literal",c=p[0],h=typeof p[1]=="string"?at.double:typeof p[2]=="string"?at.decimal:at.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(p=this._sparqlKeyword.exec(i))?w=p[0].toUpperCase():A=!0;break;case"f":case"t":(p=this._boolean.exec(i))?(w="literal",c=p[0],h=at.boolean):A=!0;break;case"a":(p=this._shortPredicates.exec(i))?(w="abbreviation",c="a"):A=!0;break;case"=":this._n3Mode&&i.length>1&&(w="abbreviation",i[1]!==">"?(b=1,c="="):(b=2,c=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(b=1,w=g);break;case"{":!this._lineMode&&i.length>=2&&(i[1]==="|"?(w="{|",b=2):(w=g,b=1));break;case"|":i.length>=2&&i[1]==="}"&&(w="|}",b=2);break;default:A=!0}if(A&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(p=this._prefix.exec(i))?(w="prefix",c=p[1]||""):((p=this._prefixed.exec(i))||r&&(p=this._prefixed.exec(`${i} `)))&&(w="prefixed",h=p[1]||"",c=this._unescape(p[2]))),this._previousMarker==="^^")switch(w){case"prefixed":w="type";break;case"IRI":w="typeIRI";break;default:w=""}if(!w)return r||!/^'''|^"""/.test(i)&&/\n|\r/.test(i)?l(this):this._input=i;const $=b||p[0].length,N=o(w,c,h,_,$);this.previousToken=N,this._previousMarker=w,i=i.substr($,i.length)}function o(d,y,_,g,w){const c=i?a-i.length:a,h=c+w,p={type:d,value:y,prefix:_,line:g,start:c,end:h};return t(null,p),p}function l(d){t(d._syntaxError(/^\S*/.exec(i)[0]))}}_unescape(t){let r=!1;const i=t.replace(Gn,(a,o,l,d)=>{if(typeof o=="string")return String.fromCharCode(Number.parseInt(o,16));if(typeof l=="string"){let y=Number.parseInt(l,16);return y<=65535?String.fromCharCode(Number.parseInt(l,16)):String.fromCharCode(55296+((y-=65536)>>10),56320+(y&1023))}return d in Or?Or[d]:(r=!0,"")});return r?null:i}_parseLiteral(t){if(t.length>=3){const r=t.match(/^(?:"""|"|'''|'|)/)[0],i=r.length;let a=Math.max(this._literalClosingPos,i);for(;(a=t.indexOf(r,a))>0;){let o=0;for(;t[a-o-1]==="\\";)o++;if(o%2===0){const l=t.substring(i,a),d=l.split(/\r\n|\r|\n/).length-1,y=a+i;if(i===1&&d!==0||i===3&&this._lineMode)break;return this._line+=d,{value:this._unescape(l),matchLength:y}}a++}this._literalClosingPos=t.length-i+1}return{value:"",matchLength:0}}_syntaxError(t){this._input=null;const r=new Error(`Unexpected "${t}" on line ${this._line}.`);return r.context={token:void 0,line:this._line,previousToken:this.previousToken},r}_readStartingBom(t){return t.startsWith("\uFEFF")?t.substr(1):t}tokenize(t,r){if(this._line=1,typeof t=="string")if(this._input=this._readStartingBom(t),typeof r=="function")Un(()=>this._tokenizeToEnd(r,!0));else{const i=[];let a;if(this._tokenizeToEnd((o,l)=>o?a=o:i.push(l),!0),a)throw a;return i}else this._pendingBuffer=null,typeof t.setEncoding=="function"&&t.setEncoding("utf8"),t.on("data",i=>{this._input!==null&&i.length!==0&&(this._pendingBuffer&&(i=Ee.Buffer.concat([this._pendingBuffer,i]),this._pendingBuffer=null),i[i.length-1]&128?this._pendingBuffer=i:(typeof this._input>"u"?this._input=this._readStartingBom(typeof i=="string"?i:i.toString()):this._input+=i,this._tokenizeToEnd(r,!1)))}),t.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(r,!0)}),t.on("error",r)}}const{rdf:Qn,xsd:Ie}=ue;let Ge,Yn=0;const tr={namedNode:Ii,blankNode:Ni,variable:$i,literal:Pi,defaultGraph:Xn,quad:rr,triple:rr,fromTerm:Je,fromQuad:ki};class ce{constructor(t){this.id=t}get value(){return this.id}equals(t){return t instanceof ce?this.id===t.id:!!t&&this.termType===t.termType&&this.value===t.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}class vi extends ce{get termType(){return"NamedNode"}}class We extends ce{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const t=this.id;let r=t.lastIndexOf('"')+1;return r0?"INF":"-INF")))),r===""||r===Ie.string?new We(`"${e}"`):new We(`"${e}"^^${r}`)}function $i(e){return new Jn(e)}function Xn(){return Ge}function rr(e,t,r,i){return new Ti(e,t,r,i)}function Je(e){if(e instanceof ce)return e;switch(e.termType){case"NamedNode":return Ii(e.value);case"BlankNode":return Ni(e.value);case"Variable":return $i(e.value);case"DefaultGraph":return Ge;case"Literal":return Pi(e.value,e.language||e.datatype);case"Quad":return ki(e);default:throw new Error(`Unexpected termType: ${e.termType}`)}}function ki(e){if(e instanceof Ti)return e;if(e.termType!=="Quad")throw new Error(`Unexpected termType: ${e.termType}`);return rr(Je(e.subject),Je(e.predicate),Je(e.object),Je(e.graph))}let Cr=0;class Di{constructor(t){this._contextStack=[],this._graph=null,t=t||{},this._setBase(t.baseIRI),t.factory&&ji(this,t.factory);const r=typeof t.format=="string"?t.format.match(/\w*$/)[0].toLowerCase():"",i=/turtle/.test(r),a=/trig/.test(r),o=/triple/.test(r),l=/quad/.test(r),d=this._n3Mode=/n3/.test(r),y=o||l;(this._supportsNamedGraphs=!(i||d))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(i||a||o||d),this._supportsRDFStar=r===""||/star|\*$/.test(r),y&&(this._resolveRelativeIRI=_=>null),this._blankNodePrefix=typeof t.blankNodePrefix!="string"?"":t.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=t.lexer||new zn({lineMode:y,n3:d}),this._explicitQuantifiers=!!t.explicitQuantifiers}static _resetBlankNodePrefix(){Cr=0}_setBase(t){if(!t)this._base="",this._basePath="";else{const r=t.indexOf("#");r>=0&&(t=t.substr(0,r)),this._base=t,this._basePath=t.indexOf("/")<0?t:t.replace(/[^\/?]*(?:\?.*)?$/,""),t=t.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=t[0],this._baseScheme=t[1]}}_saveContext(t,r,i,a,o){const l=this._n3Mode;this._contextStack.push({type:t,subject:i,predicate:a,object:o,graph:r,inverse:l?this._inversePredicate:!1,blankPrefix:l?this._prefixes._:"",quantified:l?this._quantified:null}),l&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(t,r){const i=this._contextStack.pop();if(!i||i.type!==t)return this._error(`Unexpected ${r.type}`,r);this._subject=i.subject,this._predicate=i.predicate,this._object=i.object,this._graph=i.graph,this._n3Mode&&(this._inversePredicate=i.inverse,this._prefixes._=i.blankPrefix,this._quantified=i.quantified)}_readInTopContext(t){switch(t.type){case"eof":return this._graph!==null?this._error("Unclosed graph",t):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(t)}}_readEntity(t,r){let i;switch(t.type){case"IRI":case"typeIRI":const a=this._resolveIRI(t.value);if(a===null)return this._error("Invalid IRI",t);i=this._factory.namedNode(a);break;case"type":case"prefixed":const o=this._prefixes[t.prefix];if(o===void 0)return this._error(`Undefined prefix "${t.prefix}:"`,t);i=this._factory.namedNode(o+t.value);break;case"blank":i=this._factory.blankNode(this._prefixes[t.prefix]+t.value);break;case"var":i=this._factory.variable(t.value.substr(1));break;default:return this._error(`Expected entity but got ${t.type}`,t)}return!r&&this._n3Mode&&i.id in this._quantified&&(i=this._quantified[i.id]),i}_readSubject(t){switch(this._predicate=null,t.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",t);case"}":return this._readPunctuation(t);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',t);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="variable",this._readQuantifierList):this._error('Unexpected "@forAll"',t);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",t);if(t.prefix.length===0)return this._literalValue=t.value,this._completeSubjectLiteral;this._subject=this._factory.literal(t.value,this._factory.namedNode(t.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",t);default:if((this._subject=this._readEntity(t))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(t){const r=t.type;switch(r){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[t.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${r}`,t):(this._subject=null,r==="]"?this._readBlankNodeTail(t):this._readPunctuation(t));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",t);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",t);default:if((this._predicate=this._readEntity(t))===void 0)return}return this._readObject}_readObject(t){switch(t.type){case"literal":if(t.prefix.length===0)return this._literalValue=t.value,this._readDataTypeOrLang;this._object=this._factory.literal(t.value,this._factory.namedNode(t.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",t);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",t);default:if((this._object=this._readEntity(t))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(t){return t.type==="{"?this._readGraph(t):this._readPredicate(t)}_readGraph(t){return t.type!=="{"?this._error(`Expected graph but got ${t.type}`,t):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(t){return t.type==="]"?(this._subject=null,this._readBlankNodeTail(t)):(this._predicate=null,this._readPredicate(t))}_readBlankNodeTail(t){if(t.type!=="]")return this._readBlankNodePunctuation(t);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);const r=this._predicate===null;return this._restoreContext("blank",t),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:r?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(t){switch(t.type){case".":case"}":return this._subject=null,this._readPunctuation(t);default:return this._readPredicate(t)}}_readListItem(t){let r=null,i=null,a=this._readListItem;const o=this._subject,l=this._contextStack,d=l[l.length-1];switch(t.type){case"[":this._saveContext("blank",this._graph,i=this._factory.blankNode(),this.RDF_FIRST,this._subject=r=this._factory.blankNode()),a=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,i=this._factory.blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",t),l.length!==0&&l[l.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(a=this._readPredicate,this._subject===this.RDF_NIL)return a}else if(a=this._getContextEndReader(),this._object===this.RDF_NIL)return a;i=this.RDF_NIL;break;case"literal":t.prefix.length===0?(this._literalValue=t.value,a=this._readListItemDataTypeOrLang):(r=this._factory.literal(t.value,this._factory.namedNode(t.prefix)),a=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",t);default:if((r=this._readEntity(t))===void 0)return}if(i===null&&(this._subject=i=this._factory.blankNode()),o===null?d.predicate===null?d.subject=i:d.object=i:this._emit(o,this.RDF_REST,i,this._graph),r!==null){if(this._n3Mode&&(t.type==="IRI"||t.type==="prefixed"))return this._saveContext("item",this._graph,i,this.RDF_FIRST,r),this._subject=r,this._predicate=null,this._getPathReader(this._readListItem);this._emit(i,this.RDF_FIRST,r,this._graph)}return a}_readDataTypeOrLang(t){return this._completeObjectLiteral(t,!1)}_readListItemDataTypeOrLang(t){return this._completeObjectLiteral(t,!0)}_completeLiteral(t){let r=this._factory.literal(this._literalValue);switch(t.type){case"type":case"typeIRI":const i=this._readEntity(t);if(i===void 0)return;r=this._factory.literal(this._literalValue,i),t=null;break;case"langcode":r=this._factory.literal(this._literalValue,t.value),t=null;break}return{token:t,literal:r}}_completeSubjectLiteral(t){return this._subject=this._completeLiteral(t).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(t,r){const i=this._completeLiteral(t);if(i)return this._object=i.literal,r&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),i.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(i.token))}_readFormulaTail(t){return t.type!=="}"?this._readPunctuation(t):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",t),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(t){let r,i=this._graph;const a=this._subject,o=this._inversePredicate;switch(t.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",t);if(this._n3Mode)return this._readFormulaTail(t);this._graph=null;case".":this._subject=null,r=this._contextStack.length?this._readSubject:this._readInTopContext,o&&(this._inversePredicate=!1);break;case";":r=this._readPredicate;break;case",":r=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF-star syntax",t);const l=this._predicate,d=this._object;this._subject=this._factory.quad(a,l,d,this.DEFAULTGRAPH),r=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",t);this._subject=null,r=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(i=this._readEntity(t))!==void 0){r=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,t)}if(a!==null){const l=this._predicate,d=this._object;o?this._emit(d,l,a,i):this._emit(a,l,d,i)}return r}_readBlankNodePunctuation(t){let r;switch(t.type){case";":r=this._readPredicate;break;case",":r=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,t)}return this._emit(this._subject,this._predicate,this._object,this._graph),r}_readQuadPunctuation(t){return t.type!=="."?this._error("Expected dot to follow quad",t):this._readInTopContext}_readPrefix(t){return t.type!=="prefix"?this._error("Expected prefix to follow @prefix",t):(this._prefix=t.value,this._readPrefixIRI)}_readPrefixIRI(t){if(t.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,t);const r=this._readEntity(t);return this._prefixes[this._prefix]=r.value,this._prefixCallback(this._prefix,r),this._readDeclarationPunctuation}_readBaseIRI(t){const r=t.type==="IRI"&&this._resolveIRI(t.value);return r?(this._setBase(r),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",t)}_readNamedGraphLabel(t){switch(t.type){case"IRI":case"blank":case"prefixed":return this._readSubject(t),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",t)}}_readNamedGraphBlankLabel(t){return t.type!=="]"?this._error("Invalid graph label",t):(this._subject=this._factory.blankNode(),this._readGraph)}_readDeclarationPunctuation(t){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(t)):t.type!=="."?this._error("Expected declaration to end with a dot",t):this._readInTopContext}_readQuantifierList(t){let r;switch(t.type){case"IRI":case"prefixed":if((r=this._readEntity(t,!0))!==void 0)break;default:return this._error(`Unexpected ${t.type}`,t)}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,r,this.QUANTIFIERS_GRAPH)):this._quantified[r.id]=this._factory[this._quantifier](this._factory.blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(t){return t.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(t))}_getPathReader(t){return this._afterPath=t,this._readPath}_readPath(t){switch(t.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const r=this._contextStack,i=r.length&&r[r.length-1];if(i&&i.type==="item"){const a=this._subject;this._restoreContext("item",t),this._emit(this._subject,this.RDF_FIRST,a,this._graph)}return this._afterPath(t)}}_readForwardPath(t){let r,i;const a=this._factory.blankNode();if((i=this._readEntity(t))!==void 0)return this._predicate===null?(r=this._subject,this._subject=a):(r=this._object,this._object=a),this._emit(r,i,a,this._graph),this._readPath}_readBackwardPath(t){const r=this._factory.blankNode();let i,a;if((i=this._readEntity(t))!==void 0)return this._predicate===null?(a=this._subject,this._subject=r):(a=this._object,this._object=r),this._emit(r,i,a,this._graph),this._readPath}_readRDFStarTailOrGraph(t){return t.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(t))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,t):this._readRDFStarTail(t)}_readRDFStarTail(t){if(t.type!==">>")return this._error(`Expected >> but got ${t.type}`,t);const r=this._factory.quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",t),this._subject===null?(this._subject=r,this._readPredicate):(this._object=r,this._getContextEndReader())}_getContextEndReader(){const t=this._contextStack;if(!t.length)return this._readPunctuation;switch(t[t.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(t,r,i,a){this._callback(null,this._factory.quad(t,r,i,a||this.DEFAULTGRAPH))}_error(t,r){const i=new Error(`${t} on line ${r.line}.`);i.context={token:r,line:r.line,previousToken:this._lexer.previousToken},this._callback(i),this._callback=lt}_resolveIRI(t){return/^[a-z][a-z0-9+.-]*:/i.test(t)?t:this._resolveRelativeIRI(t)}_resolveRelativeIRI(t){if(!t.length)return this._base;switch(t[0]){case"#":return this._base+t;case"?":return this._base.replace(/(?:\?.*)?$/,t);case"/":return(t[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(t);default:return/^[^/:]*:/.test(t)?null:this._removeDotSegments(this._basePath+t)}}_removeDotSegments(t){if(!/(^|\/)\.\.?($|[/#?])/.test(t))return t;const r=t.length;let i="",a=-1,o=-1,l=0,d="/";for(;a=o&&(i=i.substr(0,l)),d!=="/")return`${i}/${t.substr(a+1)}`;l=a+1}}}d=t[++a]}return i+t.substring(l)}parse(t,r,i){let a,o,l;if(r&&(r.onQuad||r.onPrefix||r.onComment)?(a=r.onQuad,o=r.onPrefix,l=r.onComment):(a=r,o=i),this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${Cr++}_`,this._prefixCallback=o||lt,this._inversePredicate=!1,this._quantified=Object.create(null),!a){const y=[];let _;if(this._callback=(g,w)=>{g?_=g:w&&y.push(w)},this._lexer.tokenize(t).every(g=>this._readCallback=this._readCallback(g)),_)throw _;return y}let d=(y,_)=>{y!==null?(this._callback(y),this._callback=lt):this._readCallback&&(this._readCallback=this._readCallback(_))};l&&(this._lexer.comments=!0,d=(y,_)=>{y!==null?(this._callback(y),this._callback=lt):this._readCallback&&(_.type==="comment"?l(_.value):this._readCallback=this._readCallback(_))}),this._callback=a,this._lexer.tokenize(t,d)}}function lt(){}function ji(e,t){e._factory=t,e.DEFAULTGRAPH=t.defaultGraph(),e.RDF_FIRST=t.namedNode(ue.rdf.first),e.RDF_REST=t.namedNode(ue.rdf.rest),e.RDF_NIL=t.namedNode(ue.rdf.nil),e.N3_FORALL=t.namedNode(ue.r.forAll),e.N3_FORSOME=t.namedNode(ue.r.forSome),e.ABBREVIATIONS={a:t.namedNode(ue.rdf.type),"=":t.namedNode(ue.owl.sameAs),">":t.namedNode(ue.log.implies)},e.QUANTIFIERS_GRAPH=t.namedNode("urn:n3:quantifiers")}ji(Di.prototype,tr);var Li={exports:{}},Ot={exports:{}},H={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array},Mi={exports:{}};(function(e){const t=Ee,{kResistStopPropagation:r,SymbolDispose:i}=H,a=globalThis.AbortSignal||et().AbortSignal,o=globalThis.AbortController||et().AbortController,l=Object.getPrototypeOf(async function(){}).constructor,d=globalThis.Blob||t.Blob,y=typeof d<"u"?function(h){return h instanceof d}:function(h){return!1},_=(c,h)=>{if(c!==void 0&&(c===null||typeof c!="object"||!("aborted"in c)))throw new ERR_INVALID_ARG_TYPE(h,"AbortSignal",c)},g=(c,h)=>{if(typeof c!="function")throw new ERR_INVALID_ARG_TYPE(h,"Function",c)};class w extends Error{constructor(h){if(!Array.isArray(h))throw new TypeError(`Expected input to be an Array, got ${typeof h}`);let p="";for(let b=0;b{c=b,h=A}),resolve:c,reject:h}},promisify(c){return new Promise((h,p)=>{c((b,...A)=>b?p(b):h(...A))})},debuglog(){return function(){}},format(c,...h){return c.replace(/%([sdifj])/g,function(...[p,b]){const A=h.shift();return b==="f"?A.toFixed(6):b==="j"?JSON.stringify(A):b==="s"&&typeof A=="object"?`${A.constructor!==Object?A.constructor.name:""} {}`.trim():A.toString()})},inspect(c){switch(typeof c){case"string":if(c.includes("'"))if(c.includes('"')){if(!c.includes("`")&&!c.includes("${"))return`\`${c}\``}else return`"${c}"`;return`'${c}'`;case"number":return isNaN(c)?"NaN":Object.is(c,-0)?String(c):c;case"bigint":return`${String(c)}n`;case"boolean":case"undefined":return String(c);case"object":return"{}"}},types:{isAsyncFunction(c){return c instanceof l},isArrayBufferView(c){return ArrayBuffer.isView(c)}},isBlob:y,deprecate(c,h){return c},addAbortListener:gt.addAbortListener||function(h,p){if(h===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",h);_(h,"signal"),g(p,"listener");let b;return h.aborted?queueMicrotask(()=>p()):(h.addEventListener("abort",p,{__proto__:null,once:!0,[r]:!0}),b=()=>{h.removeEventListener("abort",p)}),{__proto__:null,[i](){var A;(A=b)===null||A===void 0||A()}}},AbortSignalAny:a.any||function(h){if(h.length===1)return h[0];const p=new o,b=()=>p.abort();return h.forEach(A=>{_(A,"signals"),A.addEventListener("abort",b,{once:!0})}),p.signal.addEventListener("abort",()=>{h.forEach(A=>A.removeEventListener("abort",b))},{once:!0}),p.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Mi);var te=Mi.exports,_r={};const{format:ea,inspect:_t,AggregateError:ta}=te,ra=globalThis.AggregateError||ta,ia=Symbol("kIsNodeError"),na=["string","function","number","object","Function","Object","boolean","bigint","symbol"],aa=/^([A-Z][a-z0-9]*)+$/,sa="__node_internal_",yt={};function Ne(e,t){if(!e)throw new yt.ERR_INTERNAL_ASSERTION(t)}function Fr(e){let t="",r=e.length;const i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function oa(e,t,r){if(typeof t=="function")return Ne(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return Ne(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?t:ea(t,...r)}function Z(e,t,r){r||(r=Error);class i extends r{constructor(...o){super(oa(e,t,o))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[ia]=!0,yt[e]=i}function Wr(e){const t=sa+e.name;return Object.defineProperty(e,"name",{value:t}),e}function la(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new ra([t,e],t.message);return r.code=t.code,r}return e||t}let ua=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new yt.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};Z("ERR_ASSERTION","%s",Error);Z("ERR_INVALID_ARG_TYPE",(e,t,r)=>{Ne(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";e.endsWith(" argument")?i+=`${e} `:i+=`"${e}" ${e.includes(".")?"property":"argument"} `,i+="must be ";const a=[],o=[],l=[];for(const y of t)Ne(typeof y=="string","All expected entries have to be of type string"),na.includes(y)?a.push(y.toLowerCase()):aa.test(y)?o.push(y):(Ne(y!=="object",'The value "object" should be written as "Object"'),l.push(y));if(o.length>0){const y=a.indexOf("object");y!==-1&&(a.splice(a,y,1),o.push("Object"))}if(a.length>0){switch(a.length){case 1:i+=`of type ${a[0]}`;break;case 2:i+=`one of type ${a[0]} or ${a[1]}`;break;default:{const y=a.pop();i+=`one of type ${a.join(", ")}, or ${y}`}}(o.length>0||l.length>0)&&(i+=" or ")}if(o.length>0){switch(o.length){case 1:i+=`an instance of ${o[0]}`;break;case 2:i+=`an instance of ${o[0]} or ${o[1]}`;break;default:{const y=o.pop();i+=`an instance of ${o.join(", ")}, or ${y}`}}l.length>0&&(i+=" or ")}switch(l.length){case 0:break;case 1:l[0].toLowerCase()!==l[0]&&(i+="an "),i+=`${l[0]}`;break;case 2:i+=`one of ${l[0]} or ${l[1]}`;break;default:{const y=l.pop();i+=`one of ${l.join(", ")}, or ${y}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var d;if((d=r.constructor)!==null&&d!==void 0&&d.name)i+=`. Received an instance of ${r.constructor.name}`;else{const y=_t(r,{depth:-1});i+=`. Received ${y}`}}else{let y=_t(r,{colors:!1});y.length>25&&(y=`${y.slice(0,25)}...`),i+=`. Received type ${typeof r} (${y})`}return i},TypeError);Z("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=_t(t);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${i}`},TypeError);Z("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var i;const a=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${a}.`},TypeError);Z("ERR_MISSING_ARGS",(...e)=>{Ne(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(i=>`"${i}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const i=e.pop();t+=`The ${e.join(", ")}, and ${i} arguments`}break}return`${t} must be specified`},TypeError);Z("ERR_OUT_OF_RANGE",(e,t,r)=>{Ne(t,'Missing "range" argument');let i;return Number.isInteger(r)&&Math.abs(r)>2**32?i=Fr(String(r)):typeof r=="bigint"?(i=String(r),(r>2n**32n||r<-(2n**32n))&&(i=Fr(i)),i+="n"):i=_t(r),`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError);Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Z("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Z("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Z("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Z("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Z("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Z("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var ne={AbortError:ua,aggregateTwoErrors:Wr(la),hideStackFrames:Wr,codes:yt};const{ArrayIsArray:br,ArrayPrototypeIncludes:Oi,ArrayPrototypeJoin:Ci,ArrayPrototypeMap:fa,NumberIsInteger:pr,NumberIsNaN:da,NumberMAX_SAFE_INTEGER:ca,NumberMIN_SAFE_INTEGER:ha,NumberParseInt:_a,ObjectPrototypeHasOwnProperty:ba,RegExpPrototypeExec:Fi,String:pa,StringPrototypeToUpperCase:ga,StringPrototypeTrim:ya}=H,{hideStackFrames:oe,codes:{ERR_SOCKET_BAD_PORT:wa,ERR_INVALID_ARG_TYPE:ee,ERR_INVALID_ARG_VALUE:qe,ERR_OUT_OF_RANGE:Pe,ERR_UNKNOWN_SIGNAL:Br}}=ne,{normalizeEncoding:Sa}=te,{isAsyncFunction:Ra,isArrayBufferView:Ea}=te.types,Ur={};function ma(e){return e===(e|0)}function xa(e){return e===e>>>0}const Aa=/^[0-7]+$/,va="must be a 32-bit unsigned integer or an octal string";function Ta(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(Fi(Aa,e)===null)throw new qe(t,e,va);e=_a(e,8)}return Wi(e,t),e}const Ia=oe((e,t,r=ha,i=ca)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!pr(e))throw new Pe(t,"an integer",e);if(ei)throw new Pe(t,`>= ${r} && <= ${i}`,e)}),Na=oe((e,t,r=-2147483648,i=2147483647)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!pr(e))throw new Pe(t,"an integer",e);if(ei)throw new Pe(t,`>= ${r} && <= ${i}`,e)}),Wi=oe((e,t,r=!1)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!pr(e))throw new Pe(t,"an integer",e);const i=r?1:0,a=4294967295;if(ea)throw new Pe(t,`>= ${i} && <= ${a}`,e)});function gr(e,t){if(typeof e!="string")throw new ee(t,"string",e)}function Pa(e,t,r=void 0,i){if(typeof e!="number")throw new ee(t,"number",e);if(r!=null&&ei||(r!=null||i!=null)&&da(e))throw new Pe(t,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,e)}const $a=oe((e,t,r)=>{if(!Oi(r,e)){const a="must be one of: "+Ci(fa(r,o=>typeof o=="string"?`'${o}'`:pa(o)),", ");throw new qe(t,e,a)}});function Bi(e,t){if(typeof e!="boolean")throw new ee(t,"boolean",e)}function Ct(e,t,r){return e==null||!ba(e,t)?r:e[t]}const ka=oe((e,t,r=null)=>{const i=Ct(r,"allowArray",!1),a=Ct(r,"allowFunction",!1);if(!Ct(r,"nullable",!1)&&e===null||!i&&br(e)||typeof e!="object"&&(!a||typeof e!="function"))throw new ee(t,"Object",e)}),Da=oe((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new ee(t,"a dictionary",e)}),wt=oe((e,t,r=0)=>{if(!br(e))throw new ee(t,"Array",e);if(e.length{if(!Ea(e))throw new ee(t,["Buffer","TypedArray","DataView"],e)});function Fa(e,t){const r=Sa(t),i=e.length;if(r==="hex"&&i%2!==0)throw new qe("encoding",t,`is invalid for data of length ${i}`)}function Wa(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&ya(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new wa(t,e,r);return e|0}const Ui=oe((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new ee(t,"AbortSignal",e)}),Ba=oe((e,t)=>{if(typeof e!="function")throw new ee(t,"Function",e)}),Ua=oe((e,t)=>{if(typeof e!="function"||Ra(e))throw new ee(t,"Function",e)}),Ga=oe((e,t)=>{if(e!==void 0)throw new ee(t,"undefined",e)});function qa(e,t,r){if(!Oi(r,e))throw new ee(t,`('${Ci(r,"|")}')`,e)}const Ha=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Gr(e,t){if(typeof e>"u"||!Fi(Ha,e))throw new qe(t,e,'must be an array or string of format "; rel=preload; as=style"')}function Va(e){if(typeof e=="string")return Gr(e,"hints"),e;if(br(e)){const t=e.length;let r="";if(t===0)return r;for(let i=0;i; rel=preload; as=style"')}var tt={isInt32:ma,isUint32:xa,parseFileMode:Ta,validateArray:wt,validateStringArray:ja,validateBooleanArray:La,validateAbortSignalArray:Ma,validateBoolean:Bi,validateBuffer:Ca,validateDictionary:Da,validateEncoding:Fa,validateFunction:Ba,validateInt32:Na,validateInteger:Ia,validateNumber:Pa,validateObject:ka,validateOneOf:$a,validatePlainFunction:Ua,validatePort:Wa,validateSignalName:Oa,validateString:gr,validateUint32:Wi,validateUndefined:Ga,validateUnion:qa,validateAbortSignal:Ui,validateLinkHeaderValue:Va},yr={exports:{}};const{SymbolAsyncIterator:qr,SymbolIterator:Hr,SymbolFor:ke}=H,Gi=ke("nodejs.stream.destroyed"),qi=ke("nodejs.stream.errored"),ir=ke("nodejs.stream.readable"),nr=ke("nodejs.stream.writable"),Hi=ke("nodejs.stream.disturbed"),za=ke("nodejs.webstream.isClosedPromise"),Qa=ke("nodejs.webstream.controllerErrorFunction");function St(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function Rt(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function Ya(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function he(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function Vi(e){return!!(e&&!he(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function zi(e){return!!(e&&!he(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function Qi(e){return!!(e&&!he(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function Ka(e){return Vi(e)||zi(e)||Qi(e)}function Ja(e,t){return e==null?!1:t===!0?typeof e[qr]=="function":t===!1?typeof e[Hr]=="function":typeof e[qr]=="function"||typeof e[Hr]=="function"}function Et(e){if(!he(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!!(e.destroyed||e[Gi]||i!=null&&i.destroyed)}function Yi(e){if(!Rt(e))return null;if(e.writableEnded===!0)return!0;const t=e._writableState;return t!=null&&t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function Za(e,t){if(!Rt(e))return null;if(e.writableFinished===!0)return!0;const r=e._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function Xa(e){if(!St(e))return null;if(e.readableEnded===!0)return!0;const t=e._readableState;return!t||t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function Ki(e,t){if(!St(e))return null;const r=e._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function Ji(e){return e&&e[ir]!=null?e[ir]:typeof(e==null?void 0:e.readable)!="boolean"?null:Et(e)?!1:St(e)&&e.readable&&!Ki(e)}function Zi(e){return e&&e[nr]!=null?e[nr]:typeof(e==null?void 0:e.writable)!="boolean"?null:Et(e)?!1:Rt(e)&&e.writable&&!Yi(e)}function es(e,t){return he(e)?Et(e)?!0:!((t==null?void 0:t.readable)!==!1&&Ji(e)||(t==null?void 0:t.writable)!==!1&&Zi(e)):null}function ts(e){var t,r;return he(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function rs(e){var t,r;return he(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function is(e){if(!he(e))return null;if(typeof e.closed=="boolean")return e.closed;const t=e._writableState,r=e._readableState;return typeof(t==null?void 0:t.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(t==null?void 0:t.closed)||(r==null?void 0:r.closed):typeof e._closed=="boolean"&&Xi(e)?e._closed:null}function Xi(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function en(e){return typeof e._sent100=="boolean"&&Xi(e)}function ns(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function as(e){if(!he(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!i&&en(e)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function ss(e){var t;return!!(e&&((t=e[Hi])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function os(e){var t,r,i,a,o,l,d,y,_,g;return!!(e&&((t=(r=(i=(a=(o=(l=e[qi])!==null&&l!==void 0?l:e.readableErrored)!==null&&o!==void 0?o:e.writableErrored)!==null&&a!==void 0?a:(d=e._readableState)===null||d===void 0?void 0:d.errorEmitted)!==null&&i!==void 0?i:(y=e._writableState)===null||y===void 0?void 0:y.errorEmitted)!==null&&r!==void 0?r:(_=e._readableState)===null||_===void 0?void 0:_.errored)!==null&&t!==void 0?t:!((g=e._writableState)===null||g===void 0)&&g.errored))}var we={isDestroyed:Et,kIsDestroyed:Gi,isDisturbed:ss,kIsDisturbed:Hi,isErrored:os,kIsErrored:qi,isReadable:Ji,kIsReadable:ir,kIsClosedPromise:za,kControllerErrorFunction:Qa,kIsWritable:nr,isClosed:is,isDuplexNodeStream:Ya,isFinished:es,isIterable:Ja,isReadableNodeStream:St,isReadableStream:Vi,isReadableEnded:Xa,isReadableFinished:Ki,isReadableErrored:rs,isNodeStream:he,isWebStream:Ka,isWritable:Zi,isWritableNodeStream:Rt,isWritableStream:zi,isWritableEnded:Yi,isWritableFinished:Za,isWritableErrored:ts,isServerRequest:ns,isServerResponse:en,willEmitClose:as,isTransformStream:Qi};const Re=$e,{AbortError:tn,codes:ls}=ne,{ERR_INVALID_ARG_TYPE:us,ERR_STREAM_PREMATURE_CLOSE:Vr}=ls,{kEmptyObject:ar,once:sr}=te,{validateAbortSignal:fs,validateFunction:ds,validateObject:cs,validateBoolean:hs}=tt,{Promise:_s,PromisePrototypeThen:bs,SymbolDispose:rn}=H,{isClosed:ps,isReadable:zr,isReadableNodeStream:Ft,isReadableStream:gs,isReadableFinished:Qr,isReadableErrored:Yr,isWritable:Kr,isWritableNodeStream:Jr,isWritableStream:ys,isWritableFinished:Zr,isWritableErrored:Xr,isNodeStream:ws,willEmitClose:Ss,kIsClosedPromise:Rs}=we;let Be;function Es(e){return e.setHeader&&typeof e.abort=="function"}const or=()=>{};function nn(e,t,r){var i,a;if(arguments.length===2?(r=t,t=ar):t==null?t=ar:cs(t,"options"),ds(r,"callback"),fs(t.signal,"options.signal"),r=sr(r),gs(e)||ys(e))return ms(e,t,r);if(!ws(e))throw new us("stream",["ReadableStream","WritableStream","Stream"],e);const o=(i=t.readable)!==null&&i!==void 0?i:Ft(e),l=(a=t.writable)!==null&&a!==void 0?a:Jr(e),d=e._writableState,y=e._readableState,_=()=>{e.writable||c()};let g=Ss(e)&&Ft(e)===o&&Jr(e)===l,w=Zr(e,!1);const c=()=>{w=!0,e.destroyed&&(g=!1),!(g&&(!e.readable||o))&&(!o||h)&&r.call(e)};let h=Qr(e,!1);const p=()=>{h=!0,e.destroyed&&(g=!1),!(g&&(!e.writable||l))&&(!l||w)&&r.call(e)},b=D=>{r.call(e,D)};let A=ps(e);const $=()=>{A=!0;const D=Xr(e)||Yr(e);if(D&&typeof D!="boolean")return r.call(e,D);if(o&&!h&&Ft(e,!0)&&!Qr(e,!1))return r.call(e,new Vr);if(l&&!w&&!Zr(e,!1))return r.call(e,new Vr);r.call(e)},N=()=>{A=!0;const D=Xr(e)||Yr(e);if(D&&typeof D!="boolean")return r.call(e,D);r.call(e)},R=()=>{e.req.on("finish",c)};Es(e)?(e.on("complete",c),g||e.on("abort",$),e.req?R():e.on("request",R)):l&&!d&&(e.on("end",_),e.on("close",_)),!g&&typeof e.aborted=="boolean"&&e.on("aborted",$),e.on("end",p),e.on("finish",c),t.error!==!1&&e.on("error",b),e.on("close",$),A?Re.nextTick($):d!=null&&d.errorEmitted||y!=null&&y.errorEmitted?g||Re.nextTick(N):(!o&&(!g||zr(e))&&(w||Kr(e)===!1)||!l&&(!g||Kr(e))&&(h||zr(e)===!1)||y&&e.req&&e.aborted)&&Re.nextTick(N);const W=()=>{r=or,e.removeListener("aborted",$),e.removeListener("complete",c),e.removeListener("abort",$),e.removeListener("request",R),e.req&&e.req.removeListener("finish",c),e.removeListener("end",_),e.removeListener("close",_),e.removeListener("finish",c),e.removeListener("end",p),e.removeListener("error",b),e.removeListener("close",$)};if(t.signal&&!A){const D=()=>{const K=r;W(),K.call(e,new tn(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)Re.nextTick(D);else{Be=Be||te.addAbortListener;const K=Be(t.signal,D),ae=r;r=sr((...U)=>{K[rn](),ae.apply(e,U)})}}return W}function ms(e,t,r){let i=!1,a=or;if(t.signal)if(a=()=>{i=!0,r.call(e,new tn(void 0,{cause:t.signal.reason}))},t.signal.aborted)Re.nextTick(a);else{Be=Be||te.addAbortListener;const l=Be(t.signal,a),d=r;r=sr((...y)=>{l[rn](),d.apply(e,y)})}const o=(...l)=>{i||Re.nextTick(()=>r.apply(e,l))};return bs(e[Rs].promise,o,o),or}function xs(e,t){var r;let i=!1;return t===null&&(t=ar),(r=t)!==null&&r!==void 0&&r.cleanup&&(hs(t.cleanup,"cleanup"),i=t.cleanup),new _s((a,o)=>{const l=nn(e,t,d=>{i&&l(),d?o(d):a()})})}yr.exports=nn;yr.exports.finished=xs;var me=yr.exports;const fe=$e,{aggregateTwoErrors:As,codes:{ERR_MULTIPLE_CALLBACK:vs},AbortError:Ts}=ne,{Symbol:an}=H,{kIsDestroyed:Is,isDestroyed:Ns,isFinished:Ps,isServerRequest:$s}=we,sn=an("kDestroy"),lr=an("kConstruct");function on(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function ks(e,t){const r=this._readableState,i=this._writableState,a=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(on(e,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),a.constructed?ei(this,e,t):this.once(sn,function(o){ei(this,As(o,e),t)}),this)}function ei(e,t,r){let i=!1;function a(o){if(i)return;i=!0;const l=e._readableState,d=e._writableState;on(o,d,l),d&&(d.closed=!0),l&&(l.closed=!0),typeof r=="function"&&r(o),o?fe.nextTick(Ds,e,o):fe.nextTick(ln,e)}try{e._destroy(t||null,a)}catch(o){a(o)}}function Ds(e,t){ur(e,t),ln(e)}function ln(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function ur(e,t){const r=e._readableState,i=e._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function js(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function fr(e,t,r){const i=e._readableState,a=e._writableState;if(a!=null&&a.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||a!=null&&a.autoDestroy?e.destroy(t):t&&(t.stack,a&&!a.errored&&(a.errored=t),i&&!i.errored&&(i.errored=t),r?fe.nextTick(ur,e,t):ur(e,t))}function Ls(e,t){if(typeof e._construct!="function")return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(lr,t),!(e.listenerCount(lr)>1)&&fe.nextTick(Ms,e)}function Ms(e){let t=!1;function r(i){if(t){fr(e,i??new vs);return}t=!0;const a=e._readableState,o=e._writableState,l=o||a;a&&(a.constructed=!0),o&&(o.constructed=!0),l.destroyed?e.emit(sn,i):i?fr(e,i,!0):fe.nextTick(Os,e)}try{e._construct(i=>{fe.nextTick(r,i)})}catch(i){fe.nextTick(r,i)}}function Os(e){e.emit(lr)}function ti(e){return(e==null?void 0:e.setHeader)&&typeof e.abort=="function"}function un(e){e.emit("close")}function Cs(e,t){e.emit("error",t),fe.nextTick(un,e)}function Fs(e,t){!e||Ns(e)||(!t&&!Ps(e)&&(t=new Ts),$s(e)?(e.socket=null,e.destroy(t)):ti(e)?e.abort():ti(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?fe.nextTick(Cs,e,t):fe.nextTick(un,e),e.destroyed||(e[Is]=!0))}var He={construct:Ls,destroyer:Fs,destroy:ks,undestroy:js,errorOrDestroy:fr};const{ArrayIsArray:Ws,ObjectSetPrototypeOf:fn}=H,{EventEmitter:mt}=gt;function xt(e){mt.call(this,e)}fn(xt.prototype,mt.prototype);fn(xt,mt);xt.prototype.pipe=function(e,t){const r=this;function i(g){e.writable&&e.write(g)===!1&&r.pause&&r.pause()}r.on("data",i);function a(){r.readable&&r.resume&&r.resume()}e.on("drain",a),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",l),r.on("close",d));let o=!1;function l(){o||(o=!0,e.end())}function d(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function y(g){_(),mt.listenerCount(this,"error")===0&&this.emit("error",g)}dr(r,"error",y),dr(e,"error",y);function _(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",l),r.removeListener("close",d),r.removeListener("error",y),e.removeListener("error",y),r.removeListener("end",_),r.removeListener("close",_),e.removeListener("close",_)}return r.on("end",_),r.on("close",_),e.on("close",_),e.emit("pipe",r),e};function dr(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Ws(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}var wr={Stream:xt,prependListener:dr},dn={exports:{}};(function(e){const{SymbolDispose:t}=H,{AbortError:r,codes:i}=ne,{isNodeStream:a,isWebStream:o,kControllerErrorFunction:l}=we,d=me,{ERR_INVALID_ARG_TYPE:y}=i;let _;const g=(w,c)=>{if(typeof w!="object"||!("aborted"in w))throw new y(c,"AbortSignal",w)};e.exports.addAbortSignal=function(c,h){if(g(c,"signal"),!a(h)&&!o(h))throw new y("stream",["ReadableStream","WritableStream","Stream"],h);return e.exports.addAbortSignalNoValidate(c,h)},e.exports.addAbortSignalNoValidate=function(w,c){if(typeof w!="object"||!("aborted"in w))return c;const h=a(c)?()=>{c.destroy(new r(void 0,{cause:w.reason}))}:()=>{c[l](new r(void 0,{cause:w.reason}))};if(w.aborted)h();else{_=_||te.addAbortListener;const p=_(w,h);d(c,p[t])}return c}})(dn);var At=dn.exports;const{StringPrototypeSlice:ri,SymbolIterator:Bs,TypedArrayPrototypeSet:ut,Uint8Array:Us}=H,{Buffer:Wt}=Ee,{inspect:Gs}=te;var qs=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){const r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=t+r.data;return i}concat(t){if(this.length===0)return Wt.alloc(0);const r=Wt.allocUnsafe(t>>>0);let i=this.head,a=0;for(;i;)ut(r,i.data,a),a+=i.data.length,i=i.next;return r}consume(t,r){const i=this.head.data;if(to.length)r+=o,t-=o.length;else{t===o.length?(r+=o,++a,i.next?this.head=i.next:this.head=this.tail=null):(r+=ri(o,0,t),this.head=i,i.data=ri(o,t));break}++a}while((i=i.next)!==null);return this.length-=a,r}_getBuffer(t){const r=Wt.allocUnsafe(t),i=t;let a=this.head,o=0;do{const l=a.data;if(t>l.length)ut(r,l,i-t),t-=l.length;else{t===l.length?(ut(r,l,i-t),++o,a.next?this.head=a.next:this.head=this.tail=null):(ut(r,new Us(l.buffer,l.byteOffset,t),i-t),this.head=a,a.data=l.slice(t));break}++o}while((a=a.next)!==null);return this.length-=o,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return Gs(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:Hs,NumberIsInteger:Vs}=H,{validateInteger:zs}=tt,{ERR_INVALID_ARG_VALUE:Qs}=ne.codes;let cn=16*1024,hn=16;function Ys(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function _n(e){return e?hn:cn}function Ks(e,t){zs(t,"value",0),e?hn=t:cn=t}function Js(e,t,r,i){const a=Ys(t,i,r);if(a!=null){if(!Vs(a)||a<0){const o=i?`options.${r}`:"options.highWaterMark";throw new Qs(o,a)}return Hs(a)}return _n(e.objectMode)}var vt={getHighWaterMark:Js,getDefaultHighWaterMark:_n,setDefaultHighWaterMark:Ks};const ii=$e,{PromisePrototypeThen:Zs,SymbolAsyncIterator:ni,SymbolIterator:ai}=H,{Buffer:Xs}=Ee,{ERR_INVALID_ARG_TYPE:eo,ERR_STREAM_NULL_VALUES:to}=ne.codes;function ro(e,t,r){let i;if(typeof t=="string"||t instanceof Xs)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let a;if(t&&t[ni])a=!0,i=t[ni]();else if(t&&t[ai])a=!1,i=t[ai]();else throw new eo("iterable",["Iterable"],t);const o=new e({objectMode:!0,highWaterMark:1,...r});let l=!1;o._read=function(){l||(l=!0,y())},o._destroy=function(_,g){Zs(d(_),()=>ii.nextTick(g,_),w=>ii.nextTick(g,w||_))};async function d(_){const g=_!=null,w=typeof i.throw=="function";if(g&&w){const{value:c,done:h}=await i.throw(_);if(await c,h)return}if(typeof i.return=="function"){const{value:c}=await i.return();await c}}async function y(){for(;;){try{const{value:_,done:g}=a?await i.next():i.next();if(g)o.push(null);else{const w=_&&typeof _.then=="function"?await _:_;if(w===null)throw l=!1,new to;if(o.push(w))continue;l=!1}}catch(_){o.destroy(_)}break}}return o}var bn=ro,Bt,si;function Tt(){if(si)return Bt;si=1;const e=$e,{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:i,NumberParseInt:a,ObjectDefineProperties:o,ObjectKeys:l,ObjectSetPrototypeOf:d,Promise:y,SafeSet:_,SymbolAsyncDispose:g,SymbolAsyncIterator:w,Symbol:c}=H;Bt=k,k.ReadableState=be;const{EventEmitter:h}=gt,{Stream:p,prependListener:b}=wr,{Buffer:A}=Ee,{addAbortSignal:$}=At,N=me;let R=te.debuglog("stream",n=>{R=n});const W=qs,D=He,{getHighWaterMark:K,getDefaultHighWaterMark:ae}=vt,{aggregateTwoErrors:U,codes:{ERR_INVALID_ARG_TYPE:V,ERR_METHOD_NOT_IMPLEMENTED:re,ERR_OUT_OF_RANGE:ie,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:E},AbortError:O}=ne,{validateObject:j}=tt,L=c("kPaused"),{StringDecoder:z}=Wn,Q=bn;d(k.prototype,p.prototype),d(k,p);const q=()=>{},{errorOrDestroy:Y}=D,C=1,_e=2,P=4,J=8,le=16,Le=32,Me=64,Oe=128,Ve=256,Nt=512,ze=1024,Ce=2048,u=4096,f=8192,S=16384,T=32768,I=65536,B=1<<17,G=1<<18;function F(n){return{enumerable:!1,get(){return(this.state&n)!==0},set(s){s?this.state|=n:this.state&=~n}}}o(be.prototype,{objectMode:F(C),ended:F(_e),endEmitted:F(P),reading:F(J),constructed:F(le),sync:F(Le),needReadable:F(Me),emittedReadable:F(Oe),readableListening:F(Ve),resumeScheduled:F(Nt),errorEmitted:F(ze),emitClose:F(Ce),autoDestroy:F(u),destroyed:F(f),closed:F(S),closeEmitted:F(T),multiAwaitDrain:F(I),readingMore:F(B),dataEmitted:F(G)});function be(n,s,m){typeof m!="boolean"&&(m=s instanceof ge()),this.state=Ce|u|le|Le,n&&n.objectMode&&(this.state|=C),m&&n&&n.readableObjectMode&&(this.state|=C),this.highWaterMark=n?K(this,n,"readableHighWaterMark",m):ae(!1),this.buffer=new W,this.length=0,this.pipes=[],this.flowing=null,this[L]=null,n&&n.emitClose===!1&&(this.state&=~Ce),n&&n.autoDestroy===!1&&(this.state&=~u),this.errored=null,this.defaultEncoding=n&&n.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,n&&n.encoding&&(this.decoder=new z(n.encoding),this.encoding=n.encoding)}function k(n){if(!(this instanceof k))return new k(n);const s=this instanceof ge();this._readableState=new be(n,this,s),n&&(typeof n.read=="function"&&(this._read=n.read),typeof n.destroy=="function"&&(this._destroy=n.destroy),typeof n.construct=="function"&&(this._construct=n.construct),n.signal&&!s&&$(n.signal,this)),p.call(this,n),D.construct(this,()=>{this._readableState.needReadable&&nt(this,this._readableState)})}k.prototype.destroy=D.destroy,k.prototype._undestroy=D.undestroy,k.prototype._destroy=function(n,s){s(n)},k.prototype[h.captureRejectionSymbol]=function(n){this.destroy(n)},k.prototype[g]=function(){let n;return this.destroyed||(n=this.readableEnded?null:new O,this.destroy(n)),new y((s,m)=>N(this,x=>x&&x!==n?m(x):s(null)))},k.prototype.push=function(n,s){return Se(this,n,s,!1)},k.prototype.unshift=function(n,s){return Se(this,n,s,!0)};function Se(n,s,m,x){R("readableAddChunk",s);const v=n._readableState;let X;if(v.state&C||(typeof s=="string"?(m=m||v.defaultEncoding,v.encoding!==m&&(x&&v.encoding?s=A.from(s,m).toString(v.encoding):(s=A.from(s,m),m=""))):s instanceof A?m="":p._isUint8Array(s)?(s=p._uint8ArrayToBuffer(s),m=""):s!=null&&(X=new V("chunk",["string","Buffer","Uint8Array"],s))),X)Y(n,X);else if(s===null)v.state&=~J,Nn(n,v);else if(v.state&C||s&&s.length>0)if(x)if(v.state&P)Y(n,new E);else{if(v.destroyed||v.errored)return!1;Pt(n,v,s,!0)}else if(v.ended)Y(n,new M);else{if(v.destroyed||v.errored)return!1;v.state&=~J,v.decoder&&!m?(s=v.decoder.write(s),v.objectMode||s.length!==0?Pt(n,v,s,!1):nt(n,v)):Pt(n,v,s,!1)}else x||(v.state&=~J,nt(n,v));return!v.ended&&(v.length0?(s.state&I?s.awaitDrainWriters.clear():s.awaitDrainWriters=null,s.dataEmitted=!0,n.emit("data",m)):(s.length+=s.objectMode?1:m.length,x?s.buffer.unshift(m):s.buffer.push(m),s.state&Me&&it(n)),nt(n,s)}k.prototype.isPaused=function(){const n=this._readableState;return n[L]===!0||n.flowing===!1},k.prototype.setEncoding=function(n){const s=new z(n);this._readableState.decoder=s,this._readableState.encoding=this._readableState.decoder.encoding;const m=this._readableState.buffer;let x="";for(const v of m)x+=s.write(v);return m.clear(),x!==""&&m.push(x),this._readableState.length=x.length,this};const Tn=1073741824;function In(n){if(n>Tn)throw new ie("size","<= 1GiB",n);return n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++,n}function Ar(n,s){return n<=0||s.length===0&&s.ended?0:s.state&C?1:i(n)?s.flowing&&s.length?s.buffer.first().length:s.length:n<=s.length?n:s.ended?s.length:0}k.prototype.read=function(n){R("read",n),n===void 0?n=NaN:r(n)||(n=a(n,10));const s=this._readableState,m=n;if(n>s.highWaterMark&&(s.highWaterMark=In(n)),n!==0&&(s.state&=~Oe),n===0&&s.needReadable&&((s.highWaterMark!==0?s.length>=s.highWaterMark:s.length>0)||s.ended))return R("read: emitReadable",s.length,s.ended),s.length===0&&s.ended?$t(this):it(this),null;if(n=Ar(n,s),n===0&&s.ended)return s.length===0&&$t(this),null;let x=(s.state&Me)!==0;if(R("need readable",x),(s.length===0||s.length-n0?v=Pr(n,s):v=null,v===null?(s.needReadable=s.length<=s.highWaterMark,n=0):(s.length-=n,s.multiAwaitDrain?s.awaitDrainWriters.clear():s.awaitDrainWriters=null),s.length===0&&(s.ended||(s.needReadable=!0),m!==n&&s.ended&&$t(this)),v!==null&&!s.errorEmitted&&!s.closeEmitted&&(s.dataEmitted=!0,this.emit("data",v)),v};function Nn(n,s){if(R("onEofChunk"),!s.ended){if(s.decoder){const m=s.decoder.end();m&&m.length&&(s.buffer.push(m),s.length+=s.objectMode?1:m.length)}s.ended=!0,s.sync?it(n):(s.needReadable=!1,s.emittedReadable=!0,vr(n))}}function it(n){const s=n._readableState;R("emitReadable",s.needReadable,s.emittedReadable),s.needReadable=!1,s.emittedReadable||(R("emitReadable",s.flowing),s.emittedReadable=!0,e.nextTick(vr,n))}function vr(n){const s=n._readableState;R("emitReadable_",s.destroyed,s.length,s.ended),!s.destroyed&&!s.errored&&(s.length||s.ended)&&(n.emit("readable"),s.emittedReadable=!1),s.needReadable=!s.flowing&&!s.ended&&s.length<=s.highWaterMark,Ir(n)}function nt(n,s){!s.readingMore&&s.constructed&&(s.readingMore=!0,e.nextTick(Pn,n,s))}function Pn(n,s){for(;!s.reading&&!s.ended&&(s.length1&&x.pipes.includes(n)&&(R("false write response, pause",x.awaitDrainWriters.size),x.awaitDrainWriters.add(n)),m.pause()),xe||(xe=$n(m,n),n.on("drain",xe))}m.on("data",Lr);function Lr(Ae){R("ondata");const pe=n.write(Ae);R("dest.write",pe),pe===!1&&jr()}function Dt(Ae){if(R("onerror",Ae),Qe(),n.removeListener("error",Dt),n.listenerCount("error")===0){const pe=n._writableState||n._readableState;pe&&!pe.errorEmitted?Y(n,Ae):n.emit("error",Ae)}}b(n,"error",Dt);function jt(){n.removeListener("finish",Lt),Qe()}n.once("close",jt);function Lt(){R("onfinish"),n.removeListener("close",jt),Qe()}n.once("finish",Lt);function Qe(){R("unpipe"),m.unpipe(n)}return n.emit("pipe",m),n.writableNeedDrain===!0?jr():x.flowing||(R("pipe resume"),m.resume()),n};function $n(n,s){return function(){const x=n._readableState;x.awaitDrainWriters===s?(R("pipeOnDrain",1),x.awaitDrainWriters=null):x.multiAwaitDrain&&(R("pipeOnDrain",x.awaitDrainWriters.size),x.awaitDrainWriters.delete(s)),(!x.awaitDrainWriters||x.awaitDrainWriters.size===0)&&n.listenerCount("data")&&n.resume()}}k.prototype.unpipe=function(n){const s=this._readableState,m={hasUnpiped:!1};if(s.pipes.length===0)return this;if(!n){const v=s.pipes;s.pipes=[],this.pause();for(let X=0;X0,x.flowing!==!1&&this.resume()):n==="readable"&&!x.endEmitted&&!x.readableListening&&(x.readableListening=x.needReadable=!0,x.flowing=!1,x.emittedReadable=!1,R("on readable",x.length,x.reading),x.length?it(this):x.reading||e.nextTick(kn,this)),m},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(n,s){const m=p.prototype.removeListener.call(this,n,s);return n==="readable"&&e.nextTick(Tr,this),m},k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=function(n){const s=p.prototype.removeAllListeners.apply(this,arguments);return(n==="readable"||n===void 0)&&e.nextTick(Tr,this),s};function Tr(n){const s=n._readableState;s.readableListening=n.listenerCount("readable")>0,s.resumeScheduled&&s[L]===!1?s.flowing=!0:n.listenerCount("data")>0?n.resume():s.readableListening||(s.flowing=null)}function kn(n){R("readable nexttick read 0"),n.read(0)}k.prototype.resume=function(){const n=this._readableState;return n.flowing||(R("resume"),n.flowing=!n.readableListening,Dn(this,n)),n[L]=!1,this};function Dn(n,s){s.resumeScheduled||(s.resumeScheduled=!0,e.nextTick(jn,n,s))}function jn(n,s){R("resume",s.reading),s.reading||n.read(0),s.resumeScheduled=!1,n.emit("resume"),Ir(n),s.flowing&&!s.reading&&n.read(0)}k.prototype.pause=function(){return R("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(R("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[L]=!0,this};function Ir(n){const s=n._readableState;for(R("flow",s.flowing);s.flowing&&n.read()!==null;);}k.prototype.wrap=function(n){let s=!1;n.on("data",x=>{!this.push(x)&&n.pause&&(s=!0,n.pause())}),n.on("end",()=>{this.push(null)}),n.on("error",x=>{Y(this,x)}),n.on("close",()=>{this.destroy()}),n.on("destroy",()=>{this.destroy()}),this._read=()=>{s&&n.resume&&(s=!1,n.resume())};const m=l(n);for(let x=1;x{v=se?U(v,se):null,m(),m=q});try{for(;;){const se=n.destroyed?null:n.read();if(se!==null)yield se;else{if(v)throw v;if(v===null)return;await new y(x)}}}catch(se){throw v=U(v,se),v}finally{(v||(s==null?void 0:s.destroyOnReturn)!==!1)&&(v===void 0||n._readableState.autoDestroy)?D.destroyer(n,null):(n.off("readable",x),X())}}o(k.prototype,{readable:{__proto__:null,get(){const n=this._readableState;return!!n&&n.readable!==!1&&!n.destroyed&&!n.errorEmitted&&!n.endEmitted},set(n){this._readableState&&(this._readableState.readable=!!n)}},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(n){this._readableState&&(this._readableState.flowing=n)}},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(n){this._readableState&&(this._readableState.destroyed=n)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),o(be.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[L]!==!1},set(n){this[L]=!!n}}}),k._fromList=Pr;function Pr(n,s){if(s.length===0)return null;let m;return s.objectMode?m=s.buffer.shift():!n||n>=s.length?(s.decoder?m=s.buffer.join(""):s.buffer.length===1?m=s.buffer.first():m=s.buffer.concat(s.length),s.buffer.clear()):m=s.buffer.consume(n,s.decoder),m}function $t(n){const s=n._readableState;R("endReadable",s.endEmitted),s.endEmitted||(s.ended=!0,e.nextTick(Mn,s,n))}function Mn(n,s){if(R("endReadableNT",n.endEmitted,n.length),!n.errored&&!n.closeEmitted&&!n.endEmitted&&n.length===0){if(n.endEmitted=!0,s.emit("end"),s.writable&&s.allowHalfOpen===!1)e.nextTick(On,s);else if(n.autoDestroy){const m=s._writableState;(!m||m.autoDestroy&&(m.finished||m.writable===!1))&&s.destroy()}}}function On(n){n.writable&&!n.writableEnded&&!n.destroyed&&n.end()}k.from=function(n,s){return Q(k,n,s)};let kt;function $r(){return kt===void 0&&(kt={}),kt}return k.fromWeb=function(n,s){return $r().newStreamReadableFromReadableStream(n,s)},k.toWeb=function(n,s){return $r().newReadableStreamFromStreamReadable(n,s)},k.wrap=function(n,s){var m,x;return new k({objectMode:(m=(x=n.readableObjectMode)!==null&&x!==void 0?x:n.objectMode)!==null&&m!==void 0?m:!0,...s,destroy(v,X){D.destroyer(n,v),X(v)}}).wrap(n)},Bt}var Ut,oi;function Sr(){if(oi)return Ut;oi=1;const e=$e,{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:a,ObjectDefineProperties:o,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:d,Symbol:y,SymbolHasInstance:_}=H;Ut=j,j.WritableState=E;const{EventEmitter:g}=gt,w=wr.Stream,{Buffer:c}=Ee,h=He,{addAbortSignal:p}=At,{getHighWaterMark:b,getDefaultHighWaterMark:A}=vt,{ERR_INVALID_ARG_TYPE:$,ERR_METHOD_NOT_IMPLEMENTED:N,ERR_MULTIPLE_CALLBACK:R,ERR_STREAM_CANNOT_PIPE:W,ERR_STREAM_DESTROYED:D,ERR_STREAM_ALREADY_FINISHED:K,ERR_STREAM_NULL_VALUES:ae,ERR_STREAM_WRITE_AFTER_END:U,ERR_UNKNOWN_ENCODING:V}=ne.codes,{errorOrDestroy:re}=h;l(j.prototype,w.prototype),l(j,w);function ie(){}const M=y("kOnFinished");function E(u,f,S){typeof S!="boolean"&&(S=f instanceof ge()),this.objectMode=!!(u&&u.objectMode),S&&(this.objectMode=this.objectMode||!!(u&&u.writableObjectMode)),this.highWaterMark=u?b(this,u,"writableHighWaterMark",S):A(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const T=!!(u&&u.decodeStrings===!1);this.decodeStrings=!T,this.defaultEncoding=u&&u.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Y.bind(void 0,f),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,O(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!u||u.emitClose!==!1,this.autoDestroy=!u||u.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[M]=[]}function O(u){u.buffered=[],u.bufferedIndex=0,u.allBuffers=!0,u.allNoop=!0}E.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},a(E.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function j(u){const f=this instanceof ge();if(!f&&!i(j,this))return new j(u);this._writableState=new E(u,this,f),u&&(typeof u.write=="function"&&(this._write=u.write),typeof u.writev=="function"&&(this._writev=u.writev),typeof u.destroy=="function"&&(this._destroy=u.destroy),typeof u.final=="function"&&(this._final=u.final),typeof u.construct=="function"&&(this._construct=u.construct),u.signal&&p(u.signal,this)),w.call(this,u),h.construct(this,()=>{const S=this._writableState;S.writing||J(this,S),Oe(this,S)})}a(j,_,{__proto__:null,value:function(u){return i(this,u)?!0:this!==j?!1:u&&u._writableState instanceof E}}),j.prototype.pipe=function(){re(this,new W)};function L(u,f,S,T){const I=u._writableState;if(typeof S=="function")T=S,S=I.defaultEncoding;else{if(!S)S=I.defaultEncoding;else if(S!=="buffer"&&!c.isEncoding(S))throw new V(S);typeof T!="function"&&(T=ie)}if(f===null)throw new ae;if(!I.objectMode)if(typeof f=="string")I.decodeStrings!==!1&&(f=c.from(f,S),S="buffer");else if(f instanceof c)S="buffer";else if(w._isUint8Array(f))f=w._uint8ArrayToBuffer(f),S="buffer";else throw new $("chunk",["string","Buffer","Uint8Array"],f);let B;return I.ending?B=new U:I.destroyed&&(B=new D("write")),B?(e.nextTick(T,B),re(u,B,!0),B):(I.pendingcb++,z(u,I,f,S,T))}j.prototype.write=function(u,f,S){return L(this,u,f,S)===!0},j.prototype.cork=function(){this._writableState.corked++},j.prototype.uncork=function(){const u=this._writableState;u.corked&&(u.corked--,u.writing||J(this,u))},j.prototype.setDefaultEncoding=function(f){if(typeof f=="string"&&(f=d(f)),!c.isEncoding(f))throw new V(f);return this._writableState.defaultEncoding=f,this};function z(u,f,S,T,I){const B=f.objectMode?1:S.length;f.length+=B;const G=f.lengthS.bufferedIndex&&J(u,S),T?S.afterWriteTickInfo!==null&&S.afterWriteTickInfo.cb===I?S.afterWriteTickInfo.count++:(S.afterWriteTickInfo={count:1,cb:I,stream:u,state:S},e.nextTick(C,S.afterWriteTickInfo)):_e(u,S,1,I))}function C({stream:u,state:f,count:S,cb:T}){return f.afterWriteTickInfo=null,_e(u,f,S,T)}function _e(u,f,S,T){for(!f.ending&&!u.destroyed&&f.length===0&&f.needDrain&&(f.needDrain=!1,u.emit("drain"));S-- >0;)f.pendingcb--,T();f.destroyed&&P(f),Oe(u,f)}function P(u){if(u.writing)return;for(let I=u.bufferedIndex;I1&&u._writev){f.pendingcb-=B-1;const F=f.allNoop?ie:k=>{for(let Se=G;Se256?(S.splice(0,G),f.bufferedIndex=0):f.bufferedIndex=G}f.bufferProcessing=!1}j.prototype._write=function(u,f,S){if(this._writev)this._writev([{chunk:u,encoding:f}],S);else throw new N("_write()")},j.prototype._writev=null,j.prototype.end=function(u,f,S){const T=this._writableState;typeof u=="function"?(S=u,u=null,f=null):typeof f=="function"&&(S=f,f=null);let I;if(u!=null){const B=L(this,u,f);B instanceof r&&(I=B)}return T.corked&&(T.corked=1,this.uncork()),I||(!T.errored&&!T.ending?(T.ending=!0,Oe(this,T,!0),T.ended=!0):T.finished?I=new K("end"):T.destroyed&&(I=new D("end"))),typeof S=="function"&&(I||T.finished?e.nextTick(S,I):T[M].push(S)),this};function le(u){return u.ending&&!u.destroyed&&u.constructed&&u.length===0&&!u.errored&&u.buffered.length===0&&!u.finished&&!u.writing&&!u.errorEmitted&&!u.closeEmitted}function Le(u,f){let S=!1;function T(I){if(S){re(u,I??R());return}if(S=!0,f.pendingcb--,I){const B=f[M].splice(0);for(let G=0;G{le(I)?Ve(T,I):I.pendingcb--},u,f)):le(f)&&(f.pendingcb++,Ve(u,f))))}function Ve(u,f){f.pendingcb--,f.finished=!0;const S=f[M].splice(0);for(let T=0;T{if(P!=null)throw new p("nully","body",P)},P=>{b(C,P)});return C=new V({objectMode:!0,readable:!1,write:z,final(P){Q(async()=>{try{await _e,e.nextTick(P,null)}catch(J){e.nextTick(P,J)}})},destroy:q})}throw new p("Iterable, AsyncIterable or AsyncFunction",O,L)}if(K(E))return M(E.arrayBuffer());if(a(E))return W(V,E,{objectMode:!0,writable:!1});if(_(E==null?void 0:E.readable)&&g(E==null?void 0:E.writable))return V.fromWeb(E);if(typeof(E==null?void 0:E.writable)=="object"||typeof(E==null?void 0:E.readable)=="object"){const L=E!=null&&E.readable?l(E==null?void 0:E.readable)?E==null?void 0:E.readable:M(E.readable):void 0,z=E!=null&&E.writable?d(E==null?void 0:E.writable)?E==null?void 0:E.writable:M(E.writable):void 0;return ie({readable:L,writable:z})}const j=E==null?void 0:E.then;if(typeof j=="function"){let L;return U(j,E,z=>{z!=null&&L.push(z),L.push(null)},z=>{b(L,z)}),L=new V({objectMode:!0,writable:!1,read(){}})}throw new h(O,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],E)};function re(M){let{promise:E,resolve:O}=R();const j=new ae,L=j.signal;return{value:M(async function*(){for(;;){const Q=E;E=null;const{chunk:q,done:Y,cb:C}=await Q;if(e.nextTick(C),Y)return;if(L.aborted)throw new c(void 0,{cause:L.reason});({promise:E,resolve:O}=R()),yield q}}(),{signal:L}),write(Q,q,Y){const C=O;O=null,C({chunk:Q,done:!1,cb:Y})},final(Q){const q=O;O=null,q({done:!0,cb:Q})},destroy(Q,q){j.abort(),q(Q)}}}function ie(M){const E=M.readable&&typeof M.readable.read!="function"?$.wrap(M.readable):M.readable,O=M.writable;let j=!!r(E),L=!!i(O),z,Q,q,Y,C;function _e(P){const J=Y;Y=null,J?J(P):P&&C.destroy(P)}return C=new V({readableObjectMode:!!(E!=null&&E.readableObjectMode),writableObjectMode:!!(O!=null&&O.writableObjectMode),readable:j,writable:L}),L&&(w(O,P=>{L=!1,P&&b(E,P),_e(P)}),C._write=function(P,J,le){O.write(P,J)?le():z=le},C._final=function(P){O.end(),Q=P},O.on("drain",function(){if(z){const P=z;z=null,P()}}),O.on("finish",function(){if(Q){const P=Q;Q=null,P()}})),j&&(w(E,P=>{j=!1,P&&b(E,P),_e(P)}),E.on("readable",function(){if(q){const P=q;q=null,P()}}),E.on("end",function(){C.push(null)}),C._read=function(){for(;;){const P=E.read();if(P===null){q=C._read;return}if(!C.push(P))return}}),C._destroy=function(P,J){!P&&Y!==null&&(P=new c),q=null,z=null,Q=null,Y===null?J(P):(Y=J,b(O,P),b(E,P))},C}return Gt}var qt,ui;function ge(){if(ui)return qt;ui=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:i}=H;qt=l;const a=Tt(),o=Sr();i(l.prototype,a.prototype),i(l,a);{const g=r(o.prototype);for(let w=0;w{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function oo(){this._final!==cr&&cr.call(this)}ye.prototype._final=cr;ye.prototype._transform=function(e,t,r){throw new ao("_transform()")};ye.prototype._write=function(e,t,r){const i=this._readableState,a=this._writableState,o=i.length;this._transform(e,t,(l,d)=>{if(l){r(l);return}d!=null&&this.push(d),a.ended||o===i.length||i.length{i=!0});const a=bt(e,{readable:t,writable:r},o=>{i=!o});return{destroy:o=>{i||(i=!0,_o.destroyer(e,o||new go("pipe")))},cleanup:a}}function Ao(e){return So(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function Jt(e){if(Te(e))return e;if(ht(e))return vo(e);throw new hr("val",["Readable","Iterable","AsyncIterable"],e)}async function*vo(e){Yt||(Yt=Tt()),yield*Yt.prototype[fo].call(e)}async function ft(e,t,r,{end:i}){let a,o=null;const l=_=>{if(_&&(a=_),o){const g=o;o=null,g()}},d=()=>new uo((_,g)=>{a?g(a):o=()=>{a?g(a):_()}});t.on("drain",l);const y=bt(t,{readable:!1},l);try{t.writableNeedDrain&&await d();for await(const _ of e)t.write(_)||await d();i&&(t.end(),await d()),r()}catch(_){r(a!==_?bo(a,_):_)}finally{y(),t.off("drain",l)}}async function Zt(e,t,r,{end:i}){Fe(t)&&(t=t.writable);const a=t.getWriter();try{for await(const o of e)await a.ready,a.write(o).catch(()=>{});await a.ready,i&&await a.close(),r()}catch(o){try{await a.abort(o),r(o)}catch(l){r(l)}}}function To(...e){return Sn(e,ho(Ao(e)))}function Sn(e,t,r){if(e.length===1&&lo(e[0])&&(e=e[0]),e.length<2)throw new po("streams");const i=new xo,a=i.signal,o=r==null?void 0:r.signal,l=[];Ro(o,"options.signal");function d(){p(new wo)}Kt=Kt||te.addAbortListener;let y;o&&(y=Kt(o,d));let _,g;const w=[];let c=0;function h(N){p(N,--c===0)}function p(N,R){var W;if(N&&(!_||_.code==="ERR_STREAM_PREMATURE_CLOSE")&&(_=N),!(!_&&!R)){for(;w.length;)w.shift()(_);(W=y)===null||W===void 0||W[co](),i.abort(),R&&(_||l.forEach(D=>D()),Ze.nextTick(t,_,g))}}let b;for(let N=0;N0,K=W||(r==null?void 0:r.end)!==!1,ae=N===e.length-1;if(di(R)){let U=function(V){V&&V.name!=="AbortError"&&V.code!=="ERR_STREAM_PREMATURE_CLOSE"&&h(V)};if(K){const{destroy:V,cleanup:re}=ci(R,W,D);w.push(V),Vt(R)&&ae&&l.push(re)}R.on("error",U),Vt(R)&&ae&&l.push(()=>{R.removeListener("error",U)})}if(N===0)if(typeof R=="function"){if(b=R({signal:a}),!Te(b))throw new Ht("Iterable, AsyncIterable or Stream","source",b)}else Te(R)||ht(R)||Fe(R)?b=R:b=fi.from(R);else if(typeof R=="function"){if(Fe(b)){var A;b=Jt((A=b)===null||A===void 0?void 0:A.readable)}else b=Jt(b);if(b=R(b,{signal:a}),W){if(!Te(b,!0))throw new Ht("AsyncIterable",`transform[${N-1}]`,b)}else{var $;Qt||(Qt=wn);const U=new Qt({objectMode:!0}),V=($=b)===null||$===void 0?void 0:$.then;if(typeof V=="function")c++,V.call(b,M=>{g=M,M!=null&&U.write(M),K&&U.end(),Ze.nextTick(h)},M=>{U.destroy(M),Ze.nextTick(h,M)});else if(Te(b,!0))c++,ft(b,U,h,{end:K});else if(zt(b)||Fe(b)){const M=b.readable||b;c++,ft(M,U,h,{end:K})}else throw new Ht("AsyncIterable or Promise","destination",b);b=U;const{destroy:re,cleanup:ie}=ci(b,!1,!0);w.push(re),ae&&l.push(ie)}}else if(di(R)){if(ht(b)){c+=2;const U=Io(b,R,h,{end:K});Vt(R)&&ae&&l.push(U)}else if(Fe(b)||zt(b)){const U=b.readable||b;c++,ft(U,R,h,{end:K})}else if(Te(b))c++,ft(b,R,h,{end:K});else throw new hr("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],b);b=R}else if(Eo(R)){if(ht(b))c++,Zt(Jt(b),R,h,{end:K});else if(zt(b)||Te(b))c++,Zt(b,R,h,{end:K});else if(Fe(b))c++,Zt(b.readable,R,h,{end:K});else throw new hr("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],b);b=R}else b=fi.from(R)}return(a!=null&&a.aborted||o!=null&&o.aborted)&&Ze.nextTick(d),b}function Io(e,t,r,{end:i}){let a=!1;if(t.on("close",()=>{a||r(new yo)}),e.pipe(t,{end:!1}),i){let o=function(){a=!0,t.end()};mo(e)?Ze.nextTick(o):e.once("end",o)}else r();return bt(e,{readable:!0,writable:!1},o=>{const l=e._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&l&&l.ended&&!l.errored&&!l.errorEmitted?e.once("end",r).once("error",r):r(o)}),bt(t,{readable:!1,writable:!0},r)}var mr={pipelineImpl:Sn,pipeline:To};const{pipeline:No}=mr,dt=ge(),{destroyer:Po}=He,{isNodeStream:ct,isReadable:hi,isWritable:_i,isWebStream:Xt,isTransformStream:ve,isWritableStream:bi,isReadableStream:pi}=we,{AbortError:$o,codes:{ERR_INVALID_ARG_VALUE:gi,ERR_MISSING_ARGS:ko}}=ne,Do=me;var Rn=function(...t){if(t.length===0)throw new ko("streams");if(t.length===1)return dt.from(t[0]);const r=[...t];if(typeof t[0]=="function"&&(t[0]=dt.from(t[0])),typeof t[t.length-1]=="function"){const h=t.length-1;t[h]=dt.from(t[h])}for(let h=0;h0&&!(_i(t[h])||bi(t[h])||ve(t[h])))throw new gi(`streams[${h}]`,r[h],"must be writable")}let i,a,o,l,d;function y(h){const p=l;l=null,p?p(h):h?d.destroy(h):!c&&!w&&d.destroy()}const _=t[0],g=No(t,y),w=!!(_i(_)||bi(_)||ve(_)),c=!!(hi(g)||pi(g)||ve(g));if(d=new dt({writableObjectMode:!!(_!=null&&_.writableObjectMode),readableObjectMode:!!(g!=null&&g.readableObjectMode),writable:w,readable:c}),w){if(ct(_))d._write=function(p,b,A){_.write(p,b)?A():i=A},d._final=function(p){_.end(),a=p},_.on("drain",function(){if(i){const p=i;i=null,p()}});else if(Xt(_)){const b=(ve(_)?_.writable:_).getWriter();d._write=async function(A,$,N){try{await b.ready,b.write(A).catch(()=>{}),N()}catch(R){N(R)}},d._final=async function(A){try{await b.ready,b.close().catch(()=>{}),a=A}catch($){A($)}}}const h=ve(g)?g.readable:g;Do(h,()=>{if(a){const p=a;a=null,p()}})}if(c){if(ct(g))g.on("readable",function(){if(o){const h=o;o=null,h()}}),g.on("end",function(){d.push(null)}),d._read=function(){for(;;){const h=g.read();if(h===null){o=d._read;return}if(!d.push(h))return}};else if(Xt(g)){const p=(ve(g)?g.readable:g).getReader();d._read=async function(){for(;;)try{const{value:b,done:A}=await p.read();if(!d.push(b))return;if(A){d.push(null);return}}catch{return}}}}return d._destroy=function(h,p){!h&&l!==null&&(h=new $o),o=null,i=null,a=null,l===null?p(h):(l=p,ct(g)&&Po(g,h))},d};const jo=globalThis.AbortController||et().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Lo,ERR_INVALID_ARG_TYPE:rt,ERR_MISSING_ARGS:Mo,ERR_OUT_OF_RANGE:Oo},AbortError:de}=ne,{validateAbortSignal:De,validateInteger:yi,validateObject:je}=tt,Co=H.Symbol("kWeak"),Fo=H.Symbol("kResistStopPropagation"),{finished:Wo}=me,Bo=Rn,{addAbortSignalNoValidate:Uo}=At,{isWritable:Go,isNodeStream:qo}=we,{deprecate:Ho}=te,{ArrayPrototypePush:Vo,Boolean:zo,MathFloor:wi,Number:Qo,NumberIsNaN:Yo,Promise:Si,PromiseReject:Ri,PromiseResolve:Ko,PromisePrototypeThen:Ei,Symbol:En}=H,pt=En("kEmpty"),mi=En("kEof");function Jo(e,t){if(t!=null&&je(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),qo(e)&&!Go(e))throw new Lo("stream",e,"must be writable");const r=Bo(this,e);return t!=null&&t.signal&&Uo(t.signal,r),r}function It(e,t){if(typeof e!="function")throw new rt("fn",["Function","AsyncFunction"],e);t!=null&&je(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal");let r=1;(t==null?void 0:t.concurrency)!=null&&(r=wi(t.concurrency));let i=r-1;return(t==null?void 0:t.highWaterMark)!=null&&(i=wi(t.highWaterMark)),yi(r,"options.concurrency",1),yi(i,"options.highWaterMark",0),i+=r,(async function*(){const o=te.AbortSignalAny([t==null?void 0:t.signal].filter(zo)),l=this,d=[],y={signal:o};let _,g,w=!1,c=0;function h(){w=!0,p()}function p(){c-=1,b()}function b(){g&&!w&&c=i||c>=r)&&await new Si(N=>{g=N})}d.push(mi)}catch($){const N=Ri($);Ei(N,p,h),d.push(N)}finally{w=!0,_&&(_(),_=null)}}A();try{for(;;){for(;d.length>0;){const $=await d[0];if($===mi)return;if(o.aborted)throw new de;$!==pt&&(yield $),d.shift(),b()}await new Si($=>{_=$})}}finally{w=!0,g&&(g(),g=null)}}).call(this)}function Zo(e=void 0){return e!=null&&je(e,"options"),(e==null?void 0:e.signal)!=null&&De(e.signal,"options.signal"),(async function*(){let r=0;for await(const a of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new de({cause:e.signal.reason});yield[r++,a]}}).call(this)}async function mn(e,t=void 0){for await(const r of xr.call(this,e,t))return!0;return!1}async function Xo(e,t=void 0){if(typeof e!="function")throw new rt("fn",["Function","AsyncFunction"],e);return!await mn.call(this,async(...r)=>!await e(...r),t)}async function el(e,t){for await(const r of xr.call(this,e,t))return r}async function tl(e,t){if(typeof e!="function")throw new rt("fn",["Function","AsyncFunction"],e);async function r(i,a){return await e(i,a),pt}for await(const i of It.call(this,r,t));}function xr(e,t){if(typeof e!="function")throw new rt("fn",["Function","AsyncFunction"],e);async function r(i,a){return await e(i,a)?i:pt}return It.call(this,r,t)}class rl extends Mo{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function il(e,t,r){var i;if(typeof e!="function")throw new rt("reducer",["Function","AsyncFunction"],e);r!=null&&je(r,"options"),(r==null?void 0:r.signal)!=null&&De(r.signal,"options.signal");let a=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){const _=new de(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await Wo(this.destroy(_)),_}const o=new jo,l=o.signal;if(r!=null&&r.signal){const _={once:!0,[Co]:this,[Fo]:!0};r.signal.addEventListener("abort",()=>o.abort(),_)}let d=!1;try{for await(const _ of this){var y;if(d=!0,r!=null&&(y=r.signal)!==null&&y!==void 0&&y.aborted)throw new de;a?t=await e(t,_,{signal:l}):(t=_,a=!0)}if(!d&&!a)throw new rl}finally{o.abort()}return t}async function nl(e){e!=null&&je(e,"options"),(e==null?void 0:e.signal)!=null&&De(e.signal,"options.signal");const t=[];for await(const i of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new de(void 0,{cause:e.signal.reason});Vo(t,i)}return t}function al(e,t){const r=It.call(this,e,t);return(async function*(){for await(const a of r)yield*a}).call(this)}function xn(e){if(e=Qo(e),Yo(e))return 0;if(e<0)throw new Oo("number",">= 0",e);return e}function sl(e,t=void 0){return t!=null&&je(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),e=xn(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new de;for await(const o of this){var a;if(t!=null&&(a=t.signal)!==null&&a!==void 0&&a.aborted)throw new de;e--<=0&&(yield o)}}).call(this)}function ol(e,t=void 0){return t!=null&&je(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),e=xn(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new de;for await(const o of this){var a;if(t!=null&&(a=t.signal)!==null&&a!==void 0&&a.aborted)throw new de;if(e-- >0&&(yield o),e<=0)return}}).call(this)}_r.streamReturningOperators={asIndexedPairs:Ho(Zo,"readable.asIndexedPairs will be removed in a future version."),drop:sl,filter:xr,flatMap:al,map:It,take:ol,compose:Jo};_r.promiseReturningOperators={every:Xo,forEach:tl,reduce:il,toArray:nl,some:mn,find:el};var er,xi;function An(){if(xi)return er;xi=1;const{ArrayPrototypePop:e,Promise:t}=H,{isIterable:r,isNodeStream:i,isWebStream:a}=we,{pipelineImpl:o}=mr,{finished:l}=me;vn();function d(...y){return new t((_,g)=>{let w,c;const h=y[y.length-1];if(h&&typeof h=="object"&&!i(h)&&!r(h)&&!a(h)){const p=e(y);w=p.signal,c=p.end}o(y,(p,b)=>{p?g(p):_(b)},{signal:w,end:c})})}return er={finished:l,pipeline:d},er}var Ai;function vn(){if(Ai)return Ot.exports;Ai=1;const{Buffer:e}=Ee,{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:i}=H,{promisify:{custom:a}}=te,{streamReturningOperators:o,promiseReturningOperators:l}=_r,{codes:{ERR_ILLEGAL_CONSTRUCTOR:d}}=ne,y=Rn,{setDefaultHighWaterMark:_,getDefaultHighWaterMark:g}=vt,{pipeline:w}=mr,{destroyer:c}=He,h=me,p=An(),b=we,A=Ot.exports=wr.Stream;A.isDestroyed=b.isDestroyed,A.isDisturbed=b.isDisturbed,A.isErrored=b.isErrored,A.isReadable=b.isReadable,A.isWritable=b.isWritable,A.Readable=Tt();for(const N of r(o)){let W=function(...D){if(new.target)throw d();return A.Readable.from(i(R,this,D))};const R=o[N];t(W,"name",{__proto__:null,value:R.name}),t(W,"length",{__proto__:null,value:R.length}),t(A.Readable.prototype,N,{__proto__:null,value:W,enumerable:!1,configurable:!0,writable:!0})}for(const N of r(l)){let W=function(...D){if(new.target)throw d();return i(R,this,D)};const R=l[N];t(W,"name",{__proto__:null,value:R.name}),t(W,"length",{__proto__:null,value:R.length}),t(A.Readable.prototype,N,{__proto__:null,value:W,enumerable:!1,configurable:!0,writable:!0})}A.Writable=Sr(),A.Duplex=ge(),A.Transform=gn,A.PassThrough=wn,A.pipeline=w;const{addAbortSignal:$}=At;return A.addAbortSignal=$,A.finished=h,A.destroy=c,A.compose=y,A.setDefaultHighWaterMark=_,A.getDefaultHighWaterMark=g,t(A,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return p}}),t(w,a,{__proto__:null,enumerable:!0,get(){return p.pipeline}}),t(h,a,{__proto__:null,enumerable:!0,get(){return p.finished}}),A.Stream=A,A._isUint8Array=function(R){return R instanceof Uint8Array},A._uint8ArrayToBuffer=function(R){return e.from(R.buffer,R.byteOffset,R.byteLength)},Ot.exports}(function(e){const t=vn(),r=An(),i=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=i,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return r}}),e.exports.Stream=t.Stream,e.exports.default=e.exports})(Li);var ll=Li.exports;class cl extends ll.Transform{constructor(t){super({decodeStrings:!0}),this._readableState.objectMode=!0;const r=new Di(t);let i,a;const o={onQuad:(l,d)=>{l&&this.emit("error",l)||d&&this.push(d)},onPrefix:(l,d)=>{this.emit("prefix",l,d)}};t&&t.comments&&(o.onComment=l=>{this.emit("comment",l)}),r.parse({on:(l,d)=>{switch(l){case"data":i=d;break;case"end":a=d;break}}},o),this._transform=(l,d,y)=>{i(l),y()},this._flush=l=>{a(),l()}}import(t){return t.on("data",r=>{this.write(r)}),t.on("end",()=>{this.end()}),t.on("error",r=>{this.emit("error",r)}),this}}export{Kn as B,tr as D,We as L,cl as N,Ti as Q,ce as T,Jn as V,ot as a,ll as b,zn as c,Di as d,vi as e,Zn as f,ue as n,st as t}; diff --git a/assets/canonicalize-Bd8h0v92.js b/assets/canonicalize-Bd8h0v92.js deleted file mode 100644 index 4546ca4..0000000 --- a/assets/canonicalize-Bd8h0v92.js +++ /dev/null @@ -1 +0,0 @@ -var a=function u(r){return r===null||typeof r!="object"||r.toJSON!=null?JSON.stringify(r):Array.isArray(r)?"["+r.reduce((e,n,l)=>{const i=l===0?"":",",s=n===void 0||typeof n=="symbol"?null:n;return e+i+u(s)},"")+"]":"{"+Object.keys(r).sort().reduce((e,n,l)=>{if(r[n]===void 0||typeof r[n]=="symbol")return e;const i=e.length===0?"":",";return e+i+u(n)+":"+u(r[n])},"")+"}"};export{a as c}; diff --git a/assets/index-BMw9Z_By.js b/assets/index-BMw9Z_By.js deleted file mode 100644 index f79f567..0000000 --- a/assets/index-BMw9Z_By.js +++ /dev/null @@ -1,52 +0,0 @@ -import{S as Fs}from"./index-BOvYCoiN.js";import{I as sa,M as gi,P as Ws,N as la,U as ca,h as Js,g as Us,a as hn,e as Bn,b as Ot,d as Lt,s as Hs}from"./main-CO-45Vwa.js";import{c as Bs}from"./canonicalize-Bd8h0v92.js";var da={};/*! - * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. - */const Vi=sa,Vs=gi,Gs=Ws,Gi=la;var ua=class{constructor({createMessageDigest:t=()=>new Vs("sha256"),canonicalIdMap:n=new Map,maxDeepIterations:r=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new Vi("_:c14n",n),this.createMessageDigest=t,this.maxDeepIterations=r,this.quads=null,this.deepIterations=null}async main(t){this.deepIterations=new Map,this.quads=t;for(const f of t)this._addBlankNodeQuadInfo({quad:f,component:f.subject}),this._addBlankNodeQuadInfo({quad:f,component:f.object}),this._addBlankNodeQuadInfo({quad:f,component:f.graph});const n=new Map,r=[...this.blankNodeInfo.keys()];let o=0;for(const f of r)++o%100===0&&await this._yield(),await this._hashAndTrackBlankNode({id:f,hashToBlankNodes:n});const a=[...n.keys()].sort(),i=[];for(const f of a){const c=n.get(f);if(c.length>1){i.push(c);continue}const p=c[0];this.canonicalIssuer.getId(p)}for(const f of i){const c=[];for(const p of f){if(this.canonicalIssuer.hasId(p))continue;const g=new Vi("_:b");g.getId(p);const d=await this.hashNDegreeQuads(p,g);c.push(d)}c.sort(qs);for(const p of c){const g=p.issuer.getOldIds();for(const d of g)this.canonicalIssuer.getId(d)}}const l=[];for(const f of this.quads){const c=Gi.serializeQuadComponents(this._componentWithCanonicalId(f.subject),f.predicate,this._componentWithCanonicalId(f.object),this._componentWithCanonicalId(f.graph));l.push(c)}return l.sort(),l.join("")}async hashFirstDegreeQuads(t){const n=[],r=this.blankNodeInfo.get(t),o=r.quads;for(const i of o){const l={subject:null,predicate:i.predicate,object:null,graph:null};l.subject=this.modifyFirstDegreeComponent(t,i.subject,"subject"),l.object=this.modifyFirstDegreeComponent(t,i.object,"object"),l.graph=this.modifyFirstDegreeComponent(t,i.graph,"graph"),n.push(Gi.serializeQuad(l))}n.sort();const a=this.createMessageDigest();for(const i of n)a.update(i);return r.hash=await a.digest(),r.hash}async hashRelatedBlankNode(t,n,r,o){let a;this.canonicalIssuer.hasId(t)?a=this.canonicalIssuer.getId(t):r.hasId(t)?a=r.getId(t):a=this.blankNodeInfo.get(t).hash;const i=this.createMessageDigest();return i.update(o),o!=="g"&&i.update(this.getRelatedPredicate(n)),i.update(a),i.digest()}async hashNDegreeQuads(t,n){const r=this.deepIterations.get(t)||0;if(r>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(t,r+1);const o=this.createMessageDigest(),a=await this.createHashToRelated(t,n),i=[...a.keys()].sort();for(const l of i){o.update(l);let f="",c;const p=new Gs(a.get(l));let g=0;for(;p.hasNext();){const d=p.next();++g%3===0&&await this._yield();let s=n.clone(),u="";const y=[];let w=!1;for(const v of d)if(this.canonicalIssuer.hasId(v)?u+=this.canonicalIssuer.getId(v):(s.hasId(v)||y.push(v),u+=s.getId(v)),f.length!==0&&u>f){w=!0;break}if(!w){for(const v of y){const E=await this.hashNDegreeQuads(v,s);if(u+=s.getId(v),u+=`<${E.hash}>`,s=E.issuer,f.length!==0&&u>f){w=!0;break}}w||(f.length===0||u`}async createHashToRelated(t,n){const r=new Map,o=this.blankNodeInfo.get(t).quads;let a=0;for(const i of o)++a%100===0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:i,component:i.subject,position:"s",id:t,issuer:n,hashToRelated:r}),this._addRelatedBlankNodeHash({quad:i,component:i.object,position:"o",id:t,issuer:n,hashToRelated:r}),this._addRelatedBlankNodeHash({quad:i,component:i.graph,position:"g",id:t,issuer:n,hashToRelated:r})]);return r}async _hashAndTrackBlankNode({id:t,hashToBlankNodes:n}){const r=await this.hashFirstDegreeQuads(t),o=n.get(r);o?o.push(t):n.set(r,[t])}_addBlankNodeQuadInfo({quad:t,component:n}){if(n.termType!=="BlankNode")return;const r=n.value,o=this.blankNodeInfo.get(r);o?o.quads.add(t):this.blankNodeInfo.set(r,{quads:new Set([t]),hash:null})}async _addRelatedBlankNodeHash({quad:t,component:n,position:r,id:o,issuer:a,hashToRelated:i}){if(!(n.termType==="BlankNode"&&n.value!==o))return;const l=n.value,f=await this.hashRelatedBlankNode(l,t,a,r),c=i.get(f);c?c.push(l):i.set(f,[l])}_componentWithCanonicalId(t){return t.termType==="BlankNode"&&!t.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(t.value)}:t}async _yield(){return new Promise(t=>setImmediate(t))}};function qs(e,t){return e.hasht.hash?1:0}/*! - * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. - */const Cs=gi,Xs=ua;var zs=class extends Xs{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new Cs("sha1")}modifyFirstDegreeComponent(t,n,r){return n.termType!=="BlankNode"?n:r==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:n.value===t?"_:a":"_:z"}}getRelatedPredicate(t){return t.predicate.value}async createHashToRelated(t,n){const r=new Map,o=this.blankNodeInfo.get(t).quads;let a=0;for(const i of o){let l,f;if(i.subject.termType==="BlankNode"&&i.subject.value!==t)f=i.subject.value,l="p";else if(i.object.termType==="BlankNode"&&i.object.value!==t)f=i.object.value,l="r";else continue;++a%100===0&&await this._yield();const c=await this.hashRelatedBlankNode(f,i,n,l),p=r.get(c);p?p.push(f):r.set(c,[f])}return r}};/*! - * Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved. - */const Ks=gi,Ys=ca;var Qs=class extends Ys{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new Ks("sha1")}modifyFirstDegreeComponent(t,n,r){return n.termType!=="BlankNode"?n:r==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:n.value===t?"_:a":"_:z"}}getRelatedPredicate(t){return t.predicate.value}createHashToRelated(t,n){const r=new Map,o=this.blankNodeInfo.get(t).quads;for(const a of o){let i,l;if(a.subject.termType==="BlankNode"&&a.subject.value!==t)l=a.subject.value,i="p";else if(a.object.termType==="BlankNode"&&a.object.value!==t)l=a.object.value,i="r";else continue;const f=this.hashRelatedBlankNode(l,a,n,i),c=r.get(f);c?c.push(l):r.set(f,[l])}return r}};(function(e){const t=ua,n=zs,r=ca,o=Qs;let a;try{a=Js}catch{}function i(l){return Array.isArray(l)?l:e.NQuads.legacyDatasetToQuads(l)}e.NQuads=la,e.IdentifierIssuer=sa,e._rdfCanonizeNative=function(l){return l&&(a=l),a},e.canonize=async function(l,f){const c=i(l);if(f.useNative){if(!a)throw new Error("rdf-canonize-native not available");if(f.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return new Promise((p,g)=>a.canonize(c,f,(d,s)=>d?g(d):p(s)))}if(f.algorithm==="URDNA2015")return new t(f).main(c);if(f.algorithm==="URGNA2012"){if(f.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new n(f).main(c)}throw"algorithm"in f?new Error("Invalid RDF Dataset Canonicalization algorithm: "+f.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")},e._canonizeSync=function(l,f){const c=i(l);if(f.useNative){if(!a)throw new Error("rdf-canonize-native not available");if(f.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return a.canonizeSync(c,f)}if(f.algorithm==="URDNA2015")return new r(f).main(c);if(f.algorithm==="URGNA2012"){if(f.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new o(f).main(c)}throw"algorithm"in f?new Error("Invalid RDF Dataset Canonicalization algorithm: "+f.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")}})(da);var yi=da;const je={};var Ae=je;je.isArray=Array.isArray;je.isBoolean=e=>typeof e=="boolean"||Object.prototype.toString.call(e)==="[object Boolean]";je.isDouble=e=>je.isNumber(e)&&(String(e).indexOf(".")!==-1||Math.abs(e)>=1e21);je.isEmptyObject=e=>je.isObject(e)&&Object.keys(e).length===0;je.isNumber=e=>typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]";je.isNumeric=e=>!isNaN(parseFloat(e))&&isFinite(e);je.isObject=e=>Object.prototype.toString.call(e)==="[object Object]";je.isString=e=>typeof e=="string"||Object.prototype.toString.call(e)==="[object String]";je.isUndefined=e=>typeof e>"u";const xt=Ae,tt={};var it=tt;tt.isSubject=e=>xt.isObject(e)&&!("@value"in e||"@set"in e||"@list"in e)?Object.keys(e).length>1||!("@id"in e):!1;tt.isSubjectReference=e=>xt.isObject(e)&&Object.keys(e).length===1&&"@id"in e;tt.isValue=e=>xt.isObject(e)&&"@value"in e;tt.isList=e=>xt.isObject(e)&&"@list"in e;tt.isGraph=e=>xt.isObject(e)&&"@graph"in e&&Object.keys(e).filter(t=>t!=="@id"&&t!=="@index").length===1;tt.isSimpleGraph=e=>tt.isGraph(e)&&!("@id"in e);tt.isBlankNode=e=>{if(xt.isObject(e)){if("@id"in e){const t=e["@id"];return!xt.isString(t)||t.indexOf("_:")===0}return Object.keys(e).length===0||!("@value"in e||"@set"in e||"@list"in e)}return!1};var ke=class extends Error{constructor(t="An unspecified JSON-LD error occurred.",n="jsonld.Error",r={}){super(t),this.name=n,this.message=t,this.details=r}};const pn=it,pe=Ae,fa=yi.IdentifierIssuer,Zs=ke,el=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/,tl=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,nl=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,rl=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,il=/^@[a-zA-Z]+$/,qi={headers:{accept:"application/ld+json, application/json"}},G={};var $e=G;G.IdentifierIssuer=fa;G.REGEX_BCP47=el;G.REGEX_KEYWORD=il;G.clone=function(e){if(e&&typeof e=="object"){let t;if(pe.isArray(e)){t=[];for(let n=0;n{if(Object.keys(e).some(n=>n.toLowerCase()==="accept"))throw new RangeError('Accept header may not be specified; only "'+qi.headers.accept+'" is supported.');return Object.assign({Accept:qi.headers.accept},e)};G.parseLinkHeader=e=>{const t={},n=e.match(tl);for(let r=0;r{if(!pe.isString(e)&&!(pe.isArray(e)&&e.every(n=>pe.isString(n)))){if(t&&pe.isObject(e))switch(Object.keys(e).length){case 0:return;case 1:if("@default"in e&&G.asArray(e["@default"]).every(n=>pe.isString(n)))return}throw new Zs('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:e})}};G.hasProperty=(e,t)=>{if(e.hasOwnProperty(t)){const n=e[t];return!pe.isArray(n)||n.length>0}return!1};G.hasValue=(e,t,n)=>{if(G.hasProperty(e,t)){let r=e[t];const o=pn.isList(r);if(pe.isArray(r)||o){o&&(r=r["@list"]);for(let a=0;a{if(r=r||{},"propertyIsArray"in r||(r.propertyIsArray=!1),"valueIsArray"in r||(r.valueIsArray=!1),"allowDuplicate"in r||(r.allowDuplicate=!0),"prependValue"in r||(r.prependValue=!1),r.valueIsArray)e[t]=n;else if(pe.isArray(n)){n.length===0&&r.propertyIsArray&&!e.hasOwnProperty(t)&&(e[t]=[]),r.prependValue&&(n=n.concat(e[t]),e[t]=[]);for(let o=0;o[].concat(e[t]||[]);G.removeProperty=(e,t)=>{delete e[t]};G.removeValue=(e,t,n,r)=>{r=r||{},"propertyIsArray"in r||(r.propertyIsArray=!1);const o=G.getValues(e,t).filter(a=>!G.compareValues(a,n));o.length===0?G.removeProperty(e,t):o.length===1&&!r.propertyIsArray?e[t]=o[0]:e[t]=o};G.relabelBlankNodes=(e,t)=>{t=t||{};const n=t.issuer||new fa("_:b");return On(n,e)};G.compareValues=(e,t)=>e===t||pn.isValue(e)&&pn.isValue(t)&&e["@value"]===t["@value"]&&e["@type"]===t["@type"]&&e["@language"]===t["@language"]&&e["@index"]===t["@index"]?!0:pe.isObject(e)&&"@id"in e&&pe.isObject(t)&&"@id"in t?e["@id"]===t["@id"]:!1;G.compareShortestLeast=(e,t)=>e.length{const n={},r=ge.parsers[t||"full"],o=r.regex.exec(e);let a=r.keys.length;for(;a--;)n[r.keys[a]]=o[a]===void 0?null:o[a];return(n.scheme==="https"&&n.port==="443"||n.scheme==="http"&&n.port==="80")&&(n.href=n.href.replace(":"+n.port,""),n.authority=n.authority.replace(":"+n.port,""),n.port=null),n.normalizedPath=ge.removeDotSegments(n.path),n};ge.prependBase=(e,t)=>{if(e===null||ge.isAbsolute(t))return t;(!e||Vn.isString(e))&&(e=ge.parse(e||""));const n=ge.parse(t),r={protocol:e.protocol||""};if(n.authority!==null)r.authority=n.authority,r.path=n.path,r.query=n.query;else if(r.authority=e.authority,n.path==="")r.path=e.path,n.query!==null?r.query=n.query:r.query=e.query;else{if(n.path.indexOf("/")===0)r.path=n.path;else{let a=e.path;a=a.substr(0,a.lastIndexOf("/")+1),(a.length>0||e.authority)&&a.substr(-1)!=="/"&&(a+="/"),a+=n.path,r.path=a}r.query=n.query}n.path!==""&&(r.path=ge.removeDotSegments(r.path));let o=r.protocol;return r.authority!==null&&(o+="//"+r.authority),o+=r.path,r.query!==null&&(o+="?"+r.query),n.fragment!==null&&(o+="#"+n.fragment),o===""&&(o="./"),o};ge.removeBase=(e,t)=>{if(e===null)return t;(!e||Vn.isString(e))&&(e=ge.parse(e||""));let n="";if(e.href!==""?n+=(e.protocol||"")+"//"+(e.authority||""):t.indexOf("//")&&(n+="//"),t.indexOf(n)!==0)return t;const r=ge.parse(t.substr(n.length)),o=e.normalizedPath.split("/"),a=r.normalizedPath.split("/"),i=r.fragment||r.query?0:1;for(;o.length>0&&a.length>i&&o[0]===a[0];)o.shift(),a.shift();let l="";if(o.length>0){o.pop();for(let f=0;f{if(e.length===0)return"";const t=e.split("/"),n=[];for(;t.length>0;){const r=t.shift(),o=t.length===0;if(r==="."){o&&n.push("");continue}if(r===".."){n.pop(),o&&n.push("");continue}n.push(r)}return e[0]==="/"&&n.length>0&&n[0]!==""&&n.unshift(""),n.length===1&&n[0]===""?"/":n.join("/")};const ol=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;ge.isAbsolute=e=>Vn.isString(e)&&ol.test(e);ge.isRelative=e=>Vn.isString(e);const{parseLinkHeader:al,buildHeaders:sl}=$e,{LINK_HEADER_CONTEXT:ll}=bi,en=ke,cl=ha(),{prependBase:dl}=ht,ul=/(^|(\r\n))link:/i;var fl=({secure:e,headers:t={},xhr:n}={headers:{}})=>{return t=sl(t),new cl().wrapLoader(o);async function o(a){if(a.indexOf("http:")!==0&&a.indexOf("https:")!==0)throw new en('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:a});if(e&&a.indexOf("https")!==0)throw new en(`URL could not be dereferenced; secure mode is enabled and the URL's scheme is not "https".`,"jsonld.InvalidUrl",{code:"loading document failed",url:a});let i;try{i=await hl(n,a,t)}catch(g){throw new en("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:a,cause:g})}if(i.status>=400)throw new en("URL could not be dereferenced: "+i.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:a,httpStatusCode:i.status});let l={contextUrl:null,documentUrl:a,document:i.response},f=null;const c=i.getResponseHeader("Content-Type");let p;if(ul.test(i.getAllResponseHeaders())&&(p=i.getResponseHeader("Link")),p&&c!=="application/ld+json"){const g=al(p),d=g[ll];if(Array.isArray(d))throw new en("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:a});d&&(l.contextUrl=d.target),f=g.alternate,f&&f.type=="application/ld+json"&&!(c||"").match(/^application\/(\w*\+)?json$/)&&(l=await o(dl(a,f.target)))}return l}};function hl(e,t,n){e=e||XMLHttpRequest;const r=new e;return new Promise((o,a)=>{r.onload=()=>o(r),r.onerror=i=>a(i),r.open("GET",t,!0);for(const i in n)r.setRequestHeader(i,n[i]);r.send()})}const pl=fl,wi={};var gl=wi;wi.setupDocumentLoaders=function(e){typeof XMLHttpRequest<"u"&&(e.documentLoaders.xhr=pl,e.useDocumentLoader("xhr"))};wi.setupGlobals=function(e){typeof globalThis.JsonLdProcessor>"u"&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:e.JsonLdProcessor})};var ur,Xi;function yl(){return Xi||(Xi=1,ur=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),ur}var bl=B;B.Node=Nt;B.create=B;function B(e){var t=this;if(t instanceof B||(t=new B),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(o){t.push(o)});else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;r!==null;o++)n=e(n,r.value,o),r=r.next;return n};B.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;r!==null;o--)n=e(n,r.value,o),r=r.prev;return n};B.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};B.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};B.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new B;if(tthis.length&&(t=this.length);for(var r=0,o=this.head;o!==null&&rthis.length&&(t=this.length);for(var r=this.length,o=this.tail;o!==null&&r>t;r--)o=o.prev;for(;o!==null&&r>e;r--,o=o.prev)n.push(o.value);return n};B.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;o!==null&&r1;class Sl{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[mt]=t.max||1/0;const n=t.length||fr;if(this[Jt]=typeof n!="function"?fr:n,this[sn]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Et]=t.maxAge||0,this[Qe]=t.dispose,this[zi]=t.noDisposeOnSet||!1,this[pa]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[mt]=t||1/0,tn(this)}get max(){return this[mt]}set allowStale(t){this[sn]=!!t}get allowStale(){return this[sn]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Et]=t,tn(this)}get maxAge(){return this[Et]}set lengthCalculator(t){typeof t!="function"&&(t=fr),t!==this[Jt]&&(this[Jt]=t,this[Ze]=0,this[ce].forEach(n=>{n.length=this[Jt](n.value,n.key),this[Ze]+=n.length})),tn(this)}get lengthCalculator(){return this[Jt]}get length(){return this[Ze]}get itemCount(){return this[ce].length}rforEach(t,n){n=n||this;for(let r=this[ce].tail;r!==null;){const o=r.prev;Ki(this,t,r,n),r=o}}forEach(t,n){n=n||this;for(let r=this[ce].head;r!==null;){const o=r.next;Ki(this,t,r,n),r=o}}keys(){return this[ce].toArray().map(t=>t.key)}values(){return this[ce].toArray().map(t=>t.value)}reset(){this[Qe]&&this[ce]&&this[ce].length&&this[ce].forEach(t=>this[Qe](t.key,t.value)),this[We]=new Map,this[ce]=new ml,this[Ze]=0}dump(){return this[ce].map(t=>Mn(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[ce]}set(t,n,r){if(r=r||this[Et],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const o=r?Date.now():0,a=this[Jt](n,t);if(this[We].has(t)){if(a>this[mt])return Vt(this,this[We].get(t)),!1;const f=this[We].get(t).value;return this[Qe]&&(this[zi]||this[Qe](t,f.value)),f.now=o,f.maxAge=r,f.value=n,this[Ze]+=a-f.length,f.length=a,this.get(t),tn(this),!0}const i=new El(t,n,a,o,r);return i.length>this[mt]?(this[Qe]&&this[Qe](t,n),!1):(this[Ze]+=i.length,this[ce].unshift(i),this[We].set(t,this[ce].head),tn(this),!0)}has(t){if(!this[We].has(t))return!1;const n=this[We].get(t).value;return!Mn(this,n)}get(t){return hr(this,t,!0)}peek(t){return hr(this,t,!1)}pop(){const t=this[ce].tail;return t?(Vt(this,t),t.value):null}del(t){Vt(this,this[We].get(t))}load(t){this.reset();const n=Date.now();for(let r=t.length-1;r>=0;r--){const o=t[r],a=o.e||0;if(a===0)this.set(o.k,o.v);else{const i=a-n;i>0&&this.set(o.k,o.v,i)}}}prune(){this[We].forEach((t,n)=>hr(this,n,!1))}}const hr=(e,t,n)=>{const r=e[We].get(t);if(r){const o=r.value;if(Mn(e,o)){if(Vt(e,r),!e[sn])return}else n&&(e[pa]&&(r.value.now=Date.now()),e[ce].unshiftNode(r));return o.value}},Mn=(e,t)=>{if(!t||!t.maxAge&&!e[Et])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Et]&&n>e[Et]},tn=e=>{if(e[Ze]>e[mt])for(let t=e[ce].tail;e[Ze]>e[mt]&&t!==null;){const n=t.prev;Vt(e,t),t=n}},Vt=(e,t)=>{if(t){const n=t.value;e[Qe]&&e[Qe](n.key,n.value),e[Ze]-=n.length,e[We].delete(n.key),e[ce].removeNode(t)}};class El{constructor(t,n,r,o,a){this.key=t,this.value=n,this.length=r,this.now=o,this.maxAge=a||0}}const Ki=(e,t,n,r)=>{let o=n.value;Mn(e,o)&&(Vt(e,n),e[sn]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};var ga=Sl;const Rl=ga,Il=10;var Al=class{constructor({document:t}){this.document=t,this.cache=new Rl({max:Il})}getProcessed(t){return this.cache.get(t)}setProcessed(t,n){this.cache.set(t,n)}};const{isArray:qr,isObject:ln,isString:Pn}=Ae,{asArray:xl}=$e,{prependBase:Cr}=ht,rn=ke,Yi=Al,Qi=10;var Nl=class{constructor({sharedCache:t}){this.perOpCache=new Map,this.sharedCache=t}async resolve({activeCtx:t,context:n,documentLoader:r,base:o,cycles:a=new Set}){n&&ln(n)&&n["@context"]&&(n=n["@context"]),n=xl(n);const i=[];for(const l of n){if(Pn(l)){let p=this._get(l);p||(p=await this._resolveRemoteContext({activeCtx:t,url:l,documentLoader:r,base:o,cycles:a})),qr(p)?i.push(...p):i.push(p);continue}if(l===null){i.push(new Yi({document:null}));continue}ln(l)||Dl(n);const f=JSON.stringify(l);let c=this._get(f);c||(c=new Yi({document:l}),this._cacheResolvedContext({key:f,resolved:c,tag:"static"})),i.push(c)}return i}_get(t){let n=this.perOpCache.get(t);if(!n){const r=this.sharedCache.get(t);r&&(n=r.get("static"),n&&this.perOpCache.set(t,n))}return n}_cacheResolvedContext({key:t,resolved:n,tag:r}){if(this.perOpCache.set(t,n),r!==void 0){let o=this.sharedCache.get(t);o||(o=new Map,this.sharedCache.set(t,o)),o.set(r,n)}return n}async _resolveRemoteContext({activeCtx:t,url:n,documentLoader:r,base:o,cycles:a}){n=Cr(o,n);const{context:i,remoteDoc:l}=await this._fetchContext({activeCtx:t,url:n,documentLoader:r,cycles:a});o=l.documentUrl||n,Xr({context:i,base:o});const f=await this.resolve({activeCtx:t,context:i,documentLoader:r,base:o,cycles:a});return this._cacheResolvedContext({key:n,resolved:f,tag:l.tag}),f}async _fetchContext({activeCtx:t,url:n,documentLoader:r,cycles:o}){if(o.size>Qi)throw new rn("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:t.processingMode==="json-ld-1.0"?"loading remote context failed":"context overflow",max:Qi});if(o.has(n))throw new rn("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:t.processingMode==="json-ld-1.0"?"recursive context inclusion":"context overflow",url:n});o.add(n);let a,i;try{i=await r(n),a=i.document||null,Pn(a)&&(a=JSON.parse(a))}catch(l){throw new rn("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.","jsonld.InvalidUrl",{code:"loading remote context failed",url:n,cause:l})}if(!ln(a))throw new rn("Dereferencing a URL did not result in a JSON object. The response was valid JSON, but it was not a JSON object.","jsonld.InvalidUrl",{code:"invalid remote context",url:n});return"@context"in a?a={"@context":a["@context"]}:a={"@context":{}},i.contextUrl&&(qr(a["@context"])||(a["@context"]=[a["@context"]]),a["@context"].push(i.contextUrl)),{context:a,remoteDoc:i}}};function Dl(e){throw new rn("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:e})}function Xr({context:e,base:t}){if(!e)return;const n=e["@context"];if(Pn(n)){e["@context"]=Cr(t,n);return}if(qr(n)){for(let r=0;r{const t=[].concat(e.safe?Ie.safeEventHandler:[],e.eventHandler?ya(e.eventHandler):[],Ie.defaultEventHandler?Ie.defaultEventHandler:[]);return t.length===0?null:t};Ie.handleEvent=({event:e,options:t})=>{ba({event:e,handlers:t.eventHandler})};function ba({event:e,handlers:t}){let n=!0;for(let r=0;n&&r{n=!0}});else if(typeof o=="object")e.code in o?o[e.code]({event:e,next:()=>{n=!0}}):n=!0;else throw new vi("Invalid event handler.","jsonld.InvalidEventHandler",{event:e})}return n}const Tl=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"]);Ie.safeEventHandler=function({event:t,next:n}){if(t.level==="warning"&&Tl.has(t.code))throw new vi("Safe mode validation error.","jsonld.ValidationError",{event:t});n()};Ie.logEventHandler=function({event:t,next:n}){console.log(`EVENT: ${t.message}`,{event:t}),n()};Ie.logWarningEventHandler=function({event:t,next:n}){t.level==="warning"&&console.warn(`WARNING: ${t.message}`,{event:t}),n()};Ie.unhandledEventHandler=function({event:t}){throw new vi("No handler for event.","jsonld.UnhandledEvent",{event:t})};Ie.setDefaultEventHandler=function({eventHandler:e}={}){Ie.defaultEventHandler=e?ya(e):null};const Zi=$e,$=ke,{isArray:wa,isObject:dt,isString:_e,isUndefined:jl}=Ae,{isAbsolute:Rt,isRelative:kl,prependBase:cn}=ht,{handleEvent:Gt}=gn,{REGEX_BCP47:$l,REGEX_KEYWORD:Ln,asArray:va,compareShortestLeast:Ml}=$e,_n=new Map,Pl=1e4,Y={};var Tt=Y;Y.process=async({activeCtx:e,localCtx:t,options:n,propagate:r=!0,overrideProtected:o=!1,cycles:a=new Set})=>{if(dt(t)&&"@context"in t&&wa(t["@context"])&&(t=t["@context"]),va(t).length===0)return e;const l=[],f=[({event:d,next:s})=>{l.push(d),s()}];n.eventHandler&&f.push(n.eventHandler);const c=n;n={...n,eventHandler:f};const p=await n.contextResolver.resolve({activeCtx:e,context:t,documentLoader:n.documentLoader,base:n.base});dt(p[0].document)&&typeof p[0].document["@propagate"]=="boolean"&&(r=p[0].document["@propagate"]);let g=e;!r&&!g.previousContext&&(g=g.clone(),g.previousContext=e);for(const d of p){let{document:s}=d;if(e=g,s===null){if(!o&&Object.keys(e.protected).length!==0)throw new $("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});g=e=Y.getInitialContext(n).clone();continue}const u=d.getProcessed(e);if(u){if(c.eventHandler)for(const w of u.events)Gt({event:w,options:c});g=e=u.context;continue}if(dt(s)&&"@context"in s&&(s=s["@context"]),!dt(s))throw new $("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:s});g=g.clone();const y=new Map;if("@version"in s){if(s["@version"]!==1.1)throw new $("Unsupported JSON-LD version: "+s["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:s});if(e.processingMode&&e.processingMode==="json-ld-1.0")throw new $("@version: "+s["@version"]+" not compatible with "+e.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:s});g.processingMode="json-ld-1.1",g["@version"]=s["@version"],y.set("@version",!0)}if(g.processingMode=g.processingMode||e.processingMode,"@base"in s){let w=s["@base"];if(!(w===null||Rt(w)))if(kl(w))w=cn(g["@base"],w);else throw new $('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:s});g["@base"]=w,y.set("@base",!0)}if("@vocab"in s){const w=s["@vocab"];if(w===null)delete g["@vocab"];else if(_e(w)){if(!Rt(w)&&Y.processingMode(g,1))throw new $('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:s});{const v=Bt(g,w,{vocab:!0,base:!0},void 0,void 0,n);Rt(v)||n.eventHandler&&Gt({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:v}},options:n}),g["@vocab"]=v}}else throw new $('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:s});y.set("@vocab",!0)}if("@language"in s){const w=s["@language"];if(w===null)delete g["@language"];else if(_e(w))w.match($l)||n.eventHandler&&Gt({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:w}},options:n}),g["@language"]=w.toLowerCase();else throw new $('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:s});y.set("@language",!0)}if("@direction"in s){const w=s["@direction"];if(e.processingMode==="json-ld-1.0")throw new $("Invalid JSON-LD syntax; @direction not compatible with "+e.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:s});if(w===null)delete g["@direction"];else{if(w!=="ltr"&&w!=="rtl")throw new $('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:s});g["@direction"]=w}y.set("@direction",!0)}if("@propagate"in s){const w=s["@propagate"];if(e.processingMode==="json-ld-1.0")throw new $("Invalid JSON-LD syntax; @propagate not compatible with "+e.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:s});if(typeof w!="boolean")throw new $("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:t});y.set("@propagate",!0)}if("@import"in s){const w=s["@import"];if(e.processingMode==="json-ld-1.0")throw new $("Invalid JSON-LD syntax; @import not compatible with "+e.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:s});if(!_e(w))throw new $("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:t});const v=await n.contextResolver.resolve({activeCtx:e,context:w,documentLoader:n.documentLoader,base:n.base});if(v.length!==1)throw new $("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:t});const E=v[0].getProcessed(e);if(E)s=E;else{const S=v[0].document;if("@import"in S)throw new $("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:t});for(const I in S)s.hasOwnProperty(I)||(s[I]=S[I]);v[0].setProcessed(e,s)}y.set("@import",!0)}y.set("@protected",s["@protected"]||!1);for(const w in s)if(Y.createTermDefinition({activeCtx:g,localCtx:s,term:w,defined:y,options:n,overrideProtected:o}),dt(s[w])&&"@context"in s[w]){const v=s[w]["@context"];let E=!0;if(_e(v)){const S=cn(n.base,v);a.has(S)?E=!1:a.add(S)}if(E)try{await Y.process({activeCtx:g.clone(),localCtx:s[w]["@context"],overrideProtected:!0,options:n,cycles:a})}catch{throw new $("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:s[w]["@context"],term:w})}}d.setProcessed(e,{context:g,events:l})}return g};Y.createTermDefinition=({activeCtx:e,localCtx:t,term:n,defined:r,options:o,overrideProtected:a=!1})=>{if(r.has(n)){if(r.get(n))return;throw new $("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:t,term:n})}r.set(n,!1);let i;if(t.hasOwnProperty(n)&&(i=t[n]),n==="@type"&&dt(i)&&(i["@container"]||"@set")==="@set"&&Y.processingMode(e,1.1)){const s=["@container","@id","@protected"],u=Object.keys(i);if(u.length===0||u.some(y=>!s.includes(y)))throw new $("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:t,term:n})}else{if(Y.isKeyword(n))throw new $("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:t,term:n});if(n.match(Ln)){o.eventHandler&&Gt({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:n}},options:o});return}else if(n==="")throw new $("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:t})}const l=e.mappings.get(n);e.mappings.has(n)&&e.mappings.delete(n);let f=!1;if((_e(i)||i===null)&&(f=!0,i={"@id":i}),!dt(i))throw new $("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:t});const c={};e.mappings.set(n,c),c.reverse=!1;const p=["@container","@id","@language","@reverse","@type"];Y.processingMode(e,1.1)&&p.push("@context","@direction","@index","@nest","@prefix","@protected");for(const s in i)if(!p.includes(s))throw new $("Invalid JSON-LD syntax; a term definition must not contain "+s,"jsonld.SyntaxError",{code:"invalid term definition",context:t});const g=n.indexOf(":");if(c._termHasColon=g>0,"@reverse"in i){if("@id"in i)throw new $("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});if("@nest"in i)throw new $("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});const s=i["@reverse"];if(!_e(s))throw new $("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});if(s.match(Ln)){o.eventHandler&&Gt({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:s}},options:o}),l?e.mappings.set(n,l):e.mappings.delete(n);return}const u=Bt(e,s,{vocab:!0,base:!1},t,r,o);if(!Rt(u))throw new $("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:t});c["@id"]=u,c.reverse=!0}else if("@id"in i){let s=i["@id"];if(s&&!_e(s))throw new $("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t});if(s===null)c["@id"]=null;else if(!Y.isKeyword(s)&&s.match(Ln)){o.eventHandler&&Gt({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:s}},options:o}),l?e.mappings.set(n,l):e.mappings.delete(n);return}else if(s!==n){if(s=Bt(e,s,{vocab:!0,base:!1},t,r,o),!Rt(s)&&!Y.isKeyword(s))throw new $("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:t});if(n.match(/(?::[^:])|\//)){const u=new Map(r).set(n,!0);if(Bt(e,n,{vocab:!0,base:!1},t,u,o)!==s)throw new $("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t})}c["@id"]=s,c._prefix=f&&!c._termHasColon&&s.match(/[:\/\?#\[\]@]$/)!==null}}if(!("@id"in c))if(c._termHasColon){const s=n.substr(0,g);if(t.hasOwnProperty(s)&&Y.createTermDefinition({activeCtx:e,localCtx:t,term:s,defined:r,options:o}),e.mappings.has(s)){const u=n.substr(g+1);c["@id"]=e.mappings.get(s)["@id"]+u}else c["@id"]=n}else if(n==="@type")c["@id"]=n;else{if(!("@vocab"in e))throw new $("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:t,term:n});c["@id"]=e["@vocab"]+n}if((i["@protected"]===!0||r.get("@protected")===!0&&i["@protected"]!==!1)&&(e.protected[n]=!0,c.protected=!0),r.set(n,!0),"@type"in i){let s=i["@type"];if(!_e(s))throw new $("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:t});if(s==="@json"||s==="@none"){if(Y.processingMode(e,1))throw new $(`Invalid JSON-LD syntax; an @context @type value must not be "${s}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:t})}else if(s!=="@id"&&s!=="@vocab"){if(s=Bt(e,s,{vocab:!0,base:!1},t,r,o),!Rt(s))throw new $("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:t});if(s.indexOf("_:")===0)throw new $("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:t})}c["@type"]=s}if("@container"in i){const s=_e(i["@container"])?[i["@container"]]:i["@container"]||[],u=["@list","@set","@index","@language"];let y=!0;const w=s.includes("@set");if(Y.processingMode(e,1.1)){if(u.push("@graph","@id","@type"),s.includes("@list")){if(s.length!==1)throw new $("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:t})}else if(s.includes("@graph")){if(s.some(v=>v!=="@graph"&&v!=="@id"&&v!=="@index"&&v!=="@set"))throw new $("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:t})}else y&=s.length<=(w?2:1);if(s.includes("@type")&&(c["@type"]=c["@type"]||"@id",!["@id","@vocab"].includes(c["@type"])))throw new $("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:t})}else y&=!wa(i["@container"]),y&=s.length<=1;if(y&=s.every(v=>u.includes(v)),y&=!(w&&s.includes("@list")),!y)throw new $("Invalid JSON-LD syntax; @context @container value must be one of the following: "+u.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:t});if(c.reverse&&!s.every(v=>["@index","@set"].includes(v)))throw new $("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:t});c["@container"]=s}if("@index"in i){if(!("@container"in i)||!c["@container"].includes("@index"))throw new $(`Invalid JSON-LD syntax; @index without @index in @container: "${i["@index"]}" on term "${n}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:t});if(!_e(i["@index"])||i["@index"].indexOf("@")===0)throw new $(`Invalid JSON-LD syntax; @index must expand to an IRI: "${i["@index"]}" on term "${n}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:t});c["@index"]=i["@index"]}if("@context"in i&&(c["@context"]=i["@context"]),"@language"in i&&!("@type"in i)){let s=i["@language"];if(s!==null&&!_e(s))throw new $("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:t});s!==null&&(s=s.toLowerCase()),c["@language"]=s}if("@prefix"in i){if(n.match(/:|\//))throw new $("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:t});if(Y.isKeyword(c["@id"]))throw new $("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:t});if(typeof i["@prefix"]=="boolean")c._prefix=i["@prefix"]===!0;else throw new $("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:t})}if("@direction"in i){const s=i["@direction"];if(s!==null&&s!=="ltr"&&s!=="rtl")throw new $('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:t});c["@direction"]=s}if("@nest"in i){const s=i["@nest"];if(!_e(s)||s!=="@nest"&&s.indexOf("@")===0)throw new $("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:t});c["@nest"]=s}// disallow aliasing @context and @preserve -const d=c["@id"];if(d==="@context"||d==="@preserve")throw new $("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:t});if(l&&l.protected&&!a&&(e.protected[n]=!0,c.protected=!0,!zr(l,c)))throw new $("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:t,term:n})};Y.expandIri=(e,t,n,r)=>Bt(e,t,n,void 0,void 0,r);function Bt(e,t,n,r,o,a){if(t===null||!_e(t)||Y.isKeyword(t))return t;if(t.match(Ln))return null;if(r&&r.hasOwnProperty(t)&&o.get(t)!==!0&&Y.createTermDefinition({activeCtx:e,localCtx:r,term:t,defined:o,options:a}),n=n||{},n.vocab){const l=e.mappings.get(t);if(l===null)return null;if(dt(l)&&"@id"in l)return l["@id"]}const i=t.indexOf(":");if(i>0){const l=t.substr(0,i),f=t.substr(i+1);if(l==="_"||f.indexOf("//")===0)return t;r&&r.hasOwnProperty(l)&&Y.createTermDefinition({activeCtx:e,localCtx:r,term:l,defined:o,options:a});const c=e.mappings.get(l);if(c&&c._prefix)return c["@id"]+f;if(Rt(t))return t}if(n.vocab&&"@vocab"in e)t=e["@vocab"]+t;else if(n.base){let l,f;"@base"in e?e["@base"]?(f=cn(a.base,e["@base"]),l=cn(f,t)):(f=e["@base"],l=t):(f=a.base,l=cn(a.base,t)),t=l}return t}Y.getInitialContext=e=>{const t=JSON.stringify({processingMode:e.processingMode}),n=_n.get(t);if(n)return n;const r={processingMode:e.processingMode,mappings:new Map,inverse:null,getInverse:o,clone:l,revertToPreviousContext:f,protected:{}};return _n.size===Pl&&_n.clear(),_n.set(t,r),r;function o(){const c=this;if(c.inverse)return c.inverse;const p=c.inverse={},g=c.fastCurieMap={},d={},s=(c["@language"]||"@none").toLowerCase(),u=c["@direction"],y=c.mappings,w=[...y.keys()].sort(Ml);for(const v of w){const E=y.get(v);if(E===null)continue;let S=E["@container"]||"@none";if(S=[].concat(S).sort().join(""),E["@id"]===null)continue;const I=va(E["@id"]);for(const x of I){let R=p[x];const V=Y.isKeyword(x);if(R)!V&&!E._termHasColon&&d[x].push(v);else if(p[x]=R={},!V&&!E._termHasColon){d[x]=[v];const k={iri:x,terms:d[x]};x[0]in g?g[x[0]].push(k):g[x[0]]=[k]}if(R[S]||(R[S]={"@language":{},"@type":{},"@any":{}}),R=R[S],i(v,R["@any"],"@none"),E.reverse)i(v,R["@type"],"@reverse");else if(E["@type"]==="@none")i(v,R["@any"],"@none"),i(v,R["@language"],"@none"),i(v,R["@type"],"@none");else if("@type"in E)i(v,R["@type"],E["@type"]);else if("@language"in E&&"@direction"in E){const k=E["@language"],F=E["@direction"];k&&F?i(v,R["@language"],`${k}_${F}`.toLowerCase()):k?i(v,R["@language"],k.toLowerCase()):F?i(v,R["@language"],`_${F}`):i(v,R["@language"],"@null")}else"@language"in E?i(v,R["@language"],(E["@language"]||"@null").toLowerCase()):"@direction"in E?E["@direction"]?i(v,R["@language"],`_${E["@direction"]}`):i(v,R["@language"],"@none"):u?(i(v,R["@language"],`_${u}`),i(v,R["@language"],"@none"),i(v,R["@type"],"@none")):(i(v,R["@language"],s),i(v,R["@language"],"@none"),i(v,R["@type"],"@none"))}}for(const v in g)a(g,v,1);return p}function a(c,p,g){const d=c[p],s=c[p]={};let u,y;for(const w of d)u=w.iri,g>=u.length?y="":y=u[g],y in s?s[y].push(w):s[y]=[w];for(const w in s)w!==""&&a(s,w,g+1)}function i(c,p,g){p.hasOwnProperty(g)||(p[g]=c)}function l(){const c={};return c.mappings=Zi.clone(this.mappings),c.clone=this.clone,c.inverse=null,c.getInverse=this.getInverse,c.protected=Zi.clone(this.protected),this.previousContext&&(c.previousContext=this.previousContext.clone()),c.revertToPreviousContext=this.revertToPreviousContext,"@base"in this&&(c["@base"]=this["@base"]),"@language"in this&&(c["@language"]=this["@language"]),"@vocab"in this&&(c["@vocab"]=this["@vocab"]),c}function f(){return this.previousContext?this.previousContext.clone():this}};Y.getContextValue=(e,t,n)=>{if(t===null)return n==="@context"?void 0:null;if(e.mappings.has(t)){const r=e.mappings.get(t);if(jl(n))return r;if(r.hasOwnProperty(n))return r[n]}if(n==="@language"&&n in e||n==="@direction"&&n in e)return e[n];if(n!=="@context")return null};Y.processingMode=(e,t)=>t.toString()>="1.1"?!e.processingMode||e.processingMode>="json-ld-"+t.toString():e.processingMode==="json-ld-1.0";Y.isKeyword=e=>{if(!_e(e)||e[0]!=="@")return!1;switch(e){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 zr(e,t){if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return e===t;const n=Array.isArray(e);if(n!==Array.isArray(t))return!1;if(n){if(e.length!==t.length)return!1;for(let a=0;a{if(n==null)return null;if(t==="@default"&&(r=Object.assign({},r,{isFrame:!1})),!Te(n)&&!Ne(n))return!o&&(t===null||ae(e,t,{vocab:!0},r)==="@graph")?(r.eventHandler&&Oe({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:n}},options:r}),null):Ea({activeCtx:e,activeProperty:t,value:n,options:r});if(Te(n)){let u=[];const y=Re(e,t,"@container")||[];o=o||y.includes("@list");for(let w=0;w1?w.slice().sort():w:[w];for(const E of v){const S=Re(i,E,"@context");Fn(S)||(e=await dn({activeCtx:e,localCtx:S,options:r,propagate:!1}))}}let d={};await Sa({activeCtx:e,activeProperty:t,expandedActiveProperty:l,element:n,expandedParent:d,options:r,insideList:o,typeKey:g,typeScopedContext:i}),c=Object.keys(d);let s=c.length;if("@value"in d){if("@type"in d&&("@language"in d||"@direction"in d))throw new Q('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:d});let u=s-1;if("@type"in d&&(u-=1),"@index"in d&&(u-=1),"@language"in d&&(u-=1),"@direction"in d&&(u-=1),u!==0)throw new Q('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:d});const y=d["@value"]===null?[]:Fe(d["@value"]),w=Ul(d,"@type");if(!(Tn(e,1.1)&&w.includes("@json")&&w.length===1))if(y.length===0)r.eventHandler&&Oe({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:d}},options:r}),d=null;else{if(!y.every(v=>he(v)||Kr(v))&&"@language"in d)throw new Q("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:d});if(!w.every(v=>jn(v)&&!(he(v)&&v.indexOf("_:")===0)||Kr(v)))throw new Q('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:d})}}else if("@type"in d&&!Te(d["@type"]))d["@type"]=[d["@type"]];else if("@set"in d||"@list"in d){if(s>1&&!(s===2&&"@index"in d))throw new Q('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:d});"@set"in d&&(d=d["@set"],c=Object.keys(d),s=c.length)}else s===1&&"@language"in d&&(r.eventHandler&&Oe({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:d}},options:r}),d=null);return Ne(d)&&!r.keepFreeFloatingNodes&&!o&&(t===null||l==="@graph"||(Re(e,t,"@container")||[]).includes("@graph"))&&(d=ma({value:d,count:s,options:r})),d};function ma({value:e,count:t,options:n}){if(t===0||"@value"in e||"@list"in e||t===1&&"@id"in e){if(n.eventHandler){let r,o;t===0?(r="empty object",o="Dropping empty object."):"@value"in e?(r="object with only @value",o="Dropping object with only @value."):"@list"in e?(r="object with only @list",o="Dropping object with only @list."):t===1&&"@id"in e&&(r="object with only @id",o="Dropping object with only @id."),Oe({event:{type:["JsonLdEvent"],code:r,level:"warning",message:o,details:{value:e}},options:n})}return null}return e}async function Sa({activeCtx:e,activeProperty:t,expandedActiveProperty:n,element:r,expandedParent:o,options:a={},insideList:i,typeKey:l,typeScopedContext:f}){const c=Object.keys(r).sort(),p=[];let g;const d=r[l]&&ae(e,Te(r[l])?r[l][0]:r[l],{vocab:!0},{...a,typeExpansion:!0})==="@json";for(const s of c){let u=r[s],y;if(s==="@context")continue;const w=ae(e,s,{vocab:!0},a);if(w===null||!(jn(w)||Qr(w))){a.eventHandler&&Oe({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:s,expandedProperty:w}},options:a});continue}if(Qr(w)){if(n==="@reverse")throw new Q("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:u});if(w in o&&w!=="@included"&&w!=="@type")throw new Q("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:w})}if(w==="@id"){if(!he(u)){if(!a.isFrame)throw new Q('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:u});if(Ne(u)){if(!Kr(u))throw new Q('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:u})}else if(Te(u)){if(!u.every(I=>he(I)))throw new Q('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:u})}else throw new Q('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:u})}Ee(o,"@id",Fe(u).map(I=>{if(he(I)){const x=ae(e,I,{base:!0},a);return a.eventHandler&&(x===null?Oe(I===null?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:I}},options:a}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:I}},options:a}):jn(x)||Oe({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:I,expandedId:x}},options:a})),x}return I}),{propertyIsArray:a.isFrame});continue}if(w==="@type"){Ne(u)&&(u=Object.fromEntries(Object.entries(u).map(([I,x])=>[ae(f,I,{vocab:!0}),Fe(x).map(R=>ae(f,R,{base:!0,vocab:!0},{...a,typeExpansion:!0}))]))),Hl(u,a.isFrame),Ee(o,"@type",Fe(u).map(I=>{if(he(I)){const x=ae(f,I,{base:!0,vocab:!0},{...a,typeExpansion:!0});return x!=="@json"&&!jn(x)&&a.eventHandler&&Oe({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:I}},options:a}),x}return I}),{propertyIsArray:!!a.isFrame});continue}if(w==="@included"&&Tn(e,1.1)){const I=Fe(await ut.expand({activeCtx:e,activeProperty:t,element:u,options:a}));if(!I.every(x=>Wl(x)))throw new Q("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:u});Ee(o,"@included",I,{propertyIsArray:!0});continue}if(w==="@graph"&&!(Ne(u)||Te(u)))throw new Q('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:u});if(w==="@value"){g=u,d&&Tn(e,1.1)?o["@value"]=u:Ee(o,"@value",u,{propertyIsArray:a.isFrame});continue}if(w==="@language"){if(u===null)continue;if(!he(u)&&!a.isFrame)throw new Q('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:u});u=Fe(u).map(I=>he(I)?I.toLowerCase():I);for(const I of u)he(I)&&!I.match(_a)&&a.eventHandler&&Oe({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:I}},options:a});Ee(o,"@language",u,{propertyIsArray:a.isFrame});continue}if(w==="@direction"){if(!he(u)&&!a.isFrame)throw new Q('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:u});u=Fe(u);for(const I of u)if(he(I)&&I!=="ltr"&&I!=="rtl")throw new Q('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:u});Ee(o,"@direction",u,{propertyIsArray:a.isFrame});continue}if(w==="@index"){if(!he(u))throw new Q('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:u});Ee(o,"@index",u);continue}if(w==="@reverse"){if(!Ne(u))throw new Q('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:u});if(y=await ut.expand({activeCtx:e,activeProperty:"@reverse",element:u,options:a}),"@reverse"in y)for(const x in y["@reverse"])Ee(o,x,y["@reverse"][x],{propertyIsArray:!0});let I=o["@reverse"]||null;for(const x in y){if(x==="@reverse")continue;I===null&&(I=o["@reverse"]={}),Ee(I,x,[],{propertyIsArray:!0});const R=y[x];for(let V=0;VI==="@id"||I==="@index")){if(y=Fe(y),a.isFrame||(y=y.filter(I=>{const x=Object.keys(I).length;return ma({value:I,count:x,options:a})!==null})),y.length===0)continue;y=y.map(I=>({"@graph":Fe(I)}))}if(v.mappings.has(s)&&v.mappings.get(s).reverse){const I=o["@reverse"]=o["@reverse"]||{};y=Fe(y);for(let x=0;xae(e,w,{vocab:!0},a)==="@value"))throw new Q("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:y});await Sa({activeCtx:e,activeProperty:t,expandedActiveProperty:n,element:y,expandedParent:o,options:a,insideList:i,typeScopedContext:f,typeKey:l})}}}function Ea({activeCtx:e,activeProperty:t,value:n,options:r}){if(n==null)return null;const o=ae(e,t,{vocab:!0},r);if(o==="@id")return ae(e,n,{base:!0},r);if(o==="@type")return ae(e,n,{vocab:!0,base:!0},{...r,typeExpansion:!0});const a=Re(e,t,"@type");if((a==="@id"||o==="@graph")&&he(n)){const l=ae(e,n,{base:!0},r);return l===null&&n.match(Jl)&&r.eventHandler&&Oe({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:t}},options:r}),{"@id":l}}if(a==="@vocab"&&he(n))return{"@id":ae(e,n,{vocab:!0,base:!0},r)};if(Qr(o))return n;const i={};if(a&&!["@id","@vocab","@none"].includes(a))i["@type"]=a;else if(he(n)){const l=Re(e,t,"@language");l!==null&&(i["@language"]=l);const f=Re(e,t,"@direction");f!==null&&(i["@direction"]=f)}return["boolean","number","string"].includes(typeof n)||(n=n.toString()),i["@value"]=n,i}function Vl(e,t,n,r){const o=[],a=Object.keys(t).sort();for(const i of a){const l=ae(e,i,{vocab:!0},r);let f=t[i];Te(f)||(f=[f]);for(const c of f){if(c===null)continue;if(!he(c))throw new Q("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:t});const p={"@value":c};l!=="@none"&&(i.match(_a)||r.eventHandler&&Oe({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:i}},options:r}),p["@language"]=i.toLowerCase()),n&&(p["@direction"]=n),o.push(p)}}return o}async function gr({activeCtx:e,options:t,activeProperty:n,value:r,asGraph:o,indexKey:a,propertyIndex:i}){const l=[],f=Object.keys(r).sort(),c=a==="@type";for(let p of f){if(c){const s=Re(e,p,"@context");Fn(s)||(e=await dn({activeCtx:e,localCtx:s,propagate:!1,options:t}))}let g=r[p];Te(g)||(g=[g]),g=await ut.expand({activeCtx:e,activeProperty:n,element:g,options:t,insideList:!1,insideIndex:!0});let d;i?p==="@none"?d="@none":d=Ea({activeCtx:e,activeProperty:a,value:p,options:t}):d=ae(e,p,{vocab:!0},t),a==="@id"?p=ae(e,p,{base:!0},t):c&&(p=d);for(let s of g){if(o&&!Fl(s)&&(s={"@graph":[s]}),a==="@type")d==="@none"||(s["@type"]?s["@type"]=[p].concat(s["@type"]):s["@type"]=[p]);else{if(Yr(s)&&!["@language","@type","@index"].includes(a))throw new Q(`Invalid JSON-LD syntax; Attempt to add illegal key to value object: "${a}".`,"jsonld.SyntaxError",{code:"invalid value object",value:s});i?d!=="@none"&&Ee(s,i,d,{propertyIsArray:!0,prependValue:!0}):d!=="@none"&&!(a in s)&&(s[a]=p)}l.push(s)}}return l}const{isKeyword:Ra}=Tt,Be=it,yr=Ae,Ve=$e,Gl=ke,we={};var Gn=we;we.createMergedNodeMap=(e,t)=>{t=t||{};const n=t.issuer||new Ve.IdentifierIssuer("_:b"),r={"@default":{}};return we.createNodeMap(e,r,"@default",n),we.mergeNodeMaps(r)};we.createNodeMap=(e,t,n,r,o,a)=>{if(yr.isArray(e)){for(const c of e)we.createNodeMap(c,t,n,r,void 0,a);return}if(!yr.isObject(e)){a&&a.push(e);return}if(Be.isValue(e)){if("@type"in e){let c=e["@type"];c.indexOf("_:")===0&&(e["@type"]=c=r.getId(c))}a&&a.push(e);return}else if(a&&Be.isList(e)){const c=[];we.createNodeMap(e["@list"],t,n,r,o,c),a.push({"@list":c});return}if("@type"in e){const c=e["@type"];for(const p of c)p.indexOf("_:")===0&&r.getId(p)}yr.isUndefined(o)&&(o=Be.isBlankNode(e)?r.getId(e["@id"]):e["@id"]),a&&a.push({"@id":o});const i=t[n],l=i[o]=i[o]||{};l["@id"]=o;const f=Object.keys(e).sort();for(let c of f){if(c==="@id")continue;if(c==="@reverse"){const g={"@id":o},d=e["@reverse"];for(const s in d){const u=d[s];for(const y of u){let w=y["@id"];Be.isBlankNode(y)&&(w=r.getId(w)),we.createNodeMap(y,t,n,r,w),Ve.addValue(i[w],s,g,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if(c==="@graph"){o in t||(t[o]={}),we.createNodeMap(e[c],t,o,r);continue}if(c==="@included"){we.createNodeMap(e[c],t,n,r);continue}if(c!=="@type"&&Ra(c)){if(c==="@index"&&c in l&&(e[c]!==l[c]||e[c]["@id"]!==l[c]["@id"]))throw new Gl("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:l});l[c]=e[c];continue}const p=e[c];if(c.indexOf("_:")===0&&(c=r.getId(c)),p.length===0){Ve.addValue(l,c,[],{propertyIsArray:!0});continue}for(let g of p)if(c==="@type"&&(g=g.indexOf("_:")===0?r.getId(g):g),Be.isSubject(g)||Be.isSubjectReference(g)){if("@id"in g&&!g["@id"])continue;const d=Be.isBlankNode(g)?r.getId(g["@id"]):g["@id"];Ve.addValue(l,c,{"@id":d},{propertyIsArray:!0,allowDuplicate:!1}),we.createNodeMap(g,t,n,r,d)}else if(Be.isValue(g))Ve.addValue(l,c,g,{propertyIsArray:!0,allowDuplicate:!1});else if(Be.isList(g)){const d=[];we.createNodeMap(g["@list"],t,n,r,o,d),g={"@list":d},Ve.addValue(l,c,g,{propertyIsArray:!0,allowDuplicate:!1})}else we.createNodeMap(g,t,n,r,o),Ve.addValue(l,c,g,{propertyIsArray:!0,allowDuplicate:!1})}};we.mergeNodeMapGraphs=e=>{const t={};for(const n of Object.keys(e).sort())for(const r of Object.keys(e[n]).sort()){const o=e[n][r];r in t||(t[r]={"@id":r});const a=t[r];for(const i of Object.keys(o).sort())if(Ra(i)&&i!=="@type")a[i]=Ve.clone(o[i]);else for(const l of o[i])Ve.addValue(a,i,Ve.clone(l),{propertyIsArray:!0,allowDuplicate:!1})}return t};we.mergeNodeMaps=e=>{const t=e["@default"],n=Object.keys(e).sort();for(const r of n){if(r==="@default")continue;const o=e[r];let a=t[r];a?"@graph"in a||(a["@graph"]=[]):t[r]=a={"@id":r,"@graph":[]};const i=a["@graph"];for(const l of Object.keys(o).sort()){const f=o[l];Be.isSubjectReference(f)||i.push(f)}}return t};const{isSubjectReference:ql}=it,{createMergedNodeMap:Cl}=Gn,Ia={};var Xl=Ia;Ia.flatten=e=>{const t=Cl(e),n=[],r=Object.keys(t).sort();for(let o=0;o{const{useRdfType:n=!1,useNativeTypes:r=!1,rdfDirection:o=null}=t,a={},i={"@default":a},l={};if(o){if(o==="compound-literal")throw new Zr("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:o});if(o!=="i18n-datatype")throw new Zr("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:o})}for(const p of e){const g=p.graph.termType==="DefaultGraph"?"@default":p.graph.value;g in i||(i[g]={}),g!=="@default"&&!(g in a)&&(a[g]={"@id":g});const d=i[g],s=p.subject.value,u=p.predicate.value,y=p.object;s in d||(d[s]={"@id":s});const w=d[s],v=y.termType.endsWith("Node");if(v&&!(y.value in d)&&(d[y.value]={"@id":y.value}),u===Kl&&!n&&v){to(w,"@type",y.value,{propertyIsArray:!0});continue}const E=Zl(y,r,o,t);if(to(w,u,E,{propertyIsArray:!0}),v)if(y.value===_r){const S=d[y.value];"usages"in S||(S.usages=[]),S.usages.push({node:w,property:u,value:E})}else y.value in l?l[y.value]=!1:l[y.value]={node:w,property:u,value:E}}for(const p in i){const g=i[p];if(!(_r in g))continue;const d=g[_r];if(d.usages){for(let s of d.usages){let u=s.node,y=s.property,w=s.value;const v=[],E=[];let S=Object.keys(u).length;for(;y===vr&&on.isObject(l[u["@id"]])&&on.isArray(u[wr])&&u[wr].length===1&&on.isArray(u[vr])&&u[vr].length===1&&(S===3||S===4&&on.isArray(u["@type"])&&u["@type"].length===1&&u["@type"][0]===zl)&&(v.push(u[wr][0]),E.push(u["@id"]),s=l[u["@id"]],u=s.node,y=s.property,w=s.value,S=Object.keys(u).length,!!br.isBlankNode(u)););delete w["@id"],w["@list"]=v.reverse();for(const I of E)delete g[I]}delete d.usages}}const f=[],c=Object.keys(a).sort();for(const p of c){const g=a[p];if(p in i){const d=g["@graph"]=[],s=i[p],u=Object.keys(s).sort();for(const y of u){const w=s[y];br.isSubjectReference(w)||d.push(w)}}br.isSubjectReference(g)||f.push(g)}return f};function Zl(e,t,n,r){if(e.termType.endsWith("Node"))return{"@id":e.value};const o={"@value":e.value};if(e.language)e.language.match(eo)||r.eventHandler&&no({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:e.language}},options:r}),o["@language"]=e.language;else{let a=e.datatype.value;if(a||(a=mr),a===Yl){a="@json";try{o["@value"]=JSON.parse(o["@value"])}catch(i){throw new Zr("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:o["@value"],cause:i})}}if(t){if(a===ro)o["@value"]==="true"?o["@value"]=!0:o["@value"]==="false"&&(o["@value"]=!1);else if(on.isNumeric(o["@value"]))if(a===oo){const i=parseInt(o["@value"],10);i.toFixed(0)===o["@value"]&&(o["@value"]=i)}else a===io&&(o["@value"]=parseFloat(o["@value"]));[ro,oo,io,mr].includes(a)||(o["@type"]=a)}else if(n==="i18n-datatype"&&a.startsWith("https://www.w3.org/ns/i18n#")){const[,i,l]=a.split(/[#_]/);i.length>0&&(o["@language"]=i,i.match(eo)||r.eventHandler&&no({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:i}},options:r})),o["@direction"]=l}else a!==mr&&(o["@type"]=a)}return o}const{createNodeMap:ec}=Gn,{isKeyword:tc}=Tt,ao=it,nc=Bs,so=ke,nn=Ae,rc=$e,{handleEvent:It}=gn,{RDF_FIRST:ic,RDF_REST:oc,RDF_NIL:ac,RDF_TYPE:sc,RDF_JSON_LITERAL:lc,RDF_LANGSTRING:cc,XSD_BOOLEAN:dc,XSD_DOUBLE:lo,XSD_INTEGER:uc,XSD_STRING:fc}=bi,{isAbsolute:Wn}=ht,xa={};var hc=xa;xa.toRDF=(e,t)=>{const n=new rc.IdentifierIssuer("_:b"),r={"@default":{}};ec(e,r,"@default",n);const o=[],a=Object.keys(r).sort();for(const i of a){let l;if(i==="@default")l={termType:"DefaultGraph",value:""};else if(Wn(i))i.startsWith("_:")?l={termType:"BlankNode"}:l={termType:"NamedNode"},l.value=i;else{t.eventHandler&&It({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:i}},options:t});continue}pc(o,r[i],l,n,t)}return o};function pc(e,t,n,r,o){const a=Object.keys(t).sort();for(const i of a){const l=t[i],f=Object.keys(l).sort();for(let c of f){const p=l[c];if(c==="@type")c=sc;else if(tc(c))continue;for(const g of p){const d={termType:i.startsWith("_:")?"BlankNode":"NamedNode",value:i};if(!Wn(i)){o.eventHandler&&It({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:i}},options:o});continue}const s={termType:c.startsWith("_:")?"BlankNode":"NamedNode",value:c};if(!Wn(c)){o.eventHandler&&It({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:c}},options:o});continue}if(s.termType==="BlankNode"&&!o.produceGeneralizedRdf){o.eventHandler&&It({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:r.getOldIds().find(y=>r.getId(y)===c)}},options:o});continue}const u=ei(g,r,e,n,o.rdfDirection,o);u&&e.push({subject:d,predicate:s,object:u,graph:n})}}}}function gc(e,t,n,r,o,a){const i={termType:"NamedNode",value:ic},l={termType:"NamedNode",value:oc},f={termType:"NamedNode",value:ac},c=e.pop(),p=c?{termType:"BlankNode",value:t.getId()}:f;let g=p;for(const d of e){const s=ei(d,t,n,r,o,a),u={termType:"BlankNode",value:t.getId()};n.push({subject:g,predicate:i,object:s,graph:r}),n.push({subject:g,predicate:l,object:u,graph:r}),g=u}if(c){const d=ei(c,t,n,r,o,a);n.push({subject:g,predicate:i,object:d,graph:r}),n.push({subject:g,predicate:l,object:f,graph:r})}return p}function ei(e,t,n,r,o,a){const i={};if(ao.isValue(e)){i.termType="Literal",i.value=void 0,i.datatype={termType:"NamedNode"};let l=e["@value"];const f=e["@type"]||null;if(f==="@json")i.value=nc(l),i.datatype.value=lc;else if(nn.isBoolean(l))i.value=l.toString(),i.datatype.value=f||dc;else if(nn.isDouble(l)||f===lo)nn.isDouble(l)||(l=parseFloat(l)),i.value=l.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),i.datatype.value=f||lo;else if(nn.isNumber(l))i.value=l.toFixed(0),i.datatype.value=f||uc;else if("@direction"in e&&o==="i18n-datatype"){const c=(e["@language"]||"").toLowerCase(),p=e["@direction"],g=`https://www.w3.org/ns/i18n#${c}_${p}`;i.datatype.value=g,i.value=l}else{if("@direction"in e&&o==="compound-literal")throw new so("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:o});if("@direction"in e&&o)throw new so("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:o});"@language"in e?("@direction"in e&&!o&&a.eventHandler&&It({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:i.value}},options:a}),i.value=l,i.datatype.value=f||cc,i.language=e["@language"]):("@direction"in e&&!o&&a.eventHandler&&It({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:i.value}},options:a}),i.value=l,i.datatype.value=f||fc)}}else if(ao.isList(e)){const l=gc(e["@list"],t,n,r,o,a);i.termType=l.termType,i.value=l.value}else{const l=nn.isObject(e)?e["@id"]:e;i.termType=l.startsWith("_:")?"BlankNode":"NamedNode",i.value=l}return i.termType==="NamedNode"&&!Wn(i.value)?(a.eventHandler&&It({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:i.value}},options:a}),null):i}const{isKeyword:ti}=Tt,De=it,q=Ae,de=$e,co=ht,un=ke,{createNodeMap:yc,mergeNodeMapGraphs:bc}=Gn,Le={};var wc=Le;Le.frameMergedOrDefault=(e,t,n)=>{const r={options:n,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},o=new de.IdentifierIssuer("_:b");yc(e,r.graphMap,"@default",o),n.merged&&(r.graphMap["@merged"]=bc(r.graphMap),r.graph="@merged"),r.subjects=r.graphMap[r.graph];const a=[];Le.frame(r,Object.keys(r.subjects).sort(),t,a),n.pruneBlankNodeIdentifiers&&(n.bnodesToClear=Object.keys(r.bnodeMap).filter(i=>r.bnodeMap[i].length===1));// remove @preserve from results -return n.link={},kn(a,n)};Le.frame=(e,t,n,r,o=null)=>{Na(n),n=n[0];const a=e.options,i={embed:mn(n,a,"embed"),explicit:mn(n,a,"explicit"),requireAll:mn(n,a,"requireAll")};e.link.hasOwnProperty(e.graph)||(e.link[e.graph]={});const l=e.link[e.graph],f=_c(e,t,n,i),c=Object.keys(f).sort();for(const p of c){const g=f[p];if(o===null?e.uniqueEmbeds={[e.graph]:{}}:e.uniqueEmbeds[e.graph]=e.uniqueEmbeds[e.graph]||{},i.embed==="@link"&&p in l){bt(r,o,l[p]);continue}const d={"@id":p};if(p.indexOf("_:")===0&&de.addValue(e.bnodeMap,p,d,{propertyIsArray:!0}),l[p]=d,(i.embed==="@first"||i.embed==="@last")&&e.is11)throw new un("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:n});if(!(!e.embedded&&e.uniqueEmbeds[e.graph].hasOwnProperty(p))){if(e.embedded&&(i.embed==="@never"||vc(g,e.graph,e.subjectStack))){bt(r,o,d);continue}if(e.embedded&&(i.embed=="@first"||i.embed=="@once")&&e.uniqueEmbeds[e.graph].hasOwnProperty(p)){bt(r,o,d);continue}if(i.embed==="@last"&&p in e.uniqueEmbeds[e.graph]&&mc(e,p),e.uniqueEmbeds[e.graph][p]={parent:r,property:o},e.subjectStack.push({subject:g,graph:e.graph}),p in e.graphMap){let s=!1,u=null;"@graph"in n?(u=n["@graph"][0],s=!(p==="@merged"||p==="@default"),q.isObject(u)||(u={})):(s=e.graph!=="@merged",u={}),s&&Le.frame({...e,graph:p,embedded:!1},Object.keys(e.graphMap[p]).sort(),[u],d,"@graph")}"@included"in n&&Le.frame({...e,embedded:!1},t,n["@included"],d,"@included");for(const s of Object.keys(g).sort()){if(ti(s)){if(d[s]=de.clone(g[s]),s==="@type")for(const u of g["@type"])u.indexOf("_:")===0&&de.addValue(e.bnodeMap,u,d,{propertyIsArray:!0});continue}if(!(i.explicit&&!(s in n)))for(const u of g[s]){const y=s in n?n[s]:uo(i);if(De.isList(u)){const w=n[s]&&n[s][0]&&n[s][0]["@list"]?n[s][0]["@list"]:uo(i),v={"@list":[]};bt(d,s,v);const E=u["@list"];for(const S of E)De.isSubjectReference(S)?Le.frame({...e,embedded:!0},[S["@id"]],w,v,"@list"):bt(v,"@list",de.clone(S))}else De.isSubjectReference(u)?Le.frame({...e,embedded:!0},[u["@id"]],y,d,s):ni(y[0],u)&&bt(d,s,de.clone(u))}}for(const s of Object.keys(n).sort()){if(s==="@type"){if(!q.isObject(n[s][0])||!("@default"in n[s][0]))continue}else if(ti(s))continue;const u=n[s][0]||{};if(!mn(u,a,"omitDefault")&&!(s in d)){let w="@null";"@default"in u&&(w=de.clone(u["@default"])),q.isArray(w)||(w=[w]),d[s]=[{"@preserve":w}]}}for(const s of Object.keys(n["@reverse"]||{}).sort()){const u=n["@reverse"][s];for(const y of Object.keys(e.subjects))de.getValues(e.subjects[y],s).some(v=>v["@id"]===p)&&(d["@reverse"]=d["@reverse"]||{},de.addValue(d["@reverse"],s,[],{propertyIsArray:!0}),Le.frame({...e,embedded:!0},[y],u,d["@reverse"][s],o))}bt(r,o,d),e.subjectStack.pop()}}};Le.cleanupNull=(e,t)=>{if(q.isArray(e))return e.map(r=>Le.cleanupNull(r,t)).filter(r=>r);if(e==="@null")return null;if(q.isObject(e)){if("@id"in e){const n=e["@id"];if(t.link.hasOwnProperty(n)){const r=t.link[n].indexOf(e);if(r!==-1)return t.link[n][r];t.link[n].push(e)}else t.link[n]=[e]}for(const n in e)e[n]=Le.cleanupNull(e[n],t)}return e};function uo(e){const t={};for(const n in e)e[n]!==void 0&&(t["@"+n]=[e[n]]);return[t]}function vc(e,t,n){for(let r=n.length-1;r>=0;--r){const o=n[r];if(o.graph===t&&o.subject["@id"]===e["@id"])return!0}return!1}function mn(e,t,n){const r="@"+n;let o=r in e?e[r][0]:t[n];if(n==="embed"){if(o===!0)o="@once";else if(o===!1)o="@never";else if(o!=="@always"&&o!=="@never"&&o!=="@link"&&o!=="@first"&&o!=="@last"&&o!=="@once")throw new un("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:e})}return o}function Na(e){if(!q.isArray(e)||e.length!==1||!q.isObject(e[0]))throw new un("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:e});if("@id"in e[0]){for(const t of de.asArray(e[0]["@id"]))if(!(q.isObject(t)||co.isAbsolute(t))||q.isString(t)&&t.indexOf("_:")===0)throw new un("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:e})}if("@type"in e[0]){for(const t of de.asArray(e[0]["@type"]))if(!(q.isObject(t)||co.isAbsolute(t)||t==="@json")||q.isString(t)&&t.indexOf("_:")===0)throw new un("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:e})}}function _c(e,t,n,r){const o={};for(const a of t){const i=e.graphMap[e.graph][a];Da(e,i,n,r)&&(o[a]=i)}return o}function Da(e,t,n,r){let o=!0,a=!1;for(const i in n){let l=!1;const f=de.getValues(t,i),c=de.getValues(n,i).length===0;if(i==="@id"){if(q.isEmptyObject(n["@id"][0]||{})?l=!0:n["@id"].length>=0&&(l=n["@id"].includes(f[0])),!r.requireAll)return l}else if(i==="@type"){if(o=!1,c){if(f.length>0)return!1;l=!0}else if(n["@type"].length===1&&q.isEmptyObject(n["@type"][0]))l=f.length>0;else for(const p of n["@type"])q.isObject(p)&&"@default"in p?l=!0:l=l||f.some(g=>g===p);if(!r.requireAll)return l}else{if(ti(i))continue;{const p=de.getValues(n,i)[0];let g=!1;if(p&&(Na([p]),g="@default"in p),o=!1,f.length===0&&g)continue;if(f.length>0&&c)return!1;if(p===void 0){if(f.length>0)return!1;l=!0}else if(De.isList(p)){const d=p["@list"][0];if(De.isList(f[0])){const s=f[0]["@list"];De.isValue(d)?l=s.some(u=>ni(d,u)):(De.isSubject(d)||De.isSubjectReference(d))&&(l=s.some(u=>fo(e,d,u,r)))}}else De.isValue(p)?l=f.some(d=>ni(p,d)):De.isSubjectReference(p)?l=f.some(d=>fo(e,p,d,r)):q.isObject(p)?l=f.length>0:l=!1}}if(!l&&r.requireAll)return!1;a=a||l}return o||a}function mc(e,t){const n=e.uniqueEmbeds[e.graph],r=n[t],o=r.parent,a=r.property,i={"@id":t};if(q.isArray(o)){for(let f=0;f{const c=Object.keys(n);for(const p of c)p in n&&q.isObject(n[p].parent)&&n[p].parent["@id"]===f&&(delete n[p],l(p))};l(t)}/** - * Removes the @preserve keywords from expanded result of framing. - * - * @param input the framed, framed output. - * @param options the framing options used. - * - * @return the resulting output. - */function kn(e,t){if(q.isArray(e))return e.map(n=>kn(n,t));if(q.isObject(e)){// remove @preserve -if("@preserve"in e)return e["@preserve"][0];if(De.isValue(e))return e;if(De.isList(e))return e["@list"]=kn(e["@list"],t),e;if("@id"in e){const n=e["@id"];if(t.link.hasOwnProperty(n)){const r=t.link[n].indexOf(e);if(r!==-1)return t.link[n][r];t.link[n].push(e)}else t.link[n]=[e]}for(const n in e){if(n==="@id"&&t.bnodesToClear.includes(e[n])){delete e["@id"];continue}e[n]=kn(e[n],t)}}return e}function bt(e,t,n){q.isObject(e)?de.addValue(e,t,n,{propertyIsArray:!0}):e.push(n)}function fo(e,t,n,r){if(!("@id"in n))return!1;const o=e.subjects[n["@id"]];return o&&Da(e,o,t,r)}function ni(e,t){const n=t["@value"],r=t["@type"],o=t["@language"],a=e["@value"]?q.isArray(e["@value"])?e["@value"]:[e["@value"]]:[],i=e["@type"]?q.isArray(e["@type"])?e["@type"]:[e["@type"]]:[],l=e["@language"]?q.isArray(e["@language"])?e["@language"]:[e["@language"]]:[];return a.length===0&&i.length===0&&l.length===0?!0:!(!(a.includes(n)||q.isEmptyObject(a[0]))||!(!r&&i.length===0||i.includes(r)||r&&q.isEmptyObject(i[0]))||!(!o&&l.length===0||l.includes(o)||o&&q.isEmptyObject(l[0])))}const _i=ke,{isArray:st,isObject:ft,isString:Oa,isUndefined:Sr}=Ae,{isList:ri,isValue:et,isGraph:La,isSimpleGraph:ho,isSubjectReference:Er}=it,{expandIri:Ta,getContextValue:be,isKeyword:ja,process:Rr,processingMode:Sc}=Tt,{removeBase:po,prependBase:Ec}=ht,{REGEX_KEYWORD:Rc,addValue:Se,asArray:Sn,compareShortestLeast:Ic}=$e,W={};var Ac=W;W.compact=async({activeCtx:e,activeProperty:t=null,element:n,options:r={}})=>{if(st(n)){let a=[];for(let i=0;i1&&(c=Array.from(c).sort());const p=e;for(const d of c){const s=W.compactIri({activeCtx:p,iri:d,relativeTo:{vocab:!0}}),u=be(l,s,"@context");Sr(u)||(e=await Rr({activeCtx:e,localCtx:u,options:r,propagate:!1}))}const g=Object.keys(n).sort();for(const d of g){const s=n[d];if(d==="@id"){let u=Sn(s).map(w=>W.compactIri({activeCtx:e,iri:w,relativeTo:{vocab:!1},base:r.base}));u.length===1&&(u=u[0]);const y=W.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}});i[y]=u;continue}if(d==="@type"){let u=Sn(s).map(S=>W.compactIri({activeCtx:l,iri:S,relativeTo:{vocab:!0}}));u.length===1&&(u=u[0]);const y=W.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}}),E=(be(e,y,"@container")||[]).includes("@set")&&Sc(e,1.1)||st(u)&&s.length===0;Se(i,y,u,{propertyIsArray:E});continue}if(d==="@reverse"){const u=await W.compact({activeCtx:e,activeProperty:"@reverse",element:s,options:r});for(const y in u)if(e.mappings.has(y)&&e.mappings.get(y).reverse){const w=u[y],E=(be(e,y,"@container")||[]).includes("@set")||!r.compactArrays;Se(i,y,w,{propertyIsArray:E}),delete u[y]}if(Object.keys(u).length>0){const y=W.compactIri({activeCtx:e,iri:d,relativeTo:{vocab:!0}});Se(i,y,u)}continue}if(d==="@preserve"){const u=await W.compact({activeCtx:e,activeProperty:t,element:s,options:r});st(u)&&u.length===0||Se(i,d,u);continue}if(d==="@index"){if((be(e,t,"@container")||[]).includes("@index"))continue;const y=W.compactIri({activeCtx:e,iri:d,relativeTo:{vocab:!0}});Se(i,y,s);continue}if(d!=="@graph"&&d!=="@list"&&d!=="@included"&&ja(d)){const u=W.compactIri({activeCtx:e,iri:d,relativeTo:{vocab:!0}});Se(i,u,s);continue}if(!st(s))throw new _i("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(s.length===0){const u=W.compactIri({activeCtx:e,iri:d,value:s,relativeTo:{vocab:!0},reverse:a}),y=e.mappings.has(u)?e.mappings.get(u)["@nest"]:null;let w=i;y&&(go(e,y,r),ft(i[y])||(i[y]={}),w=i[y]),Se(w,u,s,{propertyIsArray:!0})}for(const u of s){const y=W.compactIri({activeCtx:e,iri:d,value:u,relativeTo:{vocab:!0},reverse:a}),w=e.mappings.has(y)?e.mappings.get(y)["@nest"]:null;let v=i;w&&(go(e,w,r),ft(i[w])||(i[w]={}),v=i[w]);const E=be(e,y,"@container")||[],S=La(u),I=ri(u);let x;I?x=u["@list"]:S&&(x=u["@graph"]);let R=await W.compact({activeCtx:e,activeProperty:y,element:I||S?x:u,options:r});if(I)if(st(R)||(R=[R]),!E.includes("@list"))R={[W.compactIri({activeCtx:e,iri:"@list",relativeTo:{vocab:!0}})]:R},"@index"in u&&(R[W.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=u["@index"]);else{Se(v,y,R,{valueIsArray:!0,allowDuplicate:!0});continue}if(S)if(E.includes("@graph")&&(E.includes("@id")||E.includes("@index")&&ho(u))){let V;v.hasOwnProperty(y)?V=v[y]:v[y]=V={};const k=(E.includes("@id")?u["@id"]:u["@index"])||W.compactIri({activeCtx:e,iri:"@none",relativeTo:{vocab:!0}});Se(V,k,R,{propertyIsArray:!r.compactArrays||E.includes("@set")})}else E.includes("@graph")&&ho(u)?(st(R)&&R.length>1&&(R={"@included":R}),Se(v,y,R,{propertyIsArray:!r.compactArrays||E.includes("@set")})):(st(R)&&R.length===1&&r.compactArrays&&(R=R[0]),R={[W.compactIri({activeCtx:e,iri:"@graph",relativeTo:{vocab:!0}})]:R},"@id"in u&&(R[W.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]=u["@id"]),"@index"in u&&(R[W.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=u["@index"]),Se(v,y,R,{propertyIsArray:!r.compactArrays||E.includes("@set")}));else if(E.includes("@language")||E.includes("@index")||E.includes("@id")||E.includes("@type")){let V;v.hasOwnProperty(y)?V=v[y]:v[y]=V={};let k;if(E.includes("@language"))et(R)&&(R=R["@value"]),k=u["@language"];else if(E.includes("@index")){const F=be(e,y,"@index")||"@index",ne=W.compactIri({activeCtx:e,iri:F,relativeTo:{vocab:!0}});if(F==="@index")k=u["@index"],delete R[ne];else{let se;if([k,...se]=Sn(R[F]||[]),!Oa(k))k=null;else switch(se.length){case 0:delete R[F];break;case 1:R[F]=se[0];break;default:R[F]=se;break}}}else if(E.includes("@id")){const F=W.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}});k=R[F],delete R[F]}else if(E.includes("@type")){const F=W.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}});let ne;switch([k,...ne]=Sn(R[F]||[]),ne.length){case 0:delete R[F];break;case 1:R[F]=ne[0];break;default:R[F]=ne;break}Object.keys(R).length===1&&"@id"in u&&(R=await W.compact({activeCtx:e,activeProperty:y,element:{"@id":u["@id"]},options:r}))}k||(k=W.compactIri({activeCtx:e,iri:"@none",relativeTo:{vocab:!0}})),Se(V,k,R,{propertyIsArray:E.includes("@set")})}else{const V=!r.compactArrays||E.includes("@set")||E.includes("@list")||st(R)&&R.length===0||d==="@list"||d==="@graph";Se(v,y,R,{propertyIsArray:V})}}}return i}return n};W.compactIri=({activeCtx:e,iri:t,value:n=null,relativeTo:r={vocab:!1},reverse:o=!1,base:a=null})=>{if(t===null)return t;e.isPropertyTermScoped&&e.previousContext&&(e=e.previousContext);const i=e.getInverse();if(ja(t)&&t in i&&"@none"in i[t]&&"@type"in i[t]["@none"]&&"@none"in i[t]["@none"]["@type"])return i[t]["@none"]["@type"]["@none"];if(r.vocab&&t in i){const g=e["@language"]||"@none",d=[];ft(n)&&"@index"in n&&!("@graph"in n)&&d.push("@index","@index@set"),ft(n)&&"@preserve"in n&&(n=n["@preserve"][0]),La(n)?("@index"in n&&d.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in n&&d.push("@graph@id","@graph@id@set"),d.push("@graph","@graph@set","@set"),"@index"in n||d.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in n||d.push("@graph@id","@graph@id@set")):ft(n)&&!et(n)&&d.push("@id","@id@set","@type","@set@type");let s="@language",u="@null";if(o)s="@type",u="@reverse",d.push("@set");else if(ri(n)){"@index"in n||d.push("@list");const w=n["@list"];if(w.length===0)s="@any",u="@none";else{let v=w.length===0?g:null,E=null;for(let S=0;S=0;--g){const d=f[g],s=d.terms;for(const u of s){const y=u+":"+t.substr(d.iri.length);e.mappings.get(u)._prefix&&(!e.mappings.has(y)||n===null&&e.mappings.get(y)["@id"]===t)&&(l===null||Ic(y,l)<0)&&(l=y)}}if(l!==null)return l;for(const[g,d]of e.mappings)if(d&&d._prefix&&t.startsWith(g+":"))throw new _i(`Absolute IRI "${t}" confused with prefix "${g}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:e});if(!r.vocab)if("@base"in e)if(e["@base"]){const g=po(Ec(a,e["@base"]),t);return Rc.test(g)?`./${g}`:g}else return t;else return po(a,t);return t};W.compactValue=({activeCtx:e,activeProperty:t,value:n,options:r})=>{if(et(n)){const l=be(e,t,"@type"),f=be(e,t,"@language"),c=be(e,t,"@direction"),p=be(e,t,"@container")||[],g="@index"in n&&!p.includes("@index");if(!g&&l!=="@none"&&(n["@type"]===l||"@language"in n&&n["@language"]===f&&"@direction"in n&&n["@direction"]===c||"@language"in n&&n["@language"]===f||"@direction"in n&&n["@direction"]===c))return n["@value"];const d=Object.keys(n).length,s=d===1||d===2&&"@index"in n&&!g,u="@language"in e,y=Oa(n["@value"]),w=e.mappings.has(t)&&e.mappings.get(t)["@language"]===null;if(s&&l!=="@none"&&(!u||!y||w))return n["@value"];const v={};return g&&(v[W.compactIri({activeCtx:e,iri:"@index",relativeTo:{vocab:!0}})]=n["@index"]),"@type"in n?v[W.compactIri({activeCtx:e,iri:"@type",relativeTo:{vocab:!0}})]=W.compactIri({activeCtx:e,iri:n["@type"],relativeTo:{vocab:!0}}):"@language"in n&&(v[W.compactIri({activeCtx:e,iri:"@language",relativeTo:{vocab:!0}})]=n["@language"]),"@direction"in n&&(v[W.compactIri({activeCtx:e,iri:"@direction",relativeTo:{vocab:!0}})]=n["@direction"]),v[W.compactIri({activeCtx:e,iri:"@value",relativeTo:{vocab:!0}})]=n["@value"],v}const o=Ta(e,t,{vocab:!0},r),a=be(e,t,"@type"),i=W.compactIri({activeCtx:e,iri:n["@id"],relativeTo:{vocab:a==="@vocab"},base:r.base});return a==="@id"||a==="@vocab"||o==="@graph"?i:{[W.compactIri({activeCtx:e,iri:"@id",relativeTo:{vocab:!0}})]:i}};function xc(e,t,n,r,o,a){a===null&&(a="@null");const i=[];if((a==="@id"||a==="@reverse")&&ft(n)&&"@id"in n){a==="@reverse"&&i.push("@reverse");const f=W.compactIri({activeCtx:e,iri:n["@id"],relativeTo:{vocab:!0}});e.mappings.has(f)&&e.mappings.get(f)&&e.mappings.get(f)["@id"]===n["@id"]?i.push.apply(i,["@vocab","@id"]):i.push.apply(i,["@id","@vocab"])}else{i.push(a);const f=i.find(c=>c.includes("_"));f&&i.push(f.replace(/^[^_]+_/,"_"))}i.push("@none");const l=e.inverse[t];for(const f of r){if(!(f in l))continue;const c=l[f][o];for(const p of i)if(p in c)return c[p]}return null}function go(e,t,n){if(Ta(e,t,{vocab:!0},n)!=="@nest")throw new _i("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}var Ir,yo;function Nc(){return yo||(yo=1,Ir=e=>{class t{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(t,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(t.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:t}),t.compact=function(n,r){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):e.compact(n,r)},t.expand=function(n){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):e.expand(n)},t.flatten=function(n){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):e.flatten(n)},t}),Ir}/** - * A JavaScript implementation of the JSON-LD API. - * - * @author Dave Longley - * - * @license BSD 3-Clause License - * Copyright (c) 2011-2022 Digital Bazaar, Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * Neither the name of the Digital Bazaar, Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS - * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A - * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED - * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */const bo=yi,wo=gl,lt=$e,Ye=Nl,Ar=lt.IdentifierIssuer,Ue=ke,Dc=ga,En=Ol,{expand:Oc}=Bl,{flatten:Lc}=Xl,{fromRDF:Tc}=Ql,{toRDF:jc}=hc,{frameMergedOrDefault:kc,cleanupNull:$c}=wc,{isArray:Ut,isObject:wt,isString:He}=Ae,{isSubjectReference:Mc}=it,{expandIri:Pc,getInitialContext:Rn,process:vo,processingMode:xr}=Tt,{compact:Fc,compactIri:Wc}=Ac,{createNodeMap:Jc,createMergedNodeMap:Uc,mergeNodeMaps:Hc}=Gn,{logEventHandler:Bc,logWarningEventHandler:Vc,safeEventHandler:Gc,setDefaultEventHandler:qc,setupEventHandler:Cc,strictEventHandler:Xc,unhandledEventHandler:zc}=gn,ka=function(e){const t={},r=new Dc({max:100});e.compact=async function(a,i,l){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(i===null)throw new Ue("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(a===null)return null;l=o(l,{base:He(a)?a:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new Ar("_:b"),contextResolver:new Ye({sharedCache:r})}),l.link&&(l.skipExpansion=!0),l.compactToRelative||delete l.base;let f;l.skipExpansion?f=a:f=await e.expand(a,l);const c=await e.processContext(Rn(l),i,l);let p=await Fc({activeCtx:c,element:f,options:l});l.compactArrays&&!l.graph&&Ut(p)?p.length===1?p=p[0]:p.length===0&&(p={}):l.graph&&wt(p)&&(p=[p]),wt(i)&&"@context"in i&&(i=i["@context"]),i=lt.clone(i),Ut(i)||(i=[i]);const g=i;i=[];for(let s=0;s0)&&i.push(g[s]);const d=i.length>0;if(i.length===1&&(i=i[0]),Ut(p)){const s=Wc({activeCtx:c,iri:"@graph",relativeTo:{vocab:!0}}),u=p;p={},d&&(p["@context"]=i),p[s]=u}else if(wt(p)&&d){const s=p;p={"@context":i};for(const u in s)p[u]=s[u]}return p},e.expand=async function(a,i){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");i=o(i,{keepFreeFloatingNodes:!1,contextResolver:new Ye({sharedCache:r})});const l={},f=[];if("expandContext"in i){const d=lt.clone(i.expandContext);wt(d)&&"@context"in d?l.expandContext=d:l.expandContext={"@context":d},f.push(l.expandContext)}let c;if(!He(a))l.input=lt.clone(a);else{const d=await e.get(a,i);c=d.documentUrl,l.input=d.document,d.contextUrl&&(l.remoteContext={"@context":d.contextUrl},f.push(l.remoteContext))}"base"in i||(i.base=c||"");let p=Rn(i);for(const d of f)p=await vo({activeCtx:p,localCtx:d,options:i});let g=await Oc({activeCtx:p,element:l.input,options:i});return wt(g)&&"@graph"in g&&Object.keys(g).length===1?g=g["@graph"]:g===null&&(g=[]),Ut(g)||(g=[g]),g},e.flatten=async function(a,i,l){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");typeof i=="function"?i=null:i=i||null,l=o(l,{base:He(a)?a:"",contextResolver:new Ye({sharedCache:r})});const f=await e.expand(a,l),c=Lc(f);return i===null?c:(l.graph=!0,l.skipExpansion=!0,await e.compact(c,i,l))},e.frame=async function(a,i,l){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(l=o(l,{base:He(a)?a:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new Ye({sharedCache:r})}),He(i)){const w=await e.get(i,l);if(i=w.document,w.contextUrl){let v=i["@context"];v?Ut(v)?v.push(w.contextUrl):v=[v,w.contextUrl]:v=w.contextUrl,i["@context"]=v}}const f=i?i["@context"]||{}:{},c=await e.processContext(Rn(l),f,l);l.hasOwnProperty("omitGraph")||(l.omitGraph=xr(c,1.1)),l.hasOwnProperty("pruneBlankNodeIdentifiers")||(l.pruneBlankNodeIdentifiers=xr(c,1.1));const p=await e.expand(a,l),g={...l};g.isFrame=!0,g.keepFreeFloatingNodes=!0;const d=await e.expand(i,g),s=Object.keys(i).map(w=>Pc(c,w,{vocab:!0}));g.merged=!s.includes("@graph"),g.is11=xr(c,1.1);const u=kc(p,d,g);g.graph=!l.omitGraph,g.skipExpansion=!0,g.link={},g.framing=!0;let y=await e.compact(u,f,g);return g.link={},y=$c(y,g),y},e.link=async function(a,i,l){const f={};return i&&(f["@context"]=i),f["@embed"]="@link",e.frame(a,f,l)},e.normalize=e.canonize=async function(a,i){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");if(i=o(i,{base:He(a)?a:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new Ye({sharedCache:r})}),"inputFormat"in i){if(i.inputFormat!=="application/n-quads"&&i.inputFormat!=="application/nquads")throw new Ue("Unknown canonicalization input format.","jsonld.CanonizeError");const c=En.parse(a);return bo.canonize(c,i)}const l={...i};delete l.format,l.produceGeneralizedRdf=!1;const f=await e.toRDF(a,l);return bo.canonize(f,i)},e.fromRDF=async function(a,i){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");i=o(i,{format:He(a)?"application/n-quads":void 0});const{format:l}=i;let{rdfParser:f}=i;if(l){if(f=f||t[l],!f)throw new Ue("Unknown input format.","jsonld.UnknownFormat",{format:l})}else f=()=>a;const c=await f(a);return Tc(c,i)},e.toRDF=async function(a,i){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");i=o(i,{base:He(a)?a:"",skipExpansion:!1,contextResolver:new Ye({sharedCache:r})});let l;i.skipExpansion?l=a:l=await e.expand(a,i);const f=jc(l,i);if(i.format){if(i.format==="application/n-quads"||i.format==="application/nquads")return En.serialize(f);throw new Ue("Unknown output format.","jsonld.UnknownFormat",{format:i.format})}return f},e.createNodeMap=async function(a,i){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");i=o(i,{base:He(a)?a:"",contextResolver:new Ye({sharedCache:r})});const l=await e.expand(a,i);return Uc(l,i)},e.merge=async function(a,i,l){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!Ut(a))throw new TypeError('Could not merge, "docs" must be an array.');typeof i=="function"?i=null:i=i||null,l=o(l,{contextResolver:new Ye({sharedCache:r})});const f=await Promise.all(a.map(w=>{const v={...l};return e.expand(w,v)}));let c=!0;"mergeNodes"in l&&(c=l.mergeNodes);const p=l.issuer||new Ar("_:b"),g={"@default":{}};for(let w=0;we._documentLoader,set:a=>e._documentLoader=a}),e.documentLoader=async a=>{throw new Ue("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:a})},e.get=async function(a,i){let l;typeof i.documentLoader=="function"?l=i.documentLoader:l=e.documentLoader;const f=await l(a);try{if(!f.document)throw new Ue("No remote document found at the given URL.","jsonld.NullRemoteDocument");He(f.document)&&(f.document=JSON.parse(f.document))}catch(c){throw new Ue("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:c,remoteDoc:f})}return f},e.processContext=async function(a,i,l){return l=o(l,{base:"",contextResolver:new Ye({sharedCache:r})}),i===null?Rn(l):(i=lt.clone(i),wt(i)&&"@context"in i||(i={"@context":i}),vo({activeCtx:a,localCtx:i,options:l}))},e.getContextValue=Tt.getContextValue,e.documentLoaders={},e.useDocumentLoader=function(a){if(!(a in e.documentLoaders))throw new Ue('Unknown document loader type: "'+a+'"',"jsonld.UnknownDocumentLoader",{type:a});e.documentLoader=e.documentLoaders[a].apply(e,Array.prototype.slice.call(arguments,1))},e.registerRDFParser=function(a,i){t[a]=i},e.unregisterRDFParser=function(a){delete t[a]},e.registerRDFParser("application/n-quads",En.parse),e.registerRDFParser("application/nquads",En.parse),e.url=ht,e.logEventHandler=Bc,e.logWarningEventHandler=Vc,e.safeEventHandler=Gc,e.setDefaultEventHandler=qc,e.strictEventHandler=Xc,e.unhandledEventHandler=zc,e.util=lt,Object.assign(e,lt),e.promises=e,e.RequestQueue=ha(),e.JsonLdProcessor=Nc()(e),wo.setupGlobals(e),wo.setupDocumentLoaders(e);function o(a,{documentLoader:i=e.documentLoader,...l}){if(a&&"compactionMap"in a)throw new Ue('"compactionMap" not supported.',"jsonld.OptionsError");if(a&&"expansionMap"in a)throw new Ue('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:i},l,a,{eventHandler:Cc({options:a})})}return e},mi=function(){return ka(function(){return mi()})};ka(mi);var Kc=mi;const In=Us(Kc);var $a={exports:{}},Nr={exports:{}},te={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},Ma={exports:{}};(function(e){const t=Ot,{kResistStopPropagation:n,SymbolDispose:r}=te,o=globalThis.AbortSignal||hn().AbortSignal,a=globalThis.AbortController||hn().AbortController,i=Object.getPrototypeOf(async function(){}).constructor,l=globalThis.Blob||t.Blob,f=typeof l<"u"?function(s){return s instanceof l}:function(s){return!1},c=(d,s)=>{if(d!==void 0&&(d===null||typeof d!="object"||!("aborted"in d)))throw new ERR_INVALID_ARG_TYPE(s,"AbortSignal",d)},p=(d,s)=>{if(typeof d!="function")throw new ERR_INVALID_ARG_TYPE(s,"Function",d)};class g extends Error{constructor(s){if(!Array.isArray(s))throw new TypeError(`Expected input to be an Array, got ${typeof s}`);let u="";for(let y=0;y{d=y,s=w}),resolve:d,reject:s}},promisify(d){return new Promise((s,u)=>{d((y,...w)=>y?u(y):s(...w))})},debuglog(){return function(){}},format(d,...s){return d.replace(/%([sdifj])/g,function(...[u,y]){const w=s.shift();return y==="f"?w.toFixed(6):y==="j"?JSON.stringify(w):y==="s"&&typeof w=="object"?`${w.constructor!==Object?w.constructor.name:""} {}`.trim():w.toString()})},inspect(d){switch(typeof d){case"string":if(d.includes("'"))if(d.includes('"')){if(!d.includes("`")&&!d.includes("${"))return`\`${d}\``}else return`"${d}"`;return`'${d}'`;case"number":return isNaN(d)?"NaN":Object.is(d,-0)?String(d):d;case"bigint":return`${String(d)}n`;case"boolean":case"undefined":return String(d);case"object":return"{}"}},types:{isAsyncFunction(d){return d instanceof i},isArrayBufferView(d){return ArrayBuffer.isView(d)}},isBlob:f,deprecate(d,s){return d},addAbortListener:Bn.addAbortListener||function(s,u){if(s===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",s);c(s,"signal"),p(u,"listener");let y;return s.aborted?queueMicrotask(()=>u()):(s.addEventListener("abort",u,{__proto__:null,once:!0,[n]:!0}),y=()=>{s.removeEventListener("abort",u)}),{__proto__:null,[r](){var w;(w=y)===null||w===void 0||w()}}},AbortSignalAny:o.any||function(s){if(s.length===1)return s[0];const u=new a,y=()=>u.abort();return s.forEach(w=>{c(w,"signals"),w.addEventListener("abort",y,{once:!0})}),u.signal.addEventListener("abort",()=>{s.forEach(w=>w.removeEventListener("abort",y))},{once:!0}),u.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Ma);var ve=Ma.exports,Si={};const{format:Yc,inspect:Jn,AggregateError:Qc}=ve,Zc=globalThis.AggregateError||Qc,ed=Symbol("kIsNodeError"),td=["string","function","number","object","Function","Object","boolean","bigint","symbol"],nd=/^([A-Z][a-z0-9]*)+$/,rd="__node_internal_",qn={};function At(e,t){if(!e)throw new qn.ERR_INTERNAL_ASSERTION(t)}function _o(e){let t="",n=e.length;const r=e[0]==="-"?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function id(e,t,n){if(typeof t=="function")return At(t.length<=n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${t.length}).`),t(...n);const r=(t.match(/%[dfijoOs]/g)||[]).length;return At(r===n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${r}).`),n.length===0?t:Yc(t,...n)}function ue(e,t,n){n||(n=Error);class r extends n{constructor(...a){super(id(e,t,a))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(r.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),r.prototype.code=e,r.prototype[ed]=!0,qn[e]=r}function mo(e){const t=rd+e.name;return Object.defineProperty(e,"name",{value:t}),e}function od(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const n=new Zc([t,e],t.message);return n.code=t.code,n}return e||t}let ad=class extends Error{constructor(t="The operation was aborted",n=void 0){if(n!==void 0&&typeof n!="object")throw new qn.ERR_INVALID_ARG_TYPE("options","Object",n);super(t,n),this.code="ABORT_ERR",this.name="AbortError"}};ue("ERR_ASSERTION","%s",Error);ue("ERR_INVALID_ARG_TYPE",(e,t,n)=>{At(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let r="The ";e.endsWith(" argument")?r+=`${e} `:r+=`"${e}" ${e.includes(".")?"property":"argument"} `,r+="must be ";const o=[],a=[],i=[];for(const f of t)At(typeof f=="string","All expected entries have to be of type string"),td.includes(f)?o.push(f.toLowerCase()):nd.test(f)?a.push(f):(At(f!=="object",'The value "object" should be written as "Object"'),i.push(f));if(a.length>0){const f=o.indexOf("object");f!==-1&&(o.splice(o,f,1),a.push("Object"))}if(o.length>0){switch(o.length){case 1:r+=`of type ${o[0]}`;break;case 2:r+=`one of type ${o[0]} or ${o[1]}`;break;default:{const f=o.pop();r+=`one of type ${o.join(", ")}, or ${f}`}}(a.length>0||i.length>0)&&(r+=" or ")}if(a.length>0){switch(a.length){case 1:r+=`an instance of ${a[0]}`;break;case 2:r+=`an instance of ${a[0]} or ${a[1]}`;break;default:{const f=a.pop();r+=`an instance of ${a.join(", ")}, or ${f}`}}i.length>0&&(r+=" or ")}switch(i.length){case 0:break;case 1:i[0].toLowerCase()!==i[0]&&(r+="an "),r+=`${i[0]}`;break;case 2:r+=`one of ${i[0]} or ${i[1]}`;break;default:{const f=i.pop();r+=`one of ${i.join(", ")}, or ${f}`}}if(n==null)r+=`. Received ${n}`;else if(typeof n=="function"&&n.name)r+=`. Received function ${n.name}`;else if(typeof n=="object"){var l;if((l=n.constructor)!==null&&l!==void 0&&l.name)r+=`. Received an instance of ${n.constructor.name}`;else{const f=Jn(n,{depth:-1});r+=`. Received ${f}`}}else{let f=Jn(n,{colors:!1});f.length>25&&(f=`${f.slice(0,25)}...`),r+=`. Received type ${typeof n} (${f})`}return r},TypeError);ue("ERR_INVALID_ARG_VALUE",(e,t,n="is invalid")=>{let r=Jn(t);return r.length>128&&(r=r.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${n}. Received ${r}`},TypeError);ue("ERR_INVALID_RETURN_VALUE",(e,t,n)=>{var r;const o=n!=null&&(r=n.constructor)!==null&&r!==void 0&&r.name?`instance of ${n.constructor.name}`:`type ${typeof n}`;return`Expected ${e} to be returned from the "${t}" function but got ${o}.`},TypeError);ue("ERR_MISSING_ARGS",(...e)=>{At(e.length>0,"At least one arg needs to be specified");let t;const n=e.length;switch(e=(Array.isArray(e)?e:[e]).map(r=>`"${r}"`).join(" or "),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}break}return`${t} must be specified`},TypeError);ue("ERR_OUT_OF_RANGE",(e,t,n)=>{At(t,'Missing "range" argument');let r;return Number.isInteger(n)&&Math.abs(n)>2**32?r=_o(String(n)):typeof n=="bigint"?(r=String(n),(n>2n**32n||n<-(2n**32n))&&(r=_o(r)),r+="n"):r=Jn(n),`The value of "${e}" is out of range. It must be ${t}. Received ${r}`},RangeError);ue("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);ue("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);ue("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);ue("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);ue("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);ue("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ue("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);ue("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);ue("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);ue("ERR_STREAM_WRITE_AFTER_END","write after end",Error);ue("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var me={AbortError:ad,aggregateTwoErrors:mo(od),hideStackFrames:mo,codes:qn};const{ArrayIsArray:Ei,ArrayPrototypeIncludes:Pa,ArrayPrototypeJoin:Fa,ArrayPrototypeMap:sd,NumberIsInteger:Ri,NumberIsNaN:ld,NumberMAX_SAFE_INTEGER:cd,NumberMIN_SAFE_INTEGER:dd,NumberParseInt:ud,ObjectPrototypeHasOwnProperty:fd,RegExpPrototypeExec:Wa,String:hd,StringPrototypeToUpperCase:pd,StringPrototypeTrim:gd}=te,{hideStackFrames:Me,codes:{ERR_SOCKET_BAD_PORT:yd,ERR_INVALID_ARG_TYPE:ye,ERR_INVALID_ARG_VALUE:Xt,ERR_OUT_OF_RANGE:Dt,ERR_UNKNOWN_SIGNAL:So}}=me,{normalizeEncoding:bd}=ve,{isAsyncFunction:wd,isArrayBufferView:vd}=ve.types,Eo={};function _d(e){return e===(e|0)}function md(e){return e===e>>>0}const Sd=/^[0-7]+$/,Ed="must be a 32-bit unsigned integer or an octal string";function Rd(e,t,n){if(typeof e>"u"&&(e=n),typeof e=="string"){if(Wa(Sd,e)===null)throw new Xt(t,e,Ed);e=ud(e,8)}return Ja(e,t),e}const Id=Me((e,t,n=dd,r=cd)=>{if(typeof e!="number")throw new ye(t,"number",e);if(!Ri(e))throw new Dt(t,"an integer",e);if(er)throw new Dt(t,`>= ${n} && <= ${r}`,e)}),Ad=Me((e,t,n=-2147483648,r=2147483647)=>{if(typeof e!="number")throw new ye(t,"number",e);if(!Ri(e))throw new Dt(t,"an integer",e);if(er)throw new Dt(t,`>= ${n} && <= ${r}`,e)}),Ja=Me((e,t,n=!1)=>{if(typeof e!="number")throw new ye(t,"number",e);if(!Ri(e))throw new Dt(t,"an integer",e);const r=n?1:0,o=4294967295;if(eo)throw new Dt(t,`>= ${r} && <= ${o}`,e)});function Ii(e,t){if(typeof e!="string")throw new ye(t,"string",e)}function xd(e,t,n=void 0,r){if(typeof e!="number")throw new ye(t,"number",e);if(n!=null&&er||(n!=null||r!=null)&&ld(e))throw new Dt(t,`${n!=null?`>= ${n}`:""}${n!=null&&r!=null?" && ":""}${r!=null?`<= ${r}`:""}`,e)}const Nd=Me((e,t,n)=>{if(!Pa(n,e)){const o="must be one of: "+Fa(sd(n,a=>typeof a=="string"?`'${a}'`:hd(a)),", ");throw new Xt(t,e,o)}});function Ua(e,t){if(typeof e!="boolean")throw new ye(t,"boolean",e)}function Dr(e,t,n){return e==null||!fd(e,t)?n:e[t]}const Dd=Me((e,t,n=null)=>{const r=Dr(n,"allowArray",!1),o=Dr(n,"allowFunction",!1);if(!Dr(n,"nullable",!1)&&e===null||!r&&Ei(e)||typeof e!="object"&&(!o||typeof e!="function"))throw new ye(t,"Object",e)}),Od=Me((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new ye(t,"a dictionary",e)}),Cn=Me((e,t,n=0)=>{if(!Ei(e))throw new ye(t,"Array",e);if(e.length{if(!vd(e))throw new ye(t,["Buffer","TypedArray","DataView"],e)});function Md(e,t){const n=bd(t),r=e.length;if(n==="hex"&&r%2!==0)throw new Xt("encoding",t,`is invalid for data of length ${r}`)}function Pd(e,t="Port",n=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&gd(e).length===0||+e!==+e>>>0||e>65535||e===0&&!n)throw new yd(t,e,n);return e|0}const Ha=Me((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new ye(t,"AbortSignal",e)}),Fd=Me((e,t)=>{if(typeof e!="function")throw new ye(t,"Function",e)}),Wd=Me((e,t)=>{if(typeof e!="function"||wd(e))throw new ye(t,"Function",e)}),Jd=Me((e,t)=>{if(e!==void 0)throw new ye(t,"undefined",e)});function Ud(e,t,n){if(!Pa(n,e))throw new ye(t,`('${Fa(n,"|")}')`,e)}const Hd=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Ro(e,t){if(typeof e>"u"||!Wa(Hd,e))throw new Xt(t,e,'must be an array or string of format "; rel=preload; as=style"')}function Bd(e){if(typeof e=="string")return Ro(e,"hints"),e;if(Ei(e)){const t=e.length;let n="";if(t===0)return n;for(let r=0;r; rel=preload; as=style"')}var yn={isInt32:_d,isUint32:md,parseFileMode:Rd,validateArray:Cn,validateStringArray:Ld,validateBooleanArray:Td,validateAbortSignalArray:jd,validateBoolean:Ua,validateBuffer:$d,validateDictionary:Od,validateEncoding:Md,validateFunction:Fd,validateInt32:Ad,validateInteger:Id,validateNumber:xd,validateObject:Dd,validateOneOf:Nd,validatePlainFunction:Wd,validatePort:Pd,validateSignalName:kd,validateString:Ii,validateUint32:Ja,validateUndefined:Jd,validateUnion:Ud,validateAbortSignal:Ha,validateLinkHeaderValue:Bd},Ai={exports:{}};const{SymbolAsyncIterator:Io,SymbolIterator:Ao,SymbolFor:jt}=te,Ba=jt("nodejs.stream.destroyed"),Va=jt("nodejs.stream.errored"),ii=jt("nodejs.stream.readable"),oi=jt("nodejs.stream.writable"),Ga=jt("nodejs.stream.disturbed"),Vd=jt("nodejs.webstream.isClosedPromise"),Gd=jt("nodejs.webstream.controllerErrorFunction");function Xn(e,t=!1){var n;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((n=e._readableState)===null||n===void 0?void 0:n.readable)!==!1)&&(!e._writableState||e._readableState))}function zn(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function qd(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function Ce(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function qa(e){return!!(e&&!Ce(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function Ca(e){return!!(e&&!Ce(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function Xa(e){return!!(e&&!Ce(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function Cd(e){return qa(e)||Ca(e)||Xa(e)}function Xd(e,t){return e==null?!1:t===!0?typeof e[Io]=="function":t===!1?typeof e[Ao]=="function":typeof e[Io]=="function"||typeof e[Ao]=="function"}function Kn(e){if(!Ce(e))return null;const t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[Ba]||r!=null&&r.destroyed)}function za(e){if(!zn(e))return null;if(e.writableEnded===!0)return!0;const t=e._writableState;return t!=null&&t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function zd(e,t){if(!zn(e))return null;if(e.writableFinished===!0)return!0;const n=e._writableState;return n!=null&&n.errored?!1:typeof(n==null?void 0:n.finished)!="boolean"?null:!!(n.finished||t===!1&&n.ended===!0&&n.length===0)}function Kd(e){if(!Xn(e))return null;if(e.readableEnded===!0)return!0;const t=e._readableState;return!t||t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function Ka(e,t){if(!Xn(e))return null;const n=e._readableState;return n!=null&&n.errored?!1:typeof(n==null?void 0:n.endEmitted)!="boolean"?null:!!(n.endEmitted||t===!1&&n.ended===!0&&n.length===0)}function Ya(e){return e&&e[ii]!=null?e[ii]:typeof(e==null?void 0:e.readable)!="boolean"?null:Kn(e)?!1:Xn(e)&&e.readable&&!Ka(e)}function Qa(e){return e&&e[oi]!=null?e[oi]:typeof(e==null?void 0:e.writable)!="boolean"?null:Kn(e)?!1:zn(e)&&e.writable&&!za(e)}function Yd(e,t){return Ce(e)?Kn(e)?!0:!((t==null?void 0:t.readable)!==!1&&Ya(e)||(t==null?void 0:t.writable)!==!1&&Qa(e)):null}function Qd(e){var t,n;return Ce(e)?e.writableErrored?e.writableErrored:(t=(n=e._writableState)===null||n===void 0?void 0:n.errored)!==null&&t!==void 0?t:null:null}function Zd(e){var t,n;return Ce(e)?e.readableErrored?e.readableErrored:(t=(n=e._readableState)===null||n===void 0?void 0:n.errored)!==null&&t!==void 0?t:null:null}function eu(e){if(!Ce(e))return null;if(typeof e.closed=="boolean")return e.closed;const t=e._writableState,n=e._readableState;return typeof(t==null?void 0:t.closed)=="boolean"||typeof(n==null?void 0:n.closed)=="boolean"?(t==null?void 0:t.closed)||(n==null?void 0:n.closed):typeof e._closed=="boolean"&&Za(e)?e._closed:null}function Za(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function es(e){return typeof e._sent100=="boolean"&&Za(e)}function tu(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function nu(e){if(!Ce(e))return null;const t=e._writableState,n=e._readableState,r=t||n;return!r&&es(e)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}function ru(e){var t;return!!(e&&((t=e[Ga])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function iu(e){var t,n,r,o,a,i,l,f,c,p;return!!(e&&((t=(n=(r=(o=(a=(i=e[Va])!==null&&i!==void 0?i:e.readableErrored)!==null&&a!==void 0?a:e.writableErrored)!==null&&o!==void 0?o:(l=e._readableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(f=e._writableState)===null||f===void 0?void 0:f.errorEmitted)!==null&&n!==void 0?n:(c=e._readableState)===null||c===void 0?void 0:c.errored)!==null&&t!==void 0?t:!((p=e._writableState)===null||p===void 0)&&p.errored))}var ot={isDestroyed:Kn,kIsDestroyed:Ba,isDisturbed:ru,kIsDisturbed:Ga,isErrored:iu,kIsErrored:Va,isReadable:Ya,kIsReadable:ii,kIsClosedPromise:Vd,kControllerErrorFunction:Gd,kIsWritable:oi,isClosed:eu,isDuplexNodeStream:qd,isFinished:Yd,isIterable:Xd,isReadableNodeStream:Xn,isReadableStream:qa,isReadableEnded:Kd,isReadableFinished:Ka,isReadableErrored:Zd,isNodeStream:Ce,isWebStream:Cd,isWritable:Qa,isWritableNodeStream:zn,isWritableStream:Ca,isWritableEnded:za,isWritableFinished:zd,isWritableErrored:Qd,isServerRequest:tu,isServerResponse:es,willEmitClose:nu,isTransformStream:Xa};const ct=Lt,{AbortError:ts,codes:ou}=me,{ERR_INVALID_ARG_TYPE:au,ERR_STREAM_PREMATURE_CLOSE:xo}=ou,{kEmptyObject:ai,once:si}=ve,{validateAbortSignal:su,validateFunction:lu,validateObject:cu,validateBoolean:du}=yn,{Promise:uu,PromisePrototypeThen:fu,SymbolDispose:ns}=te,{isClosed:hu,isReadable:No,isReadableNodeStream:Or,isReadableStream:pu,isReadableFinished:Do,isReadableErrored:Oo,isWritable:Lo,isWritableNodeStream:To,isWritableStream:gu,isWritableFinished:jo,isWritableErrored:ko,isNodeStream:yu,willEmitClose:bu,kIsClosedPromise:wu}=ot;let qt;function vu(e){return e.setHeader&&typeof e.abort=="function"}const li=()=>{};function rs(e,t,n){var r,o;if(arguments.length===2?(n=t,t=ai):t==null?t=ai:cu(t,"options"),lu(n,"callback"),su(t.signal,"options.signal"),n=si(n),pu(e)||gu(e))return _u(e,t,n);if(!yu(e))throw new au("stream",["ReadableStream","WritableStream","Stream"],e);const a=(r=t.readable)!==null&&r!==void 0?r:Or(e),i=(o=t.writable)!==null&&o!==void 0?o:To(e),l=e._writableState,f=e._readableState,c=()=>{e.writable||d()};let p=bu(e)&&Or(e)===a&&To(e)===i,g=jo(e,!1);const d=()=>{g=!0,e.destroyed&&(p=!1),!(p&&(!e.readable||a))&&(!a||s)&&n.call(e)};let s=Do(e,!1);const u=()=>{s=!0,e.destroyed&&(p=!1),!(p&&(!e.writable||i))&&(!i||g)&&n.call(e)},y=x=>{n.call(e,x)};let w=hu(e);const v=()=>{w=!0;const x=ko(e)||Oo(e);if(x&&typeof x!="boolean")return n.call(e,x);if(a&&!s&&Or(e,!0)&&!Do(e,!1))return n.call(e,new xo);if(i&&!g&&!jo(e,!1))return n.call(e,new xo);n.call(e)},E=()=>{w=!0;const x=ko(e)||Oo(e);if(x&&typeof x!="boolean")return n.call(e,x);n.call(e)},S=()=>{e.req.on("finish",d)};vu(e)?(e.on("complete",d),p||e.on("abort",v),e.req?S():e.on("request",S)):i&&!l&&(e.on("end",c),e.on("close",c)),!p&&typeof e.aborted=="boolean"&&e.on("aborted",v),e.on("end",u),e.on("finish",d),t.error!==!1&&e.on("error",y),e.on("close",v),w?ct.nextTick(v):l!=null&&l.errorEmitted||f!=null&&f.errorEmitted?p||ct.nextTick(E):(!a&&(!p||No(e))&&(g||Lo(e)===!1)||!i&&(!p||Lo(e))&&(s||No(e)===!1)||f&&e.req&&e.aborted)&&ct.nextTick(E);const I=()=>{n=li,e.removeListener("aborted",v),e.removeListener("complete",d),e.removeListener("abort",v),e.removeListener("request",S),e.req&&e.req.removeListener("finish",d),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",d),e.removeListener("end",u),e.removeListener("error",y),e.removeListener("close",v)};if(t.signal&&!w){const x=()=>{const R=n;I(),R.call(e,new ts(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)ct.nextTick(x);else{qt=qt||ve.addAbortListener;const R=qt(t.signal,x),V=n;n=si((...k)=>{R[ns](),V.apply(e,k)})}}return I}function _u(e,t,n){let r=!1,o=li;if(t.signal)if(o=()=>{r=!0,n.call(e,new ts(void 0,{cause:t.signal.reason}))},t.signal.aborted)ct.nextTick(o);else{qt=qt||ve.addAbortListener;const i=qt(t.signal,o),l=n;n=si((...f)=>{i[ns](),l.apply(e,f)})}const a=(...i)=>{r||ct.nextTick(()=>n.apply(e,i))};return fu(e[wu].promise,a,a),li}function mu(e,t){var n;let r=!1;return t===null&&(t=ai),(n=t)!==null&&n!==void 0&&n.cleanup&&(du(t.cleanup,"cleanup"),r=t.cleanup),new uu((o,a)=>{const i=rs(e,t,l=>{r&&i(),l?a(l):o()})})}Ai.exports=rs;Ai.exports.finished=mu;var pt=Ai.exports;const Ge=Lt,{aggregateTwoErrors:Su,codes:{ERR_MULTIPLE_CALLBACK:Eu},AbortError:Ru}=me,{Symbol:is}=te,{kIsDestroyed:Iu,isDestroyed:Au,isFinished:xu,isServerRequest:Nu}=ot,os=is("kDestroy"),ci=is("kConstruct");function as(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function Du(e,t){const n=this._readableState,r=this._writableState,o=r||n;return r!=null&&r.destroyed||n!=null&&n.destroyed?(typeof t=="function"&&t(),this):(as(e,r,n),r&&(r.destroyed=!0),n&&(n.destroyed=!0),o.constructed?$o(this,e,t):this.once(os,function(a){$o(this,Su(a,e),t)}),this)}function $o(e,t,n){let r=!1;function o(a){if(r)return;r=!0;const i=e._readableState,l=e._writableState;as(a,l,i),l&&(l.closed=!0),i&&(i.closed=!0),typeof n=="function"&&n(a),a?Ge.nextTick(Ou,e,a):Ge.nextTick(ss,e)}try{e._destroy(t||null,o)}catch(a){o(a)}}function Ou(e,t){di(e,t),ss(e)}function ss(e){const t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(n!=null&&n.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function di(e,t){const n=e._readableState,r=e._writableState;r!=null&&r.errorEmitted||n!=null&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit("error",t))}function Lu(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function ui(e,t,n){const r=e._readableState,o=e._writableState;if(o!=null&&o.destroyed||r!=null&&r.destroyed)return this;r!=null&&r.autoDestroy||o!=null&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),r&&!r.errored&&(r.errored=t),n?Ge.nextTick(di,e,t):di(e,t))}function Tu(e,t){if(typeof e._construct!="function")return;const n=e._readableState,r=e._writableState;n&&(n.constructed=!1),r&&(r.constructed=!1),e.once(ci,t),!(e.listenerCount(ci)>1)&&Ge.nextTick(ju,e)}function ju(e){let t=!1;function n(r){if(t){ui(e,r??new Eu);return}t=!0;const o=e._readableState,a=e._writableState,i=a||o;o&&(o.constructed=!0),a&&(a.constructed=!0),i.destroyed?e.emit(os,r):r?ui(e,r,!0):Ge.nextTick(ku,e)}try{e._construct(r=>{Ge.nextTick(n,r)})}catch(r){Ge.nextTick(n,r)}}function ku(e){e.emit(ci)}function Mo(e){return(e==null?void 0:e.setHeader)&&typeof e.abort=="function"}function ls(e){e.emit("close")}function $u(e,t){e.emit("error",t),Ge.nextTick(ls,e)}function Mu(e,t){!e||Au(e)||(!t&&!xu(e)&&(t=new Ru),Nu(e)?(e.socket=null,e.destroy(t)):Mo(e)?e.abort():Mo(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?Ge.nextTick($u,e,t):Ge.nextTick(ls,e),e.destroyed||(e[Iu]=!0))}var zt={construct:Tu,destroyer:Mu,destroy:Du,undestroy:Lu,errorOrDestroy:ui};const{ArrayIsArray:Pu,ObjectSetPrototypeOf:cs}=te,{EventEmitter:Yn}=Bn;function Qn(e){Yn.call(this,e)}cs(Qn.prototype,Yn.prototype);cs(Qn,Yn);Qn.prototype.pipe=function(e,t){const n=this;function r(p){e.writable&&e.write(p)===!1&&n.pause&&n.pause()}n.on("data",r);function o(){n.readable&&n.resume&&n.resume()}e.on("drain",o),!e._isStdio&&(!t||t.end!==!1)&&(n.on("end",i),n.on("close",l));let a=!1;function i(){a||(a=!0,e.end())}function l(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function f(p){c(),Yn.listenerCount(this,"error")===0&&this.emit("error",p)}fi(n,"error",f),fi(e,"error",f);function c(){n.removeListener("data",r),e.removeListener("drain",o),n.removeListener("end",i),n.removeListener("close",l),n.removeListener("error",f),e.removeListener("error",f),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e};function fi(e,t,n){if(typeof e.prependListener=="function")return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Pu(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}var xi={Stream:Qn,prependListener:fi},ds={exports:{}};(function(e){const{SymbolDispose:t}=te,{AbortError:n,codes:r}=me,{isNodeStream:o,isWebStream:a,kControllerErrorFunction:i}=ot,l=pt,{ERR_INVALID_ARG_TYPE:f}=r;let c;const p=(g,d)=>{if(typeof g!="object"||!("aborted"in g))throw new f(d,"AbortSignal",g)};e.exports.addAbortSignal=function(d,s){if(p(d,"signal"),!o(s)&&!a(s))throw new f("stream",["ReadableStream","WritableStream","Stream"],s);return e.exports.addAbortSignalNoValidate(d,s)},e.exports.addAbortSignalNoValidate=function(g,d){if(typeof g!="object"||!("aborted"in g))return d;const s=o(d)?()=>{d.destroy(new n(void 0,{cause:g.reason}))}:()=>{d[i](new n(void 0,{cause:g.reason}))};if(g.aborted)s();else{c=c||ve.addAbortListener;const u=c(g,s);l(d,u[t])}return d}})(ds);var Zn=ds.exports;const{StringPrototypeSlice:Po,SymbolIterator:Fu,TypedArrayPrototypeSet:An,Uint8Array:Wu}=te,{Buffer:Lr}=Ot,{inspect:Ju}=ve;var Uu=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}unshift(t){const n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}shift(){if(this.length===0)return;const t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let n=this.head,r=""+n.data;for(;(n=n.next)!==null;)r+=t+n.data;return r}concat(t){if(this.length===0)return Lr.alloc(0);const n=Lr.allocUnsafe(t>>>0);let r=this.head,o=0;for(;r;)An(n,r.data,o),o+=r.data.length,r=r.next;return n}consume(t,n){const r=this.head.data;if(ta.length)n+=a,t-=a.length;else{t===a.length?(n+=a,++o,r.next?this.head=r.next:this.head=this.tail=null):(n+=Po(a,0,t),this.head=r,r.data=Po(a,t));break}++o}while((r=r.next)!==null);return this.length-=o,n}_getBuffer(t){const n=Lr.allocUnsafe(t),r=t;let o=this.head,a=0;do{const i=o.data;if(t>i.length)An(n,i,r-t),t-=i.length;else{t===i.length?(An(n,i,r-t),++a,o.next?this.head=o.next:this.head=this.tail=null):(An(n,new Wu(i.buffer,i.byteOffset,t),r-t),this.head=o,o.data=i.slice(t));break}++a}while((o=o.next)!==null);return this.length-=a,n}[Symbol.for("nodejs.util.inspect.custom")](t,n){return Ju(this,{...n,depth:0,customInspect:!1})}};const{MathFloor:Hu,NumberIsInteger:Bu}=te,{validateInteger:Vu}=yn,{ERR_INVALID_ARG_VALUE:Gu}=me.codes;let us=16*1024,fs=16;function qu(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function hs(e){return e?fs:us}function Cu(e,t){Vu(t,"value",0),e?fs=t:us=t}function Xu(e,t,n,r){const o=qu(t,r,n);if(o!=null){if(!Bu(o)||o<0){const a=r?`options.${n}`:"options.highWaterMark";throw new Gu(a,o)}return Hu(o)}return hs(e.objectMode)}var er={getHighWaterMark:Xu,getDefaultHighWaterMark:hs,setDefaultHighWaterMark:Cu};const Fo=Lt,{PromisePrototypeThen:zu,SymbolAsyncIterator:Wo,SymbolIterator:Jo}=te,{Buffer:Ku}=Ot,{ERR_INVALID_ARG_TYPE:Yu,ERR_STREAM_NULL_VALUES:Qu}=me.codes;function Zu(e,t,n){let r;if(typeof t=="string"||t instanceof Ku)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});let o;if(t&&t[Wo])o=!0,r=t[Wo]();else if(t&&t[Jo])o=!1,r=t[Jo]();else throw new Yu("iterable",["Iterable"],t);const a=new e({objectMode:!0,highWaterMark:1,...n});let i=!1;a._read=function(){i||(i=!0,f())},a._destroy=function(c,p){zu(l(c),()=>Fo.nextTick(p,c),g=>Fo.nextTick(p,g||c))};async function l(c){const p=c!=null,g=typeof r.throw=="function";if(p&&g){const{value:d,done:s}=await r.throw(c);if(await d,s)return}if(typeof r.return=="function"){const{value:d}=await r.return();await d}}async function f(){for(;;){try{const{value:c,done:p}=o?await r.next():r.next();if(p)a.push(null);else{const g=c&&typeof c.then=="function"?await c:c;if(g===null)throw i=!1,new Qu;if(a.push(g))continue;i=!1}}catch(c){a.destroy(c)}break}}return a}var ps=Zu,Tr,Uo;function tr(){if(Uo)return Tr;Uo=1;const e=Lt,{ArrayPrototypeIndexOf:t,NumberIsInteger:n,NumberIsNaN:r,NumberParseInt:o,ObjectDefineProperties:a,ObjectKeys:i,ObjectSetPrototypeOf:l,Promise:f,SafeSet:c,SymbolAsyncDispose:p,SymbolAsyncIterator:g,Symbol:d}=te;Tr=P,P.ReadableState=ze;const{EventEmitter:s}=Bn,{Stream:u,prependListener:y}=xi,{Buffer:w}=Ot,{addAbortSignal:v}=Zn,E=pt;let S=ve.debuglog("stream",h=>{S=h});const I=Uu,x=zt,{getHighWaterMark:R,getDefaultHighWaterMark:V}=er,{aggregateTwoErrors:k,codes:{ERR_INVALID_ARG_TYPE:F,ERR_METHOD_NOT_IMPLEMENTED:ne,ERR_OUT_OF_RANGE:se,ERR_STREAM_PUSH_AFTER_EOF:H,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:N},AbortError:C}=me,{validateObject:J}=yn,U=d("kPaused"),{StringDecoder:re}=Hs,ie=ps;l(P.prototype,u.prototype),l(P,u);const ee=()=>{},{errorOrDestroy:oe}=x,X=1,Xe=2,M=4,le=8,Je=16,Mt=32,Pt=64,Ft=128,Kt=256,rr=512,Yt=1024,Wt=2048,_=4096,m=8192,A=16384,T=32768,j=65536,K=1<<17,Z=1<<18;function z(h){return{enumerable:!1,get(){return(this.state&h)!==0},set(b){b?this.state|=h:this.state&=~h}}}a(ze.prototype,{objectMode:z(X),ended:z(Xe),endEmitted:z(M),reading:z(le),constructed:z(Je),sync:z(Mt),needReadable:z(Pt),emittedReadable:z(Ft),readableListening:z(Kt),resumeScheduled:z(rr),errorEmitted:z(Yt),emitClose:z(Wt),autoDestroy:z(_),destroyed:z(m),closed:z(A),closeEmitted:z(T),multiAwaitDrain:z(j),readingMore:z(K),dataEmitted:z(Z)});function ze(h,b,D){typeof D!="boolean"&&(D=b instanceof nt()),this.state=Wt|_|Je|Mt,h&&h.objectMode&&(this.state|=X),D&&h&&h.readableObjectMode&&(this.state|=X),this.highWaterMark=h?R(this,h,"readableHighWaterMark",D):V(!1),this.buffer=new I,this.length=0,this.pipes=[],this.flowing=null,this[U]=null,h&&h.emitClose===!1&&(this.state&=~Wt),h&&h.autoDestroy===!1&&(this.state&=~_),this.errored=null,this.defaultEncoding=h&&h.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,h&&h.encoding&&(this.decoder=new re(h.encoding),this.encoding=h.encoding)}function P(h){if(!(this instanceof P))return new P(h);const b=this instanceof nt();this._readableState=new ze(h,this,b),h&&(typeof h.read=="function"&&(this._read=h.read),typeof h.destroy=="function"&&(this._destroy=h.destroy),typeof h.construct=="function"&&(this._construct=h.construct),h.signal&&!b&&v(h.signal,this)),u.call(this,h),x.construct(this,()=>{this._readableState.needReadable&&vn(this,this._readableState)})}P.prototype.destroy=x.destroy,P.prototype._undestroy=x.undestroy,P.prototype._destroy=function(h,b){b(h)},P.prototype[s.captureRejectionSymbol]=function(h){this.destroy(h)},P.prototype[p]=function(){let h;return this.destroyed||(h=this.readableEnded?null:new C,this.destroy(h)),new f((b,D)=>E(this,O=>O&&O!==h?D(O):b(null)))},P.prototype.push=function(h,b){return at(this,h,b,!1)},P.prototype.unshift=function(h,b){return at(this,h,b,!0)};function at(h,b,D,O){S("readableAddChunk",b);const L=h._readableState;let fe;if(L.state&X||(typeof b=="string"?(D=D||L.defaultEncoding,L.encoding!==D&&(O&&L.encoding?b=w.from(b,D).toString(L.encoding):(b=w.from(b,D),D=""))):b instanceof w?D="":u._isUint8Array(b)?(b=u._uint8ArrayToBuffer(b),D=""):b!=null&&(fe=new F("chunk",["string","Buffer","Uint8Array"],b))),fe)oe(h,fe);else if(b===null)L.state&=~le,Ns(h,L);else if(L.state&X||b&&b.length>0)if(O)if(L.state&M)oe(h,new N);else{if(L.destroyed||L.errored)return!1;ir(h,L,b,!0)}else if(L.ended)oe(h,new H);else{if(L.destroyed||L.errored)return!1;L.state&=~le,L.decoder&&!D?(b=L.decoder.write(b),L.objectMode||b.length!==0?ir(h,L,b,!1):vn(h,L)):ir(h,L,b,!1)}else O||(L.state&=~le,vn(h,L));return!L.ended&&(L.length0?(b.state&j?b.awaitDrainWriters.clear():b.awaitDrainWriters=null,b.dataEmitted=!0,h.emit("data",D)):(b.length+=b.objectMode?1:D.length,O?b.buffer.unshift(D):b.buffer.push(D),b.state&Pt&&wn(h)),vn(h,b)}P.prototype.isPaused=function(){const h=this._readableState;return h[U]===!0||h.flowing===!1},P.prototype.setEncoding=function(h){const b=new re(h);this._readableState.decoder=b,this._readableState.encoding=this._readableState.decoder.encoding;const D=this._readableState.buffer;let O="";for(const L of D)O+=b.write(L);return D.clear(),O!==""&&D.push(O),this._readableState.length=O.length,this};const As=1073741824;function xs(h){if(h>As)throw new se("size","<= 1GiB",h);return h--,h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,h|=h>>>16,h++,h}function ji(h,b){return h<=0||b.length===0&&b.ended?0:b.state&X?1:r(h)?b.flowing&&b.length?b.buffer.first().length:b.length:h<=b.length?h:b.ended?b.length:0}P.prototype.read=function(h){S("read",h),h===void 0?h=NaN:n(h)||(h=o(h,10));const b=this._readableState,D=h;if(h>b.highWaterMark&&(b.highWaterMark=xs(h)),h!==0&&(b.state&=~Ft),h===0&&b.needReadable&&((b.highWaterMark!==0?b.length>=b.highWaterMark:b.length>0)||b.ended))return S("read: emitReadable",b.length,b.ended),b.length===0&&b.ended?or(this):wn(this),null;if(h=ji(h,b),h===0&&b.ended)return b.length===0&&or(this),null;let O=(b.state&Pt)!==0;if(S("need readable",O),(b.length===0||b.length-h0?L=Fi(h,b):L=null,L===null?(b.needReadable=b.length<=b.highWaterMark,h=0):(b.length-=h,b.multiAwaitDrain?b.awaitDrainWriters.clear():b.awaitDrainWriters=null),b.length===0&&(b.ended||(b.needReadable=!0),D!==h&&b.ended&&or(this)),L!==null&&!b.errorEmitted&&!b.closeEmitted&&(b.dataEmitted=!0,this.emit("data",L)),L};function Ns(h,b){if(S("onEofChunk"),!b.ended){if(b.decoder){const D=b.decoder.end();D&&D.length&&(b.buffer.push(D),b.length+=b.objectMode?1:D.length)}b.ended=!0,b.sync?wn(h):(b.needReadable=!1,b.emittedReadable=!0,ki(h))}}function wn(h){const b=h._readableState;S("emitReadable",b.needReadable,b.emittedReadable),b.needReadable=!1,b.emittedReadable||(S("emitReadable",b.flowing),b.emittedReadable=!0,e.nextTick(ki,h))}function ki(h){const b=h._readableState;S("emitReadable_",b.destroyed,b.length,b.ended),!b.destroyed&&!b.errored&&(b.length||b.ended)&&(h.emit("readable"),b.emittedReadable=!1),b.needReadable=!b.flowing&&!b.ended&&b.length<=b.highWaterMark,Mi(h)}function vn(h,b){!b.readingMore&&b.constructed&&(b.readingMore=!0,e.nextTick(Ds,h,b))}function Ds(h,b){for(;!b.reading&&!b.ended&&(b.length1&&O.pipes.includes(h)&&(S("false write response, pause",O.awaitDrainWriters.size),O.awaitDrainWriters.add(h)),D.pause()),gt||(gt=Os(D,h),h.on("drain",gt))}D.on("data",Bi);function Bi(yt){S("ondata");const Ke=h.write(yt);S("dest.write",Ke),Ke===!1&&Hi()}function sr(yt){if(S("onerror",yt),Qt(),h.removeListener("error",sr),h.listenerCount("error")===0){const Ke=h._writableState||h._readableState;Ke&&!Ke.errorEmitted?oe(h,yt):h.emit("error",yt)}}y(h,"error",sr);function lr(){h.removeListener("finish",cr),Qt()}h.once("close",lr);function cr(){S("onfinish"),h.removeListener("close",lr),Qt()}h.once("finish",cr);function Qt(){S("unpipe"),D.unpipe(h)}return h.emit("pipe",D),h.writableNeedDrain===!0?Hi():O.flowing||(S("pipe resume"),D.resume()),h};function Os(h,b){return function(){const O=h._readableState;O.awaitDrainWriters===b?(S("pipeOnDrain",1),O.awaitDrainWriters=null):O.multiAwaitDrain&&(S("pipeOnDrain",O.awaitDrainWriters.size),O.awaitDrainWriters.delete(b)),(!O.awaitDrainWriters||O.awaitDrainWriters.size===0)&&h.listenerCount("data")&&h.resume()}}P.prototype.unpipe=function(h){const b=this._readableState,D={hasUnpiped:!1};if(b.pipes.length===0)return this;if(!h){const L=b.pipes;b.pipes=[],this.pause();for(let fe=0;fe0,O.flowing!==!1&&this.resume()):h==="readable"&&!O.endEmitted&&!O.readableListening&&(O.readableListening=O.needReadable=!0,O.flowing=!1,O.emittedReadable=!1,S("on readable",O.length,O.reading),O.length?wn(this):O.reading||e.nextTick(Ls,this)),D},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(h,b){const D=u.prototype.removeListener.call(this,h,b);return h==="readable"&&e.nextTick($i,this),D},P.prototype.off=P.prototype.removeListener,P.prototype.removeAllListeners=function(h){const b=u.prototype.removeAllListeners.apply(this,arguments);return(h==="readable"||h===void 0)&&e.nextTick($i,this),b};function $i(h){const b=h._readableState;b.readableListening=h.listenerCount("readable")>0,b.resumeScheduled&&b[U]===!1?b.flowing=!0:h.listenerCount("data")>0?h.resume():b.readableListening||(b.flowing=null)}function Ls(h){S("readable nexttick read 0"),h.read(0)}P.prototype.resume=function(){const h=this._readableState;return h.flowing||(S("resume"),h.flowing=!h.readableListening,Ts(this,h)),h[U]=!1,this};function Ts(h,b){b.resumeScheduled||(b.resumeScheduled=!0,e.nextTick(js,h,b))}function js(h,b){S("resume",b.reading),b.reading||h.read(0),b.resumeScheduled=!1,h.emit("resume"),Mi(h),b.flowing&&!b.reading&&h.read(0)}P.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[U]=!0,this};function Mi(h){const b=h._readableState;for(S("flow",b.flowing);b.flowing&&h.read()!==null;);}P.prototype.wrap=function(h){let b=!1;h.on("data",O=>{!this.push(O)&&h.pause&&(b=!0,h.pause())}),h.on("end",()=>{this.push(null)}),h.on("error",O=>{oe(this,O)}),h.on("close",()=>{this.destroy()}),h.on("destroy",()=>{this.destroy()}),this._read=()=>{b&&h.resume&&(b=!1,h.resume())};const D=i(h);for(let O=1;O{L=xe?k(L,xe):null,D(),D=ee});try{for(;;){const xe=h.destroyed?null:h.read();if(xe!==null)yield xe;else{if(L)throw L;if(L===null)return;await new f(O)}}}catch(xe){throw L=k(L,xe),L}finally{(L||(b==null?void 0:b.destroyOnReturn)!==!1)&&(L===void 0||h._readableState.autoDestroy)?x.destroyer(h,null):(h.off("readable",O),fe())}}a(P.prototype,{readable:{__proto__:null,get(){const h=this._readableState;return!!h&&h.readable!==!1&&!h.destroyed&&!h.errorEmitted&&!h.endEmitted},set(h){this._readableState&&(this._readableState.readable=!!h)}},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(h){this._readableState&&(this._readableState.flowing=h)}},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(h){this._readableState&&(this._readableState.destroyed=h)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),a(ze.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[U]!==!1},set(h){this[U]=!!h}}}),P._fromList=Fi;function Fi(h,b){if(b.length===0)return null;let D;return b.objectMode?D=b.buffer.shift():!h||h>=b.length?(b.decoder?D=b.buffer.join(""):b.buffer.length===1?D=b.buffer.first():D=b.buffer.concat(b.length),b.buffer.clear()):D=b.buffer.consume(h,b.decoder),D}function or(h){const b=h._readableState;S("endReadable",b.endEmitted),b.endEmitted||(b.ended=!0,e.nextTick($s,b,h))}function $s(h,b){if(S("endReadableNT",h.endEmitted,h.length),!h.errored&&!h.closeEmitted&&!h.endEmitted&&h.length===0){if(h.endEmitted=!0,b.emit("end"),b.writable&&b.allowHalfOpen===!1)e.nextTick(Ms,b);else if(h.autoDestroy){const D=b._writableState;(!D||D.autoDestroy&&(D.finished||D.writable===!1))&&b.destroy()}}}function Ms(h){h.writable&&!h.writableEnded&&!h.destroyed&&h.end()}P.from=function(h,b){return ie(P,h,b)};let ar;function Wi(){return ar===void 0&&(ar={}),ar}return P.fromWeb=function(h,b){return Wi().newStreamReadableFromReadableStream(h,b)},P.toWeb=function(h,b){return Wi().newReadableStreamFromStreamReadable(h,b)},P.wrap=function(h,b){var D,O;return new P({objectMode:(D=(O=h.readableObjectMode)!==null&&O!==void 0?O:h.objectMode)!==null&&D!==void 0?D:!0,...b,destroy(L,fe){x.destroyer(h,L),fe(L)}}).wrap(h)},Tr}var jr,Ho;function Ni(){if(Ho)return jr;Ho=1;const e=Lt,{ArrayPrototypeSlice:t,Error:n,FunctionPrototypeSymbolHasInstance:r,ObjectDefineProperty:o,ObjectDefineProperties:a,ObjectSetPrototypeOf:i,StringPrototypeToLowerCase:l,Symbol:f,SymbolHasInstance:c}=te;jr=J,J.WritableState=N;const{EventEmitter:p}=Bn,g=xi.Stream,{Buffer:d}=Ot,s=zt,{addAbortSignal:u}=Zn,{getHighWaterMark:y,getDefaultHighWaterMark:w}=er,{ERR_INVALID_ARG_TYPE:v,ERR_METHOD_NOT_IMPLEMENTED:E,ERR_MULTIPLE_CALLBACK:S,ERR_STREAM_CANNOT_PIPE:I,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:R,ERR_STREAM_NULL_VALUES:V,ERR_STREAM_WRITE_AFTER_END:k,ERR_UNKNOWN_ENCODING:F}=me.codes,{errorOrDestroy:ne}=s;i(J.prototype,g.prototype),i(J,g);function se(){}const H=f("kOnFinished");function N(_,m,A){typeof A!="boolean"&&(A=m instanceof nt()),this.objectMode=!!(_&&_.objectMode),A&&(this.objectMode=this.objectMode||!!(_&&_.writableObjectMode)),this.highWaterMark=_?y(this,_,"writableHighWaterMark",A):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const T=!!(_&&_.decodeStrings===!1);this.decodeStrings=!T,this.defaultEncoding=_&&_.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=oe.bind(void 0,m),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,C(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!_||_.emitClose!==!1,this.autoDestroy=!_||_.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[H]=[]}function C(_){_.buffered=[],_.bufferedIndex=0,_.allBuffers=!0,_.allNoop=!0}N.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},o(N.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function J(_){const m=this instanceof nt();if(!m&&!r(J,this))return new J(_);this._writableState=new N(_,this,m),_&&(typeof _.write=="function"&&(this._write=_.write),typeof _.writev=="function"&&(this._writev=_.writev),typeof _.destroy=="function"&&(this._destroy=_.destroy),typeof _.final=="function"&&(this._final=_.final),typeof _.construct=="function"&&(this._construct=_.construct),_.signal&&u(_.signal,this)),g.call(this,_),s.construct(this,()=>{const A=this._writableState;A.writing||le(this,A),Ft(this,A)})}o(J,c,{__proto__:null,value:function(_){return r(this,_)?!0:this!==J?!1:_&&_._writableState instanceof N}}),J.prototype.pipe=function(){ne(this,new I)};function U(_,m,A,T){const j=_._writableState;if(typeof A=="function")T=A,A=j.defaultEncoding;else{if(!A)A=j.defaultEncoding;else if(A!=="buffer"&&!d.isEncoding(A))throw new F(A);typeof T!="function"&&(T=se)}if(m===null)throw new V;if(!j.objectMode)if(typeof m=="string")j.decodeStrings!==!1&&(m=d.from(m,A),A="buffer");else if(m instanceof d)A="buffer";else if(g._isUint8Array(m))m=g._uint8ArrayToBuffer(m),A="buffer";else throw new v("chunk",["string","Buffer","Uint8Array"],m);let K;return j.ending?K=new k:j.destroyed&&(K=new x("write")),K?(e.nextTick(T,K),ne(_,K,!0),K):(j.pendingcb++,re(_,j,m,A,T))}J.prototype.write=function(_,m,A){return U(this,_,m,A)===!0},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){const _=this._writableState;_.corked&&(_.corked--,_.writing||le(this,_))},J.prototype.setDefaultEncoding=function(m){if(typeof m=="string"&&(m=l(m)),!d.isEncoding(m))throw new F(m);return this._writableState.defaultEncoding=m,this};function re(_,m,A,T,j){const K=m.objectMode?1:A.length;m.length+=K;const Z=m.lengthA.bufferedIndex&&le(_,A),T?A.afterWriteTickInfo!==null&&A.afterWriteTickInfo.cb===j?A.afterWriteTickInfo.count++:(A.afterWriteTickInfo={count:1,cb:j,stream:_,state:A},e.nextTick(X,A.afterWriteTickInfo)):Xe(_,A,1,j))}function X({stream:_,state:m,count:A,cb:T}){return m.afterWriteTickInfo=null,Xe(_,m,A,T)}function Xe(_,m,A,T){for(!m.ending&&!_.destroyed&&m.length===0&&m.needDrain&&(m.needDrain=!1,_.emit("drain"));A-- >0;)m.pendingcb--,T();m.destroyed&&M(m),Ft(_,m)}function M(_){if(_.writing)return;for(let j=_.bufferedIndex;j<_.buffered.length;++j){var m;const{chunk:K,callback:Z}=_.buffered[j],z=_.objectMode?1:K.length;_.length-=z,Z((m=_.errored)!==null&&m!==void 0?m:new x("write"))}const A=_[H].splice(0);for(let j=0;j1&&_._writev){m.pendingcb-=K-1;const z=m.allNoop?se:P=>{for(let at=Z;at256?(A.splice(0,Z),m.bufferedIndex=0):m.bufferedIndex=Z}m.bufferProcessing=!1}J.prototype._write=function(_,m,A){if(this._writev)this._writev([{chunk:_,encoding:m}],A);else throw new E("_write()")},J.prototype._writev=null,J.prototype.end=function(_,m,A){const T=this._writableState;typeof _=="function"?(A=_,_=null,m=null):typeof m=="function"&&(A=m,m=null);let j;if(_!=null){const K=U(this,_,m);K instanceof n&&(j=K)}return T.corked&&(T.corked=1,this.uncork()),j||(!T.errored&&!T.ending?(T.ending=!0,Ft(this,T,!0),T.ended=!0):T.finished?j=new R("end"):T.destroyed&&(j=new x("end"))),typeof A=="function"&&(j||T.finished?e.nextTick(A,j):T[H].push(A)),this};function Je(_){return _.ending&&!_.destroyed&&_.constructed&&_.length===0&&!_.errored&&_.buffered.length===0&&!_.finished&&!_.writing&&!_.errorEmitted&&!_.closeEmitted}function Mt(_,m){let A=!1;function T(j){if(A){ne(_,j??S());return}if(A=!0,m.pendingcb--,j){const K=m[H].splice(0);for(let Z=0;Z{Je(j)?Kt(T,j):j.pendingcb--},_,m)):Je(m)&&(m.pendingcb++,Kt(_,m))))}function Kt(_,m){m.pendingcb--,m.finished=!0;const A=m[H].splice(0);for(let T=0;T{if(M!=null)throw new u("nully","body",M)},M=>{y(X,M)});return X=new F({objectMode:!0,readable:!1,write:re,final(M){ie(async()=>{try{await Xe,e.nextTick(M,null)}catch(le){e.nextTick(M,le)}})},destroy:ee})}throw new u("Iterable, AsyncIterable or AsyncFunction",C,U)}if(R(N))return H(N.arrayBuffer());if(o(N))return I(F,N,{objectMode:!0,writable:!1});if(c(N==null?void 0:N.readable)&&p(N==null?void 0:N.writable))return F.fromWeb(N);if(typeof(N==null?void 0:N.writable)=="object"||typeof(N==null?void 0:N.readable)=="object"){const U=N!=null&&N.readable?i(N==null?void 0:N.readable)?N==null?void 0:N.readable:H(N.readable):void 0,re=N!=null&&N.writable?l(N==null?void 0:N.writable)?N==null?void 0:N.writable:H(N.writable):void 0;return se({readable:U,writable:re})}const J=N==null?void 0:N.then;if(typeof J=="function"){let U;return k(J,N,re=>{re!=null&&U.push(re),U.push(null)},re=>{y(U,re)}),U=new F({objectMode:!0,writable:!1,read(){}})}throw new s(C,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],N)};function ne(H){let{promise:N,resolve:C}=S();const J=new V,U=J.signal;return{value:H(async function*(){for(;;){const ie=N;N=null;const{chunk:ee,done:oe,cb:X}=await ie;if(e.nextTick(X),oe)return;if(U.aborted)throw new d(void 0,{cause:U.reason});({promise:N,resolve:C}=S()),yield ee}}(),{signal:U}),write(ie,ee,oe){const X=C;C=null,X({chunk:ie,done:!1,cb:oe})},final(ie){const ee=C;C=null,ee({done:!0,cb:ie})},destroy(ie,ee){J.abort(),ee(ie)}}}function se(H){const N=H.readable&&typeof H.readable.read!="function"?v.wrap(H.readable):H.readable,C=H.writable;let J=!!n(N),U=!!r(C),re,ie,ee,oe,X;function Xe(M){const le=oe;oe=null,le?le(M):M&&X.destroy(M)}return X=new F({readableObjectMode:!!(N!=null&&N.readableObjectMode),writableObjectMode:!!(C!=null&&C.writableObjectMode),readable:J,writable:U}),U&&(g(C,M=>{U=!1,M&&y(N,M),Xe(M)}),X._write=function(M,le,Je){C.write(M,le)?Je():re=Je},X._final=function(M){C.end(),ie=M},C.on("drain",function(){if(re){const M=re;re=null,M()}}),C.on("finish",function(){if(ie){const M=ie;ie=null,M()}})),J&&(g(N,M=>{J=!1,M&&y(N,M),Xe(M)}),N.on("readable",function(){if(ee){const M=ee;ee=null,M()}}),N.on("end",function(){X.push(null)}),X._read=function(){for(;;){const M=N.read();if(M===null){ee=X._read;return}if(!X.push(M))return}}),X._destroy=function(M,le){!M&&oe!==null&&(M=new d),ee=null,re=null,ie=null,oe===null?le(M):(oe=le,y(C,M),y(N,M))},X}return kr}var $r,Vo;function nt(){if(Vo)return $r;Vo=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:n,ObjectSetPrototypeOf:r}=te;$r=i;const o=tr(),a=Ni();r(i.prototype,o.prototype),r(i,o);{const p=n(a.prototype);for(let g=0;g{if(t){e?e(t):this.destroy(t);return}n!=null&&this.push(n),this.push(null),e&&e()}):(this.push(null),e&&e())}function of(){this._final!==hi&&hi.call(this)}rt.prototype._final=hi;rt.prototype._transform=function(e,t,n){throw new nf("_transform()")};rt.prototype._write=function(e,t,n){const r=this._readableState,o=this._writableState,a=r.length;this._transform(e,t,(i,l)=>{if(i){n(i);return}l!=null&&this.push(l),o.ended||a===r.length||r.length{r=!0});const o=Un(e,{readable:t,writable:n},a=>{r=!a});return{destroy:a=>{r||(r=!0,uf.destroyer(e,a||new pf("pipe")))},cleanup:o}}function Sf(e){return bf(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function Hr(e){if(_t(e))return e;if($n(e))return Ef(e);throw new pi("val",["Readable","Iterable","AsyncIterable"],e)}async function*Ef(e){Jr||(Jr=tr()),yield*Jr.prototype[lf].call(e)}async function xn(e,t,n,{end:r}){let o,a=null;const i=c=>{if(c&&(o=c),a){const p=a;a=null,p()}},l=()=>new sf((c,p)=>{o?p(o):a=()=>{o?p(o):c()}});t.on("drain",i);const f=Un(t,{readable:!1},i);try{t.writableNeedDrain&&await l();for await(const c of e)t.write(c)||await l();r&&(t.end(),await l()),n()}catch(c){n(o!==c?ff(o,c):c)}finally{f(),t.off("drain",i)}}async function Br(e,t,n,{end:r}){Ht(t)&&(t=t.writable);const o=t.getWriter();try{for await(const a of e)await o.ready,o.write(a).catch(()=>{});await o.ready,r&&await o.close(),n()}catch(a){try{await o.abort(a),n(a)}catch(i){n(i)}}}function Rf(...e){return vs(e,df(Sf(e)))}function vs(e,t,n){if(e.length===1&&af(e[0])&&(e=e[0]),e.length<2)throw new hf("streams");const r=new mf,o=r.signal,a=n==null?void 0:n.signal,i=[];wf(a,"options.signal");function l(){u(new yf)}Ur=Ur||ve.addAbortListener;let f;a&&(f=Ur(a,l));let c,p;const g=[];let d=0;function s(E){u(E,--d===0)}function u(E,S){var I;if(E&&(!c||c.code==="ERR_STREAM_PREMATURE_CLOSE")&&(c=E),!(!c&&!S)){for(;g.length;)g.shift()(c);(I=f)===null||I===void 0||I[cf](),r.abort(),S&&(c||i.forEach(x=>x()),an.nextTick(t,c,p))}}let y;for(let E=0;E0,R=I||(n==null?void 0:n.end)!==!1,V=E===e.length-1;if(qo(S)){let k=function(F){F&&F.name!=="AbortError"&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"&&s(F)};if(R){const{destroy:F,cleanup:ne}=Co(S,I,x);g.push(F),Pr(S)&&V&&i.push(ne)}S.on("error",k),Pr(S)&&V&&i.push(()=>{S.removeListener("error",k)})}if(E===0)if(typeof S=="function"){if(y=S({signal:o}),!_t(y))throw new Mr("Iterable, AsyncIterable or Stream","source",y)}else _t(S)||$n(S)||Ht(S)?y=S:y=Go.from(S);else if(typeof S=="function"){if(Ht(y)){var w;y=Hr((w=y)===null||w===void 0?void 0:w.readable)}else y=Hr(y);if(y=S(y,{signal:o}),I){if(!_t(y,!0))throw new Mr("AsyncIterable",`transform[${E-1}]`,y)}else{var v;Wr||(Wr=ws);const k=new Wr({objectMode:!0}),F=(v=y)===null||v===void 0?void 0:v.then;if(typeof F=="function")d++,F.call(y,H=>{p=H,H!=null&&k.write(H),R&&k.end(),an.nextTick(s)},H=>{k.destroy(H),an.nextTick(s,H)});else if(_t(y,!0))d++,xn(y,k,s,{end:R});else if(Fr(y)||Ht(y)){const H=y.readable||y;d++,xn(H,k,s,{end:R})}else throw new Mr("AsyncIterable or Promise","destination",y);y=k;const{destroy:ne,cleanup:se}=Co(y,!1,!0);g.push(ne),V&&i.push(se)}}else if(qo(S)){if($n(y)){d+=2;const k=If(y,S,s,{end:R});Pr(S)&&V&&i.push(k)}else if(Ht(y)||Fr(y)){const k=y.readable||y;d++,xn(k,S,s,{end:R})}else if(_t(y))d++,xn(y,S,s,{end:R});else throw new pi("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y);y=S}else if(vf(S)){if($n(y))d++,Br(Hr(y),S,s,{end:R});else if(Fr(y)||_t(y))d++,Br(y,S,s,{end:R});else if(Ht(y))d++,Br(y.readable,S,s,{end:R});else throw new pi("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y);y=S}else y=Go.from(S)}return(o!=null&&o.aborted||a!=null&&a.aborted)&&an.nextTick(l),y}function If(e,t,n,{end:r}){let o=!1;if(t.on("close",()=>{o||n(new gf)}),e.pipe(t,{end:!1}),r){let a=function(){o=!0,t.end()};_f(e)?an.nextTick(a):e.once("end",a)}else n();return Un(e,{readable:!0,writable:!1},a=>{const i=e._readableState;a&&a.code==="ERR_STREAM_PREMATURE_CLOSE"&&i&&i.ended&&!i.errored&&!i.errorEmitted?e.once("end",n).once("error",n):n(a)}),Un(t,{readable:!1,writable:!0},n)}var Li={pipelineImpl:vs,pipeline:Rf};const{pipeline:Af}=Li,Nn=nt(),{destroyer:xf}=zt,{isNodeStream:Dn,isReadable:Xo,isWritable:zo,isWebStream:Vr,isTransformStream:vt,isWritableStream:Ko,isReadableStream:Yo}=ot,{AbortError:Nf,codes:{ERR_INVALID_ARG_VALUE:Qo,ERR_MISSING_ARGS:Df}}=me,Of=pt;var _s=function(...t){if(t.length===0)throw new Df("streams");if(t.length===1)return Nn.from(t[0]);const n=[...t];if(typeof t[0]=="function"&&(t[0]=Nn.from(t[0])),typeof t[t.length-1]=="function"){const s=t.length-1;t[s]=Nn.from(t[s])}for(let s=0;s0&&!(zo(t[s])||Ko(t[s])||vt(t[s])))throw new Qo(`streams[${s}]`,n[s],"must be writable")}let r,o,a,i,l;function f(s){const u=i;i=null,u?u(s):s?l.destroy(s):!d&&!g&&l.destroy()}const c=t[0],p=Af(t,f),g=!!(zo(c)||Ko(c)||vt(c)),d=!!(Xo(p)||Yo(p)||vt(p));if(l=new Nn({writableObjectMode:!!(c!=null&&c.writableObjectMode),readableObjectMode:!!(p!=null&&p.readableObjectMode),writable:g,readable:d}),g){if(Dn(c))l._write=function(u,y,w){c.write(u,y)?w():r=w},l._final=function(u){c.end(),o=u},c.on("drain",function(){if(r){const u=r;r=null,u()}});else if(Vr(c)){const y=(vt(c)?c.writable:c).getWriter();l._write=async function(w,v,E){try{await y.ready,y.write(w).catch(()=>{}),E()}catch(S){E(S)}},l._final=async function(w){try{await y.ready,y.close().catch(()=>{}),o=w}catch(v){w(v)}}}const s=vt(p)?p.readable:p;Of(s,()=>{if(o){const u=o;o=null,u()}})}if(d){if(Dn(p))p.on("readable",function(){if(a){const s=a;a=null,s()}}),p.on("end",function(){l.push(null)}),l._read=function(){for(;;){const s=p.read();if(s===null){a=l._read;return}if(!l.push(s))return}};else if(Vr(p)){const u=(vt(p)?p.readable:p).getReader();l._read=async function(){for(;;)try{const{value:y,done:w}=await u.read();if(!l.push(y))return;if(w){l.push(null);return}}catch{return}}}}return l._destroy=function(s,u){!s&&i!==null&&(s=new Nf),a=null,r=null,o=null,i===null?u(s):(i=u,Dn(p)&&xf(p,s))},l};const Lf=globalThis.AbortController||hn().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Tf,ERR_INVALID_ARG_TYPE:bn,ERR_MISSING_ARGS:jf,ERR_OUT_OF_RANGE:kf},AbortError:qe}=me,{validateAbortSignal:kt,validateInteger:Zo,validateObject:$t}=yn,$f=te.Symbol("kWeak"),Mf=te.Symbol("kResistStopPropagation"),{finished:Pf}=pt,Ff=_s,{addAbortSignalNoValidate:Wf}=Zn,{isWritable:Jf,isNodeStream:Uf}=ot,{deprecate:Hf}=ve,{ArrayPrototypePush:Bf,Boolean:Vf,MathFloor:ea,Number:Gf,NumberIsNaN:qf,Promise:ta,PromiseReject:na,PromiseResolve:Cf,PromisePrototypeThen:ra,Symbol:ms}=te,Hn=ms("kEmpty"),ia=ms("kEof");function Xf(e,t){if(t!=null&&$t(t,"options"),(t==null?void 0:t.signal)!=null&&kt(t.signal,"options.signal"),Uf(e)&&!Jf(e))throw new Tf("stream",e,"must be writable");const n=Ff(this,e);return t!=null&&t.signal&&Wf(t.signal,n),n}function nr(e,t){if(typeof e!="function")throw new bn("fn",["Function","AsyncFunction"],e);t!=null&&$t(t,"options"),(t==null?void 0:t.signal)!=null&&kt(t.signal,"options.signal");let n=1;(t==null?void 0:t.concurrency)!=null&&(n=ea(t.concurrency));let r=n-1;return(t==null?void 0:t.highWaterMark)!=null&&(r=ea(t.highWaterMark)),Zo(n,"options.concurrency",1),Zo(r,"options.highWaterMark",0),r+=n,(async function*(){const a=ve.AbortSignalAny([t==null?void 0:t.signal].filter(Vf)),i=this,l=[],f={signal:a};let c,p,g=!1,d=0;function s(){g=!0,u()}function u(){d-=1,y()}function y(){p&&!g&&d=r||d>=n)&&await new ta(E=>{p=E})}l.push(ia)}catch(v){const E=na(v);ra(E,u,s),l.push(E)}finally{g=!0,c&&(c(),c=null)}}w();try{for(;;){for(;l.length>0;){const v=await l[0];if(v===ia)return;if(a.aborted)throw new qe;v!==Hn&&(yield v),l.shift(),y()}await new ta(v=>{c=v})}}finally{g=!0,p&&(p(),p=null)}}).call(this)}function zf(e=void 0){return e!=null&&$t(e,"options"),(e==null?void 0:e.signal)!=null&&kt(e.signal,"options.signal"),(async function*(){let n=0;for await(const o of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new qe({cause:e.signal.reason});yield[n++,o]}}).call(this)}async function Ss(e,t=void 0){for await(const n of Ti.call(this,e,t))return!0;return!1}async function Kf(e,t=void 0){if(typeof e!="function")throw new bn("fn",["Function","AsyncFunction"],e);return!await Ss.call(this,async(...n)=>!await e(...n),t)}async function Yf(e,t){for await(const n of Ti.call(this,e,t))return n}async function Qf(e,t){if(typeof e!="function")throw new bn("fn",["Function","AsyncFunction"],e);async function n(r,o){return await e(r,o),Hn}for await(const r of nr.call(this,n,t));}function Ti(e,t){if(typeof e!="function")throw new bn("fn",["Function","AsyncFunction"],e);async function n(r,o){return await e(r,o)?r:Hn}return nr.call(this,n,t)}class Zf extends jf{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function eh(e,t,n){var r;if(typeof e!="function")throw new bn("reducer",["Function","AsyncFunction"],e);n!=null&&$t(n,"options"),(n==null?void 0:n.signal)!=null&&kt(n.signal,"options.signal");let o=arguments.length>1;if(n!=null&&(r=n.signal)!==null&&r!==void 0&&r.aborted){const c=new qe(void 0,{cause:n.signal.reason});throw this.once("error",()=>{}),await Pf(this.destroy(c)),c}const a=new Lf,i=a.signal;if(n!=null&&n.signal){const c={once:!0,[$f]:this,[Mf]:!0};n.signal.addEventListener("abort",()=>a.abort(),c)}let l=!1;try{for await(const c of this){var f;if(l=!0,n!=null&&(f=n.signal)!==null&&f!==void 0&&f.aborted)throw new qe;o?t=await e(t,c,{signal:i}):(t=c,o=!0)}if(!l&&!o)throw new Zf}finally{a.abort()}return t}async function th(e){e!=null&&$t(e,"options"),(e==null?void 0:e.signal)!=null&&kt(e.signal,"options.signal");const t=[];for await(const r of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new qe(void 0,{cause:e.signal.reason});Bf(t,r)}return t}function nh(e,t){const n=nr.call(this,e,t);return(async function*(){for await(const o of n)yield*o}).call(this)}function Es(e){if(e=Gf(e),qf(e))return 0;if(e<0)throw new kf("number",">= 0",e);return e}function rh(e,t=void 0){return t!=null&&$t(t,"options"),(t==null?void 0:t.signal)!=null&&kt(t.signal,"options.signal"),e=Es(e),(async function*(){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new qe;for await(const a of this){var o;if(t!=null&&(o=t.signal)!==null&&o!==void 0&&o.aborted)throw new qe;e--<=0&&(yield a)}}).call(this)}function ih(e,t=void 0){return t!=null&&$t(t,"options"),(t==null?void 0:t.signal)!=null&&kt(t.signal,"options.signal"),e=Es(e),(async function*(){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new qe;for await(const a of this){var o;if(t!=null&&(o=t.signal)!==null&&o!==void 0&&o.aborted)throw new qe;if(e-- >0&&(yield a),e<=0)return}}).call(this)}Si.streamReturningOperators={asIndexedPairs:Hf(zf,"readable.asIndexedPairs will be removed in a future version."),drop:rh,filter:Ti,flatMap:nh,map:nr,take:ih,compose:Xf};Si.promiseReturningOperators={every:Kf,forEach:Qf,reduce:eh,toArray:th,some:Ss,find:Yf};var Gr,oa;function Rs(){if(oa)return Gr;oa=1;const{ArrayPrototypePop:e,Promise:t}=te,{isIterable:n,isNodeStream:r,isWebStream:o}=ot,{pipelineImpl:a}=Li,{finished:i}=pt;Is();function l(...f){return new t((c,p)=>{let g,d;const s=f[f.length-1];if(s&&typeof s=="object"&&!r(s)&&!n(s)&&!o(s)){const u=e(f);g=u.signal,d=u.end}a(f,(u,y)=>{u?p(u):c(y)},{signal:g,end:d})})}return Gr={finished:i,pipeline:l},Gr}var aa;function Is(){if(aa)return Nr.exports;aa=1;const{Buffer:e}=Ot,{ObjectDefineProperty:t,ObjectKeys:n,ReflectApply:r}=te,{promisify:{custom:o}}=ve,{streamReturningOperators:a,promiseReturningOperators:i}=Si,{codes:{ERR_ILLEGAL_CONSTRUCTOR:l}}=me,f=_s,{setDefaultHighWaterMark:c,getDefaultHighWaterMark:p}=er,{pipeline:g}=Li,{destroyer:d}=zt,s=pt,u=Rs(),y=ot,w=Nr.exports=xi.Stream;w.isDestroyed=y.isDestroyed,w.isDisturbed=y.isDisturbed,w.isErrored=y.isErrored,w.isReadable=y.isReadable,w.isWritable=y.isWritable,w.Readable=tr();for(const E of n(a)){let I=function(...x){if(new.target)throw l();return w.Readable.from(r(S,this,x))};const S=a[E];t(I,"name",{__proto__:null,value:S.name}),t(I,"length",{__proto__:null,value:S.length}),t(w.Readable.prototype,E,{__proto__:null,value:I,enumerable:!1,configurable:!0,writable:!0})}for(const E of n(i)){let I=function(...x){if(new.target)throw l();return r(S,this,x)};const S=i[E];t(I,"name",{__proto__:null,value:S.name}),t(I,"length",{__proto__:null,value:S.length}),t(w.Readable.prototype,E,{__proto__:null,value:I,enumerable:!1,configurable:!0,writable:!0})}w.Writable=Ni(),w.Duplex=nt(),w.Transform=ys,w.PassThrough=ws,w.pipeline=g;const{addAbortSignal:v}=Zn;return w.addAbortSignal=v,w.finished=s,w.destroy=d,w.compose=f,w.setDefaultHighWaterMark=c,w.getDefaultHighWaterMark=p,t(w,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return u}}),t(g,o,{__proto__:null,enumerable:!0,get(){return u.pipeline}}),t(s,o,{__proto__:null,enumerable:!0,get(){return u.finished}}),w.Stream=w,w._isUint8Array=function(S){return S instanceof Uint8Array},w._uint8ArrayToBuffer=function(S){return e.from(S.buffer,S.byteOffset,S.byteLength)},Nr.exports}(function(e){const t=Is(),n=Rs(),r=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=r,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return n}}),e.exports.Stream=t.Stream,e.exports.default=e.exports})($a);var oh=$a.exports;async function ah(e){const t=[];for await(const n of e)t.push(n);return t}class St extends oh.Readable{constructor(t,{baseIRI:n,compact:r,context:o={},encoding:a="object",flatten:i,frame:l,prettyPrint:f,skipContext:c}={}){super({objectMode:!0,read:()=>{}}),this.compact=r,this.context=o,this.encoding=a,this.flatten=i,this.frame=l,this.prettyPrint=f,this.skipContext=c,n&&(this.context["@base"]=n.value||n.toString()),t.on("prefix",(p,g)=>{this.context[p]||(this.context[p]=g.value)}),this.handleData(t)}async handleData(t){try{const n=(await ah(t)).map(St.toJsonldQuad),r=await In.fromRDF(n),o=await this.transform(r,this.options);this.push(o),this.push(null)}catch(n){this.emit("error",n)}}async transform(t){return this.compact&&(t=await In.compact(t,this.context)),this.flatten&&(t=await In.flatten(t,this.context)),this.frame&&(t=await In.frame(t,this.context)),this.skipContext&&t["@context"]&&delete t["@context"],this.encoding==="string"?this.prettyPrint?JSON.stringify(t,null,2):JSON.stringify(t):t}static toJsonldQuad(t){return{subject:St.toJsonldTerm(t.subject),predicate:St.toJsonldTerm(t.predicate),object:St.toJsonldTerm(t.object),graph:St.toJsonldTerm(t.graph)}}static toJsonldTerm(t){return t.termType==="BlankNode"?{termType:"BlankNode",value:`_:${t.value}`}:t}}class vh extends Fs{constructor(t){super(St,t)}}export{vh as default}; diff --git a/assets/index-BOvYCoiN.js b/assets/index-BOvYCoiN.js deleted file mode 100644 index 4a20221..0000000 --- a/assets/index-BOvYCoiN.js +++ /dev/null @@ -1 +0,0 @@ -class i{constructor(o,r){this.Impl=o,this.options=r}import(o,r){const t=new this.Impl(o,{...this.options,...r});return o.on("end",()=>{t.readable||t.emit("end")}),o.on("error",e=>{t.emit("error",e)}),t}}export{i as S}; diff --git a/assets/index-CZ2V_JFV.js b/assets/index-CZ2V_JFV.js new file mode 100644 index 0000000..562cb0d --- /dev/null +++ b/assets/index-CZ2V_JFV.js @@ -0,0 +1 @@ +import{d,j as e,e as m}from"./main-DsJMMZjG.js";async function x(r){const t=[];for await(const s of r)t.push(s);return t}class n extends d.Readable{constructor(t,{baseIRI:s,compact:o,context:i={},encoding:h="object",flatten:a,frame:l,prettyPrint:u,skipContext:f}={}){super({objectMode:!0,read:()=>{}}),this.compact=o,this.context=i,this.encoding=h,this.flatten=a,this.frame=l,this.prettyPrint=u,this.skipContext=f,s&&(this.context["@base"]=s.value||s.toString()),t.on("prefix",(c,p)=>{this.context[c]||(this.context[c]=p.value)}),this.handleData(t)}async handleData(t){try{const s=(await x(t)).map(n.toJsonldQuad),o=await e.fromRDF(s),i=await this.transform(o,this.options);this.push(i),this.push(null)}catch(s){this.emit("error",s)}}async transform(t){return this.compact&&(t=await e.compact(t,this.context)),this.flatten&&(t=await e.flatten(t,this.context)),this.frame&&(t=await e.frame(t,this.context)),this.skipContext&&t["@context"]&&delete t["@context"],this.encoding==="string"?this.prettyPrint?JSON.stringify(t,null,2):JSON.stringify(t):t}static toJsonldQuad(t){return{subject:n.toJsonldTerm(t.subject),predicate:n.toJsonldTerm(t.predicate),object:n.toJsonldTerm(t.object),graph:n.toJsonldTerm(t.graph)}}static toJsonldTerm(t){return t.termType==="BlankNode"?{termType:"BlankNode",value:`_:${t.value}`}:t}}class J extends m{constructor(t){super(n,t)}}export{J as default}; diff --git a/assets/index-CpxM9Dlb.js b/assets/index-CpxM9Dlb.js deleted file mode 100644 index 913d891..0000000 --- a/assets/index-CpxM9Dlb.js +++ /dev/null @@ -1,3 +0,0 @@ -import{S as ci}from"./index-BOvYCoiN.js";import{a as qe,e as ot,b as Ie,d as $e,s as bi,t as hi}from"./main-CO-45Vwa.js";import{r as pi}from"./readable-BmS1kvD9.js";var fn={exports:{}},mt={exports:{}},H={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array},un={exports:{}};(function(e){const t=Ie,{kResistStopPropagation:r,SymbolDispose:i}=H,l=globalThis.AbortSignal||qe().AbortSignal,s=globalThis.AbortController||qe().AbortController,d=Object.getPrototypeOf(async function(){}).constructor,g=globalThis.Blob||t.Blob,R=typeof g<"u"?function(u){return u instanceof g}:function(u){return!1},b=(c,u)=>{if(c!==void 0&&(c===null||typeof c!="object"||!("aborted"in c)))throw new ERR_INVALID_ARG_TYPE(u,"AbortSignal",c)},_=(c,u)=>{if(typeof c!="function")throw new ERR_INVALID_ARG_TYPE(u,"Function",c)};class v extends Error{constructor(u){if(!Array.isArray(u))throw new TypeError(`Expected input to be an Array, got ${typeof u}`);let m="";for(let h=0;h{c=h,u=A}),resolve:c,reject:u}},promisify(c){return new Promise((u,m)=>{c((h,...A)=>h?m(h):u(...A))})},debuglog(){return function(){}},format(c,...u){return c.replace(/%([sdifj])/g,function(...[m,h]){const A=u.shift();return h==="f"?A.toFixed(6):h==="j"?JSON.stringify(A):h==="s"&&typeof A=="object"?`${A.constructor!==Object?A.constructor.name:""} {}`.trim():A.toString()})},inspect(c){switch(typeof c){case"string":if(c.includes("'"))if(c.includes('"')){if(!c.includes("`")&&!c.includes("${"))return`\`${c}\``}else return`"${c}"`;return`'${c}'`;case"number":return isNaN(c)?"NaN":Object.is(c,-0)?String(c):c;case"bigint":return`${String(c)}n`;case"boolean":case"undefined":return String(c);case"object":return"{}"}},types:{isAsyncFunction(c){return c instanceof d},isArrayBufferView(c){return ArrayBuffer.isView(c)}},isBlob:R,deprecate(c,u){return c},addAbortListener:ot.addAbortListener||function(u,m){if(u===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",u);b(u,"signal"),_(m,"listener");let h;return u.aborted?queueMicrotask(()=>m()):(u.addEventListener("abort",m,{__proto__:null,once:!0,[r]:!0}),h=()=>{u.removeEventListener("abort",m)}),{__proto__:null,[i](){var A;(A=h)===null||A===void 0||A()}}},AbortSignalAny:l.any||function(u){if(u.length===1)return u[0];const m=new s,h=()=>m.abort();return u.forEach(A=>{b(A,"signals"),A.addEventListener("abort",h,{once:!0})}),m.signal.addEventListener("abort",()=>{u.forEach(A=>A.removeEventListener("abort",h))},{once:!0}),m.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(un);var te=un.exports,Zt={};const{format:_i,inspect:rt,AggregateError:yi}=te,wi=globalThis.AggregateError||yi,gi=Symbol("kIsNodeError"),Si=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Ei=/^([A-Z][a-z0-9]*)+$/,Ri="__node_internal_",lt={};function ve(e,t){if(!e)throw new lt.ERR_INTERNAL_ASSERTION(t)}function Er(e){let t="",r=e.length;const i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Ai(e,t,r){if(typeof t=="function")return ve(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const i=(t.match(/%[dfijoOs]/g)||[]).length;return ve(i===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?t:_i(t,...r)}function Q(e,t,r){r||(r=Error);class i extends r{constructor(...s){super(Ai(e,t,s))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[gi]=!0,lt[e]=i}function Rr(e){const t=Ri+e.name;return Object.defineProperty(e,"name",{value:t}),e}function mi(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new wi([t,e],t.message);return r.code=t.code,r}return e||t}let vi=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new lt.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};Q("ERR_ASSERTION","%s",Error);Q("ERR_INVALID_ARG_TYPE",(e,t,r)=>{ve(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";e.endsWith(" argument")?i+=`${e} `:i+=`"${e}" ${e.includes(".")?"property":"argument"} `,i+="must be ";const l=[],s=[],d=[];for(const R of t)ve(typeof R=="string","All expected entries have to be of type string"),Si.includes(R)?l.push(R.toLowerCase()):Ei.test(R)?s.push(R):(ve(R!=="object",'The value "object" should be written as "Object"'),d.push(R));if(s.length>0){const R=l.indexOf("object");R!==-1&&(l.splice(l,R,1),s.push("Object"))}if(l.length>0){switch(l.length){case 1:i+=`of type ${l[0]}`;break;case 2:i+=`one of type ${l[0]} or ${l[1]}`;break;default:{const R=l.pop();i+=`one of type ${l.join(", ")}, or ${R}`}}(s.length>0||d.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const R=s.pop();i+=`an instance of ${s.join(", ")}, or ${R}`}}d.length>0&&(i+=" or ")}switch(d.length){case 0:break;case 1:d[0].toLowerCase()!==d[0]&&(i+="an "),i+=`${d[0]}`;break;case 2:i+=`one of ${d[0]} or ${d[1]}`;break;default:{const R=d.pop();i+=`one of ${d.join(", ")}, or ${R}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var g;if((g=r.constructor)!==null&&g!==void 0&&g.name)i+=`. Received an instance of ${r.constructor.name}`;else{const R=rt(r,{depth:-1});i+=`. Received ${R}`}}else{let R=rt(r,{colors:!1});R.length>25&&(R=`${R.slice(0,25)}...`),i+=`. Received type ${typeof r} (${R})`}return i},TypeError);Q("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=rt(t);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${i}`},TypeError);Q("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var i;const l=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${l}.`},TypeError);Q("ERR_MISSING_ARGS",(...e)=>{ve(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(i=>`"${i}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const i=e.pop();t+=`The ${e.join(", ")}, and ${i} arguments`}break}return`${t} must be specified`},TypeError);Q("ERR_OUT_OF_RANGE",(e,t,r)=>{ve(t,'Missing "range" argument');let i;return Number.isInteger(r)&&Math.abs(r)>2**32?i=Er(String(r)):typeof r=="bigint"?(i=String(r),(r>2n**32n||r<-(2n**32n))&&(i=Er(i)),i+="n"):i=rt(r),`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError);Q("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Q("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Q("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Q("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Q("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Q("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Q("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Q("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Q("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Q("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var ie={AbortError:vi,aggregateTwoErrors:Rr(mi),hideStackFrames:Rr,codes:lt};const{ArrayIsArray:er,ArrayPrototypeIncludes:dn,ArrayPrototypeJoin:cn,ArrayPrototypeMap:Ti,NumberIsInteger:tr,NumberIsNaN:Ii,NumberMAX_SAFE_INTEGER:$i,NumberMIN_SAFE_INTEGER:Ni,NumberParseInt:Di,ObjectPrototypeHasOwnProperty:Mi,RegExpPrototypeExec:bn,String:ki,StringPrototypeToUpperCase:Pi,StringPrototypeTrim:Li}=H,{hideStackFrames:ae,codes:{ERR_SOCKET_BAD_PORT:Oi,ERR_INVALID_ARG_TYPE:ee,ERR_INVALID_ARG_VALUE:Fe,ERR_OUT_OF_RANGE:Te,ERR_UNKNOWN_SIGNAL:Ar}}=ie,{normalizeEncoding:Wi}=te,{isAsyncFunction:xi,isArrayBufferView:Ci}=te.types,mr={};function Fi(e){return e===(e|0)}function ji(e){return e===e>>>0}const Ui=/^[0-7]+$/,Bi="must be a 32-bit unsigned integer or an octal string";function Gi(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(bn(Ui,e)===null)throw new Fe(t,e,Bi);e=Di(e,8)}return hn(e,t),e}const Vi=ae((e,t,r=Ni,i=$i)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!tr(e))throw new Te(t,"an integer",e);if(ei)throw new Te(t,`>= ${r} && <= ${i}`,e)}),Hi=ae((e,t,r=-2147483648,i=2147483647)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!tr(e))throw new Te(t,"an integer",e);if(ei)throw new Te(t,`>= ${r} && <= ${i}`,e)}),hn=ae((e,t,r=!1)=>{if(typeof e!="number")throw new ee(t,"number",e);if(!tr(e))throw new Te(t,"an integer",e);const i=r?1:0,l=4294967295;if(el)throw new Te(t,`>= ${i} && <= ${l}`,e)});function rr(e,t){if(typeof e!="string")throw new ee(t,"string",e)}function qi(e,t,r=void 0,i){if(typeof e!="number")throw new ee(t,"number",e);if(r!=null&&ei||(r!=null||i!=null)&&Ii(e))throw new Te(t,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,e)}const Yi=ae((e,t,r)=>{if(!dn(r,e)){const l="must be one of: "+cn(Ti(r,s=>typeof s=="string"?`'${s}'`:ki(s)),", ");throw new Fe(t,e,l)}});function pn(e,t){if(typeof e!="boolean")throw new ee(t,"boolean",e)}function vt(e,t,r){return e==null||!Mi(e,t)?r:e[t]}const zi=ae((e,t,r=null)=>{const i=vt(r,"allowArray",!1),l=vt(r,"allowFunction",!1);if(!vt(r,"nullable",!1)&&e===null||!i&&er(e)||typeof e!="object"&&(!l||typeof e!="function"))throw new ee(t,"Object",e)}),Ki=ae((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new ee(t,"a dictionary",e)}),at=ae((e,t,r=0)=>{if(!er(e))throw new ee(t,"Array",e);if(e.length{if(!Ci(e))throw new ee(t,["Buffer","TypedArray","DataView"],e)});function to(e,t){const r=Wi(t),i=e.length;if(r==="hex"&&i%2!==0)throw new Fe("encoding",t,`is invalid for data of length ${i}`)}function ro(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&Li(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new Oi(t,e,r);return e|0}const _n=ae((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new ee(t,"AbortSignal",e)}),no=ae((e,t)=>{if(typeof e!="function")throw new ee(t,"Function",e)}),io=ae((e,t)=>{if(typeof e!="function"||xi(e))throw new ee(t,"Function",e)}),oo=ae((e,t)=>{if(e!==void 0)throw new ee(t,"undefined",e)});function lo(e,t,r){if(!dn(r,e))throw new ee(t,`('${cn(r,"|")}')`,e)}const ao=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function vr(e,t){if(typeof e>"u"||!bn(ao,e))throw new Fe(t,e,'must be an array or string of format "; rel=preload; as=style"')}function so(e){if(typeof e=="string")return vr(e,"hints"),e;if(er(e)){const t=e.length;let r="";if(t===0)return r;for(let i=0;i; rel=preload; as=style"')}var Ye={isInt32:Fi,isUint32:ji,parseFileMode:Gi,validateArray:at,validateStringArray:Xi,validateBooleanArray:Ji,validateAbortSignalArray:Qi,validateBoolean:pn,validateBuffer:eo,validateDictionary:Ki,validateEncoding:to,validateFunction:no,validateInt32:Hi,validateInteger:Vi,validateNumber:qi,validateObject:zi,validateOneOf:Yi,validatePlainFunction:io,validatePort:ro,validateSignalName:Zi,validateString:rr,validateUint32:hn,validateUndefined:oo,validateUnion:lo,validateAbortSignal:_n,validateLinkHeaderValue:so},nr={exports:{}};const{SymbolAsyncIterator:Tr,SymbolIterator:Ir,SymbolFor:Ne}=H,yn=Ne("nodejs.stream.destroyed"),wn=Ne("nodejs.stream.errored"),Bt=Ne("nodejs.stream.readable"),Gt=Ne("nodejs.stream.writable"),gn=Ne("nodejs.stream.disturbed"),fo=Ne("nodejs.webstream.isClosedPromise"),uo=Ne("nodejs.webstream.controllerErrorFunction");function st(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function ft(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function co(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function de(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function Sn(e){return!!(e&&!de(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function En(e){return!!(e&&!de(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function Rn(e){return!!(e&&!de(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function bo(e){return Sn(e)||En(e)||Rn(e)}function ho(e,t){return e==null?!1:t===!0?typeof e[Tr]=="function":t===!1?typeof e[Ir]=="function":typeof e[Tr]=="function"||typeof e[Ir]=="function"}function ut(e){if(!de(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!!(e.destroyed||e[yn]||i!=null&&i.destroyed)}function An(e){if(!ft(e))return null;if(e.writableEnded===!0)return!0;const t=e._writableState;return t!=null&&t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function po(e,t){if(!ft(e))return null;if(e.writableFinished===!0)return!0;const r=e._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function _o(e){if(!st(e))return null;if(e.readableEnded===!0)return!0;const t=e._readableState;return!t||t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function mn(e,t){if(!st(e))return null;const r=e._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function vn(e){return e&&e[Bt]!=null?e[Bt]:typeof(e==null?void 0:e.readable)!="boolean"?null:ut(e)?!1:st(e)&&e.readable&&!mn(e)}function Tn(e){return e&&e[Gt]!=null?e[Gt]:typeof(e==null?void 0:e.writable)!="boolean"?null:ut(e)?!1:ft(e)&&e.writable&&!An(e)}function yo(e,t){return de(e)?ut(e)?!0:!((t==null?void 0:t.readable)!==!1&&vn(e)||(t==null?void 0:t.writable)!==!1&&Tn(e)):null}function wo(e){var t,r;return de(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function go(e){var t,r;return de(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function So(e){if(!de(e))return null;if(typeof e.closed=="boolean")return e.closed;const t=e._writableState,r=e._readableState;return typeof(t==null?void 0:t.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(t==null?void 0:t.closed)||(r==null?void 0:r.closed):typeof e._closed=="boolean"&&In(e)?e._closed:null}function In(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function $n(e){return typeof e._sent100=="boolean"&&In(e)}function Eo(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function Ro(e){if(!de(e))return null;const t=e._writableState,r=e._readableState,i=t||r;return!i&&$n(e)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function Ao(e){var t;return!!(e&&((t=e[gn])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function mo(e){var t,r,i,l,s,d,g,R,b,_;return!!(e&&((t=(r=(i=(l=(s=(d=e[wn])!==null&&d!==void 0?d:e.readableErrored)!==null&&s!==void 0?s:e.writableErrored)!==null&&l!==void 0?l:(g=e._readableState)===null||g===void 0?void 0:g.errorEmitted)!==null&&i!==void 0?i:(R=e._writableState)===null||R===void 0?void 0:R.errorEmitted)!==null&&r!==void 0?r:(b=e._readableState)===null||b===void 0?void 0:b.errored)!==null&&t!==void 0?t:!((_=e._writableState)===null||_===void 0)&&_.errored))}var ye={isDestroyed:ut,kIsDestroyed:yn,isDisturbed:Ao,kIsDisturbed:gn,isErrored:mo,kIsErrored:wn,isReadable:vn,kIsReadable:Bt,kIsClosedPromise:fo,kControllerErrorFunction:uo,kIsWritable:Gt,isClosed:So,isDuplexNodeStream:co,isFinished:yo,isIterable:ho,isReadableNodeStream:st,isReadableStream:Sn,isReadableEnded:_o,isReadableFinished:mn,isReadableErrored:go,isNodeStream:de,isWebStream:bo,isWritable:Tn,isWritableNodeStream:ft,isWritableStream:En,isWritableEnded:An,isWritableFinished:po,isWritableErrored:wo,isServerRequest:Eo,isServerResponse:$n,willEmitClose:Ro,isTransformStream:Rn};const ge=$e,{AbortError:Nn,codes:vo}=ie,{ERR_INVALID_ARG_TYPE:To,ERR_STREAM_PREMATURE_CLOSE:$r}=vo,{kEmptyObject:Vt,once:Ht}=te,{validateAbortSignal:Io,validateFunction:$o,validateObject:No,validateBoolean:Do}=Ye,{Promise:Mo,PromisePrototypeThen:ko,SymbolDispose:Dn}=H,{isClosed:Po,isReadable:Nr,isReadableNodeStream:Tt,isReadableStream:Lo,isReadableFinished:Dr,isReadableErrored:Mr,isWritable:kr,isWritableNodeStream:Pr,isWritableStream:Oo,isWritableFinished:Lr,isWritableErrored:Or,isNodeStream:Wo,willEmitClose:xo,kIsClosedPromise:Co}=ye;let xe;function Fo(e){return e.setHeader&&typeof e.abort=="function"}const qt=()=>{};function Mn(e,t,r){var i,l;if(arguments.length===2?(r=t,t=Vt):t==null?t=Vt:No(t,"options"),$o(r,"callback"),Io(t.signal,"options.signal"),r=Ht(r),Lo(e)||Oo(e))return jo(e,t,r);if(!Wo(e))throw new To("stream",["ReadableStream","WritableStream","Stream"],e);const s=(i=t.readable)!==null&&i!==void 0?i:Tt(e),d=(l=t.writable)!==null&&l!==void 0?l:Pr(e),g=e._writableState,R=e._readableState,b=()=>{e.writable||c()};let _=xo(e)&&Tt(e)===s&&Pr(e)===d,v=Lr(e,!1);const c=()=>{v=!0,e.destroyed&&(_=!1),!(_&&(!e.readable||s))&&(!s||u)&&r.call(e)};let u=Dr(e,!1);const m=()=>{u=!0,e.destroyed&&(_=!1),!(_&&(!e.writable||d))&&(!d||v)&&r.call(e)},h=P=>{r.call(e,P)};let A=Po(e);const k=()=>{A=!0;const P=Or(e)||Mr(e);if(P&&typeof P!="boolean")return r.call(e,P);if(s&&!u&&Tt(e,!0)&&!Dr(e,!1))return r.call(e,new $r);if(d&&!v&&!Lr(e,!1))return r.call(e,new $r);r.call(e)},M=()=>{A=!0;const P=Or(e)||Mr(e);if(P&&typeof P!="boolean")return r.call(e,P);r.call(e)},y=()=>{e.req.on("finish",c)};Fo(e)?(e.on("complete",c),_||e.on("abort",k),e.req?y():e.on("request",y)):d&&!g&&(e.on("end",b),e.on("close",b)),!_&&typeof e.aborted=="boolean"&&e.on("aborted",k),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",h),e.on("close",k),A?ge.nextTick(k):g!=null&&g.errorEmitted||R!=null&&R.errorEmitted?_||ge.nextTick(M):(!s&&(!_||Nr(e))&&(v||kr(e)===!1)||!d&&(!_||kr(e))&&(u||Nr(e)===!1)||R&&e.req&&e.aborted)&&ge.nextTick(M);const j=()=>{r=qt,e.removeListener("aborted",k),e.removeListener("complete",c),e.removeListener("abort",k),e.removeListener("request",y),e.req&&e.req.removeListener("finish",c),e.removeListener("end",b),e.removeListener("close",b),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",h),e.removeListener("close",k)};if(t.signal&&!A){const P=()=>{const X=r;j(),X.call(e,new Nn(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)ge.nextTick(P);else{xe=xe||te.addAbortListener;const X=xe(t.signal,P),oe=r;r=Ht((...B)=>{X[Dn](),oe.apply(e,B)})}}return j}function jo(e,t,r){let i=!1,l=qt;if(t.signal)if(l=()=>{i=!0,r.call(e,new Nn(void 0,{cause:t.signal.reason}))},t.signal.aborted)ge.nextTick(l);else{xe=xe||te.addAbortListener;const d=xe(t.signal,l),g=r;r=Ht((...R)=>{d[Dn](),g.apply(e,R)})}const s=(...d)=>{i||ge.nextTick(()=>r.apply(e,d))};return ko(e[Co].promise,s,s),qt}function Uo(e,t){var r;let i=!1;return t===null&&(t=Vt),(r=t)!==null&&r!==void 0&&r.cleanup&&(Do(t.cleanup,"cleanup"),i=t.cleanup),new Mo((l,s)=>{const d=Mn(e,t,g=>{i&&d(),g?s(g):l()})})}nr.exports=Mn;nr.exports.finished=Uo;var Se=nr.exports;const fe=$e,{aggregateTwoErrors:Bo,codes:{ERR_MULTIPLE_CALLBACK:Go},AbortError:Vo}=ie,{Symbol:kn}=H,{kIsDestroyed:Ho,isDestroyed:qo,isFinished:Yo,isServerRequest:zo}=ye,Pn=kn("kDestroy"),Yt=kn("kConstruct");function Ln(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function Ko(e,t){const r=this._readableState,i=this._writableState,l=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(Ln(e,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),l.constructed?Wr(this,e,t):this.once(Pn,function(s){Wr(this,Bo(s,e),t)}),this)}function Wr(e,t,r){let i=!1;function l(s){if(i)return;i=!0;const d=e._readableState,g=e._writableState;Ln(s,g,d),g&&(g.closed=!0),d&&(d.closed=!0),typeof r=="function"&&r(s),s?fe.nextTick(Xo,e,s):fe.nextTick(On,e)}try{e._destroy(t||null,l)}catch(s){l(s)}}function Xo(e,t){zt(e,t),On(e)}function On(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function zt(e,t){const r=e._readableState,i=e._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function Jo(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function Kt(e,t,r){const i=e._readableState,l=e._writableState;if(l!=null&&l.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||l!=null&&l.autoDestroy?e.destroy(t):t&&(t.stack,l&&!l.errored&&(l.errored=t),i&&!i.errored&&(i.errored=t),r?fe.nextTick(zt,e,t):zt(e,t))}function Qo(e,t){if(typeof e._construct!="function")return;const r=e._readableState,i=e._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),e.once(Yt,t),!(e.listenerCount(Yt)>1)&&fe.nextTick(Zo,e)}function Zo(e){let t=!1;function r(i){if(t){Kt(e,i??new Go);return}t=!0;const l=e._readableState,s=e._writableState,d=s||l;l&&(l.constructed=!0),s&&(s.constructed=!0),d.destroyed?e.emit(Pn,i):i?Kt(e,i,!0):fe.nextTick(el,e)}try{e._construct(i=>{fe.nextTick(r,i)})}catch(i){fe.nextTick(r,i)}}function el(e){e.emit(Yt)}function xr(e){return(e==null?void 0:e.setHeader)&&typeof e.abort=="function"}function Wn(e){e.emit("close")}function tl(e,t){e.emit("error",t),fe.nextTick(Wn,e)}function rl(e,t){!e||qo(e)||(!t&&!Yo(e)&&(t=new Vo),zo(e)?(e.socket=null,e.destroy(t)):xr(e)?e.abort():xr(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?fe.nextTick(tl,e,t):fe.nextTick(Wn,e),e.destroyed||(e[Ho]=!0))}var je={construct:Qo,destroyer:rl,destroy:Ko,undestroy:Jo,errorOrDestroy:Kt};const{ArrayIsArray:nl,ObjectSetPrototypeOf:xn}=H,{EventEmitter:dt}=ot;function ct(e){dt.call(this,e)}xn(ct.prototype,dt.prototype);xn(ct,dt);ct.prototype.pipe=function(e,t){const r=this;function i(_){e.writable&&e.write(_)===!1&&r.pause&&r.pause()}r.on("data",i);function l(){r.readable&&r.resume&&r.resume()}e.on("drain",l),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",d),r.on("close",g));let s=!1;function d(){s||(s=!0,e.end())}function g(){s||(s=!0,typeof e.destroy=="function"&&e.destroy())}function R(_){b(),dt.listenerCount(this,"error")===0&&this.emit("error",_)}Xt(r,"error",R),Xt(e,"error",R);function b(){r.removeListener("data",i),e.removeListener("drain",l),r.removeListener("end",d),r.removeListener("close",g),r.removeListener("error",R),e.removeListener("error",R),r.removeListener("end",b),r.removeListener("close",b),e.removeListener("close",b)}return r.on("end",b),r.on("close",b),e.on("close",b),e.emit("pipe",r),e};function Xt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):nl(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}var ir={Stream:ct,prependListener:Xt},Cn={exports:{}};(function(e){const{SymbolDispose:t}=H,{AbortError:r,codes:i}=ie,{isNodeStream:l,isWebStream:s,kControllerErrorFunction:d}=ye,g=Se,{ERR_INVALID_ARG_TYPE:R}=i;let b;const _=(v,c)=>{if(typeof v!="object"||!("aborted"in v))throw new R(c,"AbortSignal",v)};e.exports.addAbortSignal=function(c,u){if(_(c,"signal"),!l(u)&&!s(u))throw new R("stream",["ReadableStream","WritableStream","Stream"],u);return e.exports.addAbortSignalNoValidate(c,u)},e.exports.addAbortSignalNoValidate=function(v,c){if(typeof v!="object"||!("aborted"in v))return c;const u=l(c)?()=>{c.destroy(new r(void 0,{cause:v.reason}))}:()=>{c[d](new r(void 0,{cause:v.reason}))};if(v.aborted)u();else{b=b||te.addAbortListener;const m=b(v,u);g(c,m[t])}return c}})(Cn);var bt=Cn.exports;const{StringPrototypeSlice:Cr,SymbolIterator:il,TypedArrayPrototypeSet:Je,Uint8Array:ol}=H,{Buffer:It}=Ie,{inspect:ll}=te;var al=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){const r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=t+r.data;return i}concat(t){if(this.length===0)return It.alloc(0);const r=It.allocUnsafe(t>>>0);let i=this.head,l=0;for(;i;)Je(r,i.data,l),l+=i.data.length,i=i.next;return r}consume(t,r){const i=this.head.data;if(ts.length)r+=s,t-=s.length;else{t===s.length?(r+=s,++l,i.next?this.head=i.next:this.head=this.tail=null):(r+=Cr(s,0,t),this.head=i,i.data=Cr(s,t));break}++l}while((i=i.next)!==null);return this.length-=l,r}_getBuffer(t){const r=It.allocUnsafe(t),i=t;let l=this.head,s=0;do{const d=l.data;if(t>d.length)Je(r,d,i-t),t-=d.length;else{t===d.length?(Je(r,d,i-t),++s,l.next?this.head=l.next:this.head=this.tail=null):(Je(r,new ol(d.buffer,d.byteOffset,t),i-t),this.head=l,l.data=d.slice(t));break}++s}while((l=l.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return ll(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:sl,NumberIsInteger:fl}=H,{validateInteger:ul}=Ye,{ERR_INVALID_ARG_VALUE:dl}=ie.codes;let Fn=16*1024,jn=16;function cl(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Un(e){return e?jn:Fn}function bl(e,t){ul(t,"value",0),e?jn=t:Fn=t}function hl(e,t,r,i){const l=cl(t,i,r);if(l!=null){if(!fl(l)||l<0){const s=i?`options.${r}`:"options.highWaterMark";throw new dl(s,l)}return sl(l)}return Un(e.objectMode)}var ht={getHighWaterMark:hl,getDefaultHighWaterMark:Un,setDefaultHighWaterMark:bl};const Fr=$e,{PromisePrototypeThen:pl,SymbolAsyncIterator:jr,SymbolIterator:Ur}=H,{Buffer:_l}=Ie,{ERR_INVALID_ARG_TYPE:yl,ERR_STREAM_NULL_VALUES:wl}=ie.codes;function gl(e,t,r){let i;if(typeof t=="string"||t instanceof _l)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let l;if(t&&t[jr])l=!0,i=t[jr]();else if(t&&t[Ur])l=!1,i=t[Ur]();else throw new yl("iterable",["Iterable"],t);const s=new e({objectMode:!0,highWaterMark:1,...r});let d=!1;s._read=function(){d||(d=!0,R())},s._destroy=function(b,_){pl(g(b),()=>Fr.nextTick(_,b),v=>Fr.nextTick(_,v||b))};async function g(b){const _=b!=null,v=typeof i.throw=="function";if(_&&v){const{value:c,done:u}=await i.throw(b);if(await c,u)return}if(typeof i.return=="function"){const{value:c}=await i.return();await c}}async function R(){for(;;){try{const{value:b,done:_}=l?await i.next():i.next();if(_)s.push(null);else{const v=b&&typeof b.then=="function"?await b:b;if(v===null)throw d=!1,new wl;if(s.push(v))continue;d=!1}}catch(b){s.destroy(b)}break}}return s}var Bn=gl,$t,Br;function pt(){if(Br)return $t;Br=1;const e=$e,{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:i,NumberParseInt:l,ObjectDefineProperties:s,ObjectKeys:d,ObjectSetPrototypeOf:g,Promise:R,SafeSet:b,SymbolAsyncDispose:_,SymbolAsyncIterator:v,Symbol:c}=H;$t=D,D.ReadableState=be;const{EventEmitter:u}=ot,{Stream:m,prependListener:h}=ir,{Buffer:A}=Ie,{addAbortSignal:k}=bt,M=Se;let y=te.debuglog("stream",n=>{y=n});const j=al,P=je,{getHighWaterMark:X,getDefaultHighWaterMark:oe}=ht,{aggregateTwoErrors:B,codes:{ERR_INVALID_ARG_TYPE:q,ERR_METHOD_NOT_IMPLEMENTED:re,ERR_OUT_OF_RANGE:ne,ERR_STREAM_PUSH_AFTER_EOF:W,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:w},AbortError:x}=ie,{validateObject:L}=Ye,O=c("kPaused"),{StringDecoder:Y}=bi,z=Bn;g(D.prototype,m.prototype),g(D,m);const V=()=>{},{errorOrDestroy:K}=P,C=1,ce=2,N=4,J=8,se=16,ke=32,Pe=64,Le=128,Ue=256,yt=512,Be=1024,Oe=2048,a=4096,f=8192,p=16384,I=32768,$=65536,U=1<<17,G=1<<18;function F(n){return{enumerable:!1,get(){return(this.state&n)!==0},set(o){o?this.state|=n:this.state&=~n}}}s(be.prototype,{objectMode:F(C),ended:F(ce),endEmitted:F(N),reading:F(J),constructed:F(se),sync:F(ke),needReadable:F(Pe),emittedReadable:F(Le),readableListening:F(Ue),resumeScheduled:F(yt),errorEmitted:F(Be),emitClose:F(Oe),autoDestroy:F(a),destroyed:F(f),closed:F(p),closeEmitted:F(I),multiAwaitDrain:F($),readingMore:F(U),dataEmitted:F(G)});function be(n,o,S){typeof S!="boolean"&&(S=o instanceof pe()),this.state=Oe|a|se|ke,n&&n.objectMode&&(this.state|=C),S&&n&&n.readableObjectMode&&(this.state|=C),this.highWaterMark=n?X(this,n,"readableHighWaterMark",S):oe(!1),this.buffer=new j,this.length=0,this.pipes=[],this.flowing=null,this[O]=null,n&&n.emitClose===!1&&(this.state&=~Oe),n&&n.autoDestroy===!1&&(this.state&=~a),this.errored=null,this.defaultEncoding=n&&n.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,n&&n.encoding&&(this.decoder=new Y(n.encoding),this.encoding=n.encoding)}function D(n){if(!(this instanceof D))return new D(n);const o=this instanceof pe();this._readableState=new be(n,this,o),n&&(typeof n.read=="function"&&(this._read=n.read),typeof n.destroy=="function"&&(this._destroy=n.destroy),typeof n.construct=="function"&&(this._construct=n.construct),n.signal&&!o&&k(n.signal,this)),m.call(this,n),P.construct(this,()=>{this._readableState.needReadable&&Xe(this,this._readableState)})}D.prototype.destroy=P.destroy,D.prototype._undestroy=P.undestroy,D.prototype._destroy=function(n,o){o(n)},D.prototype[u.captureRejectionSymbol]=function(n){this.destroy(n)},D.prototype[_]=function(){let n;return this.destroyed||(n=this.readableEnded?null:new x,this.destroy(n)),new R((o,S)=>M(this,E=>E&&E!==n?S(E):o(null)))},D.prototype.push=function(n,o){return we(this,n,o,!1)},D.prototype.unshift=function(n,o){return we(this,n,o,!0)};function we(n,o,S,E){y("readableAddChunk",o);const T=n._readableState;let Z;if(T.state&C||(typeof o=="string"?(S=S||T.defaultEncoding,T.encoding!==S&&(E&&T.encoding?o=A.from(o,S).toString(T.encoding):(o=A.from(o,S),S=""))):o instanceof A?S="":m._isUint8Array(o)?(o=m._uint8ArrayToBuffer(o),S=""):o!=null&&(Z=new q("chunk",["string","Buffer","Uint8Array"],o))),Z)K(n,Z);else if(o===null)T.state&=~J,ri(n,T);else if(T.state&C||o&&o.length>0)if(E)if(T.state&N)K(n,new w);else{if(T.destroyed||T.errored)return!1;wt(n,T,o,!0)}else if(T.ended)K(n,new W);else{if(T.destroyed||T.errored)return!1;T.state&=~J,T.decoder&&!S?(o=T.decoder.write(o),T.objectMode||o.length!==0?wt(n,T,o,!1):Xe(n,T)):wt(n,T,o,!1)}else E||(T.state&=~J,Xe(n,T));return!T.ended&&(T.length0?(o.state&$?o.awaitDrainWriters.clear():o.awaitDrainWriters=null,o.dataEmitted=!0,n.emit("data",S)):(o.length+=o.objectMode?1:S.length,E?o.buffer.unshift(S):o.buffer.push(S),o.state&Pe&&Ke(n)),Xe(n,o)}D.prototype.isPaused=function(){const n=this._readableState;return n[O]===!0||n.flowing===!1},D.prototype.setEncoding=function(n){const o=new Y(n);this._readableState.decoder=o,this._readableState.encoding=this._readableState.decoder.encoding;const S=this._readableState.buffer;let E="";for(const T of S)E+=o.write(T);return S.clear(),E!==""&&S.push(E),this._readableState.length=E.length,this};const ei=1073741824;function ti(n){if(n>ei)throw new ne("size","<= 1GiB",n);return n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++,n}function ur(n,o){return n<=0||o.length===0&&o.ended?0:o.state&C?1:i(n)?o.flowing&&o.length?o.buffer.first().length:o.length:n<=o.length?n:o.ended?o.length:0}D.prototype.read=function(n){y("read",n),n===void 0?n=NaN:r(n)||(n=l(n,10));const o=this._readableState,S=n;if(n>o.highWaterMark&&(o.highWaterMark=ti(n)),n!==0&&(o.state&=~Le),n===0&&o.needReadable&&((o.highWaterMark!==0?o.length>=o.highWaterMark:o.length>0)||o.ended))return y("read: emitReadable",o.length,o.ended),o.length===0&&o.ended?gt(this):Ke(this),null;if(n=ur(n,o),n===0&&o.ended)return o.length===0&>(this),null;let E=(o.state&Pe)!==0;if(y("need readable",E),(o.length===0||o.length-n0?T=pr(n,o):T=null,T===null?(o.needReadable=o.length<=o.highWaterMark,n=0):(o.length-=n,o.multiAwaitDrain?o.awaitDrainWriters.clear():o.awaitDrainWriters=null),o.length===0&&(o.ended||(o.needReadable=!0),S!==n&&o.ended&>(this)),T!==null&&!o.errorEmitted&&!o.closeEmitted&&(o.dataEmitted=!0,this.emit("data",T)),T};function ri(n,o){if(y("onEofChunk"),!o.ended){if(o.decoder){const S=o.decoder.end();S&&S.length&&(o.buffer.push(S),o.length+=o.objectMode?1:S.length)}o.ended=!0,o.sync?Ke(n):(o.needReadable=!1,o.emittedReadable=!0,dr(n))}}function Ke(n){const o=n._readableState;y("emitReadable",o.needReadable,o.emittedReadable),o.needReadable=!1,o.emittedReadable||(y("emitReadable",o.flowing),o.emittedReadable=!0,e.nextTick(dr,n))}function dr(n){const o=n._readableState;y("emitReadable_",o.destroyed,o.length,o.ended),!o.destroyed&&!o.errored&&(o.length||o.ended)&&(n.emit("readable"),o.emittedReadable=!1),o.needReadable=!o.flowing&&!o.ended&&o.length<=o.highWaterMark,br(n)}function Xe(n,o){!o.readingMore&&o.constructed&&(o.readingMore=!0,e.nextTick(ni,n,o))}function ni(n,o){for(;!o.reading&&!o.ended&&(o.length1&&E.pipes.includes(n)&&(y("false write response, pause",E.awaitDrainWriters.size),E.awaitDrainWriters.add(n)),S.pause()),Ee||(Ee=ii(S,n),n.on("drain",Ee))}S.on("data",Sr);function Sr(Re){y("ondata");const he=n.write(Re);y("dest.write",he),he===!1&&gr()}function Et(Re){if(y("onerror",Re),Ge(),n.removeListener("error",Et),n.listenerCount("error")===0){const he=n._writableState||n._readableState;he&&!he.errorEmitted?K(n,Re):n.emit("error",Re)}}h(n,"error",Et);function Rt(){n.removeListener("finish",At),Ge()}n.once("close",Rt);function At(){y("onfinish"),n.removeListener("close",Rt),Ge()}n.once("finish",At);function Ge(){y("unpipe"),S.unpipe(n)}return n.emit("pipe",S),n.writableNeedDrain===!0?gr():E.flowing||(y("pipe resume"),S.resume()),n};function ii(n,o){return function(){const E=n._readableState;E.awaitDrainWriters===o?(y("pipeOnDrain",1),E.awaitDrainWriters=null):E.multiAwaitDrain&&(y("pipeOnDrain",E.awaitDrainWriters.size),E.awaitDrainWriters.delete(o)),(!E.awaitDrainWriters||E.awaitDrainWriters.size===0)&&n.listenerCount("data")&&n.resume()}}D.prototype.unpipe=function(n){const o=this._readableState,S={hasUnpiped:!1};if(o.pipes.length===0)return this;if(!n){const T=o.pipes;o.pipes=[],this.pause();for(let Z=0;Z0,E.flowing!==!1&&this.resume()):n==="readable"&&!E.endEmitted&&!E.readableListening&&(E.readableListening=E.needReadable=!0,E.flowing=!1,E.emittedReadable=!1,y("on readable",E.length,E.reading),E.length?Ke(this):E.reading||e.nextTick(oi,this)),S},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(n,o){const S=m.prototype.removeListener.call(this,n,o);return n==="readable"&&e.nextTick(cr,this),S},D.prototype.off=D.prototype.removeListener,D.prototype.removeAllListeners=function(n){const o=m.prototype.removeAllListeners.apply(this,arguments);return(n==="readable"||n===void 0)&&e.nextTick(cr,this),o};function cr(n){const o=n._readableState;o.readableListening=n.listenerCount("readable")>0,o.resumeScheduled&&o[O]===!1?o.flowing=!0:n.listenerCount("data")>0?n.resume():o.readableListening||(o.flowing=null)}function oi(n){y("readable nexttick read 0"),n.read(0)}D.prototype.resume=function(){const n=this._readableState;return n.flowing||(y("resume"),n.flowing=!n.readableListening,li(this,n)),n[O]=!1,this};function li(n,o){o.resumeScheduled||(o.resumeScheduled=!0,e.nextTick(ai,n,o))}function ai(n,o){y("resume",o.reading),o.reading||n.read(0),o.resumeScheduled=!1,n.emit("resume"),br(n),o.flowing&&!o.reading&&n.read(0)}D.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[O]=!0,this};function br(n){const o=n._readableState;for(y("flow",o.flowing);o.flowing&&n.read()!==null;);}D.prototype.wrap=function(n){let o=!1;n.on("data",E=>{!this.push(E)&&n.pause&&(o=!0,n.pause())}),n.on("end",()=>{this.push(null)}),n.on("error",E=>{K(this,E)}),n.on("close",()=>{this.destroy()}),n.on("destroy",()=>{this.destroy()}),this._read=()=>{o&&n.resume&&(o=!1,n.resume())};const S=d(n);for(let E=1;E{T=le?B(T,le):null,S(),S=V});try{for(;;){const le=n.destroyed?null:n.read();if(le!==null)yield le;else{if(T)throw T;if(T===null)return;await new R(E)}}}catch(le){throw T=B(T,le),T}finally{(T||(o==null?void 0:o.destroyOnReturn)!==!1)&&(T===void 0||n._readableState.autoDestroy)?P.destroyer(n,null):(n.off("readable",E),Z())}}s(D.prototype,{readable:{__proto__:null,get(){const n=this._readableState;return!!n&&n.readable!==!1&&!n.destroyed&&!n.errorEmitted&&!n.endEmitted},set(n){this._readableState&&(this._readableState.readable=!!n)}},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(n){this._readableState&&(this._readableState.flowing=n)}},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(n){this._readableState&&(this._readableState.destroyed=n)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(be.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[O]!==!1},set(n){this[O]=!!n}}}),D._fromList=pr;function pr(n,o){if(o.length===0)return null;let S;return o.objectMode?S=o.buffer.shift():!n||n>=o.length?(o.decoder?S=o.buffer.join(""):o.buffer.length===1?S=o.buffer.first():S=o.buffer.concat(o.length),o.buffer.clear()):S=o.buffer.consume(n,o.decoder),S}function gt(n){const o=n._readableState;y("endReadable",o.endEmitted),o.endEmitted||(o.ended=!0,e.nextTick(fi,o,n))}function fi(n,o){if(y("endReadableNT",n.endEmitted,n.length),!n.errored&&!n.closeEmitted&&!n.endEmitted&&n.length===0){if(n.endEmitted=!0,o.emit("end"),o.writable&&o.allowHalfOpen===!1)e.nextTick(ui,o);else if(n.autoDestroy){const S=o._writableState;(!S||S.autoDestroy&&(S.finished||S.writable===!1))&&o.destroy()}}}function ui(n){n.writable&&!n.writableEnded&&!n.destroyed&&n.end()}D.from=function(n,o){return z(D,n,o)};let St;function _r(){return St===void 0&&(St={}),St}return D.fromWeb=function(n,o){return _r().newStreamReadableFromReadableStream(n,o)},D.toWeb=function(n,o){return _r().newReadableStreamFromStreamReadable(n,o)},D.wrap=function(n,o){var S,E;return new D({objectMode:(S=(E=n.readableObjectMode)!==null&&E!==void 0?E:n.objectMode)!==null&&S!==void 0?S:!0,...o,destroy(T,Z){P.destroyer(n,T),Z(T)}}).wrap(n)},$t}var Nt,Gr;function or(){if(Gr)return Nt;Gr=1;const e=$e,{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:l,ObjectDefineProperties:s,ObjectSetPrototypeOf:d,StringPrototypeToLowerCase:g,Symbol:R,SymbolHasInstance:b}=H;Nt=L,L.WritableState=w;const{EventEmitter:_}=ot,v=ir.Stream,{Buffer:c}=Ie,u=je,{addAbortSignal:m}=bt,{getHighWaterMark:h,getDefaultHighWaterMark:A}=ht,{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_MULTIPLE_CALLBACK:y,ERR_STREAM_CANNOT_PIPE:j,ERR_STREAM_DESTROYED:P,ERR_STREAM_ALREADY_FINISHED:X,ERR_STREAM_NULL_VALUES:oe,ERR_STREAM_WRITE_AFTER_END:B,ERR_UNKNOWN_ENCODING:q}=ie.codes,{errorOrDestroy:re}=u;d(L.prototype,v.prototype),d(L,v);function ne(){}const W=R("kOnFinished");function w(a,f,p){typeof p!="boolean"&&(p=f instanceof pe()),this.objectMode=!!(a&&a.objectMode),p&&(this.objectMode=this.objectMode||!!(a&&a.writableObjectMode)),this.highWaterMark=a?h(this,a,"writableHighWaterMark",p):A(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const I=!!(a&&a.decodeStrings===!1);this.decodeStrings=!I,this.defaultEncoding=a&&a.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=K.bind(void 0,f),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,x(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!a||a.emitClose!==!1,this.autoDestroy=!a||a.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[W]=[]}function x(a){a.buffered=[],a.bufferedIndex=0,a.allBuffers=!0,a.allNoop=!0}w.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},l(w.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function L(a){const f=this instanceof pe();if(!f&&!i(L,this))return new L(a);this._writableState=new w(a,this,f),a&&(typeof a.write=="function"&&(this._write=a.write),typeof a.writev=="function"&&(this._writev=a.writev),typeof a.destroy=="function"&&(this._destroy=a.destroy),typeof a.final=="function"&&(this._final=a.final),typeof a.construct=="function"&&(this._construct=a.construct),a.signal&&m(a.signal,this)),v.call(this,a),u.construct(this,()=>{const p=this._writableState;p.writing||J(this,p),Le(this,p)})}l(L,b,{__proto__:null,value:function(a){return i(this,a)?!0:this!==L?!1:a&&a._writableState instanceof w}}),L.prototype.pipe=function(){re(this,new j)};function O(a,f,p,I){const $=a._writableState;if(typeof p=="function")I=p,p=$.defaultEncoding;else{if(!p)p=$.defaultEncoding;else if(p!=="buffer"&&!c.isEncoding(p))throw new q(p);typeof I!="function"&&(I=ne)}if(f===null)throw new oe;if(!$.objectMode)if(typeof f=="string")$.decodeStrings!==!1&&(f=c.from(f,p),p="buffer");else if(f instanceof c)p="buffer";else if(v._isUint8Array(f))f=v._uint8ArrayToBuffer(f),p="buffer";else throw new k("chunk",["string","Buffer","Uint8Array"],f);let U;return $.ending?U=new B:$.destroyed&&(U=new P("write")),U?(e.nextTick(I,U),re(a,U,!0),U):($.pendingcb++,Y(a,$,f,p,I))}L.prototype.write=function(a,f,p){return O(this,a,f,p)===!0},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){const a=this._writableState;a.corked&&(a.corked--,a.writing||J(this,a))},L.prototype.setDefaultEncoding=function(f){if(typeof f=="string"&&(f=g(f)),!c.isEncoding(f))throw new q(f);return this._writableState.defaultEncoding=f,this};function Y(a,f,p,I,$){const U=f.objectMode?1:p.length;f.length+=U;const G=f.lengthp.bufferedIndex&&J(a,p),I?p.afterWriteTickInfo!==null&&p.afterWriteTickInfo.cb===$?p.afterWriteTickInfo.count++:(p.afterWriteTickInfo={count:1,cb:$,stream:a,state:p},e.nextTick(C,p.afterWriteTickInfo)):ce(a,p,1,$))}function C({stream:a,state:f,count:p,cb:I}){return f.afterWriteTickInfo=null,ce(a,f,p,I)}function ce(a,f,p,I){for(!f.ending&&!a.destroyed&&f.length===0&&f.needDrain&&(f.needDrain=!1,a.emit("drain"));p-- >0;)f.pendingcb--,I();f.destroyed&&N(f),Le(a,f)}function N(a){if(a.writing)return;for(let $=a.bufferedIndex;$1&&a._writev){f.pendingcb-=U-1;const F=f.allNoop?ne:D=>{for(let we=G;we256?(p.splice(0,G),f.bufferedIndex=0):f.bufferedIndex=G}f.bufferProcessing=!1}L.prototype._write=function(a,f,p){if(this._writev)this._writev([{chunk:a,encoding:f}],p);else throw new M("_write()")},L.prototype._writev=null,L.prototype.end=function(a,f,p){const I=this._writableState;typeof a=="function"?(p=a,a=null,f=null):typeof f=="function"&&(p=f,f=null);let $;if(a!=null){const U=O(this,a,f);U instanceof r&&($=U)}return I.corked&&(I.corked=1,this.uncork()),$||(!I.errored&&!I.ending?(I.ending=!0,Le(this,I,!0),I.ended=!0):I.finished?$=new X("end"):I.destroyed&&($=new P("end"))),typeof p=="function"&&($||I.finished?e.nextTick(p,$):I[W].push(p)),this};function se(a){return a.ending&&!a.destroyed&&a.constructed&&a.length===0&&!a.errored&&a.buffered.length===0&&!a.finished&&!a.writing&&!a.errorEmitted&&!a.closeEmitted}function ke(a,f){let p=!1;function I($){if(p){re(a,$??y());return}if(p=!0,f.pendingcb--,$){const U=f[W].splice(0);for(let G=0;G{se($)?Ue(I,$):$.pendingcb--},a,f)):se(f)&&(f.pendingcb++,Ue(a,f))))}function Ue(a,f){f.pendingcb--,f.finished=!0;const p=f[W].splice(0);for(let I=0;I{if(N!=null)throw new m("nully","body",N)},N=>{h(C,N)});return C=new q({objectMode:!0,readable:!1,write:Y,final(N){z(async()=>{try{await ce,e.nextTick(N,null)}catch(J){e.nextTick(N,J)}})},destroy:V})}throw new m("Iterable, AsyncIterable or AsyncFunction",x,O)}if(X(w))return W(w.arrayBuffer());if(l(w))return j(q,w,{objectMode:!0,writable:!1});if(b(w==null?void 0:w.readable)&&_(w==null?void 0:w.writable))return q.fromWeb(w);if(typeof(w==null?void 0:w.writable)=="object"||typeof(w==null?void 0:w.readable)=="object"){const O=w!=null&&w.readable?d(w==null?void 0:w.readable)?w==null?void 0:w.readable:W(w.readable):void 0,Y=w!=null&&w.writable?g(w==null?void 0:w.writable)?w==null?void 0:w.writable:W(w.writable):void 0;return ne({readable:O,writable:Y})}const L=w==null?void 0:w.then;if(typeof L=="function"){let O;return B(L,w,Y=>{Y!=null&&O.push(Y),O.push(null)},Y=>{h(O,Y)}),O=new q({objectMode:!0,writable:!1,read(){}})}throw new u(x,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],w)};function re(W){let{promise:w,resolve:x}=y();const L=new oe,O=L.signal;return{value:W(async function*(){for(;;){const z=w;w=null;const{chunk:V,done:K,cb:C}=await z;if(e.nextTick(C),K)return;if(O.aborted)throw new c(void 0,{cause:O.reason});({promise:w,resolve:x}=y()),yield V}}(),{signal:O}),write(z,V,K){const C=x;x=null,C({chunk:z,done:!1,cb:K})},final(z){const V=x;x=null,V({done:!0,cb:z})},destroy(z,V){L.abort(),V(z)}}}function ne(W){const w=W.readable&&typeof W.readable.read!="function"?k.wrap(W.readable):W.readable,x=W.writable;let L=!!r(w),O=!!i(x),Y,z,V,K,C;function ce(N){const J=K;K=null,J?J(N):N&&C.destroy(N)}return C=new q({readableObjectMode:!!(w!=null&&w.readableObjectMode),writableObjectMode:!!(x!=null&&x.writableObjectMode),readable:L,writable:O}),O&&(v(x,N=>{O=!1,N&&h(w,N),ce(N)}),C._write=function(N,J,se){x.write(N,J)?se():Y=se},C._final=function(N){x.end(),z=N},x.on("drain",function(){if(Y){const N=Y;Y=null,N()}}),x.on("finish",function(){if(z){const N=z;z=null,N()}})),L&&(v(w,N=>{L=!1,N&&h(w,N),ce(N)}),w.on("readable",function(){if(V){const N=V;V=null,N()}}),w.on("end",function(){C.push(null)}),C._read=function(){for(;;){const N=w.read();if(N===null){V=C._read;return}if(!C.push(N))return}}),C._destroy=function(N,J){!N&&K!==null&&(N=new c),V=null,Y=null,z=null,K===null?J(N):(K=J,h(x,N),h(w,N))},C}return Dt}var Mt,Hr;function pe(){if(Hr)return Mt;Hr=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:i}=H;Mt=d;const l=pt(),s=or();i(d.prototype,l.prototype),i(d,l);{const _=r(s.prototype);for(let v=0;v<_.length;v++){const c=_[v];d.prototype[c]||(d.prototype[c]=s.prototype[c])}}function d(_){if(!(this instanceof d))return new d(_);l.call(this,_),s.call(this,_),_?(this.allowHalfOpen=_.allowHalfOpen!==!1,_.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),_.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}e(d.prototype,{writable:{__proto__:null,...t(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...t(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...t(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...t(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...t(s.prototype,"writableLength")},writableFinished:{__proto__:null,...t(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...t(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...t(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...t(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(_){this._readableState&&this._writableState&&(this._readableState.destroyed=_,this._writableState.destroyed=_)}}});let g;function R(){return g===void 0&&(g={}),g}d.fromWeb=function(_,v){return R().newStreamDuplexFromReadableWritablePair(_,v)},d.toWeb=function(_){return R().newReadableWritablePairFromDuplex(_)};let b;return d.from=function(_){return b||(b=Sl()),b(_,"body")},Mt}const{ObjectSetPrototypeOf:Gn,Symbol:El}=H;var Vn=_e;const{ERR_METHOD_NOT_IMPLEMENTED:Rl}=ie.codes,lr=pe(),{getHighWaterMark:Al}=ht;Gn(_e.prototype,lr.prototype);Gn(_e,lr);const He=El("kCallback");function _e(e){if(!(this instanceof _e))return new _e(e);const t=e?Al(this,e,"readableHighWaterMark",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),lr.call(this,e),this._readableState.sync=!1,this[He]=null,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",ml)}function Jt(e){typeof this._flush=="function"&&!this.destroyed?this._flush((t,r)=>{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function ml(){this._final!==Jt&&Jt.call(this)}_e.prototype._final=Jt;_e.prototype._transform=function(e,t,r){throw new Rl("_transform()")};_e.prototype._write=function(e,t,r){const i=this._readableState,l=this._writableState,s=i.length;this._transform(e,t,(d,g)=>{if(d){r(d);return}g!=null&&this.push(g),l.ended||s===i.length||i.length{i=!0});const l=nt(e,{readable:t,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,Dl.destroyer(e,s||new Pl("pipe")))},cleanup:l}}function Ul(e){return Wl(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function Ct(e){if(me(e))return e;if(tt(e))return Bl(e);throw new Qt("val",["Readable","Iterable","AsyncIterable"],e)}async function*Bl(e){Wt||(Wt=pt()),yield*Wt.prototype[Il].call(e)}async function Qe(e,t,r,{end:i}){let l,s=null;const d=b=>{if(b&&(l=b),s){const _=s;s=null,_()}},g=()=>new Tl((b,_)=>{l?_(l):s=()=>{l?_(l):b()}});t.on("drain",d);const R=nt(t,{readable:!1},d);try{t.writableNeedDrain&&await g();for await(const b of e)t.write(b)||await g();i&&(t.end(),await g()),r()}catch(b){r(l!==b?Ml(l,b):b)}finally{R(),t.off("drain",d)}}async function Ft(e,t,r,{end:i}){We(t)&&(t=t.writable);const l=t.getWriter();try{for await(const s of e)await l.ready,l.write(s).catch(()=>{});await l.ready,i&&await l.close(),r()}catch(s){try{await l.abort(s),r(s)}catch(d){r(d)}}}function Gl(...e){return Yn(e,Nl(Ul(e)))}function Yn(e,t,r){if(e.length===1&&vl(e[0])&&(e=e[0]),e.length<2)throw new kl("streams");const i=new jl,l=i.signal,s=r==null?void 0:r.signal,d=[];xl(s,"options.signal");function g(){m(new Ol)}xt=xt||te.addAbortListener;let R;s&&(R=xt(s,g));let b,_;const v=[];let c=0;function u(M){m(M,--c===0)}function m(M,y){var j;if(M&&(!b||b.code==="ERR_STREAM_PREMATURE_CLOSE")&&(b=M),!(!b&&!y)){for(;v.length;)v.shift()(b);(j=R)===null||j===void 0||j[$l](),i.abort(),y&&(b||d.forEach(P=>P()),Ve.nextTick(t,b,_))}}let h;for(let M=0;M0,X=j||(r==null?void 0:r.end)!==!1,oe=M===e.length-1;if(Yr(y)){let B=function(q){q&&q.name!=="AbortError"&&q.code!=="ERR_STREAM_PREMATURE_CLOSE"&&u(q)};if(X){const{destroy:q,cleanup:re}=zr(y,j,P);v.push(q),Pt(y)&&oe&&d.push(re)}y.on("error",B),Pt(y)&&oe&&d.push(()=>{y.removeListener("error",B)})}if(M===0)if(typeof y=="function"){if(h=y({signal:l}),!me(h))throw new kt("Iterable, AsyncIterable or Stream","source",h)}else me(y)||tt(y)||We(y)?h=y:h=qr.from(y);else if(typeof y=="function"){if(We(h)){var A;h=Ct((A=h)===null||A===void 0?void 0:A.readable)}else h=Ct(h);if(h=y(h,{signal:l}),j){if(!me(h,!0))throw new kt("AsyncIterable",`transform[${M-1}]`,h)}else{var k;Ot||(Ot=qn);const B=new Ot({objectMode:!0}),q=(k=h)===null||k===void 0?void 0:k.then;if(typeof q=="function")c++,q.call(h,W=>{_=W,W!=null&&B.write(W),X&&B.end(),Ve.nextTick(u)},W=>{B.destroy(W),Ve.nextTick(u,W)});else if(me(h,!0))c++,Qe(h,B,u,{end:X});else if(Lt(h)||We(h)){const W=h.readable||h;c++,Qe(W,B,u,{end:X})}else throw new kt("AsyncIterable or Promise","destination",h);h=B;const{destroy:re,cleanup:ne}=zr(h,!1,!0);v.push(re),oe&&d.push(ne)}}else if(Yr(y)){if(tt(h)){c+=2;const B=Vl(h,y,u,{end:X});Pt(y)&&oe&&d.push(B)}else if(We(h)||Lt(h)){const B=h.readable||h;c++,Qe(B,y,u,{end:X})}else if(me(h))c++,Qe(h,y,u,{end:X});else throw new Qt("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);h=y}else if(Cl(y)){if(tt(h))c++,Ft(Ct(h),y,u,{end:X});else if(Lt(h)||me(h))c++,Ft(h,y,u,{end:X});else if(We(h))c++,Ft(h.readable,y,u,{end:X});else throw new Qt("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);h=y}else h=qr.from(y)}return(l!=null&&l.aborted||s!=null&&s.aborted)&&Ve.nextTick(g),h}function Vl(e,t,r,{end:i}){let l=!1;if(t.on("close",()=>{l||r(new Ll)}),e.pipe(t,{end:!1}),i){let s=function(){l=!0,t.end()};Fl(e)?Ve.nextTick(s):e.once("end",s)}else r();return nt(e,{readable:!0,writable:!1},s=>{const d=e._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&d&&d.ended&&!d.errored&&!d.errorEmitted?e.once("end",r).once("error",r):r(s)}),nt(t,{readable:!1,writable:!0},r)}var sr={pipelineImpl:Yn,pipeline:Gl};const{pipeline:Hl}=sr,Ze=pe(),{destroyer:ql}=je,{isNodeStream:et,isReadable:Kr,isWritable:Xr,isWebStream:jt,isTransformStream:Ae,isWritableStream:Jr,isReadableStream:Qr}=ye,{AbortError:Yl,codes:{ERR_INVALID_ARG_VALUE:Zr,ERR_MISSING_ARGS:zl}}=ie,Kl=Se;var zn=function(...t){if(t.length===0)throw new zl("streams");if(t.length===1)return Ze.from(t[0]);const r=[...t];if(typeof t[0]=="function"&&(t[0]=Ze.from(t[0])),typeof t[t.length-1]=="function"){const u=t.length-1;t[u]=Ze.from(t[u])}for(let u=0;u0&&!(Xr(t[u])||Jr(t[u])||Ae(t[u])))throw new Zr(`streams[${u}]`,r[u],"must be writable")}let i,l,s,d,g;function R(u){const m=d;d=null,m?m(u):u?g.destroy(u):!c&&!v&&g.destroy()}const b=t[0],_=Hl(t,R),v=!!(Xr(b)||Jr(b)||Ae(b)),c=!!(Kr(_)||Qr(_)||Ae(_));if(g=new Ze({writableObjectMode:!!(b!=null&&b.writableObjectMode),readableObjectMode:!!(_!=null&&_.readableObjectMode),writable:v,readable:c}),v){if(et(b))g._write=function(m,h,A){b.write(m,h)?A():i=A},g._final=function(m){b.end(),l=m},b.on("drain",function(){if(i){const m=i;i=null,m()}});else if(jt(b)){const h=(Ae(b)?b.writable:b).getWriter();g._write=async function(A,k,M){try{await h.ready,h.write(A).catch(()=>{}),M()}catch(y){M(y)}},g._final=async function(A){try{await h.ready,h.close().catch(()=>{}),l=A}catch(k){A(k)}}}const u=Ae(_)?_.readable:_;Kl(u,()=>{if(l){const m=l;l=null,m()}})}if(c){if(et(_))_.on("readable",function(){if(s){const u=s;s=null,u()}}),_.on("end",function(){g.push(null)}),g._read=function(){for(;;){const u=_.read();if(u===null){s=g._read;return}if(!g.push(u))return}};else if(jt(_)){const m=(Ae(_)?_.readable:_).getReader();g._read=async function(){for(;;)try{const{value:h,done:A}=await m.read();if(!g.push(h))return;if(A){g.push(null);return}}catch{return}}}}return g._destroy=function(u,m){!u&&d!==null&&(u=new Yl),s=null,i=null,l=null,d===null?m(u):(d=m,et(_)&&ql(_,u))},g};const Xl=globalThis.AbortController||qe().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Jl,ERR_INVALID_ARG_TYPE:ze,ERR_MISSING_ARGS:Ql,ERR_OUT_OF_RANGE:Zl},AbortError:ue}=ie,{validateAbortSignal:De,validateInteger:en,validateObject:Me}=Ye,ea=H.Symbol("kWeak"),ta=H.Symbol("kResistStopPropagation"),{finished:ra}=Se,na=zn,{addAbortSignalNoValidate:ia}=bt,{isWritable:oa,isNodeStream:la}=ye,{deprecate:aa}=te,{ArrayPrototypePush:sa,Boolean:fa,MathFloor:tn,Number:ua,NumberIsNaN:da,Promise:rn,PromiseReject:nn,PromiseResolve:ca,PromisePrototypeThen:on,Symbol:Kn}=H,it=Kn("kEmpty"),ln=Kn("kEof");function ba(e,t){if(t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),la(e)&&!oa(e))throw new Jl("stream",e,"must be writable");const r=na(this,e);return t!=null&&t.signal&&ia(t.signal,r),r}function _t(e,t){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal");let r=1;(t==null?void 0:t.concurrency)!=null&&(r=tn(t.concurrency));let i=r-1;return(t==null?void 0:t.highWaterMark)!=null&&(i=tn(t.highWaterMark)),en(r,"options.concurrency",1),en(i,"options.highWaterMark",0),i+=r,(async function*(){const s=te.AbortSignalAny([t==null?void 0:t.signal].filter(fa)),d=this,g=[],R={signal:s};let b,_,v=!1,c=0;function u(){v=!0,m()}function m(){c-=1,h()}function h(){_&&!v&&c=i||c>=r)&&await new rn(M=>{_=M})}g.push(ln)}catch(k){const M=nn(k);on(M,m,u),g.push(M)}finally{v=!0,b&&(b(),b=null)}}A();try{for(;;){for(;g.length>0;){const k=await g[0];if(k===ln)return;if(s.aborted)throw new ue;k!==it&&(yield k),g.shift(),h()}await new rn(k=>{b=k})}}finally{v=!0,_&&(_(),_=null)}}).call(this)}function ha(e=void 0){return e!=null&&Me(e,"options"),(e==null?void 0:e.signal)!=null&&De(e.signal,"options.signal"),(async function*(){let r=0;for await(const l of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ue({cause:e.signal.reason});yield[r++,l]}}).call(this)}async function Xn(e,t=void 0){for await(const r of fr.call(this,e,t))return!0;return!1}async function pa(e,t=void 0){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);return!await Xn.call(this,async(...r)=>!await e(...r),t)}async function _a(e,t){for await(const r of fr.call(this,e,t))return r}async function ya(e,t){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);async function r(i,l){return await e(i,l),it}for await(const i of _t.call(this,r,t));}function fr(e,t){if(typeof e!="function")throw new ze("fn",["Function","AsyncFunction"],e);async function r(i,l){return await e(i,l)?i:it}return _t.call(this,r,t)}class wa extends Ql{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function ga(e,t,r){var i;if(typeof e!="function")throw new ze("reducer",["Function","AsyncFunction"],e);r!=null&&Me(r,"options"),(r==null?void 0:r.signal)!=null&&De(r.signal,"options.signal");let l=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){const b=new ue(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await ra(this.destroy(b)),b}const s=new Xl,d=s.signal;if(r!=null&&r.signal){const b={once:!0,[ea]:this,[ta]:!0};r.signal.addEventListener("abort",()=>s.abort(),b)}let g=!1;try{for await(const b of this){var R;if(g=!0,r!=null&&(R=r.signal)!==null&&R!==void 0&&R.aborted)throw new ue;l?t=await e(t,b,{signal:d}):(t=b,l=!0)}if(!g&&!l)throw new wa}finally{s.abort()}return t}async function Sa(e){e!=null&&Me(e,"options"),(e==null?void 0:e.signal)!=null&&De(e.signal,"options.signal");const t=[];for await(const i of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new ue(void 0,{cause:e.signal.reason});sa(t,i)}return t}function Ea(e,t){const r=_t.call(this,e,t);return(async function*(){for await(const l of r)yield*l}).call(this)}function Jn(e){if(e=ua(e),da(e))return 0;if(e<0)throw new Zl("number",">= 0",e);return e}function Ra(e,t=void 0){return t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),e=Jn(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ue;for await(const s of this){var l;if(t!=null&&(l=t.signal)!==null&&l!==void 0&&l.aborted)throw new ue;e--<=0&&(yield s)}}).call(this)}function Aa(e,t=void 0){return t!=null&&Me(t,"options"),(t==null?void 0:t.signal)!=null&&De(t.signal,"options.signal"),e=Jn(e),(async function*(){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ue;for await(const s of this){var l;if(t!=null&&(l=t.signal)!==null&&l!==void 0&&l.aborted)throw new ue;if(e-- >0&&(yield s),e<=0)return}}).call(this)}Zt.streamReturningOperators={asIndexedPairs:aa(ha,"readable.asIndexedPairs will be removed in a future version."),drop:Ra,filter:fr,flatMap:Ea,map:_t,take:Aa,compose:ba};Zt.promiseReturningOperators={every:pa,forEach:ya,reduce:ga,toArray:Sa,some:Xn,find:_a};var Ut,an;function Qn(){if(an)return Ut;an=1;const{ArrayPrototypePop:e,Promise:t}=H,{isIterable:r,isNodeStream:i,isWebStream:l}=ye,{pipelineImpl:s}=sr,{finished:d}=Se;Zn();function g(...R){return new t((b,_)=>{let v,c;const u=R[R.length-1];if(u&&typeof u=="object"&&!i(u)&&!r(u)&&!l(u)){const m=e(R);v=m.signal,c=m.end}s(R,(m,h)=>{m?_(m):b(h)},{signal:v,end:c})})}return Ut={finished:d,pipeline:g},Ut}var sn;function Zn(){if(sn)return mt.exports;sn=1;const{Buffer:e}=Ie,{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:i}=H,{promisify:{custom:l}}=te,{streamReturningOperators:s,promiseReturningOperators:d}=Zt,{codes:{ERR_ILLEGAL_CONSTRUCTOR:g}}=ie,R=zn,{setDefaultHighWaterMark:b,getDefaultHighWaterMark:_}=ht,{pipeline:v}=sr,{destroyer:c}=je,u=Se,m=Qn(),h=ye,A=mt.exports=ir.Stream;A.isDestroyed=h.isDestroyed,A.isDisturbed=h.isDisturbed,A.isErrored=h.isErrored,A.isReadable=h.isReadable,A.isWritable=h.isWritable,A.Readable=pt();for(const M of r(s)){let j=function(...P){if(new.target)throw g();return A.Readable.from(i(y,this,P))};const y=s[M];t(j,"name",{__proto__:null,value:y.name}),t(j,"length",{__proto__:null,value:y.length}),t(A.Readable.prototype,M,{__proto__:null,value:j,enumerable:!1,configurable:!0,writable:!0})}for(const M of r(d)){let j=function(...P){if(new.target)throw g();return i(y,this,P)};const y=d[M];t(j,"name",{__proto__:null,value:y.name}),t(j,"length",{__proto__:null,value:y.length}),t(A.Readable.prototype,M,{__proto__:null,value:j,enumerable:!1,configurable:!0,writable:!0})}A.Writable=or(),A.Duplex=pe(),A.Transform=Vn,A.PassThrough=qn,A.pipeline=v;const{addAbortSignal:k}=bt;return A.addAbortSignal=k,A.finished=u,A.destroy=c,A.compose=R,A.setDefaultHighWaterMark=b,A.getDefaultHighWaterMark=_,t(A,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),t(v,l,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),t(u,l,{__proto__:null,enumerable:!0,get(){return m.finished}}),A.Stream=A,A._isUint8Array=function(y){return y instanceof Uint8Array},A._uint8ArrayToBuffer=function(y){return e.from(y.buffer,y.byteOffset,y.byteLength)},mt.exports}(function(e){const t=Zn(),r=Qn(),i=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=i,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return r}}),e.exports.Stream=t.Stream,e.exports.default=e.exports})(fn);var ma=fn.exports;class va{constructor(t){const r=new ma.Transform({objectMode:!0,transform:(i,l,s)=>{s(null,`${hi(i)} -`)}});return t.pipe(r),pi(r)}}class Ma extends ci{constructor(){super(va)}}export{Ma as default}; diff --git a/assets/index-wrpfIQEt.js b/assets/index-bEMZdyV6.js similarity index 73% rename from assets/index-wrpfIQEt.js rename to assets/index-bEMZdyV6.js index 0876fca..6cb5892 100644 --- a/assets/index-wrpfIQEt.js +++ b/assets/index-bEMZdyV6.js @@ -1,4 +1,4 @@ -import{D as j,n as T,T as L,b as z,t as D,a as E,c as V,d as Z,N as H,e as J,L as X,B as Y,V as ee,f as te,Q as G}from"./N3StreamParser-Bkfk54FL.js";import"./main-CO-45Vwa.js";function ie(o){return!!o&&o.termType==="NamedNode"}function se(o){return!!o&&o.termType==="BlankNode"}function re(o){return!!o&&o.termType==="Literal"}function ne(o){return!!o&&o.termType==="Variable"}function O(o){return!!o&&o.termType==="DefaultGraph"}function ae(o){return O(o.graph)}function ue(o,e){return C({"":o.value||o},e)("")}function C(o,e){const t=Object.create(null);for(const s in o)i(s,o[s]);e=e||j;function i(s,r){if(typeof r=="string"){const n=Object.create(null);t[s]=a=>n[a]||(n[a]=e.namedNode(r+a))}else if(!(s in t))throw new Error(`Unknown prefix: ${s}`);return t[s]}return i}const oe=Object.freeze(Object.defineProperty({__proto__:null,inDefaultGraph:ae,isBlankNode:se,isDefaultGraph:O,isLiteral:re,isNamedNode:ie,isVariable:ne,prefix:ue,prefixes:C},Symbol.toStringTag,{value:"Module"})),N=j.defaultGraph(),{rdf:le,xsd:w}=T,F=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,A=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,de={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class $ extends L{equals(e){return e===this}}class S{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 i="";this._outputStream={write(s,r,n){i+=s,n&&n()},end:s=>{s&&s(null,i)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=N,this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),t.baseIRI&&(this._baseMatcher=new RegExp(`^${M(t.baseIRI)}${t.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=t.baseIRI.length))}get _inDefaultGraph(){return N.equals(this._graph)}_write(e,t){this._outputStream.write(e,"utf8",t)}_writeQuad(e,t,i,s,r){try{s.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`. +import{D as j,n as T,T as L,f as z,t as D,h as E,N as V,i as Z,k as H,l as J,L as X,B as Y,V as ee,o as te,Q as G}from"./main-DsJMMZjG.js";function ie(l){return!!l&&l.termType==="NamedNode"}function se(l){return!!l&&l.termType==="BlankNode"}function re(l){return!!l&&l.termType==="Literal"}function ne(l){return!!l&&l.termType==="Variable"}function O(l){return!!l&&l.termType==="DefaultGraph"}function ae(l){return O(l.graph)}function ue(l,e){return C({"":l.value||l},e)("")}function C(l,e){const t=Object.create(null);for(const s in l)i(s,l[s]);e=e||j;function i(s,r){if(typeof r=="string"){const n=Object.create(null);t[s]=a=>n[a]||(n[a]=e.namedNode(r+a))}else if(!(s in t))throw new Error(`Unknown prefix: ${s}`);return t[s]}return i}const le=Object.freeze(Object.defineProperty({__proto__:null,inDefaultGraph:ae,isBlankNode:se,isDefaultGraph:O,isLiteral:re,isNamedNode:ie,isVariable:ne,prefix:ue,prefixes:C},Symbol.toStringTag,{value:"Module"})),N=j.defaultGraph(),{rdf:oe,xsd:w}=T,F=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,A=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,de={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class $ extends L{equals(e){return e===this}}class S{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 i="";this._outputStream={write(s,r,n){i+=s,n&&n()},end:s=>{s&&s(null,i)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=N,this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),t.baseIRI&&(this._baseMatcher=new RegExp(`^${M(t.baseIRI)}${t.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=t.baseIRI.length))}get _inDefaultGraph(){return N.equals(this._graph)}_write(e,t){this._outputStream.write(e,"utf8",t)}_writeQuad(e,t,i,s,r){try{s.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`. `:` } `)+(N.equals(s)?"":`${this._encodeIriOrBlank(s)} { @@ -6,7 +6,7 @@ import{D as j,n as T,T as L,b as z,t as D,a as E,c as V,d as Z,N as H,e as J,L a ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(i)}`,r):this._write(`${(this._subject===null?"":`. `)+this._encodeSubject(this._subject=e)} ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(i)}`,r)}catch(n){r&&r(n)}}_writeQuadLine(e,t,i,s,r){delete this._prefixMatch,this._write(this.quadToString(e,t,i,s),r)}quadToString(e,t,i,s){return`${this._encodeSubject(e)} ${this._encodeIriOrBlank(t)} ${this._encodeObject(i)}${s&&s.value?` ${this._encodeIriOrBlank(s)} . `:` . -`}`}quadsToString(e){let t="";for(const i of e)t+=this.quadToString(i.subject,i.predicate,i.object,i.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._baseMatcher&&this._baseMatcher.test(t)&&(t=t.substr(this._baseLength)),F.test(t)&&(t=t.replace(A,q));const i=this._prefixRegex.exec(t);return i?i[1]?this._prefixIRIs[i[1]]+i[2]:t:`<${t}>`}_encodeLiteral(e){let t=e.value;if(F.test(t)&&(t=t.replace(A,q)),e.language)return`"${t}"@${e.language}`;if(this._lineMode){if(e.datatype.value===w.string)return`"${t}"`}else switch(e.datatype.value){case w.string:return`"${t}"`;case w.boolean:if(t==="true"||t==="false")return t;break;case w.integer:if(/^[+-]?\d+$/.test(t))return t;break;case w.decimal:if(/^[+-]?\d*\.\d+$/.test(t))return t;break;case w.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(t))return t;break}return`"${t}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===le.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:i,graph:s}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(t)} ${this._encodeObject(i)}${O(s)?"":` ${this._encodeIriOrBlank(s)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,t,i,s,r){i===void 0?this._writeQuad(e.subject,e.predicate,e.object,e.graph,t):typeof s=="function"?this._writeQuad(e,t,i,N,s):this._writeQuad(e,t,i,s||N,r)}addQuads(e){for(let t=0;t`}_encodeLiteral(e){let t=e.value;if(F.test(t)&&(t=t.replace(A,q)),e.language)return`"${t}"@${e.language}`;if(this._lineMode){if(e.datatype.value===w.string)return`"${t}"`}else switch(e.datatype.value){case w.string:return`"${t}"`;case w.boolean:if(t==="true"||t==="false")return t;break;case w.integer:if(/^[+-]?\d+$/.test(t))return t;break;case w.decimal:if(/^[+-]?\d*\.\d+$/.test(t))return t;break;case w.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(t))return t;break}return`"${t}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===oe.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:i,graph:s}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(t)} ${this._encodeObject(i)}${O(s)?"":` ${this._encodeIriOrBlank(s)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,t,i,s,r){i===void 0?this._writeQuad(e.subject,e.predicate,e.object,e.graph,t):typeof s=="function"?this._writeQuad(e,t,i,N,s):this._writeQuad(e,t,i,s||N,r)}addQuads(e){for(let t=0;t. @@ -17,4 +17,4 @@ import{D as j,n as T,T as L,b as z,t as D,a as E,c as V,d as Z,N as H,e as J,L a ]`)}}list(e){const t=e&&e.length||0,i=new Array(t);for(let s=0;s{t=null,e(i,s)});if(this._endStream)try{return this._outputStream.end(t)}catch{}t&&t()}}function q(o){let e=de[o];return e===void 0&&(o.length===1?(e=o.charCodeAt(0).toString(16),e="\\u0000".substr(0,6-e.length)+e):(e=((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)+9216).toString(16),e="\\U00000000".substr(0,10-e.length)+e)),e}function M(o){return o.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}const R=Symbol("iter");function Q(o,e,t=4){if(t===0)return Object.assign(o,e);for(const i in e)o[i]=Q(o[i]||Object.create(null),e[i],t-1);return o}function W(o,e,t=4){let i=!1;for(const s in o)if(s in e){const r=t===0?null:W(o[s],e[s],t-1);if(r!==!1)i=i||Object.create(null),i[s]=r;else if(t===3)return!1}return i}function k(o,e,t=4){let i=!1;for(const s in o)if(!(s in e))i=i||Object.create(null),i[s]=t===0?null:Q({},o[s],t-1);else if(t!==0){const r=k(o[s],e[s],t-1);if(r!==!1)i=i||Object.create(null),i[s]=r;else if(t===3)return!1}return i}class U{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||j}_termFromId(e){if(e[0]==="."){const t=this._entities,i=e.split(".");return this._factory.quad(this._termFromId(t[i[1]]),this._termFromId(t[i[2]]),this._termFromId(t[i[3]]),i[4]&&this._termFromId(t[i[4]]))}return D(e,this._factory)}_termToNumericId(e){if(e.termType==="Quad"){const t=this._termToNumericId(e.subject),i=this._termToNumericId(e.predicate),s=this._termToNumericId(e.object);let r;return t&&i&&s&&(O(e.graph)||(r=this._termToNumericId(e.graph)))&&this._ids[r?`.${t}.${i}.${s}.${r}`:`.${t}.${i}.${s}`]}return this._ids[E(e)]}_termToNewNumericId(e){const t=e&&e.termType==="Quad"?`.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${O(e.graph)?"":`.${this._termToNewNumericId(e.graph)}`}`:E(e);return this._ids[t]||(this._ids[this._entities[++this._id]=t]=this._id)}createBlankNode(e){let t,i;if(e)for(t=e=`_:${e}`,i=1;this._ids[t];)t=e+i++;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 m{constructor(e,t){this._size=0,this._graphs=Object.create(null),!t&&e&&!e[0]&&(t=e,e=null),t=t||{},this._factory=t.factory||j,this._entityIndex=t.entityIndex||new U({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.addQuads(e)}get size(){let e=this._size;if(e!==null)return e;e=0;const t=this._graphs;let i,s;for(const r in t)for(const n in i=t[r].subjects)for(const a in s=i[n])e+=Object.keys(s[a]).length;return this._size=e}_addToIndex(e,t,i,s){const r=e[t]||(e[t]={}),n=r[i]||(r[i]={}),a=s in n;return a||(n[s]=null),!a}_removeFromIndex(e,t,i,s){const r=e[t],n=r[i];delete n[s];for(const a in n)return;delete r[i];for(const a in r)return;delete e[t]}*_findInIndex(e,t,i,s,r,n,a,u){let d,l,h;const f=this._entities,c=this._termFromId(f[u]),_={subject:null,predicate:null,object:null};t&&((d=e,e={})[t]=d[t]);for(const I in e)if(l=e[I]){_[r]=this._termFromId(f[I]),i&&((d=l,l={})[i]=d[i]);for(const p in l)if(h=l[p]){_[n]=this._termFromId(f[p]);const g=s?s in h?[s]:[]:Object.keys(h);for(let v=0;v{i in t||(t[i]=!0,e(this._termFromId(this._entities[i],this._factory)))}}add(e){return this.addQuad(e),this}addQuad(e,t,i,s){t||(s=e.graph,i=e.object,t=e.predicate,e=e.subject),s=s?this._termToNewNumericId(s):1;let r=this._graphs[s];return r||(r=this._graphs[s]={subjects:{},predicates:{},objects:{}},Object.freeze(r)),e=this._termToNewNumericId(e),t=this._termToNewNumericId(t),i=this._termToNewNumericId(i),this._addToIndex(r.subjects,e,t,i)?(this._addToIndex(r.predicates,t,i,e),this._addToIndex(r.objects,i,e,t),this._size=null,!0):!1}addQuads(e){for(let t=0;t{this.addQuad(t)}),e}removeQuad(e,t,i,s){t||({subject:e,predicate:t,object:i,graph:s}=e),s=s?this._termToNumericId(s):1;const r=this._graphs;let n,a,u;if(!(e=e&&this._termToNumericId(e))||!(t=t&&this._termToNumericId(t))||!(i=i&&this._termToNumericId(i))||!(n=r[s])||!(a=n.subjects[e])||!(u=a[t])||!(i in u))return!1;this._removeFromIndex(n.subjects,e,t,i),this._removeFromIndex(n.predicates,t,i,e),this._removeFromIndex(n.objects,i,e,t),this._size!==null&&this._size--;for(e in n.subjects)return!0;return delete r[s],!0}removeQuads(e){for(let t=0;t{this.removeQuad(t)}),e}removeMatches(e,t,i,s){const r=new z.Readable({objectMode:!0}),n=this.readQuads(e,t,i,s);return r._read=a=>{for(;--a>=0;){const{done:u,value:d}=n.next();if(u){r.push(null);return}r.push(d)}},this.remove(r)}deleteGraph(e){return this.removeMatches(null,null,null,e)}getQuads(e,t,i,s){return[...this.readQuads(e,t,i,s)]}*readQuads(e,t,i,s){const r=this._getGraphs(s);let n,a,u,d;if(!(e&&!(a=this._termToNumericId(e))||t&&!(u=this._termToNumericId(t))||i&&!(d=this._termToNumericId(i))))for(const l in r)(n=r[l])&&(a?d?yield*this._findInIndex(n.objects,d,a,u,"object","subject","predicate",l):yield*this._findInIndex(n.subjects,a,u,null,"subject","predicate","object",l):u?yield*this._findInIndex(n.predicates,u,d,null,"predicate","object","subject",l):d?yield*this._findInIndex(n.objects,d,null,null,"object","subject","predicate",l):yield*this._findInIndex(n.subjects,null,null,null,"subject","predicate","object",l))}match(e,t,i,s){return new x(this,e,t,i,s,{entityIndex:this._entityIndex})}countQuads(e,t,i,s){const r=this._getGraphs(s);let n=0,a,u,d,l;if(e&&!(u=this._termToNumericId(e))||t&&!(d=this._termToNumericId(t))||i&&!(l=this._termToNumericId(i)))return 0;for(const h in r)(a=r[h])&&(e?i?n+=this._countInIndex(a.objects,l,u,d):n+=this._countInIndex(a.subjects,u,d,l):t?n+=this._countInIndex(a.predicates,d,l,u):n+=this._countInIndex(a.objects,l,u,d));return n}forEach(e,t,i,s,r){this.some(n=>(e(n,this),!1),t,i,s,r)}every(e,t,i,s,r){return!this.some(n=>!e(n,this),t,i,s,r)}some(e,t,i,s,r){for(const n of this.readQuads(t,i,s,r))if(e(n))return!0;return!1}getSubjects(e,t,i){const s=[];return this.forSubjects(r=>{s.push(r)},e,t,i),s}forSubjects(e,t,i,s){const r=this._getGraphs(s);let n,a,u;if(e=this._uniqueEntities(e),!(t&&!(a=this._termToNumericId(t))||i&&!(u=this._termToNumericId(i))))for(s in r)(n=r[s])&&(a?u?this._loopBy2Keys(n.predicates,a,u,e):this._loopByKey1(n.subjects,a,e):u?this._loopByKey0(n.objects,u,e):this._loop(n.subjects,e))}getPredicates(e,t,i){const s=[];return this.forPredicates(r=>{s.push(r)},e,t,i),s}forPredicates(e,t,i,s){const r=this._getGraphs(s);let n,a,u;if(e=this._uniqueEntities(e),!(t&&!(a=this._termToNumericId(t))||i&&!(u=this._termToNumericId(i))))for(s in r)(n=r[s])&&(a?u?this._loopBy2Keys(n.objects,u,a,e):this._loopByKey0(n.subjects,a,e):u?this._loopByKey1(n.predicates,u,e):this._loop(n.predicates,e))}getObjects(e,t,i){const s=[];return this.forObjects(r=>{s.push(r)},e,t,i),s}forObjects(e,t,i,s){const r=this._getGraphs(s);let n,a,u;if(e=this._uniqueEntities(e),!(t&&!(a=this._termToNumericId(t))||i&&!(u=this._termToNumericId(i))))for(s in r)(n=r[s])&&(a?u?this._loopBy2Keys(n.subjects,a,u,e):this._loopByKey1(n.objects,a,e):u?this._loopByKey0(n.predicates,u,e):this._loop(n.objects,e))}getGraphs(e,t,i){const s=[];return this.forGraphs(r=>{s.push(r)},e,t,i),s}forGraphs(e,t,i,s){for(const r in this._graphs)this.some(n=>(e(n.graph),!0),t,i,s,this._termFromId(this._entities[r]))}createBlankNode(e){return this._entityIndex.createBlankNode(e)}extractLists({remove:e=!1,ignoreErrors:t=!1}={}){const i={},s=t?()=>!0:(a,u)=>{throw new Error(`${a.value} ${u}`)},r=this.getQuads(null,T.rdf.rest,T.rdf.nil,null),n=e?[...r]:[];return r.forEach(a=>{const u=[];let d=!1,l,h;const f=a.graph;let c=a.subject;for(;c&&!d;){const _=this.getQuads(null,null,c,null),I=this.getQuads(c,null,null,null);let p,g=null,v=null,P=null;for(let y=0;ythis.has(d));const t=this._graphs,i=e._graphs;let s,r,n,a,u;for(const d in i){if(!(s=t[d]))return!1;s=s.subjects;for(const l in r=i[d].subjects){if(!(n=s[l]))return!1;for(const h in a=r[l]){if(!(u=n[h]))return!1;for(const f in a[h])if(!(f in u))return!1}}}return!0}deleteMatches(e,t,i,s){for(const r of this.match(e,t,i,s))this.removeQuad(r);return this}difference(e){if(e&&e instanceof x&&(e=e.filtered),e===this)return new m({entityIndex:this._entityIndex});if(e instanceof m&&e._entityIndex===this._entityIndex){const t=new m({entityIndex:this._entityIndex}),i=k(this._graphs,e._graphs);return i&&(t._graphs=i,t._size=null),t}return this.filter(t=>!e.has(t))}equals(e){return e instanceof x&&(e=e.filtered),e===this||this.size===e.size&&this.contains(e)}filter(e){const t=new m({entityIndex:this._entityIndex});for(const i of this)e(i,this)&&t.add(i);return t}intersection(e){if(e instanceof x&&(e=e.filtered),e===this){const t=new m({entityIndex:this._entityIndex});return t._graphs=Q(Object.create(null),this._graphs),t._size=this._size,t}else if(e instanceof m&&this._entityIndex===e._entityIndex){const t=new m({entityIndex:this._entityIndex}),i=W(e._graphs,this._graphs);return i&&(t._graphs=i,t._size=null),t}return this.filter(t=>e.has(t))}map(e){const t=new m({entityIndex:this._entityIndex});for(const i of this)t.add(e(i,this));return t}reduce(e,t){const i=this.readQuads();let s=t===void 0?i.next().value:t;for(const r of i)s=e(s,r,this);return s}toArray(){return this.getQuads()}toCanonical(){throw new Error("not implemented")}toStream(){return this.match()}toString(){return new S().quadsToString(this)}union(e){const t=new m({entityIndex:this._entityIndex});return t._graphs=Q(Object.create(null),this._graphs),t._size=this._size,t.addAll(e),t}*[Symbol.iterator](){yield*this.readQuads()}}function b(o,e,t=0){const i=e[t];if(i&&!(i in o))return!1;let s=!1;for(const r in i?{[i]:o[i]}:o){const n=t===2?null:b(o[r],e,t+1);n!==!1&&(s=s||Object.create(null),s[r]=n)}return s}class x extends z.Readable{constructor(e,t,i,s,r,n){super({objectMode:!0}),Object.assign(this,{n3Store:e,subject:t,predicate:i,object:s,graph:r,options:n})}get filtered(){if(!this._filtered){const{n3Store:e,graph:t,object:i,predicate:s,subject:r}=this,n=this._filtered=new m({factory:e._factory,entityIndex:this.options.entityIndex});let a,u,d;if(r&&!(a=n._termToNumericId(r))||s&&!(u=n._termToNumericId(s))||i&&!(d=n._termToNumericId(i)))return n;const l=e._getGraphs(t);for(const h in l){let f,c,_;!a&&u?(c=b(l[h].predicates,[u,d,a]))&&(f=b(l[h].subjects,[a,u,d]),_=b(l[h].objects,[d,a,u])):d?(_=b(l[h].objects,[d,a,u]))&&(f=b(l[h].subjects,[a,u,d]),c=b(l[h].predicates,[u,d,a])):(f=b(l[h].subjects,[a,u,d]))&&(c=b(l[h].predicates,[u,d,a]),_=b(l[h].objects,[d,a,u])),f&&(n._graphs[h]={subjects:f,predicates:c,objects:_})}n._size=null}return this._filtered}get size(){return this.filtered.size}_read(e){e>0&&!this[R]&&(this[R]=this[Symbol.iterator]());const t=this[R];for(;--e>=0;){const{done:i,value:s}=t.next();if(i){this.push(null);return}this.push(s)}}addAll(e){return this.filtered.addAll(e)}contains(e){return this.filtered.contains(e)}deleteMatches(e,t,i,s){return this.filtered.deleteMatches(e,t,i,s)}difference(e){return this.filtered.difference(e)}equals(e){return this.filtered.equals(e)}every(e,t,i,s,r){return this.filtered.every(e,t,i,s,r)}filter(e){return this.filtered.filter(e)}forEach(e,t,i,s,r){return this.filtered.forEach(e,t,i,s,r)}import(e){return this.filtered.import(e)}intersection(e){return this.filtered.intersection(e)}map(e){return this.filtered.map(e)}some(e,t,i,s,r){return this.filtered.some(e,t,i,s,r)}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 S().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,i,s){return new x(this.filtered,e,t,i,s,this.options)}*[Symbol.iterator](){yield*this._filtered||this.n3Store.readQuads(this.subject,this.predicate,this.object,this.graph)}}class he{dataset(e){return new m(e)}}function ce(o){const e=[];for(const{subject:t,object:i}of o.match(null,j.namedNode("http://www.w3.org/2000/10/swap/log#implies"),null,j.defaultGraph())){const s=[...o.match(null,null,null,t)],r=[...o.match(null,null,null,i)];e.push({premise:s,conclusion:r})}return e}class fe{constructor(e){this._store=e}_add(e,t,i,s,r){this._store._addToIndex(s.subjects,e,t,i)&&(this._store._addToIndex(s.predicates,t,i,e),this._store._addToIndex(s.objects,i,e,t),r())}_evaluatePremise(e,t,i,s=0){let r,n,a,u,d;const[l,h,f]=e.premise[s].value,c=t[e.premise[s].content],_=!(a=l.value);for(a in _?c:{[a]:c[a]})if(u=c[a]){_&&(l.value=Number(a)),r=!(a=h.value);for(a in r?u:{[a]:u[a]})if(d=u[a]){r&&(h.value=Number(a)),n=!(a=f.value);for(a in n?d:{[a]:d[a]})n&&(f.value=Number(a)),s===e.premise.length-1?e.conclusion.forEach(I=>{this._add(I.subject.value,I.predicate.value,I.object.value,t,()=>{i(I)})}):this._evaluatePremise(e,t,i,s+1);n&&(f.value=null)}r&&(h.value=null)}_&&(l.value=null)}_evaluateRules(e,t,i){for(let s=0;s{i.push([a.subject.value,a.predicate.value,a.object.value,u])})}const r=a=>{a.forEach(u=>{this._add(u.subject.value,u.predicate.value,u.object.value,t,()=>{s(u)})})};this._evaluateRules(e,t,s);let n;for(;(n=i.pop())!==void 0;){const[a,u,d,l]=n,h=l.basePremise.subject.value;h||(l.basePremise.subject.value=a);const f=l.basePremise.predicate.value;f||(l.basePremise.predicate.value=u);const c=l.basePremise.object.value;c||(l.basePremise.object.value=d),l.premise.length===0?r(l.conclusion):this._evaluatePremise(l,t,s),h||(l.basePremise.subject.value=null),f||(l.basePremise.predicate.value=null),c||(l.basePremise.object.value=null)}}_createRule({premise:e,conclusion:t}){const i={},s=n=>n.termType==="Variable"?i[n.value]=i[n.value]||{}:{value:this._store._termToNewNumericId(n)},r=n=>({subject:s(n.subject),predicate:s(n.predicate),object:s(n.object)});return{premise:e.map(n=>r(n)),conclusion:t.map(n=>r(n)),variables:Object.values(i)}}reason(e){Array.isArray(e)||(e=ce(e)),e=e.map(i=>this._createRule(i));for(const i of e)for(const s of e)for(let r=0;r{u.value=null})}}for(const i of e){const s=new Set;i.premise=i.premise.map(r=>K(r,s))}const t=this._store._getGraphs();for(const i in t)this._reasonGraphNaive(e,t[i]);this._store._size=null}}function K({subject:o,predicate:e,object:t},i){const s=o.value||i.has(o)||(i.add(o),!1),r=e.value||i.has(e)||(i.add(e),!1),n=t.value||i.has(t)||(i.add(t),!1);return!s&&r?{content:"predicates",value:[e,t,o]}:n?{content:"objects",value:[t,o,e]}:{content:"subjects",value:[o,e,t]}}function B(o,e){return o.value===null&&(o.value=e.value),o.value===e.value}class _e extends z.Transform{constructor(e){super({encoding:"utf8",writableObjectMode:!0});const t=this._writer=new S({write:(i,s,r)=>{this.push(i),r&&r()},end:i=>{this.push(null),i&&i()}},e);this._transform=(i,s,r)=>{t.addQuad(i,r)},this._flush=i=>{t.end(i)}}import(e){return e.on("data",t=>{this.write(t)}),e.on("end",()=>{this.end()}),e.on("error",t=>{this.emit("error",t)}),e.on("prefix",(t,i)=>{this._writer.addPrefix(t,i)}),this}}const Ie={Lexer:V,Parser:Z,Writer:S,Store:m,StoreFactory:he,EntityIndex:U,StreamParser:H,StreamWriter:_e,Util:oe,Reasoner:fe,DataFactory:j,Term:L,NamedNode:J,Literal:X,BlankNode:Y,Variable:ee,DefaultGraph:te,Quad:G,Triple:G,termFromId:D,termToId:E};export{Y as BlankNode,j as DataFactory,te as DefaultGraph,U as EntityIndex,V as Lexer,X as Literal,J as NamedNode,Z as Parser,G as Quad,fe as Reasoner,m as Store,he as StoreFactory,H as StreamParser,_e as StreamWriter,L as Term,G as Triple,oe as Util,ee as Variable,S as Writer,Ie as default,ce as getRulesFromDataset,D as termFromId,E as termToId}; +`),this._subject=null),this._write=this._blockedWrite;let t=e&&((i,s)=>{t=null,e(i,s)});if(this._endStream)try{return this._outputStream.end(t)}catch{}t&&t()}}function q(l){let e=de[l];return e===void 0&&(l.length===1?(e=l.charCodeAt(0).toString(16),e="\\u0000".substr(0,6-e.length)+e):(e=((l.charCodeAt(0)-55296)*1024+l.charCodeAt(1)+9216).toString(16),e="\\U00000000".substr(0,10-e.length)+e)),e}function M(l){return l.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}const R=Symbol("iter");function Q(l,e,t=4){if(t===0)return Object.assign(l,e);for(const i in e)l[i]=Q(l[i]||Object.create(null),e[i],t-1);return l}function W(l,e,t=4){let i=!1;for(const s in l)if(s in e){const r=t===0?null:W(l[s],e[s],t-1);if(r!==!1)i=i||Object.create(null),i[s]=r;else if(t===3)return!1}return i}function k(l,e,t=4){let i=!1;for(const s in l)if(!(s in e))i=i||Object.create(null),i[s]=t===0?null:Q({},l[s],t-1);else if(t!==0){const r=k(l[s],e[s],t-1);if(r!==!1)i=i||Object.create(null),i[s]=r;else if(t===3)return!1}return i}class U{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||j}_termFromId(e){if(e[0]==="."){const t=this._entities,i=e.split(".");return this._factory.quad(this._termFromId(t[i[1]]),this._termFromId(t[i[2]]),this._termFromId(t[i[3]]),i[4]&&this._termFromId(t[i[4]]))}return D(e,this._factory)}_termToNumericId(e){if(e.termType==="Quad"){const t=this._termToNumericId(e.subject),i=this._termToNumericId(e.predicate),s=this._termToNumericId(e.object);let r;return t&&i&&s&&(O(e.graph)||(r=this._termToNumericId(e.graph)))&&this._ids[r?`.${t}.${i}.${s}.${r}`:`.${t}.${i}.${s}`]}return this._ids[E(e)]}_termToNewNumericId(e){const t=e&&e.termType==="Quad"?`.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${O(e.graph)?"":`.${this._termToNewNumericId(e.graph)}`}`:E(e);return this._ids[t]||(this._ids[this._entities[++this._id]=t]=this._id)}createBlankNode(e){let t,i;if(e)for(t=e=`_:${e}`,i=1;this._ids[t];)t=e+i++;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 m{constructor(e,t){this._size=0,this._graphs=Object.create(null),!t&&e&&!e[0]&&(t=e,e=null),t=t||{},this._factory=t.factory||j,this._entityIndex=t.entityIndex||new U({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.addQuads(e)}get size(){let e=this._size;if(e!==null)return e;e=0;const t=this._graphs;let i,s;for(const r in t)for(const n in i=t[r].subjects)for(const a in s=i[n])e+=Object.keys(s[a]).length;return this._size=e}_addToIndex(e,t,i,s){const r=e[t]||(e[t]={}),n=r[i]||(r[i]={}),a=s in n;return a||(n[s]=null),!a}_removeFromIndex(e,t,i,s){const r=e[t],n=r[i];delete n[s];for(const a in n)return;delete r[i];for(const a in r)return;delete e[t]}*_findInIndex(e,t,i,s,r,n,a,u){let d,o,h;const f=this._entities,c=this._termFromId(f[u]),_={subject:null,predicate:null,object:null};t&&((d=e,e={})[t]=d[t]);for(const I in e)if(o=e[I]){_[r]=this._termFromId(f[I]),i&&((d=o,o={})[i]=d[i]);for(const p in o)if(h=o[p]){_[n]=this._termFromId(f[p]);const g=s?s in h?[s]:[]:Object.keys(h);for(let v=0;v{i in t||(t[i]=!0,e(this._termFromId(this._entities[i],this._factory)))}}add(e){return this.addQuad(e),this}addQuad(e,t,i,s){t||(s=e.graph,i=e.object,t=e.predicate,e=e.subject),s=s?this._termToNewNumericId(s):1;let r=this._graphs[s];return r||(r=this._graphs[s]={subjects:{},predicates:{},objects:{}},Object.freeze(r)),e=this._termToNewNumericId(e),t=this._termToNewNumericId(t),i=this._termToNewNumericId(i),this._addToIndex(r.subjects,e,t,i)?(this._addToIndex(r.predicates,t,i,e),this._addToIndex(r.objects,i,e,t),this._size=null,!0):!1}addQuads(e){for(let t=0;t{this.addQuad(t)}),e}removeQuad(e,t,i,s){t||({subject:e,predicate:t,object:i,graph:s}=e),s=s?this._termToNumericId(s):1;const r=this._graphs;let n,a,u;if(!(e=e&&this._termToNumericId(e))||!(t=t&&this._termToNumericId(t))||!(i=i&&this._termToNumericId(i))||!(n=r[s])||!(a=n.subjects[e])||!(u=a[t])||!(i in u))return!1;this._removeFromIndex(n.subjects,e,t,i),this._removeFromIndex(n.predicates,t,i,e),this._removeFromIndex(n.objects,i,e,t),this._size!==null&&this._size--;for(e in n.subjects)return!0;return delete r[s],!0}removeQuads(e){for(let t=0;t{this.removeQuad(t)}),e}removeMatches(e,t,i,s){const r=new z.Readable({objectMode:!0}),n=this.readQuads(e,t,i,s);return r._read=a=>{for(;--a>=0;){const{done:u,value:d}=n.next();if(u){r.push(null);return}r.push(d)}},this.remove(r)}deleteGraph(e){return this.removeMatches(null,null,null,e)}getQuads(e,t,i,s){return[...this.readQuads(e,t,i,s)]}*readQuads(e,t,i,s){const r=this._getGraphs(s);let n,a,u,d;if(!(e&&!(a=this._termToNumericId(e))||t&&!(u=this._termToNumericId(t))||i&&!(d=this._termToNumericId(i))))for(const o in r)(n=r[o])&&(a?d?yield*this._findInIndex(n.objects,d,a,u,"object","subject","predicate",o):yield*this._findInIndex(n.subjects,a,u,null,"subject","predicate","object",o):u?yield*this._findInIndex(n.predicates,u,d,null,"predicate","object","subject",o):d?yield*this._findInIndex(n.objects,d,null,null,"object","subject","predicate",o):yield*this._findInIndex(n.subjects,null,null,null,"subject","predicate","object",o))}match(e,t,i,s){return new x(this,e,t,i,s,{entityIndex:this._entityIndex})}countQuads(e,t,i,s){const r=this._getGraphs(s);let n=0,a,u,d,o;if(e&&!(u=this._termToNumericId(e))||t&&!(d=this._termToNumericId(t))||i&&!(o=this._termToNumericId(i)))return 0;for(const h in r)(a=r[h])&&(e?i?n+=this._countInIndex(a.objects,o,u,d):n+=this._countInIndex(a.subjects,u,d,o):t?n+=this._countInIndex(a.predicates,d,o,u):n+=this._countInIndex(a.objects,o,u,d));return n}forEach(e,t,i,s,r){this.some(n=>(e(n,this),!1),t,i,s,r)}every(e,t,i,s,r){return!this.some(n=>!e(n,this),t,i,s,r)}some(e,t,i,s,r){for(const n of this.readQuads(t,i,s,r))if(e(n))return!0;return!1}getSubjects(e,t,i){const s=[];return this.forSubjects(r=>{s.push(r)},e,t,i),s}forSubjects(e,t,i,s){const r=this._getGraphs(s);let n,a,u;if(e=this._uniqueEntities(e),!(t&&!(a=this._termToNumericId(t))||i&&!(u=this._termToNumericId(i))))for(s in r)(n=r[s])&&(a?u?this._loopBy2Keys(n.predicates,a,u,e):this._loopByKey1(n.subjects,a,e):u?this._loopByKey0(n.objects,u,e):this._loop(n.subjects,e))}getPredicates(e,t,i){const s=[];return this.forPredicates(r=>{s.push(r)},e,t,i),s}forPredicates(e,t,i,s){const r=this._getGraphs(s);let n,a,u;if(e=this._uniqueEntities(e),!(t&&!(a=this._termToNumericId(t))||i&&!(u=this._termToNumericId(i))))for(s in r)(n=r[s])&&(a?u?this._loopBy2Keys(n.objects,u,a,e):this._loopByKey0(n.subjects,a,e):u?this._loopByKey1(n.predicates,u,e):this._loop(n.predicates,e))}getObjects(e,t,i){const s=[];return this.forObjects(r=>{s.push(r)},e,t,i),s}forObjects(e,t,i,s){const r=this._getGraphs(s);let n,a,u;if(e=this._uniqueEntities(e),!(t&&!(a=this._termToNumericId(t))||i&&!(u=this._termToNumericId(i))))for(s in r)(n=r[s])&&(a?u?this._loopBy2Keys(n.subjects,a,u,e):this._loopByKey1(n.objects,a,e):u?this._loopByKey0(n.predicates,u,e):this._loop(n.objects,e))}getGraphs(e,t,i){const s=[];return this.forGraphs(r=>{s.push(r)},e,t,i),s}forGraphs(e,t,i,s){for(const r in this._graphs)this.some(n=>(e(n.graph),!0),t,i,s,this._termFromId(this._entities[r]))}createBlankNode(e){return this._entityIndex.createBlankNode(e)}extractLists({remove:e=!1,ignoreErrors:t=!1}={}){const i={},s=t?()=>!0:(a,u)=>{throw new Error(`${a.value} ${u}`)},r=this.getQuads(null,T.rdf.rest,T.rdf.nil,null),n=e?[...r]:[];return r.forEach(a=>{const u=[];let d=!1,o,h;const f=a.graph;let c=a.subject;for(;c&&!d;){const _=this.getQuads(null,null,c,null),I=this.getQuads(c,null,null,null);let p,g=null,v=null,P=null;for(let y=0;ythis.has(d));const t=this._graphs,i=e._graphs;let s,r,n,a,u;for(const d in i){if(!(s=t[d]))return!1;s=s.subjects;for(const o in r=i[d].subjects){if(!(n=s[o]))return!1;for(const h in a=r[o]){if(!(u=n[h]))return!1;for(const f in a[h])if(!(f in u))return!1}}}return!0}deleteMatches(e,t,i,s){for(const r of this.match(e,t,i,s))this.removeQuad(r);return this}difference(e){if(e&&e instanceof x&&(e=e.filtered),e===this)return new m({entityIndex:this._entityIndex});if(e instanceof m&&e._entityIndex===this._entityIndex){const t=new m({entityIndex:this._entityIndex}),i=k(this._graphs,e._graphs);return i&&(t._graphs=i,t._size=null),t}return this.filter(t=>!e.has(t))}equals(e){return e instanceof x&&(e=e.filtered),e===this||this.size===e.size&&this.contains(e)}filter(e){const t=new m({entityIndex:this._entityIndex});for(const i of this)e(i,this)&&t.add(i);return t}intersection(e){if(e instanceof x&&(e=e.filtered),e===this){const t=new m({entityIndex:this._entityIndex});return t._graphs=Q(Object.create(null),this._graphs),t._size=this._size,t}else if(e instanceof m&&this._entityIndex===e._entityIndex){const t=new m({entityIndex:this._entityIndex}),i=W(e._graphs,this._graphs);return i&&(t._graphs=i,t._size=null),t}return this.filter(t=>e.has(t))}map(e){const t=new m({entityIndex:this._entityIndex});for(const i of this)t.add(e(i,this));return t}reduce(e,t){const i=this.readQuads();let s=t===void 0?i.next().value:t;for(const r of i)s=e(s,r,this);return s}toArray(){return this.getQuads()}toCanonical(){throw new Error("not implemented")}toStream(){return this.match()}toString(){return new S().quadsToString(this)}union(e){const t=new m({entityIndex:this._entityIndex});return t._graphs=Q(Object.create(null),this._graphs),t._size=this._size,t.addAll(e),t}*[Symbol.iterator](){yield*this.readQuads()}}function b(l,e,t=0){const i=e[t];if(i&&!(i in l))return!1;let s=!1;for(const r in i?{[i]:l[i]}:l){const n=t===2?null:b(l[r],e,t+1);n!==!1&&(s=s||Object.create(null),s[r]=n)}return s}class x extends z.Readable{constructor(e,t,i,s,r,n){super({objectMode:!0}),Object.assign(this,{n3Store:e,subject:t,predicate:i,object:s,graph:r,options:n})}get filtered(){if(!this._filtered){const{n3Store:e,graph:t,object:i,predicate:s,subject:r}=this,n=this._filtered=new m({factory:e._factory,entityIndex:this.options.entityIndex});let a,u,d;if(r&&!(a=n._termToNumericId(r))||s&&!(u=n._termToNumericId(s))||i&&!(d=n._termToNumericId(i)))return n;const o=e._getGraphs(t);for(const h in o){let f,c,_;!a&&u?(c=b(o[h].predicates,[u,d,a]))&&(f=b(o[h].subjects,[a,u,d]),_=b(o[h].objects,[d,a,u])):d?(_=b(o[h].objects,[d,a,u]))&&(f=b(o[h].subjects,[a,u,d]),c=b(o[h].predicates,[u,d,a])):(f=b(o[h].subjects,[a,u,d]))&&(c=b(o[h].predicates,[u,d,a]),_=b(o[h].objects,[d,a,u])),f&&(n._graphs[h]={subjects:f,predicates:c,objects:_})}n._size=null}return this._filtered}get size(){return this.filtered.size}_read(e){e>0&&!this[R]&&(this[R]=this[Symbol.iterator]());const t=this[R];for(;--e>=0;){const{done:i,value:s}=t.next();if(i){this.push(null);return}this.push(s)}}addAll(e){return this.filtered.addAll(e)}contains(e){return this.filtered.contains(e)}deleteMatches(e,t,i,s){return this.filtered.deleteMatches(e,t,i,s)}difference(e){return this.filtered.difference(e)}equals(e){return this.filtered.equals(e)}every(e,t,i,s,r){return this.filtered.every(e,t,i,s,r)}filter(e){return this.filtered.filter(e)}forEach(e,t,i,s,r){return this.filtered.forEach(e,t,i,s,r)}import(e){return this.filtered.import(e)}intersection(e){return this.filtered.intersection(e)}map(e){return this.filtered.map(e)}some(e,t,i,s,r){return this.filtered.some(e,t,i,s,r)}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 S().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,i,s){return new x(this.filtered,e,t,i,s,this.options)}*[Symbol.iterator](){yield*this._filtered||this.n3Store.readQuads(this.subject,this.predicate,this.object,this.graph)}}class he{dataset(e){return new m(e)}}function ce(l){const e=[];for(const{subject:t,object:i}of l.match(null,j.namedNode("http://www.w3.org/2000/10/swap/log#implies"),null,j.defaultGraph())){const s=[...l.match(null,null,null,t)],r=[...l.match(null,null,null,i)];e.push({premise:s,conclusion:r})}return e}class fe{constructor(e){this._store=e}_add(e,t,i,s,r){this._store._addToIndex(s.subjects,e,t,i)&&(this._store._addToIndex(s.predicates,t,i,e),this._store._addToIndex(s.objects,i,e,t),r())}_evaluatePremise(e,t,i,s=0){let r,n,a,u,d;const[o,h,f]=e.premise[s].value,c=t[e.premise[s].content],_=!(a=o.value);for(a in _?c:{[a]:c[a]})if(u=c[a]){_&&(o.value=Number(a)),r=!(a=h.value);for(a in r?u:{[a]:u[a]})if(d=u[a]){r&&(h.value=Number(a)),n=!(a=f.value);for(a in n?d:{[a]:d[a]})n&&(f.value=Number(a)),s===e.premise.length-1?e.conclusion.forEach(I=>{this._add(I.subject.value,I.predicate.value,I.object.value,t,()=>{i(I)})}):this._evaluatePremise(e,t,i,s+1);n&&(f.value=null)}r&&(h.value=null)}_&&(o.value=null)}_evaluateRules(e,t,i){for(let s=0;s{i.push([a.subject.value,a.predicate.value,a.object.value,u])})}const r=a=>{a.forEach(u=>{this._add(u.subject.value,u.predicate.value,u.object.value,t,()=>{s(u)})})};this._evaluateRules(e,t,s);let n;for(;(n=i.pop())!==void 0;){const[a,u,d,o]=n,h=o.basePremise.subject.value;h||(o.basePremise.subject.value=a);const f=o.basePremise.predicate.value;f||(o.basePremise.predicate.value=u);const c=o.basePremise.object.value;c||(o.basePremise.object.value=d),o.premise.length===0?r(o.conclusion):this._evaluatePremise(o,t,s),h||(o.basePremise.subject.value=null),f||(o.basePremise.predicate.value=null),c||(o.basePremise.object.value=null)}}_createRule({premise:e,conclusion:t}){const i={},s=n=>n.termType==="Variable"?i[n.value]=i[n.value]||{}:{value:this._store._termToNewNumericId(n)},r=n=>({subject:s(n.subject),predicate:s(n.predicate),object:s(n.object)});return{premise:e.map(n=>r(n)),conclusion:t.map(n=>r(n)),variables:Object.values(i)}}reason(e){Array.isArray(e)||(e=ce(e)),e=e.map(i=>this._createRule(i));for(const i of e)for(const s of e)for(let r=0;r{u.value=null})}}for(const i of e){const s=new Set;i.premise=i.premise.map(r=>K(r,s))}const t=this._store._getGraphs();for(const i in t)this._reasonGraphNaive(e,t[i]);this._store._size=null}}function K({subject:l,predicate:e,object:t},i){const s=l.value||i.has(l)||(i.add(l),!1),r=e.value||i.has(e)||(i.add(e),!1),n=t.value||i.has(t)||(i.add(t),!1);return!s&&r?{content:"predicates",value:[e,t,l]}:n?{content:"objects",value:[t,l,e]}:{content:"subjects",value:[l,e,t]}}function B(l,e){return l.value===null&&(l.value=e.value),l.value===e.value}class _e extends z.Transform{constructor(e){super({encoding:"utf8",writableObjectMode:!0});const t=this._writer=new S({write:(i,s,r)=>{this.push(i),r&&r()},end:i=>{this.push(null),i&&i()}},e);this._transform=(i,s,r)=>{t.addQuad(i,r)},this._flush=i=>{t.end(i)}}import(e){return e.on("data",t=>{this.write(t)}),e.on("end",()=>{this.end()}),e.on("error",t=>{this.emit("error",t)}),e.on("prefix",(t,i)=>{this._writer.addPrefix(t,i)}),this}}const pe={Lexer:V,Parser:Z,Writer:S,Store:m,StoreFactory:he,EntityIndex:U,StreamParser:H,StreamWriter:_e,Util:le,Reasoner:fe,DataFactory:j,Term:L,NamedNode:J,Literal:X,BlankNode:Y,Variable:ee,DefaultGraph:te,Quad:G,Triple:G,termFromId:D,termToId:E};export{Y as BlankNode,j as DataFactory,te as DefaultGraph,U as EntityIndex,V as Lexer,X as Literal,J as NamedNode,Z as Parser,G as Quad,fe as Reasoner,m as Store,he as StoreFactory,H as StreamParser,_e as StreamWriter,L as Term,G as Triple,le as Util,ee as Variable,S as Writer,pe as default,ce as getRulesFromDataset,D as termFromId,E as termToId}; diff --git a/assets/index-d5GvA7NS.js b/assets/index-d5GvA7NS.js deleted file mode 100644 index 3da0591..0000000 --- a/assets/index-d5GvA7NS.js +++ /dev/null @@ -1,5 +0,0 @@ -import{S as Pf}from"./index-BOvYCoiN.js";import{b as be,c as dt,a as Ge,e as ct,d as Ie,s as ks,f as kf}from"./main-CO-45Vwa.js";import{r as Mf}from"./readable-BmS1kvD9.js";import{r as ao,a as Vf}from"./index-keipGPtm.js";import{c as jf}from"./canonicalize-Bd8h0v92.js";var Ms={},dr={},{Buffer:ft}=be,re={},Vs=re.LEFT_BRACE=1,Ur=re.RIGHT_BRACE=2,js=re.LEFT_BRACKET=3,ki=re.RIGHT_BRACKET=4,Wr=re.COLON=5,Kr=re.COMMA=6,Fs=re.TRUE=7,Us=re.FALSE=8,Ws=re.NULL=9,Jr=re.STRING=10,Bs=re.NUMBER=11,It=re.START=17,Gs=re.STOP=18,Do=re.TRUE1=33,Lo=re.TRUE2=34,Po=re.TRUE3=35,ko=re.FALSE1=49,Mo=re.FALSE2=50,Vo=re.FALSE3=51,jo=re.FALSE4=52,Fo=re.NULL1=65,Uo=re.NULL2=66,Wo=re.NULL3=67,Bo=re.NUMBER1=81,Qn=re.NUMBER3=83,Ve=re.STRING1=97,Go=re.STRING2=98,Ho=re.STRING3=99,Ff=re.STRING4=100,Uf=re.STRING5=101,Ko=re.STRING6=102,Wt=re.VALUE=113,Zn=re.KEY=114,Cr=re.OBJECT=129,Nr=re.ARRAY=130,Wf=92,Bf=47,Gf=8,Hf=12,Kf=10,Jf=13,qf=9,so=64*1024;function Or(e){return ft.alloc?ft.alloc(e):new ft(e)}function ut(){this.tState=It,this.value=void 0,this.string=void 0,this.stringBuffer=Or(so),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=Wt,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:Or(2),3:Or(3),4:Or(4)},this.offset=-1}ut.toknam=function(e){for(var t=Object.keys(re),r=0,n=t.length;r=so&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=e};$e.appendStringBuf=function(e,t,r){var n=e.length;typeof t=="number"&&(typeof r=="number"?r<0?n=e.length-t+r:n=r-t:n=e.length-t),n<0&&(n=0),this.stringBufferOffset+n>so&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),e.copy(this.stringBuffer,this.stringBufferOffset,t,r),this.stringBufferOffset+=n};$e.write=function(e){typeof e=="string"&&(e=new ft(e));for(var t,r=0,n=e.length;r=48&&t<64)this.string=String.fromCharCode(t),this.tState=Qn;else if(!(t===32||t===9||t===10||t===13))return this.charError(e,r)}else if(this.tState===Ve)if(t=e[r],this.bytes_remaining>0){for(var o=0;o=128){if(t<=193||t>244)return this.onError(new Error("Invalid UTF-8 character at position "+r+" in state "+ut.toknam(this.tState)));if(t>=194&&t<=223&&(this.bytes_in_sequence=2),t>=224&&t<=239&&(this.bytes_in_sequence=3),t>=240&&t<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+r>e.length){for(var a=0;a<=e.length-1-r;a++)this.temp_buffs[this.bytes_in_sequence][a]=e[r+a];this.bytes_remaining=r+this.bytes_in_sequence-e.length,r=e.length-1}else this.appendStringBuf(e,r,r+this.bytes_in_sequence),r=r+this.bytes_in_sequence-1}else if(t===34)this.tState=It,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(Jr,this.string),this.offset+=ft.byteLength(this.string,"utf8")+1,this.string=void 0;else if(t===92)this.tState=Go;else if(t>=32)this.appendStringChar(t);else return this.charError(e,r);else if(this.tState===Go)if(t=e[r],t===34)this.appendStringChar(t),this.tState=Ve;else if(t===92)this.appendStringChar(Wf),this.tState=Ve;else if(t===47)this.appendStringChar(Bf),this.tState=Ve;else if(t===98)this.appendStringChar(Gf),this.tState=Ve;else if(t===102)this.appendStringChar(Hf),this.tState=Ve;else if(t===110)this.appendStringChar(Kf),this.tState=Ve;else if(t===114)this.appendStringChar(Jf),this.tState=Ve;else if(t===116)this.appendStringChar(qf),this.tState=Ve;else if(t===117)this.unicode="",this.tState=Ho;else return this.charError(e,r);else if(this.tState===Ho||this.tState===Ff||this.tState===Uf||this.tState===Ko)if(t=e[r],t>=48&&t<64||t>64&&t<=70||t>96&&t<=102){if(this.unicode+=String.fromCharCode(t),this.tState++===Ko){var i=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&i>=56320&&i<57344?(this.appendStringBuf(new ft(String.fromCharCode(this.highSurrogate,i))),this.highSurrogate=void 0):this.highSurrogate===void 0&&i>=55296&&i<56320?this.highSurrogate=i:(this.highSurrogate!==void 0&&(this.appendStringBuf(new ft(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new ft(String.fromCharCode(i)))),this.tState=Ve}}else return this.charError(e,r);else if(this.tState===Bo||this.tState===Qn)switch(t=e[r],t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(t),this.tState=Qn;break;default:this.tState=It;var l=this.numberReviver(this.string,e,r);if(l)return l;this.offset+=this.string.length-1,this.string=void 0,r--;break}else if(this.tState===Do)if(e[r]===114)this.tState=Lo;else return this.charError(e,r);else if(this.tState===Lo)if(e[r]===117)this.tState=Po;else return this.charError(e,r);else if(this.tState===Po)if(e[r]===101)this.tState=It,this.onToken(Fs,!0),this.offset+=3;else return this.charError(e,r);else if(this.tState===ko)if(e[r]===97)this.tState=Mo;else return this.charError(e,r);else if(this.tState===Mo)if(e[r]===108)this.tState=Vo;else return this.charError(e,r);else if(this.tState===Vo)if(e[r]===115)this.tState=jo;else return this.charError(e,r);else if(this.tState===jo)if(e[r]===101)this.tState=It,this.onToken(Us,!1),this.offset+=4;else return this.charError(e,r);else if(this.tState===Fo)if(e[r]===117)this.tState=Uo;else return this.charError(e,r);else if(this.tState===Uo)if(e[r]===108)this.tState=Wo;else return this.charError(e,r);else if(this.tState===Wo)if(e[r]===108)this.tState=It,this.onToken(Ws,null),this.offset+=3;else return this.charError(e,r)};$e.onToken=function(e,t){};$e.parseError=function(e,t){this.tState=Gs,this.onError(new Error("Unexpected "+ut.toknam(e)+(t?"("+JSON.stringify(t)+")":"")+" in state "+ut.toknam(this.state)))};$e.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})};$e.pop=function(){var e=this.value,t=this.stack.pop();this.value=t.value,this.key=t.key,this.mode=t.mode,this.emit(e),this.mode||(this.state=Wt)};$e.emit=function(e){this.mode&&(this.state=Kr),this.onValue(e)};$e.onValue=function(e){};$e.onToken=function(e,t){if(this.state===Wt)if(e===Jr||e===Bs||e===Fs||e===Us||e===Ws)this.value&&(this.value[this.key]=t),this.emit(t);else if(e===Vs)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=Zn,this.mode=Cr;else if(e===js)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=Nr,this.state=Wt;else if(e===Ur)if(this.mode===Cr)this.pop();else return this.parseError(e,t);else if(e===ki)if(this.mode===Nr)this.pop();else return this.parseError(e,t);else return this.parseError(e,t);else if(this.state===Zn)if(e===Jr)this.key=t,this.state=Wr;else if(e===Ur)this.pop();else return this.parseError(e,t);else if(this.state===Wr)if(e===Wr)this.state=Wt;else return this.parseError(e,t);else if(this.state===Kr)if(e===Kr)this.mode===Nr?(this.key++,this.state=Wt):this.mode===Cr&&(this.state=Zn);else if(e===ki&&this.mode===Nr||e===Ur&&this.mode===Cr)this.pop();else return this.parseError(e,t);else return this.parseError(e,t)};$e.numberReviver=function(e,t,r){var n=Number(e);if(isNaN(n))return this.charError(t,r);e.match(/[0-9]+/)==e&&n.toString()!=e?this.onToken(Jr,e):this.onToken(Bs,n)};ut.C=re;var Yf=ut,Se={},en={},Jt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ERROR_CODES=e.ErrorCoded=void 0;class t extends Error{constructor(n,o){super(n),this.code=o}}e.ErrorCoded=t,function(r){r.COLLIDING_KEYWORDS="colliding keywords",r.CONFLICTING_INDEXES="conflicting indexes",r.CYCLIC_IRI_MAPPING="cyclic IRI mapping",r.INVALID_ID_VALUE="invalid @id value",r.INVALID_INDEX_VALUE="invalid @index value",r.INVALID_NEST_VALUE="invalid @nest value",r.INVALID_PREFIX_VALUE="invalid @prefix value",r.INVALID_PROPAGATE_VALUE="invalid @propagate value",r.INVALID_REVERSE_VALUE="invalid @reverse value",r.INVALID_IMPORT_VALUE="invalid @import value",r.INVALID_VERSION_VALUE="invalid @version value",r.INVALID_BASE_IRI="invalid base IRI",r.INVALID_CONTAINER_MAPPING="invalid container mapping",r.INVALID_CONTEXT_ENTRY="invalid context entry",r.INVALID_CONTEXT_NULLIFICATION="invalid context nullification",r.INVALID_DEFAULT_LANGUAGE="invalid default language",r.INVALID_INCLUDED_VALUE="invalid @included value",r.INVALID_IRI_MAPPING="invalid IRI mapping",r.INVALID_JSON_LITERAL="invalid JSON literal",r.INVALID_KEYWORD_ALIAS="invalid keyword alias",r.INVALID_LANGUAGE_MAP_VALUE="invalid language map value",r.INVALID_LANGUAGE_MAPPING="invalid language mapping",r.INVALID_LANGUAGE_TAGGED_STRING="invalid language-tagged string",r.INVALID_LANGUAGE_TAGGED_VALUE="invalid language-tagged value",r.INVALID_LOCAL_CONTEXT="invalid local context",r.INVALID_REMOTE_CONTEXT="invalid remote context",r.INVALID_REVERSE_PROPERTY="invalid reverse property",r.INVALID_REVERSE_PROPERTY_MAP="invalid reverse property map",r.INVALID_REVERSE_PROPERTY_VALUE="invalid reverse property value",r.INVALID_SCOPED_CONTEXT="invalid scoped context",r.INVALID_SCRIPT_ELEMENT="invalid script element",r.INVALID_SET_OR_LIST_OBJECT="invalid set or list object",r.INVALID_TERM_DEFINITION="invalid term definition",r.INVALID_TYPE_MAPPING="invalid type mapping",r.INVALID_TYPE_VALUE="invalid type value",r.INVALID_TYPED_VALUE="invalid typed value",r.INVALID_VALUE_OBJECT="invalid value object",r.INVALID_VALUE_OBJECT_VALUE="invalid value object value",r.INVALID_VOCAB_MAPPING="invalid vocab mapping",r.IRI_CONFUSED_WITH_PREFIX="IRI confused with prefix",r.KEYWORD_REDEFINITION="keyword redefinition",r.LOADING_DOCUMENT_FAILED="loading document failed",r.LOADING_REMOTE_CONTEXT_FAILED="loading remote context failed",r.MULTIPLE_CONTEXT_LINK_HEADERS="multiple context link headers",r.PROCESSING_MODE_CONFLICT="processing mode conflict",r.PROTECTED_TERM_REDEFINITION="protected term redefinition",r.CONTEXT_OVERFLOW="context overflow",r.INVALID_BASE_DIRECTION="invalid base direction",r.RECURSIVE_CONTEXT_INCLUSION="recursive context inclusion",r.INVALID_STREAMING_KEY_ORDER="invalid streaming key order",r.INVALID_EMBEDDED_NODE="invalid embedded node",r.INVALID_ANNOTATION="invalid annotation"}(e.ERROR_CODES||(e.ERROR_CODES={}))})(Jt);var Ar={},zf=/^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i,Xf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Qf=/\s|\uFEFF|\xA0/,Zf=/\r?\n[\x20\x09]+/g,ed=/[;,"]/,td=/[;,"]|\s/,rd=/^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/,Xe={IDLE:1,URI:2,ATTR:4};function Jo(e){return e.replace(Xf,"")}function Br(e){return Qf.test(e)}function nd(e,t){for(;Br(e[t]);)t++;return t}function qo(e){return td.test(e)||!rd.test(e)}function id(e,t){return Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(r=>r in t&&e[r]===t[r])}class ae{constructor(t){this.refs=[],t&&this.parse(t)}rel(t){for(var r=[],n=t.toLowerCase(),o=0;oid(r,t))||this.refs.push(t),this}has(t,r){t=t.toLowerCase(),r=r.toLowerCase();for(var n=0;n",a);if(l===-1)throw new Error("Expected end of URI delimiter at offset "+a);i={uri:t.slice(a+1,l)},a=l,n=Xe.URI}else throw new Error('Unexpected character "'+t[a]+'" at offset '+a);a++}else if(n===Xe.URI)if(Br(t[a])){a++;continue}else if(t[a]===";")n=Xe.ATTR,a++;else if(t[a]===",")n=Xe.IDLE,a++;else throw new Error('Unexpected character "'+t[a]+'" at offset '+a);else if(n===Xe.ATTR){if(t[a]===";"||Br(t[a])){a++;continue}var l=t.indexOf("=",a);l===-1&&(l=t.indexOf(";",a)),l===-1&&(l=t.length);var d=Jo(t.slice(a,l)).toLowerCase(),u="";if(a=l+1,a=nd(t,a),t[a]==='"')for(a++;a"),t.push(r);return t.join(", ")}}ae.isCompatibleEncoding=function(e){return zf.test(e)};ae.parse=function(e,t){return new ae().parse(e,t)};ae.isSingleOccurenceAttr=function(e){return e==="rel"||e==="type"||e==="media"||e==="title"||e==="title*"};ae.isTokenAttr=function(e){return e==="rel"||e==="type"||e==="anchor"};ae.escapeQuotes=function(e){return e.replace(/"/g,'\\"')};ae.expandRelations=function(e){var t=e.rel.split(" ");return t.map(function(r){var n=Object.assign({},e);return n.rel=r,n})};ae.parseExtendedValue=function(e){var t=/([^']+)?(?:'([^']*)')?(.+)/.exec(e);return{language:t[2].toLowerCase(),encoding:ae.isCompatibleEncoding(t[1])?null:t[1].toLowerCase(),value:ae.isCompatibleEncoding(t[1])?decodeURIComponent(t[3]):t[3]}};ae.formatExtendedAttribute=function(e,t){var r=(t.encoding||"utf-8").toUpperCase(),n=t.language||"en",o="";return be.Buffer.isBuffer(t.value)&&ae.isCompatibleEncoding(r)?o=t.value.toString(r):be.Buffer.isBuffer(t.value)?o=t.value.toString("hex").replace(/[0-9a-f]{2}/gi,"%$1"):o=encodeURIComponent(t.value),e+"="+r+"'"+n+"'"+o};ae.formatAttribute=function(e,t){return Array.isArray(t)?t.map(r=>ae.formatAttribute(e,r)).join("; "):e[e.length-1]==="*"||typeof t!="string"?ae.formatExtendedAttribute(e,t):(ae.isTokenAttr(e)?t=qo(t)?'"'+ae.escapeQuotes(t)+'"':ae.escapeQuotes(t):qo(t)&&(t=encodeURIComponent(t),t=t.replace(/%20/g," ").replace(/%2C/g,",").replace(/%3B/g,";"),t='"'+t+'"'),e+"="+t)};var Hs=ae;Object.defineProperty(Ar,"__esModule",{value:!0});Ar.FetchDocumentLoader=void 0;const Yo=Jt,od=Hs,ad=ao;class sd{constructor(t){this.fetcher=t}async load(t){const r=await(this.fetcher||fetch)(t,{headers:new Headers({accept:"application/ld+json"})});if(r.ok&&r.headers){let n=r.headers.get("Content-Type");if(n){const o=n.indexOf(";");o>0&&(n=n.substr(0,o))}if(n==="application/ld+json")return await r.json();if(r.headers.has("Link")){let o;if(r.headers.forEach((a,i)=>{if(i==="link"){const l=(0,od.parse)(a);for(const d of l.get("type","application/ld+json"))if(d.rel==="alternate"){if(o)throw new Error("Multiple JSON-LD alternate links were found on "+t);o=(0,ad.resolve)(d.uri,t)}}}),o)return this.load(o)}throw new Yo.ErrorCoded(`Unsupported JSON-LD media type ${n}`,Yo.ERROR_CODES.LOADING_DOCUMENT_FAILED)}else throw new Error(r.statusText||`Status code: ${r.status}`)}}Ar.FetchDocumentLoader=sd;var lo={},qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.Util=void 0;let xe=class Qe{static isCompactIri(t){return t.indexOf(":")>0&&!(t&&t[0]==="#")}static getPrefix(t,r){if(t&&t[0]==="#")return null;const n=t.indexOf(":");if(n>=0){if(t.length>n+1&&t.charAt(n+1)==="/"&&t.charAt(n+2)==="/")return null;const o=t.substr(0,n);if(o==="_")return null;if(r[o])return o}return null}static getContextValueId(t){if(t===null||typeof t=="string")return t;const r=t["@id"];return r||null}static isSimpleTermDefinitionPrefix(t,r){return!Qe.isPotentialKeyword(t)&&(r.allowPrefixNonGenDelims||typeof t=="string"&&(t[0]==="_"||Qe.isPrefixIriEndingWithGenDelim(t)))}static isPotentialKeyword(t){return typeof t=="string"&&Qe.KEYWORD_REGEX.test(t)}static isPrefixIriEndingWithGenDelim(t){return Qe.ENDS_WITH_GEN_DELIM.test(t)}static isPrefixValue(t){return t&&(typeof t=="string"||t&&typeof t=="object")}static isValidIri(t){return!!(t&&Qe.IRI_REGEX.test(t))}static isValidIriWeak(t){return!!t&&t[0]!==":"&&Qe.IRI_REGEX_WEAK.test(t)}static isValidKeyword(t){return Qe.VALID_KEYWORDS[t]}static isTermProtected(t,r){const n=t[r];return typeof n!="string"&&n&&n["@protected"]}static hasProtectedTerms(t){for(const r of Object.keys(t))if(Qe.isTermProtected(t,r))return!0;return!1}static isReservedInternalKeyword(t){return t.startsWith("@__")}static deepEqual(t,r){const n=Object.keys(t),o=Object.keys(r);return n.length!==o.length?!1:n.every(a=>{const i=t[a],l=r[a];return i===l||i!==null&&l!==null&&typeof i=="object"&&typeof l=="object"&&this.deepEqual(i,l)})}};xe.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`#]*(#[^#]*)?$/;xe.IRI_REGEX_WEAK=/(?::[^:])|\//;xe.KEYWORD_REGEX=/^@[a-z]+$/i;xe.ENDS_WITH_GEN_DELIM=/[:/?#\[\]@]$/;xe.REGEX_LANGUAGE_TAG=/^[a-zA-Z]+(-[a-zA-Z0-9]+)*$/;xe.REGEX_DIRECTION_TAG=/^(ltr)|(rtl)$/;xe.VALID_KEYWORDS={"@annotation":!0,"@base":!0,"@container":!0,"@context":!0,"@direction":!0,"@graph":!0,"@id":!0,"@import":!0,"@included":!0,"@index":!0,"@json":!0,"@language":!0,"@list":!0,"@nest":!0,"@none":!0,"@prefix":!0,"@propagate":!0,"@protected":!0,"@reverse":!0,"@set":!0,"@type":!0,"@value":!0,"@version":!0,"@vocab":!0};xe.EXPAND_KEYS_BLACKLIST=["@base","@vocab","@language","@version","@direction"];xe.ALIAS_DOMAIN_BLACKLIST=["@container","@graph","@id","@index","@list","@nest","@none","@prefix","@reverse","@set","@type","@value","@version"];xe.ALIAS_RANGE_BLACKLIST=["@context","@preserve"];xe.CONTAINERS=["@list","@set","@index","@language","@graph","@id","@type"];xe.CONTAINERS_1_0=["@list","@set","@index"];qt.Util=xe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultExpandOptions=e.JsonLdContextNormalized=void 0;const t=ao,r=Jt,n=qt;class o{constructor(i){this.contextRaw=i}getContextRaw(){return this.contextRaw}expandTerm(i,l,d=e.defaultExpandOptions){const u=this.contextRaw[i];if(u===null||u&&u["@id"]===null)return null;let h=!0;if(u&&l){const S=n.Util.getContextValueId(u);if(S&&S!==i)if(typeof S!="string"||!n.Util.isValidIri(S)&&!n.Util.isValidKeyword(S))n.Util.isPotentialKeyword(S)||(h=!1);else return S}const _=n.Util.getPrefix(i,this.contextRaw),b=this.contextRaw["@vocab"],c=(!!b||b==="")&&b.indexOf(":")<0,E=this.contextRaw["@base"],g=n.Util.isPotentialKeyword(i);if(_){const S=this.contextRaw[_],T=n.Util.getContextValueId(S);if(T){if(typeof S=="string"||!d.allowPrefixForcing){if(!n.Util.isSimpleTermDefinitionPrefix(T,d))return i}else if(T[0]!=="_"&&!g&&!S["@prefix"]&&!(i in this.contextRaw))return i;return T+i.substr(_.length+1)}}else if(l&&(b||b===""||d.allowVocabRelativeToBase&&E&&c)&&!g&&!n.Util.isCompactIri(i))if(c){if(d.allowVocabRelativeToBase)return(b||E?(0,t.resolve)(b,E):"")+i;throw new r.ErrorCoded(`Relative vocab expansion for term '${i}' with vocab '${b}' is not allowed.`,r.ERROR_CODES.INVALID_VOCAB_MAPPING)}else return b+i;else if(!l&&E&&!g&&!n.Util.isCompactIri(i))return(0,t.resolve)(i,E);if(h)return i;throw new r.ErrorCoded(`Invalid IRI mapping found for context entry '${i}': '${JSON.stringify(u)}'`,r.ERROR_CODES.INVALID_IRI_MAPPING)}compactIri(i,l){if(l&&this.contextRaw["@vocab"]&&i.startsWith(this.contextRaw["@vocab"]))return i.substr(this.contextRaw["@vocab"].length);if(!l&&this.contextRaw["@base"]&&i.startsWith(this.contextRaw["@base"]))return i.substr(this.contextRaw["@base"].length);const d={prefix:"",suffix:i};for(const u in this.contextRaw){const h=this.contextRaw[u];if(h&&!n.Util.isPotentialKeyword(u)){const _=n.Util.getContextValueId(h);if(i.startsWith(_)){const b=i.substr(_.length);if(b)b.length=0&&(a!=="@type"||typeof o[a]=="object"&&!(o[a]["@protected"]||o[a]["@container"]==="@set")))throw new D.ErrorCoded(`Keywords can not be aliased to something else. -Tried mapping ${a} to ${JSON.stringify(i)}`,D.ERROR_CODES.KEYWORD_REDEFINITION);if(q.Util.ALIAS_RANGE_BLACKLIST.indexOf(q.Util.getContextValueId(i))>=0)throw new D.ErrorCoded(`Aliasing to certain keywords is not allowed. -Tried mapping ${a} to ${JSON.stringify(i)}`,D.ERROR_CODES.INVALID_KEYWORD_ALIAS);if(i&&q.Util.isPotentialKeyword(q.Util.getContextValueId(i))&&i["@prefix"]===!0)throw new D.ErrorCoded(`Tried to use keyword aliases as prefix: '${a}': '${JSON.stringify(i)}'`,D.ERROR_CODES.INVALID_TERM_DEFINITION);for(;q.Util.isPrefixValue(o[a]);){const l=o[a];let d=!1;if(typeof l=="string")o[a]=t.expandTerm(l,!0),d=d||l!==o[a];else{const u=l["@id"],h=l["@type"],_=!("@prefix"in l)||q.Util.isValidIri(a);if("@id"in l)u!=null&&typeof u=="string"&&(o[a]=Object.assign(Object.assign({},o[a]),{"@id":t.expandTerm(u,!0)}),d=d||u!==o[a]["@id"]);else if(!q.Util.isPotentialKeyword(a)&&_){const b=t.expandTerm(a,!0);b!==a&&(o[a]=Object.assign(Object.assign({},o[a]),{"@id":b}),d=!0)}if(h&&typeof h=="string"&&h!=="@vocab"&&(!l["@container"]||!l["@container"]["@type"])&&_){let b=t.expandTerm(h,!0);r&&h===b&&(b=t.expandTerm(h,!1)),b!==h&&(d=!0,o[a]=Object.assign(Object.assign({},o[a]),{"@type":b}))}}if(!d)break}}}normalize(t,{processingMode:r,normalizeLanguageTags:n}){if(n||r===1)for(const o of Object.keys(t))if(o==="@language"&&typeof t[o]=="string")t[o]=t[o].toLowerCase();else{const a=t[o];if(a&&typeof a=="object"&&typeof a["@language"]=="string"){const i=a["@language"].toLowerCase();i!==a["@language"]&&(t[o]=Object.assign(Object.assign({},a),{"@language":i}))}}}containersToHash(t){for(const r of Object.keys(t)){const n=t[r];if(n&&typeof n=="object"){if(typeof n["@container"]=="string")t[r]=Object.assign(Object.assign({},n),{"@container":{[n["@container"]]:!0}});else if(Array.isArray(n["@container"])){const o={};for(const a of n["@container"])o[a]=!0;t[r]=Object.assign(Object.assign({},n),{"@container":o})}}}}applyScopedProtected(t,{processingMode:r},n){if(r&&r>=1.1&&t["@protected"]){for(const o of Object.keys(t))if(!q.Util.isReservedInternalKeyword(o)&&!q.Util.isPotentialKeyword(o)&&!q.Util.isTermProtected(t,o)){const a=t[o];a&&typeof a=="object"?"@protected"in t[o]||(t[o]=Object.assign(Object.assign({},t[o]),{"@protected":!0})):(t[o]={"@id":a,"@protected":!0},q.Util.isSimpleTermDefinitionPrefix(a,n)&&(t[o]=Object.assign(Object.assign({},t[o]),{"@prefix":!0})))}delete t["@protected"]}}validateKeywordRedefinitions(t,r,n,o){for(const a of o??Object.keys(r))if(q.Util.isTermProtected(t,a)&&(typeof r[a]=="string"?r[a]={"@id":r[a],"@protected":!0}:r[a]=Object.assign(Object.assign({},r[a]),{"@protected":!0}),!q.Util.deepEqual(t[a],r[a])))throw new D.ErrorCoded(`Attempted to override the protected keyword ${a} from ${JSON.stringify(q.Util.getContextValueId(t[a]))} to ${JSON.stringify(q.Util.getContextValueId(r[a]))}`,D.ERROR_CODES.PROTECTED_TERM_REDEFINITION)}validate(t,{processingMode:r}){for(const n of Object.keys(t)){if(q.Util.isReservedInternalKeyword(n))continue;if(n==="")throw new D.ErrorCoded(`The empty term is not allowed, got: '${n}': '${JSON.stringify(t[n])}'`,D.ERROR_CODES.INVALID_TERM_DEFINITION);const o=t[n],a=typeof o;if(q.Util.isPotentialKeyword(n)){switch(n.substr(1)){case"vocab":if(o!==null&&a!=="string")throw new D.ErrorCoded(`Found an invalid @vocab IRI: ${o}`,D.ERROR_CODES.INVALID_VOCAB_MAPPING);break;case"base":if(o!==null&&a!=="string")throw new D.ErrorCoded(`Found an invalid @base IRI: ${t[n]}`,D.ERROR_CODES.INVALID_BASE_IRI);break;case"language":o!==null&&Ze.validateLanguage(o,!0,D.ERROR_CODES.INVALID_DEFAULT_LANGUAGE);break;case"version":if(o!==null&&a!=="number")throw new D.ErrorCoded(`Found an invalid @version number: ${o}`,D.ERROR_CODES.INVALID_VERSION_VALUE);break;case"direction":o!==null&&Ze.validateDirection(o,!0);break;case"propagate":if(r===1)throw new D.ErrorCoded(`Found an illegal @propagate keyword: ${o}`,D.ERROR_CODES.INVALID_CONTEXT_ENTRY);if(o!==null&&a!=="boolean")throw new D.ErrorCoded(`Found an invalid @propagate value: ${o}`,D.ERROR_CODES.INVALID_PROPAGATE_VALUE);break}if(q.Util.isValidKeyword(n)&&q.Util.isValidKeyword(q.Util.getContextValueId(o)))throw new D.ErrorCoded(`Illegal keyword alias in term value, found: '${n}': '${q.Util.getContextValueId(o)}'`,D.ERROR_CODES.KEYWORD_REDEFINITION);continue}if(o!==null)switch(a){case"string":if(q.Util.getPrefix(o,t)===n)throw new D.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.CYCLIC_IRI_MAPPING);if(q.Util.isValidIriWeak(n)){if(o==="@type")throw new D.ErrorCoded(`IRIs can not be mapped to @type, found: '${n}': '${o}'`,D.ERROR_CODES.INVALID_IRI_MAPPING);if(q.Util.isValidIri(o)&&o!==new je.JsonLdContextNormalized(t).expandTerm(n))throw new D.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${n}': '${o}'`,D.ERROR_CODES.INVALID_IRI_MAPPING)}break;case"object":if(!q.Util.isCompactIri(n)&&!("@id"in o)&&(o["@type"]==="@id"?!t["@base"]:!t["@vocab"]))throw new D.ErrorCoded(`Missing @id in context entry: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_IRI_MAPPING);for(const i of Object.keys(o)){const l=o[i];if(l)switch(i){case"@id":if(q.Util.isValidKeyword(l)&&l!=="@type"&&l!=="@id"&&l!=="@graph"&&l!=="@nest")throw new D.ErrorCoded(`Illegal keyword alias in term value, found: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_IRI_MAPPING);if(q.Util.isValidIriWeak(n)){if(l==="@type")throw new D.ErrorCoded(`IRIs can not be mapped to @type, found: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_IRI_MAPPING);if(q.Util.isValidIri(l)&&l!==new je.JsonLdContextNormalized(t).expandTerm(n))throw new D.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_IRI_MAPPING)}if(typeof l!="string")throw new D.ErrorCoded(`Detected non-string @id in context entry: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_IRI_MAPPING);if(q.Util.getPrefix(l,t)===n)throw new D.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.CYCLIC_IRI_MAPPING);break;case"@type":if(o["@container"]==="@type"&&l!=="@id"&&l!=="@vocab")throw new D.ErrorCoded(`@container: @type only allows @type: @id or @vocab, but got: '${n}': '${l}'`,D.ERROR_CODES.INVALID_TYPE_MAPPING);if(typeof l!="string")throw new D.ErrorCoded(`The value of an '@type' must be a string, got '${JSON.stringify(a)}'`,D.ERROR_CODES.INVALID_TYPE_MAPPING);if(l!=="@id"&&l!=="@vocab"&&(r===1||l!=="@json")&&(r===1||l!=="@none")&&(l[0]==="_"||!q.Util.isValidIri(l)))throw new D.ErrorCoded(`A context @type must be an absolute IRI, found: '${n}': '${l}'`,D.ERROR_CODES.INVALID_TYPE_MAPPING);break;case"@reverse":if(typeof l=="string"&&o["@id"]&&o["@id"]!==l)throw new D.ErrorCoded(`Found non-matching @id and @reverse term values in '${n}':'${l}' and '${o["@id"]}'`,D.ERROR_CODES.INVALID_REVERSE_PROPERTY);if("@nest"in o)throw new D.ErrorCoded(`@nest is not allowed in the reverse property '${n}'`,D.ERROR_CODES.INVALID_REVERSE_PROPERTY);break;case"@container":if(r===1&&(Object.keys(l).length>1||q.Util.CONTAINERS_1_0.indexOf(Object.keys(l)[0])<0))throw new D.ErrorCoded(`Invalid term @container for '${n}' ('${Object.keys(l)}') in 1.0, must be only one of ${q.Util.CONTAINERS_1_0.join(", ")}`,D.ERROR_CODES.INVALID_CONTAINER_MAPPING);for(const d of Object.keys(l)){if(d==="@list"&&o["@reverse"])throw new D.ErrorCoded(`Term value can not be @container: @list and @reverse at the same time on '${n}'`,D.ERROR_CODES.INVALID_REVERSE_PROPERTY);if(q.Util.CONTAINERS.indexOf(d)<0)throw new D.ErrorCoded(`Invalid term @container for '${n}' ('${d}'), must be one of ${q.Util.CONTAINERS.join(", ")}`,D.ERROR_CODES.INVALID_CONTAINER_MAPPING)}break;case"@language":Ze.validateLanguage(l,!0,D.ERROR_CODES.INVALID_LANGUAGE_MAPPING);break;case"@direction":Ze.validateDirection(l,!0);break;case"@prefix":if(l!==null&&typeof l!="boolean")throw new D.ErrorCoded(`Found an invalid term @prefix boolean in: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_PREFIX_VALUE);if(!("@id"in o)&&!q.Util.isValidIri(n))throw new D.ErrorCoded(`Invalid @prefix definition for '${n}' ('${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@index":if(r===1||!o["@container"]||!o["@container"]["@index"])throw new D.ErrorCoded(`Attempt to add illegal key to value object: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@nest":if(q.Util.isPotentialKeyword(l)&&l!=="@nest")throw new D.ErrorCoded(`Found an invalid term @nest value in: '${n}': '${JSON.stringify(o)}'`,D.ERROR_CODES.INVALID_NEST_VALUE)}}break;default:throw new D.ErrorCoded(`Found an invalid term value: '${n}': '${o}'`,D.ERROR_CODES.INVALID_TERM_DEFINITION)}}}applyBaseEntry(t,r,n){return typeof t=="string"||(n&&!("@base"in t)&&r.parentContext&&typeof r.parentContext=="object"&&"@base"in r.parentContext&&(t["@base"]=r.parentContext["@base"],r.parentContext["@__baseDocument"]&&(t["@__baseDocument"]=!0)),r.baseIRI&&!r.external&&("@base"in t?t["@base"]!==null&&typeof t["@base"]=="string"&&!q.Util.isValidIri(t["@base"])&&(t["@base"]=(0,zo.resolve)(t["@base"],r.parentContext&&r.parentContext["@base"]||r.baseIRI)):(t["@base"]=r.baseIRI,t["@__baseDocument"]=!0))),t}normalizeContextIri(t,r){if(!q.Util.isValidIri(t))try{t=(0,zo.resolve)(t,r)}catch{throw new Error(`Invalid context IRI: ${t}`)}return this.redirectSchemaOrgHttps&&t.startsWith("http://schema.org")&&(t="https://schema.org/"),t}async parseInnerContexts(t,r,n){for(const o of n??Object.keys(t)){const a=t[o];if(a&&typeof a=="object"&&"@context"in a&&a["@context"]!==null&&!r.ignoreScopedContexts){if(this.validateContext)try{const i=Object.assign(Object.assign({},t),{[o]:Object.assign({},t[o])});delete i[o]["@context"],await this.parse(a["@context"],Object.assign(Object.assign({},r),{external:!1,parentContext:i,ignoreProtection:!0,ignoreRemoteScopedContexts:!0,ignoreScopedContexts:!0}))}catch(i){throw new D.ErrorCoded(i.message,D.ERROR_CODES.INVALID_SCOPED_CONTEXT)}t[o]=Object.assign(Object.assign({},a),{"@context":(await this.parse(a["@context"],Object.assign(Object.assign({},r),{external:!1,minimalProcessing:!0,ignoreRemoteScopedContexts:!0,parentContext:t}))).getContextRaw()})}}return t}async parse(t,r={},n={}){const{baseIRI:o,parentContext:a,external:i,processingMode:l=Ze.DEFAULT_PROCESSING_MODE,normalizeLanguageTags:d,ignoreProtection:u,minimalProcessing:h}=r,_=r.remoteContexts||{};if(Object.keys(_).length>=this.remoteContextsDepthLimit)throw new D.ErrorCoded("Detected an overflow in remote context inclusions: "+Object.keys(_),D.ERROR_CODES.CONTEXT_OVERFLOW);if(t==null){if(!u&&a&&q.Util.hasProtectedTerms(a))throw new D.ErrorCoded("Illegal context nullification when terms are protected",D.ERROR_CODES.INVALID_CONTEXT_NULLIFICATION);return new je.JsonLdContextNormalized(this.applyBaseEntry({},r,!1))}else if(typeof t=="string"){const b=this.normalizeContextIri(t,o),c=this.getOverriddenLoad(b,r);if(c)return new je.JsonLdContextNormalized(c);const E=await this.parse(await this.load(b),Object.assign(Object.assign({},r),{baseIRI:b,external:!0,remoteContexts:Object.assign(Object.assign({},_),{[b]:!0})}));return this.applyBaseEntry(E.getContextRaw(),r,!0),E}else if(Array.isArray(t)){const b=[],c=await Promise.all(t.map((g,S)=>{if(typeof g=="string"){const T=this.normalizeContextIri(g,o);b[S]=T;const $=this.getOverriddenLoad(T,r);return $||this.load(T)}else return g}));if(h)return new je.JsonLdContextNormalized(c);const E=await c.reduce((g,S,T)=>g.then($=>this.parse(S,Object.assign(Object.assign({},r),{baseIRI:b[T]||r.baseIRI,external:!!b[T]||r.external,parentContext:$.getContextRaw(),remoteContexts:b[T]?Object.assign(Object.assign({},_),{[b[T]]:!0}):_}),{skipValidation:T=1.1){if(typeof t["@import"]!="string")throw new D.ErrorCoded("An @import value must be a string, but got "+typeof t["@import"],D.ERROR_CODES.INVALID_IMPORT_VALUE);b=await this.loadImportContext(this.normalizeContextIri(t["@import"],o)),delete t["@import"]}else throw new D.ErrorCoded("Context importing is not supported in JSON-LD 1.0",D.ERROR_CODES.INVALID_CONTEXT_ENTRY);this.applyScopedProtected(b,{processingMode:l},je.defaultExpandOptions);const c=Object.assign(b,t);this.idifyReverseTerms(c),this.normalize(c,{processingMode:l,normalizeLanguageTags:d}),this.applyScopedProtected(c,{processingMode:l},je.defaultExpandOptions);const E=Object.keys(c),g=[];if(typeof a=="object")for(const T in a)T in c?g.push(T):c[T]=a[T];await this.parseInnerContexts(c,r,E);const S=new je.JsonLdContextNormalized(c);return(c&&c["@version"]||Ze.DEFAULT_PROCESSING_MODE)>=1.1&&(t["@vocab"]&&typeof t["@vocab"]=="string"||t["@vocab"]==="")&&(a&&"@vocab"in a&&t["@vocab"].indexOf(":")<0?c["@vocab"]=a["@vocab"]+t["@vocab"]:(q.Util.isCompactIri(t["@vocab"])||t["@vocab"]in c)&&(c["@vocab"]=S.expandTerm(t["@vocab"],!0))),this.expandPrefixedTerms(S,this.expandContentTypeToBase,E),!u&&a&&l>=1.1&&this.validateKeywordRedefinitions(a,c,je.defaultExpandOptions,g),this.validateContext&&!n.skipValidation&&this.validate(c,{processingMode:l}),S}else throw new D.ErrorCoded(`Tried parsing a context that is not a string, array or object, but got ${t}`,D.ERROR_CODES.INVALID_LOCAL_CONTEXT)}async load(t){const r=this.documentCache[t];if(r)return r;let n;try{n=await this.documentLoader.load(t)}catch(o){throw new D.ErrorCoded(`Failed to load remote context ${t}: ${o.message}`,D.ERROR_CODES.LOADING_REMOTE_CONTEXT_FAILED)}if(!("@context"in n))throw new D.ErrorCoded(`Missing @context in remote context at ${t}`,D.ERROR_CODES.INVALID_REMOTE_CONTEXT);return this.documentCache[t]=n["@context"]}getOverriddenLoad(t,r){if(t in(r.remoteContexts||{})){if(r.ignoreRemoteScopedContexts)return t;throw new D.ErrorCoded("Detected a cyclic context inclusion of "+t,D.ERROR_CODES.RECURSIVE_CONTEXT_INCLUSION)}return null}async loadImportContext(t){let r=await this.load(t);if(typeof r!="object"||Array.isArray(r))throw new D.ErrorCoded("An imported context must be a single object: "+t,D.ERROR_CODES.INVALID_REMOTE_CONTEXT);if("@import"in r)throw new D.ErrorCoded("An imported context can not import another context: "+t,D.ERROR_CODES.INVALID_CONTEXT_ENTRY);return r=Object.assign({},r),this.containersToHash(r),r}}Ze.DEFAULT_PROCESSING_MODE=1.1;en.ContextParser=Ze;var Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});var Js={};Object.defineProperty(Js,"__esModule",{value:!0});(function(e){var t=dt&&dt.__createBinding||(Object.create?function(n,o,a,i){i===void 0&&(i=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,l)}:function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]}),r=dt&&dt.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(en,e),r(Jt,e),r(Ar,e),r(Ks,e),r(Js,e),r(lo,e),r(qt,e)})(Se);var qs={exports:{}},ei={exports:{}},se={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array},Ys={exports:{}};(function(e){const t=be,{kResistStopPropagation:r,SymbolDispose:n}=se,o=globalThis.AbortSignal||Ge().AbortSignal,a=globalThis.AbortController||Ge().AbortController,i=Object.getPrototypeOf(async function(){}).constructor,l=globalThis.Blob||t.Blob,d=typeof l<"u"?function(c){return c instanceof l}:function(c){return!1},u=(b,c)=>{if(b!==void 0&&(b===null||typeof b!="object"||!("aborted"in b)))throw new ERR_INVALID_ARG_TYPE(c,"AbortSignal",b)},h=(b,c)=>{if(typeof b!="function")throw new ERR_INVALID_ARG_TYPE(c,"Function",b)};class _ extends Error{constructor(c){if(!Array.isArray(c))throw new TypeError(`Expected input to be an Array, got ${typeof c}`);let E="";for(let g=0;g{b=g,c=S}),resolve:b,reject:c}},promisify(b){return new Promise((c,E)=>{b((g,...S)=>g?E(g):c(...S))})},debuglog(){return function(){}},format(b,...c){return b.replace(/%([sdifj])/g,function(...[E,g]){const S=c.shift();return g==="f"?S.toFixed(6):g==="j"?JSON.stringify(S):g==="s"&&typeof S=="object"?`${S.constructor!==Object?S.constructor.name:""} {}`.trim():S.toString()})},inspect(b){switch(typeof b){case"string":if(b.includes("'"))if(b.includes('"')){if(!b.includes("`")&&!b.includes("${"))return`\`${b}\``}else return`"${b}"`;return`'${b}'`;case"number":return isNaN(b)?"NaN":Object.is(b,-0)?String(b):b;case"bigint":return`${String(b)}n`;case"boolean":case"undefined":return String(b);case"object":return"{}"}},types:{isAsyncFunction(b){return b instanceof i},isArrayBufferView(b){return ArrayBuffer.isView(b)}},isBlob:d,deprecate(b,c){return b},addAbortListener:ct.addAbortListener||function(c,E){if(c===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",c);u(c,"signal"),h(E,"listener");let g;return c.aborted?queueMicrotask(()=>E()):(c.addEventListener("abort",E,{__proto__:null,once:!0,[r]:!0}),g=()=>{c.removeEventListener("abort",E)}),{__proto__:null,[n](){var S;(S=g)===null||S===void 0||S()}}},AbortSignalAny:o.any||function(c){if(c.length===1)return c[0];const E=new a,g=()=>E.abort();return c.forEach(S=>{u(S,"signals"),S.addEventListener("abort",g,{once:!0})}),E.signal.addEventListener("abort",()=>{c.forEach(S=>S.removeEventListener("abort",g))},{once:!0}),E.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Ys);var Re=Ys.exports,fo={};const{format:fd,inspect:qr,AggregateError:dd}=Re,ud=globalThis.AggregateError||dd,cd=Symbol("kIsNodeError"),hd=["string","function","number","object","Function","Object","boolean","bigint","symbol"],bd=/^([A-Z][a-z0-9]*)+$/,pd="__node_internal_",tn={};function Tt(e,t){if(!e)throw new tn.ERR_INTERNAL_ASSERTION(t)}function Xo(e){let t="",r=e.length;const n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function yd(e,t,r){if(typeof t=="function")return Tt(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const n=(t.match(/%[dfijoOs]/g)||[]).length;return Tt(n===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?t:fd(t,...r)}function pe(e,t,r){r||(r=Error);class n extends r{constructor(...a){super(yd(e,t,a))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=e,n.prototype[cd]=!0,tn[e]=n}function Qo(e){const t=pd+e.name;return Object.defineProperty(e,"name",{value:t}),e}function gd(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new ud([t,e],t.message);return r.code=t.code,r}return e||t}let _d=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new tn.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};pe("ERR_ASSERTION","%s",Error);pe("ERR_INVALID_ARG_TYPE",(e,t,r)=>{Tt(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";const o=[],a=[],i=[];for(const d of t)Tt(typeof d=="string","All expected entries have to be of type string"),hd.includes(d)?o.push(d.toLowerCase()):bd.test(d)?a.push(d):(Tt(d!=="object",'The value "object" should be written as "Object"'),i.push(d));if(a.length>0){const d=o.indexOf("object");d!==-1&&(o.splice(o,d,1),a.push("Object"))}if(o.length>0){switch(o.length){case 1:n+=`of type ${o[0]}`;break;case 2:n+=`one of type ${o[0]} or ${o[1]}`;break;default:{const d=o.pop();n+=`one of type ${o.join(", ")}, or ${d}`}}(a.length>0||i.length>0)&&(n+=" or ")}if(a.length>0){switch(a.length){case 1:n+=`an instance of ${a[0]}`;break;case 2:n+=`an instance of ${a[0]} or ${a[1]}`;break;default:{const d=a.pop();n+=`an instance of ${a.join(", ")}, or ${d}`}}i.length>0&&(n+=" or ")}switch(i.length){case 0:break;case 1:i[0].toLowerCase()!==i[0]&&(n+="an "),n+=`${i[0]}`;break;case 2:n+=`one of ${i[0]} or ${i[1]}`;break;default:{const d=i.pop();n+=`one of ${i.join(", ")}, or ${d}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var l;if((l=r.constructor)!==null&&l!==void 0&&l.name)n+=`. Received an instance of ${r.constructor.name}`;else{const d=qr(r,{depth:-1});n+=`. Received ${d}`}}else{let d=qr(r,{colors:!1});d.length>25&&(d=`${d.slice(0,25)}...`),n+=`. Received type ${typeof r} (${d})`}return n},TypeError);pe("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=qr(t);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);pe("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var n;const o=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${o}.`},TypeError);pe("ERR_MISSING_ARGS",(...e)=>{Tt(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(n=>`"${n}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}break}return`${t} must be specified`},TypeError);pe("ERR_OUT_OF_RANGE",(e,t,r)=>{Tt(t,'Missing "range" argument');let n;return Number.isInteger(r)&&Math.abs(r)>2**32?n=Xo(String(r)):typeof r=="bigint"?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=Xo(n)),n+="n"):n=qr(r),`The value of "${e}" is out of range. It must be ${t}. Received ${n}`},RangeError);pe("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);pe("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);pe("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);pe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);pe("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);pe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);pe("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);pe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);pe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);pe("ERR_STREAM_WRITE_AFTER_END","write after end",Error);pe("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var me={AbortError:_d,aggregateTwoErrors:Qo(gd),hideStackFrames:Qo,codes:tn};const{ArrayIsArray:uo,ArrayPrototypeIncludes:zs,ArrayPrototypeJoin:Xs,ArrayPrototypeMap:wd,NumberIsInteger:co,NumberIsNaN:Ed,NumberMAX_SAFE_INTEGER:Sd,NumberMIN_SAFE_INTEGER:Rd,NumberParseInt:Ad,ObjectPrototypeHasOwnProperty:Id,RegExpPrototypeExec:Qs,String:md,StringPrototypeToUpperCase:vd,StringPrototypeTrim:Td}=se,{hideStackFrames:De,codes:{ERR_SOCKET_BAD_PORT:Cd,ERR_INVALID_ARG_TYPE:ge,ERR_INVALID_ARG_VALUE:Yt,ERR_OUT_OF_RANGE:Nt,ERR_UNKNOWN_SIGNAL:Zo}}=me,{normalizeEncoding:Nd}=Re,{isAsyncFunction:Od,isArrayBufferView:$d}=Re.types,ea={};function xd(e){return e===(e|0)}function Dd(e){return e===e>>>0}const Ld=/^[0-7]+$/,Pd="must be a 32-bit unsigned integer or an octal string";function kd(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(Qs(Ld,e)===null)throw new Yt(t,e,Pd);e=Ad(e,8)}return Zs(e,t),e}const Md=De((e,t,r=Rd,n=Sd)=>{if(typeof e!="number")throw new ge(t,"number",e);if(!co(e))throw new Nt(t,"an integer",e);if(en)throw new Nt(t,`>= ${r} && <= ${n}`,e)}),Vd=De((e,t,r=-2147483648,n=2147483647)=>{if(typeof e!="number")throw new ge(t,"number",e);if(!co(e))throw new Nt(t,"an integer",e);if(en)throw new Nt(t,`>= ${r} && <= ${n}`,e)}),Zs=De((e,t,r=!1)=>{if(typeof e!="number")throw new ge(t,"number",e);if(!co(e))throw new Nt(t,"an integer",e);const n=r?1:0,o=4294967295;if(eo)throw new Nt(t,`>= ${n} && <= ${o}`,e)});function ho(e,t){if(typeof e!="string")throw new ge(t,"string",e)}function jd(e,t,r=void 0,n){if(typeof e!="number")throw new ge(t,"number",e);if(r!=null&&en||(r!=null||n!=null)&&Ed(e))throw new Nt(t,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,e)}const Fd=De((e,t,r)=>{if(!zs(r,e)){const o="must be one of: "+Xs(wd(r,a=>typeof a=="string"?`'${a}'`:md(a)),", ");throw new Yt(t,e,o)}});function el(e,t){if(typeof e!="boolean")throw new ge(t,"boolean",e)}function ti(e,t,r){return e==null||!Id(e,t)?r:e[t]}const Ud=De((e,t,r=null)=>{const n=ti(r,"allowArray",!1),o=ti(r,"allowFunction",!1);if(!ti(r,"nullable",!1)&&e===null||!n&&uo(e)||typeof e!="object"&&(!o||typeof e!="function"))throw new ge(t,"Object",e)}),Wd=De((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new ge(t,"a dictionary",e)}),rn=De((e,t,r=0)=>{if(!uo(e))throw new ge(t,"Array",e);if(e.length{if(!$d(e))throw new ge(t,["Buffer","TypedArray","DataView"],e)});function qd(e,t){const r=Nd(t),n=e.length;if(r==="hex"&&n%2!==0)throw new Yt("encoding",t,`is invalid for data of length ${n}`)}function Yd(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&Td(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new Cd(t,e,r);return e|0}const tl=De((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new ge(t,"AbortSignal",e)}),zd=De((e,t)=>{if(typeof e!="function")throw new ge(t,"Function",e)}),Xd=De((e,t)=>{if(typeof e!="function"||Od(e))throw new ge(t,"Function",e)}),Qd=De((e,t)=>{if(e!==void 0)throw new ge(t,"undefined",e)});function Zd(e,t,r){if(!zs(r,e))throw new ge(t,`('${Xs(r,"|")}')`,e)}const eu=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function ta(e,t){if(typeof e>"u"||!Qs(eu,e))throw new Yt(t,e,'must be an array or string of format "; rel=preload; as=style"')}function tu(e){if(typeof e=="string")return ta(e,"hints"),e;if(uo(e)){const t=e.length;let r="";if(t===0)return r;for(let n=0;n; rel=preload; as=style"')}var Ir={isInt32:xd,isUint32:Dd,parseFileMode:kd,validateArray:rn,validateStringArray:Bd,validateBooleanArray:Gd,validateAbortSignalArray:Hd,validateBoolean:el,validateBuffer:Jd,validateDictionary:Wd,validateEncoding:qd,validateFunction:zd,validateInt32:Vd,validateInteger:Md,validateNumber:jd,validateObject:Ud,validateOneOf:Fd,validatePlainFunction:Xd,validatePort:Yd,validateSignalName:Kd,validateString:ho,validateUint32:Zs,validateUndefined:Qd,validateUnion:Zd,validateAbortSignal:tl,validateLinkHeaderValue:tu},bo={exports:{}};const{SymbolAsyncIterator:ra,SymbolIterator:na,SymbolFor:$t}=se,rl=$t("nodejs.stream.destroyed"),nl=$t("nodejs.stream.errored"),Mi=$t("nodejs.stream.readable"),Vi=$t("nodejs.stream.writable"),il=$t("nodejs.stream.disturbed"),ru=$t("nodejs.webstream.isClosedPromise"),nu=$t("nodejs.webstream.controllerErrorFunction");function nn(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function on(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function iu(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function Je(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function ol(e){return!!(e&&!Je(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function al(e){return!!(e&&!Je(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function sl(e){return!!(e&&!Je(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function ou(e){return ol(e)||al(e)||sl(e)}function au(e,t){return e==null?!1:t===!0?typeof e[ra]=="function":t===!1?typeof e[na]=="function":typeof e[ra]=="function"||typeof e[na]=="function"}function an(e){if(!Je(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[rl]||n!=null&&n.destroyed)}function ll(e){if(!on(e))return null;if(e.writableEnded===!0)return!0;const t=e._writableState;return t!=null&&t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function su(e,t){if(!on(e))return null;if(e.writableFinished===!0)return!0;const r=e._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function lu(e){if(!nn(e))return null;if(e.readableEnded===!0)return!0;const t=e._readableState;return!t||t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function fl(e,t){if(!nn(e))return null;const r=e._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function dl(e){return e&&e[Mi]!=null?e[Mi]:typeof(e==null?void 0:e.readable)!="boolean"?null:an(e)?!1:nn(e)&&e.readable&&!fl(e)}function ul(e){return e&&e[Vi]!=null?e[Vi]:typeof(e==null?void 0:e.writable)!="boolean"?null:an(e)?!1:on(e)&&e.writable&&!ll(e)}function fu(e,t){return Je(e)?an(e)?!0:!((t==null?void 0:t.readable)!==!1&&dl(e)||(t==null?void 0:t.writable)!==!1&&ul(e)):null}function du(e){var t,r;return Je(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function uu(e){var t,r;return Je(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function cu(e){if(!Je(e))return null;if(typeof e.closed=="boolean")return e.closed;const t=e._writableState,r=e._readableState;return typeof(t==null?void 0:t.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(t==null?void 0:t.closed)||(r==null?void 0:r.closed):typeof e._closed=="boolean"&&cl(e)?e._closed:null}function cl(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function hl(e){return typeof e._sent100=="boolean"&&cl(e)}function hu(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function bu(e){if(!Je(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!n&&hl(e)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===!1)}function pu(e){var t;return!!(e&&((t=e[il])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function yu(e){var t,r,n,o,a,i,l,d,u,h;return!!(e&&((t=(r=(n=(o=(a=(i=e[nl])!==null&&i!==void 0?i:e.readableErrored)!==null&&a!==void 0?a:e.writableErrored)!==null&&o!==void 0?o:(l=e._readableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&n!==void 0?n:(d=e._writableState)===null||d===void 0?void 0:d.errorEmitted)!==null&&r!==void 0?r:(u=e._readableState)===null||u===void 0?void 0:u.errored)!==null&&t!==void 0?t:!((h=e._writableState)===null||h===void 0)&&h.errored))}var it={isDestroyed:an,kIsDestroyed:rl,isDisturbed:pu,kIsDisturbed:il,isErrored:yu,kIsErrored:nl,isReadable:dl,kIsReadable:Mi,kIsClosedPromise:ru,kControllerErrorFunction:nu,kIsWritable:Vi,isClosed:cu,isDuplexNodeStream:iu,isFinished:fu,isIterable:au,isReadableNodeStream:nn,isReadableStream:ol,isReadableEnded:lu,isReadableFinished:fl,isReadableErrored:uu,isNodeStream:Je,isWebStream:ou,isWritable:ul,isWritableNodeStream:on,isWritableStream:al,isWritableEnded:ll,isWritableFinished:su,isWritableErrored:du,isServerRequest:hu,isServerResponse:hl,willEmitClose:bu,isTransformStream:sl};const st=Ie,{AbortError:bl,codes:gu}=me,{ERR_INVALID_ARG_TYPE:_u,ERR_STREAM_PREMATURE_CLOSE:ia}=gu,{kEmptyObject:ji,once:Fi}=Re,{validateAbortSignal:wu,validateFunction:Eu,validateObject:Su,validateBoolean:Ru}=Ir,{Promise:Au,PromisePrototypeThen:Iu,SymbolDispose:pl}=se,{isClosed:mu,isReadable:oa,isReadableNodeStream:ri,isReadableStream:vu,isReadableFinished:aa,isReadableErrored:sa,isWritable:la,isWritableNodeStream:fa,isWritableStream:Tu,isWritableFinished:da,isWritableErrored:ua,isNodeStream:Cu,willEmitClose:Nu,kIsClosedPromise:Ou}=it;let Bt;function $u(e){return e.setHeader&&typeof e.abort=="function"}const Ui=()=>{};function yl(e,t,r){var n,o;if(arguments.length===2?(r=t,t=ji):t==null?t=ji:Su(t,"options"),Eu(r,"callback"),wu(t.signal,"options.signal"),r=Fi(r),vu(e)||Tu(e))return xu(e,t,r);if(!Cu(e))throw new _u("stream",["ReadableStream","WritableStream","Stream"],e);const a=(n=t.readable)!==null&&n!==void 0?n:ri(e),i=(o=t.writable)!==null&&o!==void 0?o:fa(e),l=e._writableState,d=e._readableState,u=()=>{e.writable||b()};let h=Nu(e)&&ri(e)===a&&fa(e)===i,_=da(e,!1);const b=()=>{_=!0,e.destroyed&&(h=!1),!(h&&(!e.readable||a))&&(!a||c)&&r.call(e)};let c=aa(e,!1);const E=()=>{c=!0,e.destroyed&&(h=!1),!(h&&(!e.writable||i))&&(!i||_)&&r.call(e)},g=v=>{r.call(e,v)};let S=mu(e);const T=()=>{S=!0;const v=ua(e)||sa(e);if(v&&typeof v!="boolean")return r.call(e,v);if(a&&!c&&ri(e,!0)&&!aa(e,!1))return r.call(e,new ia);if(i&&!_&&!da(e,!1))return r.call(e,new ia);r.call(e)},$=()=>{S=!0;const v=ua(e)||sa(e);if(v&&typeof v!="boolean")return r.call(e,v);r.call(e)},w=()=>{e.req.on("finish",b)};$u(e)?(e.on("complete",b),h||e.on("abort",T),e.req?w():e.on("request",w)):i&&!l&&(e.on("end",u),e.on("close",u)),!h&&typeof e.aborted=="boolean"&&e.on("aborted",T),e.on("end",E),e.on("finish",b),t.error!==!1&&e.on("error",g),e.on("close",T),S?st.nextTick(T):l!=null&&l.errorEmitted||d!=null&&d.errorEmitted?h||st.nextTick($):(!a&&(!h||oa(e))&&(_||la(e)===!1)||!i&&(!h||la(e))&&(c||oa(e)===!1)||d&&e.req&&e.aborted)&&st.nextTick($);const B=()=>{r=Ui,e.removeListener("aborted",T),e.removeListener("complete",b),e.removeListener("abort",T),e.removeListener("request",w),e.req&&e.req.removeListener("finish",b),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",b),e.removeListener("end",E),e.removeListener("error",g),e.removeListener("close",T)};if(t.signal&&!S){const v=()=>{const x=r;B(),x.call(e,new bl(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)st.nextTick(v);else{Bt=Bt||Re.addAbortListener;const x=Bt(t.signal,v),U=r;r=Fi((...F)=>{x[pl](),U.apply(e,F)})}}return B}function xu(e,t,r){let n=!1,o=Ui;if(t.signal)if(o=()=>{n=!0,r.call(e,new bl(void 0,{cause:t.signal.reason}))},t.signal.aborted)st.nextTick(o);else{Bt=Bt||Re.addAbortListener;const i=Bt(t.signal,o),l=r;r=Fi((...d)=>{i[pl](),l.apply(e,d)})}const a=(...i)=>{n||st.nextTick(()=>r.apply(e,i))};return Iu(e[Ou].promise,a,a),Ui}function Du(e,t){var r;let n=!1;return t===null&&(t=ji),(r=t)!==null&&r!==void 0&&r.cleanup&&(Ru(t.cleanup,"cleanup"),n=t.cleanup),new Au((o,a)=>{const i=yl(e,t,l=>{n&&i(),l?a(l):o()})})}bo.exports=yl;bo.exports.finished=Du;var ht=bo.exports;const We=Ie,{aggregateTwoErrors:Lu,codes:{ERR_MULTIPLE_CALLBACK:Pu},AbortError:ku}=me,{Symbol:gl}=se,{kIsDestroyed:Mu,isDestroyed:Vu,isFinished:ju,isServerRequest:Fu}=it,_l=gl("kDestroy"),Wi=gl("kConstruct");function wl(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function Uu(e,t){const r=this._readableState,n=this._writableState,o=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(wl(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),o.constructed?ca(this,e,t):this.once(_l,function(a){ca(this,Lu(a,e),t)}),this)}function ca(e,t,r){let n=!1;function o(a){if(n)return;n=!0;const i=e._readableState,l=e._writableState;wl(a,l,i),l&&(l.closed=!0),i&&(i.closed=!0),typeof r=="function"&&r(a),a?We.nextTick(Wu,e,a):We.nextTick(El,e)}try{e._destroy(t||null,o)}catch(a){o(a)}}function Wu(e,t){Bi(e,t),El(e)}function El(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function Bi(e,t){const r=e._readableState,n=e._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function Bu(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function Gi(e,t,r){const n=e._readableState,o=e._writableState;if(o!=null&&o.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||o!=null&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),n&&!n.errored&&(n.errored=t),r?We.nextTick(Bi,e,t):Bi(e,t))}function Gu(e,t){if(typeof e._construct!="function")return;const r=e._readableState,n=e._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),e.once(Wi,t),!(e.listenerCount(Wi)>1)&&We.nextTick(Hu,e)}function Hu(e){let t=!1;function r(n){if(t){Gi(e,n??new Pu);return}t=!0;const o=e._readableState,a=e._writableState,i=a||o;o&&(o.constructed=!0),a&&(a.constructed=!0),i.destroyed?e.emit(_l,n):n?Gi(e,n,!0):We.nextTick(Ku,e)}try{e._construct(n=>{We.nextTick(r,n)})}catch(n){We.nextTick(r,n)}}function Ku(e){e.emit(Wi)}function ha(e){return(e==null?void 0:e.setHeader)&&typeof e.abort=="function"}function Sl(e){e.emit("close")}function Ju(e,t){e.emit("error",t),We.nextTick(Sl,e)}function qu(e,t){!e||Vu(e)||(!t&&!ju(e)&&(t=new ku),Fu(e)?(e.socket=null,e.destroy(t)):ha(e)?e.abort():ha(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?We.nextTick(Ju,e,t):We.nextTick(Sl,e),e.destroyed||(e[Mu]=!0))}var zt={construct:Gu,destroyer:qu,destroy:Uu,undestroy:Bu,errorOrDestroy:Gi};const{ArrayIsArray:Yu,ObjectSetPrototypeOf:Rl}=se,{EventEmitter:sn}=ct;function ln(e){sn.call(this,e)}Rl(ln.prototype,sn.prototype);Rl(ln,sn);ln.prototype.pipe=function(e,t){const r=this;function n(h){e.writable&&e.write(h)===!1&&r.pause&&r.pause()}r.on("data",n);function o(){r.readable&&r.resume&&r.resume()}e.on("drain",o),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",i),r.on("close",l));let a=!1;function i(){a||(a=!0,e.end())}function l(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function d(h){u(),sn.listenerCount(this,"error")===0&&this.emit("error",h)}Hi(r,"error",d),Hi(e,"error",d);function u(){r.removeListener("data",n),e.removeListener("drain",o),r.removeListener("end",i),r.removeListener("close",l),r.removeListener("error",d),e.removeListener("error",d),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e};function Hi(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Yu(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}var po={Stream:ln,prependListener:Hi},Al={exports:{}};(function(e){const{SymbolDispose:t}=se,{AbortError:r,codes:n}=me,{isNodeStream:o,isWebStream:a,kControllerErrorFunction:i}=it,l=ht,{ERR_INVALID_ARG_TYPE:d}=n;let u;const h=(_,b)=>{if(typeof _!="object"||!("aborted"in _))throw new d(b,"AbortSignal",_)};e.exports.addAbortSignal=function(b,c){if(h(b,"signal"),!o(c)&&!a(c))throw new d("stream",["ReadableStream","WritableStream","Stream"],c);return e.exports.addAbortSignalNoValidate(b,c)},e.exports.addAbortSignalNoValidate=function(_,b){if(typeof _!="object"||!("aborted"in _))return b;const c=o(b)?()=>{b.destroy(new r(void 0,{cause:_.reason}))}:()=>{b[i](new r(void 0,{cause:_.reason}))};if(_.aborted)c();else{u=u||Re.addAbortListener;const E=u(_,c);l(b,E[t])}return b}})(Al);var fn=Al.exports;const{StringPrototypeSlice:ba,SymbolIterator:zu,TypedArrayPrototypeSet:$r,Uint8Array:Xu}=se,{Buffer:ni}=be,{inspect:Qu}=Re;var Zu=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){const r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=t+r.data;return n}concat(t){if(this.length===0)return ni.alloc(0);const r=ni.allocUnsafe(t>>>0);let n=this.head,o=0;for(;n;)$r(r,n.data,o),o+=n.data.length,n=n.next;return r}consume(t,r){const n=this.head.data;if(ta.length)r+=a,t-=a.length;else{t===a.length?(r+=a,++o,n.next?this.head=n.next:this.head=this.tail=null):(r+=ba(a,0,t),this.head=n,n.data=ba(a,t));break}++o}while((n=n.next)!==null);return this.length-=o,r}_getBuffer(t){const r=ni.allocUnsafe(t),n=t;let o=this.head,a=0;do{const i=o.data;if(t>i.length)$r(r,i,n-t),t-=i.length;else{t===i.length?($r(r,i,n-t),++a,o.next?this.head=o.next:this.head=this.tail=null):($r(r,new Xu(i.buffer,i.byteOffset,t),n-t),this.head=o,o.data=i.slice(t));break}++a}while((o=o.next)!==null);return this.length-=a,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return Qu(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:ec,NumberIsInteger:tc}=se,{validateInteger:rc}=Ir,{ERR_INVALID_ARG_VALUE:nc}=me.codes;let Il=16*1024,ml=16;function ic(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function vl(e){return e?ml:Il}function oc(e,t){rc(t,"value",0),e?ml=t:Il=t}function ac(e,t,r,n){const o=ic(t,n,r);if(o!=null){if(!tc(o)||o<0){const a=n?`options.${r}`:"options.highWaterMark";throw new nc(a,o)}return ec(o)}return vl(e.objectMode)}var dn={getHighWaterMark:ac,getDefaultHighWaterMark:vl,setDefaultHighWaterMark:oc};const pa=Ie,{PromisePrototypeThen:sc,SymbolAsyncIterator:ya,SymbolIterator:ga}=se,{Buffer:lc}=be,{ERR_INVALID_ARG_TYPE:fc,ERR_STREAM_NULL_VALUES:dc}=me.codes;function uc(e,t,r){let n;if(typeof t=="string"||t instanceof lc)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let o;if(t&&t[ya])o=!0,n=t[ya]();else if(t&&t[ga])o=!1,n=t[ga]();else throw new fc("iterable",["Iterable"],t);const a=new e({objectMode:!0,highWaterMark:1,...r});let i=!1;a._read=function(){i||(i=!0,d())},a._destroy=function(u,h){sc(l(u),()=>pa.nextTick(h,u),_=>pa.nextTick(h,_||u))};async function l(u){const h=u!=null,_=typeof n.throw=="function";if(h&&_){const{value:b,done:c}=await n.throw(u);if(await b,c)return}if(typeof n.return=="function"){const{value:b}=await n.return();await b}}async function d(){for(;;){try{const{value:u,done:h}=o?await n.next():n.next();if(h)a.push(null);else{const _=u&&typeof u.then=="function"?await u:u;if(_===null)throw i=!1,new dc;if(a.push(_))continue;i=!1}}catch(u){a.destroy(u)}break}}return a}var Tl=uc,ii,_a;function un(){if(_a)return ii;_a=1;const e=Ie,{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:n,NumberParseInt:o,ObjectDefineProperties:a,ObjectKeys:i,ObjectSetPrototypeOf:l,Promise:d,SafeSet:u,SymbolAsyncDispose:h,SymbolAsyncIterator:_,Symbol:b}=se;ii=P,P.ReadableState=ue;const{EventEmitter:c}=ct,{Stream:E,prependListener:g}=po,{Buffer:S}=be,{addAbortSignal:T}=fn,$=ht;let w=Re.debuglog("stream",s=>{w=s});const B=Zu,v=zt,{getHighWaterMark:x,getDefaultHighWaterMark:U}=dn,{aggregateTwoErrors:F,codes:{ERR_INVALID_ARG_TYPE:W,ERR_METHOD_NOT_IMPLEMENTED:ee,ERR_OUT_OF_RANGE:J,ERR_STREAM_PUSH_AFTER_EOF:k,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:R},AbortError:V}=me,{validateObject:M}=Ir,j=b("kPaused"),{StringDecoder:X}=ks,Q=Tl;l(P.prototype,E.prototype),l(P,E);const z=()=>{},{errorOrDestroy:Z}=v,G=1,de=2,L=4,te=8,fe=16,Te=32,Ce=64,Ne=128,Pe=256,pt=512,ke=1024,Oe=2048,p=4096,y=8192,A=16384,N=32768,O=65536,K=1<<17,Y=1<<18;function H(s){return{enumerable:!1,get(){return(this.state&s)!==0},set(f){f?this.state|=s:this.state&=~s}}}a(ue.prototype,{objectMode:H(G),ended:H(de),endEmitted:H(L),reading:H(te),constructed:H(fe),sync:H(Te),needReadable:H(Ce),emittedReadable:H(Ne),readableListening:H(Pe),resumeScheduled:H(pt),errorEmitted:H(ke),emitClose:H(Oe),autoDestroy:H(p),destroyed:H(y),closed:H(A),closeEmitted:H(N),multiAwaitDrain:H(O),readingMore:H(K),dataEmitted:H(Y)});function ue(s,f,I){typeof I!="boolean"&&(I=f instanceof et()),this.state=Oe|p|fe|Te,s&&s.objectMode&&(this.state|=G),I&&s&&s.readableObjectMode&&(this.state|=G),this.highWaterMark=s?x(this,s,"readableHighWaterMark",I):U(!1),this.buffer=new B,this.length=0,this.pipes=[],this.flowing=null,this[j]=null,s&&s.emitClose===!1&&(this.state&=~Oe),s&&s.autoDestroy===!1&&(this.state&=~p),this.errored=null,this.defaultEncoding=s&&s.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,s&&s.encoding&&(this.decoder=new X(s.encoding),this.encoding=s.encoding)}function P(s){if(!(this instanceof P))return new P(s);const f=this instanceof et();this._readableState=new ue(s,this,f),s&&(typeof s.read=="function"&&(this._read=s.read),typeof s.destroy=="function"&&(this._destroy=s.destroy),typeof s.construct=="function"&&(this._construct=s.construct),s.signal&&!f&&T(s.signal,this)),E.call(this,s),v.construct(this,()=>{this._readableState.needReadable&&ze(this,this._readableState)})}P.prototype.destroy=v.destroy,P.prototype._undestroy=v.undestroy,P.prototype._destroy=function(s,f){f(s)},P.prototype[c.captureRejectionSymbol]=function(s){this.destroy(s)},P.prototype[h]=function(){let s;return this.destroyed||(s=this.readableEnded?null:new V,this.destroy(s)),new d((f,I)=>$(this,m=>m&&m!==s?I(m):f(null)))},P.prototype.push=function(s,f){return he(this,s,f,!1)},P.prototype.unshift=function(s,f){return he(this,s,f,!0)};function he(s,f,I,m){w("readableAddChunk",f);const C=s._readableState;let ne;if(C.state&G||(typeof f=="string"?(I=I||C.defaultEncoding,C.encoding!==I&&(m&&C.encoding?f=S.from(f,I).toString(C.encoding):(f=S.from(f,I),I=""))):f instanceof S?I="":E._isUint8Array(f)?(f=E._uint8ArrayToBuffer(f),I=""):f!=null&&(ne=new W("chunk",["string","Buffer","Uint8Array"],f))),ne)Z(s,ne);else if(f===null)C.state&=~te,Wn(s,C);else if(C.state&G||f&&f.length>0)if(m)if(C.state&L)Z(s,new R);else{if(C.destroyed||C.errored)return!1;yt(s,C,f,!0)}else if(C.ended)Z(s,new k);else{if(C.destroyed||C.errored)return!1;C.state&=~te,C.decoder&&!I?(f=C.decoder.write(f),C.objectMode||f.length!==0?yt(s,C,f,!1):ze(s,C)):yt(s,C,f,!1)}else m||(C.state&=~te,ze(s,C));return!C.ended&&(C.length0?(f.state&O?f.awaitDrainWriters.clear():f.awaitDrainWriters=null,f.dataEmitted=!0,s.emit("data",I)):(f.length+=f.objectMode?1:I.length,m?f.buffer.unshift(I):f.buffer.push(I),f.state&Ce&&Ye(s)),ze(s,f)}P.prototype.isPaused=function(){const s=this._readableState;return s[j]===!0||s.flowing===!1},P.prototype.setEncoding=function(s){const f=new X(s);this._readableState.decoder=f,this._readableState.encoding=this._readableState.decoder.encoding;const I=this._readableState.buffer;let m="";for(const C of I)m+=f.write(C);return I.clear(),m!==""&&I.push(m),this._readableState.length=m.length,this};const Fn=1073741824;function Un(s){if(s>Fn)throw new J("size","<= 1GiB",s);return s--,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s++,s}function Zt(s,f){return s<=0||f.length===0&&f.ended?0:f.state&G?1:n(s)?f.flowing&&f.length?f.buffer.first().length:f.length:s<=f.length?s:f.ended?f.length:0}P.prototype.read=function(s){w("read",s),s===void 0?s=NaN:r(s)||(s=o(s,10));const f=this._readableState,I=s;if(s>f.highWaterMark&&(f.highWaterMark=Un(s)),s!==0&&(f.state&=~Ne),s===0&&f.needReadable&&((f.highWaterMark!==0?f.length>=f.highWaterMark:f.length>0)||f.ended))return w("read: emitReadable",f.length,f.ended),f.length===0&&f.ended?gt(this):Ye(this),null;if(s=Zt(s,f),s===0&&f.ended)return f.length===0&>(this),null;let m=(f.state&Ce)!==0;if(w("need readable",m),(f.length===0||f.length-s0?C=ir(s,f):C=null,C===null?(f.needReadable=f.length<=f.highWaterMark,s=0):(f.length-=s,f.multiAwaitDrain?f.awaitDrainWriters.clear():f.awaitDrainWriters=null),f.length===0&&(f.ended||(f.needReadable=!0),I!==s&&f.ended&>(this)),C!==null&&!f.errorEmitted&&!f.closeEmitted&&(f.dataEmitted=!0,this.emit("data",C)),C};function Wn(s,f){if(w("onEofChunk"),!f.ended){if(f.decoder){const I=f.decoder.end();I&&I.length&&(f.buffer.push(I),f.length+=f.objectMode?1:I.length)}f.ended=!0,f.sync?Ye(s):(f.needReadable=!1,f.emittedReadable=!0,er(s))}}function Ye(s){const f=s._readableState;w("emitReadable",f.needReadable,f.emittedReadable),f.needReadable=!1,f.emittedReadable||(w("emitReadable",f.flowing),f.emittedReadable=!0,e.nextTick(er,s))}function er(s){const f=s._readableState;w("emitReadable_",f.destroyed,f.length,f.ended),!f.destroyed&&!f.errored&&(f.length||f.ended)&&(s.emit("readable"),f.emittedReadable=!1),f.needReadable=!f.flowing&&!f.ended&&f.length<=f.highWaterMark,rr(s)}function ze(s,f){!f.readingMore&&f.constructed&&(f.readingMore=!0,e.nextTick(Bn,s,f))}function Bn(s,f){for(;!f.reading&&!f.ended&&(f.length1&&m.pipes.includes(s)&&(w("false write response, pause",m.awaitDrainWriters.size),m.awaitDrainWriters.add(s)),I.pause()),we||(we=Gn(I,s),s.on("drain",we))}I.on("data",fr);function fr(Ee){w("ondata");const ce=s.write(Ee);w("dest.write",ce),ce===!1&&lr()}function wt(Ee){if(w("onerror",Ee),Me(),s.removeListener("error",wt),s.listenerCount("error")===0){const ce=s._writableState||s._readableState;ce&&!ce.errorEmitted?Z(s,Ee):s.emit("error",Ee)}}g(s,"error",wt);function Et(){s.removeListener("finish",St),Me()}s.once("close",Et);function St(){w("onfinish"),s.removeListener("close",Et),Me()}s.once("finish",St);function Me(){w("unpipe"),I.unpipe(s)}return s.emit("pipe",I),s.writableNeedDrain===!0?lr():m.flowing||(w("pipe resume"),I.resume()),s};function Gn(s,f){return function(){const m=s._readableState;m.awaitDrainWriters===f?(w("pipeOnDrain",1),m.awaitDrainWriters=null):m.multiAwaitDrain&&(w("pipeOnDrain",m.awaitDrainWriters.size),m.awaitDrainWriters.delete(f)),(!m.awaitDrainWriters||m.awaitDrainWriters.size===0)&&s.listenerCount("data")&&s.resume()}}P.prototype.unpipe=function(s){const f=this._readableState,I={hasUnpiped:!1};if(f.pipes.length===0)return this;if(!s){const C=f.pipes;f.pipes=[],this.pause();for(let ne=0;ne0,m.flowing!==!1&&this.resume()):s==="readable"&&!m.endEmitted&&!m.readableListening&&(m.readableListening=m.needReadable=!0,m.flowing=!1,m.emittedReadable=!1,w("on readable",m.length,m.reading),m.length?Ye(this):m.reading||e.nextTick(Hn,this)),I},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(s,f){const I=E.prototype.removeListener.call(this,s,f);return s==="readable"&&e.nextTick(tr,this),I},P.prototype.off=P.prototype.removeListener,P.prototype.removeAllListeners=function(s){const f=E.prototype.removeAllListeners.apply(this,arguments);return(s==="readable"||s===void 0)&&e.nextTick(tr,this),f};function tr(s){const f=s._readableState;f.readableListening=s.listenerCount("readable")>0,f.resumeScheduled&&f[j]===!1?f.flowing=!0:s.listenerCount("data")>0?s.resume():f.readableListening||(f.flowing=null)}function Hn(s){w("readable nexttick read 0"),s.read(0)}P.prototype.resume=function(){const s=this._readableState;return s.flowing||(w("resume"),s.flowing=!s.readableListening,Kn(this,s)),s[j]=!1,this};function Kn(s,f){f.resumeScheduled||(f.resumeScheduled=!0,e.nextTick(Jn,s,f))}function Jn(s,f){w("resume",f.reading),f.reading||s.read(0),f.resumeScheduled=!1,s.emit("resume"),rr(s),f.flowing&&!f.reading&&s.read(0)}P.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[j]=!0,this};function rr(s){const f=s._readableState;for(w("flow",f.flowing);f.flowing&&s.read()!==null;);}P.prototype.wrap=function(s){let f=!1;s.on("data",m=>{!this.push(m)&&s.pause&&(f=!0,s.pause())}),s.on("end",()=>{this.push(null)}),s.on("error",m=>{Z(this,m)}),s.on("close",()=>{this.destroy()}),s.on("destroy",()=>{this.destroy()}),this._read=()=>{f&&s.resume&&(f=!1,s.resume())};const I=i(s);for(let m=1;m{C=oe?F(C,oe):null,I(),I=z});try{for(;;){const oe=s.destroyed?null:s.read();if(oe!==null)yield oe;else{if(C)throw C;if(C===null)return;await new d(m)}}}catch(oe){throw C=F(C,oe),C}finally{(C||(f==null?void 0:f.destroyOnReturn)!==!1)&&(C===void 0||s._readableState.autoDestroy)?v.destroyer(s,null):(s.off("readable",m),ne())}}a(P.prototype,{readable:{__proto__:null,get(){const s=this._readableState;return!!s&&s.readable!==!1&&!s.destroyed&&!s.errorEmitted&&!s.endEmitted},set(s){this._readableState&&(this._readableState.readable=!!s)}},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(s){this._readableState&&(this._readableState.flowing=s)}},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(s){this._readableState&&(this._readableState.destroyed=s)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),a(ue.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[j]!==!1},set(s){this[j]=!!s}}}),P._fromList=ir;function ir(s,f){if(f.length===0)return null;let I;return f.objectMode?I=f.buffer.shift():!s||s>=f.length?(f.decoder?I=f.buffer.join(""):f.buffer.length===1?I=f.buffer.first():I=f.buffer.concat(f.length),f.buffer.clear()):I=f.buffer.consume(s,f.decoder),I}function gt(s){const f=s._readableState;w("endReadable",f.endEmitted),f.endEmitted||(f.ended=!0,e.nextTick(Yn,f,s))}function Yn(s,f){if(w("endReadableNT",s.endEmitted,s.length),!s.errored&&!s.closeEmitted&&!s.endEmitted&&s.length===0){if(s.endEmitted=!0,f.emit("end"),f.writable&&f.allowHalfOpen===!1)e.nextTick(zn,f);else if(s.autoDestroy){const I=f._writableState;(!I||I.autoDestroy&&(I.finished||I.writable===!1))&&f.destroy()}}}function zn(s){s.writable&&!s.writableEnded&&!s.destroyed&&s.end()}P.from=function(s,f){return Q(P,s,f)};let _t;function or(){return _t===void 0&&(_t={}),_t}return P.fromWeb=function(s,f){return or().newStreamReadableFromReadableStream(s,f)},P.toWeb=function(s,f){return or().newReadableStreamFromStreamReadable(s,f)},P.wrap=function(s,f){var I,m;return new P({objectMode:(I=(m=s.readableObjectMode)!==null&&m!==void 0?m:s.objectMode)!==null&&I!==void 0?I:!0,...f,destroy(C,ne){v.destroyer(s,C),ne(C)}}).wrap(s)},ii}var oi,wa;function yo(){if(wa)return oi;wa=1;const e=Ie,{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:o,ObjectDefineProperties:a,ObjectSetPrototypeOf:i,StringPrototypeToLowerCase:l,Symbol:d,SymbolHasInstance:u}=se;oi=M,M.WritableState=R;const{EventEmitter:h}=ct,_=po.Stream,{Buffer:b}=be,c=zt,{addAbortSignal:E}=fn,{getHighWaterMark:g,getDefaultHighWaterMark:S}=dn,{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:$,ERR_MULTIPLE_CALLBACK:w,ERR_STREAM_CANNOT_PIPE:B,ERR_STREAM_DESTROYED:v,ERR_STREAM_ALREADY_FINISHED:x,ERR_STREAM_NULL_VALUES:U,ERR_STREAM_WRITE_AFTER_END:F,ERR_UNKNOWN_ENCODING:W}=me.codes,{errorOrDestroy:ee}=c;i(M.prototype,_.prototype),i(M,_);function J(){}const k=d("kOnFinished");function R(p,y,A){typeof A!="boolean"&&(A=y instanceof et()),this.objectMode=!!(p&&p.objectMode),A&&(this.objectMode=this.objectMode||!!(p&&p.writableObjectMode)),this.highWaterMark=p?g(this,p,"writableHighWaterMark",A):S(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const N=!!(p&&p.decodeStrings===!1);this.decodeStrings=!N,this.defaultEncoding=p&&p.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Z.bind(void 0,y),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,V(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!p||p.emitClose!==!1,this.autoDestroy=!p||p.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[k]=[]}function V(p){p.buffered=[],p.bufferedIndex=0,p.allBuffers=!0,p.allNoop=!0}R.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},o(R.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function M(p){const y=this instanceof et();if(!y&&!n(M,this))return new M(p);this._writableState=new R(p,this,y),p&&(typeof p.write=="function"&&(this._write=p.write),typeof p.writev=="function"&&(this._writev=p.writev),typeof p.destroy=="function"&&(this._destroy=p.destroy),typeof p.final=="function"&&(this._final=p.final),typeof p.construct=="function"&&(this._construct=p.construct),p.signal&&E(p.signal,this)),_.call(this,p),c.construct(this,()=>{const A=this._writableState;A.writing||te(this,A),Ne(this,A)})}o(M,u,{__proto__:null,value:function(p){return n(this,p)?!0:this!==M?!1:p&&p._writableState instanceof R}}),M.prototype.pipe=function(){ee(this,new B)};function j(p,y,A,N){const O=p._writableState;if(typeof A=="function")N=A,A=O.defaultEncoding;else{if(!A)A=O.defaultEncoding;else if(A!=="buffer"&&!b.isEncoding(A))throw new W(A);typeof N!="function"&&(N=J)}if(y===null)throw new U;if(!O.objectMode)if(typeof y=="string")O.decodeStrings!==!1&&(y=b.from(y,A),A="buffer");else if(y instanceof b)A="buffer";else if(_._isUint8Array(y))y=_._uint8ArrayToBuffer(y),A="buffer";else throw new T("chunk",["string","Buffer","Uint8Array"],y);let K;return O.ending?K=new F:O.destroyed&&(K=new v("write")),K?(e.nextTick(N,K),ee(p,K,!0),K):(O.pendingcb++,X(p,O,y,A,N))}M.prototype.write=function(p,y,A){return j(this,p,y,A)===!0},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){const p=this._writableState;p.corked&&(p.corked--,p.writing||te(this,p))},M.prototype.setDefaultEncoding=function(y){if(typeof y=="string"&&(y=l(y)),!b.isEncoding(y))throw new W(y);return this._writableState.defaultEncoding=y,this};function X(p,y,A,N,O){const K=y.objectMode?1:A.length;y.length+=K;const Y=y.lengthA.bufferedIndex&&te(p,A),N?A.afterWriteTickInfo!==null&&A.afterWriteTickInfo.cb===O?A.afterWriteTickInfo.count++:(A.afterWriteTickInfo={count:1,cb:O,stream:p,state:A},e.nextTick(G,A.afterWriteTickInfo)):de(p,A,1,O))}function G({stream:p,state:y,count:A,cb:N}){return y.afterWriteTickInfo=null,de(p,y,A,N)}function de(p,y,A,N){for(!y.ending&&!p.destroyed&&y.length===0&&y.needDrain&&(y.needDrain=!1,p.emit("drain"));A-- >0;)y.pendingcb--,N();y.destroyed&&L(y),Ne(p,y)}function L(p){if(p.writing)return;for(let O=p.bufferedIndex;O1&&p._writev){y.pendingcb-=K-1;const H=y.allNoop?J:P=>{for(let he=Y;he256?(A.splice(0,Y),y.bufferedIndex=0):y.bufferedIndex=Y}y.bufferProcessing=!1}M.prototype._write=function(p,y,A){if(this._writev)this._writev([{chunk:p,encoding:y}],A);else throw new $("_write()")},M.prototype._writev=null,M.prototype.end=function(p,y,A){const N=this._writableState;typeof p=="function"?(A=p,p=null,y=null):typeof y=="function"&&(A=y,y=null);let O;if(p!=null){const K=j(this,p,y);K instanceof r&&(O=K)}return N.corked&&(N.corked=1,this.uncork()),O||(!N.errored&&!N.ending?(N.ending=!0,Ne(this,N,!0),N.ended=!0):N.finished?O=new x("end"):N.destroyed&&(O=new v("end"))),typeof A=="function"&&(O||N.finished?e.nextTick(A,O):N[k].push(A)),this};function fe(p){return p.ending&&!p.destroyed&&p.constructed&&p.length===0&&!p.errored&&p.buffered.length===0&&!p.finished&&!p.writing&&!p.errorEmitted&&!p.closeEmitted}function Te(p,y){let A=!1;function N(O){if(A){ee(p,O??w());return}if(A=!0,y.pendingcb--,O){const K=y[k].splice(0);for(let Y=0;Y{fe(O)?Pe(N,O):O.pendingcb--},p,y)):fe(y)&&(y.pendingcb++,Pe(p,y))))}function Pe(p,y){y.pendingcb--,y.finished=!0;const A=y[k].splice(0);for(let N=0;N{if(L!=null)throw new E("nully","body",L)},L=>{g(G,L)});return G=new W({objectMode:!0,readable:!1,write:X,final(L){Q(async()=>{try{await de,e.nextTick(L,null)}catch(te){e.nextTick(L,te)}})},destroy:z})}throw new E("Iterable, AsyncIterable or AsyncFunction",V,j)}if(x(R))return k(R.arrayBuffer());if(o(R))return B(W,R,{objectMode:!0,writable:!1});if(u(R==null?void 0:R.readable)&&h(R==null?void 0:R.writable))return W.fromWeb(R);if(typeof(R==null?void 0:R.writable)=="object"||typeof(R==null?void 0:R.readable)=="object"){const j=R!=null&&R.readable?i(R==null?void 0:R.readable)?R==null?void 0:R.readable:k(R.readable):void 0,X=R!=null&&R.writable?l(R==null?void 0:R.writable)?R==null?void 0:R.writable:k(R.writable):void 0;return J({readable:j,writable:X})}const M=R==null?void 0:R.then;if(typeof M=="function"){let j;return F(M,R,X=>{X!=null&&j.push(X),j.push(null)},X=>{g(j,X)}),j=new W({objectMode:!0,writable:!1,read(){}})}throw new c(V,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],R)};function ee(k){let{promise:R,resolve:V}=w();const M=new U,j=M.signal;return{value:k(async function*(){for(;;){const Q=R;R=null;const{chunk:z,done:Z,cb:G}=await Q;if(e.nextTick(G),Z)return;if(j.aborted)throw new b(void 0,{cause:j.reason});({promise:R,resolve:V}=w()),yield z}}(),{signal:j}),write(Q,z,Z){const G=V;V=null,G({chunk:Q,done:!1,cb:Z})},final(Q){const z=V;V=null,z({done:!0,cb:Q})},destroy(Q,z){M.abort(),z(Q)}}}function J(k){const R=k.readable&&typeof k.readable.read!="function"?T.wrap(k.readable):k.readable,V=k.writable;let M=!!r(R),j=!!n(V),X,Q,z,Z,G;function de(L){const te=Z;Z=null,te?te(L):L&&G.destroy(L)}return G=new W({readableObjectMode:!!(R!=null&&R.readableObjectMode),writableObjectMode:!!(V!=null&&V.writableObjectMode),readable:M,writable:j}),j&&(_(V,L=>{j=!1,L&&g(R,L),de(L)}),G._write=function(L,te,fe){V.write(L,te)?fe():X=fe},G._final=function(L){V.end(),Q=L},V.on("drain",function(){if(X){const L=X;X=null,L()}}),V.on("finish",function(){if(Q){const L=Q;Q=null,L()}})),M&&(_(R,L=>{M=!1,L&&g(R,L),de(L)}),R.on("readable",function(){if(z){const L=z;z=null,L()}}),R.on("end",function(){G.push(null)}),G._read=function(){for(;;){const L=R.read();if(L===null){z=G._read;return}if(!G.push(L))return}}),G._destroy=function(L,te){!L&&Z!==null&&(L=new b),z=null,X=null,Q=null,Z===null?te(L):(Z=te,g(V,L),g(R,L))},G}return ai}var si,Sa;function et(){if(Sa)return si;Sa=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:n}=se;si=i;const o=un(),a=yo();n(i.prototype,o.prototype),n(i,o);{const h=r(a.prototype);for(let _=0;_{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function yc(){this._final!==Ki&&Ki.call(this)}tt.prototype._final=Ki;tt.prototype._transform=function(e,t,r){throw new bc("_transform()")};tt.prototype._write=function(e,t,r){const n=this._readableState,o=this._writableState,a=n.length;this._transform(e,t,(i,l)=>{if(i){r(i);return}l!=null&&this.push(l),o.ended||a===n.length||n.length{n=!0});const o=Yr(e,{readable:t,writable:r},a=>{n=!a});return{destroy:a=>{n||(n=!0,Rc.destroyer(e,a||new mc("pipe")))},cleanup:o}}function Dc(e){return Cc(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function bi(e){if(mt(e))return e;if(Gr(e))return Lc(e);throw new Ji("val",["Readable","Iterable","AsyncIterable"],e)}async function*Lc(e){ci||(ci=un()),yield*ci.prototype[wc].call(e)}async function xr(e,t,r,{end:n}){let o,a=null;const i=u=>{if(u&&(o=u),a){const h=a;a=null,h()}},l=()=>new _c((u,h)=>{o?h(o):a=()=>{o?h(o):u()}});t.on("drain",i);const d=Yr(t,{readable:!1},i);try{t.writableNeedDrain&&await l();for await(const u of e)t.write(u)||await l();n&&(t.end(),await l()),r()}catch(u){r(o!==u?Ac(o,u):u)}finally{d(),t.off("drain",i)}}async function pi(e,t,r,{end:n}){jt(t)&&(t=t.writable);const o=t.getWriter();try{for await(const a of e)await o.ready,o.write(a).catch(()=>{});await o.ready,n&&await o.close(),r()}catch(a){try{await o.abort(a),r(a)}catch(i){r(i)}}}function Pc(...e){return xl(e,Sc(Dc(e)))}function xl(e,t,r){if(e.length===1&&gc(e[0])&&(e=e[0]),e.length<2)throw new Ic("streams");const n=new xc,o=n.signal,a=r==null?void 0:r.signal,i=[];Nc(a,"options.signal");function l(){E(new Tc)}hi=hi||Re.addAbortListener;let d;a&&(d=hi(a,l));let u,h;const _=[];let b=0;function c($){E($,--b===0)}function E($,w){var B;if($&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=$),!(!u&&!w)){for(;_.length;)_.shift()(u);(B=d)===null||B===void 0||B[Ec](),n.abort(),w&&(u||i.forEach(v=>v()),_r.nextTick(t,u,h))}}let g;for(let $=0;$0,x=B||(r==null?void 0:r.end)!==!1,U=$===e.length-1;if(Aa(w)){let F=function(W){W&&W.name!=="AbortError"&&W.code!=="ERR_STREAM_PREMATURE_CLOSE"&&c(W)};if(x){const{destroy:W,cleanup:ee}=Ia(w,B,v);_.push(W),fi(w)&&U&&i.push(ee)}w.on("error",F),fi(w)&&U&&i.push(()=>{w.removeListener("error",F)})}if($===0)if(typeof w=="function"){if(g=w({signal:o}),!mt(g))throw new li("Iterable, AsyncIterable or Stream","source",g)}else mt(w)||Gr(w)||jt(w)?g=w:g=Ra.from(w);else if(typeof w=="function"){if(jt(g)){var S;g=bi((S=g)===null||S===void 0?void 0:S.readable)}else g=bi(g);if(g=w(g,{signal:o}),B){if(!mt(g,!0))throw new li("AsyncIterable",`transform[${$-1}]`,g)}else{var T;ui||(ui=$l);const F=new ui({objectMode:!0}),W=(T=g)===null||T===void 0?void 0:T.then;if(typeof W=="function")b++,W.call(g,k=>{h=k,k!=null&&F.write(k),x&&F.end(),_r.nextTick(c)},k=>{F.destroy(k),_r.nextTick(c,k)});else if(mt(g,!0))b++,xr(g,F,c,{end:x});else if(di(g)||jt(g)){const k=g.readable||g;b++,xr(k,F,c,{end:x})}else throw new li("AsyncIterable or Promise","destination",g);g=F;const{destroy:ee,cleanup:J}=Ia(g,!1,!0);_.push(ee),U&&i.push(J)}}else if(Aa(w)){if(Gr(g)){b+=2;const F=kc(g,w,c,{end:x});fi(w)&&U&&i.push(F)}else if(jt(g)||di(g)){const F=g.readable||g;b++,xr(F,w,c,{end:x})}else if(mt(g))b++,xr(g,w,c,{end:x});else throw new Ji("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=w}else if(Oc(w)){if(Gr(g))b++,pi(bi(g),w,c,{end:x});else if(di(g)||mt(g))b++,pi(g,w,c,{end:x});else if(jt(g))b++,pi(g.readable,w,c,{end:x});else throw new Ji("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=w}else g=Ra.from(w)}return(o!=null&&o.aborted||a!=null&&a.aborted)&&_r.nextTick(l),g}function kc(e,t,r,{end:n}){let o=!1;if(t.on("close",()=>{o||r(new vc)}),e.pipe(t,{end:!1}),n){let a=function(){o=!0,t.end()};$c(e)?_r.nextTick(a):e.once("end",a)}else r();return Yr(e,{readable:!0,writable:!1},a=>{const i=e._readableState;a&&a.code==="ERR_STREAM_PREMATURE_CLOSE"&&i&&i.ended&&!i.errored&&!i.errorEmitted?e.once("end",r).once("error",r):r(a)}),Yr(t,{readable:!1,writable:!0},r)}var wo={pipelineImpl:xl,pipeline:Pc};const{pipeline:Mc}=wo,Dr=et(),{destroyer:Vc}=zt,{isNodeStream:Lr,isReadable:ma,isWritable:va,isWebStream:yi,isTransformStream:Rt,isWritableStream:Ta,isReadableStream:Ca}=it,{AbortError:jc,codes:{ERR_INVALID_ARG_VALUE:Na,ERR_MISSING_ARGS:Fc}}=me,Uc=ht;var Dl=function(...t){if(t.length===0)throw new Fc("streams");if(t.length===1)return Dr.from(t[0]);const r=[...t];if(typeof t[0]=="function"&&(t[0]=Dr.from(t[0])),typeof t[t.length-1]=="function"){const c=t.length-1;t[c]=Dr.from(t[c])}for(let c=0;c0&&!(va(t[c])||Ta(t[c])||Rt(t[c])))throw new Na(`streams[${c}]`,r[c],"must be writable")}let n,o,a,i,l;function d(c){const E=i;i=null,E?E(c):c?l.destroy(c):!b&&!_&&l.destroy()}const u=t[0],h=Mc(t,d),_=!!(va(u)||Ta(u)||Rt(u)),b=!!(ma(h)||Ca(h)||Rt(h));if(l=new Dr({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(h!=null&&h.readableObjectMode),writable:_,readable:b}),_){if(Lr(u))l._write=function(E,g,S){u.write(E,g)?S():n=S},l._final=function(E){u.end(),o=E},u.on("drain",function(){if(n){const E=n;n=null,E()}});else if(yi(u)){const g=(Rt(u)?u.writable:u).getWriter();l._write=async function(S,T,$){try{await g.ready,g.write(S).catch(()=>{}),$()}catch(w){$(w)}},l._final=async function(S){try{await g.ready,g.close().catch(()=>{}),o=S}catch(T){S(T)}}}const c=Rt(h)?h.readable:h;Uc(c,()=>{if(o){const E=o;o=null,E()}})}if(b){if(Lr(h))h.on("readable",function(){if(a){const c=a;a=null,c()}}),h.on("end",function(){l.push(null)}),l._read=function(){for(;;){const c=h.read();if(c===null){a=l._read;return}if(!l.push(c))return}};else if(yi(h)){const E=(Rt(h)?h.readable:h).getReader();l._read=async function(){for(;;)try{const{value:g,done:S}=await E.read();if(!l.push(g))return;if(S){l.push(null);return}}catch{return}}}}return l._destroy=function(c,E){!c&&i!==null&&(c=new jc),a=null,n=null,o=null,i===null?E(c):(i=E,Lr(h)&&Vc(h,c))},l};const Wc=globalThis.AbortController||Ge().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Bc,ERR_INVALID_ARG_TYPE:mr,ERR_MISSING_ARGS:Gc,ERR_OUT_OF_RANGE:Hc},AbortError:He}=me,{validateAbortSignal:xt,validateInteger:Oa,validateObject:Dt}=Ir,Kc=se.Symbol("kWeak"),Jc=se.Symbol("kResistStopPropagation"),{finished:qc}=ht,Yc=Dl,{addAbortSignalNoValidate:zc}=fn,{isWritable:Xc,isNodeStream:Qc}=it,{deprecate:Zc}=Re,{ArrayPrototypePush:eh,Boolean:th,MathFloor:$a,Number:rh,NumberIsNaN:nh,Promise:xa,PromiseReject:Da,PromiseResolve:ih,PromisePrototypeThen:La,Symbol:Ll}=se,zr=Ll("kEmpty"),Pa=Ll("kEof");function oh(e,t){if(t!=null&&Dt(t,"options"),(t==null?void 0:t.signal)!=null&&xt(t.signal,"options.signal"),Qc(e)&&!Xc(e))throw new Bc("stream",e,"must be writable");const r=Yc(this,e);return t!=null&&t.signal&&zc(t.signal,r),r}function cn(e,t){if(typeof e!="function")throw new mr("fn",["Function","AsyncFunction"],e);t!=null&&Dt(t,"options"),(t==null?void 0:t.signal)!=null&&xt(t.signal,"options.signal");let r=1;(t==null?void 0:t.concurrency)!=null&&(r=$a(t.concurrency));let n=r-1;return(t==null?void 0:t.highWaterMark)!=null&&(n=$a(t.highWaterMark)),Oa(r,"options.concurrency",1),Oa(n,"options.highWaterMark",0),n+=r,(async function*(){const a=Re.AbortSignalAny([t==null?void 0:t.signal].filter(th)),i=this,l=[],d={signal:a};let u,h,_=!1,b=0;function c(){_=!0,E()}function E(){b-=1,g()}function g(){h&&!_&&b=n||b>=r)&&await new xa($=>{h=$})}l.push(Pa)}catch(T){const $=Da(T);La($,E,c),l.push($)}finally{_=!0,u&&(u(),u=null)}}S();try{for(;;){for(;l.length>0;){const T=await l[0];if(T===Pa)return;if(a.aborted)throw new He;T!==zr&&(yield T),l.shift(),g()}await new xa(T=>{u=T})}}finally{_=!0,h&&(h(),h=null)}}).call(this)}function ah(e=void 0){return e!=null&&Dt(e,"options"),(e==null?void 0:e.signal)!=null&&xt(e.signal,"options.signal"),(async function*(){let r=0;for await(const o of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new He({cause:e.signal.reason});yield[r++,o]}}).call(this)}async function Pl(e,t=void 0){for await(const r of Eo.call(this,e,t))return!0;return!1}async function sh(e,t=void 0){if(typeof e!="function")throw new mr("fn",["Function","AsyncFunction"],e);return!await Pl.call(this,async(...r)=>!await e(...r),t)}async function lh(e,t){for await(const r of Eo.call(this,e,t))return r}async function fh(e,t){if(typeof e!="function")throw new mr("fn",["Function","AsyncFunction"],e);async function r(n,o){return await e(n,o),zr}for await(const n of cn.call(this,r,t));}function Eo(e,t){if(typeof e!="function")throw new mr("fn",["Function","AsyncFunction"],e);async function r(n,o){return await e(n,o)?n:zr}return cn.call(this,r,t)}let dh=class extends Gc{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function uh(e,t,r){var n;if(typeof e!="function")throw new mr("reducer",["Function","AsyncFunction"],e);r!=null&&Dt(r,"options"),(r==null?void 0:r.signal)!=null&&xt(r.signal,"options.signal");let o=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){const u=new He(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await qc(this.destroy(u)),u}const a=new Wc,i=a.signal;if(r!=null&&r.signal){const u={once:!0,[Kc]:this,[Jc]:!0};r.signal.addEventListener("abort",()=>a.abort(),u)}let l=!1;try{for await(const u of this){var d;if(l=!0,r!=null&&(d=r.signal)!==null&&d!==void 0&&d.aborted)throw new He;o?t=await e(t,u,{signal:i}):(t=u,o=!0)}if(!l&&!o)throw new dh}finally{a.abort()}return t}async function ch(e){e!=null&&Dt(e,"options"),(e==null?void 0:e.signal)!=null&&xt(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new He(void 0,{cause:e.signal.reason});eh(t,n)}return t}function hh(e,t){const r=cn.call(this,e,t);return(async function*(){for await(const o of r)yield*o}).call(this)}function kl(e){if(e=rh(e),nh(e))return 0;if(e<0)throw new Hc("number",">= 0",e);return e}function bh(e,t=void 0){return t!=null&&Dt(t,"options"),(t==null?void 0:t.signal)!=null&&xt(t.signal,"options.signal"),e=kl(e),(async function*(){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new He;for await(const a of this){var o;if(t!=null&&(o=t.signal)!==null&&o!==void 0&&o.aborted)throw new He;e--<=0&&(yield a)}}).call(this)}function ph(e,t=void 0){return t!=null&&Dt(t,"options"),(t==null?void 0:t.signal)!=null&&xt(t.signal,"options.signal"),e=kl(e),(async function*(){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new He;for await(const a of this){var o;if(t!=null&&(o=t.signal)!==null&&o!==void 0&&o.aborted)throw new He;if(e-- >0&&(yield a),e<=0)return}}).call(this)}fo.streamReturningOperators={asIndexedPairs:Zc(ah,"readable.asIndexedPairs will be removed in a future version."),drop:bh,filter:Eo,flatMap:hh,map:cn,take:ph,compose:oh};fo.promiseReturningOperators={every:sh,forEach:fh,reduce:uh,toArray:ch,some:Pl,find:lh};var gi,ka;function Ml(){if(ka)return gi;ka=1;const{ArrayPrototypePop:e,Promise:t}=se,{isIterable:r,isNodeStream:n,isWebStream:o}=it,{pipelineImpl:a}=wo,{finished:i}=ht;Vl();function l(...d){return new t((u,h)=>{let _,b;const c=d[d.length-1];if(c&&typeof c=="object"&&!n(c)&&!r(c)&&!o(c)){const E=e(d);_=E.signal,b=E.end}a(d,(E,g)=>{E?h(E):u(g)},{signal:_,end:b})})}return gi={finished:i,pipeline:l},gi}var Ma;function Vl(){if(Ma)return ei.exports;Ma=1;const{Buffer:e}=be,{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:n}=se,{promisify:{custom:o}}=Re,{streamReturningOperators:a,promiseReturningOperators:i}=fo,{codes:{ERR_ILLEGAL_CONSTRUCTOR:l}}=me,d=Dl,{setDefaultHighWaterMark:u,getDefaultHighWaterMark:h}=dn,{pipeline:_}=wo,{destroyer:b}=zt,c=ht,E=Ml(),g=it,S=ei.exports=po.Stream;S.isDestroyed=g.isDestroyed,S.isDisturbed=g.isDisturbed,S.isErrored=g.isErrored,S.isReadable=g.isReadable,S.isWritable=g.isWritable,S.Readable=un();for(const $ of r(a)){let B=function(...v){if(new.target)throw l();return S.Readable.from(n(w,this,v))};const w=a[$];t(B,"name",{__proto__:null,value:w.name}),t(B,"length",{__proto__:null,value:w.length}),t(S.Readable.prototype,$,{__proto__:null,value:B,enumerable:!1,configurable:!0,writable:!0})}for(const $ of r(i)){let B=function(...v){if(new.target)throw l();return n(w,this,v)};const w=i[$];t(B,"name",{__proto__:null,value:w.name}),t(B,"length",{__proto__:null,value:w.length}),t(S.Readable.prototype,$,{__proto__:null,value:B,enumerable:!1,configurable:!0,writable:!0})}S.Writable=yo(),S.Duplex=et(),S.Transform=Nl,S.PassThrough=$l,S.pipeline=_;const{addAbortSignal:T}=fn;return S.addAbortSignal=T,S.finished=c,S.destroy=b,S.compose=d,S.setDefaultHighWaterMark=u,S.getDefaultHighWaterMark=h,t(S,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return E}}),t(_,o,{__proto__:null,enumerable:!0,get(){return E.pipeline}}),t(c,o,{__proto__:null,enumerable:!0,get(){return E.finished}}),S.Stream=S,S._isUint8Array=function(w){return w instanceof Uint8Array},S._uint8ArrayToBuffer=function(w){return e.from(w.buffer,w.byteOffset,w.byteLength)},ei.exports}(function(e){const t=Vl(),r=Ml(),n=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=n,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return r}}),e.exports.Stream=t.Stream,e.exports.default=e.exports})(qs);var yh=qs.exports,hn={},ur={},cr={},bn={};Object.defineProperty(bn,"__esModule",{value:!0});bn.ContainerHandlerIdentifier=void 0;class gh{canCombineWithGraph(){return!0}async handle(t,r,n,o,a,i){let l;if(r.emittedStack[i+1]&&r.idStack[i+1])l=r.idStack[i+1][0];else{const h=await n.getContainerKey(o[i],o,i)!==null?await n.resourceToTerm(await r.getContext(o),o[i]):n.dataFactory.blankNode();if(!h){r.emittedStack[i]=!1;return}l=h,r.idStack[i+1]=[l]}let d=r.idStack[i];d||(d=r.idStack[i]=[]),d.some(u=>u.equals(l))||d.push(l),await r.handlePendingContainerFlushBuffers()||(r.emittedStack[i]=!1)}}bn.ContainerHandlerIdentifier=gh;var hr={},br={},Va;function pn(){if(Va)return br;Va=1,Object.defineProperty(br,"__esModule",{value:!0}),br.EntryHandlerPredicate=void 0;const e=Se,t=Lt();let r=class jl{static async handlePredicateObject(o,a,i,l,d,u,h,_,b){const c=await a.getPropertiesDepth(i,l),E=await a.getDepthOffsetGraph(l,i),g=l-E,S=o.idStack[c];if(S&&!b)for(const T of S)if(E>=0){const w=o.idStack[g-1];if(w)for(const B of w)a.emitQuadChecked(l,T,d,u,B,h,_);else h?(a.validateReverseSubject(u),o.getUnidentifiedGraphBufferSafe(g-1).push({subject:u,predicate:d,object:T,isEmbedded:_})):o.getUnidentifiedGraphBufferSafe(g-1).push({subject:T,predicate:d,object:u,isEmbedded:_})}else{const w=await a.getGraphContainerValue(i,c);a.emitQuadChecked(l,T,d,u,w,h,_)}else if(h&&a.validateReverseSubject(u),b){if(o.rdfstar){o.idStack[l]&&o.emitError(new e.ErrorCoded(`Found an illegal @id inside an annotation: ${o.idStack[l][0].value}`,e.ERROR_CODES.INVALID_ANNOTATION));for(let w=0;w=0;w--){const B=T[w];B.depth>c&&($.nestedAnnotations.push(B),T.splice(w,1))}}}else o.getUnidentifiedValueBufferSafe(c).push({predicate:d,object:u,reverse:h,isEmbedded:_})}isPropertyHandler(){return!0}isStackProcessor(){return!0}async validate(o,a,i,l,d){const u=i[l];if(u){const h=await o.getContext(i);if(!o.jsonLiteralStack[l]&&await a.predicateToTerm(h,i[l]))return t.Util.getContextValueType(h,u)==="@json"&&(o.jsonLiteralStack[l+1]=!0),!0}return!1}async test(o,a,i,l,d){return l[d]}async handle(o,a,i,l,d,u,h){const _=l[u],b=await o.getContext(l),c=await a.predicateToTerm(b,i);if(c){const E=await a.valueToTerm(b,i,d,u,l);if(E.length)for(let g of E){let S=await a.unaliasKeywordParent(l,u);const T=t.Util.isPropertyReverse(b,_,S);let $=0;for(;S==="@reverse"||typeof S=="number";)typeof S=="number"?$++:u--,S=await a.unaliasKeywordParent(l,u-$);const w=t.Util.isPropertyInEmbeddedNode(S);a.validateReverseInEmbeddedNode(i,T,w);const B=t.Util.isPropertyInAnnotationObject(S);if(d){const v="@list"in t.Util.getContextValueContainer(b,i);if(v||d["@list"]){if((v&&!Array.isArray(d)&&!d["@list"]||d["@list"]&&!Array.isArray(d["@list"]))&&g!==a.rdfNil){const x=a.dataFactory.blankNode();o.emitQuad(u,a.dataFactory.quad(x,a.rdfRest,a.rdfNil,a.getDefaultGraph())),o.emitQuad(u,a.dataFactory.quad(x,a.rdfFirst,g,a.getDefaultGraph())),g=x}if(T&&!o.allowSubjectList)throw new e.ErrorCoded(`Found illegal list value in subject position at ${i}`,e.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}}await jl.handlePredicateObject(o,a,l,u,c,g,T,w,B)}}}};return br.EntryHandlerPredicate=r,br}var ja;function _h(){if(ja)return hr;ja=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.ContainerHandlerIndex=void 0;const e=Se,t=pn(),r=Lt();let n=class{canCombineWithGraph(){return!0}async handle(a,i,l,d,u,h){if(!Array.isArray(u)){const _="@graph"in a,b=await i.getContext(d),c=d[h-1],E=r.Util.getContextValueIndex(b,c);if(E){if(e.Util.isPotentialKeyword(E))throw new e.ErrorCoded(`Keywords can not be used as @index value, got: ${E}`,e.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof E!="string")throw new e.ErrorCoded(`@index values must be strings, got: ${E}`,e.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof u!="object"){if(r.Util.getContextValueType(b,c)!=="@id")throw new e.ErrorCoded(`Property-based index containers require nodes as values or strings with @type: @id, but got: ${u}`,e.ERROR_CODES.INVALID_VALUE_OBJECT);const T=l.resourceToTerm(b,u);T&&(i.idStack[h+1]=[T])}const S=l.createVocabOrBaseTerm(b,E);if(S){const T=await l.valueToTerm(b,E,await l.getContainerKey(d[h],d,h),h,d);if(_){const $=await l.getGraphContainerValue(d,h+1);for(const w of T)i.emitQuad(h,l.dataFactory.quad($,S,w,l.getDefaultGraph()))}else for(const $ of T)await t.EntryHandlerPredicate.handlePredicateObject(i,l,d,h+1,S,$,!1,!1,!1)}}const g=_?2:1;await i.newOnValueJob(d.slice(0,d.length-g),u,h-g,!0),await i.handlePendingContainerFlushBuffers()}i.emittedStack[h]=!1}};return hr.ContainerHandlerIndex=n,hr}var yn={};Object.defineProperty(yn,"__esModule",{value:!0});yn.ContainerHandlerLanguage=void 0;const Fa=Se;class wh{canCombineWithGraph(){return!1}async handle(t,r,n,o,a,i){const l=await n.getContainerKey(o[i],o,i);if(Array.isArray(a))a=a.map(d=>({"@value":d,"@language":l}));else{if(typeof a!="string")throw new Fa.ErrorCoded(`Got invalid language map value, got '${JSON.stringify(a)}', but expected string`,Fa.ERROR_CODES.INVALID_LANGUAGE_MAP_VALUE);a={"@value":a,"@language":l}}await r.newOnValueJob(o.slice(0,o.length-1),a,i-1,!0),r.emittedStack[i]=!1}}yn.ContainerHandlerLanguage=wh;var pr={},Ua;function Eh(){if(Ua)return pr;Ua=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.ContainerHandlerType=void 0;const e=pn(),t=Lt();let r=class{canCombineWithGraph(){return!1}async handle(o,a,i,l,d,u){if(!Array.isArray(d)){if(typeof d=="string"){const b=await a.getContext(l),E=t.Util.getContextValueType(b,l[u-1])==="@vocab"?await i.createVocabOrBaseTerm(b,d):await i.resourceToTerm(b,d);if(E){const g={"@id":E.termType==="NamedNode"?E.value:d};await a.newOnValueJob(l.slice(0,l.length-1),g,u-1,!0),a.idStack[u+1]=[E]}}else{const b=!!a.idStack[u+1];b||delete a.idStack[u],await a.newOnValueJob(l.slice(0,l.length-1),d,u-1,!0),b||(a.idStack[u+1]=a.idStack[u])}const h=await i.getContainerKey(l[u],l,u),_=h!==null?i.createVocabOrBaseTerm(await a.getContext(l),h):null;_&&await e.EntryHandlerPredicate.handlePredicateObject(a,i,l,u+1,i.rdfType,_,!1,!1,!1),await a.handlePendingContainerFlushBuffers()}a.emittedStack[u]=!1}};return pr.ContainerHandlerType=r,pr}var Wa;function Fl(){if(Wa)return cr;Wa=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.EntryHandlerContainer=void 0;const e=bn,t=_h(),r=yn,n=Eh(),o=Lt();let a=class at{static isSimpleGraphContainer(l){return"@graph"in l&&("@set"in l&&Object.keys(l).length===2||Object.keys(l).length===1)}static isComplexGraphContainer(l){return"@graph"in l&&("@set"in l&&Object.keys(l).length>2||!("@set"in l)&&Object.keys(l).length>1)}static getContainerGraphIndex(l,d,u){let h=at.isSimpleGraphContainer(l),_="";for(let b=d;b=0;c--)if(typeof d[c]!="number"){const E=o.Util.getContextValue(b,"@container",d[c],!1);if(E&&at.isSimpleGraphContainer(E))return{containers:E,depth:c+1,fallback:!1};const g=o.Util.getContextValue(b,"@container",d[c-1],!1);if(g){const S="@graph"in g;for(const T in at.CONTAINER_HANDLERS)if(g[T])return S?at.CONTAINER_HANDLERS[T].canCombineWithGraph()?{containers:g,depth:c,fallback:!1}:h:_?h:{containers:g,depth:c,fallback:!1};return h}else{if(_)return h;_=!0}}return h}static async isBufferableContainerHandler(l,d,u){const h=await at.getContainerHandler(l,d,u);return!h.fallback&&!("@graph"in h.containers)}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(l,d,u,h,_){return!!await this.test(l,d,null,u,h)}async test(l,d,u,h,_){const b=o.Util.getContextValueContainer(await l.getContext(h,2),h[_-1]);for(const c in at.CONTAINER_HANDLERS)if(b[c])return{containers:b,handler:at.CONTAINER_HANDLERS[c]};return null}async handle(l,d,u,h,_,b,c){return c.handler.handle(c.containers,l,d,h,_,b)}};return a.CONTAINER_HANDLERS={"@id":new e.ContainerHandlerIdentifier,"@index":new t.ContainerHandlerIndex,"@language":new r.ContainerHandlerLanguage,"@type":new n.ContainerHandlerType},cr.EntryHandlerContainer=a,cr}var Ba;function Lt(){if(Ba)return ur;Ba=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.Util=void 0;const e=Se,t=Vf,r=Fl(),n=jf;let o=class ie{constructor(i){this.parsingContext=i.parsingContext,this.dataFactory=i.dataFactory||new t.DataFactory,this.rdfFirst=this.dataFactory.namedNode(ie.RDF+"first"),this.rdfRest=this.dataFactory.namedNode(ie.RDF+"rest"),this.rdfNil=this.dataFactory.namedNode(ie.RDF+"nil"),this.rdfType=this.dataFactory.namedNode(ie.RDF+"type"),this.rdfJson=this.dataFactory.namedNode(ie.RDF+"JSON")}static getContextValue(i,l,d,u){const h=i.getContextRaw()[d];if(!h)return u;const _=h[l];return _===void 0?u:_}static getContextValueContainer(i,l){return ie.getContextValue(i,"@container",l,{"@set":!0})}static getContextValueType(i,l){const d=ie.getContextValue(i,"@type",l,null);return d==="@none"?null:d}static getContextValueLanguage(i,l){return ie.getContextValue(i,"@language",l,i.getContextRaw()["@language"]||null)}static getContextValueDirection(i,l){return ie.getContextValue(i,"@direction",l,i.getContextRaw()["@direction"]||null)}static isContextValueReverse(i,l){return!!ie.getContextValue(i,"@reverse",l,null)}static getContextValueIndex(i,l){return ie.getContextValue(i,"@index",l,i.getContextRaw()["@index"]||null)}static isPropertyReverse(i,l,d){return d==="@reverse"!==ie.isContextValueReverse(i,l)}static isPropertyInEmbeddedNode(i){return i==="@id"}static isPropertyInAnnotationObject(i){return i==="@annotation"}static isValidIri(i){return i!==null&&e.Util.isValidIri(i)}static isPrefixArray(i,l){if(i.length>l.length)return!1;for(let d=0;d1)throw new e.ErrorCoded(`Found illegal neighbouring entries next to @set for key: '${l}'`,e.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);return[]}else if("@list"in d){if(Object.keys(d).length>1)throw new e.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${l}'`,e.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);const b=d["@list"];return Array.isArray(b)?b.length===0?[this.rdfNil]:this.parsingContext.idStack[u+1]||[]:await this.valueToTerm(await this.parsingContext.getContext(h),l,b,u-1,h.slice(0,-1))}else{if("@reverse"in d&&typeof d["@reverse"]=="boolean")return[];if("@graph"in ie.getContextValueContainer(await this.parsingContext.getContext(h),l)){const b=this.parsingContext.graphContainerTermStack[u+1];return b?Object.values(b):[this.dataFactory.blankNode()]}else if("@id"in d){if(Object.keys(d).length>1&&(i=await this.parsingContext.getContext(h,0)),"@context"in d&&(i=await this.parsingContext.parseContext(d["@context"],i.getContextRaw())),d["@type"]==="@vocab")return this.nullableTermToArray(this.createVocabOrBaseTerm(i,d["@id"]));{const b=d["@id"];let c;if(typeof b=="object")if(this.parsingContext.rdfstar)c=this.parsingContext.idStack[u+1][0];else throw new e.ErrorCoded(`Found illegal @id '${d}'`,e.ERROR_CODES.INVALID_ID_VALUE);else c=this.resourceToTerm(i,b);return this.nullableTermToArray(c)}}else return this.parsingContext.emittedStack[u+1]||d&&typeof d=="object"&&Object.keys(d).length===0?this.parsingContext.idStack[u+1]||(this.parsingContext.idStack[u+1]=[this.dataFactory.blankNode()]):[]}case"string":return this.nullableTermToArray(this.stringValueToTerm(u,await this.getContextSelfOrPropertyScoped(i,l),l,d,null));case"boolean":return this.nullableTermToArray(this.stringValueToTerm(u,await this.getContextSelfOrPropertyScoped(i,l),l,(!!d).toString(),this.dataFactory.namedNode(ie.XSD_BOOLEAN)));case"number":return this.nullableTermToArray(this.stringValueToTerm(u,await this.getContextSelfOrPropertyScoped(i,l),l,d,this.dataFactory.namedNode(d%1===0&&d<1e21?ie.XSD_INTEGER:ie.XSD_DOUBLE)));default:return this.parsingContext.emitError(new Error(`Could not determine the RDF type of a ${_}`)),[]}}async getContextSelfOrPropertyScoped(i,l){const d=i.getContextRaw()[l];return d&&typeof d=="object"&&"@context"in d&&(i=await this.parsingContext.parseContext(d,i.getContextRaw(),!0)),i}nullableTermToArray(i){return i?[i]:[]}predicateToTerm(i,l){const d=i.expandTerm(l,!0,this.parsingContext.getExpandOptions());if(!d)return null;if(d[0]==="_"&&d[1]===":")return this.parsingContext.produceGeneralizedRdf?this.dataFactory.blankNode(d.substr(2)):null;if(ie.isValidIri(d))return this.dataFactory.namedNode(d);if(d&&this.parsingContext.strictValues)this.parsingContext.emitError(new e.ErrorCoded(`Invalid predicate IRI: ${d}`,e.ERROR_CODES.INVALID_IRI_MAPPING));else return null;return null}resourceToTerm(i,l){if(l.startsWith("_:"))return this.dataFactory.blankNode(l.substr(2));const d=i.expandTerm(l,!1,this.parsingContext.getExpandOptions());if(!ie.isValidIri(d))if(d&&this.parsingContext.strictValues)this.parsingContext.emitError(new Error(`Invalid resource IRI: ${d}`));else return null;return this.dataFactory.namedNode(d)}createVocabOrBaseTerm(i,l){if(l.startsWith("_:"))return this.dataFactory.blankNode(l.substr(2));const d=this.parsingContext.getExpandOptions();let u=i.expandTerm(l,!0,d);if(u===l&&(u=i.expandTerm(l,!1,d)),!ie.isValidIri(u))if(u&&this.parsingContext.strictValues&&!u.startsWith("@"))this.parsingContext.emitError(new Error(`Invalid term IRI: ${u}`));else return null;return this.dataFactory.namedNode(u)}intToString(i,l){return typeof i=="number"?Number.isFinite(i)?i%1===0&&(!l||l.value!==ie.XSD_DOUBLE)?Number(i).toString():i.toExponential(15).replace(/(\d)0*e\+?/,"$1E"):i>0?"INF":"-INF":i}stringValueToTerm(i,l,d,u,h){const _=ie.getContextValueType(l,d);if(_)if(_==="@id"){if(!h)return this.resourceToTerm(l,this.intToString(u,h))}else if(_==="@vocab"){if(!h)return this.createVocabOrBaseTerm(l,this.intToString(u,h))}else h=this.dataFactory.namedNode(_);if(!h){const b=ie.getContextValueLanguage(l,d),c=ie.getContextValueDirection(l,d);return c&&this.parsingContext.rdfDirection?this.createLanguageDirectionLiteral(i,this.intToString(u,h),b,c):this.dataFactory.literal(this.intToString(u,h),b)}return this.dataFactory.literal(this.intToString(u,h),h)}createLanguageDirectionLiteral(i,l,d,u){if(this.parsingContext.rdfDirection==="i18n-datatype")return d||(d=""),this.dataFactory.literal(l,this.dataFactory.namedNode(`https://www.w3.org/ns/i18n#${d}_${u}`));{const h=this.dataFactory.blankNode(),_=this.getDefaultGraph();return this.parsingContext.emitQuad(i,this.dataFactory.quad(h,this.dataFactory.namedNode(ie.RDF+"value"),this.dataFactory.literal(l),_)),d&&this.parsingContext.emitQuad(i,this.dataFactory.quad(h,this.dataFactory.namedNode(ie.RDF+"language"),this.dataFactory.literal(d),_)),this.parsingContext.emitQuad(i,this.dataFactory.quad(h,this.dataFactory.namedNode(ie.RDF+"direction"),this.dataFactory.literal(u),_)),h}}valueToJsonString(i){return n(i)}async unaliasKeyword(i,l,d,u,h){if(Number.isInteger(i))return i;if(!u){const _=this.parsingContext.unaliasedKeywordCacheStack[d];if(_)return _}if(!e.Util.isPotentialKeyword(i)){h=h||await this.parsingContext.getContext(l);let _=h.getContextRaw()[i];_&&typeof _=="object"&&(_=_["@id"]),e.Util.isValidKeyword(_)&&(i=_)}return u?i:this.parsingContext.unaliasedKeywordCacheStack[d]=i}async unaliasKeywordParent(i,l){return await this.unaliasKeyword(l>0&&i[l-1],i,l-1)}async unaliasKeywords(i,l,d,u){const h={};for(const _ in i)h[await this.unaliasKeyword(_,l,d+1,!0,u)]=i[_];return h}async isLiteral(i,l){for(let d=l;d>=0;d--){if(await this.unaliasKeyword(i[d],i,d)==="@annotation")return!1;if(this.parsingContext.literalStack[d]||this.parsingContext.jsonLiteralStack[d])return!0}return!1}async getDepthOffsetGraph(i,l){for(let d=i-1;d>0;d--)if(await this.unaliasKeyword(l[d],l,d)==="@graph"){const u=(await r.EntryHandlerContainer.getContainerHandler(this.parsingContext,l,d)).containers;return r.EntryHandlerContainer.isComplexGraphContainer(u)?-1:i-d-1}return-1}validateReverseSubject(i){if(i.termType==="Literal")throw new e.ErrorCoded(`Found illegal literal in subject position: ${i.value}`,e.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}getDefaultGraph(){return this.parsingContext.defaultGraph||this.dataFactory.defaultGraph()}async getGraphContainerValue(i,l){let d=this.getDefaultGraph();const{containers:u,depth:h}=await r.EntryHandlerContainer.getContainerHandler(this.parsingContext,i,l);if("@graph"in u){const _=r.EntryHandlerContainer.getContainerGraphIndex(u,h,i),b=this.parsingContext.graphContainerTermStack[h];if(d=b?b[_]:null,!d){let c=null;if("@id"in u){const E=await this.getContainerKey(i[h],i,h);E!==null&&(c=await this.resourceToTerm(await this.parsingContext.getContext(i),E))}c||(c=this.dataFactory.blankNode()),this.parsingContext.graphContainerTermStack[h]||(this.parsingContext.graphContainerTermStack[h]={}),d=this.parsingContext.graphContainerTermStack[h][_]=c}}return d}async getPropertiesDepth(i,l){let d=l;for(let u=l-1;u>0;u--)if(typeof i[u]!="number"){const h=await this.unaliasKeyword(i[u],i,u);if(h==="@reverse")return u;if(h==="@nest")d=u;else return d}return d}async getContainerKey(i,l,d){const u=await this.unaliasKeyword(i,l,d);return u==="@none"?null:u}validateReverseInEmbeddedNode(i,l,d){if(d&&l&&!this.parsingContext.rdfstarReverseInEmbedded)throw new e.ErrorCoded(`Illegal reverse property in embedded node in ${i}`,e.ERROR_CODES.INVALID_EMBEDDED_NODE)}emitQuadChecked(i,l,d,u,h,_,b){let c;if(_?(this.validateReverseSubject(u),c=this.dataFactory.quad(u,d,l,h)):c=this.dataFactory.quad(l,d,u,h),b){if(c.graph.termType!=="DefaultGraph"&&(c=this.dataFactory.quad(c.subject,c.predicate,c.object)),this.parsingContext.idStack[i-1])throw new e.ErrorCoded("Illegal multiple properties in an embedded node",e.ERROR_CODES.INVALID_EMBEDDED_NODE);this.parsingContext.idStack[i-1]=[c]}else this.parsingContext.emitQuad(i,c);const E=this.parsingContext.annotationsBuffer[i];if(E){for(const g of E)this.emitAnnotation(i,c,g);delete this.parsingContext.annotationsBuffer[i]}}emitAnnotation(i,l,d){let u;d.reverse?(this.validateReverseSubject(d.object),u=this.dataFactory.quad(d.object,d.predicate,l)):u=this.dataFactory.quad(l,d.predicate,d.object),this.parsingContext.emitQuad(i,u);for(const h of d.nestedAnnotations)this.emitAnnotation(i,u,h)}};return o.XSD="http://www.w3.org/2001/XMLSchema#",o.XSD_BOOLEAN=o.XSD+"boolean",o.XSD_INTEGER=o.XSD+"integer",o.XSD_DOUBLE=o.XSD+"double",o.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",ur.Util=o,ur}Object.defineProperty(hn,"__esModule",{value:!0});hn.EntryHandlerArrayValue=void 0;const Sh=Lt(),Ga=Se;class Rh{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(t,r,n,o,a){return this.test(t,r,null,n,o)}async test(t,r,n,o,a){return typeof o[a]=="number"}async handle(t,r,n,o,a,i){let l=await r.unaliasKeywordParent(o,i);if(l==="@list"){let d=null,u=0;for(let h=i-2;h>0;h--){const _=o[h];if(typeof _=="string"||typeof _=="number"){u=h,d=_;break}}if(d!==null){const h=await r.valueToTerm(await t.getContext(o),d,a,i,o);for(const _ of h)await this.handleListElement(t,r,_,a,i,o.slice(0,u),u);h.length===0&&await this.handleListElement(t,r,null,a,i,o.slice(0,u),u)}}else if(l==="@set")await t.newOnValueJob(o.slice(0,-2),a,i-2,!1);else if(l!==void 0&&l!=="@type"){for(let u=i-1;u>0;u--)if(typeof o[u]!="number"){l=await r.unaliasKeyword(o[u],o,u);break}const d=await t.getContext(o.slice(0,-1));if("@list"in Sh.Util.getContextValueContainer(d,l)){t.emittedStack[i+1]=!0;const u=await r.valueToTerm(await t.getContext(o),l,a,i,o);for(const h of u)await this.handleListElement(t,r,h,a,i,o.slice(0,-1),i-1);u.length===0&&await this.handleListElement(t,r,null,a,i,o.slice(0,-1),i-1)}else t.shiftStack(i,1),await t.newOnValueJob(o.slice(0,-1),a,i-1,!1),t.contextTree.removeContext(o.slice(0,-1))}}async handleListElement(t,r,n,o,a,i,l){let d=t.listPointerStack[a];if(o!==null&&(await r.unaliasKeywords(o,i,a))["@value"]!==null){if(!d||!d.value){const u=r.dataFactory.blankNode();d={value:u,listRootDepth:l,listId:u}}else{const u=r.dataFactory.blankNode();t.emitQuad(a,r.dataFactory.quad(d.value,r.rdfRest,u,r.getDefaultGraph())),d.value=u}n&&t.emitQuad(a,r.dataFactory.quad(d.value,r.rdfFirst,n,r.getDefaultGraph()))}else d||(d={listRootDepth:l,listId:r.rdfNil});t.listPointerStack[a]=d,t.rdfstar&&t.annotationsBuffer[a]&&t.emitError(new Ga.ErrorCoded("Found an illegal annotation inside a list",Ga.ERROR_CODES.INVALID_ANNOTATION))}}hn.EntryHandlerArrayValue=Rh;var gn={};Object.defineProperty(gn,"__esModule",{value:!0});gn.EntryHandlerInvalidFallback=void 0;class Ah{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(t,r,n,o,a){return!1}async test(t,r,n,o,a){return!0}async handle(t,r,n,o,a,i){t.emittedStack[i]=!1}}gn.EntryHandlerInvalidFallback=Ah;var _n={},Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.EntryHandlerKeyword=void 0;class Ih{constructor(t){this.keyword=t}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(t,r,n,o,a){return!1}async test(t,r,n,o,a){return n===this.keyword}}Fe.EntryHandlerKeyword=Ih;Object.defineProperty(_n,"__esModule",{value:!0});_n.EntryHandlerKeywordContext=void 0;const Ha=Se,mh=Fe;class vh extends mh.EntryHandlerKeyword{constructor(){super("@context")}isStackProcessor(){return!1}async handle(t,r,n,o,a,i){t.streamingProfile&&(t.processingStack[i]||t.processingType[i]||t.idStack[i]!==void 0)&&t.emitError(new Ha.ErrorCoded("Found an out-of-order context, while streaming is enabled.(disable `streamingProfile`)",Ha.ERROR_CODES.INVALID_STREAMING_KEY_ORDER));const l=t.getContext(o),d=t.parseContext(a,(await l).getContextRaw());t.contextTree.setContext(o.slice(0,-1),d),t.emitContext(a),await t.validateContext(await d)}}_n.EntryHandlerKeywordContext=vh;var wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.EntryHandlerKeywordGraph=void 0;const Th=Fe;class Ch extends Th.EntryHandlerKeyword{constructor(){super("@graph")}async handle(t,r,n,o,a,i){t.graphStack[i+1]=!0}}wn.EntryHandlerKeywordGraph=Ch;var En={};Object.defineProperty(En,"__esModule",{value:!0});En.EntryHandlerKeywordId=void 0;const Ue=Se,Nh=Fe;class Oh extends Nh.EntryHandlerKeyword{constructor(){super("@id")}isStackProcessor(){return!1}async handle(t,r,n,o,a,i){if(typeof a!="string"){if(t.rdfstar&&typeof a=="object"){const d=Object.keys(a);d.length===1&&d[0]==="@id"&&t.emitError(new Ue.ErrorCoded(`Invalid embedded node without property with @id ${a["@id"]}`,Ue.ERROR_CODES.INVALID_EMBEDDED_NODE))}else t.emitError(new Ue.ErrorCoded(`Found illegal @id '${a}'`,Ue.ERROR_CODES.INVALID_ID_VALUE));return}const l=await r.getPropertiesDepth(o,i);if(t.idStack[l]!==void 0&&(t.idStack[l][0].listHead?t.emitError(new Ue.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${o[i-1]}'`,Ue.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT)):t.emitError(new Ue.ErrorCoded(`Found duplicate @ids '${t.idStack[l][0].value}' and '${a}'`,Ue.ERROR_CODES.COLLIDING_KEYWORDS))),t.rdfstar&&t.annotationsBuffer[i])for(const d of t.annotationsBuffer[i])d.depth===i&&t.emitError(new Ue.ErrorCoded(`Found an illegal @id inside an annotation: ${a}`,Ue.ERROR_CODES.INVALID_ANNOTATION));t.idStack[l]=r.nullableTermToArray(await r.resourceToTerm(await t.getContext(o),a))}}En.EntryHandlerKeywordId=Oh;var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});Sn.EntryHandlerKeywordIncluded=void 0;const Vt=Se,$h=Fe;class xh extends $h.EntryHandlerKeyword{constructor(){super("@included")}async handle(t,r,n,o,a,i){typeof a!="object"&&t.emitError(new Vt.ErrorCoded(`Found illegal @included '${a}'`,Vt.ERROR_CODES.INVALID_INCLUDED_VALUE));const l=await r.unaliasKeywords(a,o,i,await t.getContext(o));"@value"in l&&t.emitError(new Vt.ErrorCoded(`Found an illegal @included @value node '${JSON.stringify(a)}'`,Vt.ERROR_CODES.INVALID_INCLUDED_VALUE)),"@list"in l&&t.emitError(new Vt.ErrorCoded(`Found an illegal @included @list node '${JSON.stringify(a)}'`,Vt.ERROR_CODES.INVALID_INCLUDED_VALUE)),t.emittedStack[i]=!1}}Sn.EntryHandlerKeywordIncluded=xh;var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.EntryHandlerKeywordNest=void 0;const Pr=Se,Dh=Fe;class Lh extends Dh.EntryHandlerKeyword{constructor(){super("@nest")}async handle(t,r,n,o,a,i){typeof a!="object"&&t.emitError(new Pr.ErrorCoded(`Found invalid @nest entry for '${n}': '${a}'`,Pr.ERROR_CODES.INVALID_NEST_VALUE)),"@value"in await r.unaliasKeywords(a,o,i,await t.getContext(o))&&t.emitError(new Pr.ErrorCoded(`Found an invalid @value node for '${n}'`,Pr.ERROR_CODES.INVALID_NEST_VALUE)),t.emittedStack[i]=!1}}Rn.EntryHandlerKeywordNest=Lh;var An={};Object.defineProperty(An,"__esModule",{value:!0});An.EntryHandlerKeywordType=void 0;const yr=Se,kr=Lt(),Ph=pn(),kh=Fe;class Mh extends kh.EntryHandlerKeyword{constructor(){super("@type")}isStackProcessor(){return!1}async handle(t,r,n,o,a,i){const l=o[i],d=await t.getContext(o),u=r.rdfType,h=await r.unaliasKeywordParent(o,i),_=kr.Util.isPropertyReverse(d,l,h),b=kr.Util.isPropertyInEmbeddedNode(h);r.validateReverseInEmbeddedNode(n,_,b);const c=kr.Util.isPropertyInAnnotationObject(h),E=Array.isArray(a)?a:[a];for(const T of E){typeof T!="string"&&t.emitError(new yr.ErrorCoded(`Found illegal @type '${T}'`,yr.ERROR_CODES.INVALID_TYPE_VALUE));const $=r.createVocabOrBaseTerm(d,T);$&&await Ph.EntryHandlerPredicate.handlePredicateObject(t,r,o,i,u,$,_,b,c)}let g=Promise.resolve(d),S=!1;for(const T of E.sort()){const $=kr.Util.getContextValue(d,"@context",T,null);$&&(S=!0,g=g.then(w=>t.parseContext($,w.getContextRaw())))}t.streamingProfile&&(S||!t.streamingProfileAllowOutOfOrderPlainType)&&(t.processingStack[i]||t.idStack[i])&&t.emitError(new yr.ErrorCoded("Found an out-of-order type-scoped context, while streaming is enabled.(disable `streamingProfile`)",yr.ERROR_CODES.INVALID_STREAMING_KEY_ORDER)),S&&(g=g.then(T=>T.getContextRaw()["@propagate"]!==!0?new yr.JsonLdContextNormalized(Object.assign(Object.assign({},T.getContextRaw()),{"@propagate":!1,"@__propagateFallback":d.getContextRaw()})):T),t.contextTree.setContext(o.slice(0,o.length-1),g)),t.processingType[i]=!0}}An.EntryHandlerKeywordType=Mh;var In={};Object.defineProperty(In,"__esModule",{value:!0});In.EntryHandlerKeywordUnknownFallback=void 0;const Sr=Se;class mn{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(t,r,n,o,a){const i=await r.unaliasKeyword(n[o],n,o);return Sr.Util.isPotentialKeyword(i)?!(!a&&i==="@list"):!1}async test(t,r,n,o,a){return Sr.Util.isPotentialKeyword(n)}async handle(t,r,n,o,a,i){const l=mn.VALID_KEYWORDS_TYPES[n];l!==void 0?l&&typeof a!==l.type&&t.emitError(new Sr.ErrorCoded(`Invalid value type for '${n}' with value '${a}'`,l.errorCode)):t.strictValues&&t.emitError(new Error(`Unknown keyword '${n}' with value '${a}'`)),t.emittedStack[i]=!1}}mn.VALID_KEYWORDS_TYPES={"@index":{type:"string",errorCode:Sr.ERROR_CODES.INVALID_INDEX_VALUE},"@list":null,"@reverse":{type:"object",errorCode:Sr.ERROR_CODES.INVALID_REVERSE_VALUE},"@set":null,"@value":null};In.EntryHandlerKeywordUnknownFallback=mn;var vn={};Object.defineProperty(vn,"__esModule",{value:!0});vn.EntryHandlerKeywordValue=void 0;const Vh=Fe;class jh extends Vh.EntryHandlerKeyword{constructor(){super("@value")}async validate(t,r,n,o,a){const i=n[o];return i&&!t.literalStack[o]&&await this.test(t,r,i,n,o)&&(t.literalStack[o]=!0),super.validate(t,r,n,o,a)}async test(t,r,n,o,a){return await r.unaliasKeyword(o[a],o.slice(0,o.length-1),a-1,!0)==="@value"}async handle(t,r,n,o,a,i){t.literalStack[i]=!0,delete t.unidentifiedValuesBuffer[i],delete t.unidentifiedGraphsBuffer[i],t.emittedStack[i]=!1}}vn.EntryHandlerKeywordValue=jh;var gr={},Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ContextTree=void 0;class So{constructor(){this.subTrees={}}getContext(t){if(t.length>0){const[r,...n]=t,o=this.subTrees[r];if(o){const a=o.getContext(n);if(a)return a.then(({context:i,depth:l})=>({context:i,depth:l+1}))}}return this.context?this.context.then(r=>({context:r,depth:0})):null}setContext(t,r){if(t.length===0)this.context=r;else{const[n,...o]=t;let a=this.subTrees[n];a||(a=this.subTrees[n]=new So),a.setContext(o,r)}}removeContext(t){this.setContext(t,null)}}Tn.ContextTree=So;var Ka;function Fh(){if(Ka)return gr;Ka=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.ParsingContext=void 0;const e=Se,t=Jt,r=Tn,n=Wl();let o=class Ul{constructor(i){this.contextParser=new e.ContextParser({documentLoader:i.documentLoader,skipValidation:i.skipContextValidation}),this.streamingProfile=!!i.streamingProfile,this.baseIRI=i.baseIRI,this.produceGeneralizedRdf=!!i.produceGeneralizedRdf,this.allowSubjectList=!!i.allowSubjectList,this.processingMode=i.processingMode||n.JsonLdParser.DEFAULT_PROCESSING_MODE,this.strictValues=!!i.strictValues,this.validateValueIndexes=!!i.validateValueIndexes,this.defaultGraph=i.defaultGraph,this.rdfDirection=i.rdfDirection,this.normalizeLanguageTags=i.normalizeLanguageTags,this.streamingProfileAllowOutOfOrderPlainType=i.streamingProfileAllowOutOfOrderPlainType,this.rdfstar=i.rdfstar!==!1,this.rdfstarReverseInEmbedded=i.rdfstarReverseInEmbedded,this.topLevelProperties=!1,this.activeProcessingMode=parseFloat(this.processingMode),this.processingStack=[],this.processingType=[],this.emittedStack=[],this.idStack=[],this.graphStack=[],this.graphContainerTermStack=[],this.listPointerStack=[],this.contextTree=new r.ContextTree,this.literalStack=[],this.validationStack=[],this.unaliasedKeywordCacheStack=[],this.jsonLiteralStack=[],this.unidentifiedValuesBuffer=[],this.unidentifiedGraphsBuffer=[],this.annotationsBuffer=[],this.pendingContainerFlushBuffers=[],this.parser=i.parser,i.context?(this.rootContext=this.parseContext(i.context),this.rootContext.then(l=>this.validateContext(l))):this.rootContext=Promise.resolve(new e.JsonLdContextNormalized(this.baseIRI?{"@base":this.baseIRI,"@__baseDocument":!0}:{}))}async parseContext(i,l,d){return this.contextParser.parse(i,{baseIRI:this.baseIRI,ignoreProtection:d,normalizeLanguageTags:this.normalizeLanguageTags,parentContext:l,processingMode:this.activeProcessingMode})}validateContext(i){const l=i.getContextRaw()["@version"];if(l){if(this.activeProcessingMode&&l>this.activeProcessingMode)throw new t.ErrorCoded(`Unsupported JSON-LD version '${l}' under active processing mode ${this.activeProcessingMode}.`,t.ERROR_CODES.PROCESSING_MODE_CONFLICT);if(this.activeProcessingMode&&l0&&d.context.getContextRaw()["@propagate"]===!1&&d.depth!==l&&!u);return d.depth===0&&d.context.getContextRaw()["@propagate"]===!1&&d.depth!==l&&(d.context=new e.JsonLdContextNormalized({})),d}async newOnValueJob(i,l,d,u){await this.parser.newOnValueJob(i,l,d,u)}async handlePendingContainerFlushBuffers(){if(this.pendingContainerFlushBuffers.length>0){for(const i of this.pendingContainerFlushBuffers)await this.parser.flushBuffer(i.depth,i.keys),this.parser.flushStacks(i.depth);return this.pendingContainerFlushBuffers.splice(0,this.pendingContainerFlushBuffers.length),!0}else return!1}emitQuad(i,l){i===1&&(this.topLevelProperties=!0),this.parser.push(l)}emitError(i){this.parser.emit("error",i)}emitContext(i){this.parser.emit("context",i)}getUnidentifiedValueBufferSafe(i){let l=this.unidentifiedValuesBuffer[i];return l||(l=[],this.unidentifiedValuesBuffer[i]=l),l}getUnidentifiedGraphBufferSafe(i){let l=this.unidentifiedGraphsBuffer[i];return l||(l=[],this.unidentifiedGraphsBuffer[i]=l),l}getAnnotationsBufferSafe(i){let l=this.annotationsBuffer[i];return l||(l=[],this.annotationsBuffer[i]=l),l}getExpandOptions(){return Ul.EXPAND_OPTIONS[this.activeProcessingMode]}shiftStack(i,l){const d=this.idStack[i+l];if(d&&(this.idStack[i]=d,this.emittedStack[i]=!0,delete this.idStack[i+l]),this.pendingContainerFlushBuffers.length)for(const u of this.pendingContainerFlushBuffers)u.depth>=i+l&&(u.depth-=l,u.keys.splice(i,l));this.unidentifiedValuesBuffer[i+l]&&(this.unidentifiedValuesBuffer[i]=this.unidentifiedValuesBuffer[i+l],delete this.unidentifiedValuesBuffer[i+l]),this.annotationsBuffer[i+l-1]&&(this.annotationsBuffer[i-1]||(this.annotationsBuffer[i-1]=[]),this.annotationsBuffer[i-1]=[...this.annotationsBuffer[i-1],...this.annotationsBuffer[i+l-1]],delete this.annotationsBuffer[i+l-1])}};return o.EXPAND_OPTIONS={1:{allowPrefixForcing:!1,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!1},1.1:{allowPrefixForcing:!0,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!0}},gr.ParsingContext=o,gr}var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.EntryHandlerKeywordAnnotation=void 0;const Uh=Fe,Ja=Se;class Wh extends Uh.EntryHandlerKeyword{constructor(){super("@annotation")}async handle(t,r,n,o,a,i){(typeof a=="string"||typeof a=="object"&&a["@value"])&&t.emitError(new Ja.ErrorCoded(`Found illegal annotation value: ${JSON.stringify(a)}`,Ja.ERROR_CODES.INVALID_ANNOTATION))}}Cn.EntryHandlerKeywordAnnotation=Wh;var qa;function Wl(){if(qa)return dr;qa=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.JsonLdParser=void 0;const e=Yf,t=Se,r=yh,n=hn,o=Fl(),a=gn,i=pn(),l=_n,d=wn,u=En,h=Sn,_=Rn,b=An,c=In,E=vn,g=Fh(),S=Lt(),T=Hs,$=Cn;let w=class Ft extends r.Transform{constructor(v){super({readableObjectMode:!0}),v=v||{},this.options=v,this.parsingContext=new g.ParsingContext(Object.assign({parser:this},v)),this.util=new S.Util({dataFactory:v.dataFactory,parsingContext:this.parsingContext}),this.jsonParser=new e,this.contextJobs=[],this.typeJobs=[],this.contextAwaitingJobs=[],this.lastDepth=0,this.lastKeys=[],this.lastOnValueJob=Promise.resolve(),this.attachJsonParserListeners(),this.on("end",()=>{typeof this.jsonParser.mode<"u"&&this.emit("error",new Error("Unclosed document"))})}static fromHttpResponse(v,x,U,F){let W,ee=["application/activity+json"];if(F&&F.wellKnownMediaTypes&&(ee=F.wellKnownMediaTypes),x!=="application/ld+json"&&!ee.includes(x)){if(x!=="application/json"&&!x.endsWith("+json"))throw new t.ErrorCoded(`Unsupported JSON-LD media type ${x}`,t.ERROR_CODES.LOADING_DOCUMENT_FAILED);if(U&&U.has("Link")&&U.forEach((k,R)=>{if(R==="link"){const V=(0,T.parse)(k);for(const M of V.get("rel","http://www.w3.org/ns/json-ld#context")){if(W)throw new t.ErrorCoded("Multiple JSON-LD context link headers were found on "+v,t.ERROR_CODES.MULTIPLE_CONTEXT_LINK_HEADERS);W=M.uri}}}),!W&&!(F!=null&&F.ignoreMissingContextLinkHeader))throw new t.ErrorCoded(`Missing context link header for media type ${x} on ${v}`,t.ERROR_CODES.LOADING_DOCUMENT_FAILED)}let J;if(U&&U.has("Content-Type")){const k=U.get("Content-Type"),R=/; *profile=([^"]*)/.exec(k);R&&R[1]==="http://www.w3.org/ns/json-ld#streaming"&&(J=!0)}return new Ft(Object.assign({baseIRI:v,context:W,streamingProfile:J},F||{}))}import(v){if("pipe"in v){v.on("error",U=>x.emit("error",U));const x=v.pipe(new Ft(this.options));return x}else{const x=new r.PassThrough({readableObjectMode:!0});v.on("error",F=>U.emit("error",F)),v.on("data",F=>x.push(F)),v.on("end",()=>x.push(null));const U=x.pipe(new Ft(this.options));return U}}_transform(v,x,U){this.jsonParser.write(v),this.lastOnValueJob.then(()=>U(),F=>U(F))}async newOnValueJob(v,x,U,F){let W=!0;if(F&&U1&&(R=this.parsingContext.validationStack[this.parsingContext.validationStack.length-1].property);for(let V=Math.max(1,this.parsingContext.validationStack.length-1);V=0?this.parsingContext.idStack[v-R-1]:[await this.util.getGraphContainerValue(x,v)];if(V)for(const M of V){this.parsingContext.emittedStack[v]=!0;for(const j of W)this.util.emitQuadChecked(v,k,j.predicate,j.object,M,j.reverse,j.isEmbedded)}else{const M=this.parsingContext.getUnidentifiedGraphBufferSafe(v-await this.util.getDepthOffsetGraph(v,x)-1);for(const j of W)j.reverse?M.push({object:k,predicate:j.predicate,subject:j.object,isEmbedded:j.isEmbedded}):M.push({object:j.object,predicate:j.predicate,subject:k,isEmbedded:j.isEmbedded})}}this.parsingContext.unidentifiedValuesBuffer.splice(v,1),this.parsingContext.literalStack.splice(v,1),this.parsingContext.jsonLiteralStack.splice(v,1)}const ee=this.parsingContext.unidentifiedGraphsBuffer[v];if(ee){for(const k of U){const R=v===1&&k.termType==="BlankNode"&&!this.parsingContext.topLevelProperties?this.util.getDefaultGraph():k;this.parsingContext.emittedStack[v]=!0;for(const V of ee)this.parsingContext.emitQuad(v,this.util.dataFactory.quad(V.subject,V.predicate,V.object,R))}this.parsingContext.unidentifiedGraphsBuffer.splice(v,1)}const J=this.parsingContext.annotationsBuffer[v];if(J){J.length>0&&v===1&&this.parsingContext.emitError(new t.ErrorCoded("Annotations can not be made on top-level nodes",t.ERROR_CODES.INVALID_ANNOTATION));const k=this.parsingContext.getAnnotationsBufferSafe(v-1);for(const R of J)k.push(R);delete this.parsingContext.annotationsBuffer[v]}}async validateKey(v,x,U){for(const F of Ft.ENTRY_HANDLERS)if(await F.validate(this.parsingContext,this.util,v,x,U))return{valid:!0,property:U||F.isPropertyHandler()};return{valid:!1,property:!1}}attachJsonParserListeners(){this.jsonParser.onValue=v=>{const x=this.jsonParser.stack.length,U=new Array(x+1).fill(0).map((F,W)=>W===x?this.jsonParser.key:this.jsonParser.stack[W].key);if(!this.isParsingContextInner(x)){const F=()=>this.newOnValueJob(U,v,x,!0);if(!this.parsingContext.streamingProfile&&!this.parsingContext.contextTree.getContext(U.slice(0,-1)))if(U[x]==="@context"){let W=this.contextJobs[x];W||(W=this.contextJobs[x]=[]),W.push(F)}else this.contextAwaitingJobs.push({job:F,keys:U,depth:x});else this.lastOnValueJob=this.lastOnValueJob.then(F);!this.parsingContext.streamingProfile&&x===0&&(this.lastOnValueJob=this.lastOnValueJob.then(()=>this.executeBufferedJobs()))}},this.jsonParser.onError=v=>{this.emit("error",v)}}isParsingContextInner(v){for(let x=v;x>0;x--)if(this.jsonParser.stack[x-1].key==="@context")return!0;return!1}async executeBufferedJobs(){for(const x of this.contextJobs)if(x)for(const U of x)await U();this.parsingContext.unaliasedKeywordCacheStack.splice(0);const v=[];for(const x of this.contextAwaitingJobs)await this.util.unaliasKeyword(x.keys[x.depth],x.keys,x.depth,!0)==="@type"||typeof x.keys[x.depth]=="number"&&await this.util.unaliasKeyword(x.keys[x.depth-1],x.keys,x.depth-1,!0)==="@type"?this.typeJobs.push({job:x.job,keys:x.keys.slice(0,x.keys.length-1)}):v.push(x);for(const x of v){if(this.typeJobs.length>0){const U=[],F=[];for(let J=0;JJ.keys.length-k.keys.length);for(const J of W)await J.job();const ee=F.sort().reverse();for(const J of ee)this.typeJobs.splice(J,1)}await x.job()}}};return w.DEFAULT_PROCESSING_MODE="1.1",w.ENTRY_HANDLERS=[new n.EntryHandlerArrayValue,new l.EntryHandlerKeywordContext,new u.EntryHandlerKeywordId,new h.EntryHandlerKeywordIncluded,new d.EntryHandlerKeywordGraph,new _.EntryHandlerKeywordNest,new b.EntryHandlerKeywordType,new E.EntryHandlerKeywordValue,new $.EntryHandlerKeywordAnnotation,new o.EntryHandlerContainer,new c.EntryHandlerKeywordUnknownFallback,new i.EntryHandlerPredicate,new a.EntryHandlerInvalidFallback],dr.JsonLdParser=w,dr}(function(e){var t=dt&&dt.__createBinding||(Object.create?function(n,o,a,i){i===void 0&&(i=a);var l=Object.getOwnPropertyDescriptor(o,a);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,l)}:function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]}),r=dt&&dt.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Wl(),e)})(Ms);var Bl={exports:{}},_i={exports:{}},le={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array},Gl={exports:{}};(function(e){const t=be,{kResistStopPropagation:r,SymbolDispose:n}=le,o=globalThis.AbortSignal||Ge().AbortSignal,a=globalThis.AbortController||Ge().AbortController,i=Object.getPrototypeOf(async function(){}).constructor,l=globalThis.Blob||t.Blob,d=typeof l<"u"?function(c){return c instanceof l}:function(c){return!1},u=(b,c)=>{if(b!==void 0&&(b===null||typeof b!="object"||!("aborted"in b)))throw new ERR_INVALID_ARG_TYPE(c,"AbortSignal",b)},h=(b,c)=>{if(typeof b!="function")throw new ERR_INVALID_ARG_TYPE(c,"Function",b)};class _ extends Error{constructor(c){if(!Array.isArray(c))throw new TypeError(`Expected input to be an Array, got ${typeof c}`);let E="";for(let g=0;g{b=g,c=S}),resolve:b,reject:c}},promisify(b){return new Promise((c,E)=>{b((g,...S)=>g?E(g):c(...S))})},debuglog(){return function(){}},format(b,...c){return b.replace(/%([sdifj])/g,function(...[E,g]){const S=c.shift();return g==="f"?S.toFixed(6):g==="j"?JSON.stringify(S):g==="s"&&typeof S=="object"?`${S.constructor!==Object?S.constructor.name:""} {}`.trim():S.toString()})},inspect(b){switch(typeof b){case"string":if(b.includes("'"))if(b.includes('"')){if(!b.includes("`")&&!b.includes("${"))return`\`${b}\``}else return`"${b}"`;return`'${b}'`;case"number":return isNaN(b)?"NaN":Object.is(b,-0)?String(b):b;case"bigint":return`${String(b)}n`;case"boolean":case"undefined":return String(b);case"object":return"{}"}},types:{isAsyncFunction(b){return b instanceof i},isArrayBufferView(b){return ArrayBuffer.isView(b)}},isBlob:d,deprecate(b,c){return b},addAbortListener:ct.addAbortListener||function(c,E){if(c===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",c);u(c,"signal"),h(E,"listener");let g;return c.aborted?queueMicrotask(()=>E()):(c.addEventListener("abort",E,{__proto__:null,once:!0,[r]:!0}),g=()=>{c.removeEventListener("abort",E)}),{__proto__:null,[n](){var S;(S=g)===null||S===void 0||S()}}},AbortSignalAny:o.any||function(c){if(c.length===1)return c[0];const E=new a,g=()=>E.abort();return c.forEach(S=>{u(S,"signals"),S.addEventListener("abort",g,{once:!0})}),E.signal.addEventListener("abort",()=>{c.forEach(S=>S.removeEventListener("abort",g))},{once:!0}),E.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Gl);var Ae=Gl.exports,Ro={};const{format:Bh,inspect:Xr,AggregateError:Gh}=Ae,Hh=globalThis.AggregateError||Gh,Kh=Symbol("kIsNodeError"),Jh=["string","function","number","object","Function","Object","boolean","bigint","symbol"],qh=/^([A-Z][a-z0-9]*)+$/,Yh="__node_internal_",Nn={};function Ct(e,t){if(!e)throw new Nn.ERR_INTERNAL_ASSERTION(t)}function Ya(e){let t="",r=e.length;const n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function zh(e,t,r){if(typeof t=="function")return Ct(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);const n=(t.match(/%[dfijoOs]/g)||[]).length;return Ct(n===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?t:Bh(t,...r)}function ye(e,t,r){r||(r=Error);class n extends r{constructor(...a){super(zh(e,t,a))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=e,n.prototype[Kh]=!0,Nn[e]=n}function za(e){const t=Yh+e.name;return Object.defineProperty(e,"name",{value:t}),e}function Xh(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;const r=new Hh([t,e],t.message);return r.code=t.code,r}return e||t}let Qh=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Nn.ERR_INVALID_ARG_TYPE("options","Object",r);super(t,r),this.code="ABORT_ERR",this.name="AbortError"}};ye("ERR_ASSERTION","%s",Error);ye("ERR_INVALID_ARG_TYPE",(e,t,r)=>{Ct(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";const o=[],a=[],i=[];for(const d of t)Ct(typeof d=="string","All expected entries have to be of type string"),Jh.includes(d)?o.push(d.toLowerCase()):qh.test(d)?a.push(d):(Ct(d!=="object",'The value "object" should be written as "Object"'),i.push(d));if(a.length>0){const d=o.indexOf("object");d!==-1&&(o.splice(o,d,1),a.push("Object"))}if(o.length>0){switch(o.length){case 1:n+=`of type ${o[0]}`;break;case 2:n+=`one of type ${o[0]} or ${o[1]}`;break;default:{const d=o.pop();n+=`one of type ${o.join(", ")}, or ${d}`}}(a.length>0||i.length>0)&&(n+=" or ")}if(a.length>0){switch(a.length){case 1:n+=`an instance of ${a[0]}`;break;case 2:n+=`an instance of ${a[0]} or ${a[1]}`;break;default:{const d=a.pop();n+=`an instance of ${a.join(", ")}, or ${d}`}}i.length>0&&(n+=" or ")}switch(i.length){case 0:break;case 1:i[0].toLowerCase()!==i[0]&&(n+="an "),n+=`${i[0]}`;break;case 2:n+=`one of ${i[0]} or ${i[1]}`;break;default:{const d=i.pop();n+=`one of ${i.join(", ")}, or ${d}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var l;if((l=r.constructor)!==null&&l!==void 0&&l.name)n+=`. Received an instance of ${r.constructor.name}`;else{const d=Xr(r,{depth:-1});n+=`. Received ${d}`}}else{let d=Xr(r,{colors:!1});d.length>25&&(d=`${d.slice(0,25)}...`),n+=`. Received type ${typeof r} (${d})`}return n},TypeError);ye("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=Xr(t);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);ye("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var n;const o=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${o}.`},TypeError);ye("ERR_MISSING_ARGS",(...e)=>{Ct(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(n=>`"${n}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}break}return`${t} must be specified`},TypeError);ye("ERR_OUT_OF_RANGE",(e,t,r)=>{Ct(t,'Missing "range" argument');let n;return Number.isInteger(r)&&Math.abs(r)>2**32?n=Ya(String(r)):typeof r=="bigint"?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=Ya(n)),n+="n"):n=Xr(r),`The value of "${e}" is out of range. It must be ${t}. Received ${n}`},RangeError);ye("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);ye("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);ye("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);ye("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);ye("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);ye("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ye("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);ye("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);ye("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);ye("ERR_STREAM_WRITE_AFTER_END","write after end",Error);ye("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var ve={AbortError:Qh,aggregateTwoErrors:za(Xh),hideStackFrames:za,codes:Nn};const{ArrayIsArray:Ao,ArrayPrototypeIncludes:Hl,ArrayPrototypeJoin:Kl,ArrayPrototypeMap:Zh,NumberIsInteger:Io,NumberIsNaN:eb,NumberMAX_SAFE_INTEGER:tb,NumberMIN_SAFE_INTEGER:rb,NumberParseInt:nb,ObjectPrototypeHasOwnProperty:ib,RegExpPrototypeExec:Jl,String:ob,StringPrototypeToUpperCase:ab,StringPrototypeTrim:sb}=le,{hideStackFrames:Le,codes:{ERR_SOCKET_BAD_PORT:lb,ERR_INVALID_ARG_TYPE:_e,ERR_INVALID_ARG_VALUE:Xt,ERR_OUT_OF_RANGE:Ot,ERR_UNKNOWN_SIGNAL:Xa}}=ve,{normalizeEncoding:fb}=Ae,{isAsyncFunction:db,isArrayBufferView:ub}=Ae.types,Qa={};function cb(e){return e===(e|0)}function hb(e){return e===e>>>0}const bb=/^[0-7]+$/,pb="must be a 32-bit unsigned integer or an octal string";function yb(e,t,r){if(typeof e>"u"&&(e=r),typeof e=="string"){if(Jl(bb,e)===null)throw new Xt(t,e,pb);e=nb(e,8)}return ql(e,t),e}const gb=Le((e,t,r=rb,n=tb)=>{if(typeof e!="number")throw new _e(t,"number",e);if(!Io(e))throw new Ot(t,"an integer",e);if(en)throw new Ot(t,`>= ${r} && <= ${n}`,e)}),_b=Le((e,t,r=-2147483648,n=2147483647)=>{if(typeof e!="number")throw new _e(t,"number",e);if(!Io(e))throw new Ot(t,"an integer",e);if(en)throw new Ot(t,`>= ${r} && <= ${n}`,e)}),ql=Le((e,t,r=!1)=>{if(typeof e!="number")throw new _e(t,"number",e);if(!Io(e))throw new Ot(t,"an integer",e);const n=r?1:0,o=4294967295;if(eo)throw new Ot(t,`>= ${n} && <= ${o}`,e)});function mo(e,t){if(typeof e!="string")throw new _e(t,"string",e)}function wb(e,t,r=void 0,n){if(typeof e!="number")throw new _e(t,"number",e);if(r!=null&&en||(r!=null||n!=null)&&eb(e))throw new Ot(t,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,e)}const Eb=Le((e,t,r)=>{if(!Hl(r,e)){const o="must be one of: "+Kl(Zh(r,a=>typeof a=="string"?`'${a}'`:ob(a)),", ");throw new Xt(t,e,o)}});function Yl(e,t){if(typeof e!="boolean")throw new _e(t,"boolean",e)}function wi(e,t,r){return e==null||!ib(e,t)?r:e[t]}const Sb=Le((e,t,r=null)=>{const n=wi(r,"allowArray",!1),o=wi(r,"allowFunction",!1);if(!wi(r,"nullable",!1)&&e===null||!n&&Ao(e)||typeof e!="object"&&(!o||typeof e!="function"))throw new _e(t,"Object",e)}),Rb=Le((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new _e(t,"a dictionary",e)}),On=Le((e,t,r=0)=>{if(!Ao(e))throw new _e(t,"Array",e);if(e.length{if(!ub(e))throw new _e(t,["Buffer","TypedArray","DataView"],e)});function Cb(e,t){const r=fb(t),n=e.length;if(r==="hex"&&n%2!==0)throw new Xt("encoding",t,`is invalid for data of length ${n}`)}function Nb(e,t="Port",r=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&sb(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new lb(t,e,r);return e|0}const zl=Le((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new _e(t,"AbortSignal",e)}),Ob=Le((e,t)=>{if(typeof e!="function")throw new _e(t,"Function",e)}),$b=Le((e,t)=>{if(typeof e!="function"||db(e))throw new _e(t,"Function",e)}),xb=Le((e,t)=>{if(e!==void 0)throw new _e(t,"undefined",e)});function Db(e,t,r){if(!Hl(r,e))throw new _e(t,`('${Kl(r,"|")}')`,e)}const Lb=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Za(e,t){if(typeof e>"u"||!Jl(Lb,e))throw new Xt(t,e,'must be an array or string of format "; rel=preload; as=style"')}function Pb(e){if(typeof e=="string")return Za(e,"hints"),e;if(Ao(e)){const t=e.length;let r="";if(t===0)return r;for(let n=0;n; rel=preload; as=style"')}var vr={isInt32:cb,isUint32:hb,parseFileMode:yb,validateArray:On,validateStringArray:Ab,validateBooleanArray:Ib,validateAbortSignalArray:mb,validateBoolean:Yl,validateBuffer:Tb,validateDictionary:Rb,validateEncoding:Cb,validateFunction:Ob,validateInt32:_b,validateInteger:gb,validateNumber:wb,validateObject:Sb,validateOneOf:Eb,validatePlainFunction:$b,validatePort:Nb,validateSignalName:vb,validateString:mo,validateUint32:ql,validateUndefined:xb,validateUnion:Db,validateAbortSignal:zl,validateLinkHeaderValue:Pb},vo={exports:{}};const{SymbolAsyncIterator:es,SymbolIterator:ts,SymbolFor:Pt}=le,Xl=Pt("nodejs.stream.destroyed"),Ql=Pt("nodejs.stream.errored"),qi=Pt("nodejs.stream.readable"),Yi=Pt("nodejs.stream.writable"),Zl=Pt("nodejs.stream.disturbed"),kb=Pt("nodejs.webstream.isClosedPromise"),Mb=Pt("nodejs.webstream.controllerErrorFunction");function $n(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function xn(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function Vb(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function qe(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function ef(e){return!!(e&&!qe(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function tf(e){return!!(e&&!qe(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function rf(e){return!!(e&&!qe(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function jb(e){return ef(e)||tf(e)||rf(e)}function Fb(e,t){return e==null?!1:t===!0?typeof e[es]=="function":t===!1?typeof e[ts]=="function":typeof e[es]=="function"||typeof e[ts]=="function"}function Dn(e){if(!qe(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!!(e.destroyed||e[Xl]||n!=null&&n.destroyed)}function nf(e){if(!xn(e))return null;if(e.writableEnded===!0)return!0;const t=e._writableState;return t!=null&&t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function Ub(e,t){if(!xn(e))return null;if(e.writableFinished===!0)return!0;const r=e._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||t===!1&&r.ended===!0&&r.length===0)}function Wb(e){if(!$n(e))return null;if(e.readableEnded===!0)return!0;const t=e._readableState;return!t||t.errored?!1:typeof(t==null?void 0:t.ended)!="boolean"?null:t.ended}function of(e,t){if(!$n(e))return null;const r=e._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0)}function af(e){return e&&e[qi]!=null?e[qi]:typeof(e==null?void 0:e.readable)!="boolean"?null:Dn(e)?!1:$n(e)&&e.readable&&!of(e)}function sf(e){return e&&e[Yi]!=null?e[Yi]:typeof(e==null?void 0:e.writable)!="boolean"?null:Dn(e)?!1:xn(e)&&e.writable&&!nf(e)}function Bb(e,t){return qe(e)?Dn(e)?!0:!((t==null?void 0:t.readable)!==!1&&af(e)||(t==null?void 0:t.writable)!==!1&&sf(e)):null}function Gb(e){var t,r;return qe(e)?e.writableErrored?e.writableErrored:(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function Hb(e){var t,r;return qe(e)?e.readableErrored?e.readableErrored:(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null:null}function Kb(e){if(!qe(e))return null;if(typeof e.closed=="boolean")return e.closed;const t=e._writableState,r=e._readableState;return typeof(t==null?void 0:t.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(t==null?void 0:t.closed)||(r==null?void 0:r.closed):typeof e._closed=="boolean"&&lf(e)?e._closed:null}function lf(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function ff(e){return typeof e._sent100=="boolean"&&lf(e)}function Jb(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function qb(e){if(!qe(e))return null;const t=e._writableState,r=e._readableState,n=t||r;return!n&&ff(e)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===!1)}function Yb(e){var t;return!!(e&&((t=e[Zl])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function zb(e){var t,r,n,o,a,i,l,d,u,h;return!!(e&&((t=(r=(n=(o=(a=(i=e[Ql])!==null&&i!==void 0?i:e.readableErrored)!==null&&a!==void 0?a:e.writableErrored)!==null&&o!==void 0?o:(l=e._readableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&n!==void 0?n:(d=e._writableState)===null||d===void 0?void 0:d.errorEmitted)!==null&&r!==void 0?r:(u=e._readableState)===null||u===void 0?void 0:u.errored)!==null&&t!==void 0?t:!((h=e._writableState)===null||h===void 0)&&h.errored))}var ot={isDestroyed:Dn,kIsDestroyed:Xl,isDisturbed:Yb,kIsDisturbed:Zl,isErrored:zb,kIsErrored:Ql,isReadable:af,kIsReadable:qi,kIsClosedPromise:kb,kControllerErrorFunction:Mb,kIsWritable:Yi,isClosed:Kb,isDuplexNodeStream:Vb,isFinished:Bb,isIterable:Fb,isReadableNodeStream:$n,isReadableStream:ef,isReadableEnded:Wb,isReadableFinished:of,isReadableErrored:Hb,isNodeStream:qe,isWebStream:jb,isWritable:sf,isWritableNodeStream:xn,isWritableStream:tf,isWritableEnded:nf,isWritableFinished:Ub,isWritableErrored:Gb,isServerRequest:Jb,isServerResponse:ff,willEmitClose:qb,isTransformStream:rf};const lt=Ie,{AbortError:df,codes:Xb}=ve,{ERR_INVALID_ARG_TYPE:Qb,ERR_STREAM_PREMATURE_CLOSE:rs}=Xb,{kEmptyObject:zi,once:Xi}=Ae,{validateAbortSignal:Zb,validateFunction:ep,validateObject:tp,validateBoolean:rp}=vr,{Promise:np,PromisePrototypeThen:ip,SymbolDispose:uf}=le,{isClosed:op,isReadable:ns,isReadableNodeStream:Ei,isReadableStream:ap,isReadableFinished:is,isReadableErrored:os,isWritable:as,isWritableNodeStream:ss,isWritableStream:sp,isWritableFinished:ls,isWritableErrored:fs,isNodeStream:lp,willEmitClose:fp,kIsClosedPromise:dp}=ot;let Gt;function up(e){return e.setHeader&&typeof e.abort=="function"}const Qi=()=>{};function cf(e,t,r){var n,o;if(arguments.length===2?(r=t,t=zi):t==null?t=zi:tp(t,"options"),ep(r,"callback"),Zb(t.signal,"options.signal"),r=Xi(r),ap(e)||sp(e))return cp(e,t,r);if(!lp(e))throw new Qb("stream",["ReadableStream","WritableStream","Stream"],e);const a=(n=t.readable)!==null&&n!==void 0?n:Ei(e),i=(o=t.writable)!==null&&o!==void 0?o:ss(e),l=e._writableState,d=e._readableState,u=()=>{e.writable||b()};let h=fp(e)&&Ei(e)===a&&ss(e)===i,_=ls(e,!1);const b=()=>{_=!0,e.destroyed&&(h=!1),!(h&&(!e.readable||a))&&(!a||c)&&r.call(e)};let c=is(e,!1);const E=()=>{c=!0,e.destroyed&&(h=!1),!(h&&(!e.writable||i))&&(!i||_)&&r.call(e)},g=v=>{r.call(e,v)};let S=op(e);const T=()=>{S=!0;const v=fs(e)||os(e);if(v&&typeof v!="boolean")return r.call(e,v);if(a&&!c&&Ei(e,!0)&&!is(e,!1))return r.call(e,new rs);if(i&&!_&&!ls(e,!1))return r.call(e,new rs);r.call(e)},$=()=>{S=!0;const v=fs(e)||os(e);if(v&&typeof v!="boolean")return r.call(e,v);r.call(e)},w=()=>{e.req.on("finish",b)};up(e)?(e.on("complete",b),h||e.on("abort",T),e.req?w():e.on("request",w)):i&&!l&&(e.on("end",u),e.on("close",u)),!h&&typeof e.aborted=="boolean"&&e.on("aborted",T),e.on("end",E),e.on("finish",b),t.error!==!1&&e.on("error",g),e.on("close",T),S?lt.nextTick(T):l!=null&&l.errorEmitted||d!=null&&d.errorEmitted?h||lt.nextTick($):(!a&&(!h||ns(e))&&(_||as(e)===!1)||!i&&(!h||as(e))&&(c||ns(e)===!1)||d&&e.req&&e.aborted)&<.nextTick($);const B=()=>{r=Qi,e.removeListener("aborted",T),e.removeListener("complete",b),e.removeListener("abort",T),e.removeListener("request",w),e.req&&e.req.removeListener("finish",b),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",b),e.removeListener("end",E),e.removeListener("error",g),e.removeListener("close",T)};if(t.signal&&!S){const v=()=>{const x=r;B(),x.call(e,new df(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)lt.nextTick(v);else{Gt=Gt||Ae.addAbortListener;const x=Gt(t.signal,v),U=r;r=Xi((...F)=>{x[uf](),U.apply(e,F)})}}return B}function cp(e,t,r){let n=!1,o=Qi;if(t.signal)if(o=()=>{n=!0,r.call(e,new df(void 0,{cause:t.signal.reason}))},t.signal.aborted)lt.nextTick(o);else{Gt=Gt||Ae.addAbortListener;const i=Gt(t.signal,o),l=r;r=Xi((...d)=>{i[uf](),l.apply(e,d)})}const a=(...i)=>{n||lt.nextTick(()=>r.apply(e,i))};return ip(e[dp].promise,a,a),Qi}function hp(e,t){var r;let n=!1;return t===null&&(t=zi),(r=t)!==null&&r!==void 0&&r.cleanup&&(rp(t.cleanup,"cleanup"),n=t.cleanup),new np((o,a)=>{const i=cf(e,t,l=>{n&&i(),l?a(l):o()})})}vo.exports=cf;vo.exports.finished=hp;var bt=vo.exports;const Be=Ie,{aggregateTwoErrors:bp,codes:{ERR_MULTIPLE_CALLBACK:pp},AbortError:yp}=ve,{Symbol:hf}=le,{kIsDestroyed:gp,isDestroyed:_p,isFinished:wp,isServerRequest:Ep}=ot,bf=hf("kDestroy"),Zi=hf("kConstruct");function pf(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function Sp(e,t){const r=this._readableState,n=this._writableState,o=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof t=="function"&&t(),this):(pf(e,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),o.constructed?ds(this,e,t):this.once(bf,function(a){ds(this,bp(a,e),t)}),this)}function ds(e,t,r){let n=!1;function o(a){if(n)return;n=!0;const i=e._readableState,l=e._writableState;pf(a,l,i),l&&(l.closed=!0),i&&(i.closed=!0),typeof r=="function"&&r(a),a?Be.nextTick(Rp,e,a):Be.nextTick(yf,e)}try{e._destroy(t||null,o)}catch(a){o(a)}}function Rp(e,t){eo(e,t),yf(e)}function yf(e){const t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!=null&&r.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function eo(e,t){const r=e._readableState,n=e._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function Ap(){const e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function to(e,t,r){const n=e._readableState,o=e._writableState;if(o!=null&&o.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||o!=null&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),n&&!n.errored&&(n.errored=t),r?Be.nextTick(eo,e,t):eo(e,t))}function Ip(e,t){if(typeof e._construct!="function")return;const r=e._readableState,n=e._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),e.once(Zi,t),!(e.listenerCount(Zi)>1)&&Be.nextTick(mp,e)}function mp(e){let t=!1;function r(n){if(t){to(e,n??new pp);return}t=!0;const o=e._readableState,a=e._writableState,i=a||o;o&&(o.constructed=!0),a&&(a.constructed=!0),i.destroyed?e.emit(bf,n):n?to(e,n,!0):Be.nextTick(vp,e)}try{e._construct(n=>{Be.nextTick(r,n)})}catch(n){Be.nextTick(r,n)}}function vp(e){e.emit(Zi)}function us(e){return(e==null?void 0:e.setHeader)&&typeof e.abort=="function"}function gf(e){e.emit("close")}function Tp(e,t){e.emit("error",t),Be.nextTick(gf,e)}function Cp(e,t){!e||_p(e)||(!t&&!wp(e)&&(t=new yp),Ep(e)?(e.socket=null,e.destroy(t)):us(e)?e.abort():us(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?Be.nextTick(Tp,e,t):Be.nextTick(gf,e),e.destroyed||(e[gp]=!0))}var Qt={construct:Ip,destroyer:Cp,destroy:Sp,undestroy:Ap,errorOrDestroy:to};const{ArrayIsArray:Np,ObjectSetPrototypeOf:_f}=le,{EventEmitter:Ln}=ct;function Pn(e){Ln.call(this,e)}_f(Pn.prototype,Ln.prototype);_f(Pn,Ln);Pn.prototype.pipe=function(e,t){const r=this;function n(h){e.writable&&e.write(h)===!1&&r.pause&&r.pause()}r.on("data",n);function o(){r.readable&&r.resume&&r.resume()}e.on("drain",o),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",i),r.on("close",l));let a=!1;function i(){a||(a=!0,e.end())}function l(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function d(h){u(),Ln.listenerCount(this,"error")===0&&this.emit("error",h)}ro(r,"error",d),ro(e,"error",d);function u(){r.removeListener("data",n),e.removeListener("drain",o),r.removeListener("end",i),r.removeListener("close",l),r.removeListener("error",d),e.removeListener("error",d),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e};function ro(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Np(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}var To={Stream:Pn,prependListener:ro},wf={exports:{}};(function(e){const{SymbolDispose:t}=le,{AbortError:r,codes:n}=ve,{isNodeStream:o,isWebStream:a,kControllerErrorFunction:i}=ot,l=bt,{ERR_INVALID_ARG_TYPE:d}=n;let u;const h=(_,b)=>{if(typeof _!="object"||!("aborted"in _))throw new d(b,"AbortSignal",_)};e.exports.addAbortSignal=function(b,c){if(h(b,"signal"),!o(c)&&!a(c))throw new d("stream",["ReadableStream","WritableStream","Stream"],c);return e.exports.addAbortSignalNoValidate(b,c)},e.exports.addAbortSignalNoValidate=function(_,b){if(typeof _!="object"||!("aborted"in _))return b;const c=o(b)?()=>{b.destroy(new r(void 0,{cause:_.reason}))}:()=>{b[i](new r(void 0,{cause:_.reason}))};if(_.aborted)c();else{u=u||Ae.addAbortListener;const E=u(_,c);l(b,E[t])}return b}})(wf);var kn=wf.exports;const{StringPrototypeSlice:cs,SymbolIterator:Op,TypedArrayPrototypeSet:Mr,Uint8Array:$p}=le,{Buffer:Si}=be,{inspect:xp}=Ae;var Dp=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(t){const r={data:t,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=t+r.data;return n}concat(t){if(this.length===0)return Si.alloc(0);const r=Si.allocUnsafe(t>>>0);let n=this.head,o=0;for(;n;)Mr(r,n.data,o),o+=n.data.length,n=n.next;return r}consume(t,r){const n=this.head.data;if(ta.length)r+=a,t-=a.length;else{t===a.length?(r+=a,++o,n.next?this.head=n.next:this.head=this.tail=null):(r+=cs(a,0,t),this.head=n,n.data=cs(a,t));break}++o}while((n=n.next)!==null);return this.length-=o,r}_getBuffer(t){const r=Si.allocUnsafe(t),n=t;let o=this.head,a=0;do{const i=o.data;if(t>i.length)Mr(r,i,n-t),t-=i.length;else{t===i.length?(Mr(r,i,n-t),++a,o.next?this.head=o.next:this.head=this.tail=null):(Mr(r,new $p(i.buffer,i.byteOffset,t),n-t),this.head=o,o.data=i.slice(t));break}++a}while((o=o.next)!==null);return this.length-=a,r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return xp(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:Lp,NumberIsInteger:Pp}=le,{validateInteger:kp}=vr,{ERR_INVALID_ARG_VALUE:Mp}=ve.codes;let Ef=16*1024,Sf=16;function Vp(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Rf(e){return e?Sf:Ef}function jp(e,t){kp(t,"value",0),e?Sf=t:Ef=t}function Fp(e,t,r,n){const o=Vp(t,n,r);if(o!=null){if(!Pp(o)||o<0){const a=n?`options.${r}`:"options.highWaterMark";throw new Mp(a,o)}return Lp(o)}return Rf(e.objectMode)}var Mn={getHighWaterMark:Fp,getDefaultHighWaterMark:Rf,setDefaultHighWaterMark:jp};const hs=Ie,{PromisePrototypeThen:Up,SymbolAsyncIterator:bs,SymbolIterator:ps}=le,{Buffer:Wp}=be,{ERR_INVALID_ARG_TYPE:Bp,ERR_STREAM_NULL_VALUES:Gp}=ve.codes;function Hp(e,t,r){let n;if(typeof t=="string"||t instanceof Wp)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});let o;if(t&&t[bs])o=!0,n=t[bs]();else if(t&&t[ps])o=!1,n=t[ps]();else throw new Bp("iterable",["Iterable"],t);const a=new e({objectMode:!0,highWaterMark:1,...r});let i=!1;a._read=function(){i||(i=!0,d())},a._destroy=function(u,h){Up(l(u),()=>hs.nextTick(h,u),_=>hs.nextTick(h,_||u))};async function l(u){const h=u!=null,_=typeof n.throw=="function";if(h&&_){const{value:b,done:c}=await n.throw(u);if(await b,c)return}if(typeof n.return=="function"){const{value:b}=await n.return();await b}}async function d(){for(;;){try{const{value:u,done:h}=o?await n.next():n.next();if(h)a.push(null);else{const _=u&&typeof u.then=="function"?await u:u;if(_===null)throw i=!1,new Gp;if(a.push(_))continue;i=!1}}catch(u){a.destroy(u)}break}}return a}var Af=Hp,Ri,ys;function Vn(){if(ys)return Ri;ys=1;const e=Ie,{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:n,NumberParseInt:o,ObjectDefineProperties:a,ObjectKeys:i,ObjectSetPrototypeOf:l,Promise:d,SafeSet:u,SymbolAsyncDispose:h,SymbolAsyncIterator:_,Symbol:b}=le;Ri=P,P.ReadableState=ue;const{EventEmitter:c}=ct,{Stream:E,prependListener:g}=To,{Buffer:S}=be,{addAbortSignal:T}=kn,$=bt;let w=Ae.debuglog("stream",s=>{w=s});const B=Dp,v=Qt,{getHighWaterMark:x,getDefaultHighWaterMark:U}=Mn,{aggregateTwoErrors:F,codes:{ERR_INVALID_ARG_TYPE:W,ERR_METHOD_NOT_IMPLEMENTED:ee,ERR_OUT_OF_RANGE:J,ERR_STREAM_PUSH_AFTER_EOF:k,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:R},AbortError:V}=ve,{validateObject:M}=vr,j=b("kPaused"),{StringDecoder:X}=ks,Q=Af;l(P.prototype,E.prototype),l(P,E);const z=()=>{},{errorOrDestroy:Z}=v,G=1,de=2,L=4,te=8,fe=16,Te=32,Ce=64,Ne=128,Pe=256,pt=512,ke=1024,Oe=2048,p=4096,y=8192,A=16384,N=32768,O=65536,K=1<<17,Y=1<<18;function H(s){return{enumerable:!1,get(){return(this.state&s)!==0},set(f){f?this.state|=s:this.state&=~s}}}a(ue.prototype,{objectMode:H(G),ended:H(de),endEmitted:H(L),reading:H(te),constructed:H(fe),sync:H(Te),needReadable:H(Ce),emittedReadable:H(Ne),readableListening:H(Pe),resumeScheduled:H(pt),errorEmitted:H(ke),emitClose:H(Oe),autoDestroy:H(p),destroyed:H(y),closed:H(A),closeEmitted:H(N),multiAwaitDrain:H(O),readingMore:H(K),dataEmitted:H(Y)});function ue(s,f,I){typeof I!="boolean"&&(I=f instanceof rt()),this.state=Oe|p|fe|Te,s&&s.objectMode&&(this.state|=G),I&&s&&s.readableObjectMode&&(this.state|=G),this.highWaterMark=s?x(this,s,"readableHighWaterMark",I):U(!1),this.buffer=new B,this.length=0,this.pipes=[],this.flowing=null,this[j]=null,s&&s.emitClose===!1&&(this.state&=~Oe),s&&s.autoDestroy===!1&&(this.state&=~p),this.errored=null,this.defaultEncoding=s&&s.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,s&&s.encoding&&(this.decoder=new X(s.encoding),this.encoding=s.encoding)}function P(s){if(!(this instanceof P))return new P(s);const f=this instanceof rt();this._readableState=new ue(s,this,f),s&&(typeof s.read=="function"&&(this._read=s.read),typeof s.destroy=="function"&&(this._destroy=s.destroy),typeof s.construct=="function"&&(this._construct=s.construct),s.signal&&!f&&T(s.signal,this)),E.call(this,s),v.construct(this,()=>{this._readableState.needReadable&&ze(this,this._readableState)})}P.prototype.destroy=v.destroy,P.prototype._undestroy=v.undestroy,P.prototype._destroy=function(s,f){f(s)},P.prototype[c.captureRejectionSymbol]=function(s){this.destroy(s)},P.prototype[h]=function(){let s;return this.destroyed||(s=this.readableEnded?null:new V,this.destroy(s)),new d((f,I)=>$(this,m=>m&&m!==s?I(m):f(null)))},P.prototype.push=function(s,f){return he(this,s,f,!1)},P.prototype.unshift=function(s,f){return he(this,s,f,!0)};function he(s,f,I,m){w("readableAddChunk",f);const C=s._readableState;let ne;if(C.state&G||(typeof f=="string"?(I=I||C.defaultEncoding,C.encoding!==I&&(m&&C.encoding?f=S.from(f,I).toString(C.encoding):(f=S.from(f,I),I=""))):f instanceof S?I="":E._isUint8Array(f)?(f=E._uint8ArrayToBuffer(f),I=""):f!=null&&(ne=new W("chunk",["string","Buffer","Uint8Array"],f))),ne)Z(s,ne);else if(f===null)C.state&=~te,Wn(s,C);else if(C.state&G||f&&f.length>0)if(m)if(C.state&L)Z(s,new R);else{if(C.destroyed||C.errored)return!1;yt(s,C,f,!0)}else if(C.ended)Z(s,new k);else{if(C.destroyed||C.errored)return!1;C.state&=~te,C.decoder&&!I?(f=C.decoder.write(f),C.objectMode||f.length!==0?yt(s,C,f,!1):ze(s,C)):yt(s,C,f,!1)}else m||(C.state&=~te,ze(s,C));return!C.ended&&(C.length0?(f.state&O?f.awaitDrainWriters.clear():f.awaitDrainWriters=null,f.dataEmitted=!0,s.emit("data",I)):(f.length+=f.objectMode?1:I.length,m?f.buffer.unshift(I):f.buffer.push(I),f.state&Ce&&Ye(s)),ze(s,f)}P.prototype.isPaused=function(){const s=this._readableState;return s[j]===!0||s.flowing===!1},P.prototype.setEncoding=function(s){const f=new X(s);this._readableState.decoder=f,this._readableState.encoding=this._readableState.decoder.encoding;const I=this._readableState.buffer;let m="";for(const C of I)m+=f.write(C);return I.clear(),m!==""&&I.push(m),this._readableState.length=m.length,this};const Fn=1073741824;function Un(s){if(s>Fn)throw new J("size","<= 1GiB",s);return s--,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s++,s}function Zt(s,f){return s<=0||f.length===0&&f.ended?0:f.state&G?1:n(s)?f.flowing&&f.length?f.buffer.first().length:f.length:s<=f.length?s:f.ended?f.length:0}P.prototype.read=function(s){w("read",s),s===void 0?s=NaN:r(s)||(s=o(s,10));const f=this._readableState,I=s;if(s>f.highWaterMark&&(f.highWaterMark=Un(s)),s!==0&&(f.state&=~Ne),s===0&&f.needReadable&&((f.highWaterMark!==0?f.length>=f.highWaterMark:f.length>0)||f.ended))return w("read: emitReadable",f.length,f.ended),f.length===0&&f.ended?gt(this):Ye(this),null;if(s=Zt(s,f),s===0&&f.ended)return f.length===0&>(this),null;let m=(f.state&Ce)!==0;if(w("need readable",m),(f.length===0||f.length-s0?C=ir(s,f):C=null,C===null?(f.needReadable=f.length<=f.highWaterMark,s=0):(f.length-=s,f.multiAwaitDrain?f.awaitDrainWriters.clear():f.awaitDrainWriters=null),f.length===0&&(f.ended||(f.needReadable=!0),I!==s&&f.ended&>(this)),C!==null&&!f.errorEmitted&&!f.closeEmitted&&(f.dataEmitted=!0,this.emit("data",C)),C};function Wn(s,f){if(w("onEofChunk"),!f.ended){if(f.decoder){const I=f.decoder.end();I&&I.length&&(f.buffer.push(I),f.length+=f.objectMode?1:I.length)}f.ended=!0,f.sync?Ye(s):(f.needReadable=!1,f.emittedReadable=!0,er(s))}}function Ye(s){const f=s._readableState;w("emitReadable",f.needReadable,f.emittedReadable),f.needReadable=!1,f.emittedReadable||(w("emitReadable",f.flowing),f.emittedReadable=!0,e.nextTick(er,s))}function er(s){const f=s._readableState;w("emitReadable_",f.destroyed,f.length,f.ended),!f.destroyed&&!f.errored&&(f.length||f.ended)&&(s.emit("readable"),f.emittedReadable=!1),f.needReadable=!f.flowing&&!f.ended&&f.length<=f.highWaterMark,rr(s)}function ze(s,f){!f.readingMore&&f.constructed&&(f.readingMore=!0,e.nextTick(Bn,s,f))}function Bn(s,f){for(;!f.reading&&!f.ended&&(f.length1&&m.pipes.includes(s)&&(w("false write response, pause",m.awaitDrainWriters.size),m.awaitDrainWriters.add(s)),I.pause()),we||(we=Gn(I,s),s.on("drain",we))}I.on("data",fr);function fr(Ee){w("ondata");const ce=s.write(Ee);w("dest.write",ce),ce===!1&&lr()}function wt(Ee){if(w("onerror",Ee),Me(),s.removeListener("error",wt),s.listenerCount("error")===0){const ce=s._writableState||s._readableState;ce&&!ce.errorEmitted?Z(s,Ee):s.emit("error",Ee)}}g(s,"error",wt);function Et(){s.removeListener("finish",St),Me()}s.once("close",Et);function St(){w("onfinish"),s.removeListener("close",Et),Me()}s.once("finish",St);function Me(){w("unpipe"),I.unpipe(s)}return s.emit("pipe",I),s.writableNeedDrain===!0?lr():m.flowing||(w("pipe resume"),I.resume()),s};function Gn(s,f){return function(){const m=s._readableState;m.awaitDrainWriters===f?(w("pipeOnDrain",1),m.awaitDrainWriters=null):m.multiAwaitDrain&&(w("pipeOnDrain",m.awaitDrainWriters.size),m.awaitDrainWriters.delete(f)),(!m.awaitDrainWriters||m.awaitDrainWriters.size===0)&&s.listenerCount("data")&&s.resume()}}P.prototype.unpipe=function(s){const f=this._readableState,I={hasUnpiped:!1};if(f.pipes.length===0)return this;if(!s){const C=f.pipes;f.pipes=[],this.pause();for(let ne=0;ne0,m.flowing!==!1&&this.resume()):s==="readable"&&!m.endEmitted&&!m.readableListening&&(m.readableListening=m.needReadable=!0,m.flowing=!1,m.emittedReadable=!1,w("on readable",m.length,m.reading),m.length?Ye(this):m.reading||e.nextTick(Hn,this)),I},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(s,f){const I=E.prototype.removeListener.call(this,s,f);return s==="readable"&&e.nextTick(tr,this),I},P.prototype.off=P.prototype.removeListener,P.prototype.removeAllListeners=function(s){const f=E.prototype.removeAllListeners.apply(this,arguments);return(s==="readable"||s===void 0)&&e.nextTick(tr,this),f};function tr(s){const f=s._readableState;f.readableListening=s.listenerCount("readable")>0,f.resumeScheduled&&f[j]===!1?f.flowing=!0:s.listenerCount("data")>0?s.resume():f.readableListening||(f.flowing=null)}function Hn(s){w("readable nexttick read 0"),s.read(0)}P.prototype.resume=function(){const s=this._readableState;return s.flowing||(w("resume"),s.flowing=!s.readableListening,Kn(this,s)),s[j]=!1,this};function Kn(s,f){f.resumeScheduled||(f.resumeScheduled=!0,e.nextTick(Jn,s,f))}function Jn(s,f){w("resume",f.reading),f.reading||s.read(0),f.resumeScheduled=!1,s.emit("resume"),rr(s),f.flowing&&!f.reading&&s.read(0)}P.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[j]=!0,this};function rr(s){const f=s._readableState;for(w("flow",f.flowing);f.flowing&&s.read()!==null;);}P.prototype.wrap=function(s){let f=!1;s.on("data",m=>{!this.push(m)&&s.pause&&(f=!0,s.pause())}),s.on("end",()=>{this.push(null)}),s.on("error",m=>{Z(this,m)}),s.on("close",()=>{this.destroy()}),s.on("destroy",()=>{this.destroy()}),this._read=()=>{f&&s.resume&&(f=!1,s.resume())};const I=i(s);for(let m=1;m{C=oe?F(C,oe):null,I(),I=z});try{for(;;){const oe=s.destroyed?null:s.read();if(oe!==null)yield oe;else{if(C)throw C;if(C===null)return;await new d(m)}}}catch(oe){throw C=F(C,oe),C}finally{(C||(f==null?void 0:f.destroyOnReturn)!==!1)&&(C===void 0||s._readableState.autoDestroy)?v.destroyer(s,null):(s.off("readable",m),ne())}}a(P.prototype,{readable:{__proto__:null,get(){const s=this._readableState;return!!s&&s.readable!==!1&&!s.destroyed&&!s.errorEmitted&&!s.endEmitted},set(s){this._readableState&&(this._readableState.readable=!!s)}},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(s){this._readableState&&(this._readableState.flowing=s)}},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(s){this._readableState&&(this._readableState.destroyed=s)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),a(ue.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[j]!==!1},set(s){this[j]=!!s}}}),P._fromList=ir;function ir(s,f){if(f.length===0)return null;let I;return f.objectMode?I=f.buffer.shift():!s||s>=f.length?(f.decoder?I=f.buffer.join(""):f.buffer.length===1?I=f.buffer.first():I=f.buffer.concat(f.length),f.buffer.clear()):I=f.buffer.consume(s,f.decoder),I}function gt(s){const f=s._readableState;w("endReadable",f.endEmitted),f.endEmitted||(f.ended=!0,e.nextTick(Yn,f,s))}function Yn(s,f){if(w("endReadableNT",s.endEmitted,s.length),!s.errored&&!s.closeEmitted&&!s.endEmitted&&s.length===0){if(s.endEmitted=!0,f.emit("end"),f.writable&&f.allowHalfOpen===!1)e.nextTick(zn,f);else if(s.autoDestroy){const I=f._writableState;(!I||I.autoDestroy&&(I.finished||I.writable===!1))&&f.destroy()}}}function zn(s){s.writable&&!s.writableEnded&&!s.destroyed&&s.end()}P.from=function(s,f){return Q(P,s,f)};let _t;function or(){return _t===void 0&&(_t={}),_t}return P.fromWeb=function(s,f){return or().newStreamReadableFromReadableStream(s,f)},P.toWeb=function(s,f){return or().newReadableStreamFromStreamReadable(s,f)},P.wrap=function(s,f){var I,m;return new P({objectMode:(I=(m=s.readableObjectMode)!==null&&m!==void 0?m:s.objectMode)!==null&&I!==void 0?I:!0,...f,destroy(C,ne){v.destroyer(s,C),ne(C)}}).wrap(s)},Ri}var Ai,gs;function Co(){if(gs)return Ai;gs=1;const e=Ie,{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:o,ObjectDefineProperties:a,ObjectSetPrototypeOf:i,StringPrototypeToLowerCase:l,Symbol:d,SymbolHasInstance:u}=le;Ai=M,M.WritableState=R;const{EventEmitter:h}=ct,_=To.Stream,{Buffer:b}=be,c=Qt,{addAbortSignal:E}=kn,{getHighWaterMark:g,getDefaultHighWaterMark:S}=Mn,{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:$,ERR_MULTIPLE_CALLBACK:w,ERR_STREAM_CANNOT_PIPE:B,ERR_STREAM_DESTROYED:v,ERR_STREAM_ALREADY_FINISHED:x,ERR_STREAM_NULL_VALUES:U,ERR_STREAM_WRITE_AFTER_END:F,ERR_UNKNOWN_ENCODING:W}=ve.codes,{errorOrDestroy:ee}=c;i(M.prototype,_.prototype),i(M,_);function J(){}const k=d("kOnFinished");function R(p,y,A){typeof A!="boolean"&&(A=y instanceof rt()),this.objectMode=!!(p&&p.objectMode),A&&(this.objectMode=this.objectMode||!!(p&&p.writableObjectMode)),this.highWaterMark=p?g(this,p,"writableHighWaterMark",A):S(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const N=!!(p&&p.decodeStrings===!1);this.decodeStrings=!N,this.defaultEncoding=p&&p.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Z.bind(void 0,y),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,V(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!p||p.emitClose!==!1,this.autoDestroy=!p||p.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[k]=[]}function V(p){p.buffered=[],p.bufferedIndex=0,p.allBuffers=!0,p.allNoop=!0}R.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},o(R.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function M(p){const y=this instanceof rt();if(!y&&!n(M,this))return new M(p);this._writableState=new R(p,this,y),p&&(typeof p.write=="function"&&(this._write=p.write),typeof p.writev=="function"&&(this._writev=p.writev),typeof p.destroy=="function"&&(this._destroy=p.destroy),typeof p.final=="function"&&(this._final=p.final),typeof p.construct=="function"&&(this._construct=p.construct),p.signal&&E(p.signal,this)),_.call(this,p),c.construct(this,()=>{const A=this._writableState;A.writing||te(this,A),Ne(this,A)})}o(M,u,{__proto__:null,value:function(p){return n(this,p)?!0:this!==M?!1:p&&p._writableState instanceof R}}),M.prototype.pipe=function(){ee(this,new B)};function j(p,y,A,N){const O=p._writableState;if(typeof A=="function")N=A,A=O.defaultEncoding;else{if(!A)A=O.defaultEncoding;else if(A!=="buffer"&&!b.isEncoding(A))throw new W(A);typeof N!="function"&&(N=J)}if(y===null)throw new U;if(!O.objectMode)if(typeof y=="string")O.decodeStrings!==!1&&(y=b.from(y,A),A="buffer");else if(y instanceof b)A="buffer";else if(_._isUint8Array(y))y=_._uint8ArrayToBuffer(y),A="buffer";else throw new T("chunk",["string","Buffer","Uint8Array"],y);let K;return O.ending?K=new F:O.destroyed&&(K=new v("write")),K?(e.nextTick(N,K),ee(p,K,!0),K):(O.pendingcb++,X(p,O,y,A,N))}M.prototype.write=function(p,y,A){return j(this,p,y,A)===!0},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){const p=this._writableState;p.corked&&(p.corked--,p.writing||te(this,p))},M.prototype.setDefaultEncoding=function(y){if(typeof y=="string"&&(y=l(y)),!b.isEncoding(y))throw new W(y);return this._writableState.defaultEncoding=y,this};function X(p,y,A,N,O){const K=y.objectMode?1:A.length;y.length+=K;const Y=y.lengthA.bufferedIndex&&te(p,A),N?A.afterWriteTickInfo!==null&&A.afterWriteTickInfo.cb===O?A.afterWriteTickInfo.count++:(A.afterWriteTickInfo={count:1,cb:O,stream:p,state:A},e.nextTick(G,A.afterWriteTickInfo)):de(p,A,1,O))}function G({stream:p,state:y,count:A,cb:N}){return y.afterWriteTickInfo=null,de(p,y,A,N)}function de(p,y,A,N){for(!y.ending&&!p.destroyed&&y.length===0&&y.needDrain&&(y.needDrain=!1,p.emit("drain"));A-- >0;)y.pendingcb--,N();y.destroyed&&L(y),Ne(p,y)}function L(p){if(p.writing)return;for(let O=p.bufferedIndex;O1&&p._writev){y.pendingcb-=K-1;const H=y.allNoop?J:P=>{for(let he=Y;he256?(A.splice(0,Y),y.bufferedIndex=0):y.bufferedIndex=Y}y.bufferProcessing=!1}M.prototype._write=function(p,y,A){if(this._writev)this._writev([{chunk:p,encoding:y}],A);else throw new $("_write()")},M.prototype._writev=null,M.prototype.end=function(p,y,A){const N=this._writableState;typeof p=="function"?(A=p,p=null,y=null):typeof y=="function"&&(A=y,y=null);let O;if(p!=null){const K=j(this,p,y);K instanceof r&&(O=K)}return N.corked&&(N.corked=1,this.uncork()),O||(!N.errored&&!N.ending?(N.ending=!0,Ne(this,N,!0),N.ended=!0):N.finished?O=new x("end"):N.destroyed&&(O=new v("end"))),typeof A=="function"&&(O||N.finished?e.nextTick(A,O):N[k].push(A)),this};function fe(p){return p.ending&&!p.destroyed&&p.constructed&&p.length===0&&!p.errored&&p.buffered.length===0&&!p.finished&&!p.writing&&!p.errorEmitted&&!p.closeEmitted}function Te(p,y){let A=!1;function N(O){if(A){ee(p,O??w());return}if(A=!0,y.pendingcb--,O){const K=y[k].splice(0);for(let Y=0;Y{fe(O)?Pe(N,O):O.pendingcb--},p,y)):fe(y)&&(y.pendingcb++,Pe(p,y))))}function Pe(p,y){y.pendingcb--,y.finished=!0;const A=y[k].splice(0);for(let N=0;N{if(L!=null)throw new E("nully","body",L)},L=>{g(G,L)});return G=new W({objectMode:!0,readable:!1,write:X,final(L){Q(async()=>{try{await de,e.nextTick(L,null)}catch(te){e.nextTick(L,te)}})},destroy:z})}throw new E("Iterable, AsyncIterable or AsyncFunction",V,j)}if(x(R))return k(R.arrayBuffer());if(o(R))return B(W,R,{objectMode:!0,writable:!1});if(u(R==null?void 0:R.readable)&&h(R==null?void 0:R.writable))return W.fromWeb(R);if(typeof(R==null?void 0:R.writable)=="object"||typeof(R==null?void 0:R.readable)=="object"){const j=R!=null&&R.readable?i(R==null?void 0:R.readable)?R==null?void 0:R.readable:k(R.readable):void 0,X=R!=null&&R.writable?l(R==null?void 0:R.writable)?R==null?void 0:R.writable:k(R.writable):void 0;return J({readable:j,writable:X})}const M=R==null?void 0:R.then;if(typeof M=="function"){let j;return F(M,R,X=>{X!=null&&j.push(X),j.push(null)},X=>{g(j,X)}),j=new W({objectMode:!0,writable:!1,read(){}})}throw new c(V,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],R)};function ee(k){let{promise:R,resolve:V}=w();const M=new U,j=M.signal;return{value:k(async function*(){for(;;){const Q=R;R=null;const{chunk:z,done:Z,cb:G}=await Q;if(e.nextTick(G),Z)return;if(j.aborted)throw new b(void 0,{cause:j.reason});({promise:R,resolve:V}=w()),yield z}}(),{signal:j}),write(Q,z,Z){const G=V;V=null,G({chunk:Q,done:!1,cb:Z})},final(Q){const z=V;V=null,z({done:!0,cb:Q})},destroy(Q,z){M.abort(),z(Q)}}}function J(k){const R=k.readable&&typeof k.readable.read!="function"?T.wrap(k.readable):k.readable,V=k.writable;let M=!!r(R),j=!!n(V),X,Q,z,Z,G;function de(L){const te=Z;Z=null,te?te(L):L&&G.destroy(L)}return G=new W({readableObjectMode:!!(R!=null&&R.readableObjectMode),writableObjectMode:!!(V!=null&&V.writableObjectMode),readable:M,writable:j}),j&&(_(V,L=>{j=!1,L&&g(R,L),de(L)}),G._write=function(L,te,fe){V.write(L,te)?fe():X=fe},G._final=function(L){V.end(),Q=L},V.on("drain",function(){if(X){const L=X;X=null,L()}}),V.on("finish",function(){if(Q){const L=Q;Q=null,L()}})),M&&(_(R,L=>{M=!1,L&&g(R,L),de(L)}),R.on("readable",function(){if(z){const L=z;z=null,L()}}),R.on("end",function(){G.push(null)}),G._read=function(){for(;;){const L=R.read();if(L===null){z=G._read;return}if(!G.push(L))return}}),G._destroy=function(L,te){!L&&Z!==null&&(L=new b),z=null,X=null,Q=null,Z===null?te(L):(Z=te,g(V,L),g(R,L))},G}return Ii}var mi,ws;function rt(){if(ws)return mi;ws=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:n}=le;mi=i;const o=Vn(),a=Co();n(i.prototype,o.prototype),n(i,o);{const h=r(a.prototype);for(let _=0;_{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()}):(this.push(null),e&&e())}function zp(){this._final!==no&&no.call(this)}nt.prototype._final=no;nt.prototype._transform=function(e,t,r){throw new qp("_transform()")};nt.prototype._write=function(e,t,r){const n=this._readableState,o=this._writableState,a=n.length;this._transform(e,t,(i,l)=>{if(i){r(i);return}l!=null&&this.push(l),o.ended||a===n.length||n.length{n=!0});const o=Qr(e,{readable:t,writable:r},a=>{n=!a});return{destroy:a=>{n||(n=!0,ry.destroyer(e,a||new oy("pipe")))},cleanup:o}}function hy(e){return ly(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function xi(e){if(vt(e))return e;if(Hr(e))return by(e);throw new io("val",["Readable","Iterable","AsyncIterable"],e)}async function*by(e){Oi||(Oi=Vn()),yield*Oi.prototype[Zp].call(e)}async function Vr(e,t,r,{end:n}){let o,a=null;const i=u=>{if(u&&(o=u),a){const h=a;a=null,h()}},l=()=>new Qp((u,h)=>{o?h(o):a=()=>{o?h(o):u()}});t.on("drain",i);const d=Qr(t,{readable:!1},i);try{t.writableNeedDrain&&await l();for await(const u of e)t.write(u)||await l();n&&(t.end(),await l()),r()}catch(u){r(o!==u?ny(o,u):u)}finally{d(),t.off("drain",i)}}async function Di(e,t,r,{end:n}){Ut(t)&&(t=t.writable);const o=t.getWriter();try{for await(const a of e)await o.ready,o.write(a).catch(()=>{});await o.ready,n&&await o.close(),r()}catch(a){try{await o.abort(a),r(a)}catch(i){r(i)}}}function py(...e){return Cf(e,ty(hy(e)))}function Cf(e,t,r){if(e.length===1&&Xp(e[0])&&(e=e[0]),e.length<2)throw new iy("streams");const n=new cy,o=n.signal,a=r==null?void 0:r.signal,i=[];fy(a,"options.signal");function l(){E(new sy)}$i=$i||Ae.addAbortListener;let d;a&&(d=$i(a,l));let u,h;const _=[];let b=0;function c($){E($,--b===0)}function E($,w){var B;if($&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=$),!(!u&&!w)){for(;_.length;)_.shift()(u);(B=d)===null||B===void 0||B[ey](),n.abort(),w&&(u||i.forEach(v=>v()),wr.nextTick(t,u,h))}}let g;for(let $=0;$0,x=B||(r==null?void 0:r.end)!==!1,U=$===e.length-1;if(Ss(w)){let F=function(W){W&&W.name!=="AbortError"&&W.code!=="ERR_STREAM_PREMATURE_CLOSE"&&c(W)};if(x){const{destroy:W,cleanup:ee}=Rs(w,B,v);_.push(W),Ti(w)&&U&&i.push(ee)}w.on("error",F),Ti(w)&&U&&i.push(()=>{w.removeListener("error",F)})}if($===0)if(typeof w=="function"){if(g=w({signal:o}),!vt(g))throw new vi("Iterable, AsyncIterable or Stream","source",g)}else vt(w)||Hr(w)||Ut(w)?g=w:g=Es.from(w);else if(typeof w=="function"){if(Ut(g)){var S;g=xi((S=g)===null||S===void 0?void 0:S.readable)}else g=xi(g);if(g=w(g,{signal:o}),B){if(!vt(g,!0))throw new vi("AsyncIterable",`transform[${$-1}]`,g)}else{var T;Ni||(Ni=Tf);const F=new Ni({objectMode:!0}),W=(T=g)===null||T===void 0?void 0:T.then;if(typeof W=="function")b++,W.call(g,k=>{h=k,k!=null&&F.write(k),x&&F.end(),wr.nextTick(c)},k=>{F.destroy(k),wr.nextTick(c,k)});else if(vt(g,!0))b++,Vr(g,F,c,{end:x});else if(Ci(g)||Ut(g)){const k=g.readable||g;b++,Vr(k,F,c,{end:x})}else throw new vi("AsyncIterable or Promise","destination",g);g=F;const{destroy:ee,cleanup:J}=Rs(g,!1,!0);_.push(ee),U&&i.push(J)}}else if(Ss(w)){if(Hr(g)){b+=2;const F=yy(g,w,c,{end:x});Ti(w)&&U&&i.push(F)}else if(Ut(g)||Ci(g)){const F=g.readable||g;b++,Vr(F,w,c,{end:x})}else if(vt(g))b++,Vr(g,w,c,{end:x});else throw new io("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=w}else if(dy(w)){if(Hr(g))b++,Di(xi(g),w,c,{end:x});else if(Ci(g)||vt(g))b++,Di(g,w,c,{end:x});else if(Ut(g))b++,Di(g.readable,w,c,{end:x});else throw new io("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=w}else g=Es.from(w)}return(o!=null&&o.aborted||a!=null&&a.aborted)&&wr.nextTick(l),g}function yy(e,t,r,{end:n}){let o=!1;if(t.on("close",()=>{o||r(new ay)}),e.pipe(t,{end:!1}),n){let a=function(){o=!0,t.end()};uy(e)?wr.nextTick(a):e.once("end",a)}else r();return Qr(e,{readable:!0,writable:!1},a=>{const i=e._readableState;a&&a.code==="ERR_STREAM_PREMATURE_CLOSE"&&i&&i.ended&&!i.errored&&!i.errorEmitted?e.once("end",r).once("error",r):r(a)}),Qr(t,{readable:!1,writable:!0},r)}var $o={pipelineImpl:Cf,pipeline:py};const{pipeline:gy}=$o,jr=rt(),{destroyer:_y}=Qt,{isNodeStream:Fr,isReadable:As,isWritable:Is,isWebStream:Li,isTransformStream:At,isWritableStream:ms,isReadableStream:vs}=ot,{AbortError:wy,codes:{ERR_INVALID_ARG_VALUE:Ts,ERR_MISSING_ARGS:Ey}}=ve,Sy=bt;var Nf=function(...t){if(t.length===0)throw new Ey("streams");if(t.length===1)return jr.from(t[0]);const r=[...t];if(typeof t[0]=="function"&&(t[0]=jr.from(t[0])),typeof t[t.length-1]=="function"){const c=t.length-1;t[c]=jr.from(t[c])}for(let c=0;c0&&!(Is(t[c])||ms(t[c])||At(t[c])))throw new Ts(`streams[${c}]`,r[c],"must be writable")}let n,o,a,i,l;function d(c){const E=i;i=null,E?E(c):c?l.destroy(c):!b&&!_&&l.destroy()}const u=t[0],h=gy(t,d),_=!!(Is(u)||ms(u)||At(u)),b=!!(As(h)||vs(h)||At(h));if(l=new jr({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(h!=null&&h.readableObjectMode),writable:_,readable:b}),_){if(Fr(u))l._write=function(E,g,S){u.write(E,g)?S():n=S},l._final=function(E){u.end(),o=E},u.on("drain",function(){if(n){const E=n;n=null,E()}});else if(Li(u)){const g=(At(u)?u.writable:u).getWriter();l._write=async function(S,T,$){try{await g.ready,g.write(S).catch(()=>{}),$()}catch(w){$(w)}},l._final=async function(S){try{await g.ready,g.close().catch(()=>{}),o=S}catch(T){S(T)}}}const c=At(h)?h.readable:h;Sy(c,()=>{if(o){const E=o;o=null,E()}})}if(b){if(Fr(h))h.on("readable",function(){if(a){const c=a;a=null,c()}}),h.on("end",function(){l.push(null)}),l._read=function(){for(;;){const c=h.read();if(c===null){a=l._read;return}if(!l.push(c))return}};else if(Li(h)){const E=(At(h)?h.readable:h).getReader();l._read=async function(){for(;;)try{const{value:g,done:S}=await E.read();if(!l.push(g))return;if(S){l.push(null);return}}catch{return}}}}return l._destroy=function(c,E){!c&&i!==null&&(c=new wy),a=null,n=null,o=null,i===null?E(c):(i=E,Fr(h)&&_y(h,c))},l};const Ry=globalThis.AbortController||Ge().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Ay,ERR_INVALID_ARG_TYPE:Tr,ERR_MISSING_ARGS:Iy,ERR_OUT_OF_RANGE:my},AbortError:Ke}=ve,{validateAbortSignal:kt,validateInteger:Cs,validateObject:Mt}=vr,vy=le.Symbol("kWeak"),Ty=le.Symbol("kResistStopPropagation"),{finished:Cy}=bt,Ny=Nf,{addAbortSignalNoValidate:Oy}=kn,{isWritable:$y,isNodeStream:xy}=ot,{deprecate:Dy}=Ae,{ArrayPrototypePush:Ly,Boolean:Py,MathFloor:Ns,Number:ky,NumberIsNaN:My,Promise:Os,PromiseReject:$s,PromiseResolve:Vy,PromisePrototypeThen:xs,Symbol:Of}=le,Zr=Of("kEmpty"),Ds=Of("kEof");function jy(e,t){if(t!=null&&Mt(t,"options"),(t==null?void 0:t.signal)!=null&&kt(t.signal,"options.signal"),xy(e)&&!$y(e))throw new Ay("stream",e,"must be writable");const r=Ny(this,e);return t!=null&&t.signal&&Oy(t.signal,r),r}function jn(e,t){if(typeof e!="function")throw new Tr("fn",["Function","AsyncFunction"],e);t!=null&&Mt(t,"options"),(t==null?void 0:t.signal)!=null&&kt(t.signal,"options.signal");let r=1;(t==null?void 0:t.concurrency)!=null&&(r=Ns(t.concurrency));let n=r-1;return(t==null?void 0:t.highWaterMark)!=null&&(n=Ns(t.highWaterMark)),Cs(r,"options.concurrency",1),Cs(n,"options.highWaterMark",0),n+=r,(async function*(){const a=Ae.AbortSignalAny([t==null?void 0:t.signal].filter(Py)),i=this,l=[],d={signal:a};let u,h,_=!1,b=0;function c(){_=!0,E()}function E(){b-=1,g()}function g(){h&&!_&&b=n||b>=r)&&await new Os($=>{h=$})}l.push(Ds)}catch(T){const $=$s(T);xs($,E,c),l.push($)}finally{_=!0,u&&(u(),u=null)}}S();try{for(;;){for(;l.length>0;){const T=await l[0];if(T===Ds)return;if(a.aborted)throw new Ke;T!==Zr&&(yield T),l.shift(),g()}await new Os(T=>{u=T})}}finally{_=!0,h&&(h(),h=null)}}).call(this)}function Fy(e=void 0){return e!=null&&Mt(e,"options"),(e==null?void 0:e.signal)!=null&&kt(e.signal,"options.signal"),(async function*(){let r=0;for await(const o of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new Ke({cause:e.signal.reason});yield[r++,o]}}).call(this)}async function $f(e,t=void 0){for await(const r of xo.call(this,e,t))return!0;return!1}async function Uy(e,t=void 0){if(typeof e!="function")throw new Tr("fn",["Function","AsyncFunction"],e);return!await $f.call(this,async(...r)=>!await e(...r),t)}async function Wy(e,t){for await(const r of xo.call(this,e,t))return r}async function By(e,t){if(typeof e!="function")throw new Tr("fn",["Function","AsyncFunction"],e);async function r(n,o){return await e(n,o),Zr}for await(const n of jn.call(this,r,t));}function xo(e,t){if(typeof e!="function")throw new Tr("fn",["Function","AsyncFunction"],e);async function r(n,o){return await e(n,o)?n:Zr}return jn.call(this,r,t)}class Gy extends Iy{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function Hy(e,t,r){var n;if(typeof e!="function")throw new Tr("reducer",["Function","AsyncFunction"],e);r!=null&&Mt(r,"options"),(r==null?void 0:r.signal)!=null&&kt(r.signal,"options.signal");let o=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){const u=new Ke(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await Cy(this.destroy(u)),u}const a=new Ry,i=a.signal;if(r!=null&&r.signal){const u={once:!0,[vy]:this,[Ty]:!0};r.signal.addEventListener("abort",()=>a.abort(),u)}let l=!1;try{for await(const u of this){var d;if(l=!0,r!=null&&(d=r.signal)!==null&&d!==void 0&&d.aborted)throw new Ke;o?t=await e(t,u,{signal:i}):(t=u,o=!0)}if(!l&&!o)throw new Gy}finally{a.abort()}return t}async function Ky(e){e!=null&&Mt(e,"options"),(e==null?void 0:e.signal)!=null&&kt(e.signal,"options.signal");const t=[];for await(const n of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new Ke(void 0,{cause:e.signal.reason});Ly(t,n)}return t}function Jy(e,t){const r=jn.call(this,e,t);return(async function*(){for await(const o of r)yield*o}).call(this)}function xf(e){if(e=ky(e),My(e))return 0;if(e<0)throw new my("number",">= 0",e);return e}function qy(e,t=void 0){return t!=null&&Mt(t,"options"),(t==null?void 0:t.signal)!=null&&kt(t.signal,"options.signal"),e=xf(e),(async function*(){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new Ke;for await(const a of this){var o;if(t!=null&&(o=t.signal)!==null&&o!==void 0&&o.aborted)throw new Ke;e--<=0&&(yield a)}}).call(this)}function Yy(e,t=void 0){return t!=null&&Mt(t,"options"),(t==null?void 0:t.signal)!=null&&kt(t.signal,"options.signal"),e=xf(e),(async function*(){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new Ke;for await(const a of this){var o;if(t!=null&&(o=t.signal)!==null&&o!==void 0&&o.aborted)throw new Ke;if(e-- >0&&(yield a),e<=0)return}}).call(this)}Ro.streamReturningOperators={asIndexedPairs:Dy(Fy,"readable.asIndexedPairs will be removed in a future version."),drop:qy,filter:xo,flatMap:Jy,map:jn,take:Yy,compose:jy};Ro.promiseReturningOperators={every:Uy,forEach:By,reduce:Hy,toArray:Ky,some:$f,find:Wy};var Pi,Ls;function Df(){if(Ls)return Pi;Ls=1;const{ArrayPrototypePop:e,Promise:t}=le,{isIterable:r,isNodeStream:n,isWebStream:o}=ot,{pipelineImpl:a}=$o,{finished:i}=bt;Lf();function l(...d){return new t((u,h)=>{let _,b;const c=d[d.length-1];if(c&&typeof c=="object"&&!n(c)&&!r(c)&&!o(c)){const E=e(d);_=E.signal,b=E.end}a(d,(E,g)=>{E?h(E):u(g)},{signal:_,end:b})})}return Pi={finished:i,pipeline:l},Pi}var Ps;function Lf(){if(Ps)return _i.exports;Ps=1;const{Buffer:e}=be,{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:n}=le,{promisify:{custom:o}}=Ae,{streamReturningOperators:a,promiseReturningOperators:i}=Ro,{codes:{ERR_ILLEGAL_CONSTRUCTOR:l}}=ve,d=Nf,{setDefaultHighWaterMark:u,getDefaultHighWaterMark:h}=Mn,{pipeline:_}=$o,{destroyer:b}=Qt,c=bt,E=Df(),g=ot,S=_i.exports=To.Stream;S.isDestroyed=g.isDestroyed,S.isDisturbed=g.isDisturbed,S.isErrored=g.isErrored,S.isReadable=g.isReadable,S.isWritable=g.isWritable,S.Readable=Vn();for(const $ of r(a)){let B=function(...v){if(new.target)throw l();return S.Readable.from(n(w,this,v))};const w=a[$];t(B,"name",{__proto__:null,value:w.name}),t(B,"length",{__proto__:null,value:w.length}),t(S.Readable.prototype,$,{__proto__:null,value:B,enumerable:!1,configurable:!0,writable:!0})}for(const $ of r(i)){let B=function(...v){if(new.target)throw l();return n(w,this,v)};const w=i[$];t(B,"name",{__proto__:null,value:w.name}),t(B,"length",{__proto__:null,value:w.length}),t(S.Readable.prototype,$,{__proto__:null,value:B,enumerable:!1,configurable:!0,writable:!0})}S.Writable=Co(),S.Duplex=rt(),S.Transform=mf,S.PassThrough=Tf,S.pipeline=_;const{addAbortSignal:T}=kn;return S.addAbortSignal=T,S.finished=c,S.destroy=b,S.compose=d,S.setDefaultHighWaterMark=u,S.getDefaultHighWaterMark=h,t(S,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return E}}),t(_,o,{__proto__:null,enumerable:!0,get(){return E.pipeline}}),t(c,o,{__proto__:null,enumerable:!0,get(){return E.finished}}),S.Stream=S,S._isUint8Array=function(w){return w instanceof Uint8Array},S._uint8ArrayToBuffer=function(w){return e.from(w.buffer,w.byteOffset,w.byteLength)},_i.exports}(function(e){const t=Lf(),r=Df(),n=t.Readable.destroy;e.exports=t.Readable,e.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,e.exports._isUint8Array=t._isUint8Array,e.exports.isDisturbed=t.isDisturbed,e.exports.isErrored=t.isErrored,e.exports.isReadable=t.isReadable,e.exports.Readable=t.Readable,e.exports.Writable=t.Writable,e.exports.Duplex=t.Duplex,e.exports.Transform=t.Transform,e.exports.PassThrough=t.PassThrough,e.exports.addAbortSignal=t.addAbortSignal,e.exports.finished=t.finished,e.exports.destroy=t.destroy,e.exports.destroy=n,e.exports.pipeline=t.pipeline,e.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return r}}),e.exports.Stream=t.Stream,e.exports.default=e.exports})(Bl);var zy=Bl.exports;const oo="null:";function Xy(e){return t=>t.termType!=="NamedNode"||!t.value.startsWith(oo)?null:e.namedNode(t.value.slice(oo.length))}function Qy(e){const t=Xy(e);return r=>{const n=t(r.subject),o=t(r.predicate),a=t(r.object),i=t(r.graph);return n||o||a||i?e.quad(n||r.subject,o||r.predicate,a||r.object,i||r.graph):r}}class Zy{constructor(t,{baseIRI:r=oo,context:n=null,documentLoader:o,factory:a=kf}={}){const i=new Ms.JsonLdParser({baseIRI:r,context:n,dataFactory:a,documentLoader:o,streamingProfile:!1});t.pipe(i);const l=Qy(a),d=new zy.Transform({objectMode:!0,transform:(u,h,_)=>{_(null,l(u))}});return i.on("context",u=>{Object.entries(u).forEach(([h,_])=>{d.emit("prefix",h,a.namedNode(_))})}),i.on("error",u=>d.destroy(u)),i.pipe(d),Mf(d)}}class cg extends Pf{constructor(t){super(Zy,t)}}export{cg as default}; diff --git a/assets/index-jd32SyoQ.js b/assets/index-jd32SyoQ.js deleted file mode 100644 index d8256ad..0000000 --- a/assets/index-jd32SyoQ.js +++ /dev/null @@ -1 +0,0 @@ -import{S as t}from"./index-BOvYCoiN.js";import{f as i}from"./main-CO-45Vwa.js";import{r as l}from"./readable-BmS1kvD9.js";import{N as m}from"./N3StreamParser-Bkfk54FL.js";class p{constructor(e,{baseIRI:s="",factory:r=i,...n}={}){const o={blankNode:r.blankNode.bind(r),defaultGraph:r.defaultGraph.bind(r),literal:r.literal.bind(r),namedNode:r.namedNode.bind(r),quad:r.quad.bind(r)},a=new m({baseIRI:s,factory:o,...n});return e.pipe(a),l(a)}}class c extends t{constructor(e){super(p,e)}}export{c as default}; diff --git a/assets/index-keipGPtm.js b/assets/index-keipGPtm.js deleted file mode 100644 index 516749b..0000000 --- a/assets/index-keipGPtm.js +++ /dev/null @@ -1 +0,0 @@ -import{c as d}from"./main-CO-45Vwa.js";var S={},o={};Object.defineProperty(o,"__esModule",{value:!0});o.removeDotSegmentsOfPath=o.removeDotSegments=o.resolve=void 0;function P(t,e){e=e||"";const r=e.indexOf("#");if(r>0&&(e=e.substr(0,r)),!t.length){if(e.indexOf(":")<0)throw new Error(`Found invalid baseIRI '${e}' for value '${t}'`);return e}if(t.startsWith("?")){const h=e.indexOf("?");return h>0&&(e=e.substr(0,h)),e+t}if(t.startsWith("#"))return e+t;if(!e.length){const h=t.indexOf(":");if(h<0)throw new Error(`Found invalid relative IRI '${t}' for a missing baseIRI`);return l(t,h)}const a=t.indexOf(":");if(a>=0)return l(t,a);const u=e.indexOf(":");if(u<0)throw new Error(`Found invalid baseIRI '${e}' for value '${t}'`);const n=e.substr(0,u+1);if(t.indexOf("//")===0)return n+l(t,a);let s;if(e.indexOf("//",u)===u+1){if(s=e.indexOf("/",u+3),s<0)return e.length>u+3?e+"/"+l(t,a):n+l(t,a)}else if(s=e.indexOf("/",u+1),s<0)return n+l(t,a);if(t.indexOf("/")===0)return e.substr(0,s)+v(t);let c=e.substr(s);const O=c.lastIndexOf("/");return O>=0&&Oa.join("")).join("/")}o.removeDotSegments=v;function l(t,e){let r=e+1;e>=0?t[e+1]==="/"&&t[e+2]==="/"&&(r=e+3):t[0]==="/"&&t[1]==="/"&&(r=2);const a=t.indexOf("/",r);if(a<0)return t;const u=t.substr(0,a),n=t.substr(a);return u+v(n)}o.removeDotSegmentsOfPath=l;function T(t){return!t||t==="#"||t==="?"||t==="/"}(function(t){var e=d&&d.__createBinding||(Object.create?function(a,u,n,s){s===void 0&&(s=n),Object.defineProperty(a,s,{enumerable:!0,get:function(){return u[n]}})}:function(a,u,n,s){s===void 0&&(s=n),a[s]=u[n]}),r=d&&d.__exportStar||function(a,u){for(var n in a)n!=="default"&&!Object.prototype.hasOwnProperty.call(u,n)&&e(u,a,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(o,t)})(S);var D={},m={};Object.defineProperty(m,"__esModule",{value:!0});m.BlankNode=void 0;class G{constructor(e){this.termType="BlankNode",this.value=e}equals(e){return!!e&&e.termType==="BlankNode"&&e.value===this.value}}m.BlankNode=G;var y={},N={};Object.defineProperty(N,"__esModule",{value:!0});N.DefaultGraph=void 0;class g{constructor(){this.termType="DefaultGraph",this.value=""}equals(e){return!!e&&e.termType==="DefaultGraph"}}N.DefaultGraph=g;g.INSTANCE=new g;var p={},i={};Object.defineProperty(i,"__esModule",{value:!0});i.NamedNode=void 0;class ${constructor(e){this.termType="NamedNode",this.value=e}equals(e){return!!e&&e.termType==="NamedNode"&&e.value===this.value}}i.NamedNode=$;Object.defineProperty(p,"__esModule",{value:!0});p.Literal=void 0;const j=i;class f{constructor(e,r){this.termType="Literal",this.value=e,typeof r=="string"?(this.language=r,this.datatype=f.RDF_LANGUAGE_STRING):r?(this.language="",this.datatype=r):(this.language="",this.datatype=f.XSD_STRING)}equals(e){return!!e&&e.termType==="Literal"&&e.value===this.value&&e.language===this.language&&this.datatype.equals(e.datatype)}}p.Literal=f;f.RDF_LANGUAGE_STRING=new j.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");f.XSD_STRING=new j.NamedNode("http://www.w3.org/2001/XMLSchema#string");var b={};Object.defineProperty(b,"__esModule",{value:!0});b.Quad=void 0;class B{constructor(e,r,a,u){this.termType="Quad",this.value="",this.subject=e,this.predicate=r,this.object=a,this.graph=u}equals(e){return!!e&&(e.termType==="Quad"||!e.termType)&&this.subject.equals(e.subject)&&this.predicate.equals(e.predicate)&&this.object.equals(e.object)&&this.graph.equals(e.graph)}}b.Quad=B;var _={};Object.defineProperty(_,"__esModule",{value:!0});_.Variable=void 0;class q{constructor(e){this.termType="Variable",this.value=e}equals(e){return!!e&&e.termType==="Variable"&&e.value===this.value}}_.Variable=q;Object.defineProperty(y,"__esModule",{value:!0});y.DataFactory=void 0;const x=m,C=N,w=p,F=i,L=b,k=_;let M=0;class Q{constructor(e){this.blankNodeCounter=0,e=e||{},this.blankNodePrefix=e.blankNodePrefix||`df_${M++}_`}namedNode(e){return new F.NamedNode(e)}blankNode(e){return new x.BlankNode(e||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(e,r){return new w.Literal(e,r)}variable(e){return new k.Variable(e)}defaultGraph(){return C.DefaultGraph.INSTANCE}quad(e,r,a,u){return new L.Quad(e,r,a,u||this.defaultGraph())}fromTerm(e){switch(e.termType){case"NamedNode":return this.namedNode(e.value);case"BlankNode":return this.blankNode(e.value);case"Literal":return e.language?this.literal(e.value,e.language):e.datatype.equals(w.Literal.XSD_STRING)?this.literal(e.value):this.literal(e.value,this.fromTerm(e.datatype));case"Variable":return this.variable(e.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(e.subject),this.fromTerm(e.predicate),this.fromTerm(e.object),this.fromTerm(e.graph))}}fromQuad(e){return this.fromTerm(e)}resetBlankNodeCounter(){this.blankNodeCounter=0}}y.DataFactory=Q;(function(t){var e=d&&d.__createBinding||(Object.create?function(a,u,n,s){s===void 0&&(s=n),Object.defineProperty(a,s,{enumerable:!0,get:function(){return u[n]}})}:function(a,u,n,s){s===void 0&&(s=n),a[s]=u[n]}),r=d&&d.__exportStar||function(a,u){for(var n in a)n!=="default"&&!Object.prototype.hasOwnProperty.call(u,n)&&e(u,a,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(m,t),r(y,t),r(N,t),r(p,t),r(i,t),r(b,t),r(_,t)})(D);export{D as a,S as r}; diff --git a/assets/main-B94FsnA1.js b/assets/main-Bw33fkyv.js similarity index 99% rename from assets/main-B94FsnA1.js rename to assets/main-Bw33fkyv.js index 8a4d6d9..d913445 100644 --- a/assets/main-B94FsnA1.js +++ b/assets/main-Bw33fkyv.js @@ -1,4 +1,4 @@ -import{c as As,g as ws,b as Pt,s as $s,m as Ds}from"./main-CO-45Vwa.js";import{m as Ts}from"./main-BEQE4T9J.js";function Ns(v,t){for(var n=0;ne[_]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var ut={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(v,t){(function(n,e){e(t)})(As,function(n){function e(){for(var i=arguments.length,s=Array(i),r=0;r1){s[0]=s[0].slice(0,-1);for(var h=s.length-1,l=1;l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Le=x-y,ee=Math.floor,Pe=String.fromCharCode;function xe(i){throw new RangeError(is[i])}function rs(i,s){for(var r=[],h=i.length;h--;)r[h]=s(i[h]);return r}function dt(i,s){var r=i.split("@"),h="";r.length>1&&(h=r[0]+"@",i=r[1]),i=i.replace(ss,".");var l=i.split("."),g=rs(l,s).join(".");return h+g}function pt(i){for(var s=[],r=0,h=i.length;r=55296&&l<=56319&&r>1,s+=ee(s/r);s>Le*S>>1;l+=x)s=ee(s/Le);return ee(l+(Le+1)*s/(s+Q))},bt=function(s){var r=[],h=s.length,l=0,g=V,I=B,w=s.lastIndexOf(K);w<0&&(w=0);for(var N=0;N=128&&xe("not-basic"),r.push(s.charCodeAt(N));for(var U=w>0?w+1:0;U=h&&xe("invalid-input");var j=as(s.charCodeAt(U++));(j>=x||j>ee((f-l)/T))&&xe("overflow"),l+=j*T;var C=M<=I?y:M>=I+S?S:M-I;if(jee(f/H)&&xe("overflow"),T*=H}var L=r.length+1;I=mt(l-A,L,A==0),ee(l/L)>f-g&&xe("overflow"),g+=ee(l/L),l%=L,r.splice(l++,0,g)}return String.fromCodePoint.apply(String,r)},kt=function(s){var r=[];s=pt(s);var h=s.length,l=V,g=0,I=B,w=!0,N=!1,U=void 0;try{for(var A=s[Symbol.iterator](),T;!(w=(T=A.next()).done);w=!0){var M=T.value;M<128&&r.push(Pe(M))}}catch(De){N=!0,U=De}finally{try{!w&&A.return&&A.return()}finally{if(N)throw U}}var j=r.length,C=j;for(j&&r.push(K);C=l&&meee((f-g)/Y)&&xe("overflow"),g+=(H-l)*Y,l=H;var ae=!0,be=!1,he=void 0;try{for(var $e=s[Symbol.iterator](),Nt;!(ae=(Nt=$e.next()).done);ae=!0){var Ot=Nt.value;if(Otf&&xe("overflow"),Ot==l){for(var Ne=g,Oe=x;;Oe+=x){var Ce=Oe<=I?y:Oe>=I+S?S:Oe-I;if(Ne>6|192).toString(16).toUpperCase()+"%"+(s&63|128).toString(16).toUpperCase():r="%"+(s>>12|224).toString(16).toUpperCase()+"%"+(s>>6&63|128).toString(16).toUpperCase()+"%"+(s&63|128).toString(16).toUpperCase(),r}function Ie(i){for(var s="",r=0,h=i.length;r=194&&l<224){if(h-r>=6){var g=parseInt(i.substr(r+4,2),16);s+=String.fromCharCode((l&31)<<6|g&63)}else s+=i.substr(r,6);r+=6}else if(l>=224){if(h-r>=9){var I=parseInt(i.substr(r+4,2),16),w=parseInt(i.substr(r+7,2),16);s+=String.fromCharCode((l&15)<<12|(I&63)<<6|w&63)}else s+=i.substr(r,9);r+=9}else s+=i.substr(r,3),r+=3}return s}function Fe(i,s){function r(h){var l=Ie(h);return l.match(s.UNRESERVED)?l:h}return i.scheme&&(i.scheme=String(i.scheme).replace(s.PCT_ENCODED,r).toLowerCase().replace(s.NOT_SCHEME,"")),i.userinfo!==void 0&&(i.userinfo=String(i.userinfo).replace(s.PCT_ENCODED,r).replace(s.NOT_USERINFO,te).replace(s.PCT_ENCODED,c)),i.host!==void 0&&(i.host=String(i.host).replace(s.PCT_ENCODED,r).toLowerCase().replace(s.NOT_HOST,te).replace(s.PCT_ENCODED,c)),i.path!==void 0&&(i.path=String(i.path).replace(s.PCT_ENCODED,r).replace(i.scheme?s.NOT_PATH:s.NOT_PATH_NOSCHEME,te).replace(s.PCT_ENCODED,c)),i.query!==void 0&&(i.query=String(i.query).replace(s.PCT_ENCODED,r).replace(s.NOT_QUERY,te).replace(s.PCT_ENCODED,c)),i.fragment!==void 0&&(i.fragment=String(i.fragment).replace(s.PCT_ENCODED,r).replace(s.NOT_FRAGMENT,te).replace(s.PCT_ENCODED,c)),i}function Ue(i){return i.replace(/^0*(.*)/,"$1")||"0"}function Me(i,s){var r=i.match(s.IPV4ADDRESS)||[],h=p(r,2),l=h[1];return l?l.split(".").map(Ue).join("."):i}function gt(i,s){var r=i.match(s.IPV6ADDRESS)||[],h=p(r,3),l=h[1],g=h[2];if(l){for(var I=l.toLowerCase().split("::").reverse(),w=p(I,2),N=w[0],U=w[1],A=U?U.split(":").map(Ue):[],T=N.split(":").map(Ue),M=s.IPV4ADDRESS.test(T[T.length-1]),j=M?7:8,C=T.length-j,H=Array(j),L=0;L1){var ye=H.slice(0,re.index),me=H.slice(re.index+re.length);_e=ye.join(":")+"::"+me.join(":")}else _e=H.join(":");return g&&(_e+="%"+g),_e}else return i}var hs=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fs="".match(/(){0}/)[1]===void 0;function ne(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r={},h=s.iri!==!1?R:b;s.reference==="suffix"&&(i=(s.scheme?s.scheme+":":"")+"//"+i);var l=i.match(hs);if(l){fs?(r.scheme=l[1],r.userinfo=l[3],r.host=l[4],r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=l[7],r.fragment=l[8],isNaN(r.port)&&(r.port=l[5])):(r.scheme=l[1]||void 0,r.userinfo=i.indexOf("@")!==-1?l[3]:void 0,r.host=i.indexOf("//")!==-1?l[4]:void 0,r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=i.indexOf("?")!==-1?l[7]:void 0,r.fragment=i.indexOf("#")!==-1?l[8]:void 0,isNaN(r.port)&&(r.port=i.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?l[4]:void 0)),r.host&&(r.host=gt(Me(r.host,h),h)),r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&!r.path&&r.query===void 0?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",s.reference&&s.reference!=="suffix"&&s.reference!==r.reference&&(r.error=r.error||"URI is not a "+s.reference+" reference.");var g=W[(s.scheme||r.scheme||"").toLowerCase()];if(!s.unicodeSupport&&(!g||!g.unicodeSupport)){if(r.host&&(s.domainHost||g&&g.domainHost))try{r.host=ge.toASCII(r.host.replace(h.PCT_ENCODED,Ie).toLowerCase())}catch(I){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+I}Fe(r,b)}else Fe(r,h);g&&g.parse&&g.parse(r,s)}else r.error=r.error||"URI can not be parsed.";return r}function cs(i,s){var r=s.iri!==!1?R:b,h=[];return i.userinfo!==void 0&&(h.push(i.userinfo),h.push("@")),i.host!==void 0&&h.push(gt(Me(String(i.host),r),r).replace(r.IPV6ADDRESS,function(l,g,I){return"["+g+(I?"%25"+I:"")+"]"})),(typeof i.port=="number"||typeof i.port=="string")&&(h.push(":"),h.push(String(i.port))),h.length?h.join(""):void 0}var It=/^\.\.?\//,vt=/^\/\.(\/|$)/,Et=/^\/\.\.(\/|$)/,os=/^\/?(?:.|\n)*?(?=\/|$)/;function ve(i){for(var s=[];i.length;)if(i.match(It))i=i.replace(It,"");else if(i.match(vt))i=i.replace(vt,"/");else if(i.match(Et))i=i.replace(Et,"/"),s.pop();else if(i==="."||i==="..")i="";else{var r=i.match(os);if(r){var h=r[0];i=i.slice(h.length),s.push(h)}else throw new Error("Unexpected dot segment condition")}return s.join("")}function se(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=s.iri?R:b,h=[],l=W[(s.scheme||i.scheme||"").toLowerCase()];if(l&&l.serialize&&l.serialize(i,s),i.host&&!r.IPV6ADDRESS.test(i.host)){if(s.domainHost||l&&l.domainHost)try{i.host=s.iri?ge.toUnicode(i.host):ge.toASCII(i.host.replace(r.PCT_ENCODED,Ie).toLowerCase())}catch(w){i.error=i.error||"Host's domain name can not be converted to "+(s.iri?"Unicode":"ASCII")+" via punycode: "+w}}Fe(i,r),s.reference!=="suffix"&&i.scheme&&(h.push(i.scheme),h.push(":"));var g=cs(i,s);if(g!==void 0&&(s.reference!=="suffix"&&h.push("//"),h.push(g),i.path&&i.path.charAt(0)!=="/"&&h.push("/")),i.path!==void 0){var I=i.path;!s.absolutePath&&(!l||!l.absolutePath)&&(I=ve(I)),g===void 0&&(I=I.replace(/^\/\//,"/%2F")),h.push(I)}return i.query!==void 0&&(h.push("?"),h.push(i.query)),i.fragment!==void 0&&(h.push("#"),h.push(i.fragment)),h.join("")}function yt(i,s){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=arguments[3],l={};return h||(i=ne(se(i,r),r),s=ne(se(s,r),r)),r=r||{},!r.tolerant&&s.scheme?(l.scheme=s.scheme,l.userinfo=s.userinfo,l.host=s.host,l.port=s.port,l.path=ve(s.path||""),l.query=s.query):(s.userinfo!==void 0||s.host!==void 0||s.port!==void 0?(l.userinfo=s.userinfo,l.host=s.host,l.port=s.port,l.path=ve(s.path||""),l.query=s.query):(s.path?(s.path.charAt(0)==="/"?l.path=ve(s.path):((i.userinfo!==void 0||i.host!==void 0||i.port!==void 0)&&!i.path?l.path="/"+s.path:i.path?l.path=i.path.slice(0,i.path.lastIndexOf("/")+1)+s.path:l.path=s.path,l.path=ve(l.path)),l.query=s.query):(l.path=i.path,s.query!==void 0?l.query=s.query:l.query=i.query),l.userinfo=i.userinfo,l.host=i.host,l.port=i.port),l.scheme=i.scheme),l.fragment=s.fragment,l}function us(i,s,r){var h=d({scheme:"null"},r);return se(yt(ne(i,h),ne(s,h),h,!0),h)}function ds(i,s){return typeof i=="string"?i=se(ne(i,s),s):a(i)==="object"&&(i=ne(se(i,s),s)),i}function ps(i,s,r){return typeof i=="string"?i=se(ne(i,r),r):a(i)==="object"&&(i=se(i,r)),typeof s=="string"?s=se(ne(s,r),r):a(s)==="object"&&(s=se(s,r)),i===s}function xs(i,s){return i&&i.toString().replace(!s||!s.iri?b.ESCAPE:R.ESCAPE,te)}function le(i,s){return i&&i.toString().replace(!s||!s.iri?b.PCT_ENCODED:R.PCT_ENCODED,Ie)}var Ae={scheme:"http",domainHost:!0,parse:function(s,r){return s.host||(s.error=s.error||"HTTP URIs must have a host."),s},serialize:function(s,r){var h=String(s.scheme).toLowerCase()==="https";return(s.port===(h?443:80)||s.port==="")&&(s.port=void 0),s.path||(s.path="/"),s}},jt={scheme:"https",domainHost:Ae.domainHost,parse:Ae.parse,serialize:Ae.serialize};function Rt(i){return typeof i.secure=="boolean"?i.secure:String(i.scheme).toLowerCase()==="wss"}var we={scheme:"ws",domainHost:!0,parse:function(s,r){var h=s;return h.secure=Rt(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h},serialize:function(s,r){if((s.port===(Rt(s)?443:80)||s.port==="")&&(s.port=void 0),typeof s.secure=="boolean"&&(s.scheme=s.secure?"wss":"ws",s.secure=void 0),s.resourceName){var h=s.resourceName.split("?"),l=p(h,2),g=l[0],I=l[1];s.path=g&&g!=="/"?g:void 0,s.query=I,s.resourceName=void 0}return s.fragment=void 0,s}},St={scheme:"wss",domainHost:we.domainHost,parse:we.parse,serialize:we.serialize},ms={},At="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ie="[0-9A-Fa-f]",bs=_(_("%[EFef]"+ie+"%"+ie+ie+"%"+ie+ie)+"|"+_("%[89A-Fa-f]"+ie+"%"+ie+ie)+"|"+_("%"+ie+ie)),ks="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",gs="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Is=e(gs,'[\\"\\\\]'),vs="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Es=new RegExp(At,"g"),Ee=new RegExp(bs,"g"),ys=new RegExp(e("[^]",ks,"[\\.]",'[\\"]',Is),"g"),wt=new RegExp(e("[^]",At,vs),"g"),js=wt;function He(i){var s=Ie(i);return s.match(Es)?s:i}var $t={scheme:"mailto",parse:function(s,r){var h=s,l=h.to=h.path?h.path.split(","):[];if(h.path=void 0,h.query){for(var g=!1,I={},w=h.query.split("&"),N=0,U=w.length;Nv.then(t).catch(n=>setTimeout(()=>{throw n},0))}catch{}}const P=Os,Cs=$s,qe=Ts,Te=Ds,Ls=v=>Te.quad(v._kt_subject,v._kt_predicate,v._kt_object,v._kt_graph),Ft=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?)?$/u,Ut=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_:0-9]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%])(([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.:]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%])*([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}:]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%]))?$/u,Ps=/^[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_0-9]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?$/u,ze=/^([^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,Fs=/^([^\0-\x20<>"{}|^`])*$/,z=/\\u([0-9A-Fa-f]{4})|\\U([0-9A-Fa-f]{8})/g,G=(v,t,n)=>String.fromCodePoint(parseInt(t||n,16)),q=Object.prototype.hasOwnProperty,J=/([A-Za-z][A-Za-z0-9_-]*)?:([A-Za-z_0-9:][A-Za-z0-9_:-]*)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,Ge=/([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:[^\s#@<[("'.;,{})\]\\](?:[^\s#@<[("';,{})\]\\]*[^\s#@<[("'.;,{})\]\\])?)?)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,Ve=/([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))(?:(?:[^\s#@<[("';,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))*(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"])))?)?)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,pe=/\\(.)/g,Z=/_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)(?:\s+|(?=[<:{,;\])#]))/y,Be=/_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)(?:\s+|(?=\.?[<:{,;\])#])|(?=\.[\s@#<({[}]))/y,$=/<([^\\>]*)>\s*/y,D=/<([^>]*)>\s*/y,fe=/([+-]?(?:[0-9]+(\.[0-9]+)?|(\.[0-9]+))(\.?[eE][+-]?[0-9]+)?)(?:\s+|(?=\.[^eE0-9]|[;,)\]]))/y,ce=/(?:(true|TRUE)|false|FALSE)\s*/y,Ze=/a(?:\s+|(?=[[("'<#]))/y,Ke=/\^\^/y,m=/\s*/y,Xe=/@([A-Za-z]+(?:-[A-Za-z0-9-]+)*)(?:\s+|(?=[.},;\])#]))/y,We=/(?:(@prefix)|[pP][rR][eE][fF][iI][xX])\s*/y,Ye=/([^#:]*):\s*/iy,Je=/(?:(@base)|[bB][aA][sS][eE])\s*/y,Qe=/(?:graph)?\s*<([^\\>]*)>\s*\{\s*/iy,et=/(?:graph)?\s*([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))(?:(?:[^\s#@<[("';,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))*(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"])))?)?)\s*\{\s*/iy,tt=/(?:graph)?\s*_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)\s*\{\s*/iy,st=/(?:graph)?\s*\[\s*\]\s*\{\s*/iy,it=/(?:graph)?\s*<([^>]*)>\s*\{\s*/iy,rt=/graph(?:\s+|(?=[#<[{]))/iy,k=/(#[^\n]*\n\s*)+/y,F=/^[A-Za-z][A-Za-z0-9.\-+]*:/,_t=/^((([A-Za-z0-9.\-+]*:\/)?\/[^/>]*)?(\/(?:[^/>]*\/)*)?[^>]*)$/,oe=/\[\s*\]\s*/y,je=/\[(?:\s+|(?=[^\]]))/y,Re=/\(\s*/y,at=/\]\s*/y,nt=/\{\s*/y,ue=/\}\s*/y,lt=/\.\s*/y,ht=/[\\"\r\n]/g,ft=/[\\'\r\n]/g,Mt=/"{1,2}$/g,Ht=/'{1,2}$/g,ct=/(\\|""")/g,ot=/(\\|''')/g,Se=(v,t,n,e,_,a)=>{if(t)switch(t){case"t":return" ";case"n":return` +import{c as As,g as ws,b as Pt,s as $s,m as Ds}from"./main-DsJMMZjG.js";import{m as Ts}from"./main-y9VuuvvT.js";function Ns(v,t){for(var n=0;ne[_]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var ut={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(v,t){(function(n,e){e(t)})(As,function(n){function e(){for(var i=arguments.length,s=Array(i),r=0;r1){s[0]=s[0].slice(0,-1);for(var h=s.length-1,l=1;l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Le=x-y,ee=Math.floor,Pe=String.fromCharCode;function xe(i){throw new RangeError(is[i])}function rs(i,s){for(var r=[],h=i.length;h--;)r[h]=s(i[h]);return r}function dt(i,s){var r=i.split("@"),h="";r.length>1&&(h=r[0]+"@",i=r[1]),i=i.replace(ss,".");var l=i.split("."),g=rs(l,s).join(".");return h+g}function pt(i){for(var s=[],r=0,h=i.length;r=55296&&l<=56319&&r>1,s+=ee(s/r);s>Le*S>>1;l+=x)s=ee(s/Le);return ee(l+(Le+1)*s/(s+Q))},bt=function(s){var r=[],h=s.length,l=0,g=V,I=B,w=s.lastIndexOf(K);w<0&&(w=0);for(var N=0;N=128&&xe("not-basic"),r.push(s.charCodeAt(N));for(var U=w>0?w+1:0;U=h&&xe("invalid-input");var j=as(s.charCodeAt(U++));(j>=x||j>ee((f-l)/T))&&xe("overflow"),l+=j*T;var C=M<=I?y:M>=I+S?S:M-I;if(jee(f/H)&&xe("overflow"),T*=H}var L=r.length+1;I=mt(l-A,L,A==0),ee(l/L)>f-g&&xe("overflow"),g+=ee(l/L),l%=L,r.splice(l++,0,g)}return String.fromCodePoint.apply(String,r)},kt=function(s){var r=[];s=pt(s);var h=s.length,l=V,g=0,I=B,w=!0,N=!1,U=void 0;try{for(var A=s[Symbol.iterator](),T;!(w=(T=A.next()).done);w=!0){var M=T.value;M<128&&r.push(Pe(M))}}catch(De){N=!0,U=De}finally{try{!w&&A.return&&A.return()}finally{if(N)throw U}}var j=r.length,C=j;for(j&&r.push(K);C=l&&meee((f-g)/Y)&&xe("overflow"),g+=(H-l)*Y,l=H;var ae=!0,be=!1,he=void 0;try{for(var $e=s[Symbol.iterator](),Nt;!(ae=(Nt=$e.next()).done);ae=!0){var Ot=Nt.value;if(Otf&&xe("overflow"),Ot==l){for(var Ne=g,Oe=x;;Oe+=x){var Ce=Oe<=I?y:Oe>=I+S?S:Oe-I;if(Ne>6|192).toString(16).toUpperCase()+"%"+(s&63|128).toString(16).toUpperCase():r="%"+(s>>12|224).toString(16).toUpperCase()+"%"+(s>>6&63|128).toString(16).toUpperCase()+"%"+(s&63|128).toString(16).toUpperCase(),r}function Ie(i){for(var s="",r=0,h=i.length;r=194&&l<224){if(h-r>=6){var g=parseInt(i.substr(r+4,2),16);s+=String.fromCharCode((l&31)<<6|g&63)}else s+=i.substr(r,6);r+=6}else if(l>=224){if(h-r>=9){var I=parseInt(i.substr(r+4,2),16),w=parseInt(i.substr(r+7,2),16);s+=String.fromCharCode((l&15)<<12|(I&63)<<6|w&63)}else s+=i.substr(r,9);r+=9}else s+=i.substr(r,3),r+=3}return s}function Fe(i,s){function r(h){var l=Ie(h);return l.match(s.UNRESERVED)?l:h}return i.scheme&&(i.scheme=String(i.scheme).replace(s.PCT_ENCODED,r).toLowerCase().replace(s.NOT_SCHEME,"")),i.userinfo!==void 0&&(i.userinfo=String(i.userinfo).replace(s.PCT_ENCODED,r).replace(s.NOT_USERINFO,te).replace(s.PCT_ENCODED,c)),i.host!==void 0&&(i.host=String(i.host).replace(s.PCT_ENCODED,r).toLowerCase().replace(s.NOT_HOST,te).replace(s.PCT_ENCODED,c)),i.path!==void 0&&(i.path=String(i.path).replace(s.PCT_ENCODED,r).replace(i.scheme?s.NOT_PATH:s.NOT_PATH_NOSCHEME,te).replace(s.PCT_ENCODED,c)),i.query!==void 0&&(i.query=String(i.query).replace(s.PCT_ENCODED,r).replace(s.NOT_QUERY,te).replace(s.PCT_ENCODED,c)),i.fragment!==void 0&&(i.fragment=String(i.fragment).replace(s.PCT_ENCODED,r).replace(s.NOT_FRAGMENT,te).replace(s.PCT_ENCODED,c)),i}function Ue(i){return i.replace(/^0*(.*)/,"$1")||"0"}function Me(i,s){var r=i.match(s.IPV4ADDRESS)||[],h=p(r,2),l=h[1];return l?l.split(".").map(Ue).join("."):i}function gt(i,s){var r=i.match(s.IPV6ADDRESS)||[],h=p(r,3),l=h[1],g=h[2];if(l){for(var I=l.toLowerCase().split("::").reverse(),w=p(I,2),N=w[0],U=w[1],A=U?U.split(":").map(Ue):[],T=N.split(":").map(Ue),M=s.IPV4ADDRESS.test(T[T.length-1]),j=M?7:8,C=T.length-j,H=Array(j),L=0;L1){var ye=H.slice(0,re.index),me=H.slice(re.index+re.length);_e=ye.join(":")+"::"+me.join(":")}else _e=H.join(":");return g&&(_e+="%"+g),_e}else return i}var hs=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,fs="".match(/(){0}/)[1]===void 0;function ne(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r={},h=s.iri!==!1?R:b;s.reference==="suffix"&&(i=(s.scheme?s.scheme+":":"")+"//"+i);var l=i.match(hs);if(l){fs?(r.scheme=l[1],r.userinfo=l[3],r.host=l[4],r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=l[7],r.fragment=l[8],isNaN(r.port)&&(r.port=l[5])):(r.scheme=l[1]||void 0,r.userinfo=i.indexOf("@")!==-1?l[3]:void 0,r.host=i.indexOf("//")!==-1?l[4]:void 0,r.port=parseInt(l[5],10),r.path=l[6]||"",r.query=i.indexOf("?")!==-1?l[7]:void 0,r.fragment=i.indexOf("#")!==-1?l[8]:void 0,isNaN(r.port)&&(r.port=i.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?l[4]:void 0)),r.host&&(r.host=gt(Me(r.host,h),h)),r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&!r.path&&r.query===void 0?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",s.reference&&s.reference!=="suffix"&&s.reference!==r.reference&&(r.error=r.error||"URI is not a "+s.reference+" reference.");var g=W[(s.scheme||r.scheme||"").toLowerCase()];if(!s.unicodeSupport&&(!g||!g.unicodeSupport)){if(r.host&&(s.domainHost||g&&g.domainHost))try{r.host=ge.toASCII(r.host.replace(h.PCT_ENCODED,Ie).toLowerCase())}catch(I){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+I}Fe(r,b)}else Fe(r,h);g&&g.parse&&g.parse(r,s)}else r.error=r.error||"URI can not be parsed.";return r}function cs(i,s){var r=s.iri!==!1?R:b,h=[];return i.userinfo!==void 0&&(h.push(i.userinfo),h.push("@")),i.host!==void 0&&h.push(gt(Me(String(i.host),r),r).replace(r.IPV6ADDRESS,function(l,g,I){return"["+g+(I?"%25"+I:"")+"]"})),(typeof i.port=="number"||typeof i.port=="string")&&(h.push(":"),h.push(String(i.port))),h.length?h.join(""):void 0}var It=/^\.\.?\//,vt=/^\/\.(\/|$)/,Et=/^\/\.\.(\/|$)/,os=/^\/?(?:.|\n)*?(?=\/|$)/;function ve(i){for(var s=[];i.length;)if(i.match(It))i=i.replace(It,"");else if(i.match(vt))i=i.replace(vt,"/");else if(i.match(Et))i=i.replace(Et,"/"),s.pop();else if(i==="."||i==="..")i="";else{var r=i.match(os);if(r){var h=r[0];i=i.slice(h.length),s.push(h)}else throw new Error("Unexpected dot segment condition")}return s.join("")}function se(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=s.iri?R:b,h=[],l=W[(s.scheme||i.scheme||"").toLowerCase()];if(l&&l.serialize&&l.serialize(i,s),i.host&&!r.IPV6ADDRESS.test(i.host)){if(s.domainHost||l&&l.domainHost)try{i.host=s.iri?ge.toUnicode(i.host):ge.toASCII(i.host.replace(r.PCT_ENCODED,Ie).toLowerCase())}catch(w){i.error=i.error||"Host's domain name can not be converted to "+(s.iri?"Unicode":"ASCII")+" via punycode: "+w}}Fe(i,r),s.reference!=="suffix"&&i.scheme&&(h.push(i.scheme),h.push(":"));var g=cs(i,s);if(g!==void 0&&(s.reference!=="suffix"&&h.push("//"),h.push(g),i.path&&i.path.charAt(0)!=="/"&&h.push("/")),i.path!==void 0){var I=i.path;!s.absolutePath&&(!l||!l.absolutePath)&&(I=ve(I)),g===void 0&&(I=I.replace(/^\/\//,"/%2F")),h.push(I)}return i.query!==void 0&&(h.push("?"),h.push(i.query)),i.fragment!==void 0&&(h.push("#"),h.push(i.fragment)),h.join("")}function yt(i,s){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=arguments[3],l={};return h||(i=ne(se(i,r),r),s=ne(se(s,r),r)),r=r||{},!r.tolerant&&s.scheme?(l.scheme=s.scheme,l.userinfo=s.userinfo,l.host=s.host,l.port=s.port,l.path=ve(s.path||""),l.query=s.query):(s.userinfo!==void 0||s.host!==void 0||s.port!==void 0?(l.userinfo=s.userinfo,l.host=s.host,l.port=s.port,l.path=ve(s.path||""),l.query=s.query):(s.path?(s.path.charAt(0)==="/"?l.path=ve(s.path):((i.userinfo!==void 0||i.host!==void 0||i.port!==void 0)&&!i.path?l.path="/"+s.path:i.path?l.path=i.path.slice(0,i.path.lastIndexOf("/")+1)+s.path:l.path=s.path,l.path=ve(l.path)),l.query=s.query):(l.path=i.path,s.query!==void 0?l.query=s.query:l.query=i.query),l.userinfo=i.userinfo,l.host=i.host,l.port=i.port),l.scheme=i.scheme),l.fragment=s.fragment,l}function us(i,s,r){var h=d({scheme:"null"},r);return se(yt(ne(i,h),ne(s,h),h,!0),h)}function ds(i,s){return typeof i=="string"?i=se(ne(i,s),s):a(i)==="object"&&(i=ne(se(i,s),s)),i}function ps(i,s,r){return typeof i=="string"?i=se(ne(i,r),r):a(i)==="object"&&(i=se(i,r)),typeof s=="string"?s=se(ne(s,r),r):a(s)==="object"&&(s=se(s,r)),i===s}function xs(i,s){return i&&i.toString().replace(!s||!s.iri?b.ESCAPE:R.ESCAPE,te)}function le(i,s){return i&&i.toString().replace(!s||!s.iri?b.PCT_ENCODED:R.PCT_ENCODED,Ie)}var Ae={scheme:"http",domainHost:!0,parse:function(s,r){return s.host||(s.error=s.error||"HTTP URIs must have a host."),s},serialize:function(s,r){var h=String(s.scheme).toLowerCase()==="https";return(s.port===(h?443:80)||s.port==="")&&(s.port=void 0),s.path||(s.path="/"),s}},jt={scheme:"https",domainHost:Ae.domainHost,parse:Ae.parse,serialize:Ae.serialize};function Rt(i){return typeof i.secure=="boolean"?i.secure:String(i.scheme).toLowerCase()==="wss"}var we={scheme:"ws",domainHost:!0,parse:function(s,r){var h=s;return h.secure=Rt(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h},serialize:function(s,r){if((s.port===(Rt(s)?443:80)||s.port==="")&&(s.port=void 0),typeof s.secure=="boolean"&&(s.scheme=s.secure?"wss":"ws",s.secure=void 0),s.resourceName){var h=s.resourceName.split("?"),l=p(h,2),g=l[0],I=l[1];s.path=g&&g!=="/"?g:void 0,s.query=I,s.resourceName=void 0}return s.fragment=void 0,s}},St={scheme:"wss",domainHost:we.domainHost,parse:we.parse,serialize:we.serialize},ms={},At="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ie="[0-9A-Fa-f]",bs=_(_("%[EFef]"+ie+"%"+ie+ie+"%"+ie+ie)+"|"+_("%[89A-Fa-f]"+ie+"%"+ie+ie)+"|"+_("%"+ie+ie)),ks="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",gs="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Is=e(gs,'[\\"\\\\]'),vs="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Es=new RegExp(At,"g"),Ee=new RegExp(bs,"g"),ys=new RegExp(e("[^]",ks,"[\\.]",'[\\"]',Is),"g"),wt=new RegExp(e("[^]",At,vs),"g"),js=wt;function He(i){var s=Ie(i);return s.match(Es)?s:i}var $t={scheme:"mailto",parse:function(s,r){var h=s,l=h.to=h.path?h.path.split(","):[];if(h.path=void 0,h.query){for(var g=!1,I={},w=h.query.split("&"),N=0,U=w.length;Nv.then(t).catch(n=>setTimeout(()=>{throw n},0))}catch{}}const P=Os,Cs=$s,qe=Ts,Te=Ds,Ls=v=>Te.quad(v._kt_subject,v._kt_predicate,v._kt_object,v._kt_graph),Ft=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?)?$/u,Ut=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_:0-9]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%])(([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.:]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%])*([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}:]|%[A-Fa-f0-9]{2}|\\[_~.\-!$&'()*+,;=/?#@%]))?$/u,Ps=/^[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_0-9]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?$/u,ze=/^([^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,Fs=/^([^\0-\x20<>"{}|^`])*$/,z=/\\u([0-9A-Fa-f]{4})|\\U([0-9A-Fa-f]{8})/g,G=(v,t,n)=>String.fromCodePoint(parseInt(t||n,16)),q=Object.prototype.hasOwnProperty,J=/([A-Za-z][A-Za-z0-9_-]*)?:([A-Za-z_0-9:][A-Za-z0-9_:-]*)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,Ge=/([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:[^\s#@<[("'.;,{})\]\\](?:[^\s#@<[("';,{})\]\\]*[^\s#@<[("'.;,{})\]\\])?)?)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,Ve=/([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))(?:(?:[^\s#@<[("';,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))*(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"])))?)?)(?:\s+|(?=\.?[<[("';,)\]#{}]|\.[\s\0]))/y,pe=/\\(.)/g,Z=/_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)(?:\s+|(?=[<:{,;\])#]))/y,Be=/_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)(?:\s+|(?=\.?[<:{,;\])#])|(?=\.[\s@#<({[}]))/y,$=/<([^\\>]*)>\s*/y,D=/<([^>]*)>\s*/y,fe=/([+-]?(?:[0-9]+(\.[0-9]+)?|(\.[0-9]+))(\.?[eE][+-]?[0-9]+)?)(?:\s+|(?=\.[^eE0-9]|[;,)\]]))/y,ce=/(?:(true|TRUE)|false|FALSE)\s*/y,Ze=/a(?:\s+|(?=[[("'<#]))/y,Ke=/\^\^/y,m=/\s*/y,Xe=/@([A-Za-z]+(?:-[A-Za-z0-9-]+)*)(?:\s+|(?=[.},;\])#]))/y,We=/(?:(@prefix)|[pP][rR][eE][fF][iI][xX])\s*/y,Ye=/([^#:]*):\s*/iy,Je=/(?:(@base)|[bB][aA][sS][eE])\s*/y,Qe=/(?:graph)?\s*<([^\\>]*)>\s*\{\s*/iy,et=/(?:graph)?\s*([^\s#@<[("':_{}][^\s#@<[("':{}]*)?:((?:(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))(?:(?:[^\s#@<[("';,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"]))*(?:[^\s#@<[("'.;,{})\]\\]|\\(?:%[0-9A-Fa-f][0-9A-Fa-f]|[^\s"])))?)?)\s*\{\s*/iy,tt=/(?:graph)?\s*_:(.(?:[^\s:<;,)\]#}]*[^\s:<.;,)\]#}])?)\s*\{\s*/iy,st=/(?:graph)?\s*\[\s*\]\s*\{\s*/iy,it=/(?:graph)?\s*<([^>]*)>\s*\{\s*/iy,rt=/graph(?:\s+|(?=[#<[{]))/iy,k=/(#[^\n]*\n\s*)+/y,F=/^[A-Za-z][A-Za-z0-9.\-+]*:/,_t=/^((([A-Za-z0-9.\-+]*:\/)?\/[^/>]*)?(\/(?:[^/>]*\/)*)?[^>]*)$/,oe=/\[\s*\]\s*/y,je=/\[(?:\s+|(?=[^\]]))/y,Re=/\(\s*/y,at=/\]\s*/y,nt=/\{\s*/y,ue=/\}\s*/y,lt=/\.\s*/y,ht=/[\\"\r\n]/g,ft=/[\\'\r\n]/g,Mt=/"{1,2}$/g,Ht=/'{1,2}$/g,ct=/(\\|""")/g,ot=/(\\|''')/g,Se=(v,t,n,e,_,a)=>{if(t)switch(t){case"t":return" ";case"n":return` `;case"r":return"\r";case"f":return"\f";case"b":return"\b";default:console.assert(`bad regex escape char mapping: '${t}'`)}else{if(n)return n;if(e)return String.fromCodePoint(parseInt(e,16));if(_)return String.fromCodePoint(parseInt(_,16));if(a)throw a[0]==="\\"?new Error(`expected string_literal but invalid escape sequence within contents: '${a}'. failed to parse a valid token`):new Error(`expected string_literal but invalid whitespace character within contents: ${JSON.stringify(a)}. failed to parse a valid token`);console.assert("unexpected no match branch in escape sequence replace callback")}},Us=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|([\r\n]|\\.))/g,qt=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|([\r\n]|\\[^uU]|\\u[^]{4}|\\U[^]{8}))/g,zt=v=>v.replace(Us,Se),Gt=v=>{let t=es.exec(v);if(t){let n=t.index;return[v.slice(0,n).replace(qt,Se),v.slice(n)]}else return[v.replace(qt,Se),""]},Ms=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|(\\.))/g,Vt=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|(\\[^uU]|\\u[^]{4}|\\U[^]{8}))/g,Bt=v=>v.replace(Ms,Se),Zt=v=>{let t=es.exec(v);if(t){let n=t.index;return[v.slice(0,n).replace(Vt,Se),v.slice(n)]}else return[v.replace(Vt,Se),""]},[es,Kt,Xt,Wt,Yt]=(()=>{function v(n){let e=RegExp.prototype.exec.call(this,n);if(e){let _=e[0].length-e[1].length;e.index+=_,e[0]=e[0].slice(_)}return e}let t=(()=>{try{new RegExp("(?(_.exec=a,_)}return n=>n()})();return[t(()=>new RegExp("(?new RegExp('(?new RegExp("(?new RegExp('(?new RegExp("(?(Ge.lastIndex=t,[Ge.exec(v),Ge.lastIndex]),Qt=(v,t)=>(Ve.lastIndex=t,[Ve.exec(v),Ve.lastIndex]);function Hs(v,t,n,e){let _=Math.min(t,Math.abs(t-15)),a=v.s;return v.error(` \`${a.substr(_,_+90).replace(/[\n\t]/g," ")}\` ${" ".repeat(t-_)}^ diff --git a/assets/main-CO-45Vwa.js b/assets/main-CO-45Vwa.js deleted file mode 100644 index d4c128a..0000000 --- a/assets/main-CO-45Vwa.js +++ /dev/null @@ -1,3319 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-d5GvA7NS.js","assets/index-BOvYCoiN.js","assets/readable-BmS1kvD9.js","assets/index-keipGPtm.js","assets/canonicalize-Bd8h0v92.js","assets/index-jd32SyoQ.js","assets/N3StreamParser-Bkfk54FL.js","assets/CustomRdfXmlParser-BnFBQjMk.js","assets/index-CpxM9Dlb.js","assets/CustomJsonLdSerializer-DTZy0vPJ.js","assets/main-iH2f1yx-.js","assets/main-DQofh_ad.js","assets/main-Rstpr1kO.js","assets/main-BEQE4T9J.js","assets/main-DvYAR6pV.js","assets/main-BIUkwmxE.js","assets/main-B94FsnA1.js","assets/main-V12eunPc.js","assets/index-BMw9Z_By.js","assets/index-wrpfIQEt.js"])))=>i.map(i=>d[i]); -var pfn=Object.defineProperty;var F6t=r=>{throw TypeError(r)};var gfn=(r,o,l)=>o in r?pfn(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l;var M8e=(r,o,l)=>gfn(r,typeof o!="symbol"?o+"":o,l),O8e=(r,o,l)=>o.has(r)||F6t("Cannot "+l);var Kh=(r,o,l)=>(O8e(r,o,"read from private field"),l?l.call(r):o.get(r)),Zx=(r,o,l)=>o.has(r)?F6t("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,l),s3=(r,o,l,a)=>(O8e(r,o,"write to private field"),a?a.call(r,l):o.set(r,l),l),_8e=(r,o,l)=>(O8e(r,o,"access private method"),l);const Kne=Object.freeze(Object.defineProperty({__proto__:null,get _void(){return Nkn},get acl(){return u3n},get as(){return f3n},get bibo(){return h3n},get cc(){return g3n},get cert(){return w3n},get cnt(){return v3n},get constant(){return k3n},get crm(){return S3n},get csvw(){return E3n},get ctag(){return I3n},get dash(){return _3n},get dashSparql(){return M3n},get dbo(){return A3n},get dc11(){return $3n},get dcam(){return D3n},get dcat(){return B3n},get dcmitype(){return z3n},get dcterms(){return K3n},get default(){return tEt},get dig(){return G3n},get discipline(){return V3n},get doap(){return X3n},get dpv(){return J3n},get dqv(){return Z3n},get dtype(){return t4n},get duv(){return r4n},get earl(){return o4n},get ebucore(){return l4n},get exif(){return u4n},get foaf(){return f4n},get frbr(){return h4n},get geo(){return g4n},get geof(){return w4n},get geor(){return v4n},get gml(){return k4n},get gn(){return S4n},get gr(){return E4n},get grddl(){return I4n},get gs1(){return M4n},get gtfs(){return _4n},get http(){return A4n},get hydra(){return $4n},get ical(){return D4n},get la(){return B4n},get ldp(){return z4n},get list(){return K4n},get locn(){return G4n},get log(){return V4n},get lvont(){return X4n},get m4i(){return J4n},get ma(){return Z4n},get mads(){return t6n},get math(){return r6n},get oa(){return o6n},get og(){return l6n},get oidc(){return u6n},get org(){return f6n},get owl(){return h6n},get pim(){return g6n},get prefix(){return w6n},get prov(){return v6n},get qb(){return k6n},get qkdv(){return S6n},get quantitykind(){return E6n},get qudt(){return I6n},get rdau(){return M6n},get rdf(){return Zv},get rdfa(){return R6n},get rdfs(){return L6n},get rev(){return j6n},get rico(){return N6n},get rif(){return Jkn},get rr(){return F6n},get rss(){return H6n},get schema(){return U6n},get sd(){return W6n},get sdmx(){return q6n},get sem(){return Y6n},get set(){return Q6n},get sf(){return ekn},get sh(){return nkn},get shex(){return ikn},get shsh(){return skn},get sioc(){return ckn},get skos(){return akn},get skosxl(){return dkn},get solid(){return pkn},get sosa(){return bkn},get sou(){return mkn},get ssn(){return ykn},get stat(){return Ckn},get string(){return xkn},get test(){return Tkn},get time(){return Pkn},get unit(){return Okn},get v(){return Zkn},get vaem(){return Rkn},get vann(){return Lkn},get vcard(){return jkn},get vs(){return Fkn},get wdr(){return t5n},get wdrs(){return Hkn},get wgs(){return Ukn},get xhv(){return Wkn},get xkos(){return qkn},get xml(){return r5n},get xsd(){return FF}},Symbol.toStringTag,{value:"Module"}));(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))a(p);new MutationObserver(p=>{for(const g of p)if(g.type==="childList")for(const w of g.addedNodes)w.tagName==="LINK"&&w.rel==="modulepreload"&&a(w)}).observe(document,{childList:!0,subtree:!0});function l(p){const g={};return p.integrity&&(g.integrity=p.integrity),p.referrerPolicy&&(g.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?g.credentials="include":p.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function a(p){if(p.ep)return;p.ep=!0;const g=l(p);fetch(p.href,g)}})();/** -* @vue/shared v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function RSe(r){const o=Object.create(null);for(const l of r.split(","))o[l]=1;return l=>l in o}const ou={},ZO=[],m3=()=>{},bfn=()=>!1,Ore=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),ASe=r=>r.startsWith("onUpdate:"),Xf=Object.assign,LSe=(r,o)=>{const l=r.indexOf(o);l>-1&&r.splice(l,1)},wfn=Object.prototype.hasOwnProperty,pc=(r,o)=>wfn.call(r,o),So=Array.isArray,e_=r=>_re(r)==="[object Map]",V7t=r=>_re(r)==="[object Set]",Go=r=>typeof r=="function",Zu=r=>typeof r=="string",rk=r=>typeof r=="symbol",yu=r=>r!==null&&typeof r=="object",q7t=r=>(yu(r)||Go(r))&&Go(r.then)&&Go(r.catch),X7t=Object.prototype.toString,_re=r=>X7t.call(r),mfn=r=>_re(r).slice(8,-1),Y7t=r=>_re(r)==="[object Object]",$Se=r=>Zu(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,OF=RSe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rre=r=>{const o=Object.create(null);return l=>o[l]||(o[l]=r(l))},vfn=/-(\w)/g,cm=Rre(r=>r.replace(vfn,(o,l)=>l?l.toUpperCase():"")),yfn=/\B([A-Z])/g,zC=Rre(r=>r.replace(yfn,"-$1").toLowerCase()),Are=Rre(r=>r.charAt(0).toUpperCase()+r.slice(1)),wne=Rre(r=>r?`on${Are(r)}`:""),G6=(r,o)=>!Object.is(r,o),R8e=(r,...o)=>{for(let l=0;l{Object.defineProperty(r,o,{configurable:!0,enumerable:!1,writable:a,value:l})},kfn=r=>{const o=parseFloat(r);return isNaN(o)?r:o},Cfn=r=>{const o=Zu(r)?Number(r):NaN;return isNaN(o)?r:o};let z6t;const Lre=()=>z6t||(z6t=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"||typeof window<"u"?window:{});function A1(r){if(So(r)){const o={};for(let l=0;l{if(l){const a=l.split(xfn);a.length>1&&(o[a[0].trim()]=a[1].trim())}}),o}function yo(r){let o="";if(Zu(r))o=r;else if(So(r))for(let l=0;l!!(r&&r.__v_isRef===!0),Il=r=>Zu(r)?r:r==null?"":So(r)||yu(r)&&(r.toString===X7t||!Go(r.toString))?Z7t(r)?Il(r.value):JSON.stringify(r,eSt,2):String(r),eSt=(r,o)=>Z7t(o)?eSt(r,o.value):e_(o)?{[`Map(${o.size})`]:[...o.entries()].reduce((l,[a,p],g)=>(l[A8e(a,g)+" =>"]=p,l),{})}:V7t(o)?{[`Set(${o.size})`]:[...o.values()].map(l=>A8e(l))}:rk(o)?A8e(o):yu(o)&&!So(o)&&!Y7t(o)?String(o):o,A8e=(r,o="")=>{var l;return rk(r)?`Symbol(${(l=r.description)!=null?l:o})`:r};/** -* @vue/reactivity v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Rp;class tSt{constructor(o=!1){this.detached=o,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Rp,!o&&Rp&&(this.index=(Rp.scopes||(Rp.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let o,l;if(this.scopes)for(o=0,l=this.scopes.length;o0)return;if(AF){let o=AF;for(AF=void 0;o;){const l=o.next;o.next=void 0,o.flags&=-9,o=l}}let r;for(;RF;){let o=RF;for(RF=void 0;o;){const l=o.next;if(o.next=void 0,o.flags&=-9,o.flags&1)try{o.trigger()}catch(a){r||(r=a)}o=l}}if(r)throw r}function sSt(r){for(let o=r.deps;o;o=o.nextDep)o.version=-1,o.prevActiveLink=o.dep.activeLink,o.dep.activeLink=o}function lSt(r){let o,l=r.depsTail,a=l;for(;a;){const p=a.prevDep;a.version===-1?(a===l&&(l=p),NSe(a),Mfn(a)):o=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=p}r.deps=o,r.depsTail=l}function QCe(r){for(let o=r.deps;o;o=o.nextDep)if(o.dep.version!==o.version||o.dep.computed&&(cSt(o.dep.computed)||o.dep.version!==o.version))return!0;return!!r._dirty}function cSt(r){if(r.flags&4&&!(r.flags&16)||(r.flags&=-17,r.globalVersion===tz))return;r.globalVersion=tz;const o=r.dep;if(r.flags|=2,o.version>0&&!r.isSSR&&r.deps&&!QCe(r)){r.flags&=-3;return}const l=mu,a=uy;mu=r,uy=!0;try{sSt(r);const p=r.fn(r._value);(o.version===0||G6(p,r._value))&&(r._value=p,o.version++)}catch(p){throw o.version++,p}finally{mu=l,uy=a,lSt(r),r.flags&=-3}}function NSe(r,o=!1){const{dep:l,prevSub:a,nextSub:p}=r;if(a&&(a.nextSub=p,r.prevSub=void 0),p&&(p.prevSub=a,r.nextSub=void 0),l.subs===r&&(l.subs=a,!a&&l.computed)){l.computed.flags&=-5;for(let g=l.computed.deps;g;g=g.nextDep)NSe(g,!0)}!o&&!--l.sc&&l.map&&l.map.delete(l.key)}function Mfn(r){const{prevDep:o,nextDep:l}=r;o&&(o.nextDep=l,r.prevDep=void 0),l&&(l.prevDep=o,r.nextDep=void 0)}let uy=!0;const uSt=[];function HC(){uSt.push(uy),uy=!1}function KC(){const r=uSt.pop();uy=r===void 0?!0:r}function H6t(r){const{cleanup:o}=r;if(r.cleanup=void 0,o){const l=mu;mu=void 0;try{o()}finally{mu=l}}}let tz=0;class Ofn{constructor(o,l){this.sub=o,this.dep=l,this.version=l.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class jre{constructor(o){this.computed=o,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(o){if(!mu||!uy||mu===this.computed)return;let l=this.activeLink;if(l===void 0||l.sub!==mu)l=this.activeLink=new Ofn(mu,this),mu.deps?(l.prevDep=mu.depsTail,mu.depsTail.nextDep=l,mu.depsTail=l):mu.deps=mu.depsTail=l,aSt(l);else if(l.version===-1&&(l.version=this.version,l.nextDep)){const a=l.nextDep;a.prevDep=l.prevDep,l.prevDep&&(l.prevDep.nextDep=a),l.prevDep=mu.depsTail,l.nextDep=void 0,mu.depsTail.nextDep=l,mu.depsTail=l,mu.deps===l&&(mu.deps=a)}return l}trigger(o){this.version++,tz++,this.notify(o)}notify(o){jSe();try{for(let l=this.subs;l;l=l.prevSub)l.sub.notify()&&l.sub.dep.notify()}finally{DSe()}}}function aSt(r){if(r.dep.sc++,r.sub.flags&4){const o=r.dep.computed;if(o&&!r.dep.subs){o.flags|=20;for(let a=o.deps;a;a=a.nextDep)aSt(a)}const l=r.dep.subs;l!==r&&(r.prevSub=l,l&&(l.nextSub=r)),r.dep.subs=r}}const Une=new WeakMap,xE=Symbol(""),ZCe=Symbol(""),nz=Symbol("");function O1(r,o,l){if(uy&&mu){let a=Une.get(r);a||Une.set(r,a=new Map);let p=a.get(l);p||(a.set(l,p=new jre),p.map=a,p.key=l),p.track()}}function $6(r,o,l,a,p,g){const w=Une.get(r);if(!w){tz++;return}const y=S=>{S&&S.trigger()};if(jSe(),o==="clear")w.forEach(y);else{const S=So(r),E=S&&$Se(l);if(S&&l==="length"){const I=Number(a);w.forEach((M,_)=>{(_==="length"||_===nz||!rk(_)&&_>=I)&&y(M)})}else switch((l!==void 0||w.has(void 0))&&y(w.get(l)),E&&y(w.get(nz)),o){case"add":S?E&&y(w.get("length")):(y(w.get(xE)),e_(r)&&y(w.get(ZCe)));break;case"delete":S||(y(w.get(xE)),e_(r)&&y(w.get(ZCe)));break;case"set":e_(r)&&y(w.get(xE));break}}DSe()}function _fn(r,o){const l=Une.get(r);return l&&l.get(o)}function $O(r){const o=Vl(r);return o===r?o:(O1(o,"iterate",nz),im(r)?o:o.map(_1))}function Dre(r){return O1(r=Vl(r),"iterate",nz),r}const Rfn={__proto__:null,[Symbol.iterator](){return $8e(this,Symbol.iterator,_1)},concat(...r){return $O(this).concat(...r.map(o=>So(o)?$O(o):o))},entries(){return $8e(this,"entries",r=>(r[1]=_1(r[1]),r))},every(r,o){return M6(this,"every",r,o,void 0,arguments)},filter(r,o){return M6(this,"filter",r,o,l=>l.map(_1),arguments)},find(r,o){return M6(this,"find",r,o,_1,arguments)},findIndex(r,o){return M6(this,"findIndex",r,o,void 0,arguments)},findLast(r,o){return M6(this,"findLast",r,o,_1,arguments)},findLastIndex(r,o){return M6(this,"findLastIndex",r,o,void 0,arguments)},forEach(r,o){return M6(this,"forEach",r,o,void 0,arguments)},includes(...r){return j8e(this,"includes",r)},indexOf(...r){return j8e(this,"indexOf",r)},join(r){return $O(this).join(r)},lastIndexOf(...r){return j8e(this,"lastIndexOf",r)},map(r,o){return M6(this,"map",r,o,void 0,arguments)},pop(){return sF(this,"pop")},push(...r){return sF(this,"push",r)},reduce(r,...o){return K6t(this,"reduce",r,o)},reduceRight(r,...o){return K6t(this,"reduceRight",r,o)},shift(){return sF(this,"shift")},some(r,o){return M6(this,"some",r,o,void 0,arguments)},splice(...r){return sF(this,"splice",r)},toReversed(){return $O(this).toReversed()},toSorted(r){return $O(this).toSorted(r)},toSpliced(...r){return $O(this).toSpliced(...r)},unshift(...r){return sF(this,"unshift",r)},values(){return $8e(this,"values",_1)}};function $8e(r,o,l){const a=Dre(r),p=a[o]();return a!==r&&!im(r)&&(p._next=p.next,p.next=()=>{const g=p._next();return g.value&&(g.value=l(g.value)),g}),p}const Afn=Array.prototype;function M6(r,o,l,a,p,g){const w=Dre(r),y=w!==r&&!im(r),S=w[o];if(S!==Afn[o]){const M=S.apply(r,g);return y?_1(M):M}let E=l;w!==r&&(y?E=function(M,_){return l.call(this,_1(M),_,r)}:l.length>2&&(E=function(M,_){return l.call(this,M,_,r)}));const I=S.call(w,E,a);return y&&p?p(I):I}function K6t(r,o,l,a){const p=Dre(r);let g=l;return p!==r&&(im(r)?l.length>3&&(g=function(w,y,S){return l.call(this,w,y,S,r)}):g=function(w,y,S){return l.call(this,w,_1(y),S,r)}),p[o](g,...a)}function j8e(r,o,l){const a=Vl(r);O1(a,"iterate",nz);const p=a[o](...l);return(p===-1||p===!1)&&zSe(l[0])?(l[0]=Vl(l[0]),a[o](...l)):p}function sF(r,o,l=[]){HC(),jSe();const a=Vl(r)[o].apply(r,l);return DSe(),KC(),a}const Lfn=RSe("__proto__,__v_isRef,__isVue"),fSt=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(rk));function $fn(r){rk(r)||(r=String(r));const o=Vl(this);return O1(o,"has",r),o.hasOwnProperty(r)}class dSt{constructor(o=!1,l=!1){this._isReadonly=o,this._isShallow=l}get(o,l,a){if(l==="__v_skip")return o.__v_skip;const p=this._isReadonly,g=this._isShallow;if(l==="__v_isReactive")return!p;if(l==="__v_isReadonly")return p;if(l==="__v_isShallow")return g;if(l==="__v_raw")return a===(p?g?Gfn:bSt:g?gSt:pSt).get(o)||Object.getPrototypeOf(o)===Object.getPrototypeOf(a)?o:void 0;const w=So(o);if(!p){let S;if(w&&(S=Rfn[l]))return S;if(l==="hasOwnProperty")return $fn}const y=Reflect.get(o,l,Ef(o)?o:a);return(rk(l)?fSt.has(l):Lfn(l))||(p||O1(o,"get",l),g)?y:Ef(y)?w&&$Se(l)?y:y.value:yu(y)?p?hH(y):$E(y):y}}class hSt extends dSt{constructor(o=!1){super(!1,o)}set(o,l,a,p){let g=o[l];if(!this._isShallow){const S=jE(g);if(!im(a)&&!jE(a)&&(g=Vl(g),a=Vl(a)),!So(o)&&Ef(g)&&!Ef(a))return S?!1:(g.value=a,!0)}const w=So(o)&&$Se(l)?Number(l)r,Nte=r=>Reflect.getPrototypeOf(r);function Ffn(r,o,l){return function(...a){const p=this.__v_raw,g=Vl(p),w=e_(g),y=r==="entries"||r===Symbol.iterator&&w,S=r==="keys"&&w,E=p[r](...a),I=l?e7e:o?t7e:_1;return!o&&O1(g,"iterate",S?ZCe:xE),{next(){const{value:M,done:_}=E.next();return _?{value:M,done:_}:{value:y?[I(M[0]),I(M[1])]:I(M),done:_}},[Symbol.iterator](){return this}}}}function Bte(r){return function(...o){return r==="delete"?!1:r==="clear"?void 0:this}}function zfn(r,o){const l={get(p){const g=this.__v_raw,w=Vl(g),y=Vl(p);r||(G6(p,y)&&O1(w,"get",p),O1(w,"get",y));const{has:S}=Nte(w),E=o?e7e:r?t7e:_1;if(S.call(w,p))return E(g.get(p));if(S.call(w,y))return E(g.get(y));g!==w&&g.get(p)},get size(){const p=this.__v_raw;return!r&&O1(Vl(p),"iterate",xE),Reflect.get(p,"size",p)},has(p){const g=this.__v_raw,w=Vl(g),y=Vl(p);return r||(G6(p,y)&&O1(w,"has",p),O1(w,"has",y)),p===y?g.has(p):g.has(p)||g.has(y)},forEach(p,g){const w=this,y=w.__v_raw,S=Vl(y),E=o?e7e:r?t7e:_1;return!r&&O1(S,"iterate",xE),y.forEach((I,M)=>p.call(g,E(I),E(M),w))}};return Xf(l,r?{add:Bte("add"),set:Bte("set"),delete:Bte("delete"),clear:Bte("clear")}:{add(p){!o&&!im(p)&&!jE(p)&&(p=Vl(p));const g=Vl(this);return Nte(g).has.call(g,p)||(g.add(p),$6(g,"add",p,p)),this},set(p,g){!o&&!im(g)&&!jE(g)&&(g=Vl(g));const w=Vl(this),{has:y,get:S}=Nte(w);let E=y.call(w,p);E||(p=Vl(p),E=y.call(w,p));const I=S.call(w,p);return w.set(p,g),E?G6(g,I)&&$6(w,"set",p,g):$6(w,"add",p,g),this},delete(p){const g=Vl(this),{has:w,get:y}=Nte(g);let S=w.call(g,p);S||(p=Vl(p),S=w.call(g,p)),y&&y.call(g,p);const E=g.delete(p);return S&&$6(g,"delete",p,void 0),E},clear(){const p=Vl(this),g=p.size!==0,w=p.clear();return g&&$6(p,"clear",void 0,void 0),w}}),["keys","values","entries",Symbol.iterator].forEach(p=>{l[p]=Ffn(p,r,o)}),l}function BSe(r,o){const l=zfn(r,o);return(a,p,g)=>p==="__v_isReactive"?!r:p==="__v_isReadonly"?r:p==="__v_raw"?a:Reflect.get(pc(l,p)&&p in a?l:a,p,g)}const Hfn={get:BSe(!1,!1)},Kfn={get:BSe(!1,!0)},Ufn={get:BSe(!0,!1)};const pSt=new WeakMap,gSt=new WeakMap,bSt=new WeakMap,Gfn=new WeakMap;function Wfn(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vfn(r){return r.__v_skip||!Object.isExtensible(r)?0:Wfn(mfn(r))}function $E(r){return jE(r)?r:FSe(r,!1,Dfn,Hfn,pSt)}function qfn(r){return FSe(r,!1,Bfn,Kfn,gSt)}function hH(r){return FSe(r,!0,Nfn,Ufn,bSt)}function FSe(r,o,l,a,p){if(!yu(r)||r.__v_raw&&!(o&&r.__v_isReactive))return r;const g=p.get(r);if(g)return g;const w=Vfn(r);if(w===0)return r;const y=new Proxy(r,w===2?a:l);return p.set(r,y),y}function t_(r){return jE(r)?t_(r.__v_raw):!!(r&&r.__v_isReactive)}function jE(r){return!!(r&&r.__v_isReadonly)}function im(r){return!!(r&&r.__v_isShallow)}function zSe(r){return r?!!r.__v_raw:!1}function Vl(r){const o=r&&r.__v_raw;return o?Vl(o):r}function EE(r){return!pc(r,"__v_skip")&&Object.isExtensible(r)&&J7t(r,"__v_skip",!0),r}const _1=r=>yu(r)?$E(r):r,t7e=r=>yu(r)?hH(r):r;function Ef(r){return r?r.__v_isRef===!0:!1}function Co(r){return Xfn(r,!1)}function Xfn(r,o){return Ef(r)?r:new Yfn(r,o)}class Yfn{constructor(o,l){this.dep=new jre,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=l?o:Vl(o),this._value=l?o:_1(o),this.__v_isShallow=l}get value(){return this.dep.track(),this._value}set value(o){const l=this._rawValue,a=this.__v_isShallow||im(o)||jE(o);o=a?o:Vl(o),G6(o,l)&&(this._rawValue=o,this._value=a?o:_1(o),this.dep.trigger())}}function Lr(r){return Ef(r)?r.value:r}function Wl(r){return Go(r)?r():Lr(r)}const Jfn={get:(r,o,l)=>o==="__v_raw"?r:Lr(Reflect.get(r,o,l)),set:(r,o,l,a)=>{const p=r[o];return Ef(p)&&!Ef(l)?(p.value=l,!0):Reflect.set(r,o,l,a)}};function wSt(r){return t_(r)?r:new Proxy(r,Jfn)}class Qfn{constructor(o){this.__v_isRef=!0,this._value=void 0;const l=this.dep=new jre,{get:a,set:p}=o(l.track.bind(l),l.trigger.bind(l));this._get=a,this._set=p}get value(){return this._value=this._get()}set value(o){this._set(o)}}function Zfn(r){return new Qfn(r)}function edn(r){const o=So(r)?new Array(r.length):{};for(const l in r)o[l]=mSt(r,l);return o}class tdn{constructor(o,l,a){this._object=o,this._key=l,this._defaultValue=a,this.__v_isRef=!0,this._value=void 0}get value(){const o=this._object[this._key];return this._value=o===void 0?this._defaultValue:o}set value(o){this._object[this._key]=o}get dep(){return _fn(Vl(this._object),this._key)}}class ndn{constructor(o){this._getter=o,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ia(r,o,l){return Ef(r)?r:Go(r)?new ndn(r):yu(r)&&arguments.length>1?mSt(r,o,l):Co(r)}function mSt(r,o,l){const a=r[o];return Ef(a)?a:new tdn(r,o,l)}class rdn{constructor(o,l,a){this.fn=o,this.setter=l,this._value=void 0,this.dep=new jre(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=tz-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!l,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&mu!==this)return oSt(this,!0),!0}get value(){const o=this.dep.track();return cSt(this),o&&(o.version=this.dep.version),this._value}set value(o){this.setter&&this.setter(o)}}function idn(r,o,l=!1){let a,p;return Go(r)?a=r:(a=r.get,p=r.set),new rdn(a,p,l)}const Fte={},Gne=new WeakMap;let fE;function odn(r,o=!1,l=fE){if(l){let a=Gne.get(l);a||Gne.set(l,a=[]),a.push(r)}}function sdn(r,o,l=ou){const{immediate:a,deep:p,once:g,scheduler:w,augmentJob:y,call:S}=l,E=ie=>p?ie:im(ie)||p===!1||p===0?j6(ie,1):j6(ie);let I,M,_,R,j=!1,K=!1;if(Ef(r)?(M=()=>r.value,j=im(r)):t_(r)?(M=()=>E(r),j=!0):So(r)?(K=!0,j=r.some(ie=>t_(ie)||im(ie)),M=()=>r.map(ie=>{if(Ef(ie))return ie.value;if(t_(ie))return E(ie);if(Go(ie))return S?S(ie,2):ie()})):Go(r)?o?M=S?()=>S(r,2):r:M=()=>{if(_){HC();try{_()}finally{KC()}}const ie=fE;fE=I;try{return S?S(r,3,[R]):r(R)}finally{fE=ie}}:M=m3,o&&p){const ie=M,je=p===!0?1/0:p;M=()=>j6(ie(),je)}const q=$re(),Q=()=>{I.stop(),q&&q.active&&LSe(q.effects,I)};if(g&&o){const ie=o;o=(...je)=>{ie(...je),Q()}}let Z=K?new Array(r.length).fill(Fte):Fte;const X=ie=>{if(!(!(I.flags&1)||!I.dirty&&!ie))if(o){const je=I.run();if(p||j||(K?je.some((et,mt)=>G6(et,Z[mt])):G6(je,Z))){_&&_();const et=fE;fE=I;try{const mt=[je,Z===Fte?void 0:K&&Z[0]===Fte?[]:Z,R];S?S(o,3,mt):o(...mt),Z=je}finally{fE=et}}}else I.run()};return y&&y(X),I=new rSt(M),I.scheduler=w?()=>w(X,!1):X,R=ie=>odn(ie,!1,I),_=I.onStop=()=>{const ie=Gne.get(I);if(ie){if(S)S(ie,4);else for(const je of ie)je();Gne.delete(I)}},o?a?X(!0):Z=I.run():w?w(X.bind(null,!0),!0):I.run(),Q.pause=I.pause.bind(I),Q.resume=I.resume.bind(I),Q.stop=Q,Q}function j6(r,o=1/0,l){if(o<=0||!yu(r)||r.__v_skip||(l=l||new Set,l.has(r)))return r;if(l.add(r),o--,Ef(r))j6(r.value,o,l);else if(So(r))for(let a=0;a{j6(a,o,l)});else if(Y7t(r)){for(const a in r)j6(r[a],o,l);for(const a of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,a)&&j6(r[a],o,l)}return r}/** -* @vue/runtime-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function pH(r,o,l,a){try{return a?r(...a):r()}catch(p){Nre(p,o,l)}}function ay(r,o,l,a){if(Go(r)){const p=pH(r,o,l,a);return p&&q7t(p)&&p.catch(g=>{Nre(g,o,l)}),p}if(So(r)){const p=[];for(let g=0;g>>1,p=Ap[a],g=rz(p);g=rz(l)?Ap.push(r):Ap.splice(cdn(o),0,r),r.flags|=1,ySt()}}function ySt(){Wne||(Wne=vSt.then(CSt))}function udn(r){So(r)?n_.push(...r):pC&&r.id===-1?pC.splice(zO+1,0,r):r.flags&1||(n_.push(r),r.flags|=1),ySt()}function U6t(r,o,l=u3+1){for(;lrz(l)-rz(a));if(n_.length=0,pC){pC.push(...o);return}for(pC=o,zO=0;zOr.id==null?r.flags&2?-1:1/0:r.id;function CSt(r){try{for(u3=0;u3{a._d&&rkt(-1);const g=Vne(o);let w;try{w=r(...p)}finally{Vne(g),a._d&&rkt(1)}return w};return a._n=!0,a._c=!0,a._d=!0,a}function dy(r,o){if(ph===null)return r;const l=Gre(ph),a=r.dirs||(r.dirs=[]);for(let p=0;pr.__isTeleport,LF=r=>r&&(r.disabled||r.disabled===""),G6t=r=>r&&(r.defer||r.defer===""),W6t=r=>typeof SVGElement<"u"&&r instanceof SVGElement,V6t=r=>typeof MathMLElement=="function"&&r instanceof MathMLElement,n7e=(r,o)=>{const l=r&&r.to;return Zu(l)?o?o(l):null:l},TSt={name:"Teleport",__isTeleport:!0,process(r,o,l,a,p,g,w,y,S,E){const{mc:I,pc:M,pbc:_,o:{insert:R,querySelector:j,createText:K,createComment:q}}=E,Q=LF(o.props);let{shapeFlag:Z,children:X,dynamicChildren:ie}=o;if(r==null){const je=o.el=K(""),et=o.anchor=K("");R(je,l,a),R(et,l,a);const mt=(ce,Be)=>{Z&16&&(p&&p.isCE&&(p.ce._teleportTarget=ce),I(X,ce,Be,p,g,w,y,S))},bt=()=>{const ce=o.target=n7e(o.props,j),Be=ISt(ce,o,K,R);ce&&(w!=="svg"&&W6t(ce)?w="svg":w!=="mathml"&&V6t(ce)&&(w="mathml"),Q||(mt(ce,Be),mne(o,!1)))};Q&&(mt(l,et),mne(o,!0)),G6t(o.props)?_p(()=>{bt(),o.el.__isMounted=!0},g):bt()}else{if(G6t(o.props)&&!r.el.__isMounted){_p(()=>{TSt.process(r,o,l,a,p,g,w,y,S,E),delete r.el.__isMounted},g);return}o.el=r.el,o.targetStart=r.targetStart;const je=o.anchor=r.anchor,et=o.target=r.target,mt=o.targetAnchor=r.targetAnchor,bt=LF(r.props),ce=bt?l:et,Be=bt?je:mt;if(w==="svg"||W6t(et)?w="svg":(w==="mathml"||V6t(et))&&(w="mathml"),ie?(_(r.dynamicChildren,ie,ce,p,g,w,y),VSe(r,o,!0)):S||M(r,o,ce,Be,p,g,w,y,!1),Q)bt?o.props&&r.props&&o.props.to!==r.props.to&&(o.props.to=r.props.to):zte(o,l,je,E,1);else if((o.props&&o.props.to)!==(r.props&&r.props.to)){const ae=o.target=n7e(o.props,j);ae&&zte(o,ae,null,E,0)}else bt&&zte(o,et,mt,E,1);mne(o,Q)}},remove(r,o,l,{um:a,o:{remove:p}},g){const{shapeFlag:w,children:y,anchor:S,targetStart:E,targetAnchor:I,target:M,props:_}=r;if(M&&(p(E),p(I)),g&&p(S),w&16){const R=g||!LF(_);for(let j=0;j{r.isMounted=!0}),zre(()=>{r.isUnmounting=!0}),r}const Jw=[Function,Array],PSt={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Jw,onEnter:Jw,onAfterEnter:Jw,onEnterCancelled:Jw,onBeforeLeave:Jw,onLeave:Jw,onAfterLeave:Jw,onLeaveCancelled:Jw,onBeforeAppear:Jw,onAppear:Jw,onAfterAppear:Jw,onAppearCancelled:Jw},MSt=r=>{const o=r.subTree;return o.component?MSt(o.component):o},hdn={name:"BaseTransition",props:PSt,setup(r,{slots:o}){const l=UC(),a=ddn();return()=>{const p=o.default&&RSt(o.default(),!0);if(!p||!p.length)return;const g=OSt(p),w=Vl(r),{mode:y}=w;if(a.isLeaving)return D8e(g);const S=q6t(g);if(!S)return D8e(g);let E=r7e(S,w,a,l,M=>E=M);S.type!==Lp&&iz(S,E);let I=l.subTree&&q6t(l.subTree);if(I&&I.type!==Lp&&!pE(S,I)&&MSt(l).type!==Lp){let M=r7e(I,w,a,l);if(iz(I,M),y==="out-in"&&S.type!==Lp)return a.isLeaving=!0,M.afterLeave=()=>{a.isLeaving=!1,l.job.flags&8||l.update(),delete M.afterLeave,I=void 0},D8e(g);y==="in-out"&&S.type!==Lp?M.delayLeave=(_,R,j)=>{const K=_St(a,I);K[String(I.key)]=I,_[gC]=()=>{R(),_[gC]=void 0,delete E.delayedLeave,I=void 0},E.delayedLeave=()=>{j(),delete E.delayedLeave,I=void 0}}:I=void 0}else I&&(I=void 0);return g}}};function OSt(r){let o=r[0];if(r.length>1){for(const l of r)if(l.type!==Lp){o=l;break}}return o}const pdn=hdn;function _St(r,o){const{leavingVNodes:l}=r;let a=l.get(o.type);return a||(a=Object.create(null),l.set(o.type,a)),a}function r7e(r,o,l,a,p){const{appear:g,mode:w,persisted:y=!1,onBeforeEnter:S,onEnter:E,onAfterEnter:I,onEnterCancelled:M,onBeforeLeave:_,onLeave:R,onAfterLeave:j,onLeaveCancelled:K,onBeforeAppear:q,onAppear:Q,onAfterAppear:Z,onAppearCancelled:X}=o,ie=String(r.key),je=_St(l,r),et=(ce,Be)=>{ce&&ay(ce,a,9,Be)},mt=(ce,Be)=>{const ae=Be[1];et(ce,Be),So(ce)?ce.every(xe=>xe.length<=1)&&ae():ce.length<=1&&ae()},bt={mode:w,persisted:y,beforeEnter(ce){let Be=S;if(!l.isMounted)if(g)Be=q||S;else return;ce[gC]&&ce[gC](!0);const ae=je[ie];ae&&pE(r,ae)&&ae.el[gC]&&ae.el[gC](),et(Be,[ce])},enter(ce){let Be=E,ae=I,xe=M;if(!l.isMounted)if(g)Be=Q||E,ae=Z||I,xe=X||M;else return;let U=!1;const He=ce[Hte]=yt=>{U||(U=!0,yt?et(xe,[ce]):et(ae,[ce]),bt.delayedLeave&&bt.delayedLeave(),ce[Hte]=void 0)};Be?mt(Be,[ce,He]):He()},leave(ce,Be){const ae=String(r.key);if(ce[Hte]&&ce[Hte](!0),l.isUnmounting)return Be();et(_,[ce]);let xe=!1;const U=ce[gC]=He=>{xe||(xe=!0,Be(),He?et(K,[ce]):et(j,[ce]),ce[gC]=void 0,je[ae]===r&&delete je[ae])};je[ae]=r,R?mt(R,[ce,U]):U()},clone(ce){const Be=r7e(ce,o,l,a,p);return p&&p(Be),Be}};return bt}function D8e(r){if(Bre(r))return r=RC(r),r.children=null,r}function q6t(r){if(!Bre(r))return ESt(r.type)&&r.children?OSt(r.children):r;const{shapeFlag:o,children:l}=r;if(l){if(o&16)return l[0];if(o&32&&Go(l.default))return l.default()}}function iz(r,o){r.shapeFlag&6&&r.component?(r.transition=o,iz(r.component.subTree,o)):r.shapeFlag&128?(r.ssContent.transition=o.clone(r.ssContent),r.ssFallback.transition=o.clone(r.ssFallback)):r.transition=o}function RSt(r,o=!1,l){let a=[],p=0;for(let g=0;g1)for(let g=0;gqne(j,o&&(So(o)?o[K]:o),l,a,p));return}if(r_(a)&&!p){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&qne(r,o,l,a.component.subTree);return}const g=a.shapeFlag&4?Gre(a.component):a.el,w=p?null:g,{i:y,r:S}=r,E=o&&o.r,I=y.refs===ou?y.refs={}:y.refs,M=y.setupState,_=Vl(M),R=M===ou?()=>!1:j=>pc(_,j);if(E!=null&&E!==S&&(Zu(E)?(I[E]=null,R(E)&&(M[E]=null)):Ef(E)&&(E.value=null)),Go(S))pH(S,y,12,[w,I]);else{const j=Zu(S),K=Ef(S);if(j||K){const q=()=>{if(r.f){const Q=j?R(S)?M[S]:I[S]:S.value;p?So(Q)&&LSe(Q,g):So(Q)?Q.includes(g)||Q.push(g):j?(I[S]=[g],R(S)&&(M[S]=I[S])):(S.value=[g],r.k&&(I[r.k]=S.value))}else j?(I[S]=w,R(S)&&(M[S]=w)):K&&(S.value=w,r.k&&(I[r.k]=w))};w?(q.id=-1,_p(q,l)):q()}}}Lre().requestIdleCallback;Lre().cancelIdleCallback;const r_=r=>!!r.type.__asyncLoader,Bre=r=>r.type.__isKeepAlive;function gdn(r,o){LSt(r,"a",o)}function bdn(r,o){LSt(r,"da",o)}function LSt(r,o,l=Gh){const a=r.__wdc||(r.__wdc=()=>{let p=l;for(;p;){if(p.isDeactivated)return;p=p.parent}return r()});if(Fre(o,a,l),l){let p=l.parent;for(;p&&p.parent;)Bre(p.parent.vnode)&&wdn(a,o,l,p),p=p.parent}}function wdn(r,o,l,a){const p=Fre(o,r,a,!0);Hre(()=>{LSe(a[o],p)},l)}function Fre(r,o,l=Gh,a=!1){if(l){const p=l[r]||(l[r]=[]),g=o.__weh||(o.__weh=(...w)=>{HC();const y=gH(l),S=ay(o,l,r,w);return y(),KC(),S});return a?p.unshift(g):p.push(g),g}}const ik=r=>(o,l=Gh)=>{(!lz||r==="sp")&&Fre(r,(...a)=>o(...a),l)},$St=ik("bm"),bb=ik("m"),mdn=ik("bu"),vdn=ik("u"),zre=ik("bum"),Hre=ik("um"),ydn=ik("sp"),kdn=ik("rtg"),Cdn=ik("rtc");function Sdn(r,o=Gh){Fre("ec",r,o)}const KSe="components",xdn="directives";function ki(r,o){return USe(KSe,r,!0,o)||r}const jSt=Symbol.for("v-ndc");function ko(r){return Zu(r)?USe(KSe,r,!1)||r:r||jSt}function hy(r){return USe(xdn,r)}function USe(r,o,l=!0,a=!1){const p=ph||Gh;if(p){const g=p.type;if(r===KSe){const y=uhn(g,!1);if(y&&(y===o||y===cm(o)||y===Are(cm(o))))return g}const w=X6t(p[r]||g[r],o)||X6t(p.appContext[r],o);return!w&&a?g:w}}function X6t(r,o){return r&&(r[o]||r[cm(o)]||r[Are(cm(o))])}function Mu(r,o,l,a){let p;const g=l&&l[a],w=So(r);if(w||Zu(r)){const y=w&&t_(r);let S=!1;y&&(S=!im(r),r=Dre(r)),p=new Array(r.length);for(let E=0,I=r.length;Eo(y,S,void 0,g&&g[S]));else{const y=Object.keys(r);p=new Array(y.length);for(let S=0,E=y.length;S{const g=a.fn(...p);return g&&(g.key=a.key),g}:a.fn)}return r}function Nr(r,o,l={},a,p){if(ph.ce||ph.parent&&r_(ph.parent)&&ph.parent.ce)return o!=="default"&&(l.name=o),ve(),Cn(si,null,[ai("slot",l,a&&a())],64);let g=r[o];g&&g._c&&(g._d=!1),ve();const w=g&&DSt(g(l)),y=l.key||w&&w.key,S=Cn(si,{key:(y&&!rk(y)?y:`_${o}`)+(!w&&a?"_fb":"")},w||(a?a():[]),w&&r._===1?64:-2);return S.scopeId&&(S.slotScopeIds=[S.scopeId+"-s"]),g&&g._c&&(g._d=!0),S}function DSt(r){return r.some(o=>sz(o)?!(o.type===Lp||o.type===si&&!DSt(o.children)):!0)?r:null}function Kte(r,o){const l={};for(const a in r)l[/[A-Z]/.test(a)?`on:${a}`:wne(a)]=r[a];return l}const i7e=r=>r?i9t(r)?Gre(r):i7e(r.parent):null,$F=Xf(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>i7e(r.parent),$root:r=>i7e(r.root),$host:r=>r.ce,$emit:r=>r.emit,$options:r=>GSe(r),$forceUpdate:r=>r.f||(r.f=()=>{HSe(r.update)}),$nextTick:r=>r.n||(r.n=om.bind(r.proxy)),$watch:r=>Vdn.bind(r)}),N8e=(r,o)=>r!==ou&&!r.__isScriptSetup&&pc(r,o),Edn={get({_:r},o){if(o==="__v_skip")return!0;const{ctx:l,setupState:a,data:p,props:g,accessCache:w,type:y,appContext:S}=r;let E;if(o[0]!=="$"){const R=w[o];if(R!==void 0)switch(R){case 1:return a[o];case 2:return p[o];case 4:return l[o];case 3:return g[o]}else{if(N8e(a,o))return w[o]=1,a[o];if(p!==ou&&pc(p,o))return w[o]=2,p[o];if((E=r.propsOptions[0])&&pc(E,o))return w[o]=3,g[o];if(l!==ou&&pc(l,o))return w[o]=4,l[o];o7e&&(w[o]=0)}}const I=$F[o];let M,_;if(I)return o==="$attrs"&&O1(r.attrs,"get",""),I(r);if((M=y.__cssModules)&&(M=M[o]))return M;if(l!==ou&&pc(l,o))return w[o]=4,l[o];if(_=S.config.globalProperties,pc(_,o))return _[o]},set({_:r},o,l){const{data:a,setupState:p,ctx:g}=r;return N8e(p,o)?(p[o]=l,!0):a!==ou&&pc(a,o)?(a[o]=l,!0):pc(r.props,o)||o[0]==="$"&&o.slice(1)in r?!1:(g[o]=l,!0)},has({_:{data:r,setupState:o,accessCache:l,ctx:a,appContext:p,propsOptions:g}},w){let y;return!!l[w]||r!==ou&&pc(r,w)||N8e(o,w)||(y=g[0])&&pc(y,w)||pc(a,w)||pc($F,w)||pc(p.config.globalProperties,w)},defineProperty(r,o,l){return l.get!=null?r._.accessCache[o]=0:pc(l,"value")&&this.set(r,o,l.value,null),Reflect.defineProperty(r,o,l)}};function Tdn(){return NSt().slots}function Idn(){return NSt().attrs}function NSt(){const r=UC();return r.setupContext||(r.setupContext=s9t(r))}function Y6t(r){return So(r)?r.reduce((o,l)=>(o[l]=null,o),{}):r}function BSt(r,o){const l={};for(const a in r)o.includes(a)||Object.defineProperty(l,a,{enumerable:!0,get:()=>r[a]});return l}let o7e=!0;function Pdn(r){const o=GSe(r),l=r.proxy,a=r.ctx;o7e=!1,o.beforeCreate&&J6t(o.beforeCreate,r,"bc");const{data:p,computed:g,methods:w,watch:y,provide:S,inject:E,created:I,beforeMount:M,mounted:_,beforeUpdate:R,updated:j,activated:K,deactivated:q,beforeDestroy:Q,beforeUnmount:Z,destroyed:X,unmounted:ie,render:je,renderTracked:et,renderTriggered:mt,errorCaptured:bt,serverPrefetch:ce,expose:Be,inheritAttrs:ae,components:xe,directives:U,filters:He}=o;if(E&&Mdn(E,a,null),w)for(const At in w){const Jt=w[At];Go(Jt)&&(a[At]=Jt.bind(l))}if(p){const At=p.call(l,l);yu(At)&&(r.data=$E(At))}if(o7e=!0,g)for(const At in g){const Jt=g[At],un=Go(Jt)?Jt.bind(l,l):Go(Jt.get)?Jt.get.bind(l,l):m3,kn=!Go(Jt)&&Go(Jt.set)?Jt.set.bind(l):m3,qt=ho({get:un,set:kn});Object.defineProperty(a,At,{enumerable:!0,configurable:!0,get:()=>qt.value,set:on=>qt.value=on})}if(y)for(const At in y)FSt(y[At],a,l,At);if(S){const At=Go(S)?S.call(l):S;Reflect.ownKeys(At).forEach(Jt=>{DE(Jt,At[Jt])})}I&&J6t(I,r,"c");function ft(At,Jt){So(Jt)?Jt.forEach(un=>At(un.bind(l))):Jt&&At(Jt.bind(l))}if(ft($St,M),ft(bb,_),ft(mdn,R),ft(vdn,j),ft(gdn,K),ft(bdn,q),ft(Sdn,bt),ft(Cdn,et),ft(kdn,mt),ft(zre,Z),ft(Hre,ie),ft(ydn,ce),So(Be))if(Be.length){const At=r.exposed||(r.exposed={});Be.forEach(Jt=>{Object.defineProperty(At,Jt,{get:()=>l[Jt],set:un=>l[Jt]=un})})}else r.exposed||(r.exposed={});je&&r.render===m3&&(r.render=je),ae!=null&&(r.inheritAttrs=ae),xe&&(r.components=xe),U&&(r.directives=U),ce&&ASt(r)}function Mdn(r,o,l=m3){So(r)&&(r=s7e(r));for(const a in r){const p=r[a];let g;yu(p)?"default"in p?g=v3(p.from||a,p.default,!0):g=v3(p.from||a):g=v3(p),Ef(g)?Object.defineProperty(o,a,{enumerable:!0,configurable:!0,get:()=>g.value,set:w=>g.value=w}):o[a]=g}}function J6t(r,o,l){ay(So(r)?r.map(a=>a.bind(o.proxy)):r.bind(o.proxy),o,l)}function FSt(r,o,l,a){let p=a.includes(".")?ZSt(l,a):()=>l[a];if(Zu(r)){const g=o[r];Go(g)&&Os(p,g)}else if(Go(r))Os(p,r.bind(l));else if(yu(r))if(So(r))r.forEach(g=>FSt(g,o,l,a));else{const g=Go(r.handler)?r.handler.bind(l):o[r.handler];Go(g)&&Os(p,g,r)}}function GSe(r){const o=r.type,{mixins:l,extends:a}=o,{mixins:p,optionsCache:g,config:{optionMergeStrategies:w}}=r.appContext,y=g.get(o);let S;return y?S=y:!p.length&&!l&&!a?S=o:(S={},p.length&&p.forEach(E=>Xne(S,E,w,!0)),Xne(S,o,w)),yu(o)&&g.set(o,S),S}function Xne(r,o,l,a=!1){const{mixins:p,extends:g}=o;g&&Xne(r,g,l,!0),p&&p.forEach(w=>Xne(r,w,l,!0));for(const w in o)if(!(a&&w==="expose")){const y=Odn[w]||l&&l[w];r[w]=y?y(r[w],o[w]):o[w]}return r}const Odn={data:Q6t,props:Z6t,emits:Z6t,methods:mF,computed:mF,beforeCreate:Op,created:Op,beforeMount:Op,mounted:Op,beforeUpdate:Op,updated:Op,beforeDestroy:Op,beforeUnmount:Op,destroyed:Op,unmounted:Op,activated:Op,deactivated:Op,errorCaptured:Op,serverPrefetch:Op,components:mF,directives:mF,watch:Rdn,provide:Q6t,inject:_dn};function Q6t(r,o){return o?r?function(){return Xf(Go(r)?r.call(this,this):r,Go(o)?o.call(this,this):o)}:o:r}function _dn(r,o){return mF(s7e(r),s7e(o))}function s7e(r){if(So(r)){const o={};for(let l=0;l1)return l&&Go(o)?o.call(a&&a.proxy):o}}const HSt={},KSt=()=>Object.create(HSt),USt=r=>Object.getPrototypeOf(r)===HSt;function $dn(r,o,l,a=!1){const p={},g=KSt();r.propsDefaults=Object.create(null),GSt(r,o,p,g);for(const w in r.propsOptions[0])w in p||(p[w]=void 0);l?r.props=a?p:qfn(p):r.type.props?r.props=p:r.props=g,r.attrs=g}function jdn(r,o,l,a){const{props:p,attrs:g,vnode:{patchFlag:w}}=r,y=Vl(p),[S]=r.propsOptions;let E=!1;if((a||w>0)&&!(w&16)){if(w&8){const I=r.vnode.dynamicProps;for(let M=0;M{S=!0;const[_,R]=WSt(M,o,!0);Xf(w,_),R&&y.push(...R)};!l&&o.mixins.length&&o.mixins.forEach(I),r.extends&&I(r.extends),r.mixins&&r.mixins.forEach(I)}if(!g&&!S)return yu(r)&&a.set(r,ZO),ZO;if(So(g))for(let I=0;Ir[0]==="_"||r==="$stable",WSe=r=>So(r)?r.map(p3):[p3(r)],Ndn=(r,o,l)=>{if(o._n)return o;const a=ui((...p)=>WSe(o(...p)),l);return a._c=!1,a},qSt=(r,o,l)=>{const a=r._ctx;for(const p in r){if(VSt(p))continue;const g=r[p];if(Go(g))o[p]=Ndn(p,g,a);else if(g!=null){const w=WSe(g);o[p]=()=>w}}},XSt=(r,o)=>{const l=WSe(o);r.slots.default=()=>l},YSt=(r,o,l)=>{for(const a in o)(l||a!=="_")&&(r[a]=o[a])},Bdn=(r,o,l)=>{const a=r.slots=KSt();if(r.vnode.shapeFlag&32){const p=o._;p?(YSt(a,o,l),l&&J7t(a,"_",p,!0)):qSt(o,a)}else o&&XSt(r,o)},Fdn=(r,o,l)=>{const{vnode:a,slots:p}=r;let g=!0,w=ou;if(a.shapeFlag&32){const y=o._;y?l&&y===1?g=!1:YSt(p,o,l):(g=!o.$stable,qSt(o,p)),w=o}else o&&(XSt(r,o),w={default:1});if(g)for(const y in p)!VSt(y)&&w[y]==null&&delete p[y]},_p=ehn;function zdn(r){return Hdn(r)}function Hdn(r,o){const l=Lre();l.__VUE__=!0;const{insert:a,remove:p,patchProp:g,createElement:w,createText:y,createComment:S,setText:E,setElementText:I,parentNode:M,nextSibling:_,setScopeId:R=m3,insertStaticContent:j}=r,K=(ee,V,oe,ue=null,ge=null,Ge=null,$t=void 0,Lt=null,tn=!!V.dynamicChildren)=>{if(ee===V)return;ee&&!pE(ee,V)&&(ue=Ze(ee),on(ee,ge,Ge,!0),ee=null),V.patchFlag===-2&&(tn=!1,V.dynamicChildren=null);const{type:Ct,ref:Kn,shapeFlag:dn}=V;switch(Ct){case Ure:q(ee,V,oe,ue);break;case Lp:Q(ee,V,oe,ue);break;case z8e:ee==null&&Z(V,oe,ue,$t);break;case si:xe(ee,V,oe,ue,ge,Ge,$t,Lt,tn);break;default:dn&1?je(ee,V,oe,ue,ge,Ge,$t,Lt,tn):dn&6?U(ee,V,oe,ue,ge,Ge,$t,Lt,tn):(dn&64||dn&128)&&Ct.process(ee,V,oe,ue,ge,Ge,$t,Lt,tn,pr)}Kn!=null&&ge&&qne(Kn,ee&&ee.ref,Ge,V||ee,!V)},q=(ee,V,oe,ue)=>{if(ee==null)a(V.el=y(V.children),oe,ue);else{const ge=V.el=ee.el;V.children!==ee.children&&E(ge,V.children)}},Q=(ee,V,oe,ue)=>{ee==null?a(V.el=S(V.children||""),oe,ue):V.el=ee.el},Z=(ee,V,oe,ue)=>{[ee.el,ee.anchor]=j(ee.children,V,oe,ue,ee.el,ee.anchor)},X=({el:ee,anchor:V},oe,ue)=>{let ge;for(;ee&&ee!==V;)ge=_(ee),a(ee,oe,ue),ee=ge;a(V,oe,ue)},ie=({el:ee,anchor:V})=>{let oe;for(;ee&&ee!==V;)oe=_(ee),p(ee),ee=oe;p(V)},je=(ee,V,oe,ue,ge,Ge,$t,Lt,tn)=>{V.type==="svg"?$t="svg":V.type==="math"&&($t="mathml"),ee==null?et(V,oe,ue,ge,Ge,$t,Lt,tn):ce(ee,V,ge,Ge,$t,Lt,tn)},et=(ee,V,oe,ue,ge,Ge,$t,Lt)=>{let tn,Ct;const{props:Kn,shapeFlag:dn,transition:Rn,dirs:br}=ee;if(tn=ee.el=w(ee.type,Ge,Kn&&Kn.is,Kn),dn&8?I(tn,ee.children):dn&16&&bt(ee.children,tn,null,ue,ge,B8e(ee,Ge),$t,Lt),br&&eE(ee,null,ue,"created"),mt(tn,ee,ee.scopeId,$t,ue),Kn){for(const G in Kn)G!=="value"&&!OF(G)&&g(tn,G,null,Kn[G],Ge,ue);"value"in Kn&&g(tn,"value",null,Kn.value,Ge),(Ct=Kn.onVnodeBeforeMount)&&l3(Ct,ue,ee)}br&&eE(ee,null,ue,"beforeMount");const de=Kdn(ge,Rn);de&&Rn.beforeEnter(tn),a(tn,V,oe),((Ct=Kn&&Kn.onVnodeMounted)||de||br)&&_p(()=>{Ct&&l3(Ct,ue,ee),de&&Rn.enter(tn),br&&eE(ee,null,ue,"mounted")},ge)},mt=(ee,V,oe,ue,ge)=>{if(oe&&R(ee,oe),ue)for(let Ge=0;Ge{for(let Ct=tn;Ct{const Lt=V.el=ee.el;let{patchFlag:tn,dynamicChildren:Ct,dirs:Kn}=V;tn|=ee.patchFlag&16;const dn=ee.props||ou,Rn=V.props||ou;let br;if(oe&&tE(oe,!1),(br=Rn.onVnodeBeforeUpdate)&&l3(br,oe,V,ee),Kn&&eE(V,ee,oe,"beforeUpdate"),oe&&tE(oe,!0),(dn.innerHTML&&Rn.innerHTML==null||dn.textContent&&Rn.textContent==null)&&I(Lt,""),Ct?Be(ee.dynamicChildren,Ct,Lt,oe,ue,B8e(V,ge),Ge):$t||Jt(ee,V,Lt,null,oe,ue,B8e(V,ge),Ge,!1),tn>0){if(tn&16)ae(Lt,dn,Rn,oe,ge);else if(tn&2&&dn.class!==Rn.class&&g(Lt,"class",null,Rn.class,ge),tn&4&&g(Lt,"style",dn.style,Rn.style,ge),tn&8){const de=V.dynamicProps;for(let G=0;G{br&&l3(br,oe,V,ee),Kn&&eE(V,ee,oe,"updated")},ue)},Be=(ee,V,oe,ue,ge,Ge,$t)=>{for(let Lt=0;Lt{if(V!==oe){if(V!==ou)for(const Ge in V)!OF(Ge)&&!(Ge in oe)&&g(ee,Ge,V[Ge],null,ge,ue);for(const Ge in oe){if(OF(Ge))continue;const $t=oe[Ge],Lt=V[Ge];$t!==Lt&&Ge!=="value"&&g(ee,Ge,Lt,$t,ge,ue)}"value"in oe&&g(ee,"value",V.value,oe.value,ge)}},xe=(ee,V,oe,ue,ge,Ge,$t,Lt,tn)=>{const Ct=V.el=ee?ee.el:y(""),Kn=V.anchor=ee?ee.anchor:y("");let{patchFlag:dn,dynamicChildren:Rn,slotScopeIds:br}=V;br&&(Lt=Lt?Lt.concat(br):br),ee==null?(a(Ct,oe,ue),a(Kn,oe,ue),bt(V.children||[],oe,Kn,ge,Ge,$t,Lt,tn)):dn>0&&dn&64&&Rn&&ee.dynamicChildren?(Be(ee.dynamicChildren,Rn,oe,ge,Ge,$t,Lt),(V.key!=null||ge&&V===ge.subTree)&&VSe(ee,V,!0)):Jt(ee,V,oe,Kn,ge,Ge,$t,Lt,tn)},U=(ee,V,oe,ue,ge,Ge,$t,Lt,tn)=>{V.slotScopeIds=Lt,ee==null?V.shapeFlag&512?ge.ctx.activate(V,oe,ue,$t,tn):He(V,oe,ue,ge,Ge,$t,tn):yt(ee,V,tn)},He=(ee,V,oe,ue,ge,Ge,$t)=>{const Lt=ee.component=ohn(ee,ue,ge);if(Bre(ee)&&(Lt.ctx.renderer=pr),shn(Lt,!1,$t),Lt.asyncDep){if(ge&&ge.registerDep(Lt,ft,$t),!ee.el){const tn=Lt.subTree=ai(Lp);Q(null,tn,V,oe)}}else ft(Lt,ee,V,oe,ge,Ge,$t)},yt=(ee,V,oe)=>{const ue=V.component=ee.component;if(Qdn(ee,V,oe))if(ue.asyncDep&&!ue.asyncResolved){At(ue,V,oe);return}else ue.next=V,ue.update();else V.el=ee.el,ue.vnode=V},ft=(ee,V,oe,ue,ge,Ge,$t)=>{const Lt=()=>{if(ee.isMounted){let{next:dn,bu:Rn,u:br,parent:de,vnode:G}=ee;{const Ut=JSt(ee);if(Ut){dn&&(dn.el=G.el,At(ee,dn,$t)),Ut.asyncDep.then(()=>{ee.isUnmounted||Lt()});return}}let Y=dn,De;tE(ee,!1),dn?(dn.el=G.el,At(ee,dn,$t)):dn=G,Rn&&R8e(Rn),(De=dn.props&&dn.props.onVnodeBeforeUpdate)&&l3(De,de,dn,G),tE(ee,!0);const gt=F8e(ee),Kt=ee.subTree;ee.subTree=gt,K(Kt,gt,M(Kt.el),Ze(Kt),ee,ge,Ge),dn.el=gt.el,Y===null&&Zdn(ee,gt.el),br&&_p(br,ge),(De=dn.props&&dn.props.onVnodeUpdated)&&_p(()=>l3(De,de,dn,G),ge)}else{let dn;const{el:Rn,props:br}=V,{bm:de,m:G,parent:Y,root:De,type:gt}=ee,Kt=r_(V);if(tE(ee,!1),de&&R8e(de),!Kt&&(dn=br&&br.onVnodeBeforeMount)&&l3(dn,Y,V),tE(ee,!0),Rn&&Ce){const Ut=()=>{ee.subTree=F8e(ee),Ce(Rn,ee.subTree,ee,ge,null)};Kt&>.__asyncHydrate?gt.__asyncHydrate(Rn,ee,Ut):Ut()}else{De.ce&&De.ce._injectChildStyle(gt);const Ut=ee.subTree=F8e(ee);K(null,Ut,oe,ue,ee,ge,Ge),V.el=Ut.el}if(G&&_p(G,ge),!Kt&&(dn=br&&br.onVnodeMounted)){const Ut=V;_p(()=>l3(dn,Y,Ut),ge)}(V.shapeFlag&256||Y&&r_(Y.vnode)&&Y.vnode.shapeFlag&256)&&ee.a&&_p(ee.a,ge),ee.isMounted=!0,V=oe=ue=null}};ee.scope.on();const tn=ee.effect=new rSt(Lt);ee.scope.off();const Ct=ee.update=tn.run.bind(tn),Kn=ee.job=tn.runIfDirty.bind(tn);Kn.i=ee,Kn.id=ee.uid,tn.scheduler=()=>HSe(Kn),tE(ee,!0),Ct()},At=(ee,V,oe)=>{V.component=ee;const ue=ee.vnode.props;ee.vnode=V,ee.next=null,jdn(ee,V.props,ue,oe),Fdn(ee,V.children,oe),HC(),U6t(ee),KC()},Jt=(ee,V,oe,ue,ge,Ge,$t,Lt,tn=!1)=>{const Ct=ee&&ee.children,Kn=ee?ee.shapeFlag:0,dn=V.children,{patchFlag:Rn,shapeFlag:br}=V;if(Rn>0){if(Rn&128){kn(Ct,dn,oe,ue,ge,Ge,$t,Lt,tn);return}else if(Rn&256){un(Ct,dn,oe,ue,ge,Ge,$t,Lt,tn);return}}br&8?(Kn&16&&kt(Ct,ge,Ge),dn!==Ct&&I(oe,dn)):Kn&16?br&16?kn(Ct,dn,oe,ue,ge,Ge,$t,Lt,tn):kt(Ct,ge,Ge,!0):(Kn&8&&I(oe,""),br&16&&bt(dn,oe,ue,ge,Ge,$t,Lt,tn))},un=(ee,V,oe,ue,ge,Ge,$t,Lt,tn)=>{ee=ee||ZO,V=V||ZO;const Ct=ee.length,Kn=V.length,dn=Math.min(Ct,Kn);let Rn;for(Rn=0;RnKn?kt(ee,ge,Ge,!0,!1,dn):bt(V,oe,ue,ge,Ge,$t,Lt,tn,dn)},kn=(ee,V,oe,ue,ge,Ge,$t,Lt,tn)=>{let Ct=0;const Kn=V.length;let dn=ee.length-1,Rn=Kn-1;for(;Ct<=dn&&Ct<=Rn;){const br=ee[Ct],de=V[Ct]=tn?bC(V[Ct]):p3(V[Ct]);if(pE(br,de))K(br,de,oe,null,ge,Ge,$t,Lt,tn);else break;Ct++}for(;Ct<=dn&&Ct<=Rn;){const br=ee[dn],de=V[Rn]=tn?bC(V[Rn]):p3(V[Rn]);if(pE(br,de))K(br,de,oe,null,ge,Ge,$t,Lt,tn);else break;dn--,Rn--}if(Ct>dn){if(Ct<=Rn){const br=Rn+1,de=brRn)for(;Ct<=dn;)on(ee[Ct],ge,Ge,!0),Ct++;else{const br=Ct,de=Ct,G=new Map;for(Ct=de;Ct<=Rn;Ct++){const Ro=V[Ct]=tn?bC(V[Ct]):p3(V[Ct]);Ro.key!=null&&G.set(Ro.key,Ct)}let Y,De=0;const gt=Rn-de+1;let Kt=!1,Ut=0;const so=new Array(gt);for(Ct=0;Ct=gt){on(Ro,ge,Ge,!0);continue}let Ao;if(Ro.key!=null)Ao=G.get(Ro.key);else for(Y=de;Y<=Rn;Y++)if(so[Y-de]===0&&pE(Ro,V[Y])){Ao=Y;break}Ao===void 0?on(Ro,ge,Ge,!0):(so[Ao-de]=Ct+1,Ao>=Ut?Ut=Ao:Kt=!0,K(Ro,V[Ao],oe,null,ge,Ge,$t,Lt,tn),De++)}const rl=Kt?Udn(so):ZO;for(Y=rl.length-1,Ct=gt-1;Ct>=0;Ct--){const Ro=de+Ct,Ao=V[Ro],zs=Ro+1{const{el:Ge,type:$t,transition:Lt,children:tn,shapeFlag:Ct}=ee;if(Ct&6){qt(ee.component.subTree,V,oe,ue);return}if(Ct&128){ee.suspense.move(V,oe,ue);return}if(Ct&64){$t.move(ee,V,oe,pr);return}if($t===si){a(Ge,V,oe);for(let dn=0;dnLt.enter(Ge),ge);else{const{leave:dn,delayLeave:Rn,afterLeave:br}=Lt,de=()=>a(Ge,V,oe),G=()=>{dn(Ge,()=>{de(),br&&br()})};Rn?Rn(Ge,de,G):G()}else a(Ge,V,oe)},on=(ee,V,oe,ue=!1,ge=!1)=>{const{type:Ge,props:$t,ref:Lt,children:tn,dynamicChildren:Ct,shapeFlag:Kn,patchFlag:dn,dirs:Rn,cacheIndex:br}=ee;if(dn===-2&&(ge=!1),Lt!=null&&qne(Lt,null,oe,ee,!0),br!=null&&(V.renderCache[br]=void 0),Kn&256){V.ctx.deactivate(ee);return}const de=Kn&1&&Rn,G=!r_(ee);let Y;if(G&&(Y=$t&&$t.onVnodeBeforeUnmount)&&l3(Y,V,ee),Kn&6)Zn(ee.component,oe,ue);else{if(Kn&128){ee.suspense.unmount(oe,ue);return}de&&eE(ee,null,V,"beforeUnmount"),Kn&64?ee.type.remove(ee,V,oe,pr,ue):Ct&&!Ct.hasOnce&&(Ge!==si||dn>0&&dn&64)?kt(Ct,V,oe,!1,!0):(Ge===si&&dn&384||!ge&&Kn&16)&&kt(tn,V,oe),ue&&Rt(ee)}(G&&(Y=$t&&$t.onVnodeUnmounted)||de)&&_p(()=>{Y&&l3(Y,V,ee),de&&eE(ee,null,V,"unmounted")},oe)},Rt=ee=>{const{type:V,el:oe,anchor:ue,transition:ge}=ee;if(V===si){an(oe,ue);return}if(V===z8e){ie(ee);return}const Ge=()=>{p(oe),ge&&!ge.persisted&&ge.afterLeave&&ge.afterLeave()};if(ee.shapeFlag&1&&ge&&!ge.persisted){const{leave:$t,delayLeave:Lt}=ge,tn=()=>$t(oe,Ge);Lt?Lt(ee.el,Ge,tn):tn()}else Ge()},an=(ee,V)=>{let oe;for(;ee!==V;)oe=_(ee),p(ee),ee=oe;p(V)},Zn=(ee,V,oe)=>{const{bum:ue,scope:ge,job:Ge,subTree:$t,um:Lt,m:tn,a:Ct}=ee;tkt(tn),tkt(Ct),ue&&R8e(ue),ge.stop(),Ge&&(Ge.flags|=8,on($t,ee,V,oe)),Lt&&_p(Lt,V),_p(()=>{ee.isUnmounted=!0},V),V&&V.pendingBranch&&!V.isUnmounted&&ee.asyncDep&&!ee.asyncResolved&&ee.suspenseId===V.pendingId&&(V.deps--,V.deps===0&&V.resolve())},kt=(ee,V,oe,ue=!1,ge=!1,Ge=0)=>{for(let $t=Ge;$t{if(ee.shapeFlag&6)return Ze(ee.component.subTree);if(ee.shapeFlag&128)return ee.suspense.next();const V=_(ee.anchor||ee.el),oe=V&&V[xSt];return oe?_(oe):V};let Xt=!1;const Mn=(ee,V,oe)=>{ee==null?V._vnode&&on(V._vnode,null,null,!0):K(V._vnode||null,ee,V,null,null,null,oe),V._vnode=ee,Xt||(Xt=!0,U6t(),kSt(),Xt=!1)},pr={p:K,um:on,m:qt,r:Rt,mt:He,mc:bt,pc:Jt,pbc:Be,n:Ze,o:r};let ye,Ce;return{render:Mn,hydrate:ye,createApp:Ldn(Mn,ye)}}function B8e({type:r,props:o},l){return l==="svg"&&r==="foreignObject"||l==="mathml"&&r==="annotation-xml"&&o&&o.encoding&&o.encoding.includes("html")?void 0:l}function tE({effect:r,job:o},l){l?(r.flags|=32,o.flags|=4):(r.flags&=-33,o.flags&=-5)}function Kdn(r,o){return(!r||r&&!r.pendingBranch)&&o&&!o.persisted}function VSe(r,o,l=!1){const a=r.children,p=o.children;if(So(a)&&So(p))for(let g=0;g>1,r[l[y]]0&&(o[a]=l[g-1]),l[g]=a)}}for(g=l.length,w=l[g-1];g-- >0;)l[g]=w,w=o[w];return l}function JSt(r){const o=r.subTree.component;if(o)return o.asyncDep&&!o.asyncResolved?o:JSt(o)}function tkt(r){if(r)for(let o=0;ov3(Gdn);function Os(r,o,l){return QSt(r,o,l)}function QSt(r,o,l=ou){const{immediate:a,deep:p,flush:g,once:w}=l,y=Xf({},l),S=o&&a||!o&&g!=="post";let E;if(lz){if(g==="sync"){const R=Wdn();E=R.__watcherHandles||(R.__watcherHandles=[])}else if(!S){const R=()=>{};return R.stop=m3,R.resume=m3,R.pause=m3,R}}const I=Gh;y.call=(R,j,K)=>ay(R,I,j,K);let M=!1;g==="post"?y.scheduler=R=>{_p(R,I&&I.suspense)}:g!=="sync"&&(M=!0,y.scheduler=(R,j)=>{j?R():HSe(R)}),y.augmentJob=R=>{o&&(R.flags|=4),M&&(R.flags|=2,I&&(R.id=I.uid,R.i=I))};const _=sdn(r,o,y);return lz&&(E?E.push(_):S&&_()),_}function Vdn(r,o,l){const a=this.proxy,p=Zu(r)?r.includes(".")?ZSt(a,r):()=>a[r]:r.bind(a,a);let g;Go(o)?g=o:(g=o.handler,l=o);const w=gH(this),y=QSt(p,g.bind(a),l);return w(),y}function ZSt(r,o){const l=o.split(".");return()=>{let a=r;for(let p=0;po==="modelValue"||o==="model-value"?r.modelModifiers:r[`${o}Modifiers`]||r[`${cm(o)}Modifiers`]||r[`${zC(o)}Modifiers`];function Xdn(r,o,...l){if(r.isUnmounted)return;const a=r.vnode.props||ou;let p=l;const g=o.startsWith("update:"),w=g&&qdn(a,o.slice(7));w&&(w.trim&&(p=l.map(I=>Zu(I)?I.trim():I)),w.number&&(p=l.map(kfn)));let y,S=a[y=wne(o)]||a[y=wne(cm(o))];!S&&g&&(S=a[y=wne(zC(o))]),S&&ay(S,r,6,p);const E=a[y+"Once"];if(E){if(!r.emitted)r.emitted={};else if(r.emitted[y])return;r.emitted[y]=!0,ay(E,r,6,p)}}function e9t(r,o,l=!1){const a=o.emitsCache,p=a.get(r);if(p!==void 0)return p;const g=r.emits;let w={},y=!1;if(!Go(r)){const S=E=>{const I=e9t(E,o,!0);I&&(y=!0,Xf(w,I))};!l&&o.mixins.length&&o.mixins.forEach(S),r.extends&&S(r.extends),r.mixins&&r.mixins.forEach(S)}return!g&&!y?(yu(r)&&a.set(r,null),null):(So(g)?g.forEach(S=>w[S]=null):Xf(w,g),yu(r)&&a.set(r,w),w)}function Kre(r,o){return!r||!Ore(o)?!1:(o=o.slice(2).replace(/Once$/,""),pc(r,o[0].toLowerCase()+o.slice(1))||pc(r,zC(o))||pc(r,o))}function F8e(r){const{type:o,vnode:l,proxy:a,withProxy:p,propsOptions:[g],slots:w,attrs:y,emit:S,render:E,renderCache:I,props:M,data:_,setupState:R,ctx:j,inheritAttrs:K}=r,q=Vne(r);let Q,Z;try{if(l.shapeFlag&4){const ie=p||a,je=ie;Q=p3(E.call(je,ie,I,M,R,_,j)),Z=y}else{const ie=o;Q=p3(ie.length>1?ie(M,{attrs:y,slots:w,emit:S}):ie(M,null)),Z=o.props?y:Ydn(y)}}catch(ie){jF.length=0,Nre(ie,r,1),Q=ai(Lp)}let X=Q;if(Z&&K!==!1){const ie=Object.keys(Z),{shapeFlag:je}=X;ie.length&&je&7&&(g&&ie.some(ASe)&&(Z=Jdn(Z,g)),X=RC(X,Z,!1,!0))}return l.dirs&&(X=RC(X,null,!1,!0),X.dirs=X.dirs?X.dirs.concat(l.dirs):l.dirs),l.transition&&iz(X,l.transition),Q=X,Vne(q),Q}const Ydn=r=>{let o;for(const l in r)(l==="class"||l==="style"||Ore(l))&&((o||(o={}))[l]=r[l]);return o},Jdn=(r,o)=>{const l={};for(const a in r)(!ASe(a)||!(a.slice(9)in o))&&(l[a]=r[a]);return l};function Qdn(r,o,l){const{props:a,children:p,component:g}=r,{props:w,children:y,patchFlag:S}=o,E=g.emitsOptions;if(o.dirs||o.transition)return!0;if(l&&S>=0){if(S&1024)return!0;if(S&16)return a?nkt(a,w,E):!!w;if(S&8){const I=o.dynamicProps;for(let M=0;Mr.__isSuspense;function ehn(r,o){o&&o.pendingBranch?So(r)?o.effects.push(...r):o.effects.push(r):udn(r)}const si=Symbol.for("v-fgt"),Ure=Symbol.for("v-txt"),Lp=Symbol.for("v-cmt"),z8e=Symbol.for("v-stc"),jF=[];let $p=null;function ve(r=!1){jF.push($p=r?null:[])}function thn(){jF.pop(),$p=jF[jF.length-1]||null}let v_=1;function rkt(r,o=!1){v_+=r,r<0&&$p&&o&&($p.hasOnce=!0)}function n9t(r){return r.dynamicChildren=v_>0?$p||ZO:null,thn(),v_>0&&$p&&$p.push(r),r}function wt(r,o,l,a,p,g){return n9t(ar(r,o,l,a,p,g,!0))}function Cn(r,o,l,a,p){return n9t(ai(r,o,l,a,p,!0))}function sz(r){return r?r.__v_isVNode===!0:!1}function pE(r,o){return r.type===o.type&&r.key===o.key}const r9t=({key:r})=>r??null,vne=({ref:r,ref_key:o,ref_for:l})=>(typeof r=="number"&&(r=""+r),r!=null?Zu(r)||Ef(r)||Go(r)?{i:ph,r,k:o,f:!!l}:r:null);function ar(r,o=null,l=null,a=0,p=null,g=r===si?0:1,w=!1,y=!1){const S={__v_isVNode:!0,__v_skip:!0,type:r,props:o,key:o&&r9t(o),ref:o&&vne(o),scopeId:SSt,slotScopeIds:null,children:l,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:g,patchFlag:a,dynamicProps:p,dynamicChildren:null,appContext:null,ctx:ph};return y?(qSe(S,l),g&128&&r.normalize(S)):l&&(S.shapeFlag|=Zu(l)?8:16),v_>0&&!w&&$p&&(S.patchFlag>0||g&6)&&S.patchFlag!==32&&$p.push(S),S}const ai=nhn;function nhn(r,o=null,l=null,a=0,p=null,g=!1){if((!r||r===jSt)&&(r=Lp),sz(r)){const y=RC(r,o,!0);return l&&qSe(y,l),v_>0&&!g&&$p&&(y.shapeFlag&6?$p[$p.indexOf(r)]=y:$p.push(y)),y.patchFlag=-2,y}if(ahn(r)&&(r=r.__vccOpts),o){o=c7e(o);let{class:y,style:S}=o;y&&!Zu(y)&&(o.class=yo(y)),yu(S)&&(zSe(S)&&!So(S)&&(S=Xf({},S)),o.style=A1(S))}const w=Zu(r)?1:t9t(r)?128:ESt(r)?64:yu(r)?4:Go(r)?2:0;return ar(r,o,l,a,p,w,g,!0)}function c7e(r){return r?zSe(r)||USt(r)?Xf({},r):r:null}function RC(r,o,l=!1,a=!1){const{props:p,ref:g,patchFlag:w,children:y,transition:S}=r,E=o?Qe(p||{},o):p,I={__v_isVNode:!0,__v_skip:!0,type:r.type,props:E,key:E&&r9t(E),ref:o&&o.ref?l&&g?So(g)?g.concat(vne(o)):[g,vne(o)]:vne(o):g,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:y,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:o&&r.type!==si?w===-1?16:w|16:w,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:S,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&RC(r.ssContent),ssFallback:r.ssFallback&&RC(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return S&&a&&iz(I,S.clone(I)),I}function hb(r=" ",o=0){return ai(Ure,null,r,o)}function rr(r="",o=!1){return o?(ve(),Cn(Lp,null,r)):ai(Lp,null,r)}function p3(r){return r==null||typeof r=="boolean"?ai(Lp):So(r)?ai(si,null,r.slice()):sz(r)?bC(r):ai(Ure,null,String(r))}function bC(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:RC(r)}function qSe(r,o){let l=0;const{shapeFlag:a}=r;if(o==null)o=null;else if(So(o))l=16;else if(typeof o=="object")if(a&65){const p=o.default;p&&(p._c&&(p._d=!1),qSe(r,p()),p._c&&(p._d=!0));return}else{l=32;const p=o._;!p&&!USt(o)?o._ctx=ph:p===3&&ph&&(ph.slots._===1?o._=1:(o._=2,r.patchFlag|=1024))}else Go(o)?(o={default:o,_ctx:ph},l=32):(o=String(o),a&64?(l=16,o=[hb(o)]):l=8);r.children=o,r.shapeFlag|=l}function Qe(...r){const o={};for(let l=0;lGh||ph;let Yne,u7e;{const r=Lre(),o=(l,a)=>{let p;return(p=r[l])||(p=r[l]=[]),p.push(a),g=>{p.length>1?p.forEach(w=>w(g)):p[0](g)}};Yne=o("__VUE_INSTANCE_SETTERS__",l=>Gh=l),u7e=o("__VUE_SSR_SETTERS__",l=>lz=l)}const gH=r=>{const o=Gh;return Yne(r),r.scope.on(),()=>{r.scope.off(),Yne(o)}},ikt=()=>{Gh&&Gh.scope.off(),Yne(null)};function i9t(r){return r.vnode.shapeFlag&4}let lz=!1;function shn(r,o=!1,l=!1){o&&u7e(o);const{props:a,children:p}=r.vnode,g=i9t(r);$dn(r,a,g,o),Bdn(r,p,l);const w=g?lhn(r,o):void 0;return o&&u7e(!1),w}function lhn(r,o){const l=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,Edn);const{setup:a}=l;if(a){HC();const p=r.setupContext=a.length>1?s9t(r):null,g=gH(r),w=pH(a,r,0,[r.props,p]),y=q7t(w);if(KC(),g(),(y||r.sp)&&!r_(r)&&ASt(r),y){if(w.then(ikt,ikt),o)return w.then(S=>{okt(r,S,o)}).catch(S=>{Nre(S,r,0)});r.asyncDep=w}else okt(r,w,o)}else o9t(r,o)}function okt(r,o,l){Go(o)?r.type.__ssrInlineRender?r.ssrRender=o:r.render=o:yu(o)&&(r.setupState=wSt(o)),o9t(r,l)}let skt;function o9t(r,o,l){const a=r.type;if(!r.render){if(!o&&skt&&!a.render){const p=a.template||GSe(r).template;if(p){const{isCustomElement:g,compilerOptions:w}=r.appContext.config,{delimiters:y,compilerOptions:S}=a,E=Xf(Xf({isCustomElement:g,delimiters:y},w),S);a.render=skt(p,E)}}r.render=a.render||m3}{const p=gH(r);HC();try{Pdn(r)}finally{KC(),p()}}}const chn={get(r,o){return O1(r,"get",""),r[o]}};function s9t(r){const o=l=>{r.exposed=l||{}};return{attrs:new Proxy(r.attrs,chn),slots:r.slots,emit:r.emit,expose:o}}function Gre(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(wSt(EE(r.exposed)),{get(o,l){if(l in o)return o[l];if(l in $F)return $F[l](r)},has(o,l){return l in o||l in $F}})):r.proxy}function uhn(r,o=!0){return Go(r)?r.displayName||r.name:r.name||o&&r.__name}function ahn(r){return Go(r)&&"__vccOpts"in r}const ho=(r,o)=>idn(r,o,lz);function Pc(r,o,l){const a=arguments.length;return a===2?yu(o)&&!So(o)?sz(o)?ai(r,null,[o]):ai(r,o):ai(r,null,o):(a>3?l=Array.prototype.slice.call(arguments,2):a===3&&sz(l)&&(l=[l]),ai(r,o,l))}function fhn(r,o){const l=r.memo;if(l.length!=o.length)return!1;for(let a=0;a0&&$p&&$p.push(r),!0}const dhn="3.5.13";/** -* @vue/runtime-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let a7e;const lkt=typeof window<"u"&&window.trustedTypes;if(lkt)try{a7e=lkt.createPolicy("vue",{createHTML:r=>r})}catch{}const l9t=a7e?r=>a7e.createHTML(r):r=>r,hhn="http://www.w3.org/2000/svg",phn="http://www.w3.org/1998/Math/MathML",L6=typeof document<"u"?document:null,ckt=L6&&L6.createElement("template"),ghn={insert:(r,o,l)=>{o.insertBefore(r,l||null)},remove:r=>{const o=r.parentNode;o&&o.removeChild(r)},createElement:(r,o,l,a)=>{const p=o==="svg"?L6.createElementNS(hhn,r):o==="mathml"?L6.createElementNS(phn,r):l?L6.createElement(r,{is:l}):L6.createElement(r);return r==="select"&&a&&a.multiple!=null&&p.setAttribute("multiple",a.multiple),p},createText:r=>L6.createTextNode(r),createComment:r=>L6.createComment(r),setText:(r,o)=>{r.nodeValue=o},setElementText:(r,o)=>{r.textContent=o},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>L6.querySelector(r),setScopeId(r,o){r.setAttribute(o,"")},insertStaticContent(r,o,l,a,p,g){const w=l?l.previousSibling:o.lastChild;if(p&&(p===g||p.nextSibling))for(;o.insertBefore(p.cloneNode(!0),l),!(p===g||!(p=p.nextSibling)););else{ckt.innerHTML=l9t(a==="svg"?`${r}`:a==="mathml"?`${r}`:r);const y=ckt.content;if(a==="svg"||a==="mathml"){const S=y.firstChild;for(;S.firstChild;)y.appendChild(S.firstChild);y.removeChild(S)}o.insertBefore(y,l)}return[w?w.nextSibling:o.firstChild,l?l.previousSibling:o.lastChild]}},uC="transition",lF="animation",cz=Symbol("_vtc"),c9t={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},bhn=Xf({},PSt,c9t),whn=r=>(r.displayName="Transition",r.props=bhn,r),Wre=whn((r,{slots:o})=>Pc(pdn,mhn(r),o)),nE=(r,o=[])=>{So(r)?r.forEach(l=>l(...o)):r&&r(...o)},ukt=r=>r?So(r)?r.some(o=>o.length>1):r.length>1:!1;function mhn(r){const o={};for(const xe in r)xe in c9t||(o[xe]=r[xe]);if(r.css===!1)return o;const{name:l="v",type:a,duration:p,enterFromClass:g=`${l}-enter-from`,enterActiveClass:w=`${l}-enter-active`,enterToClass:y=`${l}-enter-to`,appearFromClass:S=g,appearActiveClass:E=w,appearToClass:I=y,leaveFromClass:M=`${l}-leave-from`,leaveActiveClass:_=`${l}-leave-active`,leaveToClass:R=`${l}-leave-to`}=r,j=vhn(p),K=j&&j[0],q=j&&j[1],{onBeforeEnter:Q,onEnter:Z,onEnterCancelled:X,onLeave:ie,onLeaveCancelled:je,onBeforeAppear:et=Q,onAppear:mt=Z,onAppearCancelled:bt=X}=o,ce=(xe,U,He,yt)=>{xe._enterCancelled=yt,rE(xe,U?I:y),rE(xe,U?E:w),He&&He()},Be=(xe,U)=>{xe._isLeaving=!1,rE(xe,M),rE(xe,R),rE(xe,_),U&&U()},ae=xe=>(U,He)=>{const yt=xe?mt:Z,ft=()=>ce(U,xe,He);nE(yt,[U,ft]),akt(()=>{rE(U,xe?S:g),O6(U,xe?I:y),ukt(yt)||fkt(U,a,K,ft)})};return Xf(o,{onBeforeEnter(xe){nE(Q,[xe]),O6(xe,g),O6(xe,w)},onBeforeAppear(xe){nE(et,[xe]),O6(xe,S),O6(xe,E)},onEnter:ae(!1),onAppear:ae(!0),onLeave(xe,U){xe._isLeaving=!0;const He=()=>Be(xe,U);O6(xe,M),xe._enterCancelled?(O6(xe,_),pkt()):(pkt(),O6(xe,_)),akt(()=>{xe._isLeaving&&(rE(xe,M),O6(xe,R),ukt(ie)||fkt(xe,a,q,He))}),nE(ie,[xe,He])},onEnterCancelled(xe){ce(xe,!1,void 0,!0),nE(X,[xe])},onAppearCancelled(xe){ce(xe,!0,void 0,!0),nE(bt,[xe])},onLeaveCancelled(xe){Be(xe),nE(je,[xe])}})}function vhn(r){if(r==null)return null;if(yu(r))return[H8e(r.enter),H8e(r.leave)];{const o=H8e(r);return[o,o]}}function H8e(r){return Cfn(r)}function O6(r,o){o.split(/\s+/).forEach(l=>l&&r.classList.add(l)),(r[cz]||(r[cz]=new Set)).add(o)}function rE(r,o){o.split(/\s+/).forEach(a=>a&&r.classList.remove(a));const l=r[cz];l&&(l.delete(o),l.size||(r[cz]=void 0))}function akt(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let yhn=0;function fkt(r,o,l,a){const p=r._endId=++yhn,g=()=>{p===r._endId&&a()};if(l!=null)return setTimeout(g,l);const{type:w,timeout:y,propCount:S}=khn(r,o);if(!w)return a();const E=w+"end";let I=0;const M=()=>{r.removeEventListener(E,_),g()},_=R=>{R.target===r&&++I>=S&&M()};setTimeout(()=>{I(l[j]||"").split(", "),p=a(`${uC}Delay`),g=a(`${uC}Duration`),w=dkt(p,g),y=a(`${lF}Delay`),S=a(`${lF}Duration`),E=dkt(y,S);let I=null,M=0,_=0;o===uC?w>0&&(I=uC,M=w,_=g.length):o===lF?E>0&&(I=lF,M=E,_=S.length):(M=Math.max(w,E),I=M>0?w>E?uC:lF:null,_=I?I===uC?g.length:S.length:0);const R=I===uC&&/\b(transform|all)(,|$)/.test(a(`${uC}Property`).toString());return{type:I,timeout:M,propCount:_,hasTransform:R}}function dkt(r,o){for(;r.lengthhkt(l)+hkt(r[a])))}function hkt(r){return r==="auto"?0:Number(r.slice(0,-1).replace(",","."))*1e3}function pkt(){return document.body.offsetHeight}function Chn(r,o,l){const a=r[cz];a&&(o=(o?[o,...a]:[...a]).join(" ")),o==null?r.removeAttribute("class"):l?r.setAttribute("class",o):r.className=o}const gkt=Symbol("_vod"),Shn=Symbol("_vsh"),xhn=Symbol(""),Ehn=/(^|;)\s*display\s*:/;function Thn(r,o,l){const a=r.style,p=Zu(l);let g=!1;if(l&&!p){if(o)if(Zu(o))for(const w of o.split(";")){const y=w.slice(0,w.indexOf(":")).trim();l[y]==null&&yne(a,y,"")}else for(const w in o)l[w]==null&&yne(a,w,"");for(const w in l)w==="display"&&(g=!0),yne(a,w,l[w])}else if(p){if(o!==l){const w=a[xhn];w&&(l+=";"+w),a.cssText=l,g=Ehn.test(l)}}else o&&r.removeAttribute("style");gkt in r&&(r[gkt]=g?a.display:"",r[Shn]&&(a.display="none"))}const bkt=/\s*!important$/;function yne(r,o,l){if(So(l))l.forEach(a=>yne(r,o,a));else if(l==null&&(l=""),o.startsWith("--"))r.setProperty(o,l);else{const a=Ihn(r,o);bkt.test(l)?r.setProperty(zC(a),l.replace(bkt,""),"important"):r[a]=l}}const wkt=["Webkit","Moz","ms"],K8e={};function Ihn(r,o){const l=K8e[o];if(l)return l;let a=cm(o);if(a!=="filter"&&a in r)return K8e[o]=a;a=Are(a);for(let p=0;pU8e||(Rhn.then(()=>U8e=0),U8e=Date.now());function Lhn(r,o){const l=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=l.attached)return;ay($hn(a,l.value),o,5,[a])};return l.value=r,l.attached=Ahn(),l}function $hn(r,o){if(So(o)){const l=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{l.call(r),r._stopped=!0},o.map(a=>p=>!p._stopped&&a&&a(p))}else return o}const Skt=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,jhn=(r,o,l,a,p,g)=>{const w=p==="svg";o==="class"?Chn(r,a,w):o==="style"?Thn(r,l,a):Ore(o)?ASe(o)||Ohn(r,o,l,a,g):(o[0]==="."?(o=o.slice(1),!0):o[0]==="^"?(o=o.slice(1),!1):Dhn(r,o,a,w))?(ykt(r,o,a),!r.tagName.includes("-")&&(o==="value"||o==="checked"||o==="selected")&&vkt(r,o,a,w,g,o!=="value")):r._isVueCE&&(/[A-Z]/.test(o)||!Zu(a))?ykt(r,cm(o),a,g,o):(o==="true-value"?r._trueValue=a:o==="false-value"&&(r._falseValue=a),vkt(r,o,a,w))};function Dhn(r,o,l,a){if(a)return!!(o==="innerHTML"||o==="textContent"||o in r&&Skt(o)&&Go(l));if(o==="spellcheck"||o==="draggable"||o==="translate"||o==="form"||o==="list"&&r.tagName==="INPUT"||o==="type"&&r.tagName==="TEXTAREA")return!1;if(o==="width"||o==="height"){const p=r.tagName;if(p==="IMG"||p==="VIDEO"||p==="CANVAS"||p==="SOURCE")return!1}return Skt(o)&&Zu(l)?!1:o in r}const Nhn=["ctrl","shift","alt","meta"],Bhn={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,o)=>Nhn.some(l=>r[`${l}Key`]&&!o.includes(l))},u9t=(r,o)=>{const l=r._withMods||(r._withMods={}),a=o.join(".");return l[a]||(l[a]=(p,...g)=>{for(let w=0;w{const l=r._withKeys||(r._withKeys={}),a=o.join(".");return l[a]||(l[a]=p=>{if(!("key"in p))return;const g=zC(p.key);if(o.some(w=>w===g||Fhn[w]===g))return r(p)})},zhn=Xf({patchProp:jhn},ghn);let xkt;function Hhn(){return xkt||(xkt=zdn(zhn))}const Khn=(...r)=>{const o=Hhn().createApp(...r),{mount:l}=o;return o.mount=a=>{const p=Ghn(a);if(!p)return;const g=o._component;!Go(g)&&!g.render&&!g.template&&(g.template=p.innerHTML),p.nodeType===1&&(p.textContent="");const w=l(p,!1,Uhn(p));return p instanceof Element&&(p.removeAttribute("v-cloak"),p.setAttribute("data-v-app","")),w},o};function Uhn(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function Ghn(r){return Zu(r)?document.querySelector(r):r}var Whn=Object.defineProperty,Ekt=Object.getOwnPropertySymbols,Vhn=Object.prototype.hasOwnProperty,qhn=Object.prototype.propertyIsEnumerable,Tkt=(r,o,l)=>o in r?Whn(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l,Xhn=(r,o)=>{for(var l in o||(o={}))Vhn.call(o,l)&&Tkt(r,l,o[l]);if(Ekt)for(var l of Ekt(o))qhn.call(o,l)&&Tkt(r,l,o[l]);return r};function um(r){return r==null||r===""||Array.isArray(r)&&r.length===0||!(r instanceof Date)&&typeof r=="object"&&Object.keys(r).length===0}function Yhn(r,o,l,a=1){let p=-1;const g=um(r),w=um(o);return g&&w?p=0:g?p=a:w?p=-a:typeof r=="string"&&typeof o=="string"?p=l(r,o):p=ro?1:0,p}function f7e(r,o,l=new WeakSet){if(r===o)return!0;if(!r||!o||typeof r!="object"||typeof o!="object"||l.has(r)||l.has(o))return!1;l.add(r).add(o);let a=Array.isArray(r),p=Array.isArray(o),g,w,y;if(a&&p){if(w=r.length,w!=o.length)return!1;for(g=w;g--!==0;)if(!f7e(r[g],o[g],l))return!1;return!0}if(a!=p)return!1;let S=r instanceof Date,E=o instanceof Date;if(S!=E)return!1;if(S&&E)return r.getTime()==o.getTime();let I=r instanceof RegExp,M=o instanceof RegExp;if(I!=M)return!1;if(I&&M)return r.toString()==o.toString();let _=Object.keys(r);if(w=_.length,w!==Object.keys(o).length)return!1;for(g=w;g--!==0;)if(!Object.prototype.hasOwnProperty.call(o,_[g]))return!1;for(g=w;g--!==0;)if(y=_[g],!f7e(r[y],o[y],l))return!1;return!0}function Jhn(r,o){return f7e(r,o)}function Vre(r){return!!(r&&r.constructor&&r.call&&r.apply)}function os(r){return!um(r)}function pl(r,o){if(!r||!o)return null;try{const l=r[o];if(os(l))return l}catch{}if(Object.keys(r).length){if(Vre(o))return o(r);if(o.indexOf(".")===-1)return r[o];{let l=o.split("."),a=r;for(let p=0,g=l.length;pry(g)===p)||""],l),a.join("."),l):void 0:tm(r,l)}function bH(r,o=!0){return Array.isArray(r)&&(o||r.length!==0)}function Zhn(r){return os(r)&&!isNaN(r)}function e1n(r=""){return os(r)&&r.length===1&&!!r.match(/\S| /)}function Pkt(){return new Intl.Collator(void 0,{numeric:!0}).compare}function F6(r,o){if(o){const l=o.test(r);return o.lastIndex=0,l}return!1}function t1n(...r){const o=(l={},a={})=>{const p=Xhn({},l);return Object.keys(a).forEach(g=>{S3(a[g])&&g in l&&S3(l[g])?p[g]=o(l[g],a[g]):p[g]=a[g]}),p};return r.reduce((l,a,p)=>p===0?a:o(l,a),{})}function DF(r){return r&&r.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Qw(r){if(r&&/[\xC0-\xFF\u0100-\u017E]/.test(r)){const l={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let a in l)r=r.replace(l[a],a)}return r}function Mkt(r,o,l){r&&o!==l&&(l>=r.length&&(l%=r.length,o%=r.length),r.splice(l,0,r.splice(o,1)[0]))}function Okt(r,o,l=1,a,p=1){const g=Yhn(r,o,a,l);let w=l;return(um(r)||um(o))&&(w=p===1?l:p),w*g}function n1n(r){return Vg(r,!1)?r[0].toUpperCase()+r.slice(1):r}function a9t(r){return Vg(r)?r.replace(/(_)/g,"-").replace(/[A-Z]/g,(o,l)=>l===0?o:"-"+o.toLowerCase()).toLowerCase():r}function _kt(r){return Vg(r)?r.replace(/[A-Z]/g,(o,l)=>l===0?o:"."+o.toLowerCase()).toLowerCase():r}function YSe(){const r=new Map;return{on(o,l){let a=r.get(o);return a?a.push(l):a=[l],r.set(o,a),this},off(o,l){let a=r.get(o);return a&&a.splice(a.indexOf(l)>>>0,1),this},emit(o,l){let a=r.get(o);a&&a.slice().map(p=>{p(l)})},clear(){r.clear()}}}var r1n=Object.defineProperty,i1n=Object.defineProperties,o1n=Object.getOwnPropertyDescriptors,Jne=Object.getOwnPropertySymbols,f9t=Object.prototype.hasOwnProperty,d9t=Object.prototype.propertyIsEnumerable,Rkt=(r,o,l)=>o in r?r1n(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l,iy=(r,o)=>{for(var l in o||(o={}))f9t.call(o,l)&&Rkt(r,l,o[l]);if(Jne)for(var l of Jne(o))d9t.call(o,l)&&Rkt(r,l,o[l]);return r},V8e=(r,o)=>i1n(r,o1n(o)),_6=(r,o)=>{var l={};for(var a in r)f9t.call(r,a)&&o.indexOf(a)<0&&(l[a]=r[a]);if(r!=null&&Jne)for(var a of Jne(r))o.indexOf(a)<0&&d9t.call(r,a)&&(l[a]=r[a]);return l},s1n=YSe(),ny=s1n;function Akt(r,o){bH(r)?r.push(...o||[]):S3(r)&&Object.assign(r,o)}function l1n(r){return S3(r)&&r.hasOwnProperty("value")&&r.hasOwnProperty("type")?r.value:r}function c1n(r){return r.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function d7e(r="",o=""){return c1n(`${Vg(r,!1)&&Vg(o,!1)?`${r}-`:r}${o}`)}function h9t(r="",o=""){return`--${d7e(r,o)}`}function u1n(r=""){const o=(r.match(/{/g)||[]).length,l=(r.match(/}/g)||[]).length;return(o+l)%2!==0}function p9t(r,o="",l="",a=[],p){if(Vg(r)){const g=/{([^}]*)}/g,w=r.trim();if(u1n(w))return;if(F6(w,g)){const y=w.replaceAll(g,I=>{const _=I.replace(/{|}/g,"").split(".").filter(R=>!a.some(j=>F6(R,j)));return`var(${h9t(l,a9t(_.join("-")))}${os(p)?`, ${p}`:""})`}),S=/(\d+\s+[\+\-\*\/]\s+\d+)/g,E=/var\([^)]+\)/g;return F6(y.replace(E,"0"),S)?`calc(${y})`:y}return w}else if(Zhn(r))return r}function a1n(r,o,l){Vg(o,!1)&&r.push(`${o}:${l};`)}function HO(r,o){return r?`${r}{${o}}`:""}var f1n=r=>{var o;const l=Ic.getTheme(),a=h7e(l,r,void 0,"variable"),p=(o=a==null?void 0:a.match(/--[\w-]+/g))==null?void 0:o[0],g=h7e(l,r,void 0,"value");return{name:p,variable:a,value:g}},NF=(...r)=>h7e(Ic.getTheme(),...r),h7e=(r={},o,l,a)=>{if(o){const{variable:p,options:g}=Ic.defaults||{},{prefix:w,transform:y}=(r==null?void 0:r.options)||g||{},E=F6(o,/{([^}]*)}/g)?o:`{${o}}`;return a==="value"||um(a)&&y==="strict"?Ic.getTokenValue(o):p9t(E,void 0,w,[p.excludedKeyRegex],l)}return""};function d1n(r,o={}){const l=Ic.defaults.variable,{prefix:a=l.prefix,selector:p=l.selector,excludedKeyRegex:g=l.excludedKeyRegex}=o,w=(E,I="")=>Object.entries(E).reduce((M,[_,R])=>{const j=F6(_,g)?d7e(I):d7e(I,a9t(_)),K=l1n(R);if(S3(K)){const{variables:q,tokens:Q}=w(K,j);Akt(M.tokens,Q),Akt(M.variables,q)}else M.tokens.push((a?j.replace(`${a}-`,""):j).replaceAll("-",".")),a1n(M.variables,h9t(j),p9t(K,j,a,[g]));return M},{variables:[],tokens:[]}),{variables:y,tokens:S}=w(r,a);return{value:y,tokens:S,declarations:y.join(""),css:HO(p,y.join(""))}}var Yv={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(r){return{type:"class",selector:r,matched:this.pattern.test(r.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(r){return{type:"attr",selector:`:root${r}`,matched:this.pattern.test(r.trim())}}},media:{pattern:/^@media (.*)$/,resolve(r){return{type:"media",selector:`${r}{:root{[CSS]}}`,matched:this.pattern.test(r.trim())}}},system:{pattern:/^system$/,resolve(r){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(r.trim())}}},custom:{resolve(r){return{type:"custom",selector:r,matched:!0}}}},resolve(r){const o=Object.keys(this.rules).filter(l=>l!=="custom").map(l=>this.rules[l]);return[r].flat().map(l=>{var a;return(a=o.map(p=>p.resolve(l)).find(p=>p.matched))!=null?a:this.rules.custom.resolve(l)})}},_toVariables(r,o){return d1n(r,{prefix:o==null?void 0:o.prefix})},getCommon({name:r="",theme:o={},params:l,set:a,defaults:p}){var g,w,y,S,E,I,M;const{preset:_,options:R}=o;let j,K,q,Q,Z,X,ie;if(os(_)&&R.transform!=="strict"){const{primitive:je,semantic:et,extend:mt}=_,bt=et||{},{colorScheme:ce}=bt,Be=_6(bt,["colorScheme"]),ae=mt||{},{colorScheme:xe}=ae,U=_6(ae,["colorScheme"]),He=ce||{},{dark:yt}=He,ft=_6(He,["dark"]),At=xe||{},{dark:Jt}=At,un=_6(At,["dark"]),kn=os(je)?this._toVariables({primitive:je},R):{},qt=os(Be)?this._toVariables({semantic:Be},R):{},on=os(ft)?this._toVariables({light:ft},R):{},Rt=os(yt)?this._toVariables({dark:yt},R):{},an=os(U)?this._toVariables({semantic:U},R):{},Zn=os(un)?this._toVariables({light:un},R):{},kt=os(Jt)?this._toVariables({dark:Jt},R):{},[Ze,Xt]=[(g=kn.declarations)!=null?g:"",kn.tokens],[Mn,pr]=[(w=qt.declarations)!=null?w:"",qt.tokens||[]],[ye,Ce]=[(y=on.declarations)!=null?y:"",on.tokens||[]],[ee,V]=[(S=Rt.declarations)!=null?S:"",Rt.tokens||[]],[oe,ue]=[(E=an.declarations)!=null?E:"",an.tokens||[]],[ge,Ge]=[(I=Zn.declarations)!=null?I:"",Zn.tokens||[]],[$t,Lt]=[(M=kt.declarations)!=null?M:"",kt.tokens||[]];j=this.transformCSS(r,Ze,"light","variable",R,a,p),K=Xt;const tn=this.transformCSS(r,`${Mn}${ye}`,"light","variable",R,a,p),Ct=this.transformCSS(r,`${ee}`,"dark","variable",R,a,p);q=`${tn}${Ct}`,Q=[...new Set([...pr,...Ce,...V])];const Kn=this.transformCSS(r,`${oe}${ge}color-scheme:light`,"light","variable",R,a,p),dn=this.transformCSS(r,`${$t}color-scheme:dark`,"dark","variable",R,a,p);Z=`${Kn}${dn}`,X=[...new Set([...ue,...Ge,...Lt])],ie=tm(_.css,{dt:NF})}return{primitive:{css:j,tokens:K},semantic:{css:q,tokens:Q},global:{css:Z,tokens:X},style:ie}},getPreset({name:r="",preset:o={},options:l,params:a,set:p,defaults:g,selector:w}){var y,S,E;let I,M,_;if(os(o)&&l.transform!=="strict"){const R=r.replace("-directive",""),j=o,{colorScheme:K,extend:q,css:Q}=j,Z=_6(j,["colorScheme","extend","css"]),X=q||{},{colorScheme:ie}=X,je=_6(X,["colorScheme"]),et=K||{},{dark:mt}=et,bt=_6(et,["dark"]),ce=ie||{},{dark:Be}=ce,ae=_6(ce,["dark"]),xe=os(Z)?this._toVariables({[R]:iy(iy({},Z),je)},l):{},U=os(bt)?this._toVariables({[R]:iy(iy({},bt),ae)},l):{},He=os(mt)?this._toVariables({[R]:iy(iy({},mt),Be)},l):{},[yt,ft]=[(y=xe.declarations)!=null?y:"",xe.tokens||[]],[At,Jt]=[(S=U.declarations)!=null?S:"",U.tokens||[]],[un,kn]=[(E=He.declarations)!=null?E:"",He.tokens||[]],qt=this.transformCSS(R,`${yt}${At}`,"light","variable",l,p,g,w),on=this.transformCSS(R,un,"dark","variable",l,p,g,w);I=`${qt}${on}`,M=[...new Set([...ft,...Jt,...kn])],_=tm(Q,{dt:NF})}return{css:I,tokens:M,style:_}},getPresetC({name:r="",theme:o={},params:l,set:a,defaults:p}){var g;const{preset:w,options:y}=o,S=(g=w==null?void 0:w.components)==null?void 0:g[r];return this.getPreset({name:r,preset:S,options:y,params:l,set:a,defaults:p})},getPresetD({name:r="",theme:o={},params:l,set:a,defaults:p}){var g;const w=r.replace("-directive",""),{preset:y,options:S}=o,E=(g=y==null?void 0:y.directives)==null?void 0:g[w];return this.getPreset({name:w,preset:E,options:S,params:l,set:a,defaults:p})},applyDarkColorScheme(r){return!(r.darkModeSelector==="none"||r.darkModeSelector===!1)},getColorSchemeOption(r,o){var l;return this.applyDarkColorScheme(r)?this.regex.resolve(r.darkModeSelector===!0?o.options.darkModeSelector:(l=r.darkModeSelector)!=null?l:o.options.darkModeSelector):[]},getLayerOrder(r,o={},l,a){const{cssLayer:p}=o;return p?`@layer ${tm(p.order||"primeui",l)}`:""},getCommonStyleSheet({name:r="",theme:o={},params:l,props:a={},set:p,defaults:g}){const w=this.getCommon({name:r,theme:o,params:l,set:p,defaults:g}),y=Object.entries(a).reduce((S,[E,I])=>S.push(`${E}="${I}"`)&&S,[]).join(" ");return Object.entries(w||{}).reduce((S,[E,I])=>{if(I!=null&&I.css){const M=DF(I==null?void 0:I.css),_=`${E}-variables`;S.push(``)}return S},[]).join("")},getStyleSheet({name:r="",theme:o={},params:l,props:a={},set:p,defaults:g}){var w;const y={name:r,theme:o,params:l,set:p,defaults:g},S=(w=r.includes("-directive")?this.getPresetD(y):this.getPresetC(y))==null?void 0:w.css,E=Object.entries(a).reduce((I,[M,_])=>I.push(`${M}="${_}"`)&&I,[]).join(" ");return S?``:""},createTokens(r={},o,l="",a="",p={}){return Object.entries(r).forEach(([g,w])=>{const y=F6(g,o.variable.excludedKeyRegex)?l:l?`${l}.${_kt(g)}`:_kt(g),S=a?`${a}.${g}`:g;S3(w)?this.createTokens(w,o,y,S,p):(p[y]||(p[y]={paths:[],computed(E,I={}){var M,_;return this.paths.length===1?(M=this.paths[0])==null?void 0:M.computed(this.paths[0].scheme,I.binding):E&&E!=="none"?(_=this.paths.find(R=>R.scheme===E))==null?void 0:_.computed(E,I.binding):this.paths.map(R=>R.computed(R.scheme,I[R.scheme]))}}),p[y].paths.push({path:S,value:w,scheme:S.includes("colorScheme.light")?"light":S.includes("colorScheme.dark")?"dark":"none",computed(E,I={}){const M=/{([^}]*)}/g;let _=w;if(I.name=this.path,I.binding||(I.binding={}),F6(w,M)){const j=w.trim().replaceAll(M,Q=>{var Z;const X=Q.replace(/{|}/g,""),ie=(Z=p[X])==null?void 0:Z.computed(E,I);return bH(ie)&&ie.length===2?`light-dark(${ie[0].value},${ie[1].value})`:ie==null?void 0:ie.value}),K=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,q=/var\([^)]+\)/g;_=F6(j.replace(q,"0"),K)?`calc(${j})`:j}return um(I.binding)&&delete I.binding,{colorScheme:E,path:this.path,paths:I,value:_.includes("undefined")?void 0:_}}}))}),p},getTokenValue(r,o,l){var a;const g=(S=>S.split(".").filter(I=>!F6(I.toLowerCase(),l.variable.excludedKeyRegex)).join("."))(o),w=o.includes("colorScheme.light")?"light":o.includes("colorScheme.dark")?"dark":void 0,y=[(a=r[g])==null?void 0:a.computed(w)].flat().filter(S=>S);return y.length===1?y[0].value:y.reduce((S={},E)=>{const I=E,{colorScheme:M}=I,_=_6(I,["colorScheme"]);return S[M]=_,S},void 0)},getSelectorRule(r,o,l,a){return l==="class"||l==="attr"?HO(os(o)?`${r}${o},${r} ${o}`:r,a):HO(r,os(o)?HO(o,a):a)},transformCSS(r,o,l,a,p={},g,w,y){if(os(o)){const{cssLayer:S}=p;if(a!=="style"){const E=this.getColorSchemeOption(p,w);o=l==="dark"?E.reduce((I,{type:M,selector:_})=>(os(_)&&(I+=_.includes("[CSS]")?_.replace("[CSS]",o):this.getSelectorRule(_,y,M,o)),I),""):HO(y??":root",o)}if(S){const E={name:"primeui",order:"primeui"};S3(S)&&(E.name=tm(S.name,{name:r,type:a})),os(E.name)&&(o=HO(`@layer ${E.name}`,o),g==null||g.layerNames(E.name))}return o}return""}},Ic={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(r={}){const{theme:o}=r;o&&(this._theme=V8e(iy({},o),{options:iy(iy({},this.defaults.options),o.options)}),this._tokens=Yv.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var r;return((r=this.theme)==null?void 0:r.preset)||{}},get options(){var r;return((r=this.theme)==null?void 0:r.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(r){this.update({theme:r}),ny.emit("theme:change",r)},getPreset(){return this.preset},setPreset(r){this._theme=V8e(iy({},this.theme),{preset:r}),this._tokens=Yv.createTokens(r,this.defaults),this.clearLoadedStyleNames(),ny.emit("preset:change",r),ny.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(r){this._theme=V8e(iy({},this.theme),{options:r}),this.clearLoadedStyleNames(),ny.emit("options:change",r),ny.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(r){this._layerNames.add(r)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(r){return this._loadedStyleNames.has(r)},setLoadedStyleName(r){this._loadedStyleNames.add(r)},deleteLoadedStyleName(r){this._loadedStyleNames.delete(r)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(r){return Yv.getTokenValue(this.tokens,r,this.defaults)},getCommon(r="",o){return Yv.getCommon({name:r,theme:this.theme,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(r="",o){const l={name:r,theme:this.theme,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Yv.getPresetC(l)},getDirective(r="",o){const l={name:r,theme:this.theme,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Yv.getPresetD(l)},getCustomPreset(r="",o,l,a){const p={name:r,preset:o,options:this.options,selector:l,params:a,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Yv.getPreset(p)},getLayerOrderCSS(r=""){return Yv.getLayerOrder(r,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(r="",o,l="style",a){return Yv.transformCSS(r,o,a,l,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(r="",o,l={}){return Yv.getCommonStyleSheet({name:r,theme:this.theme,params:o,props:l,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(r,o,l={}){return Yv.getStyleSheet({name:r,theme:this.theme,params:o,props:l,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(r){this._loadingStyles.add(r)},onStyleUpdated(r){this._loadingStyles.add(r)},onStyleLoaded(r,{name:o}){this._loadingStyles.size&&(this._loadingStyles.delete(o),ny.emit(`theme:${o}:load`,r),!this._loadingStyles.size&&ny.emit("theme:load"))}};function h1n(r,o){return r?r.classList?r.classList.contains(o):new RegExp("(^| )"+o+"( |$)","gi").test(r.className):!1}function IC(r,o){if(r&&o){const l=a=>{h1n(r,a)||(r.classList?r.classList.add(a):r.className+=" "+a)};[o].flat().filter(Boolean).forEach(a=>a.split(" ").forEach(l))}}function p1n(){return window.innerWidth-document.documentElement.offsetWidth}function y_(r){for(const o of document==null?void 0:document.styleSheets)try{for(const l of o==null?void 0:o.cssRules)for(const a of l==null?void 0:l.style)if(r.test(a))return{name:a,value:l.style.getPropertyValue(a).trim()}}catch{}return null}function Lkt(r="p-overflow-hidden"){const o=y_(/-scrollbar-width$/);o!=null&&o.name&&document.body.style.setProperty(o.name,p1n()+"px"),IC(document.body,r)}function g1n(r){if(r){let o=document.createElement("a");if(o.download!==void 0){const{name:l,src:a}=r;return o.setAttribute("href",a),o.setAttribute("download",l),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o),!0}}return!1}function b1n(r,o){let l=new Blob([r],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(l,o+".csv"):g1n({name:o+".csv",src:URL.createObjectURL(l)})||(r="data:text/csv;charset=utf-8,"+r,window.open(encodeURI(r)))}function D6(r,o){if(r&&o){const l=a=>{r.classList?r.classList.remove(a):r.className=r.className.replace(new RegExp("(^|\\b)"+a.split(" ").join("|")+"(\\b|$)","gi")," ")};[o].flat().filter(Boolean).forEach(a=>a.split(" ").forEach(l))}}function $kt(r="p-overflow-hidden"){const o=y_(/-scrollbar-width$/);o!=null&&o.name&&document.body.style.removeProperty(o.name),D6(document.body,r)}function g9t(r){let o={width:0,height:0};return r&&(r.style.visibility="hidden",r.style.display="block",o.width=r.offsetWidth,o.height=r.offsetHeight,r.style.display="none",r.style.visibility="visible"),o}function JSe(){let r=window,o=document,l=o.documentElement,a=o.getElementsByTagName("body")[0],p=r.innerWidth||l.clientWidth||a.clientWidth,g=r.innerHeight||l.clientHeight||a.clientHeight;return{width:p,height:g}}function w1n(){let r=document.documentElement;return(window.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}function m1n(){let r=document.documentElement;return(window.pageYOffset||r.scrollTop)-(r.clientTop||0)}function QSe(r,o,l=!0){var a,p,g,w;if(r){const y=r.offsetParent?{width:r.offsetWidth,height:r.offsetHeight}:g9t(r),S=y.height,E=y.width,I=o.offsetHeight,M=o.offsetWidth,_=o.getBoundingClientRect(),R=m1n(),j=w1n(),K=JSe();let q,Q,Z="top";_.top+I+S>K.height?(q=_.top+R-S,Z="bottom",q<0&&(q=R)):q=I+_.top+R,_.left+E>K.width?Q=Math.max(0,_.left+j+M-E):Q=_.left+j,r.style.top=q+"px",r.style.left=Q+"px",r.style.transformOrigin=Z,l&&(r.style.marginTop=Z==="bottom"?`calc(${(p=(a=y_(/-anchor-gutter$/))==null?void 0:a.value)!=null?p:"2px"} * -1)`:(w=(g=y_(/-anchor-gutter$/))==null?void 0:g.value)!=null?w:"")}}function k_(r,o){r&&(typeof o=="string"?r.style.cssText=o:Object.entries(o||{}).forEach(([l,a])=>r.style[l]=a))}function Vh(r,o){if(r instanceof HTMLElement){let l=r.offsetWidth;if(o){let a=getComputedStyle(r);l+=parseFloat(a.marginLeft)+parseFloat(a.marginRight)}return l}return 0}function v1n(r,o,l=!0){var a,p,g,w;if(r){const y=r.offsetParent?{width:r.offsetWidth,height:r.offsetHeight}:g9t(r),S=o.offsetHeight,E=o.getBoundingClientRect(),I=JSe();let M,_,R="top";E.top+S+y.height>I.height?(M=-1*y.height,R="bottom",E.top+M<0&&(M=-1*E.top)):M=S,y.width>I.width?_=E.left*-1:E.left+y.width>I.width?_=(E.left+y.width-I.width)*-1:_=0,r.style.top=M+"px",r.style.left=_+"px",r.style.transformOrigin=R,l&&(r.style.marginTop=R==="bottom"?`calc(${(p=(a=y_(/-anchor-gutter$/))==null?void 0:a.value)!=null?p:"2px"} * -1)`:(w=(g=y_(/-anchor-gutter$/))==null?void 0:g.value)!=null?w:"")}}function N_(r){return typeof HTMLElement=="object"?r instanceof HTMLElement:r&&typeof r=="object"&&r!==null&&r.nodeType===1&&typeof r.nodeName=="string"}function kne(){if(window.getSelection){const r=window.getSelection()||{};r.empty?r.empty():r.removeAllRanges&&r.rangeCount>0&&r.getRangeAt(0).getClientRects().length>0&&r.removeAllRanges()}}function Qne(r,o={}){if(N_(r)){const l=(a,p)=>{var g,w;const y=(g=r==null?void 0:r.$attrs)!=null&&g[a]?[(w=r==null?void 0:r.$attrs)==null?void 0:w[a]]:[];return[p].flat().reduce((S,E)=>{if(E!=null){const I=typeof E;if(I==="string"||I==="number")S.push(E);else if(I==="object"){const M=Array.isArray(E)?l(a,E):Object.entries(E).map(([_,R])=>a==="style"&&(R||R===0)?`${_.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${R}`:R?_:void 0);S=M.length?S.concat(M.filter(_=>!!_)):S}}return S},y)};Object.entries(o).forEach(([a,p])=>{if(p!=null){const g=a.match(/^on(.+)/);g?r.addEventListener(g[1].toLowerCase(),p):a==="p-bind"||a==="pBind"?Qne(r,p):(p=a==="class"?[...new Set(l("class",p))].join(" ").trim():a==="style"?l("style",p).join(";").trim():p,(r.$attrs=r.$attrs||{})&&(r.$attrs[a]=p),r.setAttribute(a,p))}})}}function b9t(r,o={},...l){{const a=document.createElement(r);return Qne(a,o),a.append(...l),a}}function KO(r,o){return N_(r)?Array.from(r.querySelectorAll(o)):[]}function PC(r,o){return N_(r)?r.matches(o)?r:r.querySelector(o):null}function Uh(r,o){r&&document.activeElement!==r&&r.focus(o)}function dh(r,o){if(N_(r)){const l=r.getAttribute(o);return isNaN(l)?l==="true"||l==="false"?l==="true":l:+l}}function ZSe(r,o=""){let l=KO(r,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}, - [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}, - input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}, - select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}, - textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}, - [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}, - [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}`),a=[];for(let p of l)getComputedStyle(p).display!="none"&&getComputedStyle(p).visibility!="hidden"&&a.push(p);return a}function gE(r,o){const l=ZSe(r,o);return l.length>0?l[0]:null}function kC(r){if(r){let o=r.offsetHeight,l=getComputedStyle(r);return o-=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),o}return 0}function y1n(r){if(r){r.style.visibility="hidden",r.style.display="block";let o=r.offsetHeight;return r.style.display="none",r.style.visibility="visible",o}return 0}function k1n(r){if(r){r.style.visibility="hidden",r.style.display="block";let o=r.offsetWidth;return r.style.display="none",r.style.visibility="visible",o}return 0}function e9e(r){if(r){let o=r.parentNode;return o&&o instanceof ShadowRoot&&o.host&&(o=o.host),o}return null}function Cne(r){var o;if(r){let l=(o=e9e(r))==null?void 0:o.childNodes,a=0;if(l)for(let p=0;p0?l[l.length-1]:null}function t9e(r,o){let l=r.nextElementSibling;for(;l;){if(l.matches(o))return l;l=l.nextElementSibling}return null}function CC(r){if(r){let o=r.getBoundingClientRect();return{top:o.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:o.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function z6(r,o){if(r){let l=r.offsetHeight;if(o){let a=getComputedStyle(r);l+=parseFloat(a.marginTop)+parseFloat(a.marginBottom)}return l}return 0}function m9t(r,o=[]){const l=e9e(r);return l===null?o:m9t(l,o.concat([l]))}function n9e(r,o){let l=r.previousElementSibling;for(;l;){if(l.matches(o))return l;l=l.previousElementSibling}return null}function C1n(r){let o=[];if(r){let l=m9t(r);const a=/(auto|scroll)/,p=g=>{try{let w=window.getComputedStyle(g,null);return a.test(w.getPropertyValue("overflow"))||a.test(w.getPropertyValue("overflowX"))||a.test(w.getPropertyValue("overflowY"))}catch{return!1}};for(let g of l){let w=g.nodeType===1&&g.dataset.scrollselectors;if(w){let y=w.split(",");for(let S of y){let E=PC(g,S);E&&p(E)&&o.push(E)}}g.nodeType!==9&&p(g)&&o.push(g)}}return o}function jkt(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function S1n(r){return!!(r!==null&&typeof r<"u"&&r.nodeName&&e9e(r))}function SC(r){if(r){let o=r.offsetWidth,l=getComputedStyle(r);return o-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)+parseFloat(l.borderLeftWidth)+parseFloat(l.borderRightWidth),o}return 0}function Dkt(r,o,l){r[o].apply(r,l)}function x1n(){return/(android)/i.test(navigator.userAgent)}function q8e(r){if(r){const o=r.nodeName,l=r.parentElement&&r.parentElement.nodeName;return o==="INPUT"||o==="TEXTAREA"||o==="BUTTON"||o==="A"||l==="INPUT"||l==="TEXTAREA"||l==="BUTTON"||l==="A"||!!r.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1}function qre(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Nkt(r,o=""){return N_(r)?r.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}, - [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}, - input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}, - select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}, - textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}, - [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}, - [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${o}`):!1}function Zne(r){return!!(r&&r.offsetParent!=null)}function v9t(r){return r?getComputedStyle(r).direction==="rtl":!1}function r9e(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function wH(r,o="",l){N_(r)&&l!==null&&l!==void 0&&r.setAttribute(o,l)}var Ute={};function i9e(r="pui_id_"){return Ute.hasOwnProperty(r)||(Ute[r]=0),Ute[r]++,`${r}${Ute[r]}`}function E1n(){let r=[];const o=(w,y,S=999)=>{const E=p(w,y,S),I=E.value+(E.key===w?0:S)+1;return r.push({key:w,value:I}),I},l=w=>{r=r.filter(y=>y.value!==w)},a=(w,y)=>p(w).value,p=(w,y,S=0)=>[...r].reverse().find(E=>!0)||{key:w,value:S},g=w=>w&&parseInt(w.style.zIndex,10)||0;return{get:g,set:(w,y,S)=>{y&&(y.style.zIndex=String(o(w,!0,S)))},clear:w=>{w&&(l(g(w)),w.style.zIndex="")},getCurrent:w=>a(w)}}var sm=E1n(),Ta={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},ere={AND:"and",OR:"or"};function Bkt(r,o){var l=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!l){if(Array.isArray(r)||(l=T1n(r))||o){l&&(r=l);var a=0,p=function(){};return{s:p,n:function(){return a>=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(E){throw E},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,w=!0,y=!1;return{s:function(){l=l.call(r)},n:function(){var E=l.next();return w=E.done,E},e:function(E){y=!0,g=E},f:function(){try{w||l.return==null||l.return()}finally{if(y)throw g}}}}function T1n(r,o){if(r){if(typeof r=="string")return Fkt(r,o);var l={}.toString.call(r).slice(8,-1);return l==="Object"&&r.constructor&&(l=r.constructor.name),l==="Map"||l==="Set"?Array.from(r):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?Fkt(r,o):void 0}}function Fkt(r,o){(o==null||o>r.length)&&(o=r.length);for(var l=0,a=Array(o);ll.getTime():o>l},gte:function(o,l){return l==null?!0:o==null?!1:o.getTime&&l.getTime?o.getTime()>=l.getTime():o>=l},dateIs:function(o,l){return l==null?!0:o==null?!1:o.toDateString()===l.toDateString()},dateIsNot:function(o,l){return l==null?!0:o==null?!1:o.toDateString()!==l.toDateString()},dateBefore:function(o,l){return l==null?!0:o==null?!1:o.getTime()l.getTime()}},register:function(o,l){this.filters[o]=l}};function uz(r){"@babel/helpers - typeof";return uz=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},uz(r)}function zkt(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(r,p).enumerable})),l.push.apply(l,a)}return l}function Hkt(r){for(var o=1;o1&&arguments[1]!==void 0?arguments[1]:!0;UC()?bb(r):o?r():om(r)}var _1n=0;function R1n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=Co(!1),a=Co(r),p=Co(null),g=qre()?window.document:void 0,w=o.document,y=w===void 0?g:w,S=o.immediate,E=S===void 0?!0:S,I=o.manual,M=I===void 0?!1:I,_=o.name,R=_===void 0?"style_".concat(++_1n):_,j=o.id,K=j===void 0?void 0:j,q=o.media,Q=q===void 0?void 0:q,Z=o.nonce,X=Z===void 0?void 0:Z,ie=o.first,je=ie===void 0?!1:ie,et=o.onMounted,mt=et===void 0?void 0:et,bt=o.onUpdated,ce=bt===void 0?void 0:bt,Be=o.onLoad,ae=Be===void 0?void 0:Be,xe=o.props,U=xe===void 0?{}:xe,He=function(){},yt=function(Jt){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(y){var kn=Hkt(Hkt({},U),un),qt=kn.name||R,on=kn.id||K,Rt=kn.nonce||X;p.value=y.querySelector('style[data-primevue-style-id="'.concat(qt,'"]'))||y.getElementById(on)||y.createElement("style"),p.value.isConnected||(a.value=Jt||r,Qne(p.value,{type:"text/css",id:on,media:Q,nonce:Rt}),je?y.head.prepend(p.value):y.head.appendChild(p.value),wH(p.value,"data-primevue-style-id",qt),Qne(p.value,kn),p.value.onload=function(an){return ae==null?void 0:ae(an,{name:qt})},mt==null||mt(qt)),!l.value&&(He=Os(a,function(an){p.value.textContent=an,ce==null||ce(qt)},{immediate:!0}),l.value=!0)}},ft=function(){!y||!l.value||(He(),S1n(p.value)&&y.head.removeChild(p.value),l.value=!1)};return E&&!M&&O1n(yt),{id:K,name:R,el:p,css:a,unload:ft,load:yt,isLoaded:hH(l)}}function az(r){"@babel/helpers - typeof";return az=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},az(r)}function Kkt(r,o){return j1n(r)||$1n(r,o)||L1n(r,o)||A1n()}function A1n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L1n(r,o){if(r){if(typeof r=="string")return Ukt(r,o);var l={}.toString.call(r).slice(8,-1);return l==="Object"&&r.constructor&&(l=r.constructor.name),l==="Map"||l==="Set"?Array.from(r):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?Ukt(r,o):void 0}}function Ukt(r,o){(o==null||o>r.length)&&(o=r.length);for(var l=0,a=Array(o);l1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(g){return g},p=a(tm(o,{dt:NF}));return os(p)?R1n(DF(p),X8e({name:this.name},l)):{}},loadCSS:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,o)},loadTheme:function(){var o=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.theme,l,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ic.transformCSS(l.name||o.name,"".concat(p).concat(a))})},getCommonTheme:function(o){return Ic.getCommon(this.name,o)},getComponentTheme:function(o){return Ic.getComponent(this.name,o)},getDirectiveTheme:function(o){return Ic.getDirective(this.name,o)},getPresetTheme:function(o,l,a){return Ic.getCustomPreset(this.name,o,l,a)},getLayerOrderThemeCSS:function(){return Ic.getLayerOrderCSS(this.name)},getStyleSheet:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var a=tm(this.css,{dt:NF})||"",p=DF("".concat(a).concat(o)),g=Object.entries(l).reduce(function(w,y){var S=Kkt(y,2),E=S[0],I=S[1];return w.push("".concat(E,'="').concat(I,'"'))&&w},[]).join(" ");return os(p)?'"):""}return""},getCommonThemeStyleSheet:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ic.getCommonStyleSheet(this.name,o,l)},getThemeStyleSheet:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=[Ic.getStyleSheet(this.name,o,l)];if(this.theme){var p=this.name==="base"?"global-style":"".concat(this.name,"-style"),g=tm(this.theme,{dt:NF}),w=DF(Ic.transformCSS(p,g)),y=Object.entries(l).reduce(function(S,E){var I=Kkt(E,2),M=I[0],_=I[1];return S.push("".concat(M,'="').concat(_,'"'))&&S},[]).join(" ");os(w)&&a.push('"))}return a.join("")},extend:function(o){return X8e(X8e({},this),{},{css:void 0,theme:void 0},o)}},qO=YSe();function fz(r){"@babel/helpers - typeof";return fz=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},fz(r)}function Wkt(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(r,p).enumerable})),l.push.apply(l,a)}return l}function Gte(r){for(var o=1;or.length)&&(o=r.length);for(var l=0,a=Array(o);l1?l-1:0),p=1;p0&&arguments[0]!==void 0?arguments[0]:function(){};xC.clearLoadedStyleNames(),ny.on("theme:change",o)},_getHostInstance:function(o){return o?this.$options.hostName?o.$.type.name===this.$options.hostName?o:this._getHostInstance(o.$parentInstance):o.$parentInstance:void 0},_getPropValue:function(o){var l;return this[o]||((l=this._getHostInstance(this))===null||l===void 0?void 0:l[o])},_getOptionValue:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return XSe(o,l,a)},_getPTValue:function(){var o,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,w=/./g.test(a)&&!!p[a.split(".")[0]],y=this._getPropValue("ptOptions")||((o=this.$primevueConfig)===null||o===void 0?void 0:o.ptOptions)||{},S=y.mergeSections,E=S===void 0?!0:S,I=y.mergeProps,M=I===void 0?!1:I,_=g?w?this._useGlobalPT(this._getPTClassValue,a,p):this._useDefaultPT(this._getPTClassValue,a,p):void 0,R=w?void 0:this._getPTSelf(l,this._getPTClassValue,a,hl(hl({},p),{},{global:_||{}})),j=this._getPTDatasets(a);return E||!E&&R?M?this._mergeProps(M,_,R,j):hl(hl(hl({},_),R),j):hl(hl({},R),j)},_getPTSelf:function(){for(var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length,a=new Array(l>1?l-1:0),p=1;p0&&arguments[0]!==void 0?arguments[0]:"",p="data-pc-",g=a==="root"&&os((o=this.pt)===null||o===void 0?void 0:o["data-pc-section"]);return a!=="transition"&&hl(hl({},a==="root"&&hl(hl(vF({},"".concat(p,"name"),ry(g?(l=this.pt)===null||l===void 0?void 0:l["data-pc-section"]:this.$.type.name)),g&&vF({},"".concat(p,"extend"),ry(this.$.type.name))),qre()&&vF({},"".concat(this.$attrSelector),""))),{},vF({},"".concat(p,"section"),ry(a)))},_getPTClassValue:function(){var o=this._getOptionValue.apply(this,arguments);return Vg(o)||bH(o)?{class:o}:o},_getPT:function(o){var l=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",p=arguments.length>2?arguments[2]:void 0,g=function(y){var S,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,I=p?p(y):y,M=ry(a),_=ry(l.$name);return(S=E?M!==_?I==null?void 0:I[M]:void 0:I==null?void 0:I[M])!==null&&S!==void 0?S:I};return o!=null&&o.hasOwnProperty("_usept")?{_usept:o._usept,originalValue:g(o.originalValue),value:g(o.value)}:g(o,!0)},_usePT:function(o,l,a,p){var g=function(K){return l(K,a,p)};if(o!=null&&o.hasOwnProperty("_usept")){var w,y=o._usept||((w=this.$primevueConfig)===null||w===void 0?void 0:w.ptOptions)||{},S=y.mergeSections,E=S===void 0?!0:S,I=y.mergeProps,M=I===void 0?!1:I,_=g(o.originalValue),R=g(o.value);return _===void 0&&R===void 0?void 0:Vg(R)?R:Vg(_)?_:E||!E&&R?M?this._mergeProps(M,_,R):hl(hl({},_),R):R}return g(o)},_useGlobalPT:function(o,l,a){return this._usePT(this.globalPT,o,l,a)},_useDefaultPT:function(o,l,a){return this._usePT(this.defaultPT,o,l,a)},ptm:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,o,hl(hl({},this.$params),l))},ptmi:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Qe(this.$_attrsWithoutPT,this.ptm(o,l))},ptmo:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(o,l,hl({instance:this},a),!1)},cx:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,o,hl(hl({},this.$params),l))},sx:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(l){var p=this._getOptionValue(this.$style.inlineStyles,o,hl(hl({},this.$params),a)),g=this._getOptionValue(Xkt.inlineStyles,o,hl(hl({},this.$params),a));return[g,p]}}},computed:{globalPT:function(){var o,l=this;return this._getPT((o=this.$primevueConfig)===null||o===void 0?void 0:o.pt,void 0,function(a){return tm(a,{instance:l})})},defaultPT:function(){var o,l=this;return this._getPT((o=this.$primevueConfig)===null||o===void 0?void 0:o.pt,void 0,function(a){return l._getOptionValue(a,l.$name,hl({},l.$params))||tm(a,hl({},l.$params))})},isUnstyled:function(){var o;return this.unstyled!==void 0?this.unstyled:(o=this.$primevueConfig)===null||o===void 0?void 0:o.unstyled},$inProps:function(){var o,l=Object.keys(((o=this.$.vnode)===null||o===void 0?void 0:o.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(a){var p=cF(a,1),g=p[0];return l==null?void 0:l.includes(g)}))},$theme:function(){var o;return(o=this.$primevueConfig)===null||o===void 0?void 0:o.theme},$style:function(){return hl(hl({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var o;return{nonce:(o=this.$primevueConfig)===null||o===void 0||(o=o.csp)===null||o===void 0?void 0:o.nonce}},$primevueConfig:function(){var o;return(o=this.$primevue)===null||o===void 0?void 0:o.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var o=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:o,props:o==null?void 0:o.$props,state:o==null?void 0:o.$data,attrs:o==null?void 0:o.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(o){var l=cF(o,1),a=l[0];return a==null?void 0:a.startsWith("pt:")}).reduce(function(o,l){var a=cF(l,2),p=a[0],g=a[1],w=p.split(":"),y=Bgn(w),S=y.slice(1);return S==null||S.reduce(function(E,I,M,_){return!E[I]&&(E[I]=M===_.length-1?g:{}),E[I]},o),o},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(o){var l=cF(o,1),a=l[0];return!(a!=null&&a.startsWith("pt:"))}).reduce(function(o,l){var a=cF(l,2),p=a[0],g=a[1];return o[p]=g,o},{})}}},Ugn=function(o){var l=o.dt;return` -.p-toolbar { - display: flex; - align-items: center; - justify-content: space-between; - flex-wrap: wrap; - padding: `.concat(l("toolbar.padding"),`; - background: `).concat(l("toolbar.background"),`; - border: 1px solid `).concat(l("toolbar.border.color"),`; - color: `).concat(l("toolbar.color"),`; - border-radius: `).concat(l("toolbar.border.radius"),`; - gap: `).concat(l("toolbar.gap"),`; -} - -.p-toolbar-start, -.p-toolbar-center, -.p-toolbar-end { - display: flex; - align-items: center; -} -`)},Ggn={root:"p-toolbar p-component",start:"p-toolbar-start",center:"p-toolbar-center",end:"p-toolbar-end"},Wgn=vs.extend({name:"toolbar",theme:Ugn,classes:Ggn}),Vgn={name:"BaseToolbar",extends:vl,props:{ariaLabelledby:{type:String,default:null}},style:Wgn,provide:function(){return{$pcToolbar:this,$parentInstance:this}}},S9t={name:"Toolbar",extends:Vgn,inheritAttrs:!1},qgn=["aria-labelledby"];function Xgn(r,o,l,a,p,g){return ve(),wt("div",Qe({class:r.cx("root"),role:"toolbar","aria-labelledby":r.ariaLabelledby},r.ptmi("root")),[ar("div",Qe({class:r.cx("start")},r.ptm("start")),[Nr(r.$slots,"start")],16),ar("div",Qe({class:r.cx("center")},r.ptm("center")),[Nr(r.$slots,"center")],16),ar("div",Qe({class:r.cx("end")},r.ptm("end")),[Nr(r.$slots,"end")],16)],16,qgn)}S9t.render=Xgn;var Ygn=` -.p-icon { - display: inline-block; - vertical-align: baseline; -} - -.p-icon-spin { - -webkit-animation: p-icon-spin 2s infinite linear; - animation: p-icon-spin 2s infinite linear; -} - -@-webkit-keyframes p-icon-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} - -@keyframes p-icon-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} -`,Jgn=vs.extend({name:"baseicon",css:Ygn});function pz(r){"@babel/helpers - typeof";return pz=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},pz(r)}function Qkt(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(r,p).enumerable})),l.push.apply(l,a)}return l}function Zkt(r){for(var o=1;or.length)&&(o=r.length);for(var l=0,a=Array(o);l0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,S=function(){var Z=Fs._getOptionValue.apply(Fs,arguments);return Vg(Z)||bH(Z)?{class:Z}:Z},E=((o=a.binding)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o.ptOptions)||((l=a.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},I=E.mergeSections,M=I===void 0?!0:I,_=E.mergeProps,R=_===void 0?!1:_,j=y?Fs._useDefaultPT(a,a.defaultPT(),S,g,w):void 0,K=Fs._usePT(a,Fs._getPT(p,a.$name),S,g,Rl(Rl({},w),{},{global:j||{}})),q=Fs._getPTDatasets(a,g);return M||!M&&K?R?Fs._mergeProps(a,R,j,K,q):Rl(Rl(Rl({},j),K),q):Rl(Rl({},K),q)},_getPTDatasets:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a="data-pc-";return Rl(Rl({},l==="root"&&g7e({},"".concat(a,"name"),ry(o.$name))),{},g7e({},"".concat(a,"section"),ry(l)))},_getPT:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,p=function(w){var y,S=a?a(w):w,E=ry(l);return(y=S==null?void 0:S[E])!==null&&y!==void 0?y:S};return o!=null&&o.hasOwnProperty("_usept")?{_usept:o._usept,originalValue:p(o.originalValue),value:p(o.value)}:p(o)},_usePT:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,p=arguments.length>3?arguments[3]:void 0,g=arguments.length>4?arguments[4]:void 0,w=function(q){return a(q,p,g)};if(l!=null&&l.hasOwnProperty("_usept")){var y,S=l._usept||((y=o.$primevueConfig)===null||y===void 0?void 0:y.ptOptions)||{},E=S.mergeSections,I=E===void 0?!0:E,M=S.mergeProps,_=M===void 0?!1:M,R=w(l.originalValue),j=w(l.value);return R===void 0&&j===void 0?void 0:Vg(j)?j:Vg(R)?R:I||!I&&j?_?Fs._mergeProps(o,_,R,j):Rl(Rl({},R),j):j}return w(l)},_useDefaultPT:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,p=arguments.length>3?arguments[3]:void 0,g=arguments.length>4?arguments[4]:void 0;return Fs._usePT(o,l,a,p,g)},_loadStyles:function(o,l,a){var p,g=Fs._getConfig(l,a),w={nonce:g==null||(p=g.csp)===null||p===void 0?void 0:p.nonce};Fs._loadCoreStyles(o.$instance,w),Fs._loadThemeStyles(o.$instance,w),Fs._loadScopedThemeStyles(o.$instance,w),Fs._themeChangeListener(function(){return Fs._loadThemeStyles(o.$instance,w)})},_loadCoreStyles:function(){var o,l,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments.length>1?arguments[1]:void 0;if(!xC.isStyleNameLoaded((o=a.$style)===null||o===void 0?void 0:o.name)&&(l=a.$style)!==null&&l!==void 0&&l.name){var g;vs.loadCSS(p),(g=a.$style)===null||g===void 0||g.loadCSS(p),xC.setLoadedStyleName(a.$style.name)}},_loadThemeStyles:function(){var o,l,a,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=arguments.length>1?arguments[1]:void 0;if(!(p!=null&&p.isUnstyled()||(p==null||(o=p.theme)===null||o===void 0?void 0:o.call(p))==="none")){if(!Ic.isStyleNameLoaded("common")){var w,y,S=((w=p.$style)===null||w===void 0||(y=w.getCommonTheme)===null||y===void 0?void 0:y.call(w))||{},E=S.primitive,I=S.semantic,M=S.global,_=S.style;vs.load(E==null?void 0:E.css,Rl({name:"primitive-variables"},g)),vs.load(I==null?void 0:I.css,Rl({name:"semantic-variables"},g)),vs.load(M==null?void 0:M.css,Rl({name:"global-variables"},g)),vs.loadTheme(Rl({name:"global-style"},g),_),Ic.setLoadedStyleName("common")}if(!Ic.isStyleNameLoaded((l=p.$style)===null||l===void 0?void 0:l.name)&&(a=p.$style)!==null&&a!==void 0&&a.name){var R,j,K,q,Q=((R=p.$style)===null||R===void 0||(j=R.getDirectiveTheme)===null||j===void 0?void 0:j.call(R))||{},Z=Q.css,X=Q.style;(K=p.$style)===null||K===void 0||K.load(Z,Rl({name:"".concat(p.$style.name,"-variables")},g)),(q=p.$style)===null||q===void 0||q.loadTheme(Rl({name:"".concat(p.$style.name,"-style")},g),X),Ic.setLoadedStyleName(p.$style.name)}if(!Ic.isStyleNameLoaded("layer-order")){var ie,je,et=(ie=p.$style)===null||ie===void 0||(je=ie.getLayerOrderThemeCSS)===null||je===void 0?void 0:je.call(ie);vs.load(et,Rl({name:"layer-order",first:!0},g)),Ic.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0,a=o.preset();if(a&&o.$attrSelector){var p,g,w,y=((p=o.$style)===null||p===void 0||(g=p.getPresetTheme)===null||g===void 0?void 0:g.call(p,a,"[".concat(o.$attrSelector,"]")))||{},S=y.css,E=(w=o.$style)===null||w===void 0?void 0:w.load(S,Rl({name:"".concat(o.$attrSelector,"-").concat(o.$style.name)},l));o.scopedStyleEl=E.el}},_themeChangeListener:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};xC.clearLoadedStyleNames(),ny.on("theme:change",o)},_hook:function(o,l,a,p,g,w){var y,S,E="on".concat(n1n(l)),I=Fs._getConfig(p,g),M=a==null?void 0:a.$instance,_=Fs._usePT(M,Fs._getPT(p==null||(y=p.value)===null||y===void 0?void 0:y.pt,o),Fs._getOptionValue,"hooks.".concat(E)),R=Fs._useDefaultPT(M,I==null||(S=I.pt)===null||S===void 0||(S=S.directives)===null||S===void 0?void 0:S[o],Fs._getOptionValue,"hooks.".concat(E)),j={el:a,binding:p,vnode:g,prevVnode:w};_==null||_(M,j),R==null||R(M,j)},_mergeProps:function(){for(var o=arguments.length>1?arguments[1]:void 0,l=arguments.length,a=new Array(l>2?l-2:0),p=2;p1&&arguments[1]!==void 0?arguments[1]:{},a=function(w,y,S,E,I){var M,_,R,j;y._$instances=y._$instances||{};var K=Fs._getConfig(S,E),q=y._$instances[o]||{},Q=um(q)?Rl(Rl({},l),l==null?void 0:l.methods):{};y._$instances[o]=Rl(Rl({},q),{},{$name:o,$host:y,$binding:S,$modifiers:S==null?void 0:S.modifiers,$value:S==null?void 0:S.value,$el:q.$el||y||void 0,$style:Rl({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},l==null?void 0:l.style),$primevueConfig:K,$attrSelector:(M=y.$pd)===null||M===void 0||(M=M[o])===null||M===void 0?void 0:M.attrSelector,defaultPT:function(){return Fs._getPT(K==null?void 0:K.pt,void 0,function(X){var ie;return X==null||(ie=X.directives)===null||ie===void 0?void 0:ie[o]})},isUnstyled:function(){var X,ie;return((X=y.$instance)===null||X===void 0||(X=X.$binding)===null||X===void 0||(X=X.value)===null||X===void 0?void 0:X.unstyled)!==void 0?(ie=y.$instance)===null||ie===void 0||(ie=ie.$binding)===null||ie===void 0||(ie=ie.value)===null||ie===void 0?void 0:ie.unstyled:K==null?void 0:K.unstyled},theme:function(){var X;return(X=y.$instance)===null||X===void 0||(X=X.$primevueConfig)===null||X===void 0?void 0:X.theme},preset:function(){var X;return(X=y.$instance)===null||X===void 0||(X=X.$binding)===null||X===void 0||(X=X.value)===null||X===void 0?void 0:X.dt},ptm:function(){var X,ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Fs._getPTValue(y.$instance,(X=y.$instance)===null||X===void 0||(X=X.$binding)===null||X===void 0||(X=X.value)===null||X===void 0?void 0:X.pt,ie,Rl({},je))},ptmo:function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Fs._getPTValue(y.$instance,X,ie,je,!1)},cx:function(){var X,ie,je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(X=y.$instance)!==null&&X!==void 0&&X.isUnstyled()?void 0:Fs._getOptionValue((ie=y.$instance)===null||ie===void 0||(ie=ie.$style)===null||ie===void 0?void 0:ie.classes,je,Rl({},et))},sx:function(){var X,ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return je?Fs._getOptionValue((X=y.$instance)===null||X===void 0||(X=X.$style)===null||X===void 0?void 0:X.inlineStyles,ie,Rl({},et)):void 0}},Q),y.$instance=y._$instances[o],(_=(R=y.$instance)[w])===null||_===void 0||_.call(R,y,S,E,I),y["$".concat(o)]=y.$instance,Fs._hook(o,w,y,S,E,I),y.$pd||(y.$pd={}),y.$pd[o]=Rl(Rl({},(j=y.$pd)===null||j===void 0?void 0:j[o]),{},{name:o,instance:y.$instance})},p=function(w){var y,S,E,I,M,_=(y=w.$instance)===null||y===void 0?void 0:y.watch;_==null||(S=_.config)===null||S===void 0||S.call(w.$instance,(E=w.$instance)===null||E===void 0?void 0:E.$primevueConfig),qO.on("config:change",function(R){var j,K=R.newValue,q=R.oldValue;return _==null||(j=_.config)===null||j===void 0?void 0:j.call(w.$instance,K,q)}),_==null||(I=_["config.ripple"])===null||I===void 0||I.call(w.$instance,(M=w.$instance)===null||M===void 0||(M=M.$primevueConfig)===null||M===void 0?void 0:M.ripple),qO.on("config:ripple:change",function(R){var j,K=R.newValue,q=R.oldValue;return _==null||(j=_["config.ripple"])===null||j===void 0?void 0:j.call(w.$instance,K,q)})};return{created:function(w,y,S,E){w.$pd||(w.$pd={}),w.$pd[o]={name:o,attrSelector:i9e("pd")},a("created",w,y,S,E)},beforeMount:function(w,y,S,E){Fs._loadStyles(w,y,S),a("beforeMount",w,y,S,E),p(w)},mounted:function(w,y,S,E){Fs._loadStyles(w,y,S),a("mounted",w,y,S,E)},beforeUpdate:function(w,y,S,E){a("beforeUpdate",w,y,S,E)},updated:function(w,y,S,E){Fs._loadStyles(w,y,S),a("updated",w,y,S,E)},beforeUnmount:function(w,y,S,E){a("beforeUnmount",w,y,S,E)},unmounted:function(w,y,S,E){var I;(I=w.$instance)===null||I===void 0||(I=I.scopedStyleEl)===null||I===void 0||(I=I.value)===null||I===void 0||I.remove(),a("unmounted",w,y,S,E)}}},extend:function(){var o=Fs._getMeta.apply(Fs,arguments),l=e5t(o,2),a=l[0],p=l[1];return Rl({extend:function(){var w=Fs._getMeta.apply(Fs,arguments),y=e5t(w,2),S=y[0],E=y[1];return Fs.extend(S,Rl(Rl(Rl({},p),p==null?void 0:p.methods),E))}},Fs._extend(a,p))}},h0n=function(o){var l=o.dt;return` -.p-ink { - display: block; - position: absolute; - background: `.concat(l("ripple.background"),`; - border-radius: 100%; - transform: scale(0); - pointer-events: none; -} - -.p-ink-active { - animation: ripple 0.4s linear; -} - -@keyframes ripple { - 100% { - opacity: 0; - transform: scale(2.5); - } -} -`)},p0n={root:"p-ink"},g0n=vs.extend({name:"ripple-directive",theme:h0n,classes:p0n}),b0n=Fs.extend({style:g0n});function bz(r){"@babel/helpers - typeof";return bz=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},bz(r)}function w0n(r){return k0n(r)||y0n(r)||v0n(r)||m0n()}function m0n(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v0n(r,o){if(r){if(typeof r=="string")return b7e(r,o);var l={}.toString.call(r).slice(8,-1);return l==="Object"&&r.constructor&&(l=r.constructor.name),l==="Map"||l==="Set"?Array.from(r):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?b7e(r,o):void 0}}function y0n(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function k0n(r){if(Array.isArray(r))return b7e(r)}function b7e(r,o){(o==null||o>r.length)&&(o=r.length);for(var l=0,a=Array(o);l1&&arguments[1]!==void 0?arguments[1]:function(){};_0n(this,r),this.element=o,this.listener=l}return A0n(r,[{key:"bindScrollListener",value:function(){this.scrollableParents=C1n(this.element);for(var l=0;lr.length)&&(o=r.length);for(var l=0,a=Array(o);l0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],g=[];return p.forEach(function(w){w.children instanceof Array?g=g.concat(l._recursive(g,w.children)):w.type.name===l.type?g.push(w):os(w.key)&&(g=g.concat(a.filter(function(y){return l._isMatched(y,w.key)}).map(function(y){return y.vnode})))}),g}}])}();function AC(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return i9e(r)}function q6(r,o){if(r){var l=r.props;if(l){var a=o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p=Object.prototype.hasOwnProperty.call(l,a)?a:o;return r.type.extends.props[o].type===Boolean&&l[p]===""?!0:l[p]}}return null}var G0n=function(o){var l=o.dt;return` -.p-splitter { - display: flex; - flex-wrap: nowrap; - border: 1px solid `.concat(l("splitter.border.color"),`; - background: `).concat(l("splitter.background"),`; - border-radius: `).concat(l("border.radius.md"),`; - color: `).concat(l("splitter.color"),`; -} - -.p-splitter-vertical { - flex-direction: column; -} - -.p-splitter-gutter { - flex-grow: 0; - flex-shrink: 0; - display: flex; - align-items: center; - justify-content: center; - z-index: 1; - background: `).concat(l("splitter.gutter.background"),`; -} - -.p-splitter-gutter-handle { - border-radius: `).concat(l("splitter.handle.border.radius"),`; - background: `).concat(l("splitter.handle.background"),`; - transition: outline-color `).concat(l("splitter.transition.duration"),", box-shadow ").concat(l("splitter.transition.duration"),`; - outline-color: transparent; -} - -.p-splitter-gutter-handle:focus-visible { - box-shadow: `).concat(l("splitter.handle.focus.ring.shadow"),`; - outline: `).concat(l("splitter.handle.focus.ring.width")," ").concat(l("splitter.handle.focus.ring.style")," ").concat(l("splitter.handle.focus.ring.color"),`; - outline-offset: `).concat(l("splitter.handle.focus.ring.offset"),`; -} - -.p-splitter-horizontal.p-splitter-resizing { - cursor: col-resize; - user-select: none; -} - -.p-splitter-vertical.p-splitter-resizing { - cursor: row-resize; - user-select: none; -} - -.p-splitter-horizontal > .p-splitter-gutter > .p-splitter-gutter-handle { - height: `).concat(l("splitter.handle.size"),`; - width: 100%; -} - -.p-splitter-vertical > .p-splitter-gutter > .p-splitter-gutter-handle { - width: `).concat(l("splitter.handle.size"),`; - height: 100%; -} - -.p-splitter-horizontal > .p-splitter-gutter { - cursor: col-resize; -} - -.p-splitter-vertical > .p-splitter-gutter { - cursor: row-resize; -} - -.p-splitterpanel { - flex-grow: 1; - overflow: hidden; -} - -.p-splitterpanel-nested { - display: flex; -} - -.p-splitterpanel .p-splitter { - flex-grow: 1; - border: 0 none; -} -`)},W0n={root:function(o){var l=o.props;return["p-splitter p-component","p-splitter-"+l.layout]},gutter:"p-splitter-gutter",gutterHandle:"p-splitter-gutter-handle"},V0n={root:function(o){var l=o.props;return[{display:"flex","flex-wrap":"nowrap"},l.layout==="vertical"?{"flex-direction":"column"}:""]}},q0n=vs.extend({name:"splitter",theme:G0n,classes:W0n,inlineStyles:V0n}),X0n={name:"BaseSplitter",extends:vl,props:{layout:{type:String,default:"horizontal"},gutterSize:{type:Number,default:4},stateKey:{type:String,default:null},stateStorage:{type:String,default:"session"},step:{type:Number,default:5}},style:q0n,provide:function(){return{$pcSplitter:this,$parentInstance:this}}};function o5t(r){return Z0n(r)||Q0n(r)||J0n(r)||Y0n()}function Y0n(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J0n(r,o){if(r){if(typeof r=="string")return m7e(r,o);var l={}.toString.call(r).slice(8,-1);return l==="Object"&&r.constructor&&(l=r.constructor.name),l==="Map"||l==="Set"?Array.from(r):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?m7e(r,o):void 0}}function Q0n(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Z0n(r){if(Array.isArray(r))return m7e(r)}function m7e(r,o){(o==null||o>r.length)&&(o=r.length);for(var l=0,a=Array(o);l100||o<0||l>100||l<0)return!1;var a=q6(this.panels[this.prevPanelIndex],"minSize");if(this.panels[this.prevPanelIndex].props&&a&&a>o)return!1;var p=q6(this.panels[this.prevPanelIndex+1],"minSize");return!(this.panels[this.prevPanelIndex+1].props&&p&&p>l)},unbindMouseListeners:function(){this.mouseMoveListener&&(document.removeEventListener("mousemove",this.mouseMoveListener),this.mouseMoveListener=null),this.mouseUpListener&&(document.removeEventListener("mouseup",this.mouseUpListener),this.mouseUpListener=null)},unbindTouchListeners:function(){this.touchMoveListener&&(document.removeEventListener("touchmove",this.touchMoveListener),this.touchMoveListener=null),this.touchEndListener&&(document.removeEventListener("touchend",this.touchEndListener),this.touchEndListener=null)},clear:function(){this.dragging=!1,this.size=null,this.startPos=null,this.prevPanelElement=null,this.nextPanelElement=null,this.prevPanelSize=null,this.nextPanelSize=null,this.gutterElement=null,this.prevPanelIndex=null},isStateful:function(){return this.stateKey!=null},getStorage:function(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},saveState:function(){bH(this.panelSizes)&&this.getStorage().setItem(this.stateKey,JSON.stringify(this.panelSizes))},restoreState:function(){var o=this,l=this.getStorage(),a=l.getItem(this.stateKey);if(a){this.panelSizes=JSON.parse(a);var p=o5t(this.$el.children).filter(function(g){return g.getAttribute("data-pc-name")==="splitterpanel"});return p.forEach(function(g,w){g.style.flexBasis="calc("+o.panelSizes[w]+"% - "+(o.panels.length-1)*o.gutterSize+"px)"}),!0}return!1},resetState:function(){this.initializePanels()}},computed:{panels:function(){var o=this,l=[];return this.$slots.default().forEach(function(a){o.isSplitterPanel(a)?l.push(a):a.children instanceof Array&&a.children.forEach(function(p){o.isSplitterPanel(p)&&l.push(p)})}),l},gutterStyle:function(){return this.horizontal?{width:this.gutterSize+"px"}:{height:this.gutterSize+"px"}},horizontal:function(){return this.layout==="horizontal"},getPTOptions:function(){var o;return{context:{nested:(o=this.$parentInstance)===null||o===void 0?void 0:o.nestedState}}}}},ebn=["onMousedown","onTouchstart","onTouchmove","onTouchend"],tbn=["aria-orientation","aria-valuenow","onKeydown"];function nbn(r,o,l,a,p,g){return ve(),wt("div",Qe({class:r.cx("root"),style:r.sx("root"),"data-p-resizing":!1},r.ptmi("root",g.getPTOptions)),[(ve(!0),wt(si,null,Mu(g.panels,function(w,y){return ve(),wt(si,{key:y},[(ve(),Cn(ko(w),{tabindex:"-1"})),y!==g.panels.length-1?(ve(),wt("div",Qe({key:0,ref_for:!0,ref:"gutter",class:r.cx("gutter"),role:"separator",tabindex:"-1",onMousedown:function(E){return g.onGutterMouseDown(E,y)},onTouchstart:function(E){return g.onGutterTouchStart(E,y)},onTouchmove:function(E){return g.onGutterTouchMove(E,y)},onTouchend:function(E){return g.onGutterTouchEnd(E,y)},"data-p-gutter-resizing":!1},r.ptm("gutter")),[ar("div",Qe({class:r.cx("gutterHandle"),tabindex:"0",style:[g.gutterStyle],"aria-orientation":r.layout,"aria-valuenow":p.prevSize,onKeyup:o[0]||(o[0]=function(){return g.onGutterKeyUp&&g.onGutterKeyUp.apply(g,arguments)}),onKeydown:function(E){return g.onGutterKeyDown(E,y)},ref_for:!0},r.ptm("gutterHandle")),null,16,tbn)],16,ebn)):rr("",!0)],64)}),128))],16)}E9t.render=nbn;var rbn={root:function(o){var l=o.instance;return["p-splitterpanel",{"p-splitterpanel-nested":l.isNested}]}},ibn=vs.extend({name:"splitterpanel",classes:rbn}),obn={name:"BaseSplitterPanel",extends:vl,props:{size:{type:Number,default:null},minSize:{type:Number,default:null}},style:ibn,provide:function(){return{$pcSplitterPanel:this,$parentInstance:this}}},Sne={name:"SplitterPanel",extends:obn,inheritAttrs:!1,data:function(){return{nestedState:null}},computed:{isNested:function(){var o=this;return this.$slots.default().some(function(l){return o.nestedState=l.type.name==="Splitter"?!0:null,o.nestedState})},getPTOptions:function(){return{context:{nested:this.isNested}}}}};function sbn(r,o,l,a,p,g){return ve(),wt("div",Qe({ref:"container",class:r.cx("root")},r.ptmi("root",g.getPTOptions)),[Nr(r.$slots,"default")],16)}Sne.render=sbn;var T9t={name:"BlankIcon",extends:su};function lbn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("rect",{width:"1",height:"1",fill:"currentColor","fill-opacity":"0"},null,-1)]),16)}T9t.render=lbn;var B_={name:"CheckIcon",extends:su};function cbn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1)]),16)}B_.render=cbn;var Xre={name:"ChevronDownIcon",extends:su};function ubn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1)]),16)}Xre.render=ubn;var I9t={name:"SearchIcon",extends:su};function abn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",fill:"currentColor"},null,-1)]),16)}I9t.render=abn;var Yre={name:"TimesIcon",extends:su};function fbn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"},null,-1)]),16)}Yre.render=fbn;var dbn=function(o){var l=o.dt;return` -.p-iconfield { - position: relative; -} - -.p-inputicon { - position: absolute; - top: 50%; - margin-top: calc(-1 * (`.concat(l("icon.size"),` / 2)); - color: `).concat(l("iconfield.icon.color"),`; - line-height: 1; -} - -.p-iconfield .p-inputicon:first-child { - inset-inline-start: `).concat(l("form.field.padding.x"),`; -} - -.p-iconfield .p-inputicon:last-child { - inset-inline-end: `).concat(l("form.field.padding.x"),`; -} - -.p-iconfield .p-inputtext:not(:first-child) { - padding-inline-start: calc((`).concat(l("form.field.padding.x")," * 2) + ").concat(l("icon.size"),`); -} - -.p-iconfield .p-inputtext:not(:last-child) { - padding-inline-end: calc((`).concat(l("form.field.padding.x")," * 2) + ").concat(l("icon.size"),`); -} - -.p-iconfield:has(.p-inputfield-sm) .p-inputicon { - font-size: `).concat(l("form.field.sm.font.size"),`; - width: `).concat(l("form.field.sm.font.size"),`; - height: `).concat(l("form.field.sm.font.size"),`; - margin-top: calc(-1 * (`).concat(l("form.field.sm.font.size"),` / 2)); -} - -.p-iconfield:has(.p-inputfield-lg) .p-inputicon { - font-size: `).concat(l("form.field.lg.font.size"),`; - width: `).concat(l("form.field.lg.font.size"),`; - height: `).concat(l("form.field.lg.font.size"),`; - margin-top: calc(-1 * (`).concat(l("form.field.lg.font.size"),` / 2)); -} -`)},hbn={root:"p-iconfield"},pbn=vs.extend({name:"iconfield",theme:dbn,classes:hbn}),gbn={name:"BaseIconField",extends:vl,style:pbn,provide:function(){return{$pcIconField:this,$parentInstance:this}}},P9t={name:"IconField",extends:gbn,inheritAttrs:!1};function bbn(r,o,l,a,p,g){return ve(),wt("div",Qe({class:r.cx("root")},r.ptmi("root")),[Nr(r.$slots,"default")],16)}P9t.render=bbn;var wbn={root:"p-inputicon"},mbn=vs.extend({name:"inputicon",classes:wbn}),vbn={name:"BaseInputIcon",extends:vl,style:mbn,props:{class:null},provide:function(){return{$pcInputIcon:this,$parentInstance:this}}},M9t={name:"InputIcon",extends:vbn,inheritAttrs:!1,computed:{containerClass:function(){return[this.cx("root"),this.class]}}};function ybn(r,o,l,a,p,g){return ve(),wt("span",Qe({class:g.containerClass},r.ptmi("root")),[Nr(r.$slots,"default")],16)}M9t.render=ybn;var kbn={name:"BaseEditableHolder",extends:vl,emits:["update:modelValue","value-change"],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue||this.modelValue}},watch:{modelValue:function(o){this.d_value=o},defaultValue:function(o){this.d_value=o},$formName:{immediate:!0,handler:function(o){var l,a;this.formField=((l=this.$pcForm)===null||l===void 0||(a=l.register)===null||a===void 0?void 0:a.call(l,o,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(o){var l,a;this.formField=((l=this.$pcForm)===null||l===void 0||(a=l.register)===null||a===void 0?void 0:a.call(l,this.$formName,o))||{}}},$formDefaultValue:{immediate:!0,handler:function(o){this.d_value!==o&&(this.d_value=o)}}},formField:{},methods:{writeValue:function(o,l){var a,p;this.controlled&&(this.d_value=o,this.$emit("update:modelValue",o)),this.$emit("value-change",o),(a=(p=this.formField).onChange)===null||a===void 0||a.call(p,{originalEvent:l,value:o})}},computed:{$filled:function(){return os(this.d_value)},$invalid:function(){var o,l,a,p;return(o=(l=this.invalid)!==null&&l!==void 0?l:(a=this.$pcFormField)===null||a===void 0||(a=a.$field)===null||a===void 0?void 0:a.invalid)!==null&&o!==void 0?o:(p=this.$pcForm)===null||p===void 0||(p=p.states)===null||p===void 0||(p=p[this.$formName])===null||p===void 0?void 0:p.invalid},$formName:function(){var o;return this.name||((o=this.$formControl)===null||o===void 0?void 0:o.name)},$formControl:function(){var o;return this.formControl||((o=this.$pcFormField)===null||o===void 0?void 0:o.formControl)},$formDefaultValue:function(){var o,l,a,p;return(o=(l=this.d_value)!==null&&l!==void 0?l:(a=this.$pcFormField)===null||a===void 0?void 0:a.initialValue)!==null&&o!==void 0?o:(p=this.$pcForm)===null||p===void 0||(p=p.initialValues)===null||p===void 0?void 0:p[this.$formName]},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},vH={name:"BaseInput",extends:kbn,props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){var o;return(o=this.variant)!==null&&o!==void 0?o:this.$primevue.config.inputStyle||this.$primevue.config.inputVariant},$fluid:function(){var o;return(o=this.fluid)!==null&&o!==void 0?o:!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},Cbn=function(o){var l=o.dt;return` -.p-inputtext { - font-family: inherit; - font-feature-settings: inherit; - font-size: 1rem; - color: `.concat(l("inputtext.color"),`; - background: `).concat(l("inputtext.background"),`; - padding-block: `).concat(l("inputtext.padding.y"),`; - padding-inline: `).concat(l("inputtext.padding.x"),`; - border: 1px solid `).concat(l("inputtext.border.color"),`; - transition: background `).concat(l("inputtext.transition.duration"),", color ").concat(l("inputtext.transition.duration"),", border-color ").concat(l("inputtext.transition.duration"),", outline-color ").concat(l("inputtext.transition.duration"),", box-shadow ").concat(l("inputtext.transition.duration"),`; - appearance: none; - border-radius: `).concat(l("inputtext.border.radius"),`; - outline-color: transparent; - box-shadow: `).concat(l("inputtext.shadow"),`; -} - -.p-inputtext:enabled:hover { - border-color: `).concat(l("inputtext.hover.border.color"),`; -} - -.p-inputtext:enabled:focus { - border-color: `).concat(l("inputtext.focus.border.color"),`; - box-shadow: `).concat(l("inputtext.focus.ring.shadow"),`; - outline: `).concat(l("inputtext.focus.ring.width")," ").concat(l("inputtext.focus.ring.style")," ").concat(l("inputtext.focus.ring.color"),`; - outline-offset: `).concat(l("inputtext.focus.ring.offset"),`; -} - -.p-inputtext.p-invalid { - border-color: `).concat(l("inputtext.invalid.border.color"),`; -} - -.p-inputtext.p-variant-filled { - background: `).concat(l("inputtext.filled.background"),`; -} - -.p-inputtext.p-variant-filled:enabled:hover { - background: `).concat(l("inputtext.filled.hover.background"),`; -} - -.p-inputtext.p-variant-filled:enabled:focus { - background: `).concat(l("inputtext.filled.focus.background"),`; -} - -.p-inputtext:disabled { - opacity: 1; - background: `).concat(l("inputtext.disabled.background"),`; - color: `).concat(l("inputtext.disabled.color"),`; -} - -.p-inputtext::placeholder { - color: `).concat(l("inputtext.placeholder.color"),`; -} - -.p-inputtext.p-invalid::placeholder { - color: `).concat(l("inputtext.invalid.placeholder.color"),`; -} - -.p-inputtext-sm { - font-size: `).concat(l("inputtext.sm.font.size"),`; - padding-block: `).concat(l("inputtext.sm.padding.y"),`; - padding-inline: `).concat(l("inputtext.sm.padding.x"),`; -} - -.p-inputtext-lg { - font-size: `).concat(l("inputtext.lg.font.size"),`; - padding-block: `).concat(l("inputtext.lg.padding.y"),`; - padding-inline: `).concat(l("inputtext.lg.padding.x"),`; -} - -.p-inputtext-fluid { - width: 100%; -} -`)},Sbn={root:function(o){var l=o.instance,a=o.props;return["p-inputtext p-component",{"p-filled":l.$filled,"p-inputtext-sm p-inputfield-sm":a.size==="small","p-inputtext-lg p-inputfield-lg":a.size==="large","p-invalid":l.$invalid,"p-variant-filled":l.$variant==="filled","p-inputtext-fluid":l.$fluid}]}},xbn=vs.extend({name:"inputtext",theme:Cbn,classes:Sbn}),Ebn={name:"BaseInputText",extends:vH,style:xbn,provide:function(){return{$pcInputText:this,$parentInstance:this}}},mE={name:"InputText",extends:Ebn,inheritAttrs:!1,methods:{onInput:function(o){this.writeValue(o.target.value,o)}},computed:{attrs:function(){return Qe(this.ptmi("root",{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)}}},Tbn=["value","disabled","aria-invalid"];function Ibn(r,o,l,a,p,g){return ve(),wt("input",Qe({type:"text",class:r.cx("root"),value:r.d_value,disabled:r.disabled,"aria-invalid":r.$invalid||void 0,onInput:o[0]||(o[0]=function(){return g.onInput&&g.onInput.apply(g,arguments)})},g.attrs),null,16,Tbn)}mE.render=Ibn;var nm=YSe(),yH={name:"Portal",props:{appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=qre()},computed:{inline:function(){return this.disabled||this.appendTo==="self"}}};function Pbn(r,o,l,a,p,g){return g.inline?Nr(r.$slots,"default",{key:0}):p.mounted?(ve(),Cn(fdn,{key:1,to:l.appendTo},[Nr(r.$slots,"default")],8,["to"])):rr("",!0)}yH.render=Pbn;var Mbn=function(o){var l=o.dt;return` -.p-virtualscroller-loader { - background: `.concat(l("virtualscroller.loader.mask.background"),`; - color: `).concat(l("virtualscroller.loader.mask.color"),`; -} - -.p-virtualscroller-loading-icon { - font-size: `).concat(l("virtualscroller.loader.icon.size"),`; - width: `).concat(l("virtualscroller.loader.icon.size"),`; - height: `).concat(l("virtualscroller.loader.icon.size"),`; -} -`)},Obn=` -.p-virtualscroller { - position: relative; - overflow: auto; - contain: strict; - transform: translateZ(0); - will-change: scroll-position; - outline: 0 none; -} - -.p-virtualscroller-content { - position: absolute; - top: 0; - left: 0; - min-height: 100%; - min-width: 100%; - will-change: transform; -} - -.p-virtualscroller-spacer { - position: absolute; - top: 0; - left: 0; - height: 1px; - width: 1px; - transform-origin: 0 0; - pointer-events: none; -} - -.p-virtualscroller-loader { - position: sticky; - top: 0; - left: 0; - width: 100%; - height: 100%; -} - -.p-virtualscroller-loader-mask { - display: flex; - align-items: center; - justify-content: center; -} - -.p-virtualscroller-horizontal > .p-virtualscroller-content { - display: flex; -} - -.p-virtualscroller-inline .p-virtualscroller-content { - position: static; -} -`,s5t=vs.extend({name:"virtualscroller",css:Obn,theme:Mbn}),_bn={name:"BaseVirtualScroller",extends:vl,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:"vertical"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:s5t,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var o;s5t.loadCSS({nonce:(o=this.$primevueConfig)===null||o===void 0||(o=o.csp)===null||o===void 0?void 0:o.nonce})}};function yz(r){"@babel/helpers - typeof";return yz=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},yz(r)}function l5t(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(r,p).enumerable})),l.push.apply(l,a)}return l}function uF(r){for(var o=1;o1&&arguments[1]!==void 0?arguments[1]:"auto",p=this.isBoth(),g=this.isHorizontal(),w=p?o.every(function(mt){return mt>-1}):o>-1;if(w){var y=this.first,S=this.element,E=S.scrollTop,I=E===void 0?0:E,M=S.scrollLeft,_=M===void 0?0:M,R=this.calculateNumItems(),j=R.numToleratedItems,K=this.getContentPosition(),q=this.itemSize,Q=function(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ce=arguments.length>1?arguments[1]:void 0;return bt<=ce?0:bt},Z=function(bt,ce,Be){return bt*ce+Be},X=function(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return l.scrollTo({left:bt,top:ce,behavior:a})},ie=p?{rows:0,cols:0}:0,je=!1,et=!1;p?(ie={rows:Q(o[0],j[0]),cols:Q(o[1],j[1])},X(Z(ie.cols,q[1],K.left),Z(ie.rows,q[0],K.top)),et=this.lastScrollPos.top!==I||this.lastScrollPos.left!==_,je=ie.rows!==y.rows||ie.cols!==y.cols):(ie=Q(o,j),g?X(Z(ie,q,K.left),I):X(_,Z(ie,q,K.top)),et=this.lastScrollPos!==(g?_:I),je=ie!==y),this.isRangeChanged=je,et&&(this.first=ie)}},scrollInView:function(o,l){var a=this,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(l){var g=this.isBoth(),w=this.isHorizontal(),y=g?o.every(function(q){return q>-1}):o>-1;if(y){var S=this.getRenderedRange(),E=S.first,I=S.viewport,M=function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return a.scrollTo({left:Q,top:Z,behavior:p})},_=l==="to-start",R=l==="to-end";if(_){if(g)I.first.rows-E.rows>o[0]?M(I.first.cols*this.itemSize[1],(I.first.rows-1)*this.itemSize[0]):I.first.cols-E.cols>o[1]&&M((I.first.cols-1)*this.itemSize[1],I.first.rows*this.itemSize[0]);else if(I.first-E>o){var j=(I.first-1)*this.itemSize;w?M(j,0):M(0,j)}}else if(R){if(g)I.last.rows-E.rows<=o[0]+1?M(I.first.cols*this.itemSize[1],(I.first.rows+1)*this.itemSize[0]):I.last.cols-E.cols<=o[1]+1&&M((I.first.cols+1)*this.itemSize[1],I.first.rows*this.itemSize[0]);else if(I.last-E<=o+1){var K=(I.first+1)*this.itemSize;w?M(K,0):M(0,K)}}}}else this.scrollToIndex(o,p)},getRenderedRange:function(){var o=function(M,_){return Math.floor(M/(_||M))},l=this.first,a=0;if(this.element){var p=this.isBoth(),g=this.isHorizontal(),w=this.element,y=w.scrollTop,S=w.scrollLeft;if(p)l={rows:o(y,this.itemSize[0]),cols:o(S,this.itemSize[1])},a={rows:l.rows+this.numItemsInViewport.rows,cols:l.cols+this.numItemsInViewport.cols};else{var E=g?S:y;l=o(E,this.itemSize),a=l+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:l,last:a}}},calculateNumItems:function(){var o=this.isBoth(),l=this.isHorizontal(),a=this.itemSize,p=this.getContentPosition(),g=this.element?this.element.offsetWidth-p.left:0,w=this.element?this.element.offsetHeight-p.top:0,y=function(_,R){return Math.ceil(_/(R||_))},S=function(_){return Math.ceil(_/2)},E=o?{rows:y(w,a[0]),cols:y(g,a[1])}:y(l?g:w,a),I=this.d_numToleratedItems||(o?[S(E.rows),S(E.cols)]:S(E));return{numItemsInViewport:E,numToleratedItems:I}},calculateOptions:function(){var o=this,l=this.isBoth(),a=this.first,p=this.calculateNumItems(),g=p.numItemsInViewport,w=p.numToleratedItems,y=function(I,M,_){var R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return o.getLast(I+M+(I<_?2:3)*_,R)},S=l?{rows:y(a.rows,g.rows,w[0]),cols:y(a.cols,g.cols,w[1],!0)}:y(a,g,w);this.last=S,this.numItemsInViewport=g,this.d_numToleratedItems=w,this.$emit("update:numToleratedItems",this.d_numToleratedItems),this.showLoader&&(this.loaderArr=l?Array.from({length:g.rows}).map(function(){return Array.from({length:g.cols})}):Array.from({length:g})),this.lazy&&Promise.resolve().then(function(){var E;o.lazyLoadState={first:o.step?l?{rows:0,cols:a.cols}:0:a,last:Math.min(o.step?o.step:S,((E=o.items)===null||E===void 0?void 0:E.length)||0)},o.$emit("lazy-load",o.lazyLoadState)})},calculateAutoSize:function(){var o=this;this.autoSize&&!this.d_loading&&Promise.resolve().then(function(){if(o.content){var l=o.isBoth(),a=o.isHorizontal(),p=o.isVertical();o.content.style.minHeight=o.content.style.minWidth="auto",o.content.style.position="relative",o.element.style.contain="none";var g=[SC(o.element),kC(o.element)],w=g[0],y=g[1];(l||a)&&(o.element.style.width=w0&&arguments[0]!==void 0?arguments[0]:0,p=arguments.length>1?arguments[1]:void 0;return this.items?Math.min(p?((o=this.columns||this.items[0])===null||o===void 0?void 0:o.length)||0:((l=this.items)===null||l===void 0?void 0:l.length)||0,a):0},getContentPosition:function(){if(this.content){var o=getComputedStyle(this.content),l=parseFloat(o.paddingLeft)+Math.max(parseFloat(o.left)||0,0),a=parseFloat(o.paddingRight)+Math.max(parseFloat(o.right)||0,0),p=parseFloat(o.paddingTop)+Math.max(parseFloat(o.top)||0,0),g=parseFloat(o.paddingBottom)+Math.max(parseFloat(o.bottom)||0,0);return{left:l,right:a,top:p,bottom:g,x:l+a,y:p+g}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var o=this;if(this.element){var l=this.isBoth(),a=this.isHorizontal(),p=this.element.parentElement,g=this.scrollWidth||"".concat(this.element.offsetWidth||p.offsetWidth,"px"),w=this.scrollHeight||"".concat(this.element.offsetHeight||p.offsetHeight,"px"),y=function(E,I){return o.element.style[E]=I};l||a?(y("height",w),y("width",g)):y("height",w)}},setSpacerSize:function(){var o=this,l=this.items;if(l){var a=this.isBoth(),p=this.isHorizontal(),g=this.getContentPosition(),w=function(S,E,I){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return o.spacerStyle=uF(uF({},o.spacerStyle),O9t({},"".concat(S),(E||[]).length*I+M+"px"))};a?(w("height",l,this.itemSize[0],g.y),w("width",this.columns||l[1],this.itemSize[1],g.x)):p?w("width",this.columns||l,this.itemSize,g.x):w("height",l,this.itemSize,g.y)}},setContentPosition:function(o){var l=this;if(this.content&&!this.appendOnly){var a=this.isBoth(),p=this.isHorizontal(),g=o?o.first:this.first,w=function(I,M){return I*M},y=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return l.contentStyle=uF(uF({},l.contentStyle),{transform:"translate3d(".concat(I,"px, ").concat(M,"px, 0)")})};if(a)y(w(g.cols,this.itemSize[1]),w(g.rows,this.itemSize[0]));else{var S=w(g,this.itemSize);p?y(S,0):y(0,S)}}},onScrollPositionChange:function(o){var l=this,a=o.target,p=this.isBoth(),g=this.isHorizontal(),w=this.getContentPosition(),y=function(ae,xe){return ae?ae>xe?ae-xe:ae:0},S=function(ae,xe){return Math.floor(ae/(xe||ae))},E=function(ae,xe,U,He,yt,ft){return ae<=yt?yt:ft?U-He-yt:xe+yt-1},I=function(ae,xe,U,He,yt,ft,At){return ae<=ft?0:Math.max(0,At?aexe?U:ae-2*ft)},M=function(ae,xe,U,He,yt,ft){var At=xe+He+2*yt;return ae>=yt&&(At+=yt+1),l.getLast(At,ft)},_=y(a.scrollTop,w.top),R=y(a.scrollLeft,w.left),j=p?{rows:0,cols:0}:0,K=this.last,q=!1,Q=this.lastScrollPos;if(p){var Z=this.lastScrollPos.top<=_,X=this.lastScrollPos.left<=R;if(!this.appendOnly||this.appendOnly&&(Z||X)){var ie={rows:S(_,this.itemSize[0]),cols:S(R,this.itemSize[1])},je={rows:E(ie.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],Z),cols:E(ie.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],X)};j={rows:I(ie.rows,je.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],Z),cols:I(ie.cols,je.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],X)},K={rows:M(ie.rows,j.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:M(ie.cols,j.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},q=j.rows!==this.first.rows||K.rows!==this.last.rows||j.cols!==this.first.cols||K.cols!==this.last.cols||this.isRangeChanged,Q={top:_,left:R}}}else{var et=g?R:_,mt=this.lastScrollPos<=et;if(!this.appendOnly||this.appendOnly&&mt){var bt=S(et,this.itemSize),ce=E(bt,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,mt);j=I(bt,ce,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,mt),K=M(bt,j,this.last,this.numItemsInViewport,this.d_numToleratedItems),q=j!==this.first||K!==this.last||this.isRangeChanged,Q=et}}return{first:j,last:K,isRangeChanged:q,scrollPos:Q}},onScrollChange:function(o){var l=this.onScrollPositionChange(o),a=l.first,p=l.last,g=l.isRangeChanged,w=l.scrollPos;if(g){var y={first:a,last:p};if(this.setContentPosition(y),this.first=a,this.last=p,this.lastScrollPos=w,this.$emit("scroll-index-change",y),this.lazy&&this.isPageChanged(a)){var S,E,I={first:this.step?Math.min(this.getPageByFirst(a)*this.step,(((S=this.items)===null||S===void 0?void 0:S.length)||0)-this.step):a,last:Math.min(this.step?(this.getPageByFirst(a)+1)*this.step:p,((E=this.items)===null||E===void 0?void 0:E.length)||0)},M=this.lazyLoadState.first!==I.first||this.lazyLoadState.last!==I.last;M&&this.$emit("lazy-load",I),this.lazyLoadState=I}}},onScroll:function(o){var l=this;if(this.$emit("scroll",o),this.delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading&&this.showLoader){var a=this.onScrollPositionChange(o),p=a.isRangeChanged,g=p||(this.step?this.isPageChanged():!1);g&&(this.d_loading=!0)}this.scrollTimeout=setTimeout(function(){l.onScrollChange(o),l.d_loading&&l.showLoader&&(!l.lazy||l.loading===void 0)&&(l.d_loading=!1,l.page=l.getPageByFirst())},this.delay)}}else this.onScrollChange(o)},onResize:function(){var o=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){if(Zne(o.element)){var l=o.isBoth(),a=o.isVertical(),p=o.isHorizontal(),g=[SC(o.element),kC(o.element)],w=g[0],y=g[1],S=w!==o.defaultWidth,E=y!==o.defaultHeight,I=l?S||E:p?S:a?E:!1;I&&(o.d_numToleratedItems=o.numToleratedItems,o.defaultWidth=w,o.defaultHeight=y,o.defaultContentWidth=SC(o.content),o.defaultContentHeight=kC(o.content),o.init())}},this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener("resize",this.resizeListener),window.addEventListener("orientationchange",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("orientationchange",this.resizeListener),this.resizeListener=null)},getOptions:function(o){var l=(this.items||[]).length,a=this.isBoth()?this.first.rows+o:this.first+o;return{index:a,count:l,first:a===0,last:a===l-1,even:a%2===0,odd:a%2!==0}},getLoaderOptions:function(o,l){var a=this.loaderArr.length;return uF({index:o,count:a,first:o===0,last:o===a-1,even:o%2===0,odd:o%2!==0},l)},getPageByFirst:function(o){return Math.floor(((o??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged:function(o){return this.step&&!this.lazy?this.page!==this.getPageByFirst(o??this.first):!0},setContentEl:function(o){this.content=o||this.content||PC(this.element,'[data-pc-section="content"]')},elementRef:function(o){this.element=o},contentRef:function(o){this.content=o}},computed:{containerClass:function(){return["p-virtualscroller",this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal()}]},contentClass:function(){return["p-virtualscroller-content",{"p-virtualscroller-loading":this.d_loading}]},loaderClass:function(){return["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!this.$slots.loader}]},loadedItems:function(){var o=this;return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(function(l){return o.columns?l:l.slice(o.appendOnly?0:o.first.cols,o.last.cols)}):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var o=this.isBoth(),l=this.isHorizontal();if(o||l)return this.d_loading&&this.loaderDisabled?o?this.loaderArr[0]:this.loaderArr:this.columns.slice(o?this.first.cols:this.first,o?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:mH}},Lbn=["tabindex"];function $bn(r,o,l,a,p,g){var w=ki("SpinnerIcon");return r.disabled?(ve(),wt(si,{key:1},[Nr(r.$slots,"default"),Nr(r.$slots,"content",{items:r.items,rows:r.items,columns:g.loadedColumns})],64)):(ve(),wt("div",Qe({key:0,ref:g.elementRef,class:g.containerClass,tabindex:r.tabindex,style:r.style,onScroll:o[0]||(o[0]=function(){return g.onScroll&&g.onScroll.apply(g,arguments)})},r.ptmi("root")),[Nr(r.$slots,"content",{styleClass:g.contentClass,items:g.loadedItems,getItemOptions:g.getOptions,loading:p.d_loading,getLoaderOptions:g.getLoaderOptions,itemSize:r.itemSize,rows:g.loadedRows,columns:g.loadedColumns,contentRef:g.contentRef,spacerStyle:p.spacerStyle,contentStyle:p.contentStyle,vertical:g.isVertical(),horizontal:g.isHorizontal(),both:g.isBoth()},function(){return[ar("div",Qe({ref:g.contentRef,class:g.contentClass,style:p.contentStyle},r.ptm("content")),[(ve(!0),wt(si,null,Mu(g.loadedItems,function(y,S){return Nr(r.$slots,"item",{key:S,item:y,options:g.getOptions(S)})}),128))],16)]}),r.showSpacer?(ve(),wt("div",Qe({key:0,class:"p-virtualscroller-spacer",style:p.spacerStyle},r.ptm("spacer")),null,16)):rr("",!0),!r.loaderDisabled&&r.showLoader&&p.d_loading?(ve(),wt("div",Qe({key:1,class:g.loaderClass},r.ptm("loader")),[r.$slots&&r.$slots.loader?(ve(!0),wt(si,{key:0},Mu(p.loaderArr,function(y,S){return Nr(r.$slots,"loader",{key:S,options:g.getLoaderOptions(S,g.isBoth()&&{numCols:r.d_numItemsInViewport.cols})})}),128)):rr("",!0),Nr(r.$slots,"loadingicon",{},function(){return[ai(w,Qe({spin:"",class:"p-virtualscroller-loading-icon"},r.ptm("loadingIcon")),null,16)]})],16)):rr("",!0)],16,Lbn))}l9e.render=$bn;var jbn=function(o){var l=o.dt;return` -.p-select { - display: inline-flex; - cursor: pointer; - position: relative; - user-select: none; - background: `.concat(l("select.background"),`; - border: 1px solid `).concat(l("select.border.color"),`; - transition: background `).concat(l("select.transition.duration"),", color ").concat(l("select.transition.duration"),", border-color ").concat(l("select.transition.duration"),`, - outline-color `).concat(l("select.transition.duration"),", box-shadow ").concat(l("select.transition.duration"),`; - border-radius: `).concat(l("select.border.radius"),`; - outline-color: transparent; - box-shadow: `).concat(l("select.shadow"),`; -} - -.p-select:not(.p-disabled):hover { - border-color: `).concat(l("select.hover.border.color"),`; -} - -.p-select:not(.p-disabled).p-focus { - border-color: `).concat(l("select.focus.border.color"),`; - box-shadow: `).concat(l("select.focus.ring.shadow"),`; - outline: `).concat(l("select.focus.ring.width")," ").concat(l("select.focus.ring.style")," ").concat(l("select.focus.ring.color"),`; - outline-offset: `).concat(l("select.focus.ring.offset"),`; -} - -.p-select.p-variant-filled { - background: `).concat(l("select.filled.background"),`; -} - -.p-select.p-variant-filled:not(.p-disabled):hover { - background: `).concat(l("select.filled.hover.background"),`; -} - -.p-select.p-variant-filled:not(.p-disabled).p-focus { - background: `).concat(l("select.filled.focus.background"),`; -} - -.p-select.p-invalid { - border-color: `).concat(l("select.invalid.border.color"),`; -} - -.p-select.p-disabled { - opacity: 1; - background: `).concat(l("select.disabled.background"),`; -} - -.p-select-clear-icon { - position: absolute; - top: 50%; - margin-top: -0.5rem; - color: `).concat(l("select.clear.icon.color"),`; - inset-inline-end: `).concat(l("select.dropdown.width"),`; -} - -.p-select-dropdown { - display: flex; - align-items: center; - justify-content: center; - flex-shrink: 0; - background: transparent; - color: `).concat(l("select.dropdown.color"),`; - width: `).concat(l("select.dropdown.width"),`; - border-start-end-radius: `).concat(l("select.border.radius"),`; - border-end-end-radius: `).concat(l("select.border.radius"),`; -} - -.p-select-label { - display: block; - white-space: nowrap; - overflow: hidden; - flex: 1 1 auto; - width: 1%; - padding: `).concat(l("select.padding.y")," ").concat(l("select.padding.x"),`; - text-overflow: ellipsis; - cursor: pointer; - color: `).concat(l("select.color"),`; - background: transparent; - border: 0 none; - outline: 0 none; -} - -.p-select-label.p-placeholder { - color: `).concat(l("select.placeholder.color"),`; -} - -.p-select.p-invalid .p-select-label.p-placeholder { - color: `).concat(l("select.invalid.placeholder.color"),`; -} - -.p-select:has(.p-select-clear-icon) .p-select-label { - padding-inline-end: calc(1rem + `).concat(l("select.padding.x"),`); -} - -.p-select.p-disabled .p-select-label { - color: `).concat(l("select.disabled.color"),`; -} - -.p-select-label-empty { - overflow: hidden; - opacity: 0; -} - -input.p-select-label { - cursor: default; -} - -.p-select .p-select-overlay { - min-width: 100%; -} - -.p-select-overlay { - position: absolute; - top: 0; - left: 0; - background: `).concat(l("select.overlay.background"),`; - color: `).concat(l("select.overlay.color"),`; - border: 1px solid `).concat(l("select.overlay.border.color"),`; - border-radius: `).concat(l("select.overlay.border.radius"),`; - box-shadow: `).concat(l("select.overlay.shadow"),`; -} - -.p-select-header { - padding: `).concat(l("select.list.header.padding"),`; -} - -.p-select-filter { - width: 100%; -} - -.p-select-list-container { - overflow: auto; -} - -.p-select-option-group { - cursor: auto; - margin: 0; - padding: `).concat(l("select.option.group.padding"),`; - background: `).concat(l("select.option.group.background"),`; - color: `).concat(l("select.option.group.color"),`; - font-weight: `).concat(l("select.option.group.font.weight"),`; -} - -.p-select-list { - margin: 0; - padding: 0; - list-style-type: none; - padding: `).concat(l("select.list.padding"),`; - gap: `).concat(l("select.list.gap"),`; - display: flex; - flex-direction: column; -} - -.p-select-option { - cursor: pointer; - font-weight: normal; - white-space: nowrap; - position: relative; - overflow: hidden; - display: flex; - align-items: center; - padding: `).concat(l("select.option.padding"),`; - border: 0 none; - color: `).concat(l("select.option.color"),`; - background: transparent; - transition: background `).concat(l("select.transition.duration"),", color ").concat(l("select.transition.duration"),", border-color ").concat(l("select.transition.duration"),`, - box-shadow `).concat(l("select.transition.duration"),", outline-color ").concat(l("select.transition.duration"),`; - border-radius: `).concat(l("select.option.border.radius"),`; -} - -.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus { - background: `).concat(l("select.option.focus.background"),`; - color: `).concat(l("select.option.focus.color"),`; -} - -.p-select-option.p-select-option-selected { - background: `).concat(l("select.option.selected.background"),`; - color: `).concat(l("select.option.selected.color"),`; -} - -.p-select-option.p-select-option-selected.p-focus { - background: `).concat(l("select.option.selected.focus.background"),`; - color: `).concat(l("select.option.selected.focus.color"),`; -} - -.p-select-option-check-icon { - position: relative; - margin-inline-start: `).concat(l("select.checkmark.gutter.start"),`; - margin-inline-end: `).concat(l("select.checkmark.gutter.end"),`; - color: `).concat(l("select.checkmark.color"),`; -} - -.p-select-empty-message { - padding: `).concat(l("select.empty.message.padding"),`; -} - -.p-select-fluid { - display: flex; -} - -.p-select-sm .p-select-label { - font-size: `).concat(l("select.sm.font.size"),`; - padding-block: `).concat(l("select.sm.padding.y"),`; - padding-inline: `).concat(l("select.sm.padding.x"),`; -} - -.p-select-sm .p-select-dropdown .p-icon { - font-size: `).concat(l("select.sm.font.size"),`; - width: `).concat(l("select.sm.font.size"),`; - height: `).concat(l("select.sm.font.size"),`; -} - -.p-select-lg .p-select-label { - font-size: `).concat(l("select.lg.font.size"),`; - padding-block: `).concat(l("select.lg.padding.y"),`; - padding-inline: `).concat(l("select.lg.padding.x"),`; -} - -.p-select-lg .p-select-dropdown .p-icon { - font-size: `).concat(l("select.lg.font.size"),`; - width: `).concat(l("select.lg.font.size"),`; - height: `).concat(l("select.lg.font.size"),`; -} -`)},Dbn={root:function(o){var l=o.instance,a=o.props,p=o.state;return["p-select p-component p-inputwrapper",{"p-disabled":a.disabled,"p-invalid":l.$invalid,"p-variant-filled":l.$variant==="filled","p-focus":p.focused,"p-inputwrapper-filled":l.$filled,"p-inputwrapper-focus":p.focused||p.overlayVisible,"p-select-open":p.overlayVisible,"p-select-fluid":l.$fluid,"p-select-sm p-inputfield-sm":a.size==="small","p-select-lg p-inputfield-lg":a.size==="large"}]},label:function(o){var l=o.instance,a=o.props;return["p-select-label",{"p-placeholder":!a.editable&&l.label===a.placeholder,"p-select-label-empty":!a.editable&&!l.$slots.value&&(l.label==="p-emptylabel"||l.label.length===0)}]},clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingicon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:function(o){var l=o.instance,a=o.props,p=o.state,g=o.option,w=o.focusedOption;return["p-select-option",{"p-select-option-selected":l.isSelected(g)&&a.highlightOnSelect,"p-focus":p.focusedOptionIndex===w,"p-disabled":l.isOptionDisabled(g)}]},optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},Nbn=vs.extend({name:"select",theme:jbn,classes:Dbn}),Bbn={name:"BaseSelect",extends:vH,props:{options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"14rem"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},labelId:{type:String,default:null},labelClass:{type:[String,Object],default:null},labelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},appendTo:{type:[String,Object],default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:Nbn,provide:function(){return{$pcSelect:this,$parentInstance:this}}};function kz(r){"@babel/helpers - typeof";return kz=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},kz(r)}function Fbn(r){return Ubn(r)||Kbn(r)||Hbn(r)||zbn()}function zbn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hbn(r,o){if(r){if(typeof r=="string")return v7e(r,o);var l={}.toString.call(r).slice(8,-1);return l==="Object"&&r.constructor&&(l=r.constructor.name),l==="Map"||l==="Set"?Array.from(r):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?v7e(r,o):void 0}}function Kbn(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Ubn(r){if(Array.isArray(r))return v7e(r)}function v7e(r,o){(o==null||o>r.length)&&(o=r.length);for(var l=0,a=Array(o);l2&&arguments[2]!==void 0?arguments[2]:!0,p=this.getOptionValue(l);this.updateModel(o,p),a&&this.hide(!0)},onOptionMouseMove:function(o,l){this.focusOnHover&&this.changeFocusedOptionIndex(o,l)},onFilterChange:function(o){var l=o.target.value;this.filterValue=l,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:o,value:l}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(o){if(!o.isComposing)switch(o.code){case"ArrowDown":this.onArrowDownKey(o);break;case"ArrowUp":this.onArrowUpKey(o,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(o,!0);break;case"Home":this.onHomeKey(o,!0);break;case"End":this.onEndKey(o,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(o);break;case"Escape":this.onEscapeKey(o);break;case"Tab":this.onTabKey(o,!0);break}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(o){nm.emit("overlay-click",{originalEvent:o,target:this.$el})},onOverlayKeyDown:function(o){switch(o.code){case"Escape":this.onEscapeKey(o);break}},onArrowDownKey:function(o){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(o,this.findSelectedOptionIndex());else{var l=this.focusedOptionIndex!==-1?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(o,l)}o.preventDefault()},onArrowUpKey:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o.altKey&&!l)this.focusedOptionIndex!==-1&&this.onOptionSelect(o,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),o.preventDefault();else{var a=this.focusedOptionIndex!==-1?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(o,a),!this.overlayVisible&&this.show(),o.preventDefault()}},onArrowLeftKey:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;l&&(this.focusedOptionIndex=-1)},onHomeKey:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(l){var a=o.currentTarget;o.shiftKey?a.setSelectionRange(0,o.target.selectionStart):(a.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(o,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();o.preventDefault()},onEndKey:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(l){var a=o.currentTarget;if(o.shiftKey)a.setSelectionRange(o.target.selectionStart,a.value.length);else{var p=a.value.length;a.setSelectionRange(p,p),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(o,this.findLastOptionIndex()),!this.overlayVisible&&this.show();o.preventDefault()},onPageUpKey:function(o){this.scrollInView(0),o.preventDefault()},onPageDownKey:function(o){this.scrollInView(this.visibleOptions.length-1),o.preventDefault()},onEnterKey:function(o){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(o,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(o)),o.preventDefault()},onSpaceKey:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!l&&this.onEnterKey(o)},onEscapeKey:function(o){this.overlayVisible&&this.hide(!0),o.preventDefault(),o.stopPropagation()},onTabKey:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;l||(this.overlayVisible&&this.hasFocusableElements()?(Uh(this.$refs.firstHiddenFocusableElementOnOverlay),o.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(o,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;l&&!this.overlayVisible&&this.show()},onOverlayEnter:function(o){var l=this;sm.set("overlay",o,this.$primevue.config.zIndex.overlay),k_(o,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),setTimeout(function(){l.autoFilterFocus&&l.filter&&Uh(l.$refs.filterInput.$el)},1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){var o=this;this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus&&this.filter&&!this.editable&&this.$nextTick(function(){Uh(o.$refs.filterInput.$el)}),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(o){sm.clear(o)},alignOverlay:function(){this.appendTo==="self"?v1n(this.overlay,this.$el):(this.overlay.style.minWidth=Vh(this.$el)+"px",QSe(this.overlay,this.$el))},bindOutsideClickListener:function(){var o=this;this.outsideClickListener||(this.outsideClickListener=function(l){o.overlayVisible&&o.overlay&&!o.$el.contains(l.target)&&!o.overlay.contains(l.target)&&o.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var o=this;this.scrollHandler||(this.scrollHandler=new s9e(this.$refs.container,function(){o.overlayVisible&&o.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var o=this;this.resizeListener||(this.resizeListener=function(){o.overlayVisible&&!r9e()&&o.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var o=this;if(!this.editable&&!this.labelClickListener){var l=document.querySelector('label[for="'.concat(this.labelId,'"]'));l&&Zne(l)&&(this.labelClickListener=function(){Uh(o.$refs.focusInput)},l.addEventListener("click",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var o=document.querySelector('label[for="'.concat(this.labelId,'"]'));o&&Zne(o)&&o.removeEventListener("click",this.labelClickListener)}},hasFocusableElements:function(){return ZSe(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(o){var l;return this.isValidOption(o)&&typeof this.getOptionLabel(o)=="string"&&((l=this.getOptionLabel(o))===null||l===void 0?void 0:l.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(o){return os(o)&&!(this.isOptionDisabled(o)||this.isOptionGroup(o))},isValidSelectedOption:function(o){return this.isValidOption(o)&&this.isSelected(o)},isSelected:function(o){return VE(this.d_value,this.getOptionValue(o),this.equalityKey)},findFirstOptionIndex:function(){var o=this;return this.visibleOptions.findIndex(function(l){return o.isValidOption(l)})},findLastOptionIndex:function(){var o=this;return Ikt(this.visibleOptions,function(l){return o.isValidOption(l)})},findNextOptionIndex:function(o){var l=this,a=o-1?a+o+1:o},findPrevOptionIndex:function(o){var l=this,a=o>0?Ikt(this.visibleOptions.slice(0,o),function(p){return l.isValidOption(p)}):-1;return a>-1?a:o},findSelectedOptionIndex:function(){var o=this;return this.$filled?this.visibleOptions.findIndex(function(l){return o.isValidSelectedOption(l)}):-1},findFirstFocusedOptionIndex:function(){var o=this.findSelectedOptionIndex();return o<0?this.findFirstOptionIndex():o},findLastFocusedOptionIndex:function(){var o=this.findSelectedOptionIndex();return o<0?this.findLastOptionIndex():o},searchOptions:function(o,l){var a=this;this.searchValue=(this.searchValue||"")+l;var p=-1,g=!1;return os(this.searchValue)&&(this.focusedOptionIndex!==-1?(p=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(w){return a.isOptionMatched(w)}),p=p===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(function(w){return a.isOptionMatched(w)}):p+this.focusedOptionIndex):p=this.visibleOptions.findIndex(function(w){return a.isOptionMatched(w)}),p!==-1&&(g=!0),p===-1&&this.focusedOptionIndex===-1&&(p=this.findFirstFocusedOptionIndex()),p!==-1&&this.changeFocusedOptionIndex(o,p)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){a.searchValue="",a.searchTimeout=null},500),g},changeFocusedOptionIndex:function(o,l){this.focusedOptionIndex!==l&&(this.focusedOptionIndex=l,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(o,this.visibleOptions[l],!1))},scrollInView:function(){var o=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var a=l!==-1?"".concat(o.id,"_").concat(l):o.focusedOptionId,p=PC(o.list,'li[id="'.concat(a,'"]'));p?p.scrollIntoView&&p.scrollIntoView({block:"nearest",inline:"start"}):o.virtualScrollerDisabled||o.virtualScroller&&o.virtualScroller.scrollToIndex(l!==-1?l:o.focusedOptionIndex)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(o,l){this.writeValue(l,o),this.$emit("change",{originalEvent:o,value:l})},flatOptions:function(o){var l=this;return(o||[]).reduce(function(a,p,g){a.push({optionGroup:p,group:!0,index:g});var w=l.getOptionGroupChildren(p);return w&&w.forEach(function(y){return a.push(y)}),a},[])},overlayRef:function(o){this.overlay=o},listRef:function(o,l){this.list=o,l&&l(o)},virtualScrollerRef:function(o){this.virtualScroller=o}},computed:{visibleOptions:function(){var o=this,l=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var a=p7e.filter(l,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var p=this.options||[],g=[];return p.forEach(function(w){var y=o.getOptionGroupChildren(w),S=y.filter(function(E){return a.includes(E)});S.length>0&&g.push(u5t(u5t({},w),{},_9t({},typeof o.optionGroupChildren=="string"?o.optionGroupChildren:"items",Fbn(S))))}),this.flatOptions(g)}return a}return l},hasSelectedOption:function(){return this.$filled},label:function(){var o=this.findSelectedOptionIndex();return o!==-1?this.getOptionLabel(this.visibleOptions[o]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var o=this.findSelectedOptionIndex();return o!==-1?this.getOptionLabel(this.visibleOptions[o]):this.d_value||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return os(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex!==-1?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var o=this;return this.visibleOptions.filter(function(l){return!o.isOptionGroup(l)}).length},isClearIconVisible:function(){return this.showClear&&this.d_value!=null&&os(this.options)},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:O3},components:{InputText:mE,VirtualScroller:l9e,Portal:yH,InputIcon:M9t,IconField:P9t,TimesIcon:Yre,ChevronDownIcon:Xre,SpinnerIcon:mH,SearchIcon:I9t,CheckIcon:B_,BlankIcon:T9t}},Vbn=["id"],qbn=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],Xbn=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],Ybn=["id"],Jbn=["id"],Qbn=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-selected","data-p-focused","data-p-disabled"];function Zbn(r,o,l,a,p,g){var w=ki("SpinnerIcon"),y=ki("InputText"),S=ki("SearchIcon"),E=ki("InputIcon"),I=ki("IconField"),M=ki("CheckIcon"),_=ki("BlankIcon"),R=ki("VirtualScroller"),j=ki("Portal"),K=hy("ripple");return ve(),wt("div",Qe({ref:"container",id:p.id,class:r.cx("root"),onClick:o[11]||(o[11]=function(){return g.onContainerClick&&g.onContainerClick.apply(g,arguments)})},r.ptmi("root")),[r.editable?(ve(),wt("input",Qe({key:0,ref:"focusInput",id:r.labelId||r.inputId,type:"text",class:[r.cx("label"),r.inputClass,r.labelClass],style:[r.inputStyle,r.labelStyle],value:g.editableInputValue,placeholder:r.placeholder,tabindex:r.disabled?-1:r.tabindex,disabled:r.disabled,autocomplete:"off",role:"combobox","aria-label":r.ariaLabel,"aria-labelledby":r.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":p.overlayVisible,"aria-controls":p.id+"_list","aria-activedescendant":p.focused?g.focusedOptionId:void 0,"aria-invalid":r.invalid||void 0,onFocus:o[0]||(o[0]=function(){return g.onFocus&&g.onFocus.apply(g,arguments)}),onBlur:o[1]||(o[1]=function(){return g.onBlur&&g.onBlur.apply(g,arguments)}),onKeydown:o[2]||(o[2]=function(){return g.onKeyDown&&g.onKeyDown.apply(g,arguments)}),onInput:o[3]||(o[3]=function(){return g.onEditableInput&&g.onEditableInput.apply(g,arguments)})},r.ptm("label")),null,16,qbn)):(ve(),wt("span",Qe({key:1,ref:"focusInput",id:r.labelId||r.inputId,class:[r.cx("label"),r.inputClass,r.labelClass],style:[r.inputStyle,r.labelStyle],tabindex:r.disabled?-1:r.tabindex,role:"combobox","aria-label":r.ariaLabel||(g.label==="p-emptylabel"?void 0:g.label),"aria-labelledby":r.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":p.overlayVisible,"aria-controls":p.id+"_list","aria-activedescendant":p.focused?g.focusedOptionId:void 0,"aria-disabled":r.disabled,onFocus:o[4]||(o[4]=function(){return g.onFocus&&g.onFocus.apply(g,arguments)}),onBlur:o[5]||(o[5]=function(){return g.onBlur&&g.onBlur.apply(g,arguments)}),onKeydown:o[6]||(o[6]=function(){return g.onKeyDown&&g.onKeyDown.apply(g,arguments)})},r.ptm("label")),[Nr(r.$slots,"value",{value:r.d_value,placeholder:r.placeholder},function(){var q;return[hb(Il(g.label==="p-emptylabel"?" ":(q=g.label)!==null&&q!==void 0?q:"empty"),1)]})],16,Xbn)),g.isClearIconVisible?Nr(r.$slots,"clearicon",{key:2,class:yo(r.cx("clearIcon")),clearCallback:g.onClearClick},function(){return[(ve(),Cn(ko(r.clearIcon?"i":"TimesIcon"),Qe({ref:"clearIcon",class:[r.cx("clearIcon"),r.clearIcon],onClick:g.onClearClick},r.ptm("clearIcon"),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]}):rr("",!0),ar("div",Qe({class:r.cx("dropdown")},r.ptm("dropdown")),[r.loading?Nr(r.$slots,"loadingicon",{key:0,class:yo(r.cx("loadingIcon"))},function(){return[r.loadingIcon?(ve(),wt("span",Qe({key:0,class:[r.cx("loadingIcon"),"pi-spin",r.loadingIcon],"aria-hidden":"true"},r.ptm("loadingIcon")),null,16)):(ve(),Cn(w,Qe({key:1,class:r.cx("loadingIcon"),spin:"","aria-hidden":"true"},r.ptm("loadingIcon")),null,16,["class"]))]}):Nr(r.$slots,"dropdownicon",{key:1,class:yo(r.cx("dropdownIcon"))},function(){return[(ve(),Cn(ko(r.dropdownIcon?"span":"ChevronDownIcon"),Qe({class:[r.cx("dropdownIcon"),r.dropdownIcon],"aria-hidden":"true"},r.ptm("dropdownIcon")),null,16,["class"]))]})],16),ai(j,{appendTo:r.appendTo},{default:ui(function(){return[ai(Wre,Qe({name:"p-connected-overlay",onEnter:g.onOverlayEnter,onAfterEnter:g.onOverlayAfterEnter,onLeave:g.onOverlayLeave,onAfterLeave:g.onOverlayAfterLeave},r.ptm("transition")),{default:ui(function(){return[p.overlayVisible?(ve(),wt("div",Qe({key:0,ref:g.overlayRef,class:[r.cx("overlay"),r.panelClass,r.overlayClass],style:[r.panelStyle,r.overlayStyle],onClick:o[9]||(o[9]=function(){return g.onOverlayClick&&g.onOverlayClick.apply(g,arguments)}),onKeydown:o[10]||(o[10]=function(){return g.onOverlayKeyDown&&g.onOverlayKeyDown.apply(g,arguments)})},r.ptm("overlay")),[ar("span",Qe({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:o[7]||(o[7]=function(){return g.onFirstHiddenFocus&&g.onFirstHiddenFocus.apply(g,arguments)})},r.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),Nr(r.$slots,"header",{value:r.d_value,options:g.visibleOptions}),r.filter?(ve(),wt("div",Qe({key:0,class:r.cx("header")},r.ptm("header")),[ai(I,{unstyled:r.unstyled,pt:r.ptm("pcFilterContainer")},{default:ui(function(){return[ai(y,{ref:"filterInput",type:"text",value:p.filterValue,onVnodeMounted:g.onFilterUpdated,onVnodeUpdated:g.onFilterUpdated,class:yo(r.cx("pcFilter")),placeholder:r.filterPlaceholder,variant:r.variant,unstyled:r.unstyled,role:"searchbox",autocomplete:"off","aria-owns":p.id+"_list","aria-activedescendant":g.focusedOptionId,onKeydown:g.onFilterKeyDown,onBlur:g.onFilterBlur,onInput:g.onFilterChange,pt:r.ptm("pcFilter")},null,8,["value","onVnodeMounted","onVnodeUpdated","class","placeholder","variant","unstyled","aria-owns","aria-activedescendant","onKeydown","onBlur","onInput","pt"]),ai(E,{unstyled:r.unstyled,pt:r.ptm("pcFilterIconContainer")},{default:ui(function(){return[Nr(r.$slots,"filtericon",{},function(){return[r.filterIcon?(ve(),wt("span",Qe({key:0,class:r.filterIcon},r.ptm("filterIcon")),null,16)):(ve(),Cn(S,m_(Qe({key:1},r.ptm("filterIcon"))),null,16))]})]}),_:3},8,["unstyled","pt"])]}),_:3},8,["unstyled","pt"]),ar("span",Qe({role:"status","aria-live":"polite",class:"p-hidden-accessible"},r.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),Il(g.filterResultMessageText),17)],16)):rr("",!0),ar("div",Qe({class:r.cx("listContainer"),style:{"max-height":g.virtualScrollerDisabled?r.scrollHeight:""}},r.ptm("listContainer")),[ai(R,Qe({ref:g.virtualScrollerRef},r.virtualScrollerOptions,{items:g.visibleOptions,style:{height:r.scrollHeight},tabindex:-1,disabled:g.virtualScrollerDisabled,pt:r.ptm("virtualScroller")}),oz({content:ui(function(q){var Q=q.styleClass,Z=q.contentRef,X=q.items,ie=q.getItemOptions,je=q.contentStyle,et=q.itemSize;return[ar("ul",Qe({ref:function(bt){return g.listRef(bt,Z)},id:p.id+"_list",class:[r.cx("list"),Q],style:je,role:"listbox"},r.ptm("list")),[(ve(!0),wt(si,null,Mu(X,function(mt,bt){return ve(),wt(si,{key:g.getOptionRenderKey(mt,g.getOptionIndex(bt,ie))},[g.isOptionGroup(mt)?(ve(),wt("li",Qe({key:0,id:p.id+"_"+g.getOptionIndex(bt,ie),style:{height:et?et+"px":void 0},class:r.cx("optionGroup"),role:"option",ref_for:!0},r.ptm("optionGroup")),[Nr(r.$slots,"optiongroup",{option:mt.optionGroup,index:g.getOptionIndex(bt,ie)},function(){return[ar("span",Qe({class:r.cx("optionGroupLabel"),ref_for:!0},r.ptm("optionGroupLabel")),Il(g.getOptionGroupLabel(mt.optionGroup)),17)]})],16,Jbn)):dy((ve(),wt("li",Qe({key:1,id:p.id+"_"+g.getOptionIndex(bt,ie),class:r.cx("option",{option:mt,focusedOption:g.getOptionIndex(bt,ie)}),style:{height:et?et+"px":void 0},role:"option","aria-label":g.getOptionLabel(mt),"aria-selected":g.isSelected(mt),"aria-disabled":g.isOptionDisabled(mt),"aria-setsize":g.ariaSetSize,"aria-posinset":g.getAriaPosInset(g.getOptionIndex(bt,ie)),onClick:function(Be){return g.onOptionSelect(Be,mt)},onMousemove:function(Be){return g.onOptionMouseMove(Be,g.getOptionIndex(bt,ie))},"data-p-selected":g.isSelected(mt),"data-p-focused":p.focusedOptionIndex===g.getOptionIndex(bt,ie),"data-p-disabled":g.isOptionDisabled(mt),ref_for:!0},g.getPTItemOptions(mt,ie,bt,"option")),[r.checkmark?(ve(),wt(si,{key:0},[g.isSelected(mt)?(ve(),Cn(M,Qe({key:0,class:r.cx("optionCheckIcon"),ref_for:!0},r.ptm("optionCheckIcon")),null,16,["class"])):(ve(),Cn(_,Qe({key:1,class:r.cx("optionBlankIcon"),ref_for:!0},r.ptm("optionBlankIcon")),null,16,["class"]))],64)):rr("",!0),Nr(r.$slots,"option",{option:mt,selected:g.isSelected(mt),index:g.getOptionIndex(bt,ie)},function(){return[ar("span",Qe({class:r.cx("optionLabel"),ref_for:!0},r.ptm("optionLabel")),Il(g.getOptionLabel(mt)),17)]})],16,Qbn)),[[K]])],64)}),128)),p.filterValue&&(!X||X&&X.length===0)?(ve(),wt("li",Qe({key:0,class:r.cx("emptyMessage"),role:"option"},r.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[Nr(r.$slots,"emptyfilter",{},function(){return[hb(Il(g.emptyFilterMessageText),1)]})],16)):!r.options||r.options&&r.options.length===0?(ve(),wt("li",Qe({key:1,class:r.cx("emptyMessage"),role:"option"},r.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[Nr(r.$slots,"empty",{},function(){return[hb(Il(g.emptyMessageText),1)]})],16)):rr("",!0)],16,Ybn)]}),_:2},[r.$slots.loader?{name:"loader",fn:ui(function(q){var Q=q.options;return[Nr(r.$slots,"loader",{options:Q})]}),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),Nr(r.$slots,"footer",{value:r.d_value,options:g.visibleOptions}),!r.options||r.options&&r.options.length===0?(ve(),wt("span",Qe({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},r.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),Il(g.emptyMessageText),17)):rr("",!0),ar("span",Qe({role:"status","aria-live":"polite",class:"p-hidden-accessible"},r.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),Il(g.selectedMessageText),17),ar("span",Qe({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:o[8]||(o[8]=function(){return g.onLastHiddenFocus&&g.onLastHiddenFocus.apply(g,arguments)})},r.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):rr("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16,Vbn)}kH.render=Zbn;var R9t={name:"WindowMaximizeIcon",extends:su};function ewn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z",fill:"currentColor"},null,-1)]),16)}R9t.render=ewn;var A9t={name:"WindowMinimizeIcon",extends:su};function twn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"},null,-1)]),16)}A9t.render=twn;var nwn=vs.extend({name:"focustrap-directive"}),rwn=Fs.extend({style:nwn});function Cz(r){"@babel/helpers - typeof";return Cz=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Cz(r)}function a5t(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(r,p).enumerable})),l.push.apply(l,a)}return l}function f5t(r){for(var o=1;o=o.minX&&S+a=o.minY&&E+p0){document.getElementsByTagName("link");const w=document.querySelector("meta[property=csp-nonce]"),y=(w==null?void 0:w.nonce)||(w==null?void 0:w.getAttribute("nonce"));p=Promise.allSettled(l.map(S=>{if(S=Cwn(S),S in g5t)return;g5t[S]=!0;const E=S.endsWith(".css"),I=E?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${S}"]${I}`))return;const M=document.createElement("link");if(M.rel=E?"stylesheet":kwn,E||(M.as="script"),M.crossOrigin="",M.href=S,y&&M.setAttribute("nonce",y),document.head.appendChild(M),E)return new Promise((_,R)=>{M.addEventListener("load",_),M.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${S}`)))})}))}function g(w){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=w,window.dispatchEvent(y),!y.defaultPrevented)throw w}return p.then(w=>{for(const y of w||[])y.status==="rejected"&&g(y.reason);return o().catch(g)})},Swn=(r,o,l,a)=>{if(l==="length"||l==="prototype"||l==="arguments"||l==="caller")return;const p=Object.getOwnPropertyDescriptor(r,l),g=Object.getOwnPropertyDescriptor(o,l);!xwn(p,g)&&a||Object.defineProperty(r,l,g)},xwn=function(r,o){return r===void 0||r.configurable||r.writable===o.writable&&r.enumerable===o.enumerable&&r.configurable===o.configurable&&(r.writable||r.value===o.value)},Ewn=(r,o)=>{const l=Object.getPrototypeOf(o);l!==Object.getPrototypeOf(r)&&Object.setPrototypeOf(r,l)},Twn=(r,o)=>`/* Wrapped ${r}*/ -${o}`,Iwn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Pwn=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Mwn=(r,o,l)=>{const a=l===""?"":`with ${l.trim()}() `,p=Twn.bind(null,a,o.toString());Object.defineProperty(p,"name",Pwn),Object.defineProperty(r,"toString",{...Iwn,value:p})};function Own(r,o,{ignoreNonConfigurable:l=!1}={}){const{name:a}=r;for(const p of Reflect.ownKeys(o))Swn(r,o,p,l);return Ewn(r,o),Mwn(r,o,a),r}const nre=new WeakMap,F9t=(r,o={})=>{if(typeof r!="function")throw new TypeError("Expected a function");let l,a=0;const p=r.displayName||r.name||"",g=function(...w){if(nre.set(g,++a),a===1)l=r.apply(this,w),r=null;else if(o.throw===!0)throw new Error(`Function \`${p}\` can only be called once`);return l};return Own(g,r),nre.set(g,a),g};F9t.callCount=r=>{if(!nre.has(r))throw new Error(`The given function \`${r.name}\` is not wrapped by the \`onetime\` package`);return nre.get(r)};var _wn=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function _3(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Rwn(r){if(r.__esModule)return r;var o=r.default;if(typeof o=="function"){var l=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};l.prototype=o.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var p=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(l,a,p.get?p:{enumerable:!0,get:function(){return r[a]}})}),l}var z9t={exports:{}},Y8e={exports:{}},dm={},Qre={};Qre.byteLength=$wn;Qre.toByteArray=Dwn;Qre.fromByteArray=Fwn;var b3=[],Zw=[],Awn=typeof Uint8Array<"u"?Uint8Array:Array,J8e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var jO=0,Lwn=J8e.length;jO0)throw new Error("Invalid string. Length must be a multiple of 4");var l=r.indexOf("=");l===-1&&(l=o);var a=l===o?0:4-l%4;return[l,a]}function $wn(r){var o=H9t(r),l=o[0],a=o[1];return(l+a)*3/4-a}function jwn(r,o,l){return(o+l)*3/4-l}function Dwn(r){var o,l=H9t(r),a=l[0],p=l[1],g=new Awn(jwn(r,a,p)),w=0,y=p>0?a-4:a,S;for(S=0;S>16&255,g[w++]=o>>8&255,g[w++]=o&255;return p===2&&(o=Zw[r.charCodeAt(S)]<<2|Zw[r.charCodeAt(S+1)]>>4,g[w++]=o&255),p===1&&(o=Zw[r.charCodeAt(S)]<<10|Zw[r.charCodeAt(S+1)]<<4|Zw[r.charCodeAt(S+2)]>>2,g[w++]=o>>8&255,g[w++]=o&255),g}function Nwn(r){return b3[r>>18&63]+b3[r>>12&63]+b3[r>>6&63]+b3[r&63]}function Bwn(r,o,l){for(var a,p=[],g=o;gy?y:w+g));return a===1?(o=r[l-1],p.push(b3[o>>2]+b3[o<<4&63]+"==")):a===2&&(o=(r[l-2]<<8)+r[l-1],p.push(b3[o>>10]+b3[o>>4&63]+b3[o<<2&63]+"=")),p.join("")}var d9e={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */d9e.read=function(r,o,l,a,p){var g,w,y=p*8-a-1,S=(1<>1,I=-7,M=l?p-1:0,_=l?-1:1,R=r[o+M];for(M+=_,g=R&(1<<-I)-1,R>>=-I,I+=y;I>0;g=g*256+r[o+M],M+=_,I-=8);for(w=g&(1<<-I)-1,g>>=-I,I+=a;I>0;w=w*256+r[o+M],M+=_,I-=8);if(g===0)g=1-E;else{if(g===S)return w?NaN:(R?-1:1)*(1/0);w=w+Math.pow(2,a),g=g-E}return(R?-1:1)*w*Math.pow(2,g-a)};d9e.write=function(r,o,l,a,p,g){var w,y,S,E=g*8-p-1,I=(1<>1,_=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=a?0:g-1,j=a?1:-1,K=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(y=isNaN(o)?1:0,w=I):(w=Math.floor(Math.log(o)/Math.LN2),o*(S=Math.pow(2,-w))<1&&(w--,S*=2),w+M>=1?o+=_/S:o+=_*Math.pow(2,1-M),o*S>=2&&(w++,S/=2),w+M>=I?(y=0,w=I):w+M>=1?(y=(o*S-1)*Math.pow(2,p),w=w+M):(y=o*Math.pow(2,M-1)*Math.pow(2,p),w=0));p>=8;r[l+R]=y&255,R+=j,y/=256,p-=8);for(w=w<0;r[l+R]=w&255,R+=j,w/=256,E-=8);r[l+R-j]|=K*128};/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */(function(r){const o=Qre,l=d9e,a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=y,r.SlowBuffer=Z,r.INSPECT_MAX_BYTES=50;const p=2147483647;r.kMaxLength=p,y.TYPED_ARRAY_SUPPORT=g(),!y.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 g(){try{const de=new Uint8Array(1),G={foo:function(){return 42}};return Object.setPrototypeOf(G,Uint8Array.prototype),Object.setPrototypeOf(de,G),de.foo()===42}catch{return!1}}Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}});function w(de){if(de>p)throw new RangeError('The value "'+de+'" is invalid for option "size"');const G=new Uint8Array(de);return Object.setPrototypeOf(G,y.prototype),G}function y(de,G,Y){if(typeof de=="number"){if(typeof G=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return M(de)}return S(de,G,Y)}y.poolSize=8192;function S(de,G,Y){if(typeof de=="string")return _(de,G);if(ArrayBuffer.isView(de))return j(de);if(de==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof de);if(Ct(de,ArrayBuffer)||de&&Ct(de.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ct(de,SharedArrayBuffer)||de&&Ct(de.buffer,SharedArrayBuffer)))return K(de,G,Y);if(typeof de=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const De=de.valueOf&&de.valueOf();if(De!=null&&De!==de)return y.from(De,G,Y);const gt=q(de);if(gt)return gt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof de[Symbol.toPrimitive]=="function")return y.from(de[Symbol.toPrimitive]("string"),G,Y);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof de)}y.from=function(de,G,Y){return S(de,G,Y)},Object.setPrototypeOf(y.prototype,Uint8Array.prototype),Object.setPrototypeOf(y,Uint8Array);function E(de){if(typeof de!="number")throw new TypeError('"size" argument must be of type number');if(de<0)throw new RangeError('The value "'+de+'" is invalid for option "size"')}function I(de,G,Y){return E(de),de<=0?w(de):G!==void 0?typeof Y=="string"?w(de).fill(G,Y):w(de).fill(G):w(de)}y.alloc=function(de,G,Y){return I(de,G,Y)};function M(de){return E(de),w(de<0?0:Q(de)|0)}y.allocUnsafe=function(de){return M(de)},y.allocUnsafeSlow=function(de){return M(de)};function _(de,G){if((typeof G!="string"||G==="")&&(G="utf8"),!y.isEncoding(G))throw new TypeError("Unknown encoding: "+G);const Y=X(de,G)|0;let De=w(Y);const gt=De.write(de,G);return gt!==Y&&(De=De.slice(0,gt)),De}function R(de){const G=de.length<0?0:Q(de.length)|0,Y=w(G);for(let De=0;De=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return de|0}function Z(de){return+de!=de&&(de=0),y.alloc(+de)}y.isBuffer=function(G){return G!=null&&G._isBuffer===!0&&G!==y.prototype},y.compare=function(G,Y){if(Ct(G,Uint8Array)&&(G=y.from(G,G.offset,G.byteLength)),Ct(Y,Uint8Array)&&(Y=y.from(Y,Y.offset,Y.byteLength)),!y.isBuffer(G)||!y.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(G===Y)return 0;let De=G.length,gt=Y.length;for(let Kt=0,Ut=Math.min(De,gt);Ktgt.length?(y.isBuffer(Ut)||(Ut=y.from(Ut)),Ut.copy(gt,Kt)):Uint8Array.prototype.set.call(gt,Ut,Kt);else if(y.isBuffer(Ut))Ut.copy(gt,Kt);else throw new TypeError('"list" argument must be an Array of Buffers');Kt+=Ut.length}return gt};function X(de,G){if(y.isBuffer(de))return de.length;if(ArrayBuffer.isView(de)||Ct(de,ArrayBuffer))return de.byteLength;if(typeof de!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof de);const Y=de.length,De=arguments.length>2&&arguments[2]===!0;if(!De&&Y===0)return 0;let gt=!1;for(;;)switch(G){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":return ge(de).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Lt(de).length;default:if(gt)return De?-1:ge(de).length;G=(""+G).toLowerCase(),gt=!0}}y.byteLength=X;function ie(de,G,Y){let De=!1;if((G===void 0||G<0)&&(G=0),G>this.length||((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)||(Y>>>=0,G>>>=0,Y<=G))return"";for(de||(de="utf8");;)switch(de){case"hex":return un(this,G,Y);case"utf8":case"utf-8":return He(this,G,Y);case"ascii":return At(this,G,Y);case"latin1":case"binary":return Jt(this,G,Y);case"base64":return U(this,G,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kn(this,G,Y);default:if(De)throw new TypeError("Unknown encoding: "+de);de=(de+"").toLowerCase(),De=!0}}y.prototype._isBuffer=!0;function je(de,G,Y){const De=de[G];de[G]=de[Y],de[Y]=De}y.prototype.swap16=function(){const G=this.length;if(G%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Y=0;YY&&(G+=" ... "),""},a&&(y.prototype[a]=y.prototype.inspect),y.prototype.compare=function(G,Y,De,gt,Kt){if(Ct(G,Uint8Array)&&(G=y.from(G,G.offset,G.byteLength)),!y.isBuffer(G))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof G);if(Y===void 0&&(Y=0),De===void 0&&(De=G?G.length:0),gt===void 0&&(gt=0),Kt===void 0&&(Kt=this.length),Y<0||De>G.length||gt<0||Kt>this.length)throw new RangeError("out of range index");if(gt>=Kt&&Y>=De)return 0;if(gt>=Kt)return-1;if(Y>=De)return 1;if(Y>>>=0,De>>>=0,gt>>>=0,Kt>>>=0,this===G)return 0;let Ut=Kt-gt,so=De-Y;const rl=Math.min(Ut,so),Ro=this.slice(gt,Kt),Ao=G.slice(Y,De);for(let zs=0;zs2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,Kn(Y)&&(Y=gt?0:de.length-1),Y<0&&(Y=de.length+Y),Y>=de.length){if(gt)return-1;Y=de.length-1}else if(Y<0)if(gt)Y=0;else return-1;if(typeof G=="string"&&(G=y.from(G,De)),y.isBuffer(G))return G.length===0?-1:mt(de,G,Y,De,gt);if(typeof G=="number")return G=G&255,typeof Uint8Array.prototype.indexOf=="function"?gt?Uint8Array.prototype.indexOf.call(de,G,Y):Uint8Array.prototype.lastIndexOf.call(de,G,Y):mt(de,[G],Y,De,gt);throw new TypeError("val must be string, number or Buffer")}function mt(de,G,Y,De,gt){let Kt=1,Ut=de.length,so=G.length;if(De!==void 0&&(De=String(De).toLowerCase(),De==="ucs2"||De==="ucs-2"||De==="utf16le"||De==="utf-16le")){if(de.length<2||G.length<2)return-1;Kt=2,Ut/=2,so/=2,Y/=2}function rl(Ao,zs){return Kt===1?Ao[zs]:Ao.readUInt16BE(zs*Kt)}let Ro;if(gt){let Ao=-1;for(Ro=Y;RoUt&&(Y=Ut-so),Ro=Y;Ro>=0;Ro--){let Ao=!0;for(let zs=0;zsgt&&(De=gt)):De=gt;const Kt=G.length;De>Kt/2&&(De=Kt/2);let Ut;for(Ut=0;Ut>>0,isFinite(De)?(De=De>>>0,gt===void 0&&(gt="utf8")):(gt=De,De=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Kt=this.length-Y;if((De===void 0||De>Kt)&&(De=Kt),G.length>0&&(De<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");gt||(gt="utf8");let Ut=!1;for(;;)switch(gt){case"hex":return bt(this,G,Y,De);case"utf8":case"utf-8":return ce(this,G,Y,De);case"ascii":case"latin1":case"binary":return Be(this,G,Y,De);case"base64":return ae(this,G,Y,De);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xe(this,G,Y,De);default:if(Ut)throw new TypeError("Unknown encoding: "+gt);gt=(""+gt).toLowerCase(),Ut=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(de,G,Y){return G===0&&Y===de.length?o.fromByteArray(de):o.fromByteArray(de.slice(G,Y))}function He(de,G,Y){Y=Math.min(de.length,Y);const De=[];let gt=G;for(;gt239?4:Kt>223?3:Kt>191?2:1;if(gt+so<=Y){let rl,Ro,Ao,zs;switch(so){case 1:Kt<128&&(Ut=Kt);break;case 2:rl=de[gt+1],(rl&192)===128&&(zs=(Kt&31)<<6|rl&63,zs>127&&(Ut=zs));break;case 3:rl=de[gt+1],Ro=de[gt+2],(rl&192)===128&&(Ro&192)===128&&(zs=(Kt&15)<<12|(rl&63)<<6|Ro&63,zs>2047&&(zs<55296||zs>57343)&&(Ut=zs));break;case 4:rl=de[gt+1],Ro=de[gt+2],Ao=de[gt+3],(rl&192)===128&&(Ro&192)===128&&(Ao&192)===128&&(zs=(Kt&15)<<18|(rl&63)<<12|(Ro&63)<<6|Ao&63,zs>65535&&zs<1114112&&(Ut=zs))}}Ut===null?(Ut=65533,so=1):Ut>65535&&(Ut-=65536,De.push(Ut>>>10&1023|55296),Ut=56320|Ut&1023),De.push(Ut),gt+=so}return ft(De)}const yt=4096;function ft(de){const G=de.length;if(G<=yt)return String.fromCharCode.apply(String,de);let Y="",De=0;for(;DeDe)&&(Y=De);let gt="";for(let Kt=G;KtDe&&(G=De),Y<0?(Y+=De,Y<0&&(Y=0)):Y>De&&(Y=De),YY)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUintLE=y.prototype.readUIntLE=function(G,Y,De){G=G>>>0,Y=Y>>>0,De||qt(G,Y,this.length);let gt=this[G],Kt=1,Ut=0;for(;++Ut>>0,Y=Y>>>0,De||qt(G,Y,this.length);let gt=this[G+--Y],Kt=1;for(;Y>0&&(Kt*=256);)gt+=this[G+--Y]*Kt;return gt},y.prototype.readUint8=y.prototype.readUInt8=function(G,Y){return G=G>>>0,Y||qt(G,1,this.length),this[G]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(G,Y){return G=G>>>0,Y||qt(G,2,this.length),this[G]|this[G+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(G,Y){return G=G>>>0,Y||qt(G,2,this.length),this[G]<<8|this[G+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(G,Y){return G=G>>>0,Y||qt(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(G,Y){return G=G>>>0,Y||qt(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},y.prototype.readBigUInt64LE=Rn(function(G){G=G>>>0,ee(G,"offset");const Y=this[G],De=this[G+7];(Y===void 0||De===void 0)&&V(G,this.length-8);const gt=Y+this[++G]*2**8+this[++G]*2**16+this[++G]*2**24,Kt=this[++G]+this[++G]*2**8+this[++G]*2**16+De*2**24;return BigInt(gt)+(BigInt(Kt)<>>0,ee(G,"offset");const Y=this[G],De=this[G+7];(Y===void 0||De===void 0)&&V(G,this.length-8);const gt=Y*2**24+this[++G]*2**16+this[++G]*2**8+this[++G],Kt=this[++G]*2**24+this[++G]*2**16+this[++G]*2**8+De;return(BigInt(gt)<>>0,Y=Y>>>0,De||qt(G,Y,this.length);let gt=this[G],Kt=1,Ut=0;for(;++Ut=Kt&&(gt-=Math.pow(2,8*Y)),gt},y.prototype.readIntBE=function(G,Y,De){G=G>>>0,Y=Y>>>0,De||qt(G,Y,this.length);let gt=Y,Kt=1,Ut=this[G+--gt];for(;gt>0&&(Kt*=256);)Ut+=this[G+--gt]*Kt;return Kt*=128,Ut>=Kt&&(Ut-=Math.pow(2,8*Y)),Ut},y.prototype.readInt8=function(G,Y){return G=G>>>0,Y||qt(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},y.prototype.readInt16LE=function(G,Y){G=G>>>0,Y||qt(G,2,this.length);const De=this[G]|this[G+1]<<8;return De&32768?De|4294901760:De},y.prototype.readInt16BE=function(G,Y){G=G>>>0,Y||qt(G,2,this.length);const De=this[G+1]|this[G]<<8;return De&32768?De|4294901760:De},y.prototype.readInt32LE=function(G,Y){return G=G>>>0,Y||qt(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},y.prototype.readInt32BE=function(G,Y){return G=G>>>0,Y||qt(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},y.prototype.readBigInt64LE=Rn(function(G){G=G>>>0,ee(G,"offset");const Y=this[G],De=this[G+7];(Y===void 0||De===void 0)&&V(G,this.length-8);const gt=this[G+4]+this[G+5]*2**8+this[G+6]*2**16+(De<<24);return(BigInt(gt)<>>0,ee(G,"offset");const Y=this[G],De=this[G+7];(Y===void 0||De===void 0)&&V(G,this.length-8);const gt=(Y<<24)+this[++G]*2**16+this[++G]*2**8+this[++G];return(BigInt(gt)<>>0,Y||qt(G,4,this.length),l.read(this,G,!0,23,4)},y.prototype.readFloatBE=function(G,Y){return G=G>>>0,Y||qt(G,4,this.length),l.read(this,G,!1,23,4)},y.prototype.readDoubleLE=function(G,Y){return G=G>>>0,Y||qt(G,8,this.length),l.read(this,G,!0,52,8)},y.prototype.readDoubleBE=function(G,Y){return G=G>>>0,Y||qt(G,8,this.length),l.read(this,G,!1,52,8)};function on(de,G,Y,De,gt,Kt){if(!y.isBuffer(de))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>gt||Gde.length)throw new RangeError("Index out of range")}y.prototype.writeUintLE=y.prototype.writeUIntLE=function(G,Y,De,gt){if(G=+G,Y=Y>>>0,De=De>>>0,!gt){const so=Math.pow(2,8*De)-1;on(this,G,Y,De,so,0)}let Kt=1,Ut=0;for(this[Y]=G&255;++Ut>>0,De=De>>>0,!gt){const so=Math.pow(2,8*De)-1;on(this,G,Y,De,so,0)}let Kt=De-1,Ut=1;for(this[Y+Kt]=G&255;--Kt>=0&&(Ut*=256);)this[Y+Kt]=G/Ut&255;return Y+De},y.prototype.writeUint8=y.prototype.writeUInt8=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,1,255,0),this[Y]=G&255,Y+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,2,65535,0),this[Y]=G&255,this[Y+1]=G>>>8,Y+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,2,65535,0),this[Y]=G>>>8,this[Y+1]=G&255,Y+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,4,4294967295,0),this[Y+3]=G>>>24,this[Y+2]=G>>>16,this[Y+1]=G>>>8,this[Y]=G&255,Y+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,4,4294967295,0),this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=G&255,Y+4};function Rt(de,G,Y,De,gt){Ce(G,De,gt,de,Y,7);let Kt=Number(G&BigInt(4294967295));de[Y++]=Kt,Kt=Kt>>8,de[Y++]=Kt,Kt=Kt>>8,de[Y++]=Kt,Kt=Kt>>8,de[Y++]=Kt;let Ut=Number(G>>BigInt(32)&BigInt(4294967295));return de[Y++]=Ut,Ut=Ut>>8,de[Y++]=Ut,Ut=Ut>>8,de[Y++]=Ut,Ut=Ut>>8,de[Y++]=Ut,Y}function an(de,G,Y,De,gt){Ce(G,De,gt,de,Y,7);let Kt=Number(G&BigInt(4294967295));de[Y+7]=Kt,Kt=Kt>>8,de[Y+6]=Kt,Kt=Kt>>8,de[Y+5]=Kt,Kt=Kt>>8,de[Y+4]=Kt;let Ut=Number(G>>BigInt(32)&BigInt(4294967295));return de[Y+3]=Ut,Ut=Ut>>8,de[Y+2]=Ut,Ut=Ut>>8,de[Y+1]=Ut,Ut=Ut>>8,de[Y]=Ut,Y+8}y.prototype.writeBigUInt64LE=Rn(function(G,Y=0){return Rt(this,G,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeBigUInt64BE=Rn(function(G,Y=0){return an(this,G,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeIntLE=function(G,Y,De,gt){if(G=+G,Y=Y>>>0,!gt){const rl=Math.pow(2,8*De-1);on(this,G,Y,De,rl-1,-rl)}let Kt=0,Ut=1,so=0;for(this[Y]=G&255;++Kt>0)-so&255;return Y+De},y.prototype.writeIntBE=function(G,Y,De,gt){if(G=+G,Y=Y>>>0,!gt){const rl=Math.pow(2,8*De-1);on(this,G,Y,De,rl-1,-rl)}let Kt=De-1,Ut=1,so=0;for(this[Y+Kt]=G&255;--Kt>=0&&(Ut*=256);)G<0&&so===0&&this[Y+Kt+1]!==0&&(so=1),this[Y+Kt]=(G/Ut>>0)-so&255;return Y+De},y.prototype.writeInt8=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,1,127,-128),G<0&&(G=255+G+1),this[Y]=G&255,Y+1},y.prototype.writeInt16LE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,2,32767,-32768),this[Y]=G&255,this[Y+1]=G>>>8,Y+2},y.prototype.writeInt16BE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,2,32767,-32768),this[Y]=G>>>8,this[Y+1]=G&255,Y+2},y.prototype.writeInt32LE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,4,2147483647,-2147483648),this[Y]=G&255,this[Y+1]=G>>>8,this[Y+2]=G>>>16,this[Y+3]=G>>>24,Y+4},y.prototype.writeInt32BE=function(G,Y,De){return G=+G,Y=Y>>>0,De||on(this,G,Y,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=G&255,Y+4},y.prototype.writeBigInt64LE=Rn(function(G,Y=0){return Rt(this,G,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),y.prototype.writeBigInt64BE=Rn(function(G,Y=0){return an(this,G,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Zn(de,G,Y,De,gt,Kt){if(Y+De>de.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function kt(de,G,Y,De,gt){return G=+G,Y=Y>>>0,gt||Zn(de,G,Y,4),l.write(de,G,Y,De,23,4),Y+4}y.prototype.writeFloatLE=function(G,Y,De){return kt(this,G,Y,!0,De)},y.prototype.writeFloatBE=function(G,Y,De){return kt(this,G,Y,!1,De)};function Ze(de,G,Y,De,gt){return G=+G,Y=Y>>>0,gt||Zn(de,G,Y,8),l.write(de,G,Y,De,52,8),Y+8}y.prototype.writeDoubleLE=function(G,Y,De){return Ze(this,G,Y,!0,De)},y.prototype.writeDoubleBE=function(G,Y,De){return Ze(this,G,Y,!1,De)},y.prototype.copy=function(G,Y,De,gt){if(!y.isBuffer(G))throw new TypeError("argument should be a Buffer");if(De||(De=0),!gt&>!==0&&(gt=this.length),Y>=G.length&&(Y=G.length),Y||(Y=0),gt>0&>=this.length)throw new RangeError("Index out of range");if(gt<0)throw new RangeError("sourceEnd out of bounds");gt>this.length&&(gt=this.length),G.length-Y>>0,De=De===void 0?this.length:De>>>0,G||(G=0);let Kt;if(typeof G=="number")for(Kt=Y;Kt2**32?gt=pr(String(Y)):typeof Y=="bigint"&&(gt=String(Y),(Y>BigInt(2)**BigInt(32)||Y<-(BigInt(2)**BigInt(32)))&&(gt=pr(gt)),gt+="n"),De+=` It must be ${G}. Received ${gt}`,De},RangeError);function pr(de){let G="",Y=de.length;const De=de[0]==="-"?1:0;for(;Y>=De+4;Y-=3)G=`_${de.slice(Y-3,Y)}${G}`;return`${de.slice(0,Y)}${G}`}function ye(de,G,Y){ee(G,"offset"),(de[G]===void 0||de[G+Y]===void 0)&&V(G,de.length-(Y+1))}function Ce(de,G,Y,De,gt,Kt){if(de>Y||de= 0${Ut} and < 2${Ut} ** ${(Kt+1)*8}${Ut}`:so=`>= -(2${Ut} ** ${(Kt+1)*8-1}${Ut}) and < 2 ** ${(Kt+1)*8-1}${Ut}`,new Xt.ERR_OUT_OF_RANGE("value",so,de)}ye(De,gt,Kt)}function ee(de,G){if(typeof de!="number")throw new Xt.ERR_INVALID_ARG_TYPE(G,"number",de)}function V(de,G,Y){throw Math.floor(de)!==de?(ee(de,Y),new Xt.ERR_OUT_OF_RANGE("offset","an integer",de)):G<0?new Xt.ERR_BUFFER_OUT_OF_BOUNDS:new Xt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${G}`,de)}const oe=/[^+/0-9A-Za-z-_]/g;function ue(de){if(de=de.split("=")[0],de=de.trim().replace(oe,""),de.length<2)return"";for(;de.length%4!==0;)de=de+"=";return de}function ge(de,G){G=G||1/0;let Y;const De=de.length;let gt=null;const Kt=[];for(let Ut=0;Ut55295&&Y<57344){if(!gt){if(Y>56319){(G-=3)>-1&&Kt.push(239,191,189);continue}else if(Ut+1===De){(G-=3)>-1&&Kt.push(239,191,189);continue}gt=Y;continue}if(Y<56320){(G-=3)>-1&&Kt.push(239,191,189),gt=Y;continue}Y=(gt-55296<<10|Y-56320)+65536}else gt&&(G-=3)>-1&&Kt.push(239,191,189);if(gt=null,Y<128){if((G-=1)<0)break;Kt.push(Y)}else if(Y<2048){if((G-=2)<0)break;Kt.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((G-=3)<0)break;Kt.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((G-=4)<0)break;Kt.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return Kt}function Ge(de){const G=[];for(let Y=0;Y>8,gt=Y%256,Kt.push(gt),Kt.push(De);return Kt}function Lt(de){return o.toByteArray(ue(de))}function tn(de,G,Y,De){let gt;for(gt=0;gt=G.length||gt>=de.length);++gt)G[gt+Y]=de[gt];return gt}function Ct(de,G){return de instanceof G||de!=null&&de.constructor!=null&&de.constructor.name!=null&&de.constructor.name===G.name}function Kn(de){return de!==de}const dn=function(){const de="0123456789abcdef",G=new Array(256);for(let Y=0;Y<16;++Y){const De=Y*16;for(let gt=0;gt<16;++gt)G[De+gt]=de[Y]+de[gt]}return G}();function Rn(de){return typeof BigInt>"u"?br:de}function br(){throw new Error("BigInt not supported")}})(dm);var qa={ArrayIsArray(r){return Array.isArray(r)},ArrayPrototypeIncludes(r,o){return r.includes(o)},ArrayPrototypeIndexOf(r,o){return r.indexOf(o)},ArrayPrototypeJoin(r,o){return r.join(o)},ArrayPrototypeMap(r,o){return r.map(o)},ArrayPrototypePop(r,o){return r.pop(o)},ArrayPrototypePush(r,o){return r.push(o)},ArrayPrototypeSlice(r,o,l){return r.slice(o,l)},Error,FunctionPrototypeCall(r,o,...l){return r.call(o,...l)},FunctionPrototypeSymbolHasInstance(r,o){return Function.prototype[Symbol.hasInstance].call(r,o)},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(r,o){return Object.defineProperties(r,o)},ObjectDefineProperty(r,o,l){return Object.defineProperty(r,o,l)},ObjectGetOwnPropertyDescriptor(r,o){return Object.getOwnPropertyDescriptor(r,o)},ObjectKeys(r){return Object.keys(r)},ObjectSetPrototypeOf(r,o){return Object.setPrototypeOf(r,o)},Promise,PromisePrototypeCatch(r,o){return r.catch(o)},PromisePrototypeThen(r,o,l){return r.then(o,l)},PromiseReject(r){return Promise.reject(r)},PromiseResolve(r){return Promise.resolve(r)},ReflectApply:Reflect.apply,RegExpPrototypeTest(r,o){return r.test(o)},SafeSet:Set,String,StringPrototypeSlice(r,o,l){return r.slice(o,l)},StringPrototypeToLowerCase(r){return r.toLowerCase()},StringPrototypeToUpperCase(r){return r.toUpperCase()},StringPrototypeTrim(r){return r.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(r,o,l){return r.set(o,l)},Boolean,Uint8Array},K9t={exports:{}},aF={exports:{}},b5t;function xz(){if(b5t)return aF.exports;b5t=1;const{AbortController:r,AbortSignal:o}=typeof self<"u"?self:typeof window<"u"?window:void 0;return aF.exports=r,aF.exports.AbortSignal=o,aF.exports.default=r,aF.exports}var h9e={exports:{}},o_=typeof Reflect=="object"?Reflect:null,w5t=o_&&typeof o_.apply=="function"?o_.apply:function(o,l,a){return Function.prototype.apply.call(o,l,a)},xne;o_&&typeof o_.ownKeys=="function"?xne=o_.ownKeys:Object.getOwnPropertySymbols?xne=function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:xne=function(o){return Object.getOwnPropertyNames(o)};function zwn(r){console&&console.warn&&console.warn(r)}var U9t=Number.isNaN||function(o){return o!==o};function Gc(){Gc.init.call(this)}h9e.exports=Gc;h9e.exports.once=Gwn;Gc.EventEmitter=Gc;Gc.prototype._events=void 0;Gc.prototype._eventsCount=0;Gc.prototype._maxListeners=void 0;var m5t=10;function Zre(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(Gc,"defaultMaxListeners",{enumerable:!0,get:function(){return m5t},set:function(r){if(typeof r!="number"||r<0||U9t(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");m5t=r}});Gc.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};Gc.prototype.setMaxListeners=function(o){if(typeof o!="number"||o<0||U9t(o))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+o+".");return this._maxListeners=o,this};function G9t(r){return r._maxListeners===void 0?Gc.defaultMaxListeners:r._maxListeners}Gc.prototype.getMaxListeners=function(){return G9t(this)};Gc.prototype.emit=function(o){for(var l=[],a=1;a0&&(w=l[0]),w instanceof Error)throw w;var y=new Error("Unhandled error."+(w?" ("+w.message+")":""));throw y.context=w,y}var S=g[o];if(S===void 0)return!1;if(typeof S=="function")w5t(S,this,l);else for(var E=S.length,I=Y9t(S,E),a=0;a0&&w.length>p&&!w.warned){w.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+w.length+" "+String(o)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=r,y.type=o,y.count=w.length,zwn(y)}return r}Gc.prototype.addListener=function(o,l){return W9t(this,o,l,!1)};Gc.prototype.on=Gc.prototype.addListener;Gc.prototype.prependListener=function(o,l){return W9t(this,o,l,!0)};function Hwn(){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 V9t(r,o,l){var a={fired:!1,wrapFn:void 0,target:r,type:o,listener:l},p=Hwn.bind(a);return p.listener=l,a.wrapFn=p,p}Gc.prototype.once=function(o,l){return Zre(l),this.on(o,V9t(this,o,l)),this};Gc.prototype.prependOnceListener=function(o,l){return Zre(l),this.prependListener(o,V9t(this,o,l)),this};Gc.prototype.removeListener=function(o,l){var a,p,g,w,y;if(Zre(l),p=this._events,p===void 0)return this;if(a=p[o],a===void 0)return this;if(a===l||a.listener===l)--this._eventsCount===0?this._events=Object.create(null):(delete p[o],p.removeListener&&this.emit("removeListener",o,a.listener||l));else if(typeof a!="function"){for(g=-1,w=a.length-1;w>=0;w--)if(a[w]===l||a[w].listener===l){y=a[w].listener,g=w;break}if(g<0)return this;g===0?a.shift():Kwn(a,g),a.length===1&&(p[o]=a[0]),p.removeListener!==void 0&&this.emit("removeListener",o,y||l)}return this};Gc.prototype.off=Gc.prototype.removeListener;Gc.prototype.removeAllListeners=function(o){var l,a,p;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[o]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[o]),this;if(arguments.length===0){var g=Object.keys(a),w;for(p=0;p=0;p--)this.removeListener(o,l[p]);return this};function q9t(r,o,l){var a=r._events;if(a===void 0)return[];var p=a[o];return p===void 0?[]:typeof p=="function"?l?[p.listener||p]:[p]:l?Uwn(p):Y9t(p,p.length)}Gc.prototype.listeners=function(o){return q9t(this,o,!0)};Gc.prototype.rawListeners=function(o){return q9t(this,o,!1)};Gc.listenerCount=function(r,o){return typeof r.listenerCount=="function"?r.listenerCount(o):X9t.call(r,o)};Gc.prototype.listenerCount=X9t;function X9t(r){var o=this._events;if(o!==void 0){var l=o[r];if(typeof l=="function")return 1;if(l!==void 0)return l.length}return 0}Gc.prototype.eventNames=function(){return this._eventsCount>0?xne(this._events):[]};function Y9t(r,o){for(var l=new Array(o),a=0;a{if(_!==void 0&&(_===null||typeof _!="object"||!("aborted"in _)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",_)},I=(_,R)=>{if(typeof _!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",_)};class M extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let j="";for(let K=0;K{_=K,R=q}),resolve:_,reject:R}},promisify(_){return new Promise((R,j)=>{_((K,...q)=>K?j(K):R(...q))})},debuglog(){return function(){}},format(_,...R){return _.replace(/%([sdifj])/g,function(...[j,K]){const q=R.shift();return K==="f"?q.toFixed(6):K==="j"?JSON.stringify(q):K==="s"&&typeof q=="object"?`${q.constructor!==Object?q.constructor.name:""} {}`.trim():q.toString()})},inspect(_){switch(typeof _){case"string":if(_.includes("'"))if(_.includes('"')){if(!_.includes("`")&&!_.includes("${"))return`\`${_}\``}else return`"${_}"`;return`'${_}'`;case"number":return isNaN(_)?"NaN":Object.is(_,-0)?String(_):_;case"bigint":return`${String(_)}n`;case"boolean":case"undefined":return String(_);case"object":return"{}"}},types:{isAsyncFunction(_){return _ instanceof w},isArrayBufferView(_){return ArrayBuffer.isView(_)}},isBlob:S,deprecate(_,R){return _},addAbortListener:F_.addAbortListener||function(R,j){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);E(R,"signal"),I(j,"listener");let K;return R.aborted?queueMicrotask(()=>j()):(R.addEventListener("abort",j,{__proto__:null,once:!0,[l]:!0}),K=()=>{R.removeEventListener("abort",j)}),{__proto__:null,[a](){var q;(q=K)===null||q===void 0||q()}}},AbortSignalAny:p.any||function(R){if(R.length===1)return R[0];const j=new g,K=()=>j.abort();return R.forEach(q=>{E(q,"signals"),q.addEventListener("abort",K,{once:!0})}),j.signal.addEventListener("abort",()=>{R.forEach(q=>q.removeEventListener("abort",K))},{once:!0}),j.signal}},r.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(K9t);var Np=K9t.exports,p9e={};const{format:Vwn,inspect:rre,AggregateError:qwn}=Np,Xwn=globalThis.AggregateError||qwn,Ywn=Symbol("kIsNodeError"),Jwn=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Qwn=/^([A-Z][a-z0-9]*)+$/,Zwn="__node_internal_",eie={};function TE(r,o){if(!r)throw new eie.ERR_INTERNAL_ASSERTION(o)}function v5t(r){let o="",l=r.length;const a=r[0]==="-"?1:0;for(;l>=a+4;l-=3)o=`_${r.slice(l-3,l)}${o}`;return`${r.slice(0,l)}${o}`}function emn(r,o,l){if(typeof o=="function")return TE(o.length<=l.length,`Code: ${r}; The provided arguments length (${l.length}) does not match the required ones (${o.length}).`),o(...l);const a=(o.match(/%[dfijoOs]/g)||[]).length;return TE(a===l.length,`Code: ${r}; The provided arguments length (${l.length}) does not match the required ones (${a}).`),l.length===0?o:Vwn(o,...l)}function Xh(r,o,l){l||(l=Error);class a extends l{constructor(...g){super(emn(r,o,g))}toString(){return`${this.name} [${r}]: ${this.message}`}}Object.defineProperties(a.prototype,{name:{value:l.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${r}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),a.prototype.code=r,a.prototype[Ywn]=!0,eie[r]=a}function y5t(r){const o=Zwn+r.name;return Object.defineProperty(r,"name",{value:o}),r}function tmn(r,o){if(r&&o&&r!==o){if(Array.isArray(o.errors))return o.errors.push(r),o;const l=new Xwn([o,r],o.message);return l.code=o.code,l}return r||o}let nmn=class extends Error{constructor(o="The operation was aborted",l=void 0){if(l!==void 0&&typeof l!="object")throw new eie.ERR_INVALID_ARG_TYPE("options","Object",l);super(o,l),this.code="ABORT_ERR",this.name="AbortError"}};Xh("ERR_ASSERTION","%s",Error);Xh("ERR_INVALID_ARG_TYPE",(r,o,l)=>{TE(typeof r=="string","'name' must be a string"),Array.isArray(o)||(o=[o]);let a="The ";r.endsWith(" argument")?a+=`${r} `:a+=`"${r}" ${r.includes(".")?"property":"argument"} `,a+="must be ";const p=[],g=[],w=[];for(const S of o)TE(typeof S=="string","All expected entries have to be of type string"),Jwn.includes(S)?p.push(S.toLowerCase()):Qwn.test(S)?g.push(S):(TE(S!=="object",'The value "object" should be written as "Object"'),w.push(S));if(g.length>0){const S=p.indexOf("object");S!==-1&&(p.splice(p,S,1),g.push("Object"))}if(p.length>0){switch(p.length){case 1:a+=`of type ${p[0]}`;break;case 2:a+=`one of type ${p[0]} or ${p[1]}`;break;default:{const S=p.pop();a+=`one of type ${p.join(", ")}, or ${S}`}}(g.length>0||w.length>0)&&(a+=" or ")}if(g.length>0){switch(g.length){case 1:a+=`an instance of ${g[0]}`;break;case 2:a+=`an instance of ${g[0]} or ${g[1]}`;break;default:{const S=g.pop();a+=`an instance of ${g.join(", ")}, or ${S}`}}w.length>0&&(a+=" or ")}switch(w.length){case 0:break;case 1:w[0].toLowerCase()!==w[0]&&(a+="an "),a+=`${w[0]}`;break;case 2:a+=`one of ${w[0]} or ${w[1]}`;break;default:{const S=w.pop();a+=`one of ${w.join(", ")}, or ${S}`}}if(l==null)a+=`. Received ${l}`;else if(typeof l=="function"&&l.name)a+=`. Received function ${l.name}`;else if(typeof l=="object"){var y;if((y=l.constructor)!==null&&y!==void 0&&y.name)a+=`. Received an instance of ${l.constructor.name}`;else{const S=rre(l,{depth:-1});a+=`. Received ${S}`}}else{let S=rre(l,{colors:!1});S.length>25&&(S=`${S.slice(0,25)}...`),a+=`. Received type ${typeof l} (${S})`}return a},TypeError);Xh("ERR_INVALID_ARG_VALUE",(r,o,l="is invalid")=>{let a=rre(o);return a.length>128&&(a=a.slice(0,128)+"..."),`The ${r.includes(".")?"property":"argument"} '${r}' ${l}. Received ${a}`},TypeError);Xh("ERR_INVALID_RETURN_VALUE",(r,o,l)=>{var a;const p=l!=null&&(a=l.constructor)!==null&&a!==void 0&&a.name?`instance of ${l.constructor.name}`:`type ${typeof l}`;return`Expected ${r} to be returned from the "${o}" function but got ${p}.`},TypeError);Xh("ERR_MISSING_ARGS",(...r)=>{TE(r.length>0,"At least one arg needs to be specified");let o;const l=r.length;switch(r=(Array.isArray(r)?r:[r]).map(a=>`"${a}"`).join(" or "),l){case 1:o+=`The ${r[0]} argument`;break;case 2:o+=`The ${r[0]} and ${r[1]} arguments`;break;default:{const a=r.pop();o+=`The ${r.join(", ")}, and ${a} arguments`}break}return`${o} must be specified`},TypeError);Xh("ERR_OUT_OF_RANGE",(r,o,l)=>{TE(o,'Missing "range" argument');let a;return Number.isInteger(l)&&Math.abs(l)>2**32?a=v5t(String(l)):typeof l=="bigint"?(a=String(l),(l>2n**32n||l<-(2n**32n))&&(a=v5t(a)),a+="n"):a=rre(l),`The value of "${r}" is out of range. It must be ${o}. Received ${a}`},RangeError);Xh("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Xh("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Xh("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Xh("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Xh("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Xh("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Xh("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Xh("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Xh("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Xh("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Xh("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var Yg={AbortError:nmn,aggregateTwoErrors:y5t(tmn),hideStackFrames:y5t,codes:eie};const{ArrayIsArray:g9e,ArrayPrototypeIncludes:Q9t,ArrayPrototypeJoin:Z9t,ArrayPrototypeMap:rmn,NumberIsInteger:b9e,NumberIsNaN:imn,NumberMAX_SAFE_INTEGER:omn,NumberMIN_SAFE_INTEGER:smn,NumberParseInt:lmn,ObjectPrototypeHasOwnProperty:cmn,RegExpPrototypeExec:ext,String:umn,StringPrototypeToUpperCase:amn,StringPrototypeTrim:fmn}=qa,{hideStackFrames:hm,codes:{ERR_SOCKET_BAD_PORT:dmn,ERR_INVALID_ARG_TYPE:L1,ERR_INVALID_ARG_VALUE:z_,ERR_OUT_OF_RANGE:NE,ERR_UNKNOWN_SIGNAL:k5t}}=Yg,{normalizeEncoding:hmn}=Np,{isAsyncFunction:pmn,isArrayBufferView:gmn}=Np.types,C5t={};function bmn(r){return r===(r|0)}function wmn(r){return r===r>>>0}const mmn=/^[0-7]+$/,vmn="must be a 32-bit unsigned integer or an octal string";function ymn(r,o,l){if(typeof r>"u"&&(r=l),typeof r=="string"){if(ext(mmn,r)===null)throw new z_(o,r,vmn);r=lmn(r,8)}return txt(r,o),r}const kmn=hm((r,o,l=smn,a=omn)=>{if(typeof r!="number")throw new L1(o,"number",r);if(!b9e(r))throw new NE(o,"an integer",r);if(ra)throw new NE(o,`>= ${l} && <= ${a}`,r)}),Cmn=hm((r,o,l=-2147483648,a=2147483647)=>{if(typeof r!="number")throw new L1(o,"number",r);if(!b9e(r))throw new NE(o,"an integer",r);if(ra)throw new NE(o,`>= ${l} && <= ${a}`,r)}),txt=hm((r,o,l=!1)=>{if(typeof r!="number")throw new L1(o,"number",r);if(!b9e(r))throw new NE(o,"an integer",r);const a=l?1:0,p=4294967295;if(rp)throw new NE(o,`>= ${a} && <= ${p}`,r)});function w9e(r,o){if(typeof r!="string")throw new L1(o,"string",r)}function Smn(r,o,l=void 0,a){if(typeof r!="number")throw new L1(o,"number",r);if(l!=null&&ra||(l!=null||a!=null)&&imn(r))throw new NE(o,`${l!=null?`>= ${l}`:""}${l!=null&&a!=null?" && ":""}${a!=null?`<= ${a}`:""}`,r)}const xmn=hm((r,o,l)=>{if(!Q9t(l,r)){const p="must be one of: "+Z9t(rmn(l,g=>typeof g=="string"?`'${g}'`:umn(g)),", ");throw new z_(o,r,p)}});function nxt(r,o){if(typeof r!="boolean")throw new L1(o,"boolean",r)}function Q8e(r,o,l){return r==null||!cmn(r,o)?l:r[o]}const Emn=hm((r,o,l=null)=>{const a=Q8e(l,"allowArray",!1),p=Q8e(l,"allowFunction",!1);if(!Q8e(l,"nullable",!1)&&r===null||!a&&g9e(r)||typeof r!="object"&&(!p||typeof r!="function"))throw new L1(o,"Object",r)}),Tmn=hm((r,o)=>{if(r!=null&&typeof r!="object"&&typeof r!="function")throw new L1(o,"a dictionary",r)}),tie=hm((r,o,l=0)=>{if(!g9e(r))throw new L1(o,"Array",r);if(r.length{if(!gmn(r))throw new L1(o,["Buffer","TypedArray","DataView"],r)});function Rmn(r,o){const l=hmn(o),a=r.length;if(l==="hex"&&a%2!==0)throw new z_("encoding",o,`is invalid for data of length ${a}`)}function Amn(r,o="Port",l=!0){if(typeof r!="number"&&typeof r!="string"||typeof r=="string"&&fmn(r).length===0||+r!==+r>>>0||r>65535||r===0&&!l)throw new dmn(o,r,l);return r|0}const rxt=hm((r,o)=>{if(r!==void 0&&(r===null||typeof r!="object"||!("aborted"in r)))throw new L1(o,"AbortSignal",r)}),Lmn=hm((r,o)=>{if(typeof r!="function")throw new L1(o,"Function",r)}),$mn=hm((r,o)=>{if(typeof r!="function"||pmn(r))throw new L1(o,"Function",r)}),jmn=hm((r,o)=>{if(r!==void 0)throw new L1(o,"undefined",r)});function Dmn(r,o,l){if(!Q9t(l,r))throw new L1(o,`('${Z9t(l,"|")}')`,r)}const Nmn=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function S5t(r,o){if(typeof r>"u"||!ext(Nmn,r))throw new z_(o,r,'must be an array or string of format "; rel=preload; as=style"')}function Bmn(r){if(typeof r=="string")return S5t(r,"hints"),r;if(g9e(r)){const o=r.length;let l="";if(o===0)return l;for(let a=0;a; rel=preload; as=style"')}var SH={isInt32:bmn,isUint32:wmn,parseFileMode:ymn,validateArray:tie,validateStringArray:Imn,validateBooleanArray:Pmn,validateAbortSignalArray:Mmn,validateBoolean:nxt,validateBuffer:_mn,validateDictionary:Tmn,validateEncoding:Rmn,validateFunction:Lmn,validateInt32:Cmn,validateInteger:kmn,validateNumber:Smn,validateObject:Emn,validateOneOf:xmn,validatePlainFunction:$mn,validatePort:Amn,validateSignalName:Omn,validateString:w9e,validateUint32:txt,validateUndefined:jmn,validateUnion:Dmn,validateAbortSignal:rxt,validateLinkHeaderValue:Bmn},m9e={exports:{}},ixt={exports:{}},Tf=ixt.exports={},a3,f3;function k7e(){throw new Error("setTimeout has not been defined")}function C7e(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?a3=setTimeout:a3=k7e}catch{a3=k7e}try{typeof clearTimeout=="function"?f3=clearTimeout:f3=C7e}catch{f3=C7e}})();function oxt(r){if(a3===setTimeout)return setTimeout(r,0);if((a3===k7e||!a3)&&setTimeout)return a3=setTimeout,setTimeout(r,0);try{return a3(r,0)}catch{try{return a3.call(null,r,0)}catch{return a3.call(this,r,0)}}}function Fmn(r){if(f3===clearTimeout)return clearTimeout(r);if((f3===C7e||!f3)&&clearTimeout)return f3=clearTimeout,clearTimeout(r);try{return f3(r)}catch{try{return f3.call(null,r)}catch{return f3.call(this,r)}}}var H6=[],s_=!1,vE,Ene=-1;function zmn(){!s_||!vE||(s_=!1,vE.length?H6=vE.concat(H6):Ene=-1,H6.length&&sxt())}function sxt(){if(!s_){var r=oxt(zmn);s_=!0;for(var o=H6.length;o;){for(vE=H6,H6=[];++Ene1)for(var l=1;l{};function Cxt(r,o,l){var a,p;if(arguments.length===2?(l=o,o=E7e):o==null?o=E7e:lvn(o,"options"),svn(l,"callback"),ovn(o.signal,"options.signal"),l=T7e(l),dvn(r)||hvn(r))return mvn(r,o,l);if(!pvn(r))throw new ivn("stream",["ReadableStream","WritableStream","Stream"],r);const g=(a=o.readable)!==null&&a!==void 0?a:Z8e(r),w=(p=o.writable)!==null&&p!==void 0?p:_5t(r),y=r._writableState,S=r._readableState,E=()=>{r.writable||_()};let I=gvn(r)&&Z8e(r)===g&&_5t(r)===w,M=R5t(r,!1);const _=()=>{M=!0,r.destroyed&&(I=!1),!(I&&(!r.readable||g))&&(!g||R)&&l.call(r)};let R=P5t(r,!1);const j=()=>{R=!0,r.destroyed&&(I=!1),!(I&&(!r.writable||w))&&(!w||M)&&l.call(r)},K=je=>{l.call(r,je)};let q=fvn(r);const Q=()=>{q=!0;const je=A5t(r)||M5t(r);if(je&&typeof je!="boolean")return l.call(r,je);if(g&&!R&&Z8e(r,!0)&&!P5t(r,!1))return l.call(r,new T5t);if(w&&!M&&!R5t(r,!1))return l.call(r,new T5t);l.call(r)},Z=()=>{q=!0;const je=A5t(r)||M5t(r);if(je&&typeof je!="boolean")return l.call(r,je);l.call(r)},X=()=>{r.req.on("finish",_)};wvn(r)?(r.on("complete",_),I||r.on("abort",Q),r.req?X():r.on("request",X)):w&&!y&&(r.on("end",E),r.on("close",E)),!I&&typeof r.aborted=="boolean"&&r.on("aborted",Q),r.on("end",j),r.on("finish",_),o.error!==!1&&r.on("error",K),r.on("close",Q),q?wC.nextTick(Q):y!=null&&y.errorEmitted||S!=null&&S.errorEmitted?I||wC.nextTick(Z):(!g&&(!I||I5t(r))&&(M||O5t(r)===!1)||!w&&(!I||O5t(r))&&(R||I5t(r)===!1)||S&&r.req&&r.aborted)&&wC.nextTick(Z);const ie=()=>{l=I7e,r.removeListener("aborted",Q),r.removeListener("complete",_),r.removeListener("abort",Q),r.removeListener("request",X),r.req&&r.req.removeListener("finish",_),r.removeListener("end",E),r.removeListener("close",E),r.removeListener("finish",_),r.removeListener("end",j),r.removeListener("error",K),r.removeListener("close",Q)};if(o.signal&&!q){const je=()=>{const et=l;ie(),et.call(r,new yxt(void 0,{cause:o.signal.reason}))};if(o.signal.aborted)wC.nextTick(je);else{l_=l_||Np.addAbortListener;const et=l_(o.signal,je),mt=l;l=T7e((...bt)=>{et[kxt](),mt.apply(r,bt)})}}return ie}function mvn(r,o,l){let a=!1,p=I7e;if(o.signal)if(p=()=>{a=!0,l.call(r,new yxt(void 0,{cause:o.signal.reason}))},o.signal.aborted)wC.nextTick(p);else{l_=l_||Np.addAbortListener;const w=l_(o.signal,p),y=l;l=T7e((...S)=>{w[kxt](),y.apply(r,S)})}const g=(...w)=>{a||wC.nextTick(()=>l.apply(r,w))};return avn(r[bvn].promise,g,g),I7e}function vvn(r,o){var l;let a=!1;return o===null&&(o=E7e),(l=o)!==null&&l!==void 0&&l.cleanup&&(cvn(o.cleanup,"cleanup"),a=o.cleanup),new uvn((p,g)=>{const w=Cxt(r,o,y=>{a&&w(),y?g(y):p()})})}m9e.exports=Cxt;m9e.exports.finished=vvn;var WC=m9e.exports;const y3=GC,{aggregateTwoErrors:yvn,codes:{ERR_MULTIPLE_CALLBACK:kvn},AbortError:Cvn}=Yg,{Symbol:Sxt}=qa,{kIsDestroyed:Svn,isDestroyed:xvn,isFinished:Evn,isServerRequest:Tvn}=sk,xxt=Sxt("kDestroy"),P7e=Sxt("kConstruct");function Ext(r,o,l){r&&(r.stack,o&&!o.errored&&(o.errored=r),l&&!l.errored&&(l.errored=r))}function Ivn(r,o){const l=this._readableState,a=this._writableState,p=a||l;return a!=null&&a.destroyed||l!=null&&l.destroyed?(typeof o=="function"&&o(),this):(Ext(r,a,l),a&&(a.destroyed=!0),l&&(l.destroyed=!0),p.constructed?L5t(this,r,o):this.once(xxt,function(g){L5t(this,yvn(g,r),o)}),this)}function L5t(r,o,l){let a=!1;function p(g){if(a)return;a=!0;const w=r._readableState,y=r._writableState;Ext(g,y,w),y&&(y.closed=!0),w&&(w.closed=!0),typeof l=="function"&&l(g),g?y3.nextTick(Pvn,r,g):y3.nextTick(Txt,r)}try{r._destroy(o||null,p)}catch(g){p(g)}}function Pvn(r,o){M7e(r,o),Txt(r)}function Txt(r){const o=r._readableState,l=r._writableState;l&&(l.closeEmitted=!0),o&&(o.closeEmitted=!0),(l!=null&&l.emitClose||o!=null&&o.emitClose)&&r.emit("close")}function M7e(r,o){const l=r._readableState,a=r._writableState;a!=null&&a.errorEmitted||l!=null&&l.errorEmitted||(a&&(a.errorEmitted=!0),l&&(l.errorEmitted=!0),r.emit("error",o))}function Mvn(){const r=this._readableState,o=this._writableState;r&&(r.constructed=!0,r.closed=!1,r.closeEmitted=!1,r.destroyed=!1,r.errored=null,r.errorEmitted=!1,r.reading=!1,r.ended=r.readable===!1,r.endEmitted=r.readable===!1),o&&(o.constructed=!0,o.destroyed=!1,o.closed=!1,o.closeEmitted=!1,o.errored=null,o.errorEmitted=!1,o.finalCalled=!1,o.prefinished=!1,o.ended=o.writable===!1,o.ending=o.writable===!1,o.finished=o.writable===!1)}function O7e(r,o,l){const a=r._readableState,p=r._writableState;if(p!=null&&p.destroyed||a!=null&&a.destroyed)return this;a!=null&&a.autoDestroy||p!=null&&p.autoDestroy?r.destroy(o):o&&(o.stack,p&&!p.errored&&(p.errored=o),a&&!a.errored&&(a.errored=o),l?y3.nextTick(M7e,r,o):M7e(r,o))}function Ovn(r,o){if(typeof r._construct!="function")return;const l=r._readableState,a=r._writableState;l&&(l.constructed=!1),a&&(a.constructed=!1),r.once(P7e,o),!(r.listenerCount(P7e)>1)&&y3.nextTick(_vn,r)}function _vn(r){let o=!1;function l(a){if(o){O7e(r,a??new kvn);return}o=!0;const p=r._readableState,g=r._writableState,w=g||p;p&&(p.constructed=!0),g&&(g.constructed=!0),w.destroyed?r.emit(xxt,a):a?O7e(r,a,!0):y3.nextTick(Rvn,r)}try{r._construct(a=>{y3.nextTick(l,a)})}catch(a){y3.nextTick(l,a)}}function Rvn(r){r.emit(P7e)}function $5t(r){return(r==null?void 0:r.setHeader)&&typeof r.abort=="function"}function Ixt(r){r.emit("close")}function Avn(r,o){r.emit("error",o),y3.nextTick(Ixt,r)}function Lvn(r,o){!r||xvn(r)||(!o&&!Evn(r)&&(o=new Cvn),Tvn(r)?(r.socket=null,r.destroy(o)):$5t(r)?r.abort():$5t(r.req)?r.req.abort():typeof r.destroy=="function"?r.destroy(o):typeof r.close=="function"?r.close():o?y3.nextTick(Avn,r,o):y3.nextTick(Ixt,r),r.destroyed||(r[Svn]=!0))}var H_={construct:Ovn,destroyer:Lvn,destroy:Ivn,undestroy:Mvn,errorOrDestroy:O7e};const{ArrayIsArray:$vn,ObjectSetPrototypeOf:Pxt}=qa,{EventEmitter:oie}=F_;function sie(r){oie.call(this,r)}Pxt(sie.prototype,oie.prototype);Pxt(sie,oie);sie.prototype.pipe=function(r,o){const l=this;function a(I){r.writable&&r.write(I)===!1&&l.pause&&l.pause()}l.on("data",a);function p(){l.readable&&l.resume&&l.resume()}r.on("drain",p),!r._isStdio&&(!o||o.end!==!1)&&(l.on("end",w),l.on("close",y));let g=!1;function w(){g||(g=!0,r.end())}function y(){g||(g=!0,typeof r.destroy=="function"&&r.destroy())}function S(I){E(),oie.listenerCount(this,"error")===0&&this.emit("error",I)}_7e(l,"error",S),_7e(r,"error",S);function E(){l.removeListener("data",a),r.removeListener("drain",p),l.removeListener("end",w),l.removeListener("close",y),l.removeListener("error",S),r.removeListener("error",S),l.removeListener("end",E),l.removeListener("close",E),r.removeListener("close",E)}return l.on("end",E),l.on("close",E),r.on("close",E),r.emit("pipe",l),r};function _7e(r,o,l){if(typeof r.prependListener=="function")return r.prependListener(o,l);!r._events||!r._events[o]?r.on(o,l):$vn(r._events[o])?r._events[o].unshift(l):r._events[o]=[l,r._events[o]]}var v9e={Stream:sie,prependListener:_7e},Mxt={exports:{}};(function(r){const{SymbolDispose:o}=qa,{AbortError:l,codes:a}=Yg,{isNodeStream:p,isWebStream:g,kControllerErrorFunction:w}=sk,y=WC,{ERR_INVALID_ARG_TYPE:S}=a;let E;const I=(M,_)=>{if(typeof M!="object"||!("aborted"in M))throw new S(_,"AbortSignal",M)};r.exports.addAbortSignal=function(_,R){if(I(_,"signal"),!p(R)&&!g(R))throw new S("stream",["ReadableStream","WritableStream","Stream"],R);return r.exports.addAbortSignalNoValidate(_,R)},r.exports.addAbortSignalNoValidate=function(M,_){if(typeof M!="object"||!("aborted"in M))return _;const R=p(_)?()=>{_.destroy(new l(void 0,{cause:M.reason}))}:()=>{_[w](new l(void 0,{cause:M.reason}))};if(M.aborted)R();else{E=E||Np.addAbortListener;const j=E(M,R);y(_,j[o])}return _}})(Mxt);var lie=Mxt.exports;const{StringPrototypeSlice:j5t,SymbolIterator:jvn,TypedArrayPrototypeSet:Wte,Uint8Array:Dvn}=qa,{Buffer:eCe}=dm,{inspect:Nvn}=Np;var Bvn=class{constructor(){this.head=null,this.tail=null,this.length=0}push(o){const l={data:o,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length}unshift(o){const l={data:o,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length}shift(){if(this.length===0)return;const o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}clear(){this.head=this.tail=null,this.length=0}join(o){if(this.length===0)return"";let l=this.head,a=""+l.data;for(;(l=l.next)!==null;)a+=o+l.data;return a}concat(o){if(this.length===0)return eCe.alloc(0);const l=eCe.allocUnsafe(o>>>0);let a=this.head,p=0;for(;a;)Wte(l,a.data,p),p+=a.data.length,a=a.next;return l}consume(o,l){const a=this.head.data;if(og.length)l+=g,o-=g.length;else{o===g.length?(l+=g,++p,a.next?this.head=a.next:this.head=this.tail=null):(l+=j5t(g,0,o),this.head=a,a.data=j5t(g,o));break}++p}while((a=a.next)!==null);return this.length-=p,l}_getBuffer(o){const l=eCe.allocUnsafe(o),a=o;let p=this.head,g=0;do{const w=p.data;if(o>w.length)Wte(l,w,a-o),o-=w.length;else{o===w.length?(Wte(l,w,a-o),++g,p.next?this.head=p.next:this.head=this.tail=null):(Wte(l,new Dvn(w.buffer,w.byteOffset,o),a-o),this.head=p,p.data=w.slice(o));break}++g}while((p=p.next)!==null);return this.length-=g,l}[Symbol.for("nodejs.util.inspect.custom")](o,l){return Nvn(this,{...l,depth:0,customInspect:!1})}};const{MathFloor:Fvn,NumberIsInteger:zvn}=qa,{validateInteger:Hvn}=SH,{ERR_INVALID_ARG_VALUE:Kvn}=Yg.codes;let Oxt=16*1024,_xt=16;function Uvn(r,o,l){return r.highWaterMark!=null?r.highWaterMark:o?r[l]:null}function Rxt(r){return r?_xt:Oxt}function Gvn(r,o){Hvn(o,"value",0),r?_xt=o:Oxt=o}function Wvn(r,o,l,a){const p=Uvn(o,a,l);if(p!=null){if(!zvn(p)||p<0){const g=a?`options.${l}`:"options.highWaterMark";throw new Kvn(g,p)}return Fvn(p)}return Rxt(r.objectMode)}var cie={getHighWaterMark:Wvn,getDefaultHighWaterMark:Rxt,setDefaultHighWaterMark:Gvn},ire={},R7e={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(r,o){var l=dm,a=l.Buffer;function p(w,y){for(var S in w)y[S]=w[S]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=l:(p(l,o),o.Buffer=g);function g(w,y,S){return a(w,y,S)}g.prototype=Object.create(a.prototype),p(a,g),g.from=function(w,y,S){if(typeof w=="number")throw new TypeError("Argument must not be a number");return a(w,y,S)},g.alloc=function(w,y,S){if(typeof w!="number")throw new TypeError("Argument must be a number");var E=a(w);return y!==void 0?typeof S=="string"?E.fill(y,S):E.fill(y):E.fill(0),E},g.allocUnsafe=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return a(w)},g.allocUnsafeSlow=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(w)}})(R7e,R7e.exports);var Vvn=R7e.exports,y9e=Vvn.Buffer,D5t=y9e.isEncoding||function(r){switch(r=""+r,r&&r.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 qvn(r){if(!r)return"utf8";for(var o;;)switch(r){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 r;default:if(o)return;r=(""+r).toLowerCase(),o=!0}}function Xvn(r){var o=qvn(r);if(typeof o!="string"&&(y9e.isEncoding===D5t||!D5t(r)))throw new Error("Unknown encoding: "+r);return o||r}ire.StringDecoder=xH;function xH(r){this.encoding=Xvn(r);var o;switch(this.encoding){case"utf16le":this.text=tyn,this.end=nyn,o=4;break;case"utf8":this.fillLast=Qvn,o=4;break;case"base64":this.text=ryn,this.end=iyn,o=3;break;default:this.write=oyn,this.end=syn;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=y9e.allocUnsafe(o)}xH.prototype.write=function(r){if(r.length===0)return"";var o,l;if(this.lastNeed){if(o=this.fillLast(r),o===void 0)return"";l=this.lastNeed,this.lastNeed=0}else l=0;return l>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function Yvn(r,o,l){var a=o.length-1;if(a=0?(p>0&&(r.lastNeed=p-1),p):--a=0?(p>0&&(r.lastNeed=p-2),p):--a=0?(p>0&&(p===2?p=0:r.lastNeed=p-3),p):0))}function Jvn(r,o,l){if((o[0]&192)!==128)return r.lastNeed=0,"�";if(r.lastNeed>1&&o.length>1){if((o[1]&192)!==128)return r.lastNeed=1,"�";if(r.lastNeed>2&&o.length>2&&(o[2]&192)!==128)return r.lastNeed=2,"�"}}function Qvn(r){var o=this.lastTotal-this.lastNeed,l=Jvn(this,r);if(l!==void 0)return l;if(this.lastNeed<=r.length)return r.copy(this.lastChar,o,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,o,0,r.length),this.lastNeed-=r.length}function Zvn(r,o){var l=Yvn(this,r,o);if(!this.lastNeed)return r.toString("utf8",o);this.lastTotal=l;var a=r.length-(l-this.lastNeed);return r.copy(this.lastChar,0,a),r.toString("utf8",o,a)}function eyn(r){var o=r&&r.length?this.write(r):"";return this.lastNeed?o+"�":o}function tyn(r,o){if((r.length-o)%2===0){var l=r.toString("utf16le",o);if(l){var a=l.charCodeAt(l.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],l.slice(0,-1)}return l}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",o,r.length-1)}function nyn(r){var o=r&&r.length?this.write(r):"";if(this.lastNeed){var l=this.lastTotal-this.lastNeed;return o+this.lastChar.toString("utf16le",0,l)}return o}function ryn(r,o){var l=(r.length-o)%3;return l===0?r.toString("base64",o):(this.lastNeed=3-l,this.lastTotal=3,l===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",o,r.length-l))}function iyn(r){var o=r&&r.length?this.write(r):"";return this.lastNeed?o+this.lastChar.toString("base64",0,3-this.lastNeed):o}function oyn(r){return r.toString(this.encoding)}function syn(r){return r&&r.length?this.write(r):""}const N5t=GC,{PromisePrototypeThen:lyn,SymbolAsyncIterator:B5t,SymbolIterator:F5t}=qa,{Buffer:cyn}=dm,{ERR_INVALID_ARG_TYPE:uyn,ERR_STREAM_NULL_VALUES:ayn}=Yg.codes;function fyn(r,o,l){let a;if(typeof o=="string"||o instanceof cyn)return new r({objectMode:!0,...l,read(){this.push(o),this.push(null)}});let p;if(o&&o[B5t])p=!0,a=o[B5t]();else if(o&&o[F5t])p=!1,a=o[F5t]();else throw new uyn("iterable",["Iterable"],o);const g=new r({objectMode:!0,highWaterMark:1,...l});let w=!1;g._read=function(){w||(w=!0,S())},g._destroy=function(E,I){lyn(y(E),()=>N5t.nextTick(I,E),M=>N5t.nextTick(I,M||E))};async function y(E){const I=E!=null,M=typeof a.throw=="function";if(I&&M){const{value:_,done:R}=await a.throw(E);if(await _,R)return}if(typeof a.return=="function"){const{value:_}=await a.return();await _}}async function S(){for(;;){try{const{value:E,done:I}=p?await a.next():a.next();if(I)g.push(null);else{const M=E&&typeof E.then=="function"?await E:E;if(M===null)throw w=!1,new ayn;if(g.push(M))continue;w=!1}}catch(E){g.destroy(E)}break}}return g}var Axt=fyn,nCe,z5t;function uie(){if(z5t)return nCe;z5t=1;const r=GC,{ArrayPrototypeIndexOf:o,NumberIsInteger:l,NumberIsNaN:a,NumberParseInt:p,ObjectDefineProperties:g,ObjectKeys:w,ObjectSetPrototypeOf:y,Promise:S,SafeSet:E,SymbolAsyncDispose:I,SymbolAsyncIterator:M,Symbol:_}=qa;nCe=Ct,Ct.ReadableState=tn;const{EventEmitter:R}=F_,{Stream:j,prependListener:K}=v9e,{Buffer:q}=dm,{addAbortSignal:Q}=lie,Z=WC;let X=Np.debuglog("stream",Ne=>{X=Ne});const ie=Bvn,je=H_,{getHighWaterMark:et,getDefaultHighWaterMark:mt}=cie,{aggregateTwoErrors:bt,codes:{ERR_INVALID_ARG_TYPE:ce,ERR_METHOD_NOT_IMPLEMENTED:Be,ERR_OUT_OF_RANGE:ae,ERR_STREAM_PUSH_AFTER_EOF:xe,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:U},AbortError:He}=Yg,{validateObject:yt}=SH,ft=_("kPaused"),{StringDecoder:At}=ire,Jt=Axt;y(Ct.prototype,j.prototype),y(Ct,j);const un=()=>{},{errorOrDestroy:kn}=je,qt=1,on=2,Rt=4,an=8,Zn=16,kt=32,Ze=64,Xt=128,Mn=256,pr=512,ye=1024,Ce=2048,ee=4096,V=8192,oe=16384,ue=32768,ge=65536,Ge=1<<17,$t=1<<18;function Lt(Ne){return{enumerable:!1,get(){return(this.state&Ne)!==0},set(Xe){Xe?this.state|=Ne:this.state&=~Ne}}}g(tn.prototype,{objectMode:Lt(qt),ended:Lt(on),endEmitted:Lt(Rt),reading:Lt(an),constructed:Lt(Zn),sync:Lt(kt),needReadable:Lt(Ze),emittedReadable:Lt(Xt),readableListening:Lt(Mn),resumeScheduled:Lt(pr),errorEmitted:Lt(ye),emitClose:Lt(Ce),autoDestroy:Lt(ee),destroyed:Lt(V),closed:Lt(oe),closeEmitted:Lt(ue),multiAwaitDrain:Lt(ge),readingMore:Lt(Ge),dataEmitted:Lt($t)});function tn(Ne,Xe,Pr){typeof Pr!="boolean"&&(Pr=Xe instanceof X6()),this.state=Ce|ee|Zn|kt,Ne&&Ne.objectMode&&(this.state|=qt),Pr&&Ne&&Ne.readableObjectMode&&(this.state|=qt),this.highWaterMark=Ne?et(this,Ne,"readableHighWaterMark",Pr):mt(!1),this.buffer=new ie,this.length=0,this.pipes=[],this.flowing=null,this[ft]=null,Ne&&Ne.emitClose===!1&&(this.state&=~Ce),Ne&&Ne.autoDestroy===!1&&(this.state&=~ee),this.errored=null,this.defaultEncoding=Ne&&Ne.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,Ne&&Ne.encoding&&(this.decoder=new At(Ne.encoding),this.encoding=Ne.encoding)}function Ct(Ne){if(!(this instanceof Ct))return new Ct(Ne);const Xe=this instanceof X6();this._readableState=new tn(Ne,this,Xe),Ne&&(typeof Ne.read=="function"&&(this._read=Ne.read),typeof Ne.destroy=="function"&&(this._destroy=Ne.destroy),typeof Ne.construct=="function"&&(this._construct=Ne.construct),Ne.signal&&!Xe&&Q(Ne.signal,this)),j.call(this,Ne),je.construct(this,()=>{this._readableState.needReadable&>(this,this._readableState)})}Ct.prototype.destroy=je.destroy,Ct.prototype._undestroy=je.undestroy,Ct.prototype._destroy=function(Ne,Xe){Xe(Ne)},Ct.prototype[R.captureRejectionSymbol]=function(Ne){this.destroy(Ne)},Ct.prototype[I]=function(){let Ne;return this.destroyed||(Ne=this.readableEnded?null:new He,this.destroy(Ne)),new S((Xe,Pr)=>Z(this,Cr=>Cr&&Cr!==Ne?Pr(Cr):Xe(null)))},Ct.prototype.push=function(Ne,Xe){return Kn(this,Ne,Xe,!1)},Ct.prototype.unshift=function(Ne,Xe){return Kn(this,Ne,Xe,!0)};function Kn(Ne,Xe,Pr,Cr){X("readableAddChunk",Xe);const Gr=Ne._readableState;let lu;if(Gr.state&qt||(typeof Xe=="string"?(Pr=Pr||Gr.defaultEncoding,Gr.encoding!==Pr&&(Cr&&Gr.encoding?Xe=q.from(Xe,Pr).toString(Gr.encoding):(Xe=q.from(Xe,Pr),Pr=""))):Xe instanceof q?Pr="":j._isUint8Array(Xe)?(Xe=j._uint8ArrayToBuffer(Xe),Pr=""):Xe!=null&&(lu=new ce("chunk",["string","Buffer","Uint8Array"],Xe))),lu)kn(Ne,lu);else if(Xe===null)Gr.state&=~an,G(Ne,Gr);else if(Gr.state&qt||Xe&&Xe.length>0)if(Cr)if(Gr.state&Rt)kn(Ne,new U);else{if(Gr.destroyed||Gr.errored)return!1;dn(Ne,Gr,Xe,!0)}else if(Gr.ended)kn(Ne,new xe);else{if(Gr.destroyed||Gr.errored)return!1;Gr.state&=~an,Gr.decoder&&!Pr?(Xe=Gr.decoder.write(Xe),Gr.objectMode||Xe.length!==0?dn(Ne,Gr,Xe,!1):gt(Ne,Gr)):dn(Ne,Gr,Xe,!1)}else Cr||(Gr.state&=~an,gt(Ne,Gr));return!Gr.ended&&(Gr.length0?(Xe.state&ge?Xe.awaitDrainWriters.clear():Xe.awaitDrainWriters=null,Xe.dataEmitted=!0,Ne.emit("data",Pr)):(Xe.length+=Xe.objectMode?1:Pr.length,Cr?Xe.buffer.unshift(Pr):Xe.buffer.push(Pr),Xe.state&Ze&&Y(Ne)),gt(Ne,Xe)}Ct.prototype.isPaused=function(){const Ne=this._readableState;return Ne[ft]===!0||Ne.flowing===!1},Ct.prototype.setEncoding=function(Ne){const Xe=new At(Ne);this._readableState.decoder=Xe,this._readableState.encoding=this._readableState.decoder.encoding;const Pr=this._readableState.buffer;let Cr="";for(const Gr of Pr)Cr+=Xe.write(Gr);return Pr.clear(),Cr!==""&&Pr.push(Cr),this._readableState.length=Cr.length,this};const Rn=1073741824;function br(Ne){if(Ne>Rn)throw new ae("size","<= 1GiB",Ne);return Ne--,Ne|=Ne>>>1,Ne|=Ne>>>2,Ne|=Ne>>>4,Ne|=Ne>>>8,Ne|=Ne>>>16,Ne++,Ne}function de(Ne,Xe){return Ne<=0||Xe.length===0&&Xe.ended?0:Xe.state&qt?1:a(Ne)?Xe.flowing&&Xe.length?Xe.buffer.first().length:Xe.length:Ne<=Xe.length?Ne:Xe.ended?Xe.length:0}Ct.prototype.read=function(Ne){X("read",Ne),Ne===void 0?Ne=NaN:l(Ne)||(Ne=p(Ne,10));const Xe=this._readableState,Pr=Ne;if(Ne>Xe.highWaterMark&&(Xe.highWaterMark=br(Ne)),Ne!==0&&(Xe.state&=~Xt),Ne===0&&Xe.needReadable&&((Xe.highWaterMark!==0?Xe.length>=Xe.highWaterMark:Xe.length>0)||Xe.ended))return X("read: emitReadable",Xe.length,Xe.ended),Xe.length===0&&Xe.ended?_d(this):Y(this),null;if(Ne=de(Ne,Xe),Ne===0&&Xe.ended)return Xe.length===0&&_d(this),null;let Cr=(Xe.state&Ze)!==0;if(X("need readable",Cr),(Xe.length===0||Xe.length-Ne0?Gr=L3(Ne,Xe):Gr=null,Gr===null?(Xe.needReadable=Xe.length<=Xe.highWaterMark,Ne=0):(Xe.length-=Ne,Xe.multiAwaitDrain?Xe.awaitDrainWriters.clear():Xe.awaitDrainWriters=null),Xe.length===0&&(Xe.ended||(Xe.needReadable=!0),Pr!==Ne&&Xe.ended&&_d(this)),Gr!==null&&!Xe.errorEmitted&&!Xe.closeEmitted&&(Xe.dataEmitted=!0,this.emit("data",Gr)),Gr};function G(Ne,Xe){if(X("onEofChunk"),!Xe.ended){if(Xe.decoder){const Pr=Xe.decoder.end();Pr&&Pr.length&&(Xe.buffer.push(Pr),Xe.length+=Xe.objectMode?1:Pr.length)}Xe.ended=!0,Xe.sync?Y(Ne):(Xe.needReadable=!1,Xe.emittedReadable=!0,De(Ne))}}function Y(Ne){const Xe=Ne._readableState;X("emitReadable",Xe.needReadable,Xe.emittedReadable),Xe.needReadable=!1,Xe.emittedReadable||(X("emitReadable",Xe.flowing),Xe.emittedReadable=!0,r.nextTick(De,Ne))}function De(Ne){const Xe=Ne._readableState;X("emitReadable_",Xe.destroyed,Xe.length,Xe.ended),!Xe.destroyed&&!Xe.errored&&(Xe.length||Xe.ended)&&(Ne.emit("readable"),Xe.emittedReadable=!1),Xe.needReadable=!Xe.flowing&&!Xe.ended&&Xe.length<=Xe.highWaterMark,zs(Ne)}function gt(Ne,Xe){!Xe.readingMore&&Xe.constructed&&(Xe.readingMore=!0,r.nextTick(Kt,Ne,Xe))}function Kt(Ne,Xe){for(;!Xe.reading&&!Xe.ended&&(Xe.length1&&Cr.pipes.includes(Ne)&&(X("false write response, pause",Cr.awaitDrainWriters.size),Cr.awaitDrainWriters.add(Ne)),Pr.pause()),mb||(mb=Ut(Pr,Ne),Ne.on("drain",mb))}Pr.on("data",wy);function wy(Qg){X("ondata");const zp=Ne.write(Qg);X("dest.write",zp),zp===!1&&j1()}function uk(Qg){if(X("onerror",Qg),Fp(),Ne.removeListener("error",uk),Ne.listenerCount("error")===0){const zp=Ne._writableState||Ne._readableState;zp&&!zp.errorEmitted?kn(Ne,Qg):Ne.emit("error",Qg)}}K(Ne,"error",uk);function j3(){Ne.removeListener("finish",ak),Fp()}Ne.once("close",j3);function ak(){X("onfinish"),Ne.removeListener("close",j3),Fp()}Ne.once("finish",ak);function Fp(){X("unpipe"),Pr.unpipe(Ne)}return Ne.emit("pipe",Pr),Ne.writableNeedDrain===!0?j1():Cr.flowing||(X("pipe resume"),Pr.resume()),Ne};function Ut(Ne,Xe){return function(){const Cr=Ne._readableState;Cr.awaitDrainWriters===Xe?(X("pipeOnDrain",1),Cr.awaitDrainWriters=null):Cr.multiAwaitDrain&&(X("pipeOnDrain",Cr.awaitDrainWriters.size),Cr.awaitDrainWriters.delete(Xe)),(!Cr.awaitDrainWriters||Cr.awaitDrainWriters.size===0)&&Ne.listenerCount("data")&&Ne.resume()}}Ct.prototype.unpipe=function(Ne){const Xe=this._readableState,Pr={hasUnpiped:!1};if(Xe.pipes.length===0)return this;if(!Ne){const Gr=Xe.pipes;Xe.pipes=[],this.pause();for(let lu=0;lu0,Cr.flowing!==!1&&this.resume()):Ne==="readable"&&!Cr.endEmitted&&!Cr.readableListening&&(Cr.readableListening=Cr.needReadable=!0,Cr.flowing=!1,Cr.emittedReadable=!1,X("on readable",Cr.length,Cr.reading),Cr.length?Y(this):Cr.reading||r.nextTick(rl,this)),Pr},Ct.prototype.addListener=Ct.prototype.on,Ct.prototype.removeListener=function(Ne,Xe){const Pr=j.prototype.removeListener.call(this,Ne,Xe);return Ne==="readable"&&r.nextTick(so,this),Pr},Ct.prototype.off=Ct.prototype.removeListener,Ct.prototype.removeAllListeners=function(Ne){const Xe=j.prototype.removeAllListeners.apply(this,arguments);return(Ne==="readable"||Ne===void 0)&&r.nextTick(so,this),Xe};function so(Ne){const Xe=Ne._readableState;Xe.readableListening=Ne.listenerCount("readable")>0,Xe.resumeScheduled&&Xe[ft]===!1?Xe.flowing=!0:Ne.listenerCount("data")>0?Ne.resume():Xe.readableListening||(Xe.flowing=null)}function rl(Ne){X("readable nexttick read 0"),Ne.read(0)}Ct.prototype.resume=function(){const Ne=this._readableState;return Ne.flowing||(X("resume"),Ne.flowing=!Ne.readableListening,Ro(this,Ne)),Ne[ft]=!1,this};function Ro(Ne,Xe){Xe.resumeScheduled||(Xe.resumeScheduled=!0,r.nextTick(Ao,Ne,Xe))}function Ao(Ne,Xe){X("resume",Xe.reading),Xe.reading||Ne.read(0),Xe.resumeScheduled=!1,Ne.emit("resume"),zs(Ne),Xe.flowing&&!Xe.reading&&Ne.read(0)}Ct.prototype.pause=function(){return X("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(X("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[ft]=!0,this};function zs(Ne){const Xe=Ne._readableState;for(X("flow",Xe.flowing);Xe.flowing&&Ne.read()!==null;);}Ct.prototype.wrap=function(Ne){let Xe=!1;Ne.on("data",Cr=>{!this.push(Cr)&&Ne.pause&&(Xe=!0,Ne.pause())}),Ne.on("end",()=>{this.push(null)}),Ne.on("error",Cr=>{kn(this,Cr)}),Ne.on("close",()=>{this.destroy()}),Ne.on("destroy",()=>{this.destroy()}),this._read=()=>{Xe&&Ne.resume&&(Xe=!1,Ne.resume())};const Pr=w(Ne);for(let Cr=1;Cr{Gr=Rd?bt(Gr,Rd):null,Pr(),Pr=un});try{for(;;){const Rd=Ne.destroyed?null:Ne.read();if(Rd!==null)yield Rd;else{if(Gr)throw Gr;if(Gr===null)return;await new S(Cr)}}}catch(Rd){throw Gr=bt(Gr,Rd),Gr}finally{(Gr||(Xe==null?void 0:Xe.destroyOnReturn)!==!1)&&(Gr===void 0||Ne._readableState.autoDestroy)?je.destroyer(Ne,null):(Ne.off("readable",Cr),lu())}}g(Ct.prototype,{readable:{__proto__:null,get(){const Ne=this._readableState;return!!Ne&&Ne.readable!==!1&&!Ne.destroyed&&!Ne.errorEmitted&&!Ne.endEmitted},set(Ne){this._readableState&&(this._readableState.readable=!!Ne)}},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(Ne){this._readableState&&(this._readableState.flowing=Ne)}},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(Ne){this._readableState&&(this._readableState.destroyed=Ne)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),g(tn.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[ft]!==!1},set(Ne){this[ft]=!!Ne}}}),Ct._fromList=L3;function L3(Ne,Xe){if(Xe.length===0)return null;let Pr;return Xe.objectMode?Pr=Xe.buffer.shift():!Ne||Ne>=Xe.length?(Xe.decoder?Pr=Xe.buffer.join(""):Xe.buffer.length===1?Pr=Xe.buffer.first():Pr=Xe.buffer.concat(Xe.length),Xe.buffer.clear()):Pr=Xe.buffer.consume(Ne,Xe.decoder),Pr}function _d(Ne){const Xe=Ne._readableState;X("endReadable",Xe.endEmitted),Xe.endEmitted||(Xe.ended=!0,r.nextTick(YC,Xe,Ne))}function YC(Ne,Xe){if(X("endReadableNT",Ne.endEmitted,Ne.length),!Ne.errored&&!Ne.closeEmitted&&!Ne.endEmitted&&Ne.length===0){if(Ne.endEmitted=!0,Xe.emit("end"),Xe.writable&&Xe.allowHalfOpen===!1)r.nextTick(sT,Xe);else if(Ne.autoDestroy){const Pr=Xe._writableState;(!Pr||Pr.autoDestroy&&(Pr.finished||Pr.writable===!1))&&Xe.destroy()}}}function sT(Ne){Ne.writable&&!Ne.writableEnded&&!Ne.destroyed&&Ne.end()}Ct.from=function(Ne,Xe){return Jt(Ct,Ne,Xe)};let $1;function JC(){return $1===void 0&&($1={}),$1}return Ct.fromWeb=function(Ne,Xe){return JC().newStreamReadableFromReadableStream(Ne,Xe)},Ct.toWeb=function(Ne,Xe){return JC().newReadableStreamFromStreamReadable(Ne,Xe)},Ct.wrap=function(Ne,Xe){var Pr,Cr;return new Ct({objectMode:(Pr=(Cr=Ne.readableObjectMode)!==null&&Cr!==void 0?Cr:Ne.objectMode)!==null&&Pr!==void 0?Pr:!0,...Xe,destroy(Gr,lu){je.destroyer(Ne,Gr),lu(Gr)}}).wrap(Ne)},nCe}var rCe,H5t;function k9e(){if(H5t)return rCe;H5t=1;const r=GC,{ArrayPrototypeSlice:o,Error:l,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:p,ObjectDefineProperties:g,ObjectSetPrototypeOf:w,StringPrototypeToLowerCase:y,Symbol:S,SymbolHasInstance:E}=qa;rCe=yt,yt.WritableState=U;const{EventEmitter:I}=F_,M=v9e.Stream,{Buffer:_}=dm,R=H_,{addAbortSignal:j}=lie,{getHighWaterMark:K,getDefaultHighWaterMark:q}=cie,{ERR_INVALID_ARG_TYPE:Q,ERR_METHOD_NOT_IMPLEMENTED:Z,ERR_MULTIPLE_CALLBACK:X,ERR_STREAM_CANNOT_PIPE:ie,ERR_STREAM_DESTROYED:je,ERR_STREAM_ALREADY_FINISHED:et,ERR_STREAM_NULL_VALUES:mt,ERR_STREAM_WRITE_AFTER_END:bt,ERR_UNKNOWN_ENCODING:ce}=Yg.codes,{errorOrDestroy:Be}=R;w(yt.prototype,M.prototype),w(yt,M);function ae(){}const xe=S("kOnFinished");function U(ee,V,oe){typeof oe!="boolean"&&(oe=V instanceof X6()),this.objectMode=!!(ee&&ee.objectMode),oe&&(this.objectMode=this.objectMode||!!(ee&&ee.writableObjectMode)),this.highWaterMark=ee?K(this,ee,"writableHighWaterMark",oe):q(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const ue=!!(ee&&ee.decodeStrings===!1);this.decodeStrings=!ue,this.defaultEncoding=ee&&ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=kn.bind(void 0,V),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,He(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!ee||ee.emitClose!==!1,this.autoDestroy=!ee||ee.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[xe]=[]}function He(ee){ee.buffered=[],ee.bufferedIndex=0,ee.allBuffers=!0,ee.allNoop=!0}U.prototype.getBuffer=function(){return o(this.buffered,this.bufferedIndex)},p(U.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function yt(ee){const V=this instanceof X6();if(!V&&!a(yt,this))return new yt(ee);this._writableState=new U(ee,this,V),ee&&(typeof ee.write=="function"&&(this._write=ee.write),typeof ee.writev=="function"&&(this._writev=ee.writev),typeof ee.destroy=="function"&&(this._destroy=ee.destroy),typeof ee.final=="function"&&(this._final=ee.final),typeof ee.construct=="function"&&(this._construct=ee.construct),ee.signal&&j(ee.signal,this)),M.call(this,ee),R.construct(this,()=>{const oe=this._writableState;oe.writing||an(this,oe),Xt(this,oe)})}p(yt,E,{__proto__:null,value:function(ee){return a(this,ee)?!0:this!==yt?!1:ee&&ee._writableState instanceof U}}),yt.prototype.pipe=function(){Be(this,new ie)};function ft(ee,V,oe,ue){const ge=ee._writableState;if(typeof oe=="function")ue=oe,oe=ge.defaultEncoding;else{if(!oe)oe=ge.defaultEncoding;else if(oe!=="buffer"&&!_.isEncoding(oe))throw new ce(oe);typeof ue!="function"&&(ue=ae)}if(V===null)throw new mt;if(!ge.objectMode)if(typeof V=="string")ge.decodeStrings!==!1&&(V=_.from(V,oe),oe="buffer");else if(V instanceof _)oe="buffer";else if(M._isUint8Array(V))V=M._uint8ArrayToBuffer(V),oe="buffer";else throw new Q("chunk",["string","Buffer","Uint8Array"],V);let Ge;return ge.ending?Ge=new bt:ge.destroyed&&(Ge=new je("write")),Ge?(r.nextTick(ue,Ge),Be(ee,Ge,!0),Ge):(ge.pendingcb++,At(ee,ge,V,oe,ue))}yt.prototype.write=function(ee,V,oe){return ft(this,ee,V,oe)===!0},yt.prototype.cork=function(){this._writableState.corked++},yt.prototype.uncork=function(){const ee=this._writableState;ee.corked&&(ee.corked--,ee.writing||an(this,ee))},yt.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=y(V)),!_.isEncoding(V))throw new ce(V);return this._writableState.defaultEncoding=V,this};function At(ee,V,oe,ue,ge){const Ge=V.objectMode?1:oe.length;V.length+=Ge;const $t=V.lengthoe.bufferedIndex&&an(ee,oe),ue?oe.afterWriteTickInfo!==null&&oe.afterWriteTickInfo.cb===ge?oe.afterWriteTickInfo.count++:(oe.afterWriteTickInfo={count:1,cb:ge,stream:ee,state:oe},r.nextTick(qt,oe.afterWriteTickInfo)):on(ee,oe,1,ge))}function qt({stream:ee,state:V,count:oe,cb:ue}){return V.afterWriteTickInfo=null,on(ee,V,oe,ue)}function on(ee,V,oe,ue){for(!V.ending&&!ee.destroyed&&V.length===0&&V.needDrain&&(V.needDrain=!1,ee.emit("drain"));oe-- >0;)V.pendingcb--,ue();V.destroyed&&Rt(V),Xt(ee,V)}function Rt(ee){if(ee.writing)return;for(let ge=ee.bufferedIndex;ge1&&ee._writev){V.pendingcb-=Ge-1;const Lt=V.allNoop?ae:Ct=>{for(let Kn=$t;Kn256?(oe.splice(0,$t),V.bufferedIndex=0):V.bufferedIndex=$t}V.bufferProcessing=!1}yt.prototype._write=function(ee,V,oe){if(this._writev)this._writev([{chunk:ee,encoding:V}],oe);else throw new Z("_write()")},yt.prototype._writev=null,yt.prototype.end=function(ee,V,oe){const ue=this._writableState;typeof ee=="function"?(oe=ee,ee=null,V=null):typeof V=="function"&&(oe=V,V=null);let ge;if(ee!=null){const Ge=ft(this,ee,V);Ge instanceof l&&(ge=Ge)}return ue.corked&&(ue.corked=1,this.uncork()),ge||(!ue.errored&&!ue.ending?(ue.ending=!0,Xt(this,ue,!0),ue.ended=!0):ue.finished?ge=new et("end"):ue.destroyed&&(ge=new je("end"))),typeof oe=="function"&&(ge||ue.finished?r.nextTick(oe,ge):ue[xe].push(oe)),this};function Zn(ee){return ee.ending&&!ee.destroyed&&ee.constructed&&ee.length===0&&!ee.errored&&ee.buffered.length===0&&!ee.finished&&!ee.writing&&!ee.errorEmitted&&!ee.closeEmitted}function kt(ee,V){let oe=!1;function ue(ge){if(oe){Be(ee,ge??X());return}if(oe=!0,V.pendingcb--,ge){const Ge=V[xe].splice(0);for(let $t=0;$t{Zn(ge)?Mn(ue,ge):ge.pendingcb--},ee,V)):Zn(V)&&(V.pendingcb++,Mn(ee,V))))}function Mn(ee,V){V.pendingcb--,V.finished=!0;const oe=V[xe].splice(0);for(let ue=0;ue{if(Rt!=null)throw new j("nully","body",Rt)},Rt=>{K(qt,Rt)});return qt=new ce({objectMode:!0,readable:!1,write:At,final(Rt){Jt(async()=>{try{await on,r.nextTick(Rt,null)}catch(an){r.nextTick(Rt,an)}})},destroy:un})}throw new j("Iterable, AsyncIterable or AsyncFunction",He,ft)}if(et(U))return xe(U.arrayBuffer());if(p(U))return ie(ce,U,{objectMode:!0,writable:!1});if(E(U==null?void 0:U.readable)&&I(U==null?void 0:U.writable))return ce.fromWeb(U);if(typeof(U==null?void 0:U.writable)=="object"||typeof(U==null?void 0:U.readable)=="object"){const ft=U!=null&&U.readable?w(U==null?void 0:U.readable)?U==null?void 0:U.readable:xe(U.readable):void 0,At=U!=null&&U.writable?y(U==null?void 0:U.writable)?U==null?void 0:U.writable:xe(U.writable):void 0;return ae({readable:ft,writable:At})}const yt=U==null?void 0:U.then;if(typeof yt=="function"){let ft;return bt(yt,U,At=>{At!=null&&ft.push(At),ft.push(null)},At=>{K(ft,At)}),ft=new ce({objectMode:!0,writable:!1,read(){}})}throw new R(He,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],U)};function Be(xe){let{promise:U,resolve:He}=X();const yt=new mt,ft=yt.signal;return{value:xe(async function*(){for(;;){const Jt=U;U=null;const{chunk:un,done:kn,cb:qt}=await Jt;if(r.nextTick(qt),kn)return;if(ft.aborted)throw new _(void 0,{cause:ft.reason});({promise:U,resolve:He}=X()),yield un}}(),{signal:ft}),write(Jt,un,kn){const qt=He;He=null,qt({chunk:Jt,done:!1,cb:kn})},final(Jt){const un=He;He=null,un({done:!0,cb:Jt})},destroy(Jt,un){yt.abort(),un(Jt)}}}function ae(xe){const U=xe.readable&&typeof xe.readable.read!="function"?Q.wrap(xe.readable):xe.readable,He=xe.writable;let yt=!!l(U),ft=!!a(He),At,Jt,un,kn,qt;function on(Rt){const an=kn;kn=null,an?an(Rt):Rt&&qt.destroy(Rt)}return qt=new ce({readableObjectMode:!!(U!=null&&U.readableObjectMode),writableObjectMode:!!(He!=null&&He.writableObjectMode),readable:yt,writable:ft}),ft&&(M(He,Rt=>{ft=!1,Rt&&K(U,Rt),on(Rt)}),qt._write=function(Rt,an,Zn){He.write(Rt,an)?Zn():At=Zn},qt._final=function(Rt){He.end(),Jt=Rt},He.on("drain",function(){if(At){const Rt=At;At=null,Rt()}}),He.on("finish",function(){if(Jt){const Rt=Jt;Jt=null,Rt()}})),yt&&(M(U,Rt=>{yt=!1,Rt&&K(U,Rt),on(Rt)}),U.on("readable",function(){if(un){const Rt=un;un=null,Rt()}}),U.on("end",function(){qt.push(null)}),qt._read=function(){for(;;){const Rt=U.read();if(Rt===null){un=qt._read;return}if(!qt.push(Rt))return}}),qt._destroy=function(Rt,an){!Rt&&kn!==null&&(Rt=new _),un=null,At=null,Jt=null,kn===null?an(Rt):(kn=an,K(He,Rt),K(U,Rt))},qt}return iCe}var oCe,U5t;function X6(){if(U5t)return oCe;U5t=1;const{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:o,ObjectKeys:l,ObjectSetPrototypeOf:a}=qa;oCe=w;const p=uie(),g=k9e();a(w.prototype,p.prototype),a(w,p);{const I=l(g.prototype);for(let M=0;M{if(o){r?r(o):this.destroy(o);return}l!=null&&this.push(l),this.push(null),r&&r()}):(this.push(null),r&&r())}function byn(){this._final!==A7e&&A7e.call(this)}Y6.prototype._final=A7e;Y6.prototype._transform=function(r,o,l){throw new pyn("_transform()")};Y6.prototype._write=function(r,o,l){const a=this._readableState,p=this._writableState,g=a.length;this._transform(r,o,(w,y)=>{if(w){l(w);return}y!=null&&this.push(y),p.ended||g===a.length||a.length{a=!0});const p=ore(r,{readable:o,writable:l},g=>{a=!g});return{destroy:g=>{a||(a=!0,Cyn.destroyer(r,g||new Eyn("pipe")))},cleanup:p}}function Ayn(r){return Pyn(r[r.length-1],"streams[stream.length - 1]"),r.pop()}function dCe(r){if(dE(r))return r;if(Tne(r))return Lyn(r);throw new L7e("val",["Readable","Iterable","AsyncIterable"],r)}async function*Lyn(r){aCe||(aCe=uie()),yield*aCe.prototype[vyn].call(r)}async function Vte(r,o,l,{end:a}){let p,g=null;const w=E=>{if(E&&(p=E),g){const I=g;g=null,I()}},y=()=>new myn((E,I)=>{p?I(p):g=()=>{p?I(p):E()}});o.on("drain",w);const S=ore(o,{readable:!1},w);try{o.writableNeedDrain&&await y();for await(const E of r)o.write(E)||await y();a&&(o.end(),await y()),l()}catch(E){l(p!==E?Syn(p,E):E)}finally{S(),o.off("drain",w)}}async function hCe(r,o,l,{end:a}){UO(o)&&(o=o.writable);const p=o.getWriter();try{for await(const g of r)await p.ready,p.write(g).catch(()=>{});await p.ready,a&&await p.close(),l()}catch(g){try{await p.abort(g),l(g)}catch(w){l(w)}}}function $yn(...r){return Nxt(r,kyn(Ayn(r)))}function Nxt(r,o,l){if(r.length===1&&wyn(r[0])&&(r=r[0]),r.length<2)throw new xyn("streams");const a=new Ryn,p=a.signal,g=l==null?void 0:l.signal,w=[];Myn(g,"options.signal");function y(){j(new Iyn)}fCe=fCe||Np.addAbortListener;let S;g&&(S=fCe(g,y));let E,I;const M=[];let _=0;function R(Z){j(Z,--_===0)}function j(Z,X){var ie;if(Z&&(!E||E.code==="ERR_STREAM_PREMATURE_CLOSE")&&(E=Z),!(!E&&!X)){for(;M.length;)M.shift()(E);(ie=S)===null||ie===void 0||ie[yyn](),a.abort(),X&&(E||w.forEach(je=>je()),yF.nextTick(o,E,I))}}let K;for(let Z=0;Z0,et=ie||(l==null?void 0:l.end)!==!1,mt=Z===r.length-1;if(W5t(X)){let bt=function(ce){ce&&ce.name!=="AbortError"&&ce.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(ce)};if(et){const{destroy:ce,cleanup:Be}=V5t(X,ie,je);M.push(ce),lCe(X)&&mt&&w.push(Be)}X.on("error",bt),lCe(X)&&mt&&w.push(()=>{X.removeListener("error",bt)})}if(Z===0)if(typeof X=="function"){if(K=X({signal:p}),!dE(K))throw new sCe("Iterable, AsyncIterable or Stream","source",K)}else dE(X)||Tne(X)||UO(X)?K=X:K=G5t.from(X);else if(typeof X=="function"){if(UO(K)){var q;K=dCe((q=K)===null||q===void 0?void 0:q.readable)}else K=dCe(K);if(K=X(K,{signal:p}),ie){if(!dE(K,!0))throw new sCe("AsyncIterable",`transform[${Z-1}]`,K)}else{var Q;uCe||(uCe=Dxt);const bt=new uCe({objectMode:!0}),ce=(Q=K)===null||Q===void 0?void 0:Q.then;if(typeof ce=="function")_++,ce.call(K,xe=>{I=xe,xe!=null&&bt.write(xe),et&&bt.end(),yF.nextTick(R)},xe=>{bt.destroy(xe),yF.nextTick(R,xe)});else if(dE(K,!0))_++,Vte(K,bt,R,{end:et});else if(cCe(K)||UO(K)){const xe=K.readable||K;_++,Vte(xe,bt,R,{end:et})}else throw new sCe("AsyncIterable or Promise","destination",K);K=bt;const{destroy:Be,cleanup:ae}=V5t(K,!1,!0);M.push(Be),mt&&w.push(ae)}}else if(W5t(X)){if(Tne(K)){_+=2;const bt=jyn(K,X,R,{end:et});lCe(X)&&mt&&w.push(bt)}else if(UO(K)||cCe(K)){const bt=K.readable||K;_++,Vte(bt,X,R,{end:et})}else if(dE(K))_++,Vte(K,X,R,{end:et});else throw new L7e("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],K);K=X}else if(Oyn(X)){if(Tne(K))_++,hCe(dCe(K),X,R,{end:et});else if(cCe(K)||dE(K))_++,hCe(K,X,R,{end:et});else if(UO(K))_++,hCe(K.readable,X,R,{end:et});else throw new L7e("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],K);K=X}else K=G5t.from(X)}return(p!=null&&p.aborted||g!=null&&g.aborted)&&yF.nextTick(y),K}function jyn(r,o,l,{end:a}){let p=!1;if(o.on("close",()=>{p||l(new Tyn)}),r.pipe(o,{end:!1}),a){let g=function(){p=!0,o.end()};_yn(r)?yF.nextTick(g):r.once("end",g)}else l();return ore(r,{readable:!0,writable:!1},g=>{const w=r._readableState;g&&g.code==="ERR_STREAM_PREMATURE_CLOSE"&&w&&w.ended&&!w.errored&&!w.errorEmitted?r.once("end",l).once("error",l):l(g)}),ore(o,{readable:!1,writable:!0},l)}var x9e={pipelineImpl:Nxt,pipeline:$yn};const{pipeline:Dyn}=x9e,qte=X6(),{destroyer:Nyn}=H_,{isNodeStream:Xte,isReadable:q5t,isWritable:X5t,isWebStream:pCe,isTransformStream:iE,isWritableStream:Y5t,isReadableStream:J5t}=sk,{AbortError:Byn,codes:{ERR_INVALID_ARG_VALUE:Q5t,ERR_MISSING_ARGS:Fyn}}=Yg,zyn=WC;var Bxt=function(...o){if(o.length===0)throw new Fyn("streams");if(o.length===1)return qte.from(o[0]);const l=[...o];if(typeof o[0]=="function"&&(o[0]=qte.from(o[0])),typeof o[o.length-1]=="function"){const R=o.length-1;o[R]=qte.from(o[R])}for(let R=0;R0&&!(X5t(o[R])||Y5t(o[R])||iE(o[R])))throw new Q5t(`streams[${R}]`,l[R],"must be writable")}let a,p,g,w,y;function S(R){const j=w;w=null,j?j(R):R?y.destroy(R):!_&&!M&&y.destroy()}const E=o[0],I=Dyn(o,S),M=!!(X5t(E)||Y5t(E)||iE(E)),_=!!(q5t(I)||J5t(I)||iE(I));if(y=new qte({writableObjectMode:!!(E!=null&&E.writableObjectMode),readableObjectMode:!!(I!=null&&I.readableObjectMode),writable:M,readable:_}),M){if(Xte(E))y._write=function(j,K,q){E.write(j,K)?q():a=q},y._final=function(j){E.end(),p=j},E.on("drain",function(){if(a){const j=a;a=null,j()}});else if(pCe(E)){const K=(iE(E)?E.writable:E).getWriter();y._write=async function(q,Q,Z){try{await K.ready,K.write(q).catch(()=>{}),Z()}catch(X){Z(X)}},y._final=async function(q){try{await K.ready,K.close().catch(()=>{}),p=q}catch(Q){q(Q)}}}const R=iE(I)?I.readable:I;zyn(R,()=>{if(p){const j=p;p=null,j()}})}if(_){if(Xte(I))I.on("readable",function(){if(g){const R=g;g=null,R()}}),I.on("end",function(){y.push(null)}),y._read=function(){for(;;){const R=I.read();if(R===null){g=y._read;return}if(!y.push(R))return}};else if(pCe(I)){const j=(iE(I)?I.readable:I).getReader();y._read=async function(){for(;;)try{const{value:K,done:q}=await j.read();if(!y.push(K))return;if(q){y.push(null);return}}catch{return}}}}return y._destroy=function(R,j){!R&&w!==null&&(R=new Byn),g=null,a=null,p=null,w===null?j(R):(w=j,Xte(I)&&Nyn(I,R))},y};const Hyn=globalThis.AbortController||xz().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Kyn,ERR_INVALID_ARG_TYPE:EH,ERR_MISSING_ARGS:Uyn,ERR_OUT_OF_RANGE:Gyn},AbortError:x3}=Yg,{validateAbortSignal:XE,validateInteger:Z5t,validateObject:YE}=SH,Wyn=qa.Symbol("kWeak"),Vyn=qa.Symbol("kResistStopPropagation"),{finished:qyn}=WC,Xyn=Bxt,{addAbortSignalNoValidate:Yyn}=lie,{isWritable:Jyn,isNodeStream:Qyn}=sk,{deprecate:Zyn}=Np,{ArrayPrototypePush:e2n,Boolean:t2n,MathFloor:e8t,Number:n2n,NumberIsNaN:r2n,Promise:t8t,PromiseReject:n8t,PromiseResolve:i2n,PromisePrototypeThen:r8t,Symbol:Fxt}=qa,sre=Fxt("kEmpty"),i8t=Fxt("kEof");function o2n(r,o){if(o!=null&&YE(o,"options"),(o==null?void 0:o.signal)!=null&&XE(o.signal,"options.signal"),Qyn(r)&&!Jyn(r))throw new Kyn("stream",r,"must be writable");const l=Xyn(this,r);return o!=null&&o.signal&&Yyn(o.signal,l),l}function aie(r,o){if(typeof r!="function")throw new EH("fn",["Function","AsyncFunction"],r);o!=null&&YE(o,"options"),(o==null?void 0:o.signal)!=null&&XE(o.signal,"options.signal");let l=1;(o==null?void 0:o.concurrency)!=null&&(l=e8t(o.concurrency));let a=l-1;return(o==null?void 0:o.highWaterMark)!=null&&(a=e8t(o.highWaterMark)),Z5t(l,"options.concurrency",1),Z5t(a,"options.highWaterMark",0),a+=l,(async function*(){const g=Np.AbortSignalAny([o==null?void 0:o.signal].filter(t2n)),w=this,y=[],S={signal:g};let E,I,M=!1,_=0;function R(){M=!0,j()}function j(){_-=1,K()}function K(){I&&!M&&_=a||_>=l)&&await new t8t(Z=>{I=Z})}y.push(i8t)}catch(Q){const Z=n8t(Q);r8t(Z,j,R),y.push(Z)}finally{M=!0,E&&(E(),E=null)}}q();try{for(;;){for(;y.length>0;){const Q=await y[0];if(Q===i8t)return;if(g.aborted)throw new x3;Q!==sre&&(yield Q),y.shift(),K()}await new t8t(Q=>{E=Q})}}finally{M=!0,I&&(I(),I=null)}}).call(this)}function s2n(r=void 0){return r!=null&&YE(r,"options"),(r==null?void 0:r.signal)!=null&&XE(r.signal,"options.signal"),(async function*(){let l=0;for await(const p of this){var a;if(r!=null&&(a=r.signal)!==null&&a!==void 0&&a.aborted)throw new x3({cause:r.signal.reason});yield[l++,p]}}).call(this)}async function zxt(r,o=void 0){for await(const l of E9e.call(this,r,o))return!0;return!1}async function l2n(r,o=void 0){if(typeof r!="function")throw new EH("fn",["Function","AsyncFunction"],r);return!await zxt.call(this,async(...l)=>!await r(...l),o)}async function c2n(r,o){for await(const l of E9e.call(this,r,o))return l}async function u2n(r,o){if(typeof r!="function")throw new EH("fn",["Function","AsyncFunction"],r);async function l(a,p){return await r(a,p),sre}for await(const a of aie.call(this,l,o));}function E9e(r,o){if(typeof r!="function")throw new EH("fn",["Function","AsyncFunction"],r);async function l(a,p){return await r(a,p)?a:sre}return aie.call(this,l,o)}class a2n extends Uyn{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function f2n(r,o,l){var a;if(typeof r!="function")throw new EH("reducer",["Function","AsyncFunction"],r);l!=null&&YE(l,"options"),(l==null?void 0:l.signal)!=null&&XE(l.signal,"options.signal");let p=arguments.length>1;if(l!=null&&(a=l.signal)!==null&&a!==void 0&&a.aborted){const E=new x3(void 0,{cause:l.signal.reason});throw this.once("error",()=>{}),await qyn(this.destroy(E)),E}const g=new Hyn,w=g.signal;if(l!=null&&l.signal){const E={once:!0,[Wyn]:this,[Vyn]:!0};l.signal.addEventListener("abort",()=>g.abort(),E)}let y=!1;try{for await(const E of this){var S;if(y=!0,l!=null&&(S=l.signal)!==null&&S!==void 0&&S.aborted)throw new x3;p?o=await r(o,E,{signal:w}):(o=E,p=!0)}if(!y&&!p)throw new a2n}finally{g.abort()}return o}async function d2n(r){r!=null&&YE(r,"options"),(r==null?void 0:r.signal)!=null&&XE(r.signal,"options.signal");const o=[];for await(const a of this){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new x3(void 0,{cause:r.signal.reason});e2n(o,a)}return o}function h2n(r,o){const l=aie.call(this,r,o);return(async function*(){for await(const p of l)yield*p}).call(this)}function Hxt(r){if(r=n2n(r),r2n(r))return 0;if(r<0)throw new Gyn("number",">= 0",r);return r}function p2n(r,o=void 0){return o!=null&&YE(o,"options"),(o==null?void 0:o.signal)!=null&&XE(o.signal,"options.signal"),r=Hxt(r),(async function*(){var a;if(o!=null&&(a=o.signal)!==null&&a!==void 0&&a.aborted)throw new x3;for await(const g of this){var p;if(o!=null&&(p=o.signal)!==null&&p!==void 0&&p.aborted)throw new x3;r--<=0&&(yield g)}}).call(this)}function g2n(r,o=void 0){return o!=null&&YE(o,"options"),(o==null?void 0:o.signal)!=null&&XE(o.signal,"options.signal"),r=Hxt(r),(async function*(){var a;if(o!=null&&(a=o.signal)!==null&&a!==void 0&&a.aborted)throw new x3;for await(const g of this){var p;if(o!=null&&(p=o.signal)!==null&&p!==void 0&&p.aborted)throw new x3;if(r-- >0&&(yield g),r<=0)return}}).call(this)}p9e.streamReturningOperators={asIndexedPairs:Zyn(s2n,"readable.asIndexedPairs will be removed in a future version."),drop:p2n,filter:E9e,flatMap:h2n,map:aie,take:g2n,compose:o2n};p9e.promiseReturningOperators={every:l2n,forEach:u2n,reduce:f2n,toArray:d2n,some:zxt,find:c2n};var gCe,o8t;function Kxt(){if(o8t)return gCe;o8t=1;const{ArrayPrototypePop:r,Promise:o}=qa,{isIterable:l,isNodeStream:a,isWebStream:p}=sk,{pipelineImpl:g}=x9e,{finished:w}=WC;Uxt();function y(...S){return new o((E,I)=>{let M,_;const R=S[S.length-1];if(R&&typeof R=="object"&&!a(R)&&!l(R)&&!p(R)){const j=r(S);M=j.signal,_=j.end}g(S,(j,K)=>{j?I(j):E(K)},{signal:M,end:_})})}return gCe={finished:w,pipeline:y},gCe}var s8t;function Uxt(){if(s8t)return Y8e.exports;s8t=1;const{Buffer:r}=dm,{ObjectDefineProperty:o,ObjectKeys:l,ReflectApply:a}=qa,{promisify:{custom:p}}=Np,{streamReturningOperators:g,promiseReturningOperators:w}=p9e,{codes:{ERR_ILLEGAL_CONSTRUCTOR:y}}=Yg,S=Bxt,{setDefaultHighWaterMark:E,getDefaultHighWaterMark:I}=cie,{pipeline:M}=x9e,{destroyer:_}=H_,R=WC,j=Kxt(),K=sk,q=Y8e.exports=v9e.Stream;q.isDestroyed=K.isDestroyed,q.isDisturbed=K.isDisturbed,q.isErrored=K.isErrored,q.isReadable=K.isReadable,q.isWritable=K.isWritable,q.Readable=uie();for(const Z of l(g)){let ie=function(...je){if(new.target)throw y();return q.Readable.from(a(X,this,je))};const X=g[Z];o(ie,"name",{__proto__:null,value:X.name}),o(ie,"length",{__proto__:null,value:X.length}),o(q.Readable.prototype,Z,{__proto__:null,value:ie,enumerable:!1,configurable:!0,writable:!0})}for(const Z of l(w)){let ie=function(...je){if(new.target)throw y();return a(X,this,je)};const X=w[Z];o(ie,"name",{__proto__:null,value:X.name}),o(ie,"length",{__proto__:null,value:X.length}),o(q.Readable.prototype,Z,{__proto__:null,value:ie,enumerable:!1,configurable:!0,writable:!0})}q.Writable=k9e(),q.Duplex=X6(),q.Transform=$xt,q.PassThrough=Dxt,q.pipeline=M;const{addAbortSignal:Q}=lie;return q.addAbortSignal=Q,q.finished=R,q.destroy=_,q.compose=S,q.setDefaultHighWaterMark=E,q.getDefaultHighWaterMark=I,o(q,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return j}}),o(M,p,{__proto__:null,enumerable:!0,get(){return j.pipeline}}),o(R,p,{__proto__:null,enumerable:!0,get(){return j.finished}}),q.Stream=q,q._isUint8Array=function(X){return X instanceof Uint8Array},q._uint8ArrayToBuffer=function(X){return r.from(X.buffer,X.byteOffset,X.byteLength)},Y8e.exports}(function(r){const o=Uxt(),l=Kxt(),a=o.Readable.destroy;r.exports=o.Readable,r.exports._uint8ArrayToBuffer=o._uint8ArrayToBuffer,r.exports._isUint8Array=o._isUint8Array,r.exports.isDisturbed=o.isDisturbed,r.exports.isErrored=o.isErrored,r.exports.isReadable=o.isReadable,r.exports.Readable=o.Readable,r.exports.Writable=o.Writable,r.exports.Duplex=o.Duplex,r.exports.Transform=o.Transform,r.exports.PassThrough=o.PassThrough,r.exports.addAbortSignal=o.addAbortSignal,r.exports.finished=o.finished,r.exports.destroy=o.destroy,r.exports.destroy=a,r.exports.pipeline=o.pipeline,r.exports.compose=o.compose,Object.defineProperty(o,"promises",{configurable:!0,enumerable:!0,get(){return l}}),r.exports.Stream=o.Stream,r.exports.default=r.exports})(z9t);var b2n=z9t.exports;class w2n{constructor(o,...l){this.load=F9t(async()=>{const a=await o();return new a(...l)})}import(o,l){const a=new b2n.PassThrough({objectMode:!0});return Promise.resolve().then(async()=>{const g=(await this.load()).import(o,l);g.on("prefix",(w,y)=>{a.emit("prefix",w,y)}),g.on("error",w=>{a.emit("error",w),a.emit("end")}),g.pipe(a)}),a}}function pm(r){return class extends w2n{constructor(...o){super(r,...o)}}}const m2n=new tre,v2n=new tre,wb={parsers:m2n,serializers:v2n},y2n=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./index-d5GvA7NS.js");return{default:r}},__vite__mapDeps([0,1,2,3,4]))).default),TH=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./index-jd32SyoQ.js");return{default:r}},__vite__mapDeps([5,1,2,6]))).default),k2n=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./CustomRdfXmlParser-BnFBQjMk.js");return{default:r}},__vite__mapDeps([7,3]))).default),fie=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./index-CpxM9Dlb.js");return{default:r}},__vite__mapDeps([8,1,2]))).default),C2n=pm(async()=>(await Xg(async()=>{const{default:r}=await import("./CustomJsonLdSerializer-DTZy0vPJ.js");return{default:r}},__vite__mapDeps([9,1]))).default);wb.parsers.set("application/ld+json",new y2n);wb.parsers.set("application/trig",new TH);wb.parsers.set("application/n-quads",new TH);wb.parsers.set("application/n-triples",new TH);wb.parsers.set("text/n3",new TH);wb.parsers.set("text/turtle",new TH);wb.parsers.set("application/rdf+xml",new k2n);wb.serializers.set("application/ld+json",new C2n);wb.serializers.set("application/n-quads",new fie);wb.serializers.set("application/n-triples",new fie);wb.serializers.set("text/n3",new fie);wb.serializers.set("text/turtle",new fie);var $7e={exports:{}},Gxt=F_.EventEmitter;const S2n={},x2n=Object.freeze(Object.defineProperty({__proto__:null,default:S2n},Symbol.toStringTag,{value:"Module"})),die=Rwn(x2n);var bCe,l8t;function E2n(){if(l8t)return bCe;l8t=1;function r(j,K){var q=Object.keys(j);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(j);K&&(Q=Q.filter(function(Z){return Object.getOwnPropertyDescriptor(j,Z).enumerable})),q.push.apply(q,Q)}return q}function o(j){for(var K=1;K0?this.tail.next=Q:this.head=Q,this.tail=Q,++this.length}},{key:"unshift",value:function(q){var Q={data:q,next:this.head};this.length===0&&(this.tail=Q),this.head=Q,++this.length}},{key:"shift",value:function(){if(this.length!==0){var q=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(q){if(this.length===0)return"";for(var Q=this.head,Z=""+Q.data;Q=Q.next;)Z+=q+Q.data;return Z}},{key:"concat",value:function(q){if(this.length===0)return E.alloc(0);for(var Q=E.allocUnsafe(q>>>0),Z=this.head,X=0;Z;)R(Z.data,Q,X),X+=Z.data.length,Z=Z.next;return Q}},{key:"consume",value:function(q,Q){var Z;return qie.length?ie.length:q;if(je===ie.length?X+=ie:X+=ie.slice(0,q),q-=je,q===0){je===ie.length?(++Z,Q.next?this.head=Q.next:this.head=this.tail=null):(this.head=Q,Q.data=ie.slice(je));break}++Z}return this.length-=Z,X}},{key:"_getBuffer",value:function(q){var Q=E.allocUnsafe(q),Z=this.head,X=1;for(Z.data.copy(Q),q-=Z.data.length;Z=Z.next;){var ie=Z.data,je=q>ie.length?ie.length:q;if(ie.copy(Q,Q.length-q,0,je),q-=je,q===0){je===ie.length?(++X,Z.next?this.head=Z.next:this.head=this.tail=null):(this.head=Z,Z.data=ie.slice(je));break}++X}return this.length-=X,Q}},{key:_,value:function(q,Q){return M(this,o(o({},Q),{},{depth:0,customInspect:!1}))}}]),j}(),bCe}function T2n(r,o){var l=this,a=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return a||p?(o?o(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Uc.nextTick(j7e,this,r)):Uc.nextTick(j7e,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(g){!o&&g?l._writableState?l._writableState.errorEmitted?Uc.nextTick(Ine,l):(l._writableState.errorEmitted=!0,Uc.nextTick(c8t,l,g)):Uc.nextTick(c8t,l,g):o?(Uc.nextTick(Ine,l),o(g)):Uc.nextTick(Ine,l)}),this)}function c8t(r,o){j7e(r,o),Ine(r)}function Ine(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function I2n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function j7e(r,o){r.emit("error",o)}function P2n(r,o){var l=r._readableState,a=r._writableState;l&&l.autoDestroy||a&&a.autoDestroy?r.destroy(o):r.emit("error",o)}var Wxt={destroy:T2n,undestroy:I2n,errorOrDestroy:P2n},JE={};function M2n(r,o){r.prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o}var Vxt={};function gm(r,o,l){l||(l=Error);function a(g,w,y){return typeof o=="string"?o:o(g,w,y)}var p=function(g){M2n(w,g);function w(y,S,E){return g.call(this,a(y,S,E))||this}return w}(l);p.prototype.name=l.name,p.prototype.code=r,Vxt[r]=p}function u8t(r,o){if(Array.isArray(r)){var l=r.length;return r=r.map(function(a){return String(a)}),l>2?"one of ".concat(o," ").concat(r.slice(0,l-1).join(", "),", or ")+r[l-1]:l===2?"one of ".concat(o," ").concat(r[0]," or ").concat(r[1]):"of ".concat(o," ").concat(r[0])}else return"of ".concat(o," ").concat(String(r))}function O2n(r,o,l){return r.substr(0,o.length)===o}function _2n(r,o,l){return(l===void 0||l>r.length)&&(l=r.length),r.substring(l-o.length,l)===o}function R2n(r,o,l){return typeof l!="number"&&(l=0),l+o.length>r.length?!1:r.indexOf(o,l)!==-1}gm("ERR_INVALID_OPT_VALUE",function(r,o){return'The value "'+o+'" is invalid for option "'+r+'"'},TypeError);gm("ERR_INVALID_ARG_TYPE",function(r,o,l){var a;typeof o=="string"&&O2n(o,"not ")?(a="must not be",o=o.replace(/^not /,"")):a="must be";var p;if(_2n(r," argument"))p="The ".concat(r," ").concat(a," ").concat(u8t(o,"type"));else{var g=R2n(r,".")?"property":"argument";p='The "'.concat(r,'" ').concat(g," ").concat(a," ").concat(u8t(o,"type"))}return p+=". Received type ".concat(typeof l),p},TypeError);gm("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");gm("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});gm("ERR_STREAM_PREMATURE_CLOSE","Premature close");gm("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});gm("ERR_MULTIPLE_CALLBACK","Callback called multiple times");gm("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");gm("ERR_STREAM_WRITE_AFTER_END","write after end");gm("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);gm("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);gm("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");JE.codes=Vxt;var A2n=JE.codes.ERR_INVALID_OPT_VALUE;function L2n(r,o,l){return r.highWaterMark!=null?r.highWaterMark:o?r[l]:null}function $2n(r,o,l,a){var p=L2n(o,a,l);if(p!=null){if(!(isFinite(p)&&Math.floor(p)===p)||p<0){var g=a?l:"highWaterMark";throw new A2n(g,p)}return Math.floor(p)}return r.objectMode?16:16*1024}var qxt={getHighWaterMark:$2n},D7e={exports:{}};typeof Object.create=="function"?D7e.exports=function(o,l){l&&(o.super_=l,o.prototype=Object.create(l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:D7e.exports=function(o,l){if(l){o.super_=l;var a=function(){};a.prototype=l.prototype,o.prototype=new a,o.prototype.constructor=o}};var IH=D7e.exports,j2n=D2n;function D2n(r,o){if(wCe("noDeprecation"))return r;var l=!1;function a(){if(!l){if(wCe("throwDeprecation"))throw new Error(o);wCe("traceDeprecation")?console.trace(o):console.warn(o),l=!0}return r.apply(this,arguments)}return a}function wCe(r){try{if(!window.localStorage)return!1}catch{return!1}var o=window.localStorage[r];return o==null?!1:String(o).toLowerCase()==="true"}var mCe,a8t;function Xxt(){if(a8t)return mCe;a8t=1,mCe=bt;function r(kt){var Ze=this;this.next=null,this.entry=null,this.finish=function(){Zn(Ze,kt)}}var o;bt.WritableState=et;var l={deprecate:j2n},a=Gxt,p=dm.Buffer,g=(typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function w(kt){return p.from(kt)}function y(kt){return p.isBuffer(kt)||kt instanceof g}var S=Wxt,E=qxt,I=E.getHighWaterMark,M=JE.codes,_=M.ERR_INVALID_ARG_TYPE,R=M.ERR_METHOD_NOT_IMPLEMENTED,j=M.ERR_MULTIPLE_CALLBACK,K=M.ERR_STREAM_CANNOT_PIPE,q=M.ERR_STREAM_DESTROYED,Q=M.ERR_STREAM_NULL_VALUES,Z=M.ERR_STREAM_WRITE_AFTER_END,X=M.ERR_UNKNOWN_ENCODING,ie=S.errorOrDestroy;IH(bt,a);function je(){}function et(kt,Ze,Xt){o=o||x_(),kt=kt||{},typeof Xt!="boolean"&&(Xt=Ze instanceof o),this.objectMode=!!kt.objectMode,Xt&&(this.objectMode=this.objectMode||!!kt.writableObjectMode),this.highWaterMark=I(this,kt,"writableHighWaterMark",Xt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Mn=kt.decodeStrings===!1;this.decodeStrings=!Mn,this.defaultEncoding=kt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(pr){ft(Ze,pr)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=kt.emitClose!==!1,this.autoDestroy=!!kt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}et.prototype.getBuffer=function(){for(var Ze=this.bufferedRequest,Xt=[];Ze;)Xt.push(Ze),Ze=Ze.next;return Xt},function(){try{Object.defineProperty(et.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var mt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(mt=Function.prototype[Symbol.hasInstance],Object.defineProperty(bt,Symbol.hasInstance,{value:function(Ze){return mt.call(this,Ze)?!0:this!==bt?!1:Ze&&Ze._writableState instanceof et}})):mt=function(Ze){return Ze instanceof this};function bt(kt){o=o||x_();var Ze=this instanceof o;if(!Ze&&!mt.call(bt,this))return new bt(kt);this._writableState=new et(kt,this,Ze),this.writable=!0,kt&&(typeof kt.write=="function"&&(this._write=kt.write),typeof kt.writev=="function"&&(this._writev=kt.writev),typeof kt.destroy=="function"&&(this._destroy=kt.destroy),typeof kt.final=="function"&&(this._final=kt.final)),a.call(this)}bt.prototype.pipe=function(){ie(this,new K)};function ce(kt,Ze){var Xt=new Z;ie(kt,Xt),Uc.nextTick(Ze,Xt)}function Be(kt,Ze,Xt,Mn){var pr;return Xt===null?pr=new Q:typeof Xt!="string"&&!Ze.objectMode&&(pr=new _("chunk",["string","Buffer"],Xt)),pr?(ie(kt,pr),Uc.nextTick(Mn,pr),!1):!0}bt.prototype.write=function(kt,Ze,Xt){var Mn=this._writableState,pr=!1,ye=!Mn.objectMode&&y(kt);return ye&&!p.isBuffer(kt)&&(kt=w(kt)),typeof Ze=="function"&&(Xt=Ze,Ze=null),ye?Ze="buffer":Ze||(Ze=Mn.defaultEncoding),typeof Xt!="function"&&(Xt=je),Mn.ending?ce(this,Xt):(ye||Be(this,Mn,kt,Xt))&&(Mn.pendingcb++,pr=xe(this,Mn,ye,kt,Ze,Xt)),pr},bt.prototype.cork=function(){this._writableState.corked++},bt.prototype.uncork=function(){var kt=this._writableState;kt.corked&&(kt.corked--,!kt.writing&&!kt.corked&&!kt.bufferProcessing&&kt.bufferedRequest&&un(this,kt))},bt.prototype.setDefaultEncoding=function(Ze){if(typeof Ze=="string"&&(Ze=Ze.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ze+"").toLowerCase())>-1))throw new X(Ze);return this._writableState.defaultEncoding=Ze,this},Object.defineProperty(bt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ae(kt,Ze,Xt){return!kt.objectMode&&kt.decodeStrings!==!1&&typeof Ze=="string"&&(Ze=p.from(Ze,Xt)),Ze}Object.defineProperty(bt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function xe(kt,Ze,Xt,Mn,pr,ye){if(!Xt){var Ce=ae(Ze,Mn,pr);Mn!==Ce&&(Xt=!0,pr="buffer",Mn=Ce)}var ee=Ze.objectMode?1:Mn.length;Ze.length+=ee;var V=Ze.length0)if(typeof Ce!="string"&&!ue.objectMode&&Object.getPrototypeOf(Ce)!==a.prototype&&(Ce=g(Ce)),V)ue.endEmitted?je(ye,new Q):ae(ye,ue,Ce,!0);else if(ue.ended)je(ye,new K);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!ee?(Ce=ue.decoder.write(Ce),ue.objectMode||Ce.length!==0?ae(ye,ue,Ce,!1):un(ye,ue)):ae(ye,ue,Ce,!1)}else V||(ue.reading=!1,un(ye,ue))}return!ue.ended&&(ue.length=U?ye=U:(ye--,ye|=ye>>>1,ye|=ye>>>2,ye|=ye>>>4,ye|=ye>>>8,ye|=ye>>>16,ye++),ye}function yt(ye,Ce){return ye<=0||Ce.length===0&&Ce.ended?0:Ce.objectMode?1:ye!==ye?Ce.flowing&&Ce.length?Ce.buffer.head.data.length:Ce.length:(ye>Ce.highWaterMark&&(Ce.highWaterMark=He(ye)),ye<=Ce.length?ye:Ce.ended?Ce.length:(Ce.needReadable=!0,0))}ce.prototype.read=function(ye){S("read",ye),ye=parseInt(ye,10);var Ce=this._readableState,ee=ye;if(ye!==0&&(Ce.emittedReadable=!1),ye===0&&Ce.needReadable&&((Ce.highWaterMark!==0?Ce.length>=Ce.highWaterMark:Ce.length>0)||Ce.ended))return S("read: emitReadable",Ce.length,Ce.ended),Ce.length===0&&Ce.ended?Xt(this):At(this),null;if(ye=yt(ye,Ce),ye===0&&Ce.ended)return Ce.length===0&&Xt(this),null;var V=Ce.needReadable;S("need readable",V),(Ce.length===0||Ce.length-ye0?oe=Ze(ye,Ce):oe=null,oe===null?(Ce.needReadable=Ce.length<=Ce.highWaterMark,ye=0):(Ce.length-=ye,Ce.awaitDrain=0),Ce.length===0&&(Ce.ended||(Ce.needReadable=!0),ee!==ye&&Ce.ended&&Xt(this)),oe!==null&&this.emit("data",oe),oe};function ft(ye,Ce){if(S("onEofChunk"),!Ce.ended){if(Ce.decoder){var ee=Ce.decoder.end();ee&&ee.length&&(Ce.buffer.push(ee),Ce.length+=Ce.objectMode?1:ee.length)}Ce.ended=!0,Ce.sync?At(ye):(Ce.needReadable=!1,Ce.emittedReadable||(Ce.emittedReadable=!0,Jt(ye)))}}function At(ye){var Ce=ye._readableState;S("emitReadable",Ce.needReadable,Ce.emittedReadable),Ce.needReadable=!1,Ce.emittedReadable||(S("emitReadable",Ce.flowing),Ce.emittedReadable=!0,Uc.nextTick(Jt,ye))}function Jt(ye){var Ce=ye._readableState;S("emitReadable_",Ce.destroyed,Ce.length,Ce.ended),!Ce.destroyed&&(Ce.length||Ce.ended)&&(ye.emit("readable"),Ce.emittedReadable=!1),Ce.needReadable=!Ce.flowing&&!Ce.ended&&Ce.length<=Ce.highWaterMark,kt(ye)}function un(ye,Ce){Ce.readingMore||(Ce.readingMore=!0,Uc.nextTick(kn,ye,Ce))}function kn(ye,Ce){for(;!Ce.reading&&!Ce.ended&&(Ce.length1&&pr(V.pipes,ye)!==-1)&&!Lt&&(S("false write response, pause",V.awaitDrain),V.awaitDrain++),ee.pause())}function Kn(de){S("onerror",de),br(),ye.removeListener("error",Kn),o(ye,"error")===0&&je(ye,de)}mt(ye,"error",Kn);function dn(){ye.removeListener("finish",Rn),br()}ye.once("close",dn);function Rn(){S("onfinish"),ye.removeListener("close",dn),br()}ye.once("finish",Rn);function br(){S("unpipe"),ee.unpipe(ye)}return ye.emit("pipe",ee),V.flowing||(S("pipe resume"),ee.resume()),ye};function qt(ye){return function(){var ee=ye._readableState;S("pipeOnDrain",ee.awaitDrain),ee.awaitDrain&&ee.awaitDrain--,ee.awaitDrain===0&&o(ye,"data")&&(ee.flowing=!0,kt(ye))}}ce.prototype.unpipe=function(ye){var Ce=this._readableState,ee={hasUnpiped:!1};if(Ce.pipesCount===0)return this;if(Ce.pipesCount===1)return ye&&ye!==Ce.pipes?this:(ye||(ye=Ce.pipes),Ce.pipes=null,Ce.pipesCount=0,Ce.flowing=!1,ye&&ye.emit("unpipe",this,ee),this);if(!ye){var V=Ce.pipes,oe=Ce.pipesCount;Ce.pipes=null,Ce.pipesCount=0,Ce.flowing=!1;for(var ue=0;ue0,V.flowing!==!1&&this.resume()):ye==="readable"&&!V.endEmitted&&!V.readableListening&&(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,S("on readable",V.length,V.reading),V.length?At(this):V.reading||Uc.nextTick(Rt,this)),ee},ce.prototype.addListener=ce.prototype.on,ce.prototype.removeListener=function(ye,Ce){var ee=l.prototype.removeListener.call(this,ye,Ce);return ye==="readable"&&Uc.nextTick(on,this),ee},ce.prototype.removeAllListeners=function(ye){var Ce=l.prototype.removeAllListeners.apply(this,arguments);return(ye==="readable"||ye===void 0)&&Uc.nextTick(on,this),Ce};function on(ye){var Ce=ye._readableState;Ce.readableListening=ye.listenerCount("readable")>0,Ce.resumeScheduled&&!Ce.paused?Ce.flowing=!0:ye.listenerCount("data")>0&&ye.resume()}function Rt(ye){S("readable nexttick read 0"),ye.read(0)}ce.prototype.resume=function(){var ye=this._readableState;return ye.flowing||(S("resume"),ye.flowing=!ye.readableListening,an(this,ye)),ye.paused=!1,this};function an(ye,Ce){Ce.resumeScheduled||(Ce.resumeScheduled=!0,Uc.nextTick(Zn,ye,Ce))}function Zn(ye,Ce){S("resume",Ce.reading),Ce.reading||ye.read(0),Ce.resumeScheduled=!1,ye.emit("resume"),kt(ye),Ce.flowing&&!Ce.reading&&ye.read(0)}ce.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function kt(ye){var Ce=ye._readableState;for(S("flow",Ce.flowing);Ce.flowing&&ye.read()!==null;);}ce.prototype.wrap=function(ye){var Ce=this,ee=this._readableState,V=!1;ye.on("end",function(){if(S("wrapped end"),ee.decoder&&!ee.ended){var ge=ee.decoder.end();ge&&ge.length&&Ce.push(ge)}Ce.push(null)}),ye.on("data",function(ge){if(S("wrapped data"),ee.decoder&&(ge=ee.decoder.write(ge)),!(ee.objectMode&&ge==null)&&!(!ee.objectMode&&(!ge||!ge.length))){var Ge=Ce.push(ge);Ge||(V=!0,ye.pause())}});for(var oe in ye)this[oe]===void 0&&typeof ye[oe]=="function"&&(this[oe]=function(Ge){return function(){return ye[Ge].apply(ye,arguments)}}(oe));for(var ue=0;ue=Ce.length?(Ce.decoder?ee=Ce.buffer.join(""):Ce.buffer.length===1?ee=Ce.buffer.first():ee=Ce.buffer.concat(Ce.length),Ce.buffer.clear()):ee=Ce.buffer.consume(ye,Ce.decoder),ee}function Xt(ye){var Ce=ye._readableState;S("endReadable",Ce.endEmitted),Ce.endEmitted||(Ce.ended=!0,Uc.nextTick(Mn,Ce,ye))}function Mn(ye,Ce){if(S("endReadableNT",ye.endEmitted,ye.length),!ye.endEmitted&&ye.length===0&&(ye.endEmitted=!0,Ce.readable=!1,Ce.emit("end"),ye.autoDestroy)){var ee=Ce._writableState;(!ee||ee.autoDestroy&&ee.finished)&&Ce.destroy()}}typeof Symbol=="function"&&(ce.from=function(ye,Ce){return ie===void 0&&(ie=H2n()),ie(ce,ye,Ce)});function pr(ye,Ce){for(var ee=0,V=ye.length;ee0;return e3n(w,S,E,function(I){p||(p=I),I&&g.forEach(m8t),!S&&(g.forEach(m8t),a(p))})});return o.reduce(t3n)}var i3n=r3n;(function(r,o){o=r.exports=Jxt(),o.Stream=o,o.Readable=o,o.Writable=Xxt(),o.Duplex=x_(),o.Transform=Qxt,o.PassThrough=X2n,o.finished=T9e,o.pipeline=i3n})($7e,$7e.exports);var I9e=$7e.exports;const o3n=_3(I9e);class tEt{init(){this.ns=Kne}}const s3n=new CH,l3n={apply:(r,o,l)=>r(l[0]),get:(r,o)=>r(o)};function Gn(r,{factory:o=s3n}={}){const l=(a="")=>o.namedNode(`${r}${a.raw||a}`);return typeof Proxy>"u"?l:new Proxy(l,l3n)}const c3n=Gn("http://www.w3.org/ns/auth/acl#"),u3n=c3n,a3n=Gn("https://www.w3.org/ns/activitystreams#"),f3n=a3n,d3n=Gn("http://purl.org/ontology/bibo/"),h3n=d3n,p3n=Gn("http://creativecommons.org/ns#"),g3n=p3n,b3n=Gn("http://www.w3.org/ns/auth/cert#"),w3n=b3n,m3n=Gn("http://www.w3.org/2011/content#"),v3n=m3n,y3n=Gn("http://qudt.org/vocab/constant/"),k3n=y3n,C3n=Gn("http://www.cidoc-crm.org/cidoc-crm/"),S3n=C3n,x3n=Gn("http://www.w3.org/ns/csvw#"),E3n=x3n,T3n=Gn("http://commontag.org/ns#"),I3n=T3n,P3n=Gn("http://datashapes.org/sparql#"),M3n=P3n,O3n=Gn("http://datashapes.org/dash#"),_3n=O3n,R3n=Gn("http://dbpedia.org/ontology/"),A3n=R3n,L3n=Gn("http://purl.org/dc/elements/1.1/"),$3n=L3n,j3n=Gn("http://purl.org/dc/dcam/"),D3n=j3n,N3n=Gn("http://www.w3.org/ns/dcat#"),B3n=N3n,F3n=Gn("http://purl.org/dc/dcmitype/"),z3n=F3n,H3n=Gn("http://purl.org/dc/terms/"),K3n=H3n,U3n=Gn("http://www.ics.forth.gr/isl/CRMdig/"),G3n=U3n,W3n=Gn("http://qudt.org/vocab/discipline/"),V3n=W3n,q3n=Gn("http://usefulinc.com/ns/doap#"),X3n=q3n,Y3n=Gn("http://www.w3.org/ns/dpv#"),J3n=Y3n,Q3n=Gn("http://www.w3.org/ns/dqv#"),Z3n=Q3n,e4n=Gn("http://www.linkedmodel.org/schema/dtype#"),t4n=e4n,n4n=Gn("http://www.w3.org/ns/duv#"),r4n=n4n,i4n=Gn("http://www.w3.org/ns/earl#"),o4n=i4n,s4n=Gn("http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#"),l4n=s4n,c4n=Gn("http://www.w3.org/2003/12/exif/ns#"),u4n=c4n,a4n=Gn("http://xmlns.com/foaf/0.1/"),f4n=a4n,d4n=Gn("http://purl.org/vocab/frbr/core#"),h4n=d4n,p4n=Gn("http://www.opengis.net/ont/geosparql#"),g4n=p4n,b4n=Gn("http://www.opengis.net/def/function/geosparql/"),w4n=b4n,m4n=Gn("http://www.opengis.net/def/rule/geosparql/"),v4n=m4n,y4n=Gn("http://www.opengis.net/ont/gml#"),k4n=y4n,C4n=Gn("http://www.geonames.org/ontology#"),S4n=C4n,x4n=Gn("http://purl.org/goodrelations/v1#"),E4n=x4n,T4n=Gn("http://www.w3.org/2003/g/data-view#"),I4n=T4n,P4n=Gn("https://gs1.org/voc/"),M4n=P4n,O4n=Gn("http://vocab.gtfs.org/terms#"),_4n=O4n,R4n=Gn("http://www.w3.org/2011/http#"),A4n=R4n,L4n=Gn("http://www.w3.org/ns/hydra/core#"),$4n=L4n,j4n=Gn("http://www.w3.org/2002/12/cal/icaltzd#"),D4n=j4n,N4n=Gn("https://linked.art/ns/terms/"),B4n=N4n,F4n=Gn("http://www.w3.org/ns/ldp#"),z4n=F4n,H4n=Gn("http://www.w3.org/2000/10/swap/list#"),K4n=H4n,U4n=Gn("http://www.w3.org/ns/locn#"),G4n=U4n,W4n=Gn("http://www.w3.org/2000/10/swap/log#"),V4n=W4n,q4n=Gn("http://lexvo.org/ontology#"),X4n=q4n,Y4n=Gn("http://w3id.org/nfdi4ing/metadata4ing#"),J4n=Y4n,Q4n=Gn("http://www.w3.org/ns/ma-ont#"),Z4n=Q4n,e6n=Gn("http://www.loc.gov/mads/rdf/v1#"),t6n=e6n,n6n=Gn("http://www.w3.org/2000/10/swap/math#"),r6n=n6n,i6n=Gn("http://www.w3.org/ns/oa#"),o6n=i6n,s6n=Gn("http://ogp.me/ns#"),l6n=s6n,c6n=Gn("http://www.w3.org/ns/solid/oidc#"),u6n=c6n,a6n=Gn("http://www.w3.org/ns/org#"),f6n=a6n,d6n=Gn("http://www.w3.org/2002/07/owl#"),h6n=d6n,p6n=Gn("http://www.w3.org/ns/pim/space#"),g6n=p6n,b6n=Gn("http://qudt.org/vocab/prefix/"),w6n=b6n,m6n=Gn("http://www.w3.org/ns/prov#"),v6n=m6n,y6n=Gn("http://purl.org/linked-data/cube#"),k6n=y6n,C6n=Gn("http://qudt.org/vocab/dimensionvector/"),S6n=C6n,x6n=Gn("http://qudt.org/vocab/quantitykind/"),E6n=x6n,T6n=Gn("http://qudt.org/schema/qudt/"),I6n=T6n,P6n=Gn("http://rdaregistry.info/Elements/u/"),M6n=P6n,O6n=Gn("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),Zv=O6n,_6n=Gn("http://www.w3.org/ns/rdfa#"),R6n=_6n,A6n=Gn("http://www.w3.org/2000/01/rdf-schema#"),L6n=A6n,$6n=Gn("http://purl.org/stuff/rev#"),j6n=$6n,D6n=Gn("https://www.ica.org/standards/RiC/ontology#"),N6n=D6n,B6n=Gn("http://www.w3.org/ns/r2rml#"),F6n=B6n,z6n=Gn("http://purl.org/rss/1.0/"),H6n=z6n,K6n=Gn("http://schema.org/"),U6n=K6n,G6n=Gn("http://www.w3.org/ns/sparql-service-description#"),W6n=G6n,V6n=Gn("http://purl.org/linked-data/sdmx#"),q6n=V6n,X6n=Gn("http://semanticweb.cs.vu.nl/2009/11/sem/"),Y6n=X6n,J6n=Gn("http://www.w3.org/2000/10/swap/set#"),Q6n=J6n,Z6n=Gn("http://www.opengis.net/ont/sf#"),ekn=Z6n,tkn=Gn("http://www.w3.org/ns/shacl#"),nkn=tkn,rkn=Gn("http://www.w3.org/ns/shex#"),ikn=rkn,okn=Gn("https://www.w3.org/ns/shacl-shacl#"),skn=okn,lkn=Gn("http://rdfs.org/sioc/ns#"),ckn=lkn,ukn=Gn("http://www.w3.org/2004/02/skos/core#"),akn=ukn,fkn=Gn("http://www.w3.org/2008/05/skos-xl#"),dkn=fkn,hkn=Gn("http://www.w3.org/ns/solid/terms#"),pkn=hkn,gkn=Gn("http://www.w3.org/ns/sosa/"),bkn=gkn,wkn=Gn("http://qudt.org/vocab/sou/"),mkn=wkn,vkn=Gn("http://www.w3.org/ns/ssn/"),ykn=vkn,kkn=Gn("http://www.w3.org/ns/posix/stat#"),Ckn=kkn,Skn=Gn("http://www.w3.org/2000/10/swap/string#"),xkn=Skn,Ekn=Gn("http://www.w3.org/2006/03/test-description#"),Tkn=Ekn,Ikn=Gn("http://www.w3.org/2006/time#"),Pkn=Ikn,Mkn=Gn("http://qudt.org/vocab/unit/"),Okn=Mkn,_kn=Gn("http://www.linkedmodel.org/schema/vaem#"),Rkn=_kn,Akn=Gn("http://purl.org/vocab/vann/"),Lkn=Akn,$kn=Gn("http://www.w3.org/2006/vcard/ns#"),jkn=$kn,Dkn=Gn("http://rdfs.org/ns/void#"),Nkn=Dkn,Bkn=Gn("http://www.w3.org/2003/06/sw-vocab-status/ns#"),Fkn=Bkn,zkn=Gn("http://www.w3.org/2007/05/powder-s#"),Hkn=zkn,Kkn=Gn("http://www.w3.org/2003/01/geo/wgs84_pos#"),Ukn=Kkn,Gkn=Gn("http://www.w3.org/1999/xhtml/vocab#"),Wkn=Gkn,Vkn=Gn("http://rdf-vocabulary.ddialliance.org/xkos#"),qkn=Vkn,Xkn=Gn("http://www.w3.org/2001/XMLSchema#"),FF=Xkn,Ykn=Gn("http://www.w3.org/2007/rif#"),Jkn=Ykn,Qkn=Gn("http://rdf.data-vocabulary.org/#"),Zkn=Qkn,e5n=Gn("http://www.w3.org/2007/05/powder#"),t5n=e5n,n5n=Gn("http://www.w3.org/XML/1998/namespace/"),r5n=n5n;function i5n(r){return"_:"+r.value}function o5n(r,o){return[...r].map(l=>o(l)).join(` -`)+` -`}function s5n(){return""}function nEt(r){return"<"+r.value+">"}const l5n=/["\\\\\n\r]/,c5n=/["\\\\\n\r]/g,u5n={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function a5n(r){return u5n[r]}function f5n(r){return l5n.test(r)?r.replace(c5n,a5n):r}function d5n(r){const o=f5n(r.value);return r.datatype.value==="http://www.w3.org/2001/XMLSchema#string"?'"'+o+'"':r.datatype.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?'"'+o+'"@'+r.language:'"'+o+'"^^'+nEt(r.datatype)}function h5n(r,o){const l=o(r.subject),a=o(r.predicate),p=o(r.object),g=o(r.graph);return`${l} ${a} ${p} ${g?g+" ":""}.`}function p5n(r){return"?"+r.value}function w3(r){if(!r)return null;if(r.termType==="BlankNode")return i5n(r);if(r.termType==="DefaultGraph")return s5n();if(r.termType==="Literal")return d5n(r);if(r.termType==="NamedNode")return nEt(r);if(r.termType==="Quad"||r.subject&&r.predicate&&r.object&&r.graph)return h5n(r,w3);if(r.termType==="Variable")return p5n(r);if(r[Symbol.iterator])return o5n(r,w3);throw new Error(`unknown termType ${r.termType}`)}class kF{constructor(o){if(this.index=new Map,o)for(const[l,a]of o)this.set(l,a)}get size(){return this.index.size}clear(){this.index.clear()}delete(o){return this.index.delete(w3(o))}*entries(){for(const[,{term:o,value:l}]of this.index)yield[o,l]}forEach(o,l){for(const a of this.entries())o.call(l,a[1],a[0],this)}get(o){const l=this.index.get(w3(o));return l&&l.value}has(o){return this.index.has(w3(o))}*keys(){for(const[,{term:o}]of this.index)yield o}set(o,l){const a=w3(o);return this.index.set(a,{term:o,value:l}),this}*values(){for(const[,{value:o}]of this.index)yield o}[Symbol.iterator](){return this.entries()[Symbol.iterator]()}}var rEt={exports:{}};const g5n=die,b5n=/([\x00-\x20<>"{}|^`\\]|%(?![0-9A-F][0-9A-F]))/g,w5n=(r,o)=>{let l=o.codePointAt(0).toString(16)+"";return l.length>4?"\\U"+l.padStart(8,"0"):"\\u"+l.padStart(4,"0")},lre=r=>r.replace(b5n,w5n),P9e=/^(?:[\u0000-@[-`{-\u00bf\u00d7\u00f7\u0300-\u306f\u037e\u2000-\u200b\u200e-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].+|(?:.+?[\u0000-,\/:-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].*)|.+\.)$/,iEt=/^(?:\\|[\u0000-\/;-@[-^`{-\u00bf\u00d7\u00f7\u0300-\u306f\u037e\u2000-\u200b\u200e-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].+|(?:.+?(?:\\|[\u0000-,\/;-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff]).+)|(?:.+?(?:\\|[\u0000-,.\/;-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff])))$/,m5n=/^([Tt](rue)?|TRUE)$/,v5n=/^([Ff](alse)?|FALSE)$/,y5n="xxxxxxxx_xxxx_4xxx_yxxx_xxxxxxxxxxxx",k5n=/[xy]/g,CF=()=>{let r=Date.now();return typeof performance<"u"&&(r+=performance.now()),y5n.replace(k5n,o=>{let l=(r+Math.random()*16)%16|0;return r=Math.floor(r/16),(o==="x"?l:l&3|8).toString(16)})},gie=Symbol("prefix-cache"),C5n=/[$^*()+[\\{}|.?]/g,S5n="((?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\u{1fff}\\u{200c}-\\u{200d}\\u{2070}-\\u{218f}\\u{2c00}-\\u{2fef}\\u{3001}-\\u{d7ff}\\u{f900}-\\u{fdcf}\\u{fdf0}-\\u{fffd}\\u{10000}-\\u{effff}_:0-9]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%])(?:(?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\u{1fff}\\u{200c}-\\u{200d}\\u{2070}-\\u{218f}\\u{2c00}-\\u{2fef}\\u{3001}-\\u{d7ff}\\u{f900}-\\u{fdcf}\\u{fdf0}-\\u{fffd}\\u{10000}-\\u{effff}_\\-0-9\\xb7\\u{0300}-\\u{036f}\\u{203f}-\\u{2040}.:]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%])*(?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\u{1fff}\\u{200c}-\\u{200d}\\u{2070}-\\u{218f}\\u{2c00}-\\u{2fef}\\u{3001}-\\u{d7ff}\\u{f900}-\\u{fdcf}\\u{fdf0}-\\u{fffd}\\u{10000}-\\u{effff}_\\-0-9\\xb7\\u{0300}-\\u{036f}\\u{203f}-\\u{2040}:]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%]))?)$";function v8t(r,o=!1){let l=[],a={};for(let p in r){let g=r[p];o&&P9e.test(p)||(a[g]=p,l.push(g.replace(C5n,"\\$&")))}return l.length?(r[gie]={_r_iris:new RegExp(`^(${l.join("|")})${S5n}`,"u"),_h_inverse:a},Object.freeze(r)):r}const oEt=(r,o)=>{let l=o[gie];if(l){let a=l._r_iris.exec(r);if(a)return l._h_inverse[a[1]]+":"+a[2]}else{let a="",p="",g=-1;for(let w in o){let y=o[w];if(r.indexOf(y)===0&&y.length>g&&!P9e.test(w)){let S=r.slice(y.length);iEt.test(S)||(p=S,a=w,g=y.length)}}if(g!==-1)return a+":"+p}return"<"+r+">"},PH=(r,o={})=>{let l=o[gie];if(l){let a=l._r_iris.exec(r);if(a)return l._h_inverse[a[1]]+":"+a[2]}else{let a="",p=-1;for(let g in o){let w=o[g];r.startsWith(w)&&w.length>p&&(a=g,p=w.length)}if(p!==-1)return a+":"+r.slice(p)}return">"+r},x5n=/^([^:]*):(.*)$/;function sEt(r,o={},l=!1){switch(r[0]){case">":return"<"+r.slice(1)+">";case"_":return r.length<=2||r[2]==="#"?new Tz()[l?"verbose":"terse"]():r;case'"':return JSON.stringify(r.slice(1));case"@":{let a=r.indexOf('"');return JSON.stringify(r.slice(a+1))+r.slice(0,a)}case"^":{let a=r.indexOf('"');return JSON.stringify(r.slice(a+1))+"^^"+sEt(r.slice(1,a),o,l)}case"*":return"";case"<":case"`":return Qo.c1(r).terse(o);default:{if(r==="a")return l?"":"a";let[,a,p]=x5n.exec(r);return l||iEt.test(p)||P9e.test(a)?"<"+o[a]+p+">":r}}}class VC{valueOf(){return this.concise()}toString(){return this.concise()}equals(o){return o?this===o||o.termType===this.termType&&o.value===this.value:!1}}Object.assign(VC.prototype,{isGraphyTerm:!0});class Id extends VC{constructor(o){super(),this.value=o}concise(o={}){return PH(this.value,o)}terse(o={},l=!1){return oEt(lre(this.value),o)}verbose(){return"<"+lre(this.value)+">"}isolate(){return{termType:"NamedNode",value:this.value}}}Object.assign(Id.prototype,{termType:"NamedNode",isNamedNode:!0});const N7e=new Id("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");N7e.isRdfTypeAlias=!0;const lEt=new Id("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),E5n=lEt.isolate(),T5n=new Id("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),y8t=new Id("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),I5n=new Id("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"),P5n=new Id("http://www.w3.org/2001/XMLSchema#date"),M5n=new Id("http://www.w3.org/2001/XMLSchema#dateTime"),MC=new Id("http://www.w3.org/2001/XMLSchema#string");class bie extends VC{equals(o){return o?this===o||o.termType==="Literal"&&o.value===this.value&&this.datatype.equals(o.datatype)&&o.language===this.language:!1}verbose(){return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+this.datatype.verbose())}concise(o){return this.language?"@"+this.language+'"'+this.value:"^"+PH(this.datatype.value,o)+'"'+this.value}terse(o={}){let l=this.datatype.terse(o);return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+l)}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(bie.prototype,{datatype:MC,language:"",termType:"Literal",isLiteral:!0,isSimple:!1});class SF extends bie{constructor(o,l){super(),this.value=o,this.language=(l[0]==="@"?l.slice(1):l).toLowerCase()}verbose(){return JSON.stringify(this.value)+"@"+this.language}concise(){return"@"+this.language+'"'+this.value}terse(){return JSON.stringify(this.value)+"@"+this.language}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:E5n}}}Object.assign(SF.prototype,{datatype:lEt,isLanguaged:!0});class K_ extends bie{verbose(){return JSON.stringify(this.value)+"^^"+this.datatype.verbose()}concise(o){return"^"+PH(this.datatype.value,o)+'"'+this.value}terse(o={}){let l=this.datatype.terse(o);return JSON.stringify(this.value)+"^^"+l}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(K_.prototype,{isDatatyped:!0});class Yte extends K_{constructor(o,l){super(),this.value=o,this.datatype=l}}class cEt extends VC{constructor(o){super(),this.value=o}get isSimple(){return!this.language&&!this.datatype.equals(MC)}get isLanguaged(){return!!this.language}get isDatatyped(){return MC.equals(this.datatype)}equals(o){return o?this===o||o.termType==="Literal"&&o.value===this.value&&this.datatype.equals(o.datatype)&&o.language===this.language:!1}verbose(){return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+this.datatype.verbose())}concise(o){return this.language?"@"+this.language+'"'+this.value:"^"+PH(this.datatype.value,o)+'"'+this.value}terse(o={}){let l=this.datatype.terse(o);return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+l)}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(cEt.prototype,{datatype:MC,language:"",termType:"Literal",isLiteral:!0});class hE extends bie{constructor(o){super(),this.value=o}verbose(){return JSON.stringify(this.value)}concise(){return'"'+this.value}terse(){return JSON.stringify(this.value)}}Object.assign(hE.prototype,{isSimple:!0});const uEt=new Id("http://www.w3.org/2001/XMLSchema#integer");class IE extends K_{static from(o){let l=new IE(+o);return l.value=o,l}constructor(o){super(),this.value=o+"",this.number=o}concise(o={}){return"^"+uEt.concise(o)+'"'+this.value}terse(){return this.value.includes("e")?`"${this.value}"^^`:this.value}}Object.assign(IE.prototype,{datatype:uEt,isNumeric:!0,isInteger:!0});const MH=new Id("http://www.w3.org/2001/XMLSchema#double");class k3 extends K_{static from(o){let l=new k3(+o);return l.value=o,l}constructor(o){super(),this.value=o+"",this.number=o}concise(o={}){return"^"+MH.concise(o)+'"'+this.value}terse(){return this.number.toExponential()}}Object.assign(k3.prototype,{datatype:MH,isNumeric:!0,isDouble:!0});const aEt=new Id("http://www.w3.org/2001/XMLSchema#decimal");class PE extends K_{static from(o){let l=new PE(+o);return l.value=o,l}constructor(o){super(),this.value=o+"",this.number=o}concise(o={}){return"^"+aEt.concise(o)+'"'+this.value}terse(){return this.value.includes("e")?`"${this.value}"^^`:this.value+(this.value.includes(".")?"":".0")}}Object.assign(PE.prototype,{datatype:aEt,isNumeric:!0,isDecimal:!0});const fEt=new Id("http://www.w3.org/2001/XMLSchema#boolean");class g3 extends K_{static from(o){let l=new g3(+o);return l.value=o,l}constructor(o){super(),this.value=o+"",this.boolean=o}concise(o={}){return"^"+fEt.concise(o)+'"'+this.value}terse(){return this.value+""}}Object.assign(g3.prototype,{datatype:fEt,isBoolean:!0});class dEt extends k3{constructor(){super(1/0),this.value="INF"}terse(o){return'"INF"^^'+MH.terse(o)}}Object.assign(dEt.prototype,{isInfinite:!0});class hEt extends k3{constructor(){super(-1/0),this.value="-INF"}terse(o){return'"-INF"^^'+MH.terse(o)}}Object.assign(hEt.prototype,{isInfinite:!0});class pEt extends k3{constructor(){super(NaN),this.value="NaN"}terse(o){return'"NaN"^^'+MH.terse(o)}}Object.assign(pEt.prototype,{isNaN:!0});function yE(r,o=!1){this.value=r,this.isAnonymous=o}yE.prototype=Object.assign(Object.create(VC.prototype),{termType:"BlankNode",isBlankNode:!0,concise(){return"_:"+this.value},terse(){return"_:"+this.value},verbose(){return"_:"+this.value},isolate(){return{termType:"BlankNode",value:this.value}}});function Tz(){}Tz.prototype=Object.assign(Object.create(yE.prototype),{isAnonymous:!0,isEphemeral:!0,concise(){return"_:#"+this.value},terse(){return"[]"},verbose(){return"_:"+this.value},isolate(){return{termType:"BlankNode",value:this.value}},equals(){return!1}});Object.defineProperty(Tz.prototype,"value",{get(){return"_"+CF()}});class gEt extends VC{constructor(o){super(),this.value=o}concise(){return"?"+this.value}terse(){throw new Error("Cannot call .terse() on 'Variable' term type")}verbose(){throw new Error("Cannot call .verbose() on 'Variable' term type")}isolate(){return{termType:"Variable",value:this.value}}}Object.assign(gEt.prototype,{termType:"Variable",isVariable:!0});function Iz(){}Iz.prototype=Object.assign(Object.create(VC.prototype),{value:"",termType:"DefaultGraph",isDefaultGraph:!0,concise(){return"*"},terse(){return""},verbose(){return""},isolate(){return{termType:"DefaultGraph",value:""}}});Object.assign(Object.create(VC.prototype),{value:"",termType:"NoGraph",concise(){return""},terse(){return""},verbose(){return""},isolate(){return{termType:"NoGraph",value:""}}});const cre=new Iz;function Qv(r,o,l,a=cre){this.subject=r,this.predicate=o,this.object=l,this.graph=a}Object.assign(Qv.prototype,{isGraphyQuad:!0,equals(r){return r?this===r||this.object.equals(r.object)&&this.subject.equals(r.subject)&&this.predicate.equals(r.predicate)&&this.graph.equals(r.graph):!1},valueOf(){return this.verbose()},concise(r={}){return[this.subject.concise(r),this.predicate.concise(r),this.object.concise(r),this.graph.concise(r)]},terse(r){let o=this.graph.isDefaultGraph;return(o?"":this.graph.terse(r)+" { ")+this.subject.terse(r)+" "+this.predicate.terse(r)+" "+this.object.terse(r)+" ."+(o?"":" }")},verbose(){return this.subject.verbose()+" "+this.predicate.verbose()+" "+this.object.verbose()+" "+(this.graph.isDefaultGraph?"":this.graph.verbose()+" ")+"."},isolate(){return{subject:this.subject.isolate(),predicate:this.predicate.isolate(),object:this.object.isolate(),graph:this.graph.isolate()}}});let k8t={namedNode(r){return new Id(r)},blankNode(r,o){return new yE(r,o)},literal(r){return new cEt(r)},defaultGraph(){return new Iz},quad(r,o,l,a){return new Qv(r,o,l,a||cre)},integer(r){return IE.from(r)},double(r){return k3.from(r)},decimal(r){return PE.from(r)},boolean(r){return new g3(r)}};const Qo=rEt.exports={concise:PH,adopt(r){let o=Object.create(r),l=!1;if(typeof r.boolean!="function"){let a=r.namedNode("http://www.w3.org/2001/XMLSchema#boolean");o.boolean=p=>r.literal(p+"",a),l=!0}if(typeof r.double!="function"){let a=r.namedNode("http://www.w3.org/2001/XMLSchema#double");o.double=p=>r.literal(p+"",a),l=!0}if(typeof r.decimal!="function"){let a=r.namedNode("http://www.w3.org/2001/XMLSchema#decimal");o.decimal=p=>r.literal(p+"",a),l=!0}if(typeof r.integer!="function"){let a=r.namedNode("http://www.w3.org/2001/XMLSchema#integer");o.integer=p=>r.literal(p+"",a),l=!0}return typeof r.simpleLiteral!="function"&&(o.simpleLiteral=a=>r.literal(a),l=!0),typeof r.languagedLiteral!="function"&&(o.languagedLiteral=(a,p)=>r.literal(a,p),l=!0),typeof r.datatypedLiteral!="function"&&(o.datatypedLiteral=(a,p)=>r.literal(a,p),l=!0),l?o:r},raw:k8t,unfiltered:{...k8t,literal(r,o){return!o||MC.equals(o)?new hE(r):typeof o=="string"?new SF(r,o):MC.equals(o)?new hE(r):new Yte(r,o)},simpleLiteral(r){return new hE(r)},languagedLiteral(r,o){return new SF(r,o)},datatypedLiteral(r,o){return MC.equals(o)?new hE(r):new Yte(r,o)}},number(r){return typeof r=="number"&&(!Number.isFinite(r)||Number.isNaN(r))?Qo.double(r):Number.isInteger(r)||typeof r=="bigint"?Qo.integer(r):Qo.decimal(r)},date(r){return Qo.literal(r.toISOString().replace(/T.+$/,"Z"),P5n)},dateTime(r){return Qo.literal(r.toISOString(),M5n)},namedNode(r){return new Id(r)},ephemeral(){return new Tz},anonymous(){return new Tz},blankNode(r){if(r){if(typeof r=="string")return new yE(r)}else return new yE("_"+CF(),!0);throw new TypeError(`factory.blankNode(label) expects 'label' parameter to be falsy or a string; instead found: ${r}`)},literal(r,o){return!o||MC.equals(o)?new hE(r):typeof o=="string"?new SF(r,o):new Yte(r,o)},integer(r){let o=typeof r;if(o==="number"){if(Number.isFinite(r)){if(!Number.isInteger(r))throw new Error("Number is not an integer: "+r)}else throw Number.isNaN(r)?new Error("XSD integer cannot encode NaN. Try using double"):new Error("XSD integer cannot encode +/-infinity. Try using double");return new IE(r)}else if(o==="string"){if(r==="")throw new Error("Refusing to serialize empty string as xsd:integer");let l=+r;if(Number.isNaN(l)||!Number.isInteger(l))throw new Error("Invalid integer string: "+r);return new IE(l)}else throw o==="undefined"?new Error("Refusing to serialize undefined value as xsd:integer"):r===null?new Error("Refusing to serialize null value as xsd:integer"):new Error("XSD integer expects a number type or integer string")},double(r){let o=typeof r;if(o==="number")return Number.isFinite(r)?new k3(r):Number.isNaN(r)?new pEt:r>0?new dEt:new hEt;if(o==="string"){if(r==="")throw new Error("Refusing to serialize empty string as xsd:double");let l=+r;if(Number.isNaN(l))throw new Error("Invalid decimal string: "+r);return new k3(l)}else throw o==="undefined"?new Error("Refusing to serialize undefined value as xsd:double"):r===null?new Error("Refusing to serialize null value as xsd:double"):new Error("XSD double expects a number type or double string")},decimal(r){let o=typeof r;if(o==="number"){if(!Number.isFinite(r))throw Number.isNaN(r)?new Error("XSD decimal cannot encode NaN. Try using double"):new Error("XSD decimal cannot encode +/-infinity. Try using double");return new PE(r)}else if(o==="string"){if(r==="")throw new Error("Refusing to serialize empty string as xsd:decimal");let l=+r;if(Number.isNaN(l))throw new Error("Invalid decimal string: "+r);return new PE(l)}else throw o==="undefined"?new Error("Refusing to serialize undefined value as xsd:decimal"):r===null?new Error("Refusing to serialize null value as xsd:decimal"):new Error("XSD decimal expects a number type or decimal string")},boolean(r){let o=typeof r;if(o==="boolean")return new g3(r);if(o==="number"){if(r===1)return new g3(!0);if(r===0)return new g3(!1);throw new Error("Boolean value 'w_value' must be either a '1' or '0' if using numbers")}else if(o==="string"){if(m5n.test(r))return new g3(!0);if(v5n.test(r))return new g3(!1);throw r===""?new Error("Refusing to serialize empty string as xsd:boolean"):new Error("Invalid boolean string: "+r)}else throw o==="undefined"?new Error("Refusing to serialize undefined value as xsd:boolean"):r===null?new Error("Refusing to serialize null value as xsd:boolean"):new Error("XSD boolean expects a boolean type or boolean string")},defaultGraph(){return new Iz},variable(r){return new gEt(r)},triple(r,o,l){let a=new Error("It is strongly encouraged to use .quad() instead of .triple()");return console.warn(a.stack.replace(/^(\s*)Error:/,"$1Warning:")),new Qv(r,o,l)},quad(r,o,l,a){return new Qv(r,o,l,a||cre)},term(r,o){return typeof r=="string"?Qo.c1(r,o):Qo.from.rdfjs_term(r)},c1(r,o={}){switch(r[0]){case"^":{let l=r.indexOf('"');if(l===-1)throw new Error(`Invalid concise-term string, no content literal delimiter found: '${r}'`);let a=r.slice(1,l);return Qo.literal(r.slice(l+1),Qo.c1_node_explicit(a,o))}case"@":{let l=r.indexOf('"');if(l===-1)throw new Error(`Invalid concise-term string, no content literal delimiter found: '${r}'`);let a=r.slice(1,l);return Qo.literal(r.slice(l+1),a)}case'"':return Qo.literal(r.slice(1));default:return Qo.c1_node(r,o)}},c1_node(r,o={}){if(r==="a")return N7e;if(r==="*")return Qo.defaultGraph();if(r[0]==="_"){if(r[1]!==":")throw new Error(`Invliad concise-term string, prefixes are not allowed to start with an underscore: '${r}'`);return r[2]==="#"||r.length===2?Qo.ephemeral():Qo.blankNode(r.slice(2))}return Qo.c1_node_explicit(r,o)},c1_named_node(r,o={}){return r==="a"?N7e:Qo.c1_node_explicit(r,o)},c1_node_explicit(r,o={}){switch(r[0]){case">":return Qo.namedNode(r.slice(1));case"<":throw new Error(`Whoops! It looks like this concise-term string starts with a '<' character. Remember to use '>' if you are trying to make an absolute IRI reference. -Invalid concise-term string '${r}'`);case"`":throw new Error(`The backtick character '\`' is reserved for concise-struct key directives and should not be used in the object position. -Invalid concise-term string '${r}'`);default:return this.c1_prefixed_node(r,o)}},c1_prefixed_node(r,o={}){let l=r.indexOf(":");if(l===-1)throw new Error(`A relative or prefixed node must include a ':' character. -Invalid concise-term string for node: '${r}'`);let a=r.slice(0,l),p=r.slice(l+1);if(a in o)return Qo.namedNode(o[a]+p);throw new Error(`Prefix not defined: '${a}'`)},c1_to_nt:sEt,*quads(r,o={}){for(let l in r)yield*Qo.triples(r[l],o,l)},*triples(r,o={},l="*"){let a=Qo.c1(l,o);for(let p in r){let g=Qo.c1(p,o),w=r[p];yield*Qo.pairs(a,g,w,o)}},*pairs(r,o,l,a={}){for(let p in l){let g=Qo.c1(p,a),w=l[p];yield*Qo.objects(r,o,g,w,a)}},*collection(r,o,l,a={}){yield*Qo.objects(r,o,T5n,l[0],a);let p=l.slice(1);if(!p.length)yield new Qv(o,y8t,I5n,r);else{let g=Qo.blankNode();yield new Qv(o,y8t,g,r),yield*Qo.collection(r,g,p,a)}},*objects(r,o,l,a,p,g=!1){switch(typeof a){case"string":{yield new Qv(o,l,Qo.c1(a,p),r);break}case"number":{yield new Qv(o,l,Qo.number(a),r);break}case"object":{if(Array.isArray(a))if(g){let y=Qo.blankNode();yield new Qv(o,l,y,r),yield*Qo.collection(r,y,a,p)}else for(let y of a)yield*Qo.objects(r,o,l,y,p,!0);else{let y=Qo.blankNode();yield new Qv(o,l,y,r),yield*Qo.pairs(r,y,a,p)}break}default:throw new Error(`invalid object type: ${typeof a}`)}},from:{term(r){return r===null||r.isGraphyTerm?r:Qo.from.rdfjs_term(r)},quad(r){if(r===null||r.isGraphyQuad)return r;let o=Qo.from;return new Qv(o.rdfjs_term(r.subject),o.rdfjs_term(r.predicate),o.rdfjs_term(r.object),r.graph?o.rdfjs_term(r.graph):cre)},rdfjs_term(r){switch(r.termType){case"NamedNode":return new Id(r.value);case"BlankNode":return new yE(r.value);case"Literal":return Qo.literal(r.value,r.language?r.language:r.datatype?new Id(r.datatype.value):null);case"DefaultGraph":return new Iz;default:throw new TypeError(`invalid termType: ${r.termType}`)}},sparql_result(r){switch(r.type){case"uri":return new Id(r.value);case"literal":case"typed-literal":return"xml:lang"in r?new SF(r.value,r["xml:lang"]):"datatype"in r&&r.datatype!=="http://www.w3.org/2001/XMLSchema#string"?new Yte(r.value,new Id(r.datatype)):new hE(r.value);case"bnode":return new yE(r.value);default:throw new Error(`unexpected SPARQL Result JSON Format Term type: ${r.type}`)}}},to:{boolean:r=>g3.from(r),integer:r=>IE.from(r),decimal:r=>PE.from(r),double:r=>k3.from(r)},comment(r={}){return`\`[${CF()}]${JSON.stringify({...r,type:"comment"})}`},newlines(){return`\`[${CF()}]{"type":"newlines"}`},config(r){if(typeof r!="string")throw new TypeError(`Expected 'key' argument to be a string, instead found ${typeof r}`);return`\`[${CF()}]{"type":"config","value":${JSON.stringify(r)}}`},hash(r){let o=Qo.from.quad(r),l=g5n.createHash("sha256");return l.update(o.verbose()),l.digest("hex")},cache_prefixes:v8t,cachePrefixes:v8t,terse:oEt,clean_iri:lre,cleanIri:lre,$_PREFIX_CACHE:gie};Object.assign(Qo,{c3:Qo.triples,c4:Qo.quads,fromTerm:Qo.from.term,fromQuad:Qo.from.quad});var O5n=rEt.exports;const C8t=_3(O5n),_5n={rif:"http://www.w3.org/2007/rif#",v:"http://rdf.data-vocabulary.org/#",wdr:"http://www.w3.org/2007/05/powder#",xml:"http://www.w3.org/XML/1998/namespace/"},R5n={acl:"http://www.w3.org/ns/auth/acl#",as:"https://www.w3.org/ns/activitystreams#",bibo:"http://purl.org/ontology/bibo/",cc:"http://creativecommons.org/ns#",cert:"http://www.w3.org/ns/auth/cert#",cnt:"http://www.w3.org/2011/content#",constant:"http://qudt.org/vocab/constant/",crm:"http://www.cidoc-crm.org/cidoc-crm/",csvw:"http://www.w3.org/ns/csvw#",ctag:"http://commontag.org/ns#","dash-sparql":"http://datashapes.org/sparql#",dash:"http://datashapes.org/dash#",dbo:"http://dbpedia.org/ontology/",dc11:"http://purl.org/dc/elements/1.1/",dcam:"http://purl.org/dc/dcam/",dcat:"http://www.w3.org/ns/dcat#",dcmitype:"http://purl.org/dc/dcmitype/",dcterms:"http://purl.org/dc/terms/",dig:"http://www.ics.forth.gr/isl/CRMdig/",discipline:"http://qudt.org/vocab/discipline/",doap:"http://usefulinc.com/ns/doap#",dpv:"http://www.w3.org/ns/dpv#",dqv:"http://www.w3.org/ns/dqv#",dtype:"http://www.linkedmodel.org/schema/dtype#",duv:"http://www.w3.org/ns/duv#",earl:"http://www.w3.org/ns/earl#",ebucore:"http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#",exif:"http://www.w3.org/2003/12/exif/ns#",foaf:"http://xmlns.com/foaf/0.1/",frbr:"http://purl.org/vocab/frbr/core#",geo:"http://www.opengis.net/ont/geosparql#",geof:"http://www.opengis.net/def/function/geosparql/",geor:"http://www.opengis.net/def/rule/geosparql/",gml:"http://www.opengis.net/ont/gml#",gn:"http://www.geonames.org/ontology#",gr:"http://purl.org/goodrelations/v1#",grddl:"http://www.w3.org/2003/g/data-view#",gs1:"https://gs1.org/voc/",gtfs:"http://vocab.gtfs.org/terms#",http:"http://www.w3.org/2011/http#",hydra:"http://www.w3.org/ns/hydra/core#",ical:"http://www.w3.org/2002/12/cal/icaltzd#",la:"https://linked.art/ns/terms/",ldp:"http://www.w3.org/ns/ldp#",list:"http://www.w3.org/2000/10/swap/list#",locn:"http://www.w3.org/ns/locn#",log:"http://www.w3.org/2000/10/swap/log#",lvont:"http://lexvo.org/ontology#",m4i:"http://w3id.org/nfdi4ing/metadata4ing#",ma:"http://www.w3.org/ns/ma-ont#",mads:"http://www.loc.gov/mads/rdf/v1#",math:"http://www.w3.org/2000/10/swap/math#",oa:"http://www.w3.org/ns/oa#",og:"http://ogp.me/ns#",oidc:"http://www.w3.org/ns/solid/oidc#",org:"http://www.w3.org/ns/org#",owl:"http://www.w3.org/2002/07/owl#",pim:"http://www.w3.org/ns/pim/space#",prefix:"http://qudt.org/vocab/prefix/",prov:"http://www.w3.org/ns/prov#",qb:"http://purl.org/linked-data/cube#",qkdv:"http://qudt.org/vocab/dimensionvector/",quantitykind:"http://qudt.org/vocab/quantitykind/",qudt:"http://qudt.org/schema/qudt/",rdau:"http://rdaregistry.info/Elements/u/",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfa:"http://www.w3.org/ns/rdfa#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rev:"http://purl.org/stuff/rev#",rico:"https://www.ica.org/standards/RiC/ontology#",rr:"http://www.w3.org/ns/r2rml#",rss:"http://purl.org/rss/1.0/",schema:"http://schema.org/",sd:"http://www.w3.org/ns/sparql-service-description#",sdmx:"http://purl.org/linked-data/sdmx#",sem:"http://semanticweb.cs.vu.nl/2009/11/sem/",set:"http://www.w3.org/2000/10/swap/set#",sf:"http://www.opengis.net/ont/sf#",sh:"http://www.w3.org/ns/shacl#",shex:"http://www.w3.org/ns/shex#",shsh:"http://www.w3.org/ns/shacl-shacl#",sioc:"http://rdfs.org/sioc/ns#",skos:"http://www.w3.org/2004/02/skos/core#",skosxl:"http://www.w3.org/2008/05/skos-xl#",solid:"http://www.w3.org/ns/solid/terms#",sosa:"http://www.w3.org/ns/sosa/",sou:"http://qudt.org/vocab/sou/",ssn:"http://www.w3.org/ns/ssn/",stat:"http://www.w3.org/ns/posix/stat#",string:"http://www.w3.org/2000/10/swap/string#",test:"http://www.w3.org/2006/03/test-description#",time:"http://www.w3.org/2006/time#",unit:"http://qudt.org/vocab/unit/",vaem:"http://www.linkedmodel.org/schema/vaem#",vann:"http://purl.org/vocab/vann/",vcard:"http://www.w3.org/2006/vcard/ns#",void:"http://rdfs.org/ns/void#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",vso:"http://purl.org/vso/ns#",wdrs:"http://www.w3.org/2007/05/powder-s#",wgs:"http://www.w3.org/2003/01/geo/wgs84_pos#",xhv:"http://www.w3.org/1999/xhtml/vocab#",xkos:"http://rdf-vocabulary.ddialliance.org/xkos#",xsd:"http://www.w3.org/2001/XMLSchema#"},B7e={...R5n,..._5n};function bEt(r,o={}){const l={...B7e,...o},a=Array.from(Object.entries(l)).filter(([,p])=>r.startsWith(p));if(a.length){a.sort(([,g],[,w])=>w.length-g.length);const p=a[0];return r.replace(new RegExp(`^${p[1]}`),`${p[0]}:`)}return""}class wEt{constructor(o){this.term=o}toTerm(){const o=`"""${this.term.value.replace(/"$/,'\\"')}"""`;return{terse:l=>o+this.langOrDatatype(l),verbose:l=>o+this.langOrDatatype(l)}}langOrDatatype(o){if(this.term.language)return`@${this.term.language}`;if(this.term.datatype.equals(FF.string))return"";const l=bEt(this.term.datatype.value,o);return l?`^^${l}`:`^^<${this.term.datatype.value}>`}}const mEt=new Map([[wEt,r=>r.toTerm()]]);function A5n(r){return r.has(Zv.first)&&r.has(Zv.rest)}class L5n extends o3n.Transform{constructor({prefixes:o={},strict:l=!1,preserveListNodeProperties:a=!1}={}){super({objectMode:!0}),this.prefixes=o,this.graphs=new kF,this.blankNodes=new kF,this.strict=l,this.preserveListNodeProperties=a}_transform({subject:o,predicate:l,object:a,graph:p},g,w){const y=this.getGraph(p),S=y.get(o)||{predicates:new kF},E=S.predicates.get(l)||[];if(S.predicates.set(l,[...E,a]),a.termType==="BlankNode"){const I=this.blankNodes.get(a)||0;this.blankNodes.set(a,I+1)}y.set(o,S),w()}_flush(){const o=[...this.graphs].reduce((l,[a,p])=>{const g=this.toHashKey(a);let w=l[g]||{};return w=[...p].reduce(this.toConciseHash(a).bind(this),w),{...l,[g]:w}},{});this.push({type:this.strict?"c4r":"c4",value:o}),this.push(null)}toConciseHash(o){return(l,[a,{predicates:p}])=>{if(!this.strict&&this.blankNodes.get(a)===1)return l;const g=this.toHashKey(a);return{...l,[g]:this.createPropertyMap(o,p)}}}createPropertyMap(o,l,a=0){const p=g=>{if(!this.strict&&this.blankNodes.get(g)===1){const w=this.graphs.get(o).get(g);if(w)return this.createPropertyMap(o,w.predicates,a+1)}return this.toHashKey(g)};if(!this.strict&&A5n(l)&&!this.preserveListNodeProperties){const[g]=l.get(Zv.first),[w]=l.get(Zv.rest);if(a===0){let S;if(w.equals(Zv.nil))S=this.toHashKey(Zv.nil);else{const E=p(w);S=Array.isArray(E)?[...E]:[E]}return{[this.toHashKey(Zv.first)]:[p(g)],[this.toHashKey(Zv.rest)]:[S]}}if(w.equals(Zv.nil))return[p(g)];const y=p(w);return[p(g),...y]}return[...l].reduce((g,[w,y])=>{const S=this.toHashKey(w),E=y.map(p.bind(this));return{...g,[S]:E}},{})}getGraph(o){const l=this.graphs.get(o)||new kF;return this.graphs.set(o,l),l}literalHash(o){if(o.datatype&&!this.strict)switch(o.datatype.value){case FF.integer.value:{const l=+o.value;if(Number.isInteger(l))return l;break}case FF.decimal.value:{const l=+o.value;if(!Number.isNaN(l)&&!Number.isInteger(l))return l;break}case FF.boolean.value:{if(o.value==="true")return!0;if(o.value==="false")return!1;break}}return o.value.includes(` -`)?new wEt(o):C8t.fromTerm(o).concise(this.prefixes)}toHashKey(o){return o.termType==="Literal"?this.literalHash(o):o.equals(Zv.type)?"a":C8t.fromTerm(o).concise(this.prefixes)}}async function M9e(r,o={}){const l=(await r).default;return class{constructor(a={}){this.defaults=a}import(a,{preserveListNodeProperties:p,...g}={}){const w={...this.defaults.prefixes||{},...g.prefixes||{}},y=l({prefixes:w,coercions:o.coercions});return a.pipe(new L5n({prefixes:w,strict:o.strict,preserveListNodeProperties:p})).pipe(y),y}}}const vEt=pm(()=>M9e(Xg(()=>import("./main-iH2f1yx-.js").then(r=>r.m),__vite__mapDeps([10,11,12,13])),{coercions:mEt})),$5n=pm(()=>M9e(Xg(()=>import("./main-DvYAR6pV.js").then(r=>r.m),__vite__mapDeps([14,12,13])),{strict:!0})),j5n=pm(()=>M9e(Xg(()=>import("./main-BIUkwmxE.js").then(r=>r.m),__vite__mapDeps([15,11,12,13])),{strict:!0,coercions:mEt}));async function yEt(r){const o=(await r).default;return class{import(l,a){return l.pipe(a?o(a):o())}}}const kEt=pm(()=>yEt(Xg(()=>import("./main-B94FsnA1.js").then(r=>r.m),__vite__mapDeps([16,13])))),CEt=pm(()=>yEt(Xg(()=>import("./main-V12eunPc.js").then(r=>r.m),__vite__mapDeps([17,13])))),D5n=pm(async()=>{const r=(await Xg(async()=>{const{default:o}=await import("./index-BMw9Z_By.js");return{default:o}},__vite__mapDeps([18,1,4]))).default;return class extends r{constructor({prefixes:l={},...a}={}){super({compact:!0,skipGraphProperty:!0,encoding:"string",...a}),this.prefixes=l}import(l,{prefixes:a={}}={}){const p={...this.prefixes,...a};return super.import(l,{context:p})}}}),N5n=pm(async()=>{const r=await Xg(()=>import("./index-wrpfIQEt.js"),__vite__mapDeps([19,6]));return class{import(o,l){return new r.StreamParser({format:"text/n3"}).import(o,{...l})}}}),bm=new j9t({});bm.import(wb);const py={jsonLd:"application/ld+json",ntriples:"application/n-triples",nquads:"application/n-quads",notation3:"text/n3",rdfXml:"application/rdf+xml",trig:"application/trig",turtle:"text/turtle"};bm.serializers.set(py.jsonLd,new D5n);bm.serializers.set(py.notation3,new vEt);bm.serializers.set(py.turtle,new vEt);bm.serializers.set(py.trig,new j5n);bm.serializers.set(py.rdfXml,new $5n);bm.parsers.set(py.notation3,new N5n);bm.parsers.set(py.turtle,new kEt);bm.parsers.set(py.trig,new kEt);bm.parsers.set(py.ntriples,new CEt);bm.parsers.set(py.nquads,new CEt);/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const Pne=globalThis,O9e=Pne.ShadowRoot&&(Pne.ShadyCSS===void 0||Pne.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_9e=Symbol(),S8t=new WeakMap;let SEt=class{constructor(o,l,a){if(this._$cssResult$=!0,a!==_9e)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=l}get styleSheet(){let o=this.o;const l=this.t;if(O9e&&o===void 0){const a=l!==void 0&&l.length===1;a&&(o=S8t.get(l)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),a&&S8t.set(l,o))}return o}toString(){return this.cssText}};const B5n=r=>new SEt(typeof r=="string"?r:r+"",void 0,_9e),F5n=(r,...o)=>{const l=r.length===1?r[0]:o.reduce((a,p,g)=>a+(w=>{if(w._$cssResult$===!0)return w.cssText;if(typeof w=="number")return w;throw Error("Value passed to 'css' function must be a 'css' function result: "+w+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(p)+r[g+1],r[0]);return new SEt(l,r,_9e)},z5n=(r,o)=>{if(O9e)r.adoptedStyleSheets=o.map(l=>l instanceof CSSStyleSheet?l:l.styleSheet);else for(const l of o){const a=document.createElement("style"),p=Pne.litNonce;p!==void 0&&a.setAttribute("nonce",p),a.textContent=l.cssText,r.appendChild(a)}},x8t=O9e?r=>r:r=>r instanceof CSSStyleSheet?(o=>{let l="";for(const a of o.cssRules)l+=a.cssText;return B5n(l)})(r):r;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const{is:H5n,defineProperty:K5n,getOwnPropertyDescriptor:U5n,getOwnPropertyNames:G5n,getOwnPropertySymbols:W5n,getPrototypeOf:V5n}=Object,OC=globalThis,E8t=OC.trustedTypes,q5n=E8t?E8t.emptyScript:"",xCe=OC.reactiveElementPolyfillSupport,zF=(r,o)=>r,F7e={toAttribute(r,o){switch(o){case Boolean:r=r?q5n:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,o){let l=r;switch(o){case Boolean:l=r!==null;break;case Number:l=r===null?null:Number(r);break;case Object:case Array:try{l=JSON.parse(r)}catch{l=null}}return l}},xEt=(r,o)=>!H5n(r,o),T8t={attribute:!0,type:String,converter:F7e,reflect:!1,hasChanged:xEt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),OC.litPropertyMetadata??(OC.litPropertyMetadata=new WeakMap);class GO extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??(this.l=[])).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,l=T8t){if(l.state&&(l.attribute=!1),this._$Ei(),this.elementProperties.set(o,l),!l.noAccessor){const a=Symbol(),p=this.getPropertyDescriptor(o,a,l);p!==void 0&&K5n(this.prototype,o,p)}}static getPropertyDescriptor(o,l,a){const{get:p,set:g}=U5n(this.prototype,o)??{get(){return this[l]},set(w){this[l]=w}};return{get(){return p==null?void 0:p.call(this)},set(w){const y=p==null?void 0:p.call(this);g.call(this,w),this.requestUpdate(o,y,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??T8t}static _$Ei(){if(this.hasOwnProperty(zF("elementProperties")))return;const o=V5n(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(zF("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(zF("properties"))){const l=this.properties,a=[...G5n(l),...W5n(l)];for(const p of a)this.createProperty(p,l[p])}const o=this[Symbol.metadata];if(o!==null){const l=litPropertyMetadata.get(o);if(l!==void 0)for(const[a,p]of l)this.elementProperties.set(a,p)}this._$Eh=new Map;for(const[l,a]of this.elementProperties){const p=this._$Eu(l,a);p!==void 0&&this._$Eh.set(p,l)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){const l=[];if(Array.isArray(o)){const a=new Set(o.flat(1/0).reverse());for(const p of a)l.unshift(x8t(p))}else o!==void 0&&l.push(x8t(o));return l}static _$Eu(o,l){const a=l.attribute;return a===!1?void 0:typeof a=="string"?a:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(l=>this.enableUpdating=l),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(l=>l(this))}addController(o){var l;(this._$EO??(this._$EO=new Set)).add(o),this.renderRoot!==void 0&&this.isConnected&&((l=o.hostConnected)==null||l.call(o))}removeController(o){var l;(l=this._$EO)==null||l.delete(o)}_$E_(){const o=new Map,l=this.constructor.elementProperties;for(const a of l.keys())this.hasOwnProperty(a)&&(o.set(a,this[a]),delete this[a]);o.size>0&&(this._$Ep=o)}createRenderRoot(){const o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return z5n(o,this.constructor.elementStyles),o}connectedCallback(){var o;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(o=this._$EO)==null||o.forEach(l=>{var a;return(a=l.hostConnected)==null?void 0:a.call(l)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(l=>{var a;return(a=l.hostDisconnected)==null?void 0:a.call(l)})}attributeChangedCallback(o,l,a){this._$AK(o,a)}_$EC(o,l){var g;const a=this.constructor.elementProperties.get(o),p=this.constructor._$Eu(o,a);if(p!==void 0&&a.reflect===!0){const w=(((g=a.converter)==null?void 0:g.toAttribute)!==void 0?a.converter:F7e).toAttribute(l,a.type);this._$Em=o,w==null?this.removeAttribute(p):this.setAttribute(p,w),this._$Em=null}}_$AK(o,l){var g;const a=this.constructor,p=a._$Eh.get(o);if(p!==void 0&&this._$Em!==p){const w=a.getPropertyOptions(p),y=typeof w.converter=="function"?{fromAttribute:w.converter}:((g=w.converter)==null?void 0:g.fromAttribute)!==void 0?w.converter:F7e;this._$Em=p,this[p]=y.fromAttribute(l,w.type),this._$Em=null}}requestUpdate(o,l,a){if(o!==void 0){if(a??(a=this.constructor.getPropertyOptions(o)),!(a.hasChanged??xEt)(this[o],l))return;this.P(o,l,a)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,l,a){this._$AL.has(o)||this._$AL.set(o,l),a.reflect===!0&&this._$Em!==o&&(this._$Ej??(this._$Ej=new Set)).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(l){Promise.reject(l)}const o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var a;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[g,w]of this._$Ep)this[g]=w;this._$Ep=void 0}const p=this.constructor.elementProperties;if(p.size>0)for(const[g,w]of p)w.wrapped!==!0||this._$AL.has(g)||this[g]===void 0||this.P(g,this[g],w)}let o=!1;const l=this._$AL;try{o=this.shouldUpdate(l),o?(this.willUpdate(l),(a=this._$EO)==null||a.forEach(p=>{var g;return(g=p.hostUpdate)==null?void 0:g.call(p)}),this.update(l)):this._$EU()}catch(p){throw o=!1,this._$EU(),p}o&&this._$AE(l)}willUpdate(o){}_$AE(o){var l;(l=this._$EO)==null||l.forEach(a=>{var p;return(p=a.hostUpdated)==null?void 0:p.call(a)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(l=>this._$EC(l,this[l]))),this._$EU()}updated(o){}firstUpdated(o){}}GO.elementStyles=[],GO.shadowRootOptions={mode:"open"},GO[zF("elementProperties")]=new Map,GO[zF("finalized")]=new Map,xCe==null||xCe({ReactiveElement:GO}),(OC.reactiveElementVersions??(OC.reactiveElementVersions=[])).push("2.0.4");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const HF=globalThis,ure=HF.trustedTypes,I8t=ure?ure.createPolicy("lit-html",{createHTML:r=>r}):void 0,EEt="$lit$",EC=`lit$${Math.random().toFixed(9).slice(2)}$`,TEt="?"+EC,X5n=`<${TEt}>`,BE=document,Pz=()=>BE.createComment(""),Mz=r=>r===null||typeof r!="object"&&typeof r!="function",R9e=Array.isArray,Y5n=r=>R9e(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",ECe=`[ -\f\r]`,fF=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P8t=/-->/g,M8t=/>/g,oE=RegExp(`>|${ECe}(?:([^\\s"'>=/]+)(${ECe}*=${ECe}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),O8t=/'/g,_8t=/"/g,IEt=/^(?:script|style|textarea|title)$/i,J5n=r=>(o,...l)=>({_$litType$:r,strings:o,values:l}),Q5n=J5n(1),E_=Symbol.for("lit-noChange"),hh=Symbol.for("lit-nothing"),R8t=new WeakMap,kE=BE.createTreeWalker(BE,129);function PEt(r,o){if(!R9e(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return I8t!==void 0?I8t.createHTML(o):o}const Z5n=(r,o)=>{const l=r.length-1,a=[];let p,g=o===2?"":o===3?"":"",w=fF;for(let y=0;y"?(w=p??fF,M=-1):I[1]===void 0?M=-2:(M=w.lastIndex-I[2].length,E=I[1],w=I[3]===void 0?oE:I[3]==='"'?_8t:O8t):w===_8t||w===O8t?w=oE:w===P8t||w===M8t?w=fF:(w=oE,p=void 0);const R=w===oE&&r[y+1].startsWith("/>")?" ":"";g+=w===fF?S+X5n:M>=0?(a.push(E),S.slice(0,M)+EEt+S.slice(M)+EC+R):S+EC+(M===-2?y:R)}return[PEt(r,g+(r[l]||"")+(o===2?"":o===3?"":"")),a]};class Oz{constructor({strings:o,_$litType$:l},a){let p;this.parts=[];let g=0,w=0;const y=o.length-1,S=this.parts,[E,I]=Z5n(o,l);if(this.el=Oz.createElement(E,a),kE.currentNode=this.el.content,l===2||l===3){const M=this.el.content.firstChild;M.replaceWith(...M.childNodes)}for(;(p=kE.nextNode())!==null&&S.length0){p.textContent=ure?ure.emptyScript:"";for(let R=0;R<_;R++)p.append(M[R],Pz()),kE.nextNode(),S.push({type:2,index:++g});p.append(M[_],Pz())}}}else if(p.nodeType===8)if(p.data===TEt)S.push({type:2,index:g});else{let M=-1;for(;(M=p.data.indexOf(EC,M+1))!==-1;)S.push({type:7,index:g}),M+=EC.length-1}g++}}static createElement(o,l){const a=BE.createElement("template");return a.innerHTML=o,a}}function T_(r,o,l=r,a){var w,y;if(o===E_)return o;let p=a!==void 0?(w=l._$Co)==null?void 0:w[a]:l._$Cl;const g=Mz(o)?void 0:o._$litDirective$;return(p==null?void 0:p.constructor)!==g&&((y=p==null?void 0:p._$AO)==null||y.call(p,!1),g===void 0?p=void 0:(p=new g(r),p._$AT(r,l,a)),a!==void 0?(l._$Co??(l._$Co=[]))[a]=p:l._$Cl=p),p!==void 0&&(o=T_(r,p._$AS(r,o.values),p,a)),o}class e8n{constructor(o,l){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=l}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){const{el:{content:l},parts:a}=this._$AD,p=((o==null?void 0:o.creationScope)??BE).importNode(l,!0);kE.currentNode=p;let g=kE.nextNode(),w=0,y=0,S=a[0];for(;S!==void 0;){if(w===S.index){let E;S.type===2?E=new OH(g,g.nextSibling,this,o):S.type===1?E=new S.ctor(g,S.name,S.strings,this,o):S.type===6&&(E=new i8n(g,this,o)),this._$AV.push(E),S=a[++y]}w!==(S==null?void 0:S.index)&&(g=kE.nextNode(),w++)}return kE.currentNode=BE,p}p(o){let l=0;for(const a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(o,a,l),l+=a.strings.length-2):a._$AI(o[l])),l++}}class OH{get _$AU(){var o;return((o=this._$AM)==null?void 0:o._$AU)??this._$Cv}constructor(o,l,a,p){this.type=2,this._$AH=hh,this._$AN=void 0,this._$AA=o,this._$AB=l,this._$AM=a,this.options=p,this._$Cv=(p==null?void 0:p.isConnected)??!0}get parentNode(){let o=this._$AA.parentNode;const l=this._$AM;return l!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=l.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,l=this){o=T_(this,o,l),Mz(o)?o===hh||o==null||o===""?(this._$AH!==hh&&this._$AR(),this._$AH=hh):o!==this._$AH&&o!==E_&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Y5n(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==hh&&Mz(this._$AH)?this._$AA.nextSibling.data=o:this.T(BE.createTextNode(o)),this._$AH=o}$(o){var g;const{values:l,_$litType$:a}=o,p=typeof a=="number"?this._$AC(o):(a.el===void 0&&(a.el=Oz.createElement(PEt(a.h,a.h[0]),this.options)),a);if(((g=this._$AH)==null?void 0:g._$AD)===p)this._$AH.p(l);else{const w=new e8n(p,this),y=w.u(this.options);w.p(l),this.T(y),this._$AH=w}}_$AC(o){let l=R8t.get(o.strings);return l===void 0&&R8t.set(o.strings,l=new Oz(o)),l}k(o){R9e(this._$AH)||(this._$AH=[],this._$AR());const l=this._$AH;let a,p=0;for(const g of o)p===l.length?l.push(a=new OH(this.O(Pz()),this.O(Pz()),this,this.options)):a=l[p],a._$AI(g),p++;p2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=hh}_$AI(o,l=this,a,p){const g=this.strings;let w=!1;if(g===void 0)o=T_(this,o,l,0),w=!Mz(o)||o!==this._$AH&&o!==E_,w&&(this._$AH=o);else{const y=o;let S,E;for(o=g[0],S=0;S{const a=(l==null?void 0:l.renderBefore)??o;let p=a._$litPart$;if(p===void 0){const g=(l==null?void 0:l.renderBefore)??null;a._$litPart$=p=new OH(o.insertBefore(Pz(),g),g,void 0,l??{})}return p._$AI(r),p};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */class KF extends GO{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var l;const o=super.createRenderRoot();return(l=this.renderOptions).renderBefore??(l.renderBefore=o.firstChild),o}update(o){const l=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=o8n(l,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this._$Do)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this._$Do)==null||o.setConnected(!1)}render(){return E_}}var W7t;KF._$litElement$=!0,KF.finalized=!0,(W7t=globalThis.litElementHydrateSupport)==null||W7t.call(globalThis,{LitElement:KF});const ICe=globalThis.litElementPolyfillSupport;ICe==null||ICe({LitElement:KF});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");var Bp=navigator.userAgent,MEt=navigator.platform,Q6=/gecko\/\d/i.test(Bp),OEt=/MSIE \d/.test(Bp),_Et=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Bp),mie=/Edge\/(\d+)/.exec(Bp),Tl=OEt||_Et||mie,vu=Tl&&(OEt?document.documentMode||6:+(mie||_Et)[1]),R1=!mie&&/WebKit\//.test(Bp),s8n=R1&&/Qt\/\d+\.\d+/.test(Bp),vie=!mie&&/Chrome\//.test(Bp),fy=/Opera\//.test(Bp),yie=/Apple Computer/.test(navigator.vendor),l8n=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Bp),c8n=/PhantomJS/.test(Bp),_H=yie&&(/Mobile\/\w+/.test(Bp)||navigator.maxTouchPoints>2),kie=/Android/.test(Bp),_z=_H||kie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Bp),am=_H||/Mac/.test(MEt),u8n=/\bCrOS\b/.test(Bp),a8n=/win/i.test(MEt),ME=fy&&Bp.match(/Version\/(\d*\.\d*)/);ME&&(ME=Number(ME[1]));ME&&ME>=15&&(fy=!1,R1=!0);var A8t=am&&(s8n||fy&&(ME==null||ME<12.11)),A9e=Q6||Tl&&vu>=9;function I_(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var QE=function(r,o){let l=r.className,a=I_(o).exec(l);if(a){let p=l.slice(a.index+a[0].length);r.className=l.slice(0,a.index)+(p?a[1]+p:"")}};function LC(r){for(let o=r.childNodes.length;o>0;--o)r.removeChild(r.firstChild);return r}function pb(r,o){return LC(r).appendChild(o)}function Zi(r,o,l,a){let p=document.createElement(r);if(l&&(p.className=l),a&&(p.style.cssText=a),typeof o=="string")p.appendChild(document.createTextNode(o));else if(o)for(let g=0;g=o)return w+(o-g);w+=y-g,w+=l-w%l,g=y+1}}var P_=class{constructor(){this.id=null,this.f=null,this.time=0,this.handler=L9e(this.onTimeout,this)}onTimeout(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)}set(r,o){this.f=o;const l=+new Date+r;(!this.id||l=o)return a+Math.min(w,o-p);if(p+=g-a,p+=l-p%l,a=g+1,p>=o)return a}}var Jte=[""];function $9e(r){for(;Jte.length<=r;)Jte.push(ec(Jte)+" ");return Jte[r]}function ec(r){return r[r.length-1]}function Sie(r,o){let l=[];for(let a=0;a"€"&&(r.toUpperCase()!=r.toLowerCase()||d8n.test(r))}function Mne(r,o){return o?o.source.indexOf("\\w")>-1&&H7e(r)?!0:o.test(r):H7e(r)}function $8t(r){for(let o in r)if(r.hasOwnProperty(o)&&r[o])return!1;return!0}var h8n=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function K7e(r){return r.charCodeAt(0)>=768&&h8n.test(r)}function LEt(r,o,l){for(;(l<0?o>0:ol?-1:1;for(;;){if(o==l)return o;let p=(o+l)/2,g=a<0?Math.ceil(p):Math.floor(p);if(g==o)return r(g)?o:l;r(g)?l=g:o=g+a}}function p8n(r,o,l,a){if(!r)return a(o,l,"ltr",0);let p=!1;for(let g=0;go||o==l&&w.to==o)&&(a(Math.max(w.from,o),Math.min(w.to,l),w.level==1?"rtl":"ltr",g),p=!0)}p||a(o,l,"ltr")}var xF=null;function Lz(r,o,l){let a;xF=null;for(let p=0;po)return p;g.to==o&&(g.from!=g.to&&l=="before"?a=p:xF=p),g.from==o&&(g.from!=g.to&&l!="before"?a=p:xF=p)}return a??xF}var g8n=function(){let r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",o="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(E){return E<=247?r.charAt(E):1424<=E&&E<=1524?"R":1536<=E&&E<=1785?o.charAt(E-1536):1774<=E&&E<=2220?"r":8192<=E&&E<=8203?"w":E==8204?"b":"L"}let a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,p=/[stwN]/,g=/[LRr]/,w=/[Lb1n]/,y=/[1n]/;function S(E,I,M){this.level=E,this.from=I,this.to=M}return function(E,I){let M=I=="ltr"?"L":"R";if(E.length==0||I=="ltr"&&!a.test(E))return!1;let _=E.length,R=[];for(let q=0;q<_;++q)R.push(l(E.charCodeAt(q)));for(let q=0,Q=M;q<_;++q){let Z=R[q];Z=="m"?R[q]=Q:Q=Z}for(let q=0,Q=M;q<_;++q){let Z=R[q];Z=="1"&&Q=="r"?R[q]="n":g.test(Z)&&(Q=Z,Z=="r"&&(R[q]="R"))}for(let q=1,Q=R[0];q<_-1;++q){let Z=R[q];Z=="+"&&Q=="1"&&R[q+1]=="1"?R[q]="1":Z==","&&Q==R[q+1]&&(Q=="1"||Q=="n")&&(R[q]=Q),Q=Z}for(let q=0;q<_;++q){let Q=R[q];if(Q==",")R[q]="N";else if(Q=="%"){let Z;for(Z=q+1;Z<_&&R[Z]=="%";++Z);let X=q&&R[q-1]=="!"||Z<_&&R[Z]=="1"?"1":"N";for(let ie=q;ie-1&&(a[o]=p.slice(0,g).concat(p.slice(g+1)))}}}function xf(r,o){let l=j9e(r,o);if(!l.length)return;let a=Array.prototype.slice.call(arguments,2);for(let p=0;p0}function U_(r){r.prototype.on=function(o,l){no(this,o,l)},r.prototype.off=function(o,l){db(this,o,l)}}function jp(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function DEt(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function U7e(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function $z(r){jp(r),DEt(r)}function D9e(r){return r.target||r.srcElement}function NEt(r){let o=r.which;return o==null&&(r.button&1?o=1:r.button&2?o=3:r.button&4&&(o=2)),am&&r.ctrlKey&&o==1&&(o=3),o}var b8n=function(){if(Tl&&vu<9)return!1;let r=Zi("div");return"draggable"in r||"dragDrop"in r}(),OCe;function w8n(r){if(OCe==null){let l=Zi("span","​");pb(r,Zi("span",[l,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(OCe=l.offsetWidth<=1&&l.offsetHeight>2&&!(Tl&&vu<8))}let o=OCe?Zi("span","​"):Zi("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return o.setAttribute("cm-text",""),o}var _Ce;function m8n(r){if(_Ce!=null)return _Ce;let o=pb(r,document.createTextNode("AخA")),l=FE(o,0,1).getBoundingClientRect(),a=FE(o,1,2).getBoundingClientRect();return LC(r),!l||l.left==l.right?!1:_Ce=a.right-l.right<3}var N9e=` - -b`.split(/\n/).length!=3?r=>{let o=0,l=[],a=r.length;for(;o<=a;){let p=r.indexOf(` -`,o);p==-1&&(p=r.length);let g=r.slice(o,r.charAt(p-1)=="\r"?p-1:p),w=g.indexOf("\r");w!=-1?(l.push(g.slice(0,w)),o+=w+1):(l.push(g),o=p+1)}return l}:r=>r.split(/\r\n?|\n/),v8n=window.getSelection?r=>{try{return r.selectionStart!=r.selectionEnd}catch{return!1}}:r=>{let o;try{o=r.ownerDocument.selection.createRange()}catch{}return!o||o.parentElement()!=r?!1:o.compareEndPoints("StartToEnd",o)!=0},y8n=(()=>{let r=Zi("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")})(),RCe=null;function k8n(r){if(RCe!=null)return RCe;let o=pb(r,Zi("span","x")),l=o.getBoundingClientRect(),a=FE(o,0,1).getBoundingClientRect();return RCe=Math.abs(l.left-a.left)>1}var B9e={},YO={};function C8n(r,o){arguments.length>2&&(o.dependencies=Array.prototype.slice.call(arguments,2)),B9e[r]=o}function S8n(r,o){YO[r]=o}function are(r){if(typeof r=="string"&&YO.hasOwnProperty(r))r=YO[r];else if(r&&typeof r.name=="string"&&YO.hasOwnProperty(r.name)){let o=YO[r.name];typeof o=="string"&&(o={name:o}),r=AEt(o,r),r.name=o.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return are("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return are("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}function F9e(r,o){o=are(o);let l=B9e[o.name];if(!l)return F9e(r,"text/plain");let a=l(r,o);if(u_.hasOwnProperty(o.name)){let p=u_[o.name];for(let g in p)p.hasOwnProperty(g)&&(a.hasOwnProperty(g)&&(a["_"+g]=a[g]),a[g]=p[g])}if(a.name=o.name,o.helperType&&(a.helperType=o.helperType),o.modeProps)for(let p in o.modeProps)a[p]=o.modeProps[p];return a}var u_={};function x8n(r,o){let l=u_.hasOwnProperty(r)?u_[r]:u_[r]={};zE(o,l)}function OE(r,o){if(o===!0)return o;if(r.copyState)return r.copyState(o);let l={};for(let a in o){let p=o[a];p instanceof Array&&(p=p.concat([])),l[a]=p}return l}function z9e(r,o){let l;for(;r.innerMode&&(l=r.innerMode(o),!(!l||l.mode==r));)o=l.state,r=l.mode;return l||{mode:r,state:o}}function BEt(r,o,l){return r.startState?r.startState(o,l):!0}var E8n=class{constructor(r,o,l){this.pos=this.start=0,this.string=r,this.tabSize=o||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l}eol(){return this.pos>=this.string.length}sol(){return this.pos==this.lineStart}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.poso}eatSpace(){let r=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r}skipToEnd(){this.pos=this.string.length}skipTo(r){let o=this.string.indexOf(r,this.pos);if(o>-1)return this.pos=o,!0}backUp(r){this.pos-=r}column(){return this.lastColumnPosl?g.toLowerCase():g,p=this.string.substr(this.pos,r.length);if(a(p)==a(r))return o!==!1&&(this.pos+=r.length),!0}else{let a=this.string.slice(this.pos).match(r);return a&&a.index>0?null:(a&&o!==!1&&(this.pos+=a[0].length),a)}}current(){return this.string.slice(this.start,this.pos)}hideFirstChars(r,o){this.lineStart+=r;try{return o()}finally{this.lineStart-=r}}lookAhead(r){let o=this.lineOracle;return o&&o.lookAhead(r)}baseToken(){let r=this.lineOracle;return r&&r.baseToken(this.pos)}},xie=E8n;function Ii(r,o){if(o-=r.first,o<0||o>=r.size)throw new Error("There is no line "+(o+r.first)+" in the document.");let l=r;for(;!l.lines;)for(let a=0;;++a){let p=l.children[a],g=p.chunkSize();if(o{let w=g.text;p==l.line&&(w=w.slice(0,l.ch)),p==o.line&&(w=w.slice(o.ch)),a.push(w),++p}),a}function ACe(r,o,l){let a=[];return r.iter(o,l,p=>{a.push(p.text)}),a}function T3(r,o){let l=o-r.height;if(l)for(let a=r;a;a=a.parent)a.height+=l}function gc(r){if(r.parent==null)return null;let o=r.parent,l=qh(o.lines,r);for(let a=o.parent;a;o=a,a=a.parent)for(let p=0;a.children[p]!=o;++p)l+=a.children[p].chunkSize();return l+o.first}function CE(r,o){let l=r.first;e:do{for(let p=0;p=r.first&&ol?nr(l,Ii(r,l).text.length):T8n(o,Ii(r,o.line).text.length)}function T8n(r,o){let l=r.ch;return l==null||l>o?nr(r.line,o):l<0?nr(r.line,0):r}function j8t(r,o){let l=[];for(let a=0;athis.maxLookAhead&&(this.maxLookAhead=o),l}baseToken(o){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=o;)this.baseTokenPos+=2;let l=this.baseTokens[this.baseTokenPos+1];return{type:l&&l.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-o}}nextLine(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--}static fromSaved(o,l,a){return l instanceof fre?new GF(o,OE(o.mode,l.state),a,l.lookAhead):new GF(o,OE(o.mode,l),a)}save(o){let l=o!==!1?OE(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new fre(l,this.maxLookAhead):l}};function zEt(r,o,l,a){let p=[r.state.modeGen],g={};F8t(r,o.text,r.doc.mode,l,(y,S)=>p.push(y,S),g,a);let w=l.state;for(let y=0;y{let R=E;for(;IM&&p.splice(E,1,M,p[E+1],j),E+=2,I=Math.min(M,j)}if(_)if(S.opaque)p.splice(R,E-R,M,"overlay "+_),E=R+2;else for(;Rr.options.maxHighlightLength&&OE(r.doc.mode,a.state),g=zEt(r,o,a);p&&(a.state=p),o.stateAfter=a.save(!p),o.styles=g.styles,g.classes?o.styleClasses=g.classes:o.styleClasses&&(o.styleClasses=null),l===r.doc.highlightFrontier&&(r.doc.modeFrontier=Math.max(r.doc.modeFrontier,++r.doc.highlightFrontier))}return o.styles}function RH(r,o,l){let a=r.doc,p=r.display;if(!a.mode.startState)return new GF(a,!0,o);let g=I8n(r,o,l),w=g>a.first&&Ii(a,g-1).stateAfter,y=w?GF.fromSaved(a,w,g):new GF(a,BEt(a.mode),g);return a.iter(g,o,S=>{K9e(r,S.text,y);let E=y.line;S.stateAfter=E==o-1||E%5==0||E>=p.viewFrom&&Eo.start)return g}throw new Error("Mode "+r.name+" failed to advance stream.")}var D8t=class{constructor(r,o,l){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=o||null,this.state=l}};function N8t(r,o,l,a){let p=r.doc,g=p.mode,w;o=Bo(p,o);let y=Ii(p,o.line),S=RH(r,o.line,l),E=new xie(y.text,r.options.tabSize,S),I;for(a&&(I=[]);(a||E.posr.options.maxHighlightLength?(y=!1,w&&K9e(r,o,a,I.pos),I.pos=o.length,M=null):M=B8t(U9e(l,I,a.state,_),g),_){let R=_[0].name;R&&(M="m-"+(M?R+" "+M:R))}if(!y||E!=M){for(;Sw;--y){if(y<=g.first)return g.first;let S=Ii(g,y-1),E=S.stateAfter;if(E&&(!l||y+(E instanceof fre?E.lookAhead:0)<=g.modeFrontier))return y;let I=rm(S.text,null,r.options.tabSize);(p==null||a>I)&&(p=y-1,a=I)}return p}function P8n(r,o){if(r.modeFrontier=Math.min(r.modeFrontier,o),r.highlightFrontierl;a--){let p=Ii(r,a).stateAfter;if(p&&(!(p instanceof fre)||a+p.lookAhead=o:g.to>o);(a||(a=[])).push(new Iie(w,g.from,S?null:g.to))}}return a}function L8n(r,o,l){let a;if(r)for(let p=0;p=o:g.to>o)||g.from==o&&w.type=="bookmark"&&(!l||g.marker.insertLeft)){let S=g.from==null||(w.inclusiveLeft?g.from<=o:g.from0&&y)for(let j=0;j{if(g.markedSpans)for(let w=0;w0)continue;let I=[S,1],M=Fo(E.from,y.from),_=Fo(E.to,y.to);(M<0||!w.inclusiveLeft&&!M)&&I.push({from:E.from,to:y.from}),(_>0||!w.inclusiveRight&&!_)&&I.push({from:y.to,to:E.to}),p.splice.apply(p,I),S+=I.length-3}}return p}function GEt(r){let o=r.markedSpans;if(o){for(let l=0;lo)&&(!a||G9e(a,g.marker)<0)&&(a=g.marker)}return a}function H8t(r,o,l,a,p){let g=Ii(r,o),w=Z6&&g.markedSpans;if(w)for(let y=0;y=0&&M<=0||I<=0&&M>=0)&&(I<=0&&(S.marker.inclusiveRight&&p.inclusiveLeft?Fo(E.to,l)>=0:Fo(E.to,l)>0)||I>=0&&(S.marker.inclusiveRight&&p.inclusiveLeft?Fo(E.from,a)<=0:Fo(E.from,a)<0)))return!0}}function I3(r){let o;for(;o=qEt(r);)r=o.find(-1,!0).line;return r}function D8n(r){let o;for(;o=Pie(r);)r=o.find(1,!0).line;return r}function N8n(r){let o,l;for(;o=Pie(r);)r=o.find(1,!0).line,(l||(l=[])).push(r);return l}function W9e(r,o){let l=Ii(r,o),a=I3(l);return l==a?o:gc(a)}function XEt(r,o){if(o>r.lastLine())return o;let l=Ii(r,o),a;if(!jC(r,l))return o;for(;a=Pie(l);)l=a.find(1,!0).line;return gc(l)+1}function jC(r,o){let l=Z6&&o.markedSpans;if(l){for(let a,p=0;p{let p=pre(a);p>o.maxLineLength&&(o.maxLineLength=p,o.maxLine=a)})}var Nz=class{constructor(r,o,l){this.text=r,WEt(this,o),this.height=l?l(this):1}lineNo(){return gc(this)}};U_(Nz);function B8n(r,o,l,a){r.text=o,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),GEt(r),WEt(r,l);let p=a?a(r):1;p!=r.height&&T3(r,p)}function F8n(r){r.parent=null,GEt(r)}var z8n={},H8n={};function K8t(r,o){if(!r||/^\s*$/.test(r))return null;let l=o.addModeClass?H8n:z8n;return l[r]||(l[r]=r.replace(/\S+/g,"cm-$&"))}function YEt(r,o){let l=c_("span",null,null,R1?"padding-right: .1px":null),a={pre:c_("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.getOption("lineWrapping")};o.measure={};for(let p=0;p<=(o.rest?o.rest.length:0);p++){let g=p?o.rest[p-1]:o.line,w;a.pos=0,a.addToken=U8n,m8n(r.display.measure)&&(w=lk(g,r.doc.direction))&&(a.addToken=W8n(a.addToken,w)),a.map=[];let y=o!=r.display.externalMeasured&&gc(g);V8n(g,a,HEt(r,g,y)),g.styleClasses&&(g.styleClasses.bgClass&&(a.bgClass=PCe(g.styleClasses.bgClass,a.bgClass||"")),g.styleClasses.textClass&&(a.textClass=PCe(g.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(w8n(r.display.measure))),p==0?(o.measure.map=a.map,o.measure.cache={}):((o.measure.maps||(o.measure.maps=[])).push(a.map),(o.measure.caches||(o.measure.caches=[])).push({}))}if(R1){let p=a.content.lastChild;(/\bcm-tab\b/.test(p.className)||p.querySelector&&p.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return xf(r,"renderLine",r,o.line,a.pre),a.pre.className&&(a.textClass=PCe(a.pre.className,a.textClass||"")),a}function K8n(r){let o=Zi("span","•","cm-invalidchar");return o.title="\\u"+r.charCodeAt(0).toString(16),o.setAttribute("aria-label",o.title),o}function U8n(r,o,l,a,p,g,w){if(!o)return;let y=r.splitSpaces?G8n(o,r.trailingSpace):o,S=r.cm.state.specialChars,E=!1,I;if(!S.test(o))r.col+=o.length,I=document.createTextNode(y),r.map.push(r.pos,r.pos+o.length,I),Tl&&vu<9&&(E=!0),r.pos+=o.length;else{I=document.createDocumentFragment();let M=0;for(;;){S.lastIndex=M;let _=S.exec(o),R=_?_.index-M:o.length-M;if(R){let K=document.createTextNode(y.slice(M,M+R));Tl&&vu<9?I.appendChild(Zi("span",[K])):I.appendChild(K),r.map.push(r.pos,r.pos+R,K),r.col+=R,r.pos+=R}if(!_)break;M+=R+1;let j;if(_[0]==" "){let K=r.cm.options.tabSize,q=K-r.col%K;j=I.appendChild(Zi("span",$9e(q),"cm-tab")),j.setAttribute("role","presentation"),j.setAttribute("cm-text"," "),r.col+=q}else _[0]=="\r"||_[0]==` -`?(j=I.appendChild(Zi("span",_[0]=="\r"?"␍":"␤","cm-invalidchar")),j.setAttribute("cm-text",_[0]),r.col+=1):(j=r.cm.options.specialCharPlaceholder(_[0]),j.setAttribute("cm-text",_[0]),Tl&&vu<9?I.appendChild(Zi("span",[j])):I.appendChild(j),r.col+=1);r.map.push(r.pos,r.pos+1,j),r.pos++}}if(r.trailingSpace=y.charCodeAt(o.length-1)==32,l||a||p||E||g||w){let M=l||"";a&&(M+=a),p&&(M+=p);let _=Zi("span",[I],M,g);if(w)for(let R in w)w.hasOwnProperty(R)&&R!="style"&&R!="class"&&_.setAttribute(R,w[R]);return r.content.appendChild(_)}r.content.appendChild(I)}function G8n(r,o){if(r.length>1&&!/ /.test(r))return r;let l=o,a="";for(let p=0;p{p=p?p+" cm-force-border":"cm-force-border";let E=l.pos,I=E+a.length;for(;;){let M;for(let _=0;_E&&M.from<=E));_++);if(M.to>=I)return r(l,a,p,g,w,y,S);r(l,a.slice(0,M.to-E),p,g,null,y,S),g=null,a=a.slice(M.to-E),E=M.to}}}function U8t(r,o,l,a){let p=!a&&l.widgetNode;p&&r.map.push(r.pos,r.pos+o,p),!a&&r.cm.display.input.needsContentAttribute&&(p||(p=r.content.appendChild(document.createElement("span"))),p.setAttribute("cm-marker",l.id)),p&&(r.cm.display.input.setUneditable(p),r.content.appendChild(p)),r.pos+=o,r.trailingSpace=!1}function V8n(r,o,l){let a=r.markedSpans,p=r.text,g=0;if(!a){for(let Z=1;Zy||mt.collapsed&&et.to==y&&et.from==y)){if(et.to!=null&&et.to!=y&&_>et.to&&(_=et.to,j=""),mt.className&&(R+=" "+mt.className),mt.css&&(M=(M?M+";":"")+mt.css),mt.startStyle&&et.from==y&&(K+=" "+mt.startStyle),mt.endStyle&&et.to==_&&(ie||(ie=[])).push(mt.endStyle,et.to),mt.title&&((Q||(Q={})).title=mt.title),mt.attributes)for(let bt in mt.attributes)(Q||(Q={}))[bt]=mt.attributes[bt];mt.collapsed&&(!q||G9e(q.marker,mt)<0)&&(q=et)}else et.from>y&&_>et.from&&(_=et.from)}if(ie)for(let je=0;je=w)break;let Z=Math.min(w,_);for(;;){if(E){let X=y+E.length;if(!q){let ie=X>Z?E.slice(0,Z-y):E;o.addToken(o,ie,I?I+R:R,K,y+ie.length==_?j:"",M,Q)}if(X>=Z){E=E.slice(Z-y),y=Z;break}y=X,K=""}E=p.slice(g,g=l[S++]),I=K8t(l[S++],o.cm.options)}}}function JEt(r,o,l){this.line=o,this.rest=N8n(o),this.size=this.rest?gc(ec(this.rest))-l+1:1,this.node=this.text=null,this.hidden=jC(r,o)}function One(r,o,l){let a=[],p;for(let g=o;gl[g].apply(null,a))}function J8n(){let r=WF;WF=null;for(let o=0;o2&&g.push((S.bottom+E.top)/2-l.top)}}g.push(l.bottom-l.top)}}function rTt(r,o,l){if(r.line==o)return{map:r.measure.map,cache:r.measure.cache};for(let a=0;al)return{map:r.measure.maps[a],cache:r.measure.caches[a],before:!0}}function iCn(r,o){o=I3(o);let l=gc(o),a=r.display.externalMeasured=new JEt(r.doc,o,l);a.lineN=l;let p=a.built=YEt(r,a);return a.text=p.pre,pb(r.display.lineMeasure,p.pre),a}function iTt(r,o,l,a){return M3(r,G_(r,o),l,a)}function J9e(r,o){if(o>=r.display.viewFrom&&o=l.lineN&&oo)&&(g=S-y,p=g-1,o>=S&&(w="right")),p!=null){if(a=r[E+2],y==S&&l==(a.insertLeft?"left":"right")&&(w=l),l=="left"&&p==0)for(;E&&r[E-2]==r[E-3]&&r[E-1].insertLeft;)a=r[(E-=3)+2],w="left";if(l=="right"&&p==S-y)for(;E=0&&(l=r[a]).left==l.right;a--);return l}function sCn(r,o,l,a){let p=sTt(o.map,l,a),g=p.node,w=p.start,y=p.end,S=p.collapse,E;if(g.nodeType==3){for(let Z=0;Z<4;Z++){for(;w&&K7e(o.line.text.charAt(p.coverStart+w));)--w;for(;p.coverStart+y0&&(S=a="right");let Z;r.options.lineWrapping&&(Z=g.getClientRects()).length>1?E=Z[a=="right"?Z.length-1:0]:E=g.getBoundingClientRect()}if(Tl&&vu<9&&!w&&(!E||!E.left&&!E.right)){let Z=g.parentNode.getClientRects()[0];Z?E={left:Z.left,right:Z.left+W_(r.display),top:Z.top,bottom:Z.bottom}:E=oTt}let I=E.top-o.rect.top,M=E.bottom-o.rect.top,_=(I+M)/2,R=o.view.measure.heights,j=0;for(;j=a.text.length?(S=a.text.length,E="before"):S<=0&&(S=0,E="after"),!y)return w(E=="before"?S-1:S,E=="before");function I(j,K,q){let Q=y[K],Z=Q.level==1;return w(q?j-1:j,Z!=q)}let M=Lz(y,S,E),_=xF,R=I(S,M,E=="before");return _!=null&&(R.other=I(S,_,E!="before")),R}function V8t(r,o){let l=0;o=Bo(r.doc,o),r.options.lineWrapping||(l=W_(r.display)*o.ch);let a=Ii(r.doc,o.line),p=ek(a)+Mie(r.display);return{left:l,right:l,top:p,bottom:p+a.height}}function Y7e(r,o,l,a,p){let g=nr(r,o,l);return g.xRel=p,a&&(g.outside=a),g}function Z9e(r,o,l){let a=r.doc;if(l+=r.display.viewOffset,l<0)return Y7e(a.first,0,null,-1,-1);let p=CE(a,l),g=a.first+a.size-1;if(p>g)return Y7e(a.first+a.size-1,Ii(a,g).text.length,null,1,1);o<0&&(o=0);let w=Ii(a,p);for(;;){let y=cCn(r,w,p,o,l),S=j8n(w,y.ch+(y.xRel>0||y.outside>0?1:0));if(!S)return y;let E=S.find(1);if(E.line==p)return E;w=Ii(a,p=E.line)}}function fTt(r,o,l,a){a-=Q9e(o);let p=o.text.length,g=Az(w=>M3(r,l,w-1).bottom<=a,p,0);return p=Az(w=>M3(r,l,w).top>a,g,p),{begin:g,end:p}}function dTt(r,o,l,a){l||(l=G_(r,o));let p=Oie(r,o,M3(r,l,a),"line").top;return fTt(r,o,l,p)}function J7e(r,o,l,a){return r.bottom<=l?!1:r.top>l?!0:(a?r.left:r.right)>o}function cCn(r,o,l,a,p){p-=ek(o);let g=G_(r,o),w=Q9e(o),y=0,S=o.text.length,E=!0,I=lk(o,r.doc.direction);if(I){let Q=(r.options.lineWrapping?aCn:uCn)(r,o,l,g,I,a,p);E=Q.level!=1,y=E?Q.from:Q.to-1,S=E?Q.to:Q.from-1}let M=null,_=null,R=Az(Q=>{let Z=M3(r,g,Q);return Z.top+=w,Z.bottom+=w,J7e(Z,a,p,!1)?(Z.top<=p&&Z.left<=a&&(M=Q,_=Z),!0):!1},y,S),j,K,q=!1;if(_){let Q=a-_.left<_.right-a,Z=Q==E;R=M+(Z?0:1),K=Z?"after":"before",j=Q?_.left:_.right}else{!E&&(R==S||R==y)&&R++,K=R==0?"after":R==o.text.length?"before":M3(r,g,R-(E?1:0)).bottom+w<=p==E?"after":"before";let Q=ly(r,nr(l,R,K),"line",o,g);j=Q.left,q=p=Q.bottom?1:0}return R=LEt(o.text,R,1),Y7e(l,R,K,q,a-j)}function uCn(r,o,l,a,p,g,w){let y=Az(E=>{let I=p[E],M=I.level!=1;return J7e(ly(r,nr(l,M?I.to:I.from,M?"before":"after"),"line",o,a),g,w,!0)},0,p.length-1),S=p[y];if(y>0){let E=S.level!=1,I=ly(r,nr(l,E?S.from:S.to,E?"after":"before"),"line",o,a);J7e(I,g,w,!0)&&I.top>w&&(S=p[y-1])}return S}function aCn(r,o,l,a,p,g,w){let{begin:y,end:S}=fTt(r,o,a,w);/\s/.test(o.text.charAt(S-1))&&S--;let E=null,I=null;for(let M=0;M=S||_.to<=y)continue;let R=_.level!=1,j=M3(r,a,R?Math.min(S,_.to)-1:Math.max(y,_.from)).right,K=jK)&&(E=_,I=K)}return E||(E=p[p.length-1]),E.fromS&&(E={from:E.from,to:S,level:E.level}),E}var sE;function M_(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(sE==null){sE=Zi("pre",null,"CodeMirror-line-like");for(let l=0;l<49;++l)sE.appendChild(document.createTextNode("x")),sE.appendChild(Zi("br"));sE.appendChild(document.createTextNode("x"))}pb(r.measure,sE);let o=sE.offsetHeight/50;return o>3&&(r.cachedTextHeight=o),LC(r.measure),o||1}function W_(r){if(r.cachedCharWidth!=null)return r.cachedCharWidth;let o=Zi("span","xxxxxxxxxx"),l=Zi("pre",[o],"CodeMirror-line-like");pb(r.measure,l);let a=o.getBoundingClientRect(),p=(a.right-a.left)/10;return p>2&&(r.cachedCharWidth=p),p||10}function exe(r){let o=r.display,l={},a={},p=o.gutters.clientLeft;for(let g=o.gutters.firstChild,w=0;g;g=g.nextSibling,++w){let y=r.display.gutterSpecs[w].className;l[y]=g.offsetLeft+g.clientLeft+p,a[y]=g.clientWidth}return{fixedPos:txe(o),gutterTotalWidth:o.gutters.offsetWidth,gutterLeft:l,gutterWidth:a,wrapperWidth:o.wrapper.clientWidth}}function txe(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}function hTt(r){let o=M_(r.display),l=r.options.lineWrapping,a=l&&Math.max(5,r.display.scroller.clientWidth/W_(r.display)-3);return p=>{if(jC(r.doc,p))return 0;let g=0;if(p.widgets)for(let w=0;w{let p=l(a);p!=a.height&&T3(a,p)})}function HE(r,o,l,a){let p=r.display;if(!l&&D9e(o).getAttribute("cm-not-content")=="true")return null;let g,w,y=p.lineSpace.getBoundingClientRect();try{g=o.clientX-y.left,w=o.clientY-y.top}catch{return null}let S=Z9e(r,g,w),E;if(a&&S.xRel>0&&(E=Ii(r.doc,S.line).text).length==S.ch){let I=rm(E,E.length,r.options.tabSize)-E.length;S=nr(S.line,Math.max(0,Math.round((g-nTt(r.display).left)/W_(r.display))-I))}return S}function KE(r,o){if(o>=r.display.viewTo||(o-=r.display.viewFrom,o<0))return null;let l=r.display.view;for(let a=0;ao)&&(p.updateLineNumbers=o),r.curOp.viewChanged=!0,o>=p.viewTo)Z6&&W9e(r.doc,o)p.viewFrom?mC(r):(p.viewFrom+=a,p.viewTo+=a);else if(o<=p.viewFrom&&l>=p.viewTo)mC(r);else if(o<=p.viewFrom){let w=Qte(r,l,l+a,1);w?(p.view=p.view.slice(w.index),p.viewFrom=w.lineN,p.viewTo+=a):mC(r)}else if(l>=p.viewTo){let w=Qte(r,o,o,-1);w?(p.view=p.view.slice(0,w.index),p.viewTo=w.lineN):mC(r)}else{let w=Qte(r,o,o,-1),y=Qte(r,l,l+a,1);w&&y?(p.view=p.view.slice(0,w.index).concat(One(r,w.lineN,y.lineN)).concat(p.view.slice(y.index)),p.viewTo+=a):mC(r)}let g=p.externalMeasured;g&&(l=p.lineN&&o=a.viewTo)return;let g=a.view[KE(r,o)];if(g.node==null)return;let w=g.changes||(g.changes=[]);qh(w,l)==-1&&w.push(l)}function mC(r){r.display.viewFrom=r.display.viewTo=r.doc.first,r.display.view=[],r.display.viewOffset=0}function Qte(r,o,l,a){let p=KE(r,o),g,w=r.display.view;if(!Z6||l==r.doc.first+r.doc.size)return{index:p,lineN:l};let y=r.display.viewFrom;for(let S=0;S0){if(p==w.length-1)return null;g=y+w[p].size-o,p++}else g=y-o;o+=g,l+=g}for(;W9e(r.doc,l)!=l;){if(p==(a<0?0:w.length-1))return null;l+=a*w[p-(a<0?1:0)].size,p+=a}return{index:p,lineN:l}}function fCn(r,o,l){let a=r.display;a.view.length==0||o>=a.viewTo||l<=a.viewFrom?(a.view=One(r,o,l),a.viewFrom=o):(a.viewFrom>o?a.view=One(r,o,a.viewFrom).concat(a.view):a.viewFroml&&(a.view=a.view.slice(0,KE(r,l)))),a.viewTo=l}function q8t(r){let o=r.display.view,l=0;for(let a=0;a=r.display.viewTo||y.to().line{let xe=Be=="ltr",U=je(bt,xe?"left":"right"),He=je(ce-1,xe?"right":"left"),yt=K==null&&bt==0,ft=q==null&&ce==Z,At=ae==0,Jt=!mt||ae==mt.length-1;if(He.top-U.top<=3){let un=(E?yt:ft)&&At,kn=(E?ft:yt)&&Jt,qt=un?y:(xe?U:He).left,on=kn?S:(xe?He:U).right;I(qt,U.top,on-qt,U.bottom)}else{let un,kn,qt,on;xe?(un=E&&yt&&At?y:U.left,kn=E?S:et(bt,Be,"before"),qt=E?y:et(ce,Be,"after"),on=E&&ft&&Jt?S:He.right):(un=E?et(bt,Be,"before"):y,kn=!E&&yt&&At?S:U.right,qt=!E&&ft&&Jt?y:He.left,on=E?et(ce,Be,"after"):S),I(un,U.top,kn-un,U.bottom),U.bottom0?o.blinker=setInterval(()=>{r.hasFocus()||V_(r),o.cursorDiv.style.visibility=(l=!l)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(o.cursorDiv.style.visibility="hidden")}function bTt(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||oxe(r))}function ixe(r){r.state.delayingBlurEvent=!0,setTimeout(()=>{r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&V_(r))},100)}function oxe(r,o){r.state.delayingBlurEvent&&!r.state.draggingText&&(r.state.delayingBlurEvent=!1),r.options.readOnly!="nocursor"&&(r.state.focused||(xf(r,"focus",r,o),r.state.focused=!0,ZE(r.display.wrapper,"CodeMirror-focused"),!r.curOp&&r.display.selForContextMenu!=r.doc.sel&&(r.display.input.reset(),R1&&setTimeout(()=>r.display.input.reset(!0),20)),r.display.input.receivedFocus()),rxe(r))}function V_(r,o){r.state.delayingBlurEvent||(r.state.focused&&(xf(r,"blur",r,o),r.state.focused=!1,QE(r.display.wrapper,"CodeMirror-focused")),clearInterval(r.display.blinker),setTimeout(()=>{r.state.focused||(r.display.shift=!1)},150))}function _ie(r){let o=r.display,l=o.lineDiv.offsetTop;for(let a=0;a.005||S<-.005)&&(T3(p.line,w),X8t(p.line),p.rest))for(let E=0;Er.display.sizerWidth){let E=Math.ceil(y/W_(r.display));E>r.display.maxLineLength&&(r.display.maxLineLength=E,r.display.maxLine=p.line,r.display.maxLineChanged=!0)}}}function X8t(r){if(r.widgets)for(let o=0;o=w&&(g=CE(o,ek(Ii(o,S))-r.wrapper.clientHeight),w=S)}return{from:g,to:Math.max(w,g+1)}}function hCn(r,o){if(Td(r,"scrollCursorIntoView"))return;let l=r.display,a=l.sizer.getBoundingClientRect(),p=null;if(o.top+a.top<0?p=!0:o.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(p=!1),p!=null&&!c8n){let g=Zi("div","​",null,`position: absolute; - top: ${o.top-l.viewOffset-Mie(r.display)}px; - height: ${o.bottom-o.top+P3(r)+l.barHeight}px; - left: ${o.left}px; width: ${Math.max(2,o.right-o.left)}px;`);r.display.lineSpace.appendChild(g),g.scrollIntoView(p),r.display.lineSpace.removeChild(g)}}function pCn(r,o,l,a){a==null&&(a=0);let p;!r.options.lineWrapping&&o==l&&(o=o.ch?nr(o.line,o.sticky=="before"?o.ch-1:o.ch,"after"):o,l=o.sticky=="before"?nr(o.line,o.ch+1,"before"):o);for(let g=0;g<5;g++){let w=!1,y=ly(r,o),S=!l||l==o?y:ly(r,l);p={left:Math.min(y.left,S.left),top:Math.min(y.top,S.top)-a,right:Math.max(y.left,S.left),bottom:Math.max(y.bottom,S.bottom)+a};let E=sxe(r,p),I=r.doc.scrollTop,M=r.doc.scrollLeft;if(E.scrollTop!=null&&(AH(r,E.scrollTop),Math.abs(r.doc.scrollTop-I)>1&&(w=!0)),E.scrollLeft!=null&&(tT(r,E.scrollLeft),Math.abs(r.doc.scrollLeft-M)>1&&(w=!0)),!w)break}return p}function gCn(r,o){let l=sxe(r,o);l.scrollTop!=null&&AH(r,l.scrollTop),l.scrollLeft!=null&&tT(r,l.scrollLeft)}function sxe(r,o){let l=r.display,a=M_(r.display);o.top<0&&(o.top=0);let p=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:l.scroller.scrollTop,g=Y9e(r),w={};o.bottom-o.top>g&&(o.bottom=o.top+g);let y=r.doc.height+X9e(l),S=o.topy-a;if(o.topp+g){let j=Math.min(o.top,(E?y:o.bottom)-g);j!=p&&(w.scrollTop=j)}let I=r.options.fixedGutter?0:l.gutters.offsetWidth,M=r.curOp&&r.curOp.scrollLeft!=null?r.curOp.scrollLeft:l.scroller.scrollLeft-I,_=eT(r)-l.gutters.offsetWidth,R=o.right-o.left>_;return R&&(o.right=o.left+_),o.left<10?w.scrollLeft=0:o.left_+M-3&&(w.scrollLeft=o.right+(R?0:10)-_),w}function lxe(r,o){o!=null&&(Rie(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+o)}function q_(r){Rie(r);let o=r.getCursor();r.curOp.scrollToPos={from:o,to:o,margin:r.options.cursorScrollMargin}}function qF(r,o,l){(o!=null||l!=null)&&Rie(r),o!=null&&(r.curOp.scrollLeft=o),l!=null&&(r.curOp.scrollTop=l)}function bCn(r,o){Rie(r),r.curOp.scrollToPos=o}function Rie(r){let o=r.curOp.scrollToPos;if(o){r.curOp.scrollToPos=null;let l=V8t(r,o.from),a=V8t(r,o.to);wTt(r,l,a,o.margin)}}function wTt(r,o,l,a){let p=sxe(r,{left:Math.min(o.left,l.left),top:Math.min(o.top,l.top)-a,right:Math.max(o.right,l.right),bottom:Math.max(o.bottom,l.bottom)+a});qF(r,p.scrollLeft,p.scrollTop)}function AH(r,o){Math.abs(r.doc.scrollTop-o)<2||(Q6||Q7e(r,{top:o}),mTt(r,o,!0),Q6&&Q7e(r),LH(r,100))}function mTt(r,o,l){o=Math.max(0,Math.min(r.display.scroller.scrollHeight-r.display.scroller.clientHeight,o)),!(r.display.scroller.scrollTop==o&&!l)&&(r.doc.scrollTop=o,r.display.scrollbars.setScrollTop(o),r.display.scroller.scrollTop!=o&&(r.display.scroller.scrollTop=o))}function tT(r,o,l,a){o=Math.max(0,Math.min(o,r.display.scroller.scrollWidth-r.display.scroller.clientWidth)),!((l?o==r.doc.scrollLeft:Math.abs(r.doc.scrollLeft-o)<2)&&!a)&&(r.doc.scrollLeft=o,STt(r),r.display.scroller.scrollLeft!=o&&(r.display.scroller.scrollLeft=o),r.display.scrollbars.setScrollLeft(o))}function Hz(r){let o=r.display,l=o.gutters.offsetWidth,a=Math.round(r.doc.height+X9e(r.display));return{clientHeight:o.scroller.clientHeight,viewHeight:o.wrapper.clientHeight,scrollWidth:o.scroller.scrollWidth,clientWidth:o.scroller.clientWidth,viewWidth:o.wrapper.clientWidth,barLeft:r.options.fixedGutter?l:0,docHeight:a,scrollHeight:a+P3(r)+o.barHeight,nativeBarWidth:o.nativeBarWidth,gutterWidth:l}}var wCn=class{constructor(r,o,l){this.cm=l;let a=this.vert=Zi("div",[Zi("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),p=this.horiz=Zi("div",[Zi("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=p.tabIndex=-1,r(a),r(p),no(a,"scroll",()=>{a.clientHeight&&o(a.scrollTop,"vertical")}),no(p,"scroll",()=>{p.clientWidth&&o(p.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Tl&&vu<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}update(r){let o=r.scrollWidth>r.clientWidth+1,l=r.scrollHeight>r.clientHeight+1,a=r.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=o?a+"px":"0";let p=r.viewHeight-(o?a:0);this.vert.firstChild.style.height=Math.max(0,r.scrollHeight-r.clientHeight+p)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(o){this.horiz.style.display="block",this.horiz.style.right=l?a+"px":"0",this.horiz.style.left=r.barLeft+"px";let p=r.viewWidth-r.barLeft-(l?a:0);this.horiz.firstChild.style.width=Math.max(0,r.scrollWidth-r.clientWidth+p)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&r.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?a:0,bottom:o?a:0}}setScrollLeft(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")}setScrollTop(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")}zeroWidthHack(){let r=am&&!l8n?"12px":"18px";this.horiz.style.height=this.vert.style.width=r,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new P_,this.disableVert=new P_}enableZeroWidthBar(r,o,l){r.style.pointerEvents="auto";function a(){let p=r.getBoundingClientRect();(l=="vert"?document.elementFromPoint(p.right-1,(p.top+p.bottom)/2):document.elementFromPoint((p.right+p.left)/2,p.bottom-1))!=r?r.style.pointerEvents="none":o.set(1e3,a)}o.set(1e3,a)}clear(){let r=this.horiz.parentNode;r.removeChild(this.horiz),r.removeChild(this.vert)}},mCn=class{update(){return{bottom:0,right:0}}setScrollLeft(){}setScrollTop(){}clear(){}};function O_(r,o){o||(o=Hz(r));let l=r.display.barWidth,a=r.display.barHeight;Y8t(r,o);for(let p=0;p<4&&l!=r.display.barWidth||a!=r.display.barHeight;p++)l!=r.display.barWidth&&r.options.lineWrapping&&_ie(r),Y8t(r,Hz(r)),l=r.display.barWidth,a=r.display.barHeight}function Y8t(r,o){let l=r.display,a=l.scrollbars.update(o);l.sizer.style.paddingRight=(l.barWidth=a.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=a.bottom)+"px",l.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=a.bottom+"px",l.scrollbarFiller.style.width=a.right+"px"):l.scrollbarFiller.style.display="",a.bottom&&r.options.coverGutterNextToScrollbar&&r.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=a.bottom+"px",l.gutterFiller.style.width=o.gutterWidth+"px"):l.gutterFiller.style.display=""}var vTt={native:wCn,null:mCn};function yTt(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&QE(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new vTt[r.options.scrollbarStyle](o=>{r.display.wrapper.insertBefore(o,r.display.scrollbarFiller),no(o,"mousedown",()=>{r.state.focused&&setTimeout(()=>r.display.input.focus(),0)}),o.setAttribute("cm-not-content","true")},(o,l)=>{l=="horizontal"?tT(r,o):AH(r,o)},r),r.display.scrollbars.addClass&&ZE(r.display.wrapper,r.display.scrollbars.addClass)}var vCn=0;function nT(r){r.curOp={cm:r,viewChanged:!1,startHeight:r.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++vCn},q8n(r.curOp)}function rT(r){let o=r.curOp;o&&Y8n(o,l=>{for(let a=0;a=l.viewTo)||l.maxLineChanged&&o.options.lineWrapping,r.update=r.mustUpdate&&new kTt(o,r.mustUpdate&&{top:r.scrollTop,ensure:r.scrollToPos},r.forceUpdate)}function CCn(r){r.updatedDisplay=r.mustUpdate&&cxe(r.cm,r.update)}function SCn(r){let o=r.cm,l=o.display;r.updatedDisplay&&_ie(o),r.barMeasure=Hz(o),l.maxLineChanged&&!o.options.lineWrapping&&(r.adjustWidthTo=iTt(o,l.maxLine,l.maxLine.text.length).left+3,o.display.sizerWidth=r.adjustWidthTo,r.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+r.adjustWidthTo+P3(o)+o.display.barWidth),r.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+r.adjustWidthTo-eT(o))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=l.input.prepareSelection())}function xCn(r){let o=r.cm;r.adjustWidthTo!=null&&(o.display.sizer.style.minWidth=r.adjustWidthTo+"px",r.maxScrollLeft=r.display.viewTo)return;let l=+new Date+r.options.workTime,a=RH(r,o.highlightFrontier),p=[];o.iter(a.line,Math.min(o.first+o.size,r.display.viewTo+500),g=>{if(a.line>=r.display.viewFrom){let w=g.styles,y=g.text.length>r.options.maxHighlightLength?OE(o.mode,a.state):null,S=zEt(r,g,a,!0);y&&(a.state=y),g.styles=S.styles;let E=g.styleClasses,I=S.classes;I?g.styleClasses=I:E&&(g.styleClasses=null);let M=!w||w.length!=g.styles.length||E!=I&&(!E||!I||E.bgClass!=I.bgClass||E.textClass!=I.textClass);for(let _=0;!M&&_l)return LH(r,r.options.workDelay),!0}),o.highlightFrontier=a.line,o.modeFrontier=Math.max(o.modeFrontier,a.line),p.length&&qg(r,()=>{for(let g=0;g=l.viewFrom&&o.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&q8t(r)==0)return!1;xTt(r)&&(mC(r),o.dims=exe(r));let p=a.first+a.size,g=Math.max(o.visible.from-r.options.viewportMargin,a.first),w=Math.min(p,o.visible.to+r.options.viewportMargin);l.viewFromw&&l.viewTo-w<20&&(w=Math.min(p,l.viewTo)),Z6&&(g=W9e(r.doc,g),w=XEt(r.doc,w));let y=g!=l.viewFrom||w!=l.viewTo||l.lastWrapHeight!=o.wrapperHeight||l.lastWrapWidth!=o.wrapperWidth;fCn(r,g,w),l.viewOffset=ek(Ii(r.doc,l.viewFrom)),r.display.mover.style.top=l.viewOffset+"px";let S=q8t(r);if(!y&&S==0&&!o.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;let E=PCn(r);return S>4&&(l.lineDiv.style.display="none"),OCn(r,l.updateLineNumbers,o.dims),S>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,MCn(E),LC(l.cursorDiv),LC(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,y&&(l.lastWrapHeight=o.wrapperHeight,l.lastWrapWidth=o.wrapperWidth,LH(r,400)),l.updateLineNumbers=null,!0}function CTt(r,o){let l=o.viewport;for(let a=!0;;a=!1){if(!a||!r.options.lineWrapping||o.oldDisplayWidth==eT(r)){if(l&&l.top!=null&&(l={top:Math.min(r.doc.height+X9e(r.display)-Y9e(r),l.top)}),o.visible=gre(r.display,r.doc,l),o.visible.from>=r.display.viewFrom&&o.visible.to<=r.display.viewTo)break}else a&&(o.visible=gre(r.display,r.doc,l));if(!cxe(r,o))break;_ie(r);let p=Hz(r);VF(r),O_(r,p),axe(r,p),o.force=!1}o.signal(r,"update",r),(r.display.viewFrom!=r.display.reportedViewFrom||r.display.viewTo!=r.display.reportedViewTo)&&(o.signal(r,"viewportChange",r,r.display.viewFrom,r.display.viewTo),r.display.reportedViewFrom=r.display.viewFrom,r.display.reportedViewTo=r.display.viewTo)}function Q7e(r,o){let l=new kTt(r,o);if(cxe(r,l)){_ie(r),CTt(r,l);let a=Hz(r);VF(r),O_(r,a),axe(r,a),l.finish()}}function OCn(r,o,l){let a=r.display,p=r.options.lineNumbers,g=a.lineDiv,w=g.firstChild;function y(I){let M=I.nextSibling;return R1&&am&&r.display.currentWheelTarget==I?I.style.display="none":I.parentNode.removeChild(I),M}let S=a.view,E=a.viewFrom;for(let I=0;I-1&&(_=!1),QEt(r,M,E,l)),_&&(LC(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(H9e(r.options,E)))),w=M.node.nextSibling}E+=M.size}for(;w;)w=y(w)}function uxe(r){let o=r.gutters.offsetWidth;r.sizer.style.marginLeft=o+"px",Od(r,"gutterChanged",r)}function axe(r,o){r.display.sizer.style.minHeight=o.docHeight+"px",r.display.heightForcer.style.top=o.docHeight+"px",r.display.gutters.style.height=o.docHeight+r.display.barHeight+P3(r)+"px"}function STt(r){let o=r.display,l=o.view;if(!o.alignWidgets&&(!o.gutters.firstChild||!r.options.fixedGutter))return;let a=txe(o)-o.scroller.scrollLeft+r.doc.scrollLeft,p=o.gutters.offsetWidth,g=a+"px";for(let w=0;ww.clientWidth,S=w.scrollHeight>w.clientHeight;if(a&&y||p&&S){if(p&&am&&R1){e:for(let E=o.target,I=g.view;E!=w;E=E.parentNode)for(let M=0;M{if(g.wheelStartX==null)return;let E=w.scrollLeft-g.wheelStartX,I=w.scrollTop-g.wheelStartY,M=I&&g.wheelDY&&I/g.wheelDY||E&&g.wheelDX&&E/g.wheelDX;g.wheelStartX=g.wheelStartY=null,M&&(fb=(fb*ene+M)/(ene+1),++ene)},200)):(g.wheelDX+=a,g.wheelDY+=p))}}var XC=class{constructor(o,l){this.ranges=o,this.primIndex=l}primary(){return this.ranges[this.primIndex]}equals(o){if(o==this)return!0;if(o.primIndex!=this.primIndex||o.ranges.length!=this.ranges.length)return!1;for(let l=0;l=0&&Fo(o,p.to())<=0)return a}return-1}},Mc=class{constructor(r,o){this.anchor=r,this.head=o}from(){return Tie(this.anchor,this.head)}to(){return Eie(this.anchor,this.head)}empty(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};function cy(r,o,l){let a=r&&r.options.selectionsMayTouch,p=o[l];o.sort((g,w)=>Fo(g.from(),w.from())),l=qh(o,p);for(let g=1;g0:S>=0){let E=Tie(y.from(),w.from()),I=Eie(y.to(),w.to()),M=y.empty()?w.from()==w.head:y.from()==y.head;g<=l&&--l,o.splice(--g,2,new Mc(M?I:E,M?E:I))}}return new XC(o,l)}function DC(r,o){return new XC([new Mc(r,o||r)],0)}function NC(r){return r.text?nr(r.from.line+r.text.length-1,ec(r.text).length+(r.text.length==1?r.from.ch:0)):r.to}function Q8t(r,o){if(Fo(r,o.from)<0)return r;if(Fo(r,o.to)<=0)return NC(o);let l=r.line+o.text.length-(o.to.line-o.from.line)-1,a=r.ch;return r.line==o.to.line&&(a+=NC(o).ch-o.to.ch),nr(l,a)}function fxe(r,o){let l=[];for(let a=0;a{o.stateAfter&&(o.stateAfter=null),o.styles&&(o.styles=null)}),r.doc.modeFrontier=r.doc.highlightFrontier=r.doc.first,LH(r,100),r.state.modeGen++,r.curOp&&Dp(r)}function ITt(r,o){return o.from.ch==0&&o.to.ch==0&&ec(o.text)==""&&(!r.cm||r.cm.options.wholeLineUpdateBefore)}function dxe(r,o,l,a){function p(K){return l?l[K]:null}function g(K,q,Q){B8n(K,q,Q,a),Od(K,"change",K,o)}function w(K,q){let Q=[];for(let Z=K;Z1&&r.remove(y.line+1,j-1),r.insert(y.line+1,K)}Od(r,"change",r,o)}function _C(r,o,l){function a(p,g,w){if(p.linked)for(let y=0;y{MTt(r),Dp(r)})}function _ne(r){this.done=[],this.undone=[],this.undoDepth=r?r.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=r?r.maxGeneration:1}function tSe(r,o){let l={from:W7e(o.from),to:NC(o),text:_E(r,o.from,o.to)};return eCt(r,l,o.from.line,o.to.line+1),_C(r,a=>eCt(a,l,o.from.line,o.to.line+1),!0),l}function OTt(r){for(;r.length&&ec(r).ranges;)r.pop()}function $Cn(r,o){if(o)return OTt(r.done),ec(r.done);if(r.done.length&&!ec(r.done).ranges)return ec(r.done);if(r.done.length>1&&!r.done[r.done.length-2].ranges)return r.done.pop(),ec(r.done)}function _Tt(r,o,l,a){let p=r.history;p.undone.length=0;let g=+new Date,w,y;if((p.lastOp==a||p.lastOrigin==o.origin&&o.origin&&(o.origin.charAt(0)=="+"&&p.lastModTime>g-(r.cm?r.cm.options.historyEventDelay:500)||o.origin.charAt(0)=="*"))&&(w=$Cn(p,p.lastOp==a)))y=ec(w.changes),Fo(o.from,o.to)==0&&Fo(o.from,y.to)==0?y.to=NC(o):w.changes.push(tSe(r,o));else{let S=ec(p.done);for((!S||!S.ranges)&&bre(r.sel,p.done),w={changes:[tSe(r,o)],generation:p.generation},p.done.push(w);p.done.length>p.undoDepth;)p.done.shift(),p.done[0].ranges||p.done.shift()}p.done.push(l),p.generation=++p.maxGeneration,p.lastModTime=p.lastSelTime=g,p.lastOp=p.lastSelOp=a,p.lastOrigin=p.lastSelOrigin=o.origin,y||xf(r,"historyAdded")}function jCn(r,o,l,a){let p=o.charAt(0);return p=="*"||p=="+"&&l.ranges.length==a.ranges.length&&l.somethingSelected()==a.somethingSelected()&&new Date-r.history.lastSelTime<=(r.cm?r.cm.options.historyEventDelay:500)}function DCn(r,o,l,a){let p=r.history,g=a&&a.origin;l==p.lastSelOp||g&&p.lastSelOrigin==g&&(p.lastModTime==p.lastSelTime&&p.lastOrigin==g||jCn(r,g,ec(p.done),o))?p.done[p.done.length-1]=o:bre(o,p.done),p.lastSelTime=+new Date,p.lastSelOrigin=g,p.lastSelOp=l,a&&a.clearRedo!==!1&&OTt(p.undone)}function bre(r,o){let l=ec(o);l&&l.ranges&&l.equals(r)||o.push(r)}function eCt(r,o,l,a){let p=o["spans_"+r.id],g=0;r.iter(Math.max(r.first,l),Math.min(r.first+r.size,a),w=>{w.markedSpans&&((p||(p=o["spans_"+r.id]={}))[g]=w.markedSpans),++g})}function NCn(r){if(!r)return null;let o;for(let l=0;l-1&&(ec(S)[p]=I[p],delete I[p])}}return a}function hxe(r,o,l,a){if(a){let p=r.anchor;if(l){let g=Fo(o,p)<0;g!=Fo(l,p)<0?(p=o,o=l):g!=Fo(o,l)<0&&(o=l)}return new Mc(p,o)}else return new Mc(l||o,o)}function Aie(r,o,l,a,p){p==null&&(p=r.cm&&(r.cm.display.shift||r.extend)),Wh(r,new XC([hxe(r.sel.primary(),o,l,p)],0),a)}function nCt(r,o,l){let a=[],p=r.cm&&(r.cm.display.shift||r.extend);for(let w=0;w=o.ch:y.to>o.ch))){if(p&&(xf(S,"beforeCursorEnter"),S.explicitlyCleared))if(g.markedSpans){--w;continue}else break;if(!S.atomic)continue;if(l){let _=S.find(a<0?1:-1),R;if((a<0?I:E)&&(_=iCt(r,_,-a,_&&_.line==o.line?g:null)),_&&_.line==o.line&&(R=Fo(_,l))&&(a<0?R<0:R>0))return JO(r,_,o,a,p)}let M=S.find(a<0?-1:1);return(a<0?E:I)&&(M=iCt(r,M,a,M.line==o.line?g:null)),M?JO(r,M,o,a,p):null}}return o}function wre(r,o,l,a,p){let g=a||1,w=JO(r,o,l,g,p)||!p&&JO(r,o,l,g,!0)||JO(r,o,l,-g,p)||!p&&JO(r,o,l,-g,!0);return w||(r.cantEdit=!0,nr(r.first,0))}function iCt(r,o,l,a){return l<0&&o.ch==0?o.line>r.first?Bo(r,nr(o.line-1)):null:l>0&&o.ch==(a||Ii(r,o.line)).text.length?o.linea.canceled=!0};return l&&(a.update=(p,g,w,y)=>{p&&(a.from=Bo(r,p)),g&&(a.to=Bo(r,g)),w&&(a.text=w),y!==void 0&&(a.origin=y)}),xf(r,"beforeChange",r,a),r.cm&&xf(r.cm,"beforeChange",r.cm,a),a.canceled?(r.cm&&(r.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function __(r,o,l){if(r.cm){if(!r.cm.curOp)return Pd(r.cm,__)(r,o,l);if(r.cm.state.suppressEdits)return}if((fm(r,"beforeChange")||r.cm&&fm(r.cm,"beforeChange"))&&(o=DTt(r,o,!0),!o))return;let a=UEt&&!l&&$8n(r,o.from,o.to);if(a)for(let p=a.length-1;p>=0;--p)oCt(r,{from:a[p].from,to:a[p].to,text:p?[""]:o.text,origin:o.origin});else oCt(r,o)}function oCt(r,o){if(o.text.length==1&&o.text[0]==""&&Fo(o.from,o.to)==0)return;let l=fxe(r,o);_Tt(r,o,l,r.cm?r.cm.curOp.id:NaN),Kz(r,o,l,V7e(r,o));let a=[];_C(r,(p,g)=>{!g&&qh(a,p.history)==-1&&(NTt(p.history,o),a.push(p.history)),Kz(p,o,null,V7e(p,o))})}function tne(r,o,l){let a=r.cm&&r.cm.state.suppressEdits;if(a&&!l)return;let p=r.history,g,w=r.sel,y=o=="undo"?p.done:p.undone,S=o=="undo"?p.undone:p.done,E=0;for(;E=0;--_){let R=g.changes[_];if(R.origin=o,M&&!DTt(r,R,!1)){y.length=0;return}I.push(tSe(r,R));let j=_?fxe(r,R):ec(y);Kz(r,R,j,tCt(r,R)),!_&&r.cm&&r.cm.scrollIntoView({from:R.from,to:NC(R)});let K=[];_C(r,(q,Q)=>{!Q&&qh(K,q.history)==-1&&(NTt(q.history,R),K.push(q.history)),Kz(q,R,null,tCt(q,R))})}}function sCt(r,o){if(o!=0&&(r.first+=o,r.sel=new XC(Sie(r.sel.ranges,l=>new Mc(nr(l.anchor.line+o,l.anchor.ch),nr(l.head.line+o,l.head.ch))),r.sel.primIndex),r.cm)){Dp(r.cm,r.first,r.first-o,o);for(let l=r.cm.display,a=l.viewFrom;ar.lastLine())return;if(o.from.linep&&(o={from:o.from,to:nr(p,Ii(r,p).text.length),text:[o.text[0]],origin:o.origin}),o.removed=_E(r,o.from,o.to),l||(l=fxe(r,o)),r.cm?zCn(r.cm,o,a):dxe(r,o,a),Lie(r,l,E3),r.cantEdit&&wre(r,nr(r.firstLine(),0))&&(r.cantEdit=!1)}function zCn(r,o,l){let a=r.doc,p=r.display,g=o.from,w=o.to,y=!1,S=g.line;r.options.lineWrapping||(S=gc(I3(Ii(a,g.line))),a.iter(S,w.line+1,_=>{if(_==p.maxLine)return y=!0,!0})),a.sel.contains(o.from,o.to)>-1&&jEt(r),dxe(a,o,l,hTt(r)),r.options.lineWrapping||(a.iter(S,g.line+o.text.length,_=>{let R=pre(_);R>p.maxLineLength&&(p.maxLine=_,p.maxLineLength=R,p.maxLineChanged=!0,y=!1)}),y&&(r.curOp.updateMaxLine=!0)),P8n(a,g.line),LH(r,400);let E=o.text.length-(w.line-g.line)-1;o.full?Dp(r):g.line==w.line&&o.text.length==1&&!ITt(r.doc,o)?qC(r,g.line,"text"):Dp(r,g.line,w.line+1,E);let I=fm(r,"changes"),M=fm(r,"change");if(M||I){let _={from:g,to:w,text:o.text,removed:o.removed,origin:o.origin};M&&Od(r,"change",r,_),I&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(_)}r.display.selForContextMenu=null}function X_(r,o,l,a,p){a||(a=l),Fo(a,l)<0&&([l,a]=[a,l]),typeof o=="string"&&(o=r.splitLines(o)),__(r,{from:l,to:a,text:o,origin:p})}function lCt(r,o,l,a){l1||!(this.children[0]instanceof XF))){let l=[];this.collapse(l),this.children=[new XF(l)],this.children[0].parent=this}},collapse(r){for(let o=0;o50){let w=p.lines.length%25+25;for(let y=w;y10);r.parent.maybeSpill()},iterN(r,o,l){for(let a=0;a{uCt(r,l,-p),qC(r,a,"widget")}),Od(r,"lineWidgetCleared",r,this,a))}changed(){let r=this.height,o=this.doc.cm,l=this.line;this.height=null;let a=Fz(this)-r;a&&(jC(this.doc,l)||T3(l,l.height+a),o&&qg(o,()=>{o.curOp.forceUpdate=!0,uCt(o,l,a),Od(o,"lineWidgetChanged",o,this,gc(l))}))}};U_(gxe);function uCt(r,o,l){ek(o)<(r.curOp&&r.curOp.scrollTop||r.doc.scrollTop)&&lxe(r,l)}function HCn(r,o,l,a){let p=new gxe(r,l,a),g=r.cm;return g&&p.noHScroll&&(g.display.alignWidgets=!0),TF(r,o,"widget",w=>{let y=w.widgets||(w.widgets=[]);if(p.insertAt==null?y.push(p):y.splice(Math.min(y.length,Math.max(0,p.insertAt)),0,p),p.line=w,g&&!jC(r,w)){let S=ek(w)r.display.maxLineLength&&(r.display.maxLine=g,r.display.maxLineLength=w,r.display.maxLineChanged=!0)}l!=null&&r&&this.collapsed&&Dp(r,l,a+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,r&<t(r.doc)),r&&Od(r,"markerCleared",r,this,l,a),o&&rT(r),this.parent&&this.parent.clear()}find(r,o){r==null&&this.type=="bookmark"&&(r=1);let l,a;for(let p=0;p{let a=r.line,p=gc(r.line),g=J9e(l,p);if(g&&(lTt(g),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!jC(o.doc,a)&&o.height!=null){let w=o.height;o.height=null;let y=Fz(o)-w;y&&T3(a,a.height+y)}Od(l,"markerChanged",l,this)})}attachLine(r){if(!this.lines.length&&this.doc.cm){let o=this.doc.cm.curOp;(!o.maybeHiddenMarkers||qh(o.maybeHiddenMarkers,this)==-1)&&(o.maybeUnhiddenMarkers||(o.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(r)}detachLine(r){if(this.lines.splice(qh(this.lines,r),1),!this.lines.length&&this.doc.cm){let o=this.doc.cm.curOp;(o.maybeHiddenMarkers||(o.maybeHiddenMarkers=[])).push(this)}}};U_(bxe);function R_(r,o,l,a,p){if(a&&a.shared)return KCn(r,o,l,a,p);if(r.cm&&!r.cm.curOp)return Pd(r.cm,R_)(r,o,l,a,p);let g=new bxe(r,p),w=Fo(o,l);if(a&&zE(a,g,!1),w>0||w==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=c_("span",[g.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(H8t(r,o.line,o,l,g)||o.line!=l.line&&H8t(r,l.line,o,l,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");O8n()}g.addToHistory&&_Tt(r,{from:o,to:l,origin:"markText"},r.sel,NaN);let y=o.line,S=r.cm,E;if(r.iter(y,l.line+1,I=>{S&&g.collapsed&&!S.options.lineWrapping&&I3(I)==S.display.maxLine&&(E=!0),g.collapsed&&y!=o.line&&T3(I,0),R8n(I,new Iie(g,y==o.line?o.ch:null,y==l.line?l.ch:null)),++y}),g.collapsed&&r.iter(o.line,l.line+1,I=>{jC(r,I)&&T3(I,0)}),g.clearOnEnter&&no(g,"beforeCursorEnter",()=>g.clear()),g.readOnly&&(M8n(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),g.collapsed&&(g.id=++BTt,g.atomic=!0),S){if(E&&(S.curOp.updateMaxLine=!0),g.collapsed)Dp(S,o.line,l.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(let I=o.line;I<=l.line;I++)qC(S,I,"text");g.atomic&<t(S.doc),Od(S,"markerAdded",S,g)}return g}var wxe=class{constructor(r,o){this.markers=r,this.primary=o;for(let l=0;l{y&&(a.widgetNode=y.cloneNode(!0)),g.push(R_(S,Bo(S,o),Bo(S,l),a,p));for(let E=0;Eo.parent)}function UCn(r,o){for(let l=0;la.push(p));for(let p=0;p=0;w--)__(this,a[w]);g?RTt(this,g):this.cm&&q_(this.cm)}),undo:Ed(function(){tne(this,"undo")}),redo:Ed(function(){tne(this,"redo")}),undoSelection:Ed(function(){tne(this,"undo",!0)}),redoSelection:Ed(function(){tne(this,"redo",!0)}),setExtending:function(r){this.extend=r},getExtending:function(){return this.extend},historySize:function(){let r=this.history,o=0,l=0;for(let a=0;ar.history=this.history,!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(r){return r&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(r){return this.history.generation==(r||this.cleanGeneration)},getHistory:function(){return{done:DO(this.history.done),undone:DO(this.history.undone)}},setHistory:function(r){let o=this.history=new _ne(this.history);o.done=DO(r.done.slice(0),null,!0),o.undone=DO(r.undone.slice(0),null,!0)},setGutterMarker:Ed(function(r,o,l){return TF(this,r,"gutter",a=>{let p=a.gutterMarkers||(a.gutterMarkers={});return p[o]=l,!l&&$8t(p)&&(a.gutterMarkers=null),!0})}),clearGutter:Ed(function(r){this.iter(o=>{o.gutterMarkers&&o.gutterMarkers[r]&&TF(this,o,"gutter",()=>(o.gutterMarkers[r]=null,$8t(o.gutterMarkers)&&(o.gutterMarkers=null),!0))})}),lineInfo:function(r){let o;if(typeof r=="number"){if(!jz(this,r)||(o=r,r=Ii(this,r),!r))return null}else if(o=gc(r),o==null)return null;return{line:o,handle:r,text:r.text,gutterMarkers:r.gutterMarkers,textClass:r.textClass,bgClass:r.bgClass,wrapClass:r.wrapClass,widgets:r.widgets}},addLineClass:Ed(function(r,o,l){return TF(this,r,o=="gutter"?"gutter":"class",a=>{let p=o=="text"?"textClass":o=="background"?"bgClass":o=="gutter"?"gutterClass":"wrapClass";if(!a[p])a[p]=l;else{if(I_(l).test(a[p]))return!1;a[p]+=" "+l}return!0})}),removeLineClass:Ed(function(r,o,l){return TF(this,r,o=="gutter"?"gutter":"class",a=>{let p=o=="text"?"textClass":o=="background"?"bgClass":o=="gutter"?"gutterClass":"wrapClass",g=a[p];if(g)if(l==null)a[p]=null;else{let w=g.match(I_(l));if(!w)return!1;let y=w.index+w[0].length;a[p]=g.slice(0,w.index)+(!w.index||y==g.length?"":" ")+g.slice(y)||null}else return!1;return!0})}),addLineWidget:Ed(function(r,o,l){return HCn(this,r,o,l)}),removeLineWidget:function(r){r.clear()},markText:function(r,o,l){return R_(this,Bo(this,r),Bo(this,o),l,l&&l.type||"range")},setBookmark:function(r,o){let l={replacedWith:o&&(o.nodeType==null?o.widget:o),insertLeft:o&&o.insertLeft,clearWhenEmpty:!1,shared:o&&o.shared,handleMouseEvents:o&&o.handleMouseEvents};return r=Bo(this,r),R_(this,r,r,l,"bookmark")},findMarksAt:function(r){r=Bo(this,r);let o=[],l=Ii(this,r.line).markedSpans;if(l)for(let a=0;a=r.ch)&&o.push(p.marker.parent||p.marker)}return o},findMarks:function(r,o,l){r=Bo(this,r),o=Bo(this,o);let a=[],p=r.line;return this.iter(r.line,o.line+1,g=>{let w=g.markedSpans;if(w)for(let y=0;y=S.to||S.from==null&&p!=r.line||S.from!=null&&p==o.line&&S.from>=o.ch)&&(!l||l(S.marker))&&a.push(S.marker.parent||S.marker)}++p}),a},getAllMarks:function(){let r=[];return this.iter(o=>{let l=o.markedSpans;if(l)for(let a=0;a{let g=p.text.length+a;if(g>r)return o=r,!0;r-=g,++l}),Bo(this,nr(l,o))},indexFromPos:function(r){r=Bo(this,r);let o=r.ch;if(r.line{o+=a.text.length+l}),o},copy:function(r){let o=new K6(ACe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return o.scrollTop=this.scrollTop,o.scrollLeft=this.scrollLeft,o.sel=this.sel,o.extend=!1,r&&(o.history.undoDepth=this.history.undoDepth,o.setHistory(this.getHistory())),o},linkedDoc:function(r){r||(r={});let o=this.first,l=this.first+this.size;r.from!=null&&r.from>o&&(o=r.from),r.to!=null&&r.too.push(l.id),!0),r.history=new _ne(null),r.history.done=DO(this.history.done,o),r.history.undone=DO(this.history.undone,o)}},iterLinkedDocs:function(r){_C(this,r)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(r){return this.lineSep?r.split(this.lineSep):N9e(r)},lineSeparator:function(){return this.lineSep||` -`},setDirection:Ed(function(r){r!="rtl"&&(r="ltr"),r!=this.direction&&(this.direction=r,this.iter(o=>o.order=null),this.cm&&LCn(this.cm))})});K6.prototype.eachLine=K6.prototype.iter;var RE=K6,FTt=0;function VCn(r){let o=this;if(zTt(o),Td(o,r)||tk(o.display,r))return;jp(r),Tl&&(FTt=+new Date);let l=HE(o,r,!0),a=r.dataTransfer.files;if(!(!l||o.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File){let p=a.length,g=Array(p),w=0;const y=()=>{++w==p&&Pd(o,()=>{l=Bo(o.doc,l);let E={from:l,to:l,text:o.doc.splitLines(g.filter(I=>I!=null).join(o.doc.lineSeparator())),origin:"paste"};__(o.doc,E),RTt(o.doc,DC(Bo(o.doc,l),Bo(o.doc,NC(E))))})()},S=(E,I)=>{if(o.options.allowDropFileTypes&&qh(o.options.allowDropFileTypes,E.type)==-1){y();return}let M=new FileReader;M.onerror=()=>y(),M.onload=()=>{let _=M.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(_)){y();return}g[I]=_,y()},M.readAsText(E)};for(let E=0;E-1){o.state.draggingText(r),setTimeout(()=>o.display.input.focus(),20);return}try{let p=r.dataTransfer.getData("Text");if(p){let g;if(o.state.draggingText&&!o.state.draggingText.copy&&(g=o.listSelections()),Lie(o.doc,DC(l,l)),g)for(let w=0;w{for(let a=0;a{r==null&&(r=setTimeout(()=>{r=null,fCt(QCn)},100))}),no(window,"blur",()=>fCt(V_))}function QCn(r){let o=r.display;o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.scrollbarsClipped=!1,r.setSize()}var BC={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};for(let r=0;r<10;r++)BC[r+48]=BC[r+96]=String(r);for(let r=65;r<=90;r++)BC[r]=String.fromCharCode(r);for(let r=1;r<=12;r++)BC[r+111]=BC[r+63235]="F"+r;var W6={};W6.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"};W6.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"};W6.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"};W6.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]};W6.default=am?W6.macDefault:W6.pcDefault;function ZCn(r){let o=r.split(/-(?!$)/);r=o[o.length-1];let l,a,p,g;for(let w=0;w{for(let p=a.length-1;p>=0;p--)X_(r.doc,"",a[p].from,a[p].to,"+delete");q_(r)})}function mxe(r,o,l){let a=LEt(r.text,o+l,l);return a<0||a>r.text.length?null:a}function nSe(r,o,l){let a=mxe(r,o.ch,l);return a==null?null:new nr(o.line,a,l<0?"after":"before")}function vxe(r,o,l,a,p){if(r){o.doc.direction=="rtl"&&(p=-p);let g=lk(l,o.doc.direction);if(g){let w=p<0?ec(g):g[0],S=p<0==(w.level==1)?"after":"before",E;if(w.level>0||o.doc.direction=="rtl"){let I=G_(o,l);E=p<0?l.text.length-1:0;let M=M3(o,I,E).top;E=Az(_=>M3(o,I,_).top==M,p<0==(w.level==1)?w.from:w.to-1,E),S=="before"&&(E=mxe(l,E,1))}else E=p<0?w.to:w.from;return new nr(a,E,S)}}return new nr(a,p<0?l.text.length:0,p<0?"before":"after")}function t7n(r,o,l,a){let p=lk(o,r.doc.direction);if(!p)return nSe(o,l,a);l.ch>=o.text.length?(l.ch=o.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");let g=Lz(p,l.ch,l.sticky),w=p[g];if(r.doc.direction=="ltr"&&w.level%2==0&&(a>0?w.to>l.ch:w.frommxe(o,j instanceof nr?j.ch:j,K),S,E=j=>r.options.lineWrapping?(S=S||G_(r,o),dTt(r,o,S,j)):{begin:0,end:o.text.length},I=E(l.sticky=="before"?y(l,-1):l.ch);if(r.doc.direction=="rtl"||w.level==1){let j=w.level==1==a<0,K=y(l,j?1:-1);if(K!=null&&(j?K<=w.to&&K<=I.end:K>=w.from&&K>=I.begin)){let q=j?"before":"after";return new nr(l.line,K,q)}}let M=(j,K,q)=>{let Q=(Z,X)=>X?new nr(l.line,y(Z,1),"before"):new nr(l.line,Z,"after");for(;j>=0&&j0==(Z.level!=1),ie=X?q.begin:y(q.end,-1);if(Z.from<=ie&&ie0?I.end:y(I.begin,-1);return R!=null&&!(a>0&&R==o.text.length)&&(_=M(a>0?0:p.length-1,a,E(R)),_)?_:null}var Uz={selectAll:jTt,singleSelection:r=>r.setSelection(r.getCursor("anchor"),r.getCursor("head"),E3),killLine:r=>WO(r,o=>{if(o.empty()){let l=Ii(r.doc,o.head.line).text.length;return o.head.ch==l&&o.head.lineWO(r,o=>({from:nr(o.from().line,0),to:Bo(r.doc,nr(o.to().line+1,0))})),delLineLeft:r=>WO(r,o=>({from:nr(o.from().line,0),to:o.from()})),delWrappedLineLeft:r=>WO(r,o=>{let l=r.charCoords(o.head,"div").top+5;return{from:r.coordsChar({left:0,top:l},"div"),to:o.from()}}),delWrappedLineRight:r=>WO(r,o=>{let l=r.charCoords(o.head,"div").top+5,a=r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:l},"div");return{from:o.from(),to:a}}),undo:r=>r.undo(),redo:r=>r.redo(),undoSelection:r=>r.undoSelection(),redoSelection:r=>r.redoSelection(),goDocStart:r=>r.extendSelection(nr(r.firstLine(),0)),goDocEnd:r=>r.extendSelection(nr(r.lastLine())),goLineStart:r=>r.extendSelectionsBy(o=>GTt(r,o.head.line),{origin:"+move",bias:1}),goLineStartSmart:r=>r.extendSelectionsBy(o=>hCt(r,o.head),{origin:"+move",bias:1}),goLineEnd:r=>r.extendSelectionsBy(o=>n7n(r,o.head.line),{origin:"+move",bias:-1}),goLineRight:r=>r.extendSelectionsBy(o=>{let l=r.cursorCoords(o.head,"div").top+5;return r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:l},"div")},UF),goLineLeft:r=>r.extendSelectionsBy(o=>{let l=r.cursorCoords(o.head,"div").top+5;return r.coordsChar({left:0,top:l},"div")},UF),goLineLeftSmart:r=>r.extendSelectionsBy(o=>{let l=r.cursorCoords(o.head,"div").top+5,a=r.coordsChar({left:0,top:l},"div");return a.chr.moveV(-1,"line"),goLineDown:r=>r.moveV(1,"line"),goPageUp:r=>r.moveV(-1,"page"),goPageDown:r=>r.moveV(1,"page"),goCharLeft:r=>r.moveH(-1,"char"),goCharRight:r=>r.moveH(1,"char"),goColumnLeft:r=>r.moveH(-1,"column"),goColumnRight:r=>r.moveH(1,"column"),goWordLeft:r=>r.moveH(-1,"word"),goGroupRight:r=>r.moveH(1,"group"),goGroupLeft:r=>r.moveH(-1,"group"),goWordRight:r=>r.moveH(1,"word"),delCharBefore:r=>r.deleteH(-1,"codepoint"),delCharAfter:r=>r.deleteH(1,"char"),delWordBefore:r=>r.deleteH(-1,"word"),delWordAfter:r=>r.deleteH(1,"word"),delGroupBefore:r=>r.deleteH(-1,"group"),delGroupAfter:r=>r.deleteH(1,"group"),indentAuto:r=>r.indentSelection("smart"),indentMore:r=>r.indentSelection("add"),indentLess:r=>r.indentSelection("subtract"),insertTab:r=>r.replaceSelection(" "),insertSoftTab:r=>{let o=[],l=r.listSelections(),a=r.options.tabSize;for(let p=0;p{r.somethingSelected()?r.indentSelection("add"):r.execCommand("insertTab")},transposeChars:r=>qg(r,()=>{let o=r.listSelections(),l=[];for(let a=0;a0)p=new nr(p.line,p.ch+1),r.replaceRange(g.charAt(p.ch-1)+g.charAt(p.ch-2),nr(p.line,p.ch-2),p,"+transpose");else if(p.line>r.doc.first){let w=Ii(r.doc,p.line-1).text;w&&(p=new nr(p.line,1),r.replaceRange(g.charAt(0)+r.doc.lineSeparator()+w.charAt(w.length-1),nr(p.line-1,w.length-1),p,"+transpose"))}}l.push(new Mc(p,p))}r.setSelections(l)}),newlineAndIndent:r=>qg(r,()=>{let o=r.listSelections();for(let l=o.length-1;l>=0;l--)r.replaceRange(r.doc.lineSeparator(),o[l].anchor,o[l].head,"+input");o=r.listSelections();for(let l=0;lr.replaceSelection(` -`,"start"),toggleOverwrite:r=>r.toggleOverwrite()};function GTt(r,o){let l=Ii(r.doc,o),a=I3(l);return a!=l&&(o=gc(a)),vxe(!0,r,a,o,1)}function n7n(r,o){let l=Ii(r.doc,o),a=D8n(l);return a!=l&&(o=gc(a)),vxe(!0,r,l,o,-1)}function hCt(r,o){let l=GTt(r,o.line),a=Ii(r.doc,l.line),p=lk(a,r.doc.direction);if(!p||p[0].level==0){let g=Math.max(l.ch,a.text.search(/\S/)),w=o.line==l.line&&o.ch<=g&&o.ch;return nr(l.line,w?0:g,l.sticky)}return l}function Rne(r,o,l){if(typeof o=="string"&&(o=Uz[o],!o))return!1;r.display.input.ensurePolled();let a=r.display.shift,p=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),l&&(r.display.shift=!1),p=o(r)!=Cie}finally{r.display.shift=a,r.state.suppressEdits=!1}return p}function r7n(r,o,l){for(let a=0;a{r.state.keySeq==p&&(r.state.keySeq=null,r.display.input.reset())}),pCt(r,p+" "+o,l,a))return!0}return pCt(r,o,l,a)}function pCt(r,o,l,a){let p=r7n(r,o,a);return p=="multi"&&(r.state.keySeq=o),p=="handled"&&Od(r,"keyHandled",r,o,l),(p=="handled"||p=="multi")&&(jp(l),rxe(r)),!!p}function WTt(r,o){let l=UTt(o,!0);return l?o.shiftKey&&!r.state.keySeq?JF(r,"Shift-"+l,o,a=>Rne(r,a,!0))||JF(r,l,o,a=>{if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return Rne(r,a)}):JF(r,l,o,a=>Rne(r,a)):!1}function o7n(r,o,l){return JF(r,"'"+l+"'",o,a=>Rne(r,a,!0))}var rSe=null;function VTt(r){let o=this;if(r.target&&r.target!=o.display.input.getField()||(o.curOp.focus=lm(),Td(o,r)))return;Tl&&vu<11&&r.keyCode==27&&(r.returnValue=!1);let l=r.keyCode;o.display.shift=l==16||r.shiftKey;let a=WTt(o,r);fy&&(rSe=a?l:null,!a&&l==88&&!y8n&&(am?r.metaKey:r.ctrlKey)&&o.replaceSelection("",null,"cut")),Q6&&!am&&!a&&l==46&&r.shiftKey&&!r.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(o.display.lineDiv.className)&&s7n(o)}function s7n(r){let o=r.display.lineDiv;ZE(o,"CodeMirror-crosshair");function l(a){(a.keyCode==18||!a.altKey)&&(QE(o,"CodeMirror-crosshair"),db(document,"keyup",l),db(document,"mouseover",l))}no(document,"keyup",l),no(document,"mouseover",l)}function qTt(r){r.keyCode==16&&(this.doc.sel.shift=!1),Td(this,r)}function XTt(r){let o=this;if(r.target&&r.target!=o.display.input.getField()||tk(o.display,r)||Td(o,r)||r.ctrlKey&&!r.altKey||am&&r.metaKey)return;let l=r.keyCode,a=r.charCode;if(fy&&l==rSe){rSe=null,jp(r);return}if(fy&&(!r.which||r.which<10)&&WTt(o,r))return;let p=String.fromCharCode(a??l);p!="\b"&&(o7n(o,r,p)||o.display.input.onKeyPress(r))}var l7n=400,gCt=class{constructor(r,o,l){this.time=r,this.pos=o,this.button=l}compare(r,o,l){return this.time+l7n>r&&Fo(o,this.pos)==0&&l==this.button}},hF,pF;function c7n(r,o){let l=+new Date;return pF&&pF.compare(l,r,o)?(hF=pF=null,"triple"):hF&&hF.compare(l,r,o)?(pF=new gCt(l,r,o),hF=null,"double"):(hF=new gCt(l,r,o),pF=null,"single")}function YTt(r){let o=this,l=o.display;if(Td(o,r)||l.activeTouch&&l.input.supportsTouch())return;if(l.input.ensurePolled(),l.shift=r.shiftKey,tk(l,r)){R1||(l.scroller.draggable=!1,setTimeout(()=>l.scroller.draggable=!0,100));return}if(iSe(o,r))return;let a=HE(o,r),p=NEt(r),g=a?c7n(a,p):"single";window.focus(),p==1&&o.state.selectingText&&o.state.selectingText(r),!(a&&u7n(o,p,a,g,r))&&(p==1?a?f7n(o,a,g,r):D9e(r)==l.scroller&&jp(r):p==2?(a&&Aie(o.doc,a),setTimeout(()=>l.input.focus(),20)):p==3&&(A9e?o.display.input.onContextMenu(r):ixe(o)))}function u7n(r,o,l,a,p){let g="Click";return a=="double"?g="Double"+g:a=="triple"&&(g="Triple"+g),g=(o==1?"Left":o==2?"Middle":"Right")+g,JF(r,KTt(g,p),p,w=>{if(typeof w=="string"&&(w=Uz[w]),!w)return!1;let y=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),y=w(r,l)!=Cie}finally{r.state.suppressEdits=!1}return y})}function a7n(r,o,l){let a=r.getOption("configureMouse"),p=a?a(r,o,l):{};if(p.unit==null){let g=u8n?l.shiftKey&&l.metaKey:l.altKey;p.unit=g?"rectangle":o=="single"?"char":o=="double"?"word":"line"}return(p.extend==null||r.doc.extend)&&(p.extend=r.doc.extend||l.shiftKey),p.addNew==null&&(p.addNew=am?l.metaKey:l.ctrlKey),p.moveOnDrag==null&&(p.moveOnDrag=!(am?l.altKey:l.ctrlKey)),p}function f7n(r,o,l,a){Tl?setTimeout(L9e(bTt,r),0):r.curOp.focus=lm();let p=a7n(r,l,a),g=r.doc.sel,w;r.options.dragDrop&&b8n&&!r.isReadOnly()&&l=="single"&&(w=g.contains(o))>-1&&(Fo((w=g.ranges[w]).from(),o)<0||o.xRel>0)&&(Fo(w.to(),o)>0||o.xRel<0)?d7n(r,a,o,p):h7n(r,a,o,p)}function d7n(r,o,l,a){let p=r.display,g=!1,w=Pd(r,E=>{R1&&(p.scroller.draggable=!1),r.state.draggingText=!1,r.state.delayingBlurEvent&&(r.hasFocus()?r.state.delayingBlurEvent=!1:ixe(r)),db(p.wrapper.ownerDocument,"mouseup",w),db(p.wrapper.ownerDocument,"mousemove",y),db(p.scroller,"dragstart",S),db(p.scroller,"drop",w),g||(jp(E),a.addNew||Aie(r.doc,l,null,null,a.extend),R1&&!yie||Tl&&vu==9?setTimeout(()=>{p.wrapper.ownerDocument.body.focus({preventScroll:!0}),p.input.focus()},20):p.input.focus())}),y=function(E){g=g||Math.abs(o.clientX-E.clientX)+Math.abs(o.clientY-E.clientY)>=10},S=()=>g=!0;R1&&(p.scroller.draggable=!0),r.state.draggingText=w,w.copy=!a.moveOnDrag,no(p.wrapper.ownerDocument,"mouseup",w),no(p.wrapper.ownerDocument,"mousemove",y),no(p.scroller,"dragstart",S),no(p.scroller,"drop",w),r.state.delayingBlurEvent=!0,setTimeout(()=>p.input.focus(),20),p.scroller.dragDrop&&p.scroller.dragDrop()}function bCt(r,o,l){if(l=="char")return new Mc(o,o);if(l=="word")return r.findWordAt(o);if(l=="line")return new Mc(nr(o.line,0),Bo(r.doc,nr(o.line+1,0)));let a=l(r,o);return new Mc(a.from,a.to)}function h7n(r,o,l,a){Tl&&ixe(r);let p=r.display,g=r.doc;jp(o);let w,y,S=g.sel,E=S.ranges;if(a.addNew&&!a.extend?(y=g.sel.contains(l),y>-1?w=E[y]:w=new Mc(l,l)):(w=g.sel.primary(),y=g.sel.primIndex),a.unit=="rectangle")a.addNew||(w=new Mc(l,l)),l=HE(r,o,!0,!0),y=-1;else{let Z=bCt(r,l,a.unit);a.extend?w=hxe(w,Z.anchor,Z.head,a.extend):w=Z}a.addNew?y==-1?(y=E.length,Wh(g,cy(r,E.concat([w]),y),{scroll:!1,origin:"*mouse"})):E.length>1&&E[y].empty()&&a.unit=="char"&&!a.extend?(Wh(g,cy(r,E.slice(0,y).concat(E.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),S=g.sel):pxe(g,y,w,MCe):(y=0,Wh(g,new XC([w],0),MCe),S=g.sel);let I=l;function M(Z){if(Fo(I,Z)!=0)if(I=Z,a.unit=="rectangle"){let X=[],ie=r.options.tabSize,je=rm(Ii(g,l.line).text,l.ch,ie),et=rm(Ii(g,Z.line).text,Z.ch,ie),mt=Math.min(je,et),bt=Math.max(je,et);for(let ce=Math.min(l.line,Z.line),Be=Math.min(r.lastLine(),Math.max(l.line,Z.line));ce<=Be;ce++){let ae=Ii(g,ce).text,xe=z7e(ae,mt,ie);mt==bt?X.push(new Mc(nr(ce,xe),nr(ce,xe))):ae.length>xe&&X.push(new Mc(nr(ce,xe),nr(ce,z7e(ae,bt,ie))))}X.length||X.push(new Mc(l,l)),Wh(g,cy(r,S.ranges.slice(0,y).concat(X),y),{origin:"*mouse",scroll:!1}),r.scrollIntoView(Z)}else{let X=w,ie=bCt(r,Z,a.unit),je=X.anchor,et;Fo(ie.anchor,je)>0?(et=ie.head,je=Tie(X.from(),ie.anchor)):(et=ie.anchor,je=Eie(X.to(),ie.head));let mt=S.ranges.slice(0);mt[y]=p7n(r,new Mc(Bo(g,je),et)),Wh(g,cy(r,mt,y),MCe)}}let _=p.wrapper.getBoundingClientRect(),R=0;function j(Z){let X=++R,ie=HE(r,Z,!0,a.unit=="rectangle");if(ie)if(Fo(ie,I)!=0){r.curOp.focus=lm(),M(ie);let je=gre(p,g);(ie.line>=je.to||ie.line{R==X&&j(Z)}),150)}else{let je=Z.clientY<_.top?-20:Z.clientY>_.bottom?20:0;je&&setTimeout(Pd(r,()=>{R==X&&(p.scroller.scrollTop+=je,j(Z))}),50)}}function K(Z){r.state.selectingText=!1,R=1/0,Z&&(jp(Z),p.input.focus()),db(p.wrapper.ownerDocument,"mousemove",q),db(p.wrapper.ownerDocument,"mouseup",Q),g.history.lastSelOrigin=null}let q=Pd(r,Z=>{Z.buttons===0||!NEt(Z)?K(Z):j(Z)}),Q=Pd(r,K);r.state.selectingText=Q,no(p.wrapper.ownerDocument,"mousemove",q),no(p.wrapper.ownerDocument,"mouseup",Q)}function p7n(r,o){let{anchor:l,head:a}=o,p=Ii(r.doc,l.line);if(Fo(l,a)==0&&l.sticky==a.sticky)return o;let g=lk(p);if(!g)return o;let w=Lz(g,l.ch,l.sticky),y=g[w];if(y.from!=l.ch&&y.to!=l.ch)return o;let S=w+(y.from==l.ch==(y.level!=1)?0:1);if(S==0||S==g.length)return o;let E;if(a.line!=l.line)E=(a.line-l.line)*(r.doc.direction=="ltr"?1:-1)>0;else{let j=Lz(g,a.ch,a.sticky),K=j-w||(a.ch-l.ch)*(y.level==1?-1:1);j==S-1||j==S?E=K<0:E=K>0}let I=g[S+(E?-1:0)],M=E==(I.level==1),_=M?I.from:I.to,R=M?"after":"before";return l.ch==_&&l.sticky==R?o:new Mc(new nr(l.line,_,R),a)}function JTt(r,o,l,a){let p,g;if(o.touches)p=o.touches[0].clientX,g=o.touches[0].clientY;else try{p=o.clientX,g=o.clientY}catch{return!1}if(p>=Math.floor(r.display.gutters.getBoundingClientRect().right))return!1;a&&jp(o);let w=r.display,y=w.lineDiv.getBoundingClientRect();if(g>y.bottom||!fm(r,l))return U7e(o);g-=y.top-w.viewOffset;for(let S=0;S=p){let I=CE(r.doc,g),M=r.display.gutterSpecs[S];return xf(r,l,r,I,M.className,o),U7e(o)}}}function iSe(r,o){return JTt(r,o,"gutterClick",!0)}function wCt(r,o){tk(r.display,o)||g7n(r,o)||Td(r,o,"contextmenu")||A9e||r.display.input.onContextMenu(o)}function g7n(r,o){return fm(r,"gutterContextMenu")?JTt(r,o,"gutterContextMenu",!1):!1}function QTt(r){r.display.wrapper.className=r.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+r.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zz(r)}var QO={toString:function(){return"CodeMirror.Init"}},ZTt={},Ane={};function b7n(r){let o=r.optionHandlers;function l(a,p,g,w){r.defaults[a]=p,g&&(o[a]=w?(y,S,E)=>{E!=QO&&g(y,S,E)}:g)}r.defineOption=l,r.Init=QO,l("value","",(a,p)=>a.setValue(p),!0),l("mode",null,(a,p)=>{a.doc.modeOption=p,eSe(a)},!0),l("indentUnit",2,eSe,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,a=>{EF(a),zz(a),Dp(a)},!0),l("lineSeparator",null,(a,p)=>{if(a.doc.lineSep=p,!p)return;let g=[],w=a.doc.first;a.doc.iter(y=>{for(let S=0;;){let E=y.text.indexOf(p,S);if(E==-1)break;S=E+p.length,g.push(nr(w,E))}w++});for(let y=g.length-1;y>=0;y--)X_(a.doc,p,g[y],nr(g[y].line,g[y].ch+p.length))}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(a,p,g)=>{a.state.specialChars=new RegExp(p.source+(p.test(" ")?"":"| "),"g"),g!=QO&&a.refresh()}),l("specialCharPlaceholder",K8n,a=>a.refresh(),!0),l("electricChars",!0),l("inputStyle",_z?"contenteditable":"textarea",()=>{throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,(a,p)=>a.getInputField().spellcheck=p,!0),l("autocorrect",!1,(a,p)=>a.getInputField().autocorrect=p,!0),l("autocapitalize",!1,(a,p)=>a.getInputField().autocapitalize=p,!0),l("rtlMoveVisually",!a8n),l("wholeLineUpdateBefore",!0),l("theme","default",a=>{QTt(a),dF(a)},!0),l("keyMap","default",(a,p,g)=>{let w=mre(p),y=g!=QO&&mre(g);y&&y.detach&&y.detach(a,w),w.attach&&w.attach(a,y||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,m7n,!0),l("gutters",[],(a,p)=>{a.display.gutterSpecs=Z7e(p,a.options.lineNumbers),dF(a)},!0),l("fixedGutter",!0,(a,p)=>{a.display.gutters.style.left=p?txe(a.display)+"px":"0",a.refresh()},!0),l("coverGutterNextToScrollbar",!1,a=>O_(a),!0),l("scrollbarStyle","native",a=>{yTt(a),O_(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),l("lineNumbers",!1,(a,p)=>{a.display.gutterSpecs=Z7e(a.options.gutters,p),dF(a)},!0),l("firstLineNumber",1,dF,!0),l("lineNumberFormatter",a=>a,dF,!0),l("showCursorWhenSelecting",!1,VF,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,(a,p)=>{p=="nocursor"&&(V_(a),a.display.input.blur()),a.display.input.readOnlyChanged(p)}),l("screenReaderLabel",null,(a,p)=>{p=p===""?null:p,a.display.input.screenReaderLabelChanged(p)}),l("disableInput",!1,(a,p)=>{p||a.display.input.reset()},!0),l("dragDrop",!0,w7n),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,VF,!0),l("singleCursorHeightPerLine",!0,VF,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,EF,!0),l("addModeClass",!1,EF,!0),l("pollInterval",100),l("undoDepth",200,(a,p)=>a.doc.history.undoDepth=p),l("historyEventDelay",1250),l("viewportMargin",10,a=>a.refresh(),!0),l("maxHighlightLength",1e4,EF,!0),l("moveInputWithCursor",!0,(a,p)=>{p||a.display.input.resetPosition()}),l("tabindex",null,(a,p)=>a.display.input.getField().tabIndex=p||""),l("autofocus",null),l("direction","ltr",(a,p)=>a.doc.setDirection(p),!0),l("phrases",null)}function w7n(r,o,l){let a=l&&l!=QO;if(!o!=!a){let p=r.display.dragFunctions,g=o?no:db;g(r.display.scroller,"dragstart",p.start),g(r.display.scroller,"dragenter",p.enter),g(r.display.scroller,"dragover",p.over),g(r.display.scroller,"dragleave",p.leave),g(r.display.scroller,"drop",p.drop)}}function m7n(r){r.options.lineWrapping?(ZE(r.display.wrapper,"CodeMirror-wrap"),r.display.sizer.style.minWidth="",r.display.sizerWidth=null):(QE(r.display.wrapper,"CodeMirror-wrap"),V9e(r)),nxe(r),Dp(r),zz(r),setTimeout(()=>O_(r),100)}function Ou(r,o){if(!(this instanceof Ou))return new Ou(r,o);this.options=o=o?zE(o):{},zE(ZTt,o,!1);let l=o.value;typeof l=="string"?l=new RE(l,o.mode,null,o.lineSeparator,o.direction):o.mode&&(l.modeOption=o.mode),this.doc=l;let a=new Ou.inputStyles[o.inputStyle](this),p=this.display=new _Cn(r,l,a,o);p.wrapper.CodeMirror=this,QTt(this),o.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),yTt(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new P_,keySeq:null,specialChars:null},o.autofocus&&!_z&&p.input.focus(),Tl&&vu<11&&setTimeout(()=>this.display.input.reset(!0),20),y7n(this),YCn(),nT(this),this.curOp.forceUpdate=!0,PTt(this,l),o.autofocus&&!_z||this.hasFocus()?setTimeout(()=>{this.hasFocus()&&!this.state.focused&&oxe(this)},20):V_(this);for(let g in Ane)Ane.hasOwnProperty(g)&&Ane[g](this,o[g],QO);xTt(this),o.finishInit&&o.finishInit(this);for(let g=0;g{if(Td(r,S))return;let E=HE(r,S);if(!E||iSe(r,S)||tk(r.display,S))return;jp(S);let I=r.findWordAt(E);Aie(r.doc,I.anchor,I.head)})):no(o.scroller,"dblclick",S=>Td(r,S)||jp(S)),no(o.scroller,"contextmenu",S=>wCt(r,S)),no(o.input.getField(),"contextmenu",S=>{o.scroller.contains(S.target)||wCt(r,S)});let l,a={end:0};function p(){o.activeTouch&&(l=setTimeout(()=>o.activeTouch=null,1e3),a=o.activeTouch,a.end=+new Date)}function g(S){if(S.touches.length!=1)return!1;let E=S.touches[0];return E.radiusX<=1&&E.radiusY<=1}function w(S,E){if(E.left==null)return!0;let I=E.left-S.left,M=E.top-S.top;return I*I+M*M>20*20}no(o.scroller,"touchstart",S=>{if(!Td(r,S)&&!g(S)&&!iSe(r,S)){o.input.ensurePolled(),clearTimeout(l);let E=+new Date;o.activeTouch={start:E,moved:!1,prev:E-a.end<=300?a:null},S.touches.length==1&&(o.activeTouch.left=S.touches[0].pageX,o.activeTouch.top=S.touches[0].pageY)}}),no(o.scroller,"touchmove",()=>{o.activeTouch&&(o.activeTouch.moved=!0)}),no(o.scroller,"touchend",S=>{let E=o.activeTouch;if(E&&!tk(o,S)&&E.left!=null&&!E.moved&&new Date-E.start<300){let I=r.coordsChar(o.activeTouch,"page"),M;!E.prev||w(E,E.prev)?M=new Mc(I,I):!E.prev.prev||w(E,E.prev.prev)?M=r.findWordAt(I):M=new Mc(nr(I.line,0),Bo(r.doc,nr(I.line+1,0))),r.setSelection(M.anchor,M.head),r.focus(),jp(S)}p()}),no(o.scroller,"touchcancel",p),no(o.scroller,"scroll",()=>{o.scroller.clientHeight&&(AH(r,o.scroller.scrollTop),tT(r,o.scroller.scrollLeft,!0),xf(r,"scroll",r))}),no(o.scroller,"mousewheel",S=>J8t(r,S)),no(o.scroller,"DOMMouseScroll",S=>J8t(r,S)),no(o.wrapper,"scroll",()=>o.wrapper.scrollTop=o.wrapper.scrollLeft=0),o.dragFunctions={enter:S=>{Td(r,S)||$z(S)},over:S=>{Td(r,S)||(XCn(r,S),$z(S))},start:S=>qCn(r,S),drop:Pd(r,VCn),leave:S=>{Td(r,S)||zTt(r)}};let y=o.input.getField();no(y,"keyup",S=>qTt.call(r,S)),no(y,"keydown",Pd(r,VTt)),no(y,"keypress",Pd(r,XTt)),no(y,"focus",S=>oxe(r,S)),no(y,"blur",S=>V_(r,S))}var oSe=[];Ou.defineInitHook=r=>oSe.push(r);function QF(r,o,l,a){let p=r.doc,g;l==null&&(l="add"),l=="smart"&&(p.mode.indent?g=RH(r,o).state:l="prev");let w=r.options.tabSize,y=Ii(p,o),S=rm(y.text,null,w);y.stateAfter&&(y.stateAfter=null);let E=y.text.match(/^\s*/)[0],I;if(!a&&!/\S/.test(y.text))I=0,l="not";else if(l=="smart"&&(I=p.mode.indent(g,y.text.slice(E.length),y.text),I==Cie||I>150)){if(!a)return;l="prev"}l=="prev"?o>p.first?I=rm(Ii(p,o-1).text,null,w):I=0:l=="add"?I=S+r.options.indentUnit:l=="subtract"?I=S-r.options.indentUnit:typeof l=="number"&&(I=S+l),I=Math.max(0,I);let M="",_=0;if(r.options.indentWithTabs)for(let R=Math.floor(I/w);R;--R)_+=w,M+=" ";if(_w,S=N9e(o),E=null;if(y&&a.ranges.length>1)if(ey&&ey.text.join(` -`)==o){if(a.ranges.length%ey.text.length==0){E=[];for(let M=0;M[M]));let I=r.curOp.updateInput;for(let M=a.ranges.length-1;M>=0;M--){let _=a.ranges[M],R=_.from(),j=_.to();_.empty()&&(l&&l>0?R=nr(R.line,R.ch-l):r.state.overwrite&&!y?j=nr(j.line,Math.min(Ii(g,j.line).text.length,j.ch+ec(S).length)):y&&ey&&ey.lineWise&&ey.text.join(` -`)==S.join(` -`)&&(R=j=nr(R.line,0)));let K={from:R,to:j,text:E?E[M%E.length]:S,origin:p||(y?"paste":r.state.cutIncoming>w?"cut":"+input")};__(r.doc,K),Od(r,"inputRead",r,K)}o&&!y&&tIt(r,o),q_(r),r.curOp.updateInput<2&&(r.curOp.updateInput=I),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}function eIt(r,o){let l=r.clipboardData&&r.clipboardData.getData("Text");if(l)return r.preventDefault(),!o.isReadOnly()&&!o.options.disableInput&&qg(o,()=>yxe(o,l,0,null,"paste")),!0}function tIt(r,o){if(!r.options.electricChars||!r.options.smartIndent)return;let l=r.doc.sel;for(let a=l.ranges.length-1;a>=0;a--){let p=l.ranges[a];if(p.head.ch>100||a&&l.ranges[a-1].head.line==p.head.line)continue;let g=r.getModeAt(p.head),w=!1;if(g.electricChars){for(let y=0;y-1){w=QF(r,p.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Ii(r.doc,p.head.line).text.slice(0,p.head.ch))&&(w=QF(r,p.head.line,"smart"));w&&Od(r,"electricInput",r,p.head.line)}}function nIt(r){let o=[],l=[];for(let a=0;aw.priority),this.state.modeGen++,Dp(this)}),removeOverlay:M1(function(a){let p=this.state.overlays;for(let g=0;gg&&(QF(this,y.head.line,a,!0),g=y.head.line,w==this.doc.sel.primIndex&&q_(this));else{let S=y.from(),E=y.to(),I=Math.max(g,S.line);g=Math.min(this.lastLine(),E.line-(E.ch?0:1))+1;for(let _=I;_0&&pxe(this.doc,w,new Mc(S,M[w].to()),E3)}}}),getTokenAt:function(a,p){return N8t(this,a,p)},getLineTokens:function(a,p){return N8t(this,nr(a),p,!0)},getTokenTypeAt:function(a){a=Bo(this.doc,a);let p=HEt(this,Ii(this.doc,a.line)),g=0,w=(p.length-1)/2,y=a.ch,S;if(y==0)S=p[2];else for(;;){let I=g+w>>1;if((I?p[I*2-1]:0)>=y)w=I;else if(p[I*2+1]S&&(a=S,w=!0),y=Ii(this.doc,a)}else y=a;return Oie(this,y,{top:0,left:0},p||"page",g||w).top+(w?this.doc.height-ek(y):0)},defaultTextHeight:function(){return M_(this.display)},defaultCharWidth:function(){return W_(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,p,g,w,y){let S=this.display;a=ly(this,Bo(this.doc,a));let E=a.bottom,I=a.left;if(p.style.position="absolute",p.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(p),S.sizer.appendChild(p),w=="over")E=a.top;else if(w=="above"||w=="near"){let M=Math.max(S.wrapper.clientHeight,this.doc.height),_=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(w=="above"||a.bottom+p.offsetHeight>M)&&a.top>p.offsetHeight?E=a.top-p.offsetHeight:a.bottom+p.offsetHeight<=M&&(E=a.bottom),I+p.offsetWidth>_&&(I=_-p.offsetWidth)}p.style.top=E+"px",p.style.left=p.style.right="",y=="right"?(I=S.sizer.clientWidth-p.offsetWidth,p.style.right="0px"):(y=="left"?I=0:y=="middle"&&(I=(S.sizer.clientWidth-p.offsetWidth)/2),p.style.left=I+"px"),g&&gCn(this,{left:I,top:E,right:I+p.offsetWidth,bottom:E+p.offsetHeight})},triggerOnKeyDown:M1(VTt),triggerOnKeyPress:M1(XTt),triggerOnKeyUp:qTt,triggerOnMouseDown:M1(YTt),execCommand:function(a){if(Uz.hasOwnProperty(a))return Uz[a].call(null,this)},triggerElectric:M1(function(a){tIt(this,a)}),findPosH:function(a,p,g,w){let y=1;p<0&&(y=-1,p=-p);let S=Bo(this.doc,a);for(let E=0;Ethis.display.shift||this.doc.extend||g.empty()?LCe(this.doc,g.head,a,p,this.options.rtlMoveVisually):a<0?g.from():g.to(),UF)}),deleteH:M1(function(a,p){let g=this.doc.sel,w=this.doc;g.somethingSelected()?w.replaceSelection("",null,"+delete"):WO(this,y=>{let S=LCe(w,y.head,a,p,!1);return a<0?{from:S,to:y.head}:{from:y.head,to:S}})}),findPosV:function(a,p,g,w){let y=1,S=w;p<0&&(y=-1,p=-p);let E=Bo(this.doc,a);for(let I=0;I{if(y)return a<0?S.from():S.to();let E=ly(this,S.head,"div");S.goalColumn!=null&&(E.left=S.goalColumn),w.push(E.left);let I=mCt(this,E,a,p);return p=="page"&&S==g.sel.primary()&&lxe(this,X7e(this,I,"div").top-E.top),I},UF),w.length)for(let S=0;SMne(M,S):/\s/.test(E)?M=>/\s/.test(M):M=>!/\s/.test(M)&&!Mne(M);for(;w>0&&I(g.charAt(w-1));)--w;for(;ytypeof y=="number"||/^\d+$/.test(String(y))?y+"px":y;a!=null&&(this.display.wrapper.style.width=g(a)),p!=null&&(this.display.wrapper.style.height=g(p)),this.options.lineWrapping&&cTt(this);let w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,y=>{if(y.widgets){for(let S=0;S.5||this.options.lineWrapping)&&nxe(this),xf(this,"refresh",this)}),swapDoc:M1(function(a){let p=this.doc;return p.cm=null,this.state.selectingText&&this.state.selectingText(),PTt(this,a),zz(this),this.display.input.reset(),qF(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,Od(this,"swapDoc",this,p),p}),phrase:function(a){let p=this.options.phrases;return p&&Object.prototype.hasOwnProperty.call(p,a)?p[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},U_(r),r.registerHelper=function(a,p,g){l.hasOwnProperty(a)||(l[a]=r[a]={_global:[]}),l[a][p]=g},r.registerGlobalHelper=function(a,p,g,w){r.registerHelper(a,p,w),l[a]._global.push({pred:g,val:w})}}function LCe(r,o,l,a,p){let g=o,w=l,y=Ii(r,o.line),S=p&&r.direction=="rtl"?-l:l;function E(){let _=o.line+S;return _=r.first+r.size?!1:(o=new nr(_,o.ch,o.sticky),y=Ii(r,_))}function I(_){let R;if(a=="codepoint"){let j=y.text.charCodeAt(o.ch+(l>0?0:-1));if(isNaN(j))R=null;else{let K=l>0?j>=55296&&j<56320:j>=56320&&j<57343;R=new nr(o.line,Math.max(0,Math.min(y.text.length,o.ch+l*(K?2:1))),-l)}}else p?R=t7n(r.cm,y,o,l):R=nSe(y,o,l);if(R==null)if(!_&&E())o=vxe(p,r.cm,y,o.line,S);else return!1;else o=R;return!0}if(a=="char"||a=="codepoint")I();else if(a=="column")I(!0);else if(a=="word"||a=="group"){let _=null,R=a=="group",j=r.cm&&r.cm.getHelper(o,"wordChars");for(let K=!0;!(l<0&&!I(!K));K=!1){let q=y.text.charAt(o.ch)||` -`,Q=Mne(q,j)?"w":R&&q==` -`?"n":!R||/\s/.test(q)?null:"p";if(R&&!K&&!Q&&(Q="s"),_&&_!=Q){l<0&&(l=1,I(),o.sticky="after");break}if(Q&&(_=Q),l>0&&!I(!K))break}}let M=wre(r,o,g,w,!0);return G7e(g,M)&&(M.hitSide=!0),M}function mCt(r,o,l,a){let p=r.doc,g=o.left,w;if(a=="page"){let S=Math.min(r.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),E=Math.max(S-.5*M_(r.display),3);w=(l>0?o.bottom:o.top)+l*E}else a=="line"&&(w=l>0?o.bottom+3:o.top-3);let y;for(;y=Z9e(r,g,w),!!y.outside;){if(l<0?w<=0:w>=p.height){y.hitSide=!0;break}w+=l*5}return y}var oIt=class{constructor(r){this.cm=r,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new P_,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}init(r){let o=this,l=o.cm,a=o.div=r.lineDiv;a.contentEditable=!0,rIt(a,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function p(w){for(let y=w.target;y;y=y.parentNode){if(y==a)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}no(a,"paste",w=>{!p(w)||Td(l,w)||eIt(w,l)||vu<=11&&setTimeout(Pd(l,()=>this.updateFromDOM()),20)}),no(a,"compositionstart",w=>{this.composing={data:w.data,done:!1}}),no(a,"compositionupdate",w=>{this.composing||(this.composing={data:w.data,done:!1})}),no(a,"compositionend",w=>{this.composing&&(w.data!=this.composing.data&&this.readFromDOMSoon(),this.composing.done=!0)}),no(a,"touchstart",()=>o.forceCompositionEnd()),no(a,"input",()=>{this.composing||this.readFromDOMSoon()});function g(w){if(!p(w)||Td(l,w))return;if(l.somethingSelected())vre({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){let I=nIt(l);vre({lineWise:!0,text:I.text}),w.type=="cut"&&l.operation(()=>{l.setSelections(I.ranges,0,E3),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();let I=ey.text.join(` -`);if(w.clipboardData.setData("Text",I),w.clipboardData.getData("Text")==I){w.preventDefault();return}}let y=iIt(),S=y.firstChild;l.display.lineSpace.insertBefore(y,l.display.lineSpace.firstChild),S.value=ey.text.join(` -`);let E=lm();Rz(S),setTimeout(()=>{l.display.lineSpace.removeChild(y),E.focus(),E==a&&o.showPrimarySelection()},50)}no(a,"copy",g),no(a,"cut",g)}screenReaderLabelChanged(r){r?this.div.setAttribute("aria-label",r):this.div.removeAttribute("aria-label")}prepareSelection(){let r=pTt(this.cm,!1);return r.focus=lm()==this.div,r}showSelection(r,o){!r||!this.cm.display.view.length||((r.focus||o)&&this.showPrimarySelection(),this.showMultipleSelections(r))}getSelection(){return this.cm.display.wrapper.ownerDocument.getSelection()}showPrimarySelection(){let r=this.getSelection(),o=this.cm,l=o.doc.sel.primary(),a=l.from(),p=l.to();if(o.display.viewTo==o.display.viewFrom||a.line>=o.display.viewTo||p.line=o.display.viewFrom&&vCt(o,a)||{node:y[0].measure.map[2],offset:0},E=p.line{this.gracePeriod=!1,this.selectionChanged()&&this.cm.operation(()=>this.cm.curOp.selectionChanged=!0)},20)}showMultipleSelections(r){pb(this.cm.display.cursorDiv,r.cursors),pb(this.cm.display.selectionDiv,r.selection)}rememberSelection(){let r=this.getSelection();this.lastAnchorNode=r.anchorNode,this.lastAnchorOffset=r.anchorOffset,this.lastFocusNode=r.focusNode,this.lastFocusOffset=r.focusOffset}selectionInEditor(){let r=this.getSelection();if(!r.rangeCount)return!1;let o=r.getRangeAt(0).commonAncestorContainer;return $C(this.div,o)}focus(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||lm()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())}blur(){this.div.blur()}getField(){return this.div}supportsTouch(){return!0}receivedFocus(){let r=this;this.selectionInEditor()?this.pollSelection():qg(this.cm,()=>r.cm.curOp.selectionChanged=!0);function o(){r.cm.state.focused&&(r.pollSelection(),r.polling.set(r.cm.options.pollInterval,o))}this.polling.set(this.cm.options.pollInterval,o)}selectionChanged(){let r=this.getSelection();return r.anchorNode!=this.lastAnchorNode||r.anchorOffset!=this.lastAnchorOffset||r.focusNode!=this.lastFocusNode||r.focusOffset!=this.lastFocusOffset}pollSelection(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;let r=this.getSelection(),o=this.cm;if(kie&&vie&&this.cm.display.gutterSpecs.length&&S7n(r.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();let l=nne(o,r.anchorNode,r.anchorOffset),a=nne(o,r.focusNode,r.focusOffset);l&&a&&qg(o,()=>{Wh(o.doc,DC(l,a),E3),(l.bad||a.bad)&&(o.curOp.selectionChanged=!0)})}pollContent(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);let r=this.cm,o=r.display,l=r.doc.sel.primary(),a=l.from(),p=l.to();if(a.ch==0&&a.line>r.firstLine()&&(a=nr(a.line-1,Ii(r.doc,a.line-1).length)),p.ch==Ii(r.doc,p.line).text.length&&p.lineo.viewTo-1)return!1;let g,w,y;a.line==o.viewFrom||(g=KE(r,a.line))==0?(w=gc(o.view[0].line),y=o.view[0].node):(w=gc(o.view[g].line),y=o.view[g-1].node.nextSibling);let S=KE(r,p.line),E,I;if(S==o.view.length-1?(E=o.viewTo-1,I=o.lineDiv.lastChild):(E=gc(o.view[S+1].line)-1,I=o.view[S+1].node.previousSibling),!y)return!1;let M=r.doc.splitLines(x7n(r,y,I,w,E)),_=_E(r.doc,nr(w,0),nr(E,Ii(r.doc,E).text.length));for(;M.length>1&&_.length>1;)if(ec(M)==ec(_))M.pop(),_.pop(),E--;else if(M[0]==_[0])M.shift(),_.shift(),w++;else break;let R=0,j=0,K=M[0],q=_[0],Q=Math.min(K.length,q.length);for(;Ra.ch&&Z.charCodeAt(Z.length-j-1)==X.charCodeAt(X.length-j-1);)R--,j++;M[M.length-1]=Z.slice(0,Z.length-j).replace(/^\u200b+/,""),M[0]=M[0].slice(R).replace(/\u200b+$/,"");let je=nr(w,R),et=nr(E,_.length?ec(_).length-j:0);if(M.length>1||M[0]||Fo(je,et))return X_(r.doc,M,je,et,"+input"),!0}ensurePolled(){this.forceCompositionEnd()}reset(){this.forceCompositionEnd()}forceCompositionEnd(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())}readFromDOMSoon(){this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(()=>{if(this.readDOMTimeout=null,this.composing)if(this.composing.done)this.composing=null;else return;this.updateFromDOM()},80))}updateFromDOM(){(this.cm.isReadOnly()||!this.pollContent())&&qg(this.cm,()=>Dp(this.cm))}setUneditable(r){r.contentEditable="false"}onKeyPress(r){r.charCode==0||this.composing||(r.preventDefault(),this.cm.isReadOnly()||Pd(this.cm,yxe)(this.cm,String.fromCharCode(r.charCode==null?r.keyCode:r.charCode),0))}readOnlyChanged(r){this.div.contentEditable=String(r!="nocursor")}onContextMenu(){}resetPosition(){}},C7n=oIt;oIt.prototype.needsContentAttribute=!0;function vCt(r,o){let l=J9e(r,o.line);if(!l||l.hidden)return null;let a=Ii(r.doc,o.line),p=rTt(l,a,o.line),g=lk(a,r.doc.direction),w="left";g&&(w=Lz(g,o.ch)%2?"right":"left");let y=sTt(p.map,o.ch,w);return y.offset=y.collapse=="right"?y.end:y.start,y}function S7n(r){for(let o=r;o;o=o.parentNode)if(/CodeMirror-gutter-wrapper/.test(o.className))return!0;return!1}function VO(r,o){return o&&(r.bad=!0),r}function x7n(r,o,l,a,p){let g="",w=!1,y=r.doc.lineSeparator(),S=!1;function E(R){return j=>j.id==R}function I(){w&&(g+=y,S&&(g+=y),w=S=!1)}function M(R){R&&(I(),g+=R)}function _(R){if(R.nodeType==1){let j=R.getAttribute("cm-text");if(j){M(j);return}let K=R.getAttribute("cm-marker"),q;if(K){let Z=r.findMarks(nr(a,0),nr(p+1,0),E(+K));Z.length&&(q=Z[0].find(0))&&M(_E(r.doc,q.from,q.to).join(y));return}if(R.getAttribute("contenteditable")=="false")return;let Q=/^(pre|div|p|li|table|br)$/i.test(R.nodeName);if(!/^br$/i.test(R.nodeName)&&R.textContent.length==0)return;Q&&I();for(let Z=0;Z{Tl&&vu>=9&&this.hasSelection&&(this.hasSelection=null),o.poll()}),no(a,"paste",g=>{Td(l,g)||eIt(g,l)||(l.state.pasteIncoming=+new Date,o.fastPoll())});function p(g){if(!Td(l,g)){if(l.somethingSelected())vre({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){let w=nIt(l);vre({lineWise:!0,text:w.text}),g.type=="cut"?l.setSelections(w.ranges,null,E3):(o.prevInput="",a.value=w.text.join(` -`),Rz(a))}else return;g.type=="cut"&&(l.state.cutIncoming=+new Date)}}no(a,"cut",p),no(a,"copy",p),no(r.scroller,"paste",g=>{if(tk(r,g)||Td(l,g))return;if(!a.dispatchEvent){l.state.pasteIncoming=+new Date,o.focus();return}const w=new Event("paste");w.clipboardData=g.clipboardData,a.dispatchEvent(w)}),no(r.lineSpace,"selectstart",g=>{tk(r,g)||jp(g)}),no(a,"compositionstart",()=>{let g=l.getCursor("from");o.composing&&o.composing.range.clear(),o.composing={start:g,range:l.markText(g,l.getCursor("to"),{className:"CodeMirror-composing"})}}),no(a,"compositionend",()=>{o.composing&&(o.poll(),o.composing.range.clear(),o.composing=null)})}createField(r){this.wrapper=iIt(),this.textarea=this.wrapper.firstChild}screenReaderLabelChanged(r){r?this.textarea.setAttribute("aria-label",r):this.textarea.removeAttribute("aria-label")}prepareSelection(){let r=this.cm,o=r.display,l=r.doc,a=pTt(r);if(r.options.moveInputWithCursor){let p=ly(r,l.sel.primary().head,"div"),g=o.wrapper.getBoundingClientRect(),w=o.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(o.wrapper.clientHeight-10,p.top+w.top-g.top)),a.teLeft=Math.max(0,Math.min(o.wrapper.clientWidth-10,p.left+w.left-g.left))}return a}showSelection(r){let o=this.cm,l=o.display;pb(l.cursorDiv,r.cursors),pb(l.selectionDiv,r.selection),r.teTop!=null&&(this.wrapper.style.top=r.teTop+"px",this.wrapper.style.left=r.teLeft+"px")}reset(r){if(this.contextMenuPending||this.composing)return;let o=this.cm;if(o.somethingSelected()){this.prevInput="";let l=o.getSelection();this.textarea.value=l,o.state.focused&&Rz(this.textarea),Tl&&vu>=9&&(this.hasSelection=l)}else r||(this.prevInput=this.textarea.value="",Tl&&vu>=9&&(this.hasSelection=null))}getField(){return this.textarea}supportsTouch(){return!1}focus(){if(this.cm.options.readOnly!="nocursor"&&(!_z||lm()!=this.textarea))try{this.textarea.focus()}catch{}}blur(){this.textarea.blur()}resetPosition(){this.wrapper.style.top=this.wrapper.style.left=0}receivedFocus(){this.slowPoll()}slowPoll(){this.pollingFast||this.polling.set(this.cm.options.pollInterval,()=>{this.poll(),this.cm.state.focused&&this.slowPoll()})}fastPoll(){let r=!1,o=this;o.pollingFast=!0;function l(){!o.poll()&&!r?(r=!0,o.polling.set(60,l)):(o.pollingFast=!1,o.slowPoll())}o.polling.set(20,l)}poll(){let r=this.cm,o=this.textarea,l=this.prevInput;if(this.contextMenuPending||!r.state.focused||v8n(o)&&!l&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;let a=o.value;if(a==l&&!r.somethingSelected())return!1;if(Tl&&vu>=9&&this.hasSelection===a||am&&/[\uf700-\uf7ff]/.test(a))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){let w=a.charCodeAt(0);if(w==8203&&!l&&(l="​"),w==8666)return this.reset(),this.cm.execCommand("undo")}let p=0,g=Math.min(l.length,a.length);for(;p{yxe(r,a.slice(p),l.length-p,null,this.composing?"*compose":null),a.length>1e3||a.indexOf(` -`)>-1?o.value=this.prevInput="":this.prevInput=a,this.composing&&(this.composing.range.clear(),this.composing.range=r.markText(this.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0}ensurePolled(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)}onKeyPress(){Tl&&vu>=9&&(this.hasSelection=null),this.fastPoll()}onContextMenu(r){let o=this,l=o.cm,a=l.display,p=o.textarea;o.contextMenuPending&&o.contextMenuPending();let g=HE(l,r),w=a.scroller.scrollTop;if(!g||fy)return;l.options.resetSelectionOnContextMenu&&l.doc.sel.contains(g)==-1&&Pd(l,Wh)(l.doc,DC(g),E3);let S=p.style.cssText,E=o.wrapper.style.cssText,I=o.wrapper.offsetParent.getBoundingClientRect();o.wrapper.style.cssText="position: static",p.style.cssText=`position: absolute; width: 30px; height: 30px; - top: ${r.clientY-I.top-5}px; left: ${r.clientX-I.left-5}px; - z-index: 1000; background: ${Tl?"rgba(255, 255, 255, .05)":"transparent"}; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;let M;R1&&(M=window.scrollY),a.input.focus(),R1&&window.scrollTo(null,M),a.input.reset(),l.somethingSelected()||(p.value=o.prevInput=" "),o.contextMenuPending=R,a.selForContextMenu=l.doc.sel,clearTimeout(a.detectingSelectAll);function _(){if(p.selectionStart!=null){let j=l.somethingSelected(),K="​"+(j?p.value:"");p.value="⇚",p.value=K,o.prevInput=j?"":"​",p.selectionStart=1,p.selectionEnd=K.length,a.selForContextMenu=l.doc.sel}}function R(){if(o.contextMenuPending==R&&(o.contextMenuPending=!1,o.wrapper.style.cssText=E,p.style.cssText=S,Tl&&vu<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=w),p.selectionStart!=null)){(!Tl||Tl&&vu<9)&&_();let j=0,K=()=>{a.selForContextMenu==l.doc.sel&&p.selectionStart==0&&p.selectionEnd>0&&o.prevInput=="​"?Pd(l,jTt)(l):j++<10?a.detectingSelectAll=setTimeout(K,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(K,200)}}if(Tl&&vu>=9&&_(),A9e){$z(r);let j=()=>{db(window,"mouseup",j),setTimeout(R,20)};no(window,"mouseup",j)}else setTimeout(R,50)}readOnlyChanged(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r}setUneditable(){}},T7n=sIt;sIt.prototype.needsContentAttribute=!1;function I7n(r,o){if(o=o?zE(o):{},o.value=r.value,!o.tabindex&&r.tabIndex&&(o.tabindex=r.tabIndex),!o.placeholder&&r.placeholder&&(o.placeholder=r.placeholder),o.autofocus==null){let g=lm();o.autofocus=g==r||r.getAttribute("autofocus")!=null&&g==document.body}function l(){r.value=p.getValue()}let a;if(r.form&&(no(r.form,"submit",l),!o.leaveSubmitMethodAlone)){let g=r.form;a=g.submit;try{let w=g.submit=()=>{l(),g.submit=a,g.submit(),g.submit=w}}catch{}}o.finishInit=g=>{g.save=l,g.getTextArea=()=>r,g.toTextArea=()=>{g.toTextArea=isNaN,l(),r.parentNode.removeChild(g.getWrapperElement()),r.style.display="",r.form&&(db(r.form,"submit",l),!o.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=a))}},r.style.display="none";let p=Ou(g=>r.parentNode.insertBefore(g,r.nextSibling),o);return p}function P7n(r){r.off=db,r.on=no,r.wheelEventPixels=RCn,r.Doc=RE,r.splitLines=N9e,r.countColumn=rm,r.findColumn=z7e,r.isWordChar=H7e,r.Pass=Cie,r.signal=xf,r.Line=Nz,r.changeEnd=NC,r.scrollbarModel=vTt,r.Pos=nr,r.cmpPos=Fo,r.modes=B9e,r.mimeModes=YO,r.resolveMode=are,r.getMode=F9e,r.modeExtensions=u_,r.extendMode=x8n,r.copyState=OE,r.startState=BEt,r.innerMode=z9e,r.commands=Uz,r.keyMap=W6,r.keyName=UTt,r.isModifierKey=HTt,r.lookupKey=f_,r.normalizeKeyMap=e7n,r.StringStream=xie,r.SharedTextMarker=wxe,r.TextMarker=bxe,r.LineWidget=gxe,r.e_preventDefault=jp,r.e_stopPropagation=DEt,r.e_stop=$z,r.addClass=ZE,r.contains=$C,r.rmClass=QE,r.keyNames=BC}b7n(Ou);k7n(Ou);var M7n="iter insert remove copy getEditor constructor".split(" ");for(let r in RE.prototype)RE.prototype.hasOwnProperty(r)&&qh(M7n,r)<0&&(Ou.prototype[r]=function(o){return function(){return o.apply(this.doc,arguments)}}(RE.prototype[r]));U_(RE);Ou.inputStyles={textarea:T7n,contenteditable:C7n};Ou.defineMode=function(r){!Ou.defaults.mode&&r!="null"&&(Ou.defaults.mode=r),C8n.apply(this,arguments)};Ou.defineMIME=S8n;Ou.defineMode("null",()=>({token:r=>r.skipToEnd()}));Ou.defineMIME("text/plain","null");Ou.defineExtension=(r,o)=>{Ou.prototype[r]=o};Ou.defineDocExtension=(r,o)=>{RE.prototype[r]=o};Ou.fromTextArea=I7n;P7n(Ou);Ou.version="5.61.0";var Lne=Ou;document.body.insertAdjacentHTML("beforeend",` - -`);self.CodeMirror=Lne;var sSe=class extends HTMLElement{static get observedAttributes(){return["src","readonly","mode","theme"]}attributeChangedCallback(r,o,l){this.__initialized&&o!==l&&(r==="readonly"?this[r]=l!==null:this[r]=l)}get readonly(){return this.editor.getOption("readOnly")}set readonly(r){this.editor.setOption("readOnly",r)}get mode(){return this.editor.getOption("mode")}set mode(r){this.editor.setOption("mode",r)}get theme(){return this.editor.getOption("theme")}set theme(r){this.editor.setOption("theme",r)}get src(){return this.getAttribute("src")}set src(r){this.setAttribute("src",r),this.setSrc()}get value(){return this.editor.getValue()}set value(r){this.setValue(r)}constructor(){super(),this.__initialized=!1,this.__element=null,this.editor=null}async connectedCallback(){const r=document.createElement("template");r.innerHTML=sSe.template(),this.appendChild(r.content.cloneNode(!0)),this.style.display="block",this.__element=this.querySelector("textarea");const o=this.hasAttribute("mode")?this.getAttribute("mode"):"null",l=this.hasAttribute("theme")?this.getAttribute("theme"):"default";let a=this.getAttribute("readonly");a===""?a=!0:a!=="nocursor"&&(a=!1);let p="";const g=this.querySelector("script");g&&g.getAttribute("type")==="wc-content"&&(p=sSe.dedentText(g.innerHTML),p=p.replace(/<(\/?script)(.*?)>/g,"<$1$2>"));let w=Lne.defaults.viewportMargin;if(this.hasAttribute("viewport-margin")){const y=this.getAttribute("viewport-margin").toLowerCase();w=y==="infinity"?1/0:parseInt(y)}this.editor=Lne.fromTextArea(this.__element,{lineNumbers:!0,readOnly:a,mode:o,theme:l,viewportMargin:w}),this.hasAttribute("src")?this.setSrc(this.getAttribute("src")):(await new Promise(y=>setTimeout(y,50)),this.value=p),this.__initialized=!0}disconnectedCallback(){this.editor&&this.editor.toTextArea(),this.editor=null,this.__initialized=!1}async setSrc(){const r=this.getAttribute("src"),o=await this.fetchSrc(r);this.value=o}async setValue(r){this.editor.swapDoc(Lne.Doc(r,this.getAttribute("mode"))),this.editor.refresh()}async fetchSrc(r){return(await fetch(r)).text()}static template(){return` - - `}static dedentText(r){const o=r.split(` -`);o[0]===""&&o.splice(0,1);const l=o[0];let a=0;const g=l[0]===" "?" ":" ";for(;l[a]===g;)a+=1;const w=[];for(const y of o){let S=y;for(let E=0;Er?K():o!==!0&&(p=setTimeout(a?q:K,a===void 0?r-j:r))}return E.cancel=S,E}function O7n(r,o,l){return l===void 0?yCt(r,o,!1):yCt(r,l,o!==!1)}const aC=Symbol("Initial value"),$Ce=Symbol("Editor dirty"),R6=Symbol("ParseHandler");function _7n(r){let a=0;return new Promise((p,g)=>{const w=setInterval(()=>{if(r()){clearInterval(w),p();return}a+=1,a===100&&(clearInterval(w),g(new Error("Value did not become truthy in time")))},10)})}class R7n extends KF{static get styles(){return F5n` - :host { - display: block; - text-align: left; - } - - [part='error'] { - text-decoration: underline; - text-decoration-color: red; - text-decoration-style: wavy; - } - - wc-codemirror, - #wrapper { - width: 100%; - height: 100%; - } - - :host(:not([ready])) #wrapper { - display: none; - } - `}static get properties(){return{value:{type:String,noAccessor:!0},readonly:{type:Boolean,reflect:!0},prefixes:{type:String,attribute:"prefixes"},isParsing:{type:Boolean,attribute:"is-parsing",reflect:!0},autoParse:{type:Boolean,attribute:"auto-parse"},parseDelay:{type:Number},customPrefixes:{type:Object}}}constructor(){super(),this.parseDelay=250,this[aC]="",this.customPrefixes={},navigator.onLine&&(this.__style=document.createElement("link"),this.__style.rel="stylesheet",this.__style.href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.61.1/codemirror.min.css")}connectedCallback(){const o=new Promise(l=>{this.__style.onload=l});super.connectedCallback(),this.ready=Promise.resolve().then(async()=>{await o,await this.requestUpdate(),await _7n(()=>this.codeMirror&&this.codeMirror.editor&&this.codeMirror.__initialized),await this._initializeCodeMirror(),[...this.renderRoot.querySelectorAll("[class^=CodeMirror]")].forEach(l=>{l.classList.forEach(a=>{a.match(/^CodeMirror/)&&l.setAttribute("part",a)})}),this.setAttribute("ready",""),this.codeMirror.editor.refresh(),this[aC]&&this.codeMirror.editor.setValue(this[aC])})}get _prefixes(){return async()=>(this.prefixes||"").split(",").map(l=>l.trim()).reduce((l,a)=>a in Kne?{...l,[a]:Kne[a]().value}:l,{})}get codeMirror(){return this.renderRoot.querySelector("wc-codemirror")}get value(){return this.hasAttribute("ready")?this.codeMirror.editor.getValue():this[aC]||""}set value(o){typeof o=="string"&&(this.hasAttribute("ready")?this.value!==o&&(this.codeMirror.editor.setValue(o),this[R6]()):this[aC]=o)}async firstUpdated(o){super.firstUpdated(o),this[aC]&&(await this.ready,this.codeMirror.editor.setValue(this[aC]),this[R6](),this[aC]=void 0)}updated(o){super.updated(o),(o.has("autoParse")||o.has("parseDelay"))&&this.__setParseHandler()}render(){return Q5n`${this.__style} -
- - -
`}async parse(){if(!this.isParsing){this.__errorMarker&&this.__errorMarker.clear(),this.isParsing=!0;try{await this._parse()}catch(o){typeof this._errorLine=="function"&&await this.__highlightError(this._errorLine(o)),this.dispatchEvent(new CustomEvent("parsing-failed",{detail:{error:o}}))}finally{this.isParsing=!1}}}async _initializeCodeMirror(){this.codeMirror.editor.setSize("100%","100%"),this.__setParseHandler(),this.codeMirror.editor.on("change",()=>{this[$Ce]=!0})}__setParseHandler(){this.codeMirror.editor&&(this[R6]&&(this.codeMirror.editor.off("blur",this[R6]),this.codeMirror.editor.off("change",this[R6])),this.autoParse?(this[R6]=O7n(this.parseDelay,this.__beginParse.bind(this)),this.codeMirror.editor.on("change",this[R6])):(this[R6]=this.__beginParse.bind(this),this.codeMirror.editor.on("blur",this[R6])))}async __beginParse(){this[$Ce]&&await this.parse(),this[$Ce]=!1}async __highlightError(o){if(!this.ready)return;let l={line:0,ch:0},a={line:0,ch:Number.MAX_SAFE_INTEGER};o&&o.from&&(l=o.from,this.codeMirror.editor.scrollIntoView(l)),o&&o.to&&(a=o.to);const p=o?o.message:"";await this.ready,this.__errorMarker=this.codeMirror.editor.getDoc().markText(l,a,{attributes:{part:"error",title:p}})}async _combinePrefixes(){return Object.entries(this.customPrefixes).reduce((o,[l,a])=>!a||!l||typeof a!="string"||typeof l!="string"?o:{...o,[l]:a},await this._prefixes())}}window.CodeMirror.defineMode("javascript",function(r,o){var l=r.indentUnit,a=o.statementIndent,p=o.jsonld,g=o.json||p,w=o.typescript,y=o.wordCharacters||/[\w$\xa1-\uffff]/,S=function(){function we(Ad){return{type:Ad,style:"keyword"}}var We=we("keyword a"),En=we("keyword b"),fr=we("keyword c"),xo=we("keyword d"),_s=we("operator"),tc={type:"atom",style:"atom"};return{if:we("if"),while:We,with:We,else:En,do:En,try:En,finally:En,return:xo,break:xo,continue:xo,new:we("new"),delete:fr,void:fr,throw:fr,debugger:we("debugger"),var:we("var"),const:we("var"),let:we("var"),function:we("function"),catch:we("catch"),for:we("for"),switch:we("switch"),case:we("case"),default:we("default"),in:_s,typeof:_s,instanceof:_s,true:tc,false:tc,null:tc,undefined:tc,NaN:tc,Infinity:tc,this:we("this"),class:we("class"),super:we("atom"),yield:fr,export:we("export"),import:we("import"),extends:fr,await:fr}}(),E=/[+\-*&%=<>!?|~^@]/,I=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(we){for(var We=!1,En,fr=!1;(En=we.next())!=null;){if(!We){if(En=="/"&&!fr)return;En=="["?fr=!0:fr&&En=="]"&&(fr=!1)}We=!We&&En=="\\"}}var _,R;function j(we,We,En){return _=we,R=En,We}function K(we,We){var En=we.next();if(En=='"'||En=="'")return We.tokenize=q(En),We.tokenize(we,We);if(En=="."&&we.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return j("number","number");if(En=="."&&we.match(".."))return j("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(En))return j(En);if(En=="="&&we.eat(">"))return j("=>","operator");if(En=="0"&&we.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return j("number","number");if(/\d/.test(En))return we.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),j("number","number");if(En=="/")return we.eat("*")?(We.tokenize=Q,Q(we,We)):we.eat("/")?(we.skipToEnd(),j("comment","comment")):Y_(we,We,1)?(M(we),we.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),j("regexp","string-2")):(we.eat("="),j("operator","operator",we.current()));if(En=="`")return We.tokenize=Z,Z(we,We);if(En=="#")return we.skipToEnd(),j("error","error");if(En=="<"&&we.match("!--")||En=="-"&&we.match("->"))return we.skipToEnd(),j("comment","comment");if(E.test(En))return(En!=">"||!We.lexical||We.lexical.type!=">")&&(we.eat("=")?(En=="!"||En=="=")&&we.eat("="):/[<>*+\-]/.test(En)&&(we.eat(En),En==">"&&we.eat(En))),j("operator","operator",we.current());if(y.test(En)){we.eatWhile(y);var fr=we.current();if(We.lastType!="."){if(S.propertyIsEnumerable(fr)){var xo=S[fr];return j(xo.type,xo.style,fr)}if(fr=="async"&&we.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return j("async","keyword",fr)}return j("variable","variable",fr)}}function q(we){return function(We,En){var fr=!1,xo;if(p&&We.peek()=="@"&&We.match(I))return En.tokenize=K,j("jsonld-keyword","meta");for(;(xo=We.next())!=null&&!(xo==we&&!fr);)fr=!fr&&xo=="\\";return fr||(En.tokenize=K),j("string","string")}}function Q(we,We){for(var En=!1,fr;fr=we.next();){if(fr=="/"&&En){We.tokenize=K;break}En=fr=="*"}return j("comment","comment")}function Z(we,We){for(var En=!1,fr;(fr=we.next())!=null;){if(!En&&(fr=="`"||fr=="$"&&we.eat("{"))){We.tokenize=K;break}En=!En&&fr=="\\"}return j("quasi","string-2",we.current())}var X="([{}])";function ie(we,We){We.fatArrowAt&&(We.fatArrowAt=null);var En=we.string.indexOf("=>",we.start);if(!(En<0)){if(w){var fr=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(we.string.slice(we.start,En));fr&&(En=fr.index)}for(var xo=0,_s=!1,tc=En-1;tc>=0;--tc){var Ad=we.string.charAt(tc),Zg=X.indexOf(Ad);if(Zg>=0&&Zg<3){if(!xo){++tc;break}if(--xo==0){Ad=="("&&(_s=!0);break}}else if(Zg>=3&&Zg<6)++xo;else if(y.test(Ad))_s=!0;else if(/["'\/`]/.test(Ad))for(;;--tc){if(tc==0)return;var FH=we.string.charAt(tc-1);if(FH==Ad&&we.string.charAt(tc-2)!="\\"){tc--;break}}else if(_s&&!xo){++tc;break}}_s&&!xo&&(We.fatArrowAt=tc)}}var je={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function et(we,We,En,fr,xo,_s){this.indented=we,this.column=We,this.type=En,this.prev=xo,this.info=_s,fr!=null&&(this.align=fr)}function mt(we,We){for(var En=we.localVars;En;En=En.next)if(En.name==We)return!0;for(var fr=we.context;fr;fr=fr.prev)for(var En=fr.vars;En;En=En.next)if(En.name==We)return!0}function bt(we,We,En,fr,xo){var _s=we.cc;for(ce.state=we,ce.stream=xo,ce.marked=null,ce.cc=_s,ce.style=We,we.lexical.hasOwnProperty("align")||(we.lexical.align=!0);;){var tc=_s.length?_s.pop():g?Ze:Zn;if(tc(En,fr)){for(;_s.length&&_s[_s.length-1].lex;)_s.pop()();return ce.marked?ce.marked:En=="variable"&&mt(we,fr)?"variable-2":We}}}var ce={state:null,column:null,marked:null,cc:null};function Be(){for(var we=arguments.length-1;we>=0;we--)ce.cc.push(arguments[we])}function ae(){return Be.apply(null,arguments),!0}function xe(we,We){for(var En=We;En;En=En.next)if(En.name==we)return!0;return!1}function U(we){var We=ce.state;if(ce.marked="def",We.context){if(We.lexical.info=="var"&&We.context&&We.context.block){var En=He(we,We.context);if(En!=null){We.context=En;return}}else if(!xe(we,We.localVars)){We.localVars=new At(we,We.localVars);return}}o.globalVars&&!xe(we,We.globalVars)&&(We.globalVars=new At(we,We.globalVars))}function He(we,We){if(We)if(We.block){var En=He(we,We.prev);return En?En==We.prev?We:new ft(En,We.vars,!0):null}else return xe(we,We.vars)?We:new ft(We.prev,new At(we,We.vars),!1);else return null}function yt(we){return we=="public"||we=="private"||we=="protected"||we=="abstract"||we=="readonly"}function ft(we,We,En){this.prev=we,this.vars=We,this.block=En}function At(we,We){this.name=we,this.next=We}var Jt=new At("this",new At("arguments",null));function un(){ce.state.context=new ft(ce.state.context,ce.state.localVars,!1),ce.state.localVars=Jt}function kn(){ce.state.context=new ft(ce.state.context,ce.state.localVars,!0),ce.state.localVars=null}function qt(){ce.state.localVars=ce.state.context.vars,ce.state.context=ce.state.context.prev}qt.lex=!0;function on(we,We){var En=function(){var fr=ce.state,xo=fr.indented;if(fr.lexical.type=="stat")xo=fr.lexical.indented;else for(var _s=fr.lexical;_s&&_s.type==")"&&_s.align;_s=_s.prev)xo=_s.indented;fr.lexical=new et(xo,ce.stream.column(),we,null,fr.lexical,We)};return En.lex=!0,En}function Rt(){var we=ce.state;we.lexical.prev&&(we.lexical.type==")"&&(we.indented=we.lexical.indented),we.lexical=we.lexical.prev)}Rt.lex=!0;function an(we){function We(En){return En==we?ae():we==";"||En=="}"||En==")"||En=="]"?Be():ae(We)}return We}function Zn(we,We){return we=="var"?ae(on("vardef",We),L3,an(";"),Rt):we=="keyword a"?ae(on("form"),Mn,Zn,Rt):we=="keyword b"?ae(on("form"),Zn,Rt):we=="keyword d"?ce.stream.match(/^\s*$/,!1)?ae():ae(on("stat"),ye,an(";"),Rt):we=="debugger"?ae(an(";")):we=="{"?ae(on("}"),kn,G,Rt,qt):we==";"?ae():we=="if"?(ce.state.lexical.info=="else"&&ce.state.cc[ce.state.cc.length-1]==Rt&&ce.state.cc.pop()(),ae(on("form"),Mn,Zn,Rt,Ne)):we=="function"?ae(Gr):we=="for"?ae(on("form"),Xe,Zn,Rt):we=="class"||w&&We=="interface"?(ce.marked="keyword",ae(on("form",we=="class"?we:We),ck,Rt)):we=="variable"?w&&We=="declare"?(ce.marked="keyword",ae(Zn)):w&&(We=="module"||We=="enum"||We=="type")&&ce.stream.match(/^\s*\w/,!1)?(ce.marked="keyword",We=="enum"?ae(QC):We=="type"?ae(Rd,an("operator"),Ut,an(";")):ae(on("form"),_d,an("{"),on("}"),G,Rt,Rt)):w&&We=="namespace"?(ce.marked="keyword",ae(on("form"),Ze,Zn,Rt)):w&&We=="abstract"?(ce.marked="keyword",ae(Zn)):ae(on("stat"),tn):we=="switch"?ae(on("form"),Mn,an("{"),on("}","switch"),kn,G,Rt,Rt,qt):we=="case"?ae(Ze,an(":")):we=="default"?ae(an(":")):we=="catch"?ae(on("form"),un,kt,Zn,Rt,qt):we=="export"?ae(on("stat"),uk,Rt):we=="import"?ae(on("stat"),ak,Rt):we=="async"?ae(Zn):We=="@"?ae(Ze,Zn):Be(on("stat"),Ze,an(";"),Rt)}function kt(we){if(we=="(")return ae(Jg,an(")"))}function Ze(we,We){return pr(we,We,!1)}function Xt(we,We){return pr(we,We,!0)}function Mn(we){return we!="("?Be():ae(on(")"),Ze,an(")"),Rt)}function pr(we,We,En){if(ce.state.fatArrowAt==ce.stream.start){var fr=En?ge:ue;if(we=="(")return ae(un,on(")"),br(Jg,")"),Rt,an("=>"),fr,qt);if(we=="variable")return Be(un,_d,an("=>"),fr,qt)}var xo=En?ee:Ce;return je.hasOwnProperty(we)?ae(xo):we=="function"?ae(Gr,xo):we=="class"||w&&We=="interface"?(ce.marked="keyword",ae(on("form"),mb,Rt)):we=="keyword c"||we=="async"?ae(En?Xt:Ze):we=="("?ae(on(")"),ye,an(")"),Rt,xo):we=="operator"||we=="spread"?ae(En?Xt:Ze):we=="["?ae(on("]"),BH,Rt,xo):we=="{"?de(Kn,"}",null,xo):we=="quasi"?Be(V,xo):we=="new"?ae(Ge(En)):we=="import"?ae(Ze):ae()}function ye(we){return we.match(/[;\}\)\],]/)?Be():Be(Ze)}function Ce(we,We){return we==","?ae(Ze):ee(we,We,!1)}function ee(we,We,En){var fr=En==!1?Ce:ee,xo=En==!1?Ze:Xt;if(we=="=>")return ae(un,En?ge:ue,qt);if(we=="operator")return/\+\+|--/.test(We)||w&&We=="!"?ae(fr):w&&We=="<"&&ce.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?ae(on(">"),br(Ut,">"),Rt,fr):We=="?"?ae(Ze,an(":"),xo):ae(xo);if(we=="quasi")return Be(V,fr);if(we!=";"){if(we=="(")return de(Xt,")","call",fr);if(we==".")return ae(Ct,fr);if(we=="[")return ae(on("]"),ye,an("]"),Rt,fr);if(w&&We=="as")return ce.marked="keyword",ae(Ut,fr);if(we=="regexp")return ce.state.lastType=ce.marked="operator",ce.stream.backUp(ce.stream.pos-ce.stream.start-1),ae(xo)}}function V(we,We){return we!="quasi"?Be():We.slice(We.length-2)!="${"?ae(V):ae(Ze,oe)}function oe(we){if(we=="}")return ce.marked="string-2",ce.state.tokenize=Z,ae(V)}function ue(we){return ie(ce.stream,ce.state),Be(we=="{"?Zn:Ze)}function ge(we){return ie(ce.stream,ce.state),Be(we=="{"?Zn:Xt)}function Ge(we){return function(We){return We=="."?ae(we?Lt:$t):We=="variable"&&w?ae(zs,we?ee:Ce):Be(we?Xt:Ze)}}function $t(we,We){if(We=="target")return ce.marked="keyword",ae(Ce)}function Lt(we,We){if(We=="target")return ce.marked="keyword",ae(ee)}function tn(we){return we==":"?ae(Rt,Zn):Be(Ce,an(";"),Rt)}function Ct(we){if(we=="variable")return ce.marked="property",ae()}function Kn(we,We){if(we=="async")return ce.marked="property",ae(Kn);if(we=="variable"||ce.style=="keyword"){if(ce.marked="property",We=="get"||We=="set")return ae(dn);var En;return w&&ce.state.fatArrowAt==ce.stream.start&&(En=ce.stream.match(/^\s*:\s*/,!1))&&(ce.state.fatArrowAt=ce.stream.pos+En[0].length),ae(Rn)}else{if(we=="number"||we=="string")return ce.marked=p?"property":ce.style+" property",ae(Rn);if(we=="jsonld-keyword")return ae(Rn);if(w&&yt(We))return ce.marked="keyword",ae(Kn);if(we=="[")return ae(Ze,Y,an("]"),Rn);if(we=="spread")return ae(Xt,Rn);if(We=="*")return ce.marked="keyword",ae(Kn);if(we==":")return Be(Rn)}}function dn(we){return we!="variable"?Be(Rn):(ce.marked="property",ae(Gr))}function Rn(we){if(we==":")return ae(Xt);if(we=="(")return Be(Gr)}function br(we,We,En){function fr(xo,_s){if(En?En.indexOf(xo)>-1:xo==","){var tc=ce.state.lexical;return tc.info=="call"&&(tc.pos=(tc.pos||0)+1),ae(function(Ad,Zg){return Ad==We||Zg==We?Be():Be(we)},fr)}return xo==We||_s==We?ae():En&&En.indexOf(";")>-1?Be(we):ae(an(We))}return function(xo,_s){return xo==We||_s==We?ae():Be(we,fr)}}function de(we,We,En){for(var fr=3;fr"),Ut)}function so(we){if(we=="=>")return ae(Ut)}function rl(we,We){if(we=="variable"||ce.style=="keyword")return ce.marked="property",ae(rl);if(We=="?"||we=="number"||we=="string")return ae(rl);if(we==":")return ae(Ut);if(we=="[")return ae(an("variable"),De,an("]"),rl);if(we=="(")return Be(lu,rl)}function Ro(we,We){return we=="variable"&&ce.stream.match(/^\s*[?:]/,!1)||We=="?"?ae(Ro):we==":"?ae(Ut):we=="spread"?ae(Ro):Be(Ut)}function Ao(we,We){if(We=="<")return ae(on(">"),br(Ut,">"),Rt,Ao);if(We=="|"||we=="."||We=="&")return ae(Ut);if(we=="[")return ae(Ut,an("]"),Ao);if(We=="extends"||We=="implements")return ce.marked="keyword",ae(Ut);if(We=="?")return ae(Ut,an(":"),Ut)}function zs(we,We){if(We=="<")return ae(on(">"),br(Ut,">"),Rt,Ao)}function by(){return Be(Ut,oT)}function oT(we,We){if(We=="=")return ae(Ut)}function L3(we,We){return We=="enum"?(ce.marked="keyword",ae(QC)):Be(_d,Y,$1,JC)}function _d(we,We){if(w&&yt(We))return ce.marked="keyword",ae(_d);if(we=="variable")return U(We),ae();if(we=="spread")return ae(_d);if(we=="[")return de(sT,"]");if(we=="{")return de(YC,"}")}function YC(we,We){return we=="variable"&&!ce.stream.match(/^\s*:/,!1)?(U(We),ae($1)):(we=="variable"&&(ce.marked="property"),we=="spread"?ae(_d):we=="}"?Be():we=="["?ae(Ze,an("]"),an(":"),YC):ae(an(":"),_d,$1))}function sT(){return Be(_d,$1)}function $1(we,We){if(We=="=")return ae(Xt)}function JC(we){if(we==",")return ae(L3)}function Ne(we,We){if(we=="keyword b"&&We=="else")return ae(on("form","else"),Zn,Rt)}function Xe(we,We){if(We=="await")return ae(Xe);if(we=="(")return ae(on(")"),Pr,Rt)}function Pr(we){return we=="var"?ae(L3,Cr):we=="variable"?ae(Cr):Be(Cr)}function Cr(we,We){return we==")"?ae():we==";"?ae(Cr):We=="in"||We=="of"?(ce.marked="keyword",ae(Ze,Cr)):Be(Ze,Cr)}function Gr(we,We){if(We=="*")return ce.marked="keyword",ae(Gr);if(we=="variable")return U(We),ae(Gr);if(we=="(")return ae(un,on(")"),br(Jg,")"),Rt,gt,Zn,qt);if(w&&We=="<")return ae(on(">"),br(by,">"),Rt,Gr)}function lu(we,We){if(We=="*")return ce.marked="keyword",ae(lu);if(we=="variable")return U(We),ae(lu);if(we=="(")return ae(un,on(")"),br(Jg,")"),Rt,gt,qt);if(w&&We=="<")return ae(on(">"),br(by,">"),Rt,lu)}function Rd(we,We){if(we=="keyword"||we=="variable")return ce.marked="type",ae(Rd);if(We=="<")return ae(on(">"),br(by,">"),Rt)}function Jg(we,We){return We=="@"&&ae(Ze,Jg),we=="spread"?ae(Jg):w&&yt(We)?(ce.marked="keyword",ae(Jg)):w&&we=="this"?ae(Y,$1):Be(_d,Y,$1)}function mb(we,We){return we=="variable"?ck(we,We):$3(we,We)}function ck(we,We){if(we=="variable")return U(We),ae($3)}function $3(we,We){if(We=="<")return ae(on(">"),br(by,">"),Rt,$3);if(We=="extends"||We=="implements"||w&&we==",")return We=="implements"&&(ce.marked="keyword"),ae(w?Ut:Ze,$3);if(we=="{")return ae(on("}"),j1,Rt)}function j1(we,We){if(we=="async"||we=="variable"&&(We=="static"||We=="get"||We=="set"||w&&yt(We))&&ce.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return ce.marked="keyword",ae(j1);if(we=="variable"||ce.style=="keyword")return ce.marked="property",ae(w?wy:Gr,j1);if(we=="number"||we=="string")return ae(w?wy:Gr,j1);if(we=="[")return ae(Ze,Y,an("]"),w?wy:Gr,j1);if(We=="*")return ce.marked="keyword",ae(j1);if(w&&we=="(")return Be(lu,j1);if(we==";"||we==",")return ae(j1);if(we=="}")return ae();if(We=="@")return ae(Ze,j1)}function wy(we,We){if(We=="?")return ae(wy);if(we==":")return ae(Ut,$1);if(We=="=")return ae(Xt);var En=ce.state.lexical.prev,fr=En&&En.info=="interface";return Be(fr?lu:Gr)}function uk(we,We){return We=="*"?(ce.marked="keyword",ae(lT,an(";"))):We=="default"?(ce.marked="keyword",ae(Ze,an(";"))):we=="{"?ae(br(j3,"}"),lT,an(";")):Be(Zn)}function j3(we,We){if(We=="as")return ce.marked="keyword",ae(an("variable"));if(we=="variable")return Be(Xt,j3)}function ak(we){return we=="string"?ae():we=="("?Be(Ze):Be(Fp,Qg,lT)}function Fp(we,We){return we=="{"?de(Fp,"}"):(we=="variable"&&U(We),We=="*"&&(ce.marked="keyword"),ae(zp))}function Qg(we){if(we==",")return ae(Fp,Qg)}function zp(we,We){if(We=="as")return ce.marked="keyword",ae(Fp)}function lT(we,We){if(We=="from")return ce.marked="keyword",ae(Ze)}function BH(we){return we=="]"?ae():Be(br(Xt,"]"))}function QC(){return Be(on("form"),_d,an("{"),on("}"),br(cT,"}"),Rt,Rt)}function cT(){return Be(_d,$1)}function ZC(we,We){return we.lastType=="operator"||we.lastType==","||E.test(We.charAt(0))||/[,.]/.test(We.charAt(0))}function Y_(we,We,En){return We.tokenize==K&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(We.lastType)||We.lastType=="quasi"&&/\{\s*$/.test(we.string.slice(0,we.pos-(En||0)))}return{startState:function(we){var We={tokenize:K,lastType:"sof",cc:[],lexical:new et((we||0)-l,0,"block",!1),localVars:o.localVars,context:o.localVars&&new ft(null,null,!1),indented:we||0};return o.globalVars&&typeof o.globalVars=="object"&&(We.globalVars=o.globalVars),We},token:function(we,We){if(we.sol()&&(We.lexical.hasOwnProperty("align")||(We.lexical.align=!1),We.indented=we.indentation(),ie(we,We)),We.tokenize!=Q&&we.eatSpace())return null;var En=We.tokenize(we,We);return _=="comment"?En:(We.lastType=_=="operator"&&(R=="++"||R=="--")?"incdec":_,bt(We,En,_,R,we))},indent:function(we,We){if(we.tokenize==Q)return CodeMirror.Pass;if(we.tokenize!=K)return 0;var En=We&&We.charAt(0),fr=we.lexical,xo;if(!/^\s*else\b/.test(We))for(var _s=we.cc.length-1;_s>=0;--_s){var tc=we.cc[_s];if(tc==Rt)fr=fr.prev;else if(tc!=Ne)break}for(;(fr.type=="stat"||fr.type=="form")&&(En=="}"||(xo=we.cc[we.cc.length-1])&&(xo==Ce||xo==ee)&&!/^[,\.=+\-*:?[\(]/.test(We));)fr=fr.prev;a&&fr.type==")"&&fr.prev.type=="stat"&&(fr=fr.prev);var Ad=fr.type,Zg=En==Ad;return Ad=="vardef"?fr.indented+(we.lastType=="operator"||we.lastType==","?fr.info.length+1:0):Ad=="form"&&En=="{"?fr.indented:Ad=="form"?fr.indented+l:Ad=="stat"?fr.indented+(ZC(we,We)?a||l:0):fr.info=="switch"&&!Zg&&o.doubleIndentSwitch!=!1?fr.indented+(/^(?:case|default)\b/.test(We)?l:2*l):fr.align?fr.column+(Zg?0:1):fr.indented+(Zg?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:p,jsonMode:g,expressionAllowed:Y_,skipExpression:function(we){var We=we.cc[we.cc.length-1];(We==Ze||We==Xt)&&we.cc.pop()}}});CodeMirror.registerHelper("wordChars","javascript",/[\w$]/);CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/x-javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:!0});CodeMirror.defineMIME("application/x-json",{name:"javascript",json:!0});CodeMirror.defineMIME("application/ld+json",{name:"javascript",jsonld:!0});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:!0});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:!0});window.CodeMirror.defineMode("turtle",function(r){var o=r.indentUnit,l;function a(I){return new RegExp("^(?:"+I.join("|")+")$","i")}a([]);var p=a(["@prefix","@base","a"]),g=/[*+\-<>=&|]/;function w(I,M){var _=I.next();if(l=null,_=="<"&&!I.match(/^[\s\u00a0=]/,!1))return I.match(/^[^\s\u00a0>]*>?/),"atom";if(_=='"'||_=="'")return M.tokenize=y(_),M.tokenize(I,M);if(/[{}\(\),\.;\[\]]/.test(_))return l=_,null;if(_=="#")return I.skipToEnd(),"comment";if(g.test(_))return I.eatWhile(g),null;if(_==":")return"operator";if(I.eatWhile(/[_\w\d]/),I.peek()==":")return"variable-3";var R=I.current();return p.test(R)?"meta":_>="A"&&_<="Z"?"comment":"keyword";var R=I.current()}function y(I){return function(M,_){for(var R=!1,j;(j=M.next())!=null;){if(j==I&&!R){_.tokenize=w;break}R=!R&&j=="\\"}return"string"}}function S(I,M,_){I.context={prev:I.context,indent:I.indent,col:_,type:M}}function E(I){I.indent=I.context.indent,I.context=I.context.prev}return{startState:function(){return{tokenize:w,context:null,indent:0,col:0}},token:function(I,M){if(I.sol()&&(M.context&&M.context.align==null&&(M.context.align=!1),M.indent=I.indentation()),I.eatSpace())return null;var _=M.tokenize(I,M);if(_!="comment"&&M.context&&M.context.align==null&&M.context.type!="pattern"&&(M.context.align=!0),l=="(")S(M,")",I.column());else if(l=="[")S(M,"]",I.column());else if(l=="{")S(M,"}",I.column());else if(/[\]\}\)]/.test(l)){for(;M.context&&M.context.type=="pattern";)E(M);M.context&&l==M.context.type&&E(M)}else l=="."&&M.context&&M.context.type=="pattern"?E(M):/atom|string|variable/.test(_)&&M.context&&(/[\}\]]/.test(M.context.type)?S(M,"pattern",I.column()):M.context.type=="pattern"&&!M.context.align&&(M.context.align=!0,M.context.col=I.column()));return _},indent:function(I,M){var _=M&&M.charAt(0),R=I.context;if(/[\]\}]/.test(_))for(;R&&R.type=="pattern";)R=R.prev;var j=R&&_==R.type;return R?R.type=="pattern"?R.col:R.align?R.col+(j?0:1):R.indent+(j?0:o):0},lineComment:"#"}});CodeMirror.defineMIME("text/turtle","turtle");CodeMirror.defineMIME("text/n3","turtle");CodeMirror.defineMIME("application/trig","turtle");window.CodeMirror.defineMode("ntriples",function(){var r={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function o(l,a){var p=l.location,g;p==r.PRE_SUBJECT&&a=="<"?g=r.WRITING_SUB_URI:p==r.PRE_SUBJECT&&a=="_"?g=r.WRITING_BNODE_URI:p==r.PRE_PRED&&a=="<"?g=r.WRITING_PRED_URI:p==r.PRE_OBJ&&a=="<"?g=r.WRITING_OBJ_URI:p==r.PRE_OBJ&&a=="_"?g=r.WRITING_OBJ_BNODE:p==r.PRE_OBJ&&a=='"'?g=r.WRITING_OBJ_LITERAL:p==r.WRITING_SUB_URI&&a==">"||p==r.WRITING_BNODE_URI&&a==" "?g=r.PRE_PRED:p==r.WRITING_PRED_URI&&a==">"?g=r.PRE_OBJ:p==r.WRITING_OBJ_URI&&a==">"||p==r.WRITING_OBJ_BNODE&&a==" "||p==r.WRITING_OBJ_LITERAL&&a=='"'||p==r.WRITING_LIT_LANG&&a==" "||p==r.WRITING_LIT_TYPE&&a==">"?g=r.POST_OBJ:p==r.WRITING_OBJ_LITERAL&&a=="@"?g=r.WRITING_LIT_LANG:p==r.WRITING_OBJ_LITERAL&&a=="^"?g=r.WRITING_LIT_TYPE:a==" "&&(p==r.PRE_SUBJECT||p==r.PRE_PRED||p==r.PRE_OBJ||p==r.POST_OBJ)?g=p:p==r.POST_OBJ&&a=="."?g=r.PRE_SUBJECT:g=r.ERROR,l.location=g}return{startState:function(){return{location:r.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(l,a){var p=l.next();if(p=="<"){o(a,p);var g="";return l.eatWhile(function(I){return I!="#"&&I!=">"?(g+=I,!0):!1}),a.uris.push(g),l.match("#",!1)||(l.next(),o(a,">")),"variable"}if(p=="#"){var w="";return l.eatWhile(function(I){return I!=">"&&I!=" "?(w+=I,!0):!1}),a.anchors.push(w),"variable-2"}if(p==">")return o(a,">"),"variable";if(p=="_"){o(a,p);var y="";return l.eatWhile(function(I){return I!=" "?(y+=I,!0):!1}),a.bnodes.push(y),l.next(),o(a," "),"builtin"}if(p=='"')return o(a,p),l.eatWhile(function(I){return I!='"'}),l.next(),l.peek()!="@"&&l.peek()!="^"&&o(a,'"'),"string";if(p=="@"){o(a,"@");var S="";return l.eatWhile(function(I){return I!=" "?(S+=I,!0):!1}),a.langs.push(S),l.next(),o(a," "),"string-2"}if(p=="^"){l.next(),o(a,"^");var E="";return l.eatWhile(function(I){return I!=">"?(E+=I,!0):!1}),a.types.push(E),l.next(),o(a,">"),"variable"}p==" "&&o(a,p),p=="."&&o(a,p)}}});CodeMirror.defineMIME("application/n-triples","ntriples");CodeMirror.defineMIME("application/n-quads","ntriples");CodeMirror.defineMIME("text/n-triples","ntriples");var A7n={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},L7n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};window.CodeMirror.defineMode("xml",function(r,o){var l=r.indentUnit,a={},p=o.htmlMode?A7n:L7n;for(var g in p)a[g]=p[g];for(var g in o)a[g]=o[g];var w,y;function S(ce,Be){function ae(He){return Be.tokenize=He,He(ce,Be)}var xe=ce.next();if(xe=="<")return ce.eat("!")?ce.eat("[")?ce.match("CDATA[")?ae(M("atom","]]>")):null:ce.match("--")?ae(M("comment","-->")):ce.match("DOCTYPE",!0,!0)?(ce.eatWhile(/[\w\._\-]/),ae(_(1))):null:ce.eat("?")?(ce.eatWhile(/[\w\._\-]/),Be.tokenize=M("meta","?>"),"meta"):(w=ce.eat("/")?"closeTag":"openTag",Be.tokenize=E,"tag bracket");if(xe=="&"){var U;return ce.eat("#")?ce.eat("x")?U=ce.eatWhile(/[a-fA-F\d]/)&&ce.eat(";"):U=ce.eatWhile(/[\d]/)&&ce.eat(";"):U=ce.eatWhile(/[\w\.\-:]/)&&ce.eat(";"),U?"atom":"error"}else return ce.eatWhile(/[^&<]/),null}S.isInText=!0;function E(ce,Be){var ae=ce.next();if(ae==">"||ae=="/"&&ce.eat(">"))return Be.tokenize=S,w=ae==">"?"endTag":"selfcloseTag","tag bracket";if(ae=="=")return w="equals",null;if(ae=="<"){Be.tokenize=S,Be.state=q,Be.tagName=Be.tagStart=null;var xe=Be.tokenize(ce,Be);return xe?xe+" tag error":"tag error"}else return/[\'\"]/.test(ae)?(Be.tokenize=I(ae),Be.stringStartCol=ce.column(),Be.tokenize(ce,Be)):(ce.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function I(ce){var Be=function(ae,xe){for(;!ae.eol();)if(ae.next()==ce){xe.tokenize=E;break}return"string"};return Be.isInAttribute=!0,Be}function M(ce,Be){return function(ae,xe){for(;!ae.eol();){if(ae.match(Be)){xe.tokenize=S;break}ae.next()}return ce}}function _(ce){return function(Be,ae){for(var xe;(xe=Be.next())!=null;){if(xe=="<")return ae.tokenize=_(ce+1),ae.tokenize(Be,ae);if(xe==">")if(ce==1){ae.tokenize=S;break}else return ae.tokenize=_(ce-1),ae.tokenize(Be,ae)}return"meta"}}function R(ce,Be,ae){this.prev=ce.context,this.tagName=Be,this.indent=ce.indented,this.startOfLine=ae,(a.doNotIndent.hasOwnProperty(Be)||ce.context&&ce.context.noIndent)&&(this.noIndent=!0)}function j(ce){ce.context&&(ce.context=ce.context.prev)}function K(ce,Be){for(var ae;;){if(!ce.context||(ae=ce.context.tagName,!a.contextGrabbers.hasOwnProperty(ae)||!a.contextGrabbers[ae].hasOwnProperty(Be)))return;j(ce)}}function q(ce,Be,ae){return ce=="openTag"?(ae.tagStart=Be.column(),Q):ce=="closeTag"?Z:q}function Q(ce,Be,ae){return ce=="word"?(ae.tagName=Be.current(),y="tag",je):a.allowMissingTagName&&ce=="endTag"?(y="tag bracket",je(ce,Be,ae)):(y="error",Q)}function Z(ce,Be,ae){if(ce=="word"){var xe=Be.current();return ae.context&&ae.context.tagName!=xe&&a.implicitlyClosed.hasOwnProperty(ae.context.tagName)&&j(ae),ae.context&&ae.context.tagName==xe||a.matchClosing===!1?(y="tag",X):(y="tag error",ie)}else return a.allowMissingTagName&&ce=="endTag"?(y="tag bracket",X(ce,Be,ae)):(y="error",ie)}function X(ce,Be,ae){return ce!="endTag"?(y="error",X):(j(ae),q)}function ie(ce,Be,ae){return y="error",X(ce,Be,ae)}function je(ce,Be,ae){if(ce=="word")return y="attribute",et;if(ce=="endTag"||ce=="selfcloseTag"){var xe=ae.tagName,U=ae.tagStart;return ae.tagName=ae.tagStart=null,ce=="selfcloseTag"||a.autoSelfClosers.hasOwnProperty(xe)?K(ae,xe):(K(ae,xe),ae.context=new R(ae,xe,U==ae.indented)),q}return y="error",je}function et(ce,Be,ae){return ce=="equals"?mt:(a.allowMissing||(y="error"),je(ce,Be,ae))}function mt(ce,Be,ae){return ce=="string"?bt:ce=="word"&&a.allowUnquoted?(y="string",je):(y="error",je(ce,Be,ae))}function bt(ce,Be,ae){return ce=="string"?bt:je(ce,Be,ae)}return{startState:function(ce){var Be={tokenize:S,state:q,indented:ce||0,tagName:null,tagStart:null,context:null};return ce!=null&&(Be.baseIndent=ce),Be},token:function(ce,Be){if(!Be.tagName&&ce.sol()&&(Be.indented=ce.indentation()),ce.eatSpace())return null;w=null;var ae=Be.tokenize(ce,Be);return(ae||w)&&ae!="comment"&&(y=null,Be.state=Be.state(w||ae,ce,Be),y&&(ae=y=="error"?ae+" error":y)),ae},indent:function(ce,Be,ae){var xe=ce.context;if(ce.tokenize.isInAttribute)return ce.tagStart==ce.indented?ce.stringStartCol+1:ce.indented+l;if(xe&&xe.noIndent)return CodeMirror.Pass;if(ce.tokenize!=E&&ce.tokenize!=S)return ae?ae.match(/^(\s*)/)[0].length:0;if(ce.tagName)return a.multilineTagIndentPastTag!==!1?ce.tagStart+ce.tagName.length+2:ce.tagStart+l*(a.multilineTagIndentFactor||1);if(a.alignCDATA&&/$/,blockCommentStart:"",configuration:a.htmlMode?"html":"xml",helperType:a.htmlMode?"html":"xml",skipAttribute:function(ce){ce.state==mt&&(ce.state=je)},xmlCurrentTag:function(ce){return ce.tagName?{name:ce.tagName,close:ce.type=="closeTag"}:null},xmlCurrentContext:function(ce){for(var Be=[],ae=ce.context;ae;ae=ae.prev)ae.tagName&&Be.push(ae.tagName);return Be.reverse()}}});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/xml","xml");CodeMirror.mimeModes.hasOwnProperty("text/html")||CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:!0});const rne=Symbol("parsed quads");let $7n=class extends R7n{static get properties(){return{format:{type:String,reflect:!0},quads:{type:Array},noReserialize:{type:Boolean,attribute:"no-reserialize"}}}constructor(){super(),this.isParsing=!1,this.noReserialize=!1}disconnectedCallback(){super.disconnectedCallback(),this.ready=null}get quads(){return this[rne]}set quads(o){if(typeof o>"u"||o===null)return;const l=this[rne];this[rne]=o,this.requestUpdate("quads",l)}async updated(o){super.updated(o);let l=!1,a=!1;const p=this.quads&&this.quads.length>0;o.has("format")&&(l=p&&!this.noReserialize,a=!l),o.has("quads")&&(l=!0),(o.has("prefixes")||o.has("customPrefixes"))&&(l=p),a?this.parse():l&&this.__serialize()}async _parse(){const{toStream:o}=await Xg(async()=>{const{toStream:w}=await import("./stream-DR3nFz_Q.js");return{toStream:w}},[]),l=o(this.value),a=[],p={},g=this.$rdf.formats.parsers.import(this.format,l);if(!g){this.dispatchEvent(new CustomEvent("parsing-failed",{detail:{notFound:!0}}));return}g.on("prefix",(w,y)=>{p[w]=y});for await(const w of g)a.push(w);this[rne]=a,this.dispatchEvent(new CustomEvent("quads-changed",{detail:{value:a}})),this.__notifyParsedPrefixes(p)}async __serialize(){if(!this.format)return;await this.ready;const{Readable:o}=await Xg(async()=>{const{Readable:w}=await import("./stream-DR3nFz_Q.js");return{Readable:w}},[]),l=[...this.quads||[]],a=new o({objectMode:!0,read(){if(l.length===0){this.push(null);return}this.push(l.shift())}}),p=this.$rdf.formats.serializers.import(this.format,a,{prefixes:await this._combinePrefixes()});if(!p){this.value=`No serializer found for media type ${this.format}`;return}let g="";for await(const w of p)g+=w;this.format===py.jsonLd&&(g=JSON.stringify(JSON.parse(g),null,2)),this.value=g,this.dispatchEvent(new CustomEvent("serialized",{detail:{value:g}}))}_errorLine(o){const l={message:o.message};return o.context&&o.context.line&&(l.from={line:o.context.line-1,ch:0},l.to={line:o.context.line-1,ch:Number.MAX_SAFE_INTEGER}),l}__notifyParsedPrefixes(o){const l={},a={...o};for(const[p,g]of Object.entries(o))p in Kne&&(l[p]=g,delete a[p]);this.dispatchEvent(new CustomEvent("prefixes-parsed",{detail:{prefixes:{...l,...a}}}))}};const lIt=new u9e([D9t,CH]);lIt.formats.import(bm);window.customElements.define("rdf-editor",class extends mwn($7n,lIt){});var $ie=(r=>(r.JsonLD="application/ld+json",r.Trig="application/trig",r.NQuads="application/n-quads",r.NTriples="application/n-triples",r.Turtle="text/turtle",r.RdfXML="application/rdf+xml",r))($ie||{});const N6=[{contentType:"text/turtle",name:"Turtle",type:"text/turtle"},{contentType:"application/ld+json",name:"JSON-LD",type:"application/ld+json"},{contentType:"application/trig",name:"TriG",type:"application/trig"},{contentType:"application/n-quads",name:"N-Quads",type:"application/n-quads"},{contentType:"application/n-triples",name:"N-Triples",type:"application/n-triples"},{contentType:"application/rdf+xml",name:"RDF/XML",type:"application/rdf+xml"}],kxe="com.zazuko.sketch",$ne=`${kxe}.text`,jne=`${kxe}.format`,jCe=`${kxe}.prefix`,j7n=5e3,D7n={class:"editor-container"},N7n=[".value","format","customPrefixes"],kCt="rdf,rdfs,sh",B7n=bc({__name:"RdfEditor",props:{format:{}},emits:["change","format-change"],setup(r,{emit:o}){const l=r,a=o,p=Co([]),g=Co(null),w=Co($ie.Turtle);Os(()=>l.format,_=>{_!==w.value&&(w.value=_)});const y=Co("");function S(_){console.error("Parsing failed",_.detail)}function E(_){var q,Q;const R=(Q=(q=g.value)==null?void 0:q.codeMirror)==null?void 0:Q.value,j=_.detail.value,K={quads:j,rdfText:R,serializationFormat:l.format,prefix:p.value};j.length{const _={};return p.value.forEach(R=>{typeof R.uri=="string"?_[R.prefix]=R.uri:_[R.prefix]=R.uri.value}),kCt.split(",").forEach(R=>{delete _[R]}),_});return bb(()=>{const _=localStorage.getItem($ne),R=localStorage.getItem(jne),j=JSON.parse(localStorage.getItem(jCe)??"[]");_&&R&&N6.find(K=>K.type===R)&&Array.isArray(j)?(y.value=_,w.value=(N6.find(K=>K.type===R)??N6[0]).type,p.value=j,a("format-change",w.value)):(localStorage.removeItem($ne),localStorage.removeItem(jne),localStorage.removeItem(jCe))}),(_,R)=>(ve(),wt("div",D7n,[ar("rdf-editor",{".value":y.value,format:w.value,ref_key:"editorElement",ref:g,prefixes:kCt,customPrefixes:M.value,"auto-parse":"",parseDelay:"1000",onParsingFailed:S,onQuadsChanged:E,onPrefixesParsed:I},null,40,N7n)]))}}),$H=(r,o)=>{const l=r.__vccOpts||r;for(const[a,p]of o)l[a]=p;return l},F7n=$H(B7n,[["__scopeId","data-v-abcbd41c"]]);function CCt({parent:r,child:o}){return new Proxy({},{get(a,p){return o[p]||r[p]},set(a,p,g){return o[p]=g,!0},has(a,p){return p in o||p in r},ownKeys(){const a=Object.getOwnPropertyNames(r),p=Object.getOwnPropertyNames(o);return[...new Set([...a,...p]).values()]},getOwnPropertyDescriptor(a,p){return{enumerable:!p.toString().startsWith("_"),configurable:!0}}})}class Gz{constructor(o,{parent:l,bind:a=!1}={}){if(this._parent=l,o instanceof u9e||o instanceof Gz)return CCt({parent:l,child:o});this._factories=o.slice();const p=l?CCt({parent:l,child:this}):this;for(const g of this._factories){typeof g.prototype.init=="function"&&g.prototype.init.call(p);for(const w of g.exports||[])a?this[w]=g.prototype[w].bind(p):this[w]=g.prototype[w]}return p}clone(){const o=new Gz(this._factories,this._parent);for(const l of o._factories)typeof l.prototype.clone=="function"&&l.prototype.clone.call(o,this);return o}}const{Readable:z7n}=I9e;function H7n(r){const o=r[Symbol.iterator](),l=new z7n({objectMode:!0,read:()=>{for(;;){const a=o.next().value;if(!a){l.push(null);return}if(!l.push(a))return}}});return l}var K7n=H7n;const cIt=_3(K7n),{promisify:U7n}=die,{finished:G7n}=I9e;async function W7n(r,o){return o.on("data",l=>r.add(l)),await U7n(G7n)(o),r}var V7n=W7n;const uIt=_3(V7n);var q7n=class aIt{constructor(o,l=new Map,a=0){this.prefix=o,this._existing=l,this.counter=a}clone(){const{prefix:o,_existing:l,counter:a}=this;return new aIt(o,new Map(l),a)}getId(o){const l=o&&this._existing.get(o);if(l)return l;const a=this.prefix+this.counter;return this.counter++,o&&this._existing.set(o,a),a}hasId(o){return this._existing.has(o)}getOldIds(){return[...this._existing.keys()]}};(function(r,o){if(r.setImmediate)return;var l=1,a={},p=!1,g=r.document,w;function y(Z){typeof Z!="function"&&(Z=new Function(""+Z));for(var X=new Array(arguments.length-1),ie=0;ie"u"?typeof window>"u"?_wn:window:self);/*! - * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. - */const DCe=self.crypto||self.msCrypto;var X7n=class{constructor(o){if(!(DCe&&DCe.subtle))throw new Error("crypto.subtle not found.");if(o==="sha256")this.algorithm={name:"SHA-256"};else if(o==="sha1")this.algorithm={name:"SHA-1"};else throw new Error(`Unsupported algorithm "${o}".`);this._content=""}update(o){this._content+=o}async digest(){const o=new TextEncoder().encode(this._content),l=new Uint8Array(await DCe.subtle.digest(this.algorithm,o));let a="";for(let p=0;pp)&&(E&&y>0&&S>o[y-1]||!E&&yo[y+1])&&(p=S,g=y)}if(p===null)this.done=!0;else{const y=l.get(p)?g-1:g+1;o[g]=o[y],o[y]=p;for(const S of o)S>p&&l.set(S,!l.get(S))}return a}};/*! - * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. - */const J7n="http://www.w3.org/1999/02/22-rdf-syntax-ns#",NCe=J7n+"langString",BCe="http://www.w3.org/2001/XMLSchema#string",Jv="NamedNode",lE="BlankNode",Dne="Literal",SCt="DefaultGraph",d_={};(()=>{const r="(?:<([^:]+:[^>]*)>)",l="A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�"+"_",a=l+"0-9-·̀-ͯ‿-⁀",g="(_:(?:["+l+"0-9])(?:(?:["+a+".])*(?:["+a+"]))?)",w='"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"',y="(?:\\^\\^"+r+")",E="(?:"+w+"(?:"+y+"|"+"(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*))"+")?)",I="[ \\t]+",M="[ \\t]*",_="(?:"+r+"|"+g+")"+I,R=r+I,j="(?:"+r+"|"+g+"|"+E+")"+M,K="(?:\\.|(?:(?:"+r+"|"+g+")"+M+"\\.))";d_.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,d_.empty=new RegExp("^"+M+"$"),d_.quad=new RegExp("^"+M+_+R+j+K+M+"$")})();var Q7n=class Nne{static parse(o){const l=[],a={},p=o.split(d_.eoln);let g=0;for(const w of p){if(g++,d_.empty.test(w))continue;const y=w.match(d_.quad);if(y===null)throw new Error("N-Quads parse error on line "+g+".");const S={subject:null,predicate:null,object:null,graph:null};if(y[1]!==void 0?S.subject={termType:Jv,value:y[1]}:S.subject={termType:lE,value:y[2]},S.predicate={termType:Jv,value:y[3]},y[4]!==void 0?S.object={termType:Jv,value:y[4]}:y[5]!==void 0?S.object={termType:lE,value:y[5]}:(S.object={termType:Dne,value:void 0,datatype:{termType:Jv}},y[7]!==void 0?S.object.datatype.value=y[7]:y[8]!==void 0?(S.object.datatype.value=NCe,S.object.language=y[8]):S.object.datatype.value=BCe,S.object.value=rSn(y[6])),y[9]!==void 0?S.graph={termType:Jv,value:y[9]}:y[10]!==void 0?S.graph={termType:lE,value:y[10]}:S.graph={termType:SCt,value:""},!(S.graph.value in a))a[S.graph.value]=[S],l.push(S);else{let E=!0;const I=a[S.graph.value];for(const M of I)if(Z7n(M,S)){E=!1;break}E&&(I.push(S),l.push(S))}}return l}static serialize(o){Array.isArray(o)||(o=Nne.legacyDatasetToQuads(o));const l=[];for(const a of o)l.push(Nne.serializeQuad(a));return l.sort().join("")}static serializeQuadComponents(o,l,a,p){let g="";return o.termType===Jv?g+=`<${o.value}>`:g+=`${o.value}`,g+=` <${l.value}> `,a.termType===Jv?g+=`<${a.value}>`:a.termType===lE?g+=a.value:(g+=`"${tSn(a.value)}"`,a.datatype.value===NCe?a.language&&(g+=`@${a.language}`):a.datatype.value!==BCe&&(g+=`^^<${a.datatype.value}>`)),p.termType===Jv?g+=` <${p.value}>`:p.termType===lE&&(g+=` ${p.value}`),g+=` . -`,g}static serializeQuad(o){return Nne.serializeQuadComponents(o.subject,o.predicate,o.object,o.graph)}static legacyDatasetToQuads(o){const l=[],a={"blank node":lE,IRI:Jv,literal:Dne};for(const p in o)o[p].forEach(w=>{const y={};for(const S in w){const E=w[S],I={termType:a[E.type],value:E.value};I.termType===Dne&&(I.datatype={termType:Jv},"datatype"in E&&(I.datatype.value=E.datatype),"language"in E?("datatype"in E||(I.datatype.value=NCe),I.language=E.language):"datatype"in E||(I.datatype.value=BCe)),y[S]=I}p==="@default"?y.graph={termType:SCt,value:""}:y.graph={termType:p.startsWith("_:")?lE:Jv,value:p},l.push(y)});return l}};function Z7n(r,o){return!(r.subject.termType===o.subject.termType&&r.object.termType===o.object.termType)||!(r.subject.value===o.subject.value&&r.predicate.value===o.predicate.value&&r.object.value===o.object.value)?!1:r.object.termType!==Dne?!0:r.object.datatype.termType===o.object.datatype.termType&&r.object.language===o.object.language&&r.object.datatype.value===o.object.datatype.value}const eSn=/["\\\n\r]/g;function tSn(r){return r.replace(eSn,function(o){switch(o){case'"':return'\\"';case"\\":return"\\\\";case` -`:return"\\n";case"\r":return"\\r"}})}const nSn=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function rSn(r){return r.replace(nSn,function(o,l,a,p){if(l)switch(l){case"t":return" ";case"b":return"\b";case"n":return` -`;case"r":return"\r";case"f":return"\f";case'"':return'"';case"'":return"'";case"\\":return"\\"}if(a)return String.fromCharCode(parseInt(a,16));if(p)throw new Error("Unsupported U escape")})}/*! - * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. - */const xCt=q7n,iSn=X7n,oSn=Y7n,ECt=Q7n;var sSn=class{constructor({createMessageDigest:o=()=>new iSn("sha256"),canonicalIdMap:l=new Map,maxDeepIterations:a=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new xCt("_:c14n",l),this.createMessageDigest=o,this.maxDeepIterations=a,this.quads=null,this.deepIterations=null}main(o){this.deepIterations=new Map,this.quads=o;for(const y of o)this._addBlankNodeQuadInfo({quad:y,component:y.subject}),this._addBlankNodeQuadInfo({quad:y,component:y.object}),this._addBlankNodeQuadInfo({quad:y,component:y.graph});const l=new Map,a=[...this.blankNodeInfo.keys()];for(const y of a)this._hashAndTrackBlankNode({id:y,hashToBlankNodes:l});const p=[...l.keys()].sort(),g=[];for(const y of p){const S=l.get(y);if(S.length>1){g.push(S);continue}const E=S[0];this.canonicalIssuer.getId(E)}for(const y of g){const S=[];for(const E of y){if(this.canonicalIssuer.hasId(E))continue;const I=new xCt("_:b");I.getId(E);const M=this.hashNDegreeQuads(E,I);S.push(M)}S.sort(lSn);for(const E of S){const I=E.issuer.getOldIds();for(const M of I)this.canonicalIssuer.getId(M)}}const w=[];for(const y of this.quads){const S=ECt.serializeQuadComponents(this._componentWithCanonicalId({component:y.subject}),y.predicate,this._componentWithCanonicalId({component:y.object}),this._componentWithCanonicalId({component:y.graph}));w.push(S)}return w.sort(),w.join("")}hashFirstDegreeQuads(o){const l=[],a=this.blankNodeInfo.get(o),p=a.quads;for(const w of p){const y={subject:null,predicate:w.predicate,object:null,graph:null};y.subject=this.modifyFirstDegreeComponent(o,w.subject,"subject"),y.object=this.modifyFirstDegreeComponent(o,w.object,"object"),y.graph=this.modifyFirstDegreeComponent(o,w.graph,"graph"),l.push(ECt.serializeQuad(y))}l.sort();const g=this.createMessageDigest();for(const w of l)g.update(w);return a.hash=g.digest(),a.hash}hashRelatedBlankNode(o,l,a,p){let g;this.canonicalIssuer.hasId(o)?g=this.canonicalIssuer.getId(o):a.hasId(o)?g=a.getId(o):g=this.blankNodeInfo.get(o).hash;const w=this.createMessageDigest();return w.update(p),p!=="g"&&w.update(this.getRelatedPredicate(l)),w.update(g),w.digest()}hashNDegreeQuads(o,l){const a=this.deepIterations.get(o)||0;if(a>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(o,a+1);const p=this.createMessageDigest(),g=this.createHashToRelated(o,l),w=[...g.keys()].sort();for(const y of w){p.update(y);let S="",E;const I=new oSn(g.get(y));for(;I.hasNext();){const M=I.next();let _=l.clone(),R="";const j=[];let K=!1;for(const q of M)if(this.canonicalIssuer.hasId(q)?R+=this.canonicalIssuer.getId(q):(_.hasId(q)||j.push(q),R+=_.getId(q)),S.length!==0&&R>S){K=!0;break}if(!K){for(const q of j){const Q=this.hashNDegreeQuads(q,_);if(R+=_.getId(q),R+=`<${Q.hash}>`,_=Q.issuer,S.length!==0&&R>S){K=!0;break}}K||(S.length===0||R`}createHashToRelated(o,l){const a=new Map,p=this.blankNodeInfo.get(o).quads;for(const g of p)this._addRelatedBlankNodeHash({quad:g,component:g.subject,position:"s",id:o,issuer:l,hashToRelated:a}),this._addRelatedBlankNodeHash({quad:g,component:g.object,position:"o",id:o,issuer:l,hashToRelated:a}),this._addRelatedBlankNodeHash({quad:g,component:g.graph,position:"g",id:o,issuer:l,hashToRelated:a});return a}_hashAndTrackBlankNode({id:o,hashToBlankNodes:l}){const a=this.hashFirstDegreeQuads(o),p=l.get(a);p?p.push(o):l.set(a,[o])}_addBlankNodeQuadInfo({quad:o,component:l}){if(l.termType!=="BlankNode")return;const a=l.value,p=this.blankNodeInfo.get(a);p?p.quads.add(o):this.blankNodeInfo.set(a,{quads:new Set([o]),hash:null})}_addRelatedBlankNodeHash({quad:o,component:l,position:a,id:p,issuer:g,hashToRelated:w}){if(!(l.termType==="BlankNode"&&l.value!==p))return;const y=l.value,S=this.hashRelatedBlankNode(y,o,g,a),E=w.get(S);E?E.push(y):w.set(S,[y])}_componentWithCanonicalId({component:o}){return o.termType==="BlankNode"&&!o.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(o.value)}:o}};function lSn(r,o){return r.hasho.hash?1:0}const cSn=sSn;function uSn(r){return new cSn().main(r)}var aSn=uSn;const fIt=_3(aSn);function fSn(r,o){for(const l of o)r.add(l);return r}var dSn=fSn;const lSe=_3(dSn);function hSn(r,o,l,a,p){const g=r.match(o,l,a,p);for(const w of g)r.delete(w);return r}var pSn=hSn;const dIt=_3(pSn);function gSn(r,o){if(r.size!==o.size)return!1;for(const l of r)if(!o.has(l))return!1;return!0}var bSn=gSn;const hIt=_3(bSn),wSn=r=>class{constructor(){M8e(this,"dataset")}init(){const o=r(this);this.dataset=(l=[])=>new o([...l]),this.dataset.Class=o,this.dataset.addAll=lSe,this.dataset.deleteMatch=dIt,this.dataset.equals=hIt}},mSn=r=>class extends wSn(r){init(){super.init(),this.dataset.toCanonical=fIt,this.dataset.toStream=cIt,this.dataset.fromStream=o=>uIt(this.dataset(),o)}};let Cxe=class{namespace(o){return Gn(o,{factory:this})}};Cxe.exports=["namespace"];const Sxe=r=>{const o=r.namespace("http://www.w3.org/2001/XMLSchema#"),l=r.namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#");return{first:l.first,nil:l.nil,rest:l.rest,langString:l.langString,xsd:o}};function Gg(r,o){return typeof r>"u"||r===null?o:Array.isArray(r)?r:typeof r!="string"&&r[Symbol.iterator]?[...r]:[r]}const iT=new u9e([Cxe,CH]),{xsd:cSe}=Sxe(iT);function vSn(r,o=iT){return typeof r!="boolean"?null:o.literal(r.toString(),cSe("boolean"))}function ySn(r,o=iT){return typeof r!="number"?null:Number.isInteger(r)?o.literal(r.toString(10),cSe("integer")):o.literal(r.toString(10),cSe("double"))}function kSn(r,o=iT){return typeof r!="string"?null:o.literal(r)}function CSn(r,o=iT){return vSn(r,o)||ySn(r,o)||kSn(r,o)}function SSn(r,o){if(r&&typeof r!="string")throw new Error("Blank node identifier must be a string");return o.blankNode(r)}function xSn(r,o,l){if(typeof r=="string")return o=o&&(o.value||o.toString()),o&&o.indexOf(":")!==-1&&(o=l.namedNode(o)),l.literal(r.toString(),o);const a=CSn(r,l);if(!a)throw new Error("The value cannot be converted to a literal node");return a}function TCt(r,o){if(typeof r!="string")throw new Error("Named node must be an IRI string");return o.namedNode(r)}function pIt(r,o="Literal",l,a){if(r&&typeof r=="object"&&r.termType)return r;if(r&&r.constructor.name==="URL")return TCt(r.toString(),a);if(o==="BlankNode")return SSn(r,a);if(!(r===null||typeof r>"u")){if(o==="Literal")return xSn(r,l,a);if(o==="NamedNode")return TCt(r,a);throw new Error("unknown type")}}function ESn(r,o,l,a){return(typeof r>"u"||r===null)&&!o?r:(Gg(r)||[void 0]).reduce((p,g)=>typeof g=="object"&&g.terms?p.concat(g.terms):(p.push(pIt(g,o,l,a)),p),[])}const ICt=Sxe(iT);function TSn(r,o){const l=o.termType!=="Literal",a=ICt.langString.equals(o.datatype)||ICt.xsd.string.equals(o.datatype);if(l||!a)return r;const p=o.language.toLowerCase();return r.has(p)?r.get(p).push(o):r.set(p,[o]),r}function ISn(r){const o=r.reduce(TSn,new Map),l=[...o.entries()];return a=>{const p=a.toLowerCase();if(p==="*")return l[0]&&l[0][1];const g=o.get(p);if(g)return g;const w=l.find(([y])=>y.startsWith(p));return w&&w[1]}}function PSn(r,{language:o}){const l=typeof o=="string"?[o]:o,a=ISn(r);return l.map(a).find(Boolean)||[]}class xxe{constructor({dataset:o,graph:l,value:a,factory:p,namespace:g}){this.dataset=o,this.graph=l,this.factory=p,this.namespace=g,this.term=pIt(a,void 0,void 0,p)}clone({dataset:o=this.dataset,graph:l=this.graph,value:a,factory:p=this.factory,namespace:g=this.namespace}){return new xxe({dataset:o,graph:l,value:a,factory:p,namespace:g})}has(o,l){return this.matchProperty(Gg(this.term),o,l,Gg(this.graph),"subject").map(a=>this.clone({value:a}))}in(o){return this.matchProperty(null,o,Gg(this.term),Gg(this.graph),"subject").map(l=>this.clone({value:l}))}out(o,{language:l}={}){let a=this.matchProperty(Gg(this.term),o,null,Gg(this.graph),"object");return typeof l<"u"&&(a=PSn(a,{language:l})),a.map(p=>this.clone({value:p}))}addIn(o,l){const a=[];return this.term&&l.forEach(p=>{o.forEach(g=>{this.dataset.add(this.factory.quad(p,g,this.term,this.graph))}),a.push(this.clone({value:p}))}),a}addOut(o,l){const a=[];return this.term&&l.forEach(p=>{o.forEach(g=>{this.dataset.add(this.factory.quad(this.term,g,p,this.graph))}),a.push(this.clone({value:p}))}),a}addList(o,l){this.term&&o.forEach(a=>{const p=l.map(()=>this.factory.blankNode());this.dataset.add(this.factory.quad(this.term,a,p[0]||this.namespace.nil,this.graph));for(let g=0;g{for(const a of this.dataset.match(this.term,l))this.deleteItems(a)})}deleteItems(o){let l=[o];for(;!l[l.length-1].object.equals(this.namespace.nil);){const a=l[l.length-1].object;l=l.concat([...this.dataset.match(a)])}l.forEach(a=>{this.dataset.delete(a)})}match(o,l,a,p){if(!o&&!l&&!a&&!p)return[...this.dataset];o=o||[null],l=l||[null],a=a||[null],p=p||[null];const g=[];for(const w of p)for(const y of o)for(const S of l)for(const E of a)for(const I of this.dataset.match(y,S,E,w))g.push(I);return g}matchProperty(o,l,a,p,g){return this.match(o,l,a,p).map(w=>w[g])}deleteMatch(o,l,a,p){this.match(o,l,a,p).forEach(g=>{this.dataset.delete(g)})}}class Ug{constructor({dataset:o,graph:l,term:a,value:p,factory:g,_context:w}){if(this.factory=g,this.namespace=Sxe(g),w){this._context=w;return}const y=a&&Gg(a)||p&&Gg(p)||[null];this._context=y.map(S=>new xxe({dataset:o,graph:l,value:S,factory:this.factory,namespace:this.namespace}))}get term(){const o=this.terms;if(o.length===1)return o[0]}get terms(){return this._context.map(o=>o.term).filter(Boolean)}get value(){const o=this.term;return o&&o.value}get values(){return this.terms.map(o=>o.value)}get dataset(){const o=this.datasets;if(o.length===1)return o[0]}get datasets(){return this._context.map(o=>o.dataset).filter(Boolean)}any(){return Ug.fromContext(this._context.map(o=>o.clone({})),this)}isList(){return this.term?!!(this.term.equals(this.namespace.nil)||this.out(this.namespace.first).term):!1}list(){if(this.terms.length>1)throw new Error("iterator over multiple terms is not supported");if(this.term&&(this.term.termType!=="NamedNode"&&this.term.termType!=="BlankNode"||!this.term.equals(this.namespace.nil)&&!this.out(this.namespace.first).term))return null;let o=this;return{[Symbol.iterator]:()=>({next:()=>{if(!o.term||o.term.equals(this.namespace.nil))return{done:!0};const l=o.out(this.namespace.first);if(l.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:first on ${o.value}`);const a=o.out(this.namespace.rest);if(a.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:rest on ${o.value}`);return o=a,{done:!1,value:l}}})}}toArray(){return this._context.map(o=>Ug.fromContext(o,this)).filter(o=>o.terms.some(Boolean))}filter(o){const l=this._context.map(a=>Ug.fromContext(a,this));return Ug.fromContext(this._context.filter((a,p)=>o(Ug.fromContext(a,this),p,l)),this)}forEach(o){return this.toArray().forEach(o),this}map(o){return this.toArray().map(o)}toString(){return this.values.join()}node(o,{type:l,datatype:a,language:p}={}){o=this._toTermArray(o,l,a||p)||[null];const g=o.reduce((w,y)=>w.concat(this._context.reduce((S,E)=>S.concat([E.clone({value:y})]),[])),[]);return Ug.fromContext(g,{factory:this.factory})}blankNode(o){return this.node(o,{type:"BlankNode"})}literal(o,l){return this.node(o,{type:"Literal",datatype:l})}namedNode(o){return this.node(o,{type:"NamedNode"})}in(o){o=this._toTermArray(o);const l=this._context.reduce((a,p)=>a.concat(p.in(o)),[]);return Ug.fromContext(l,this)}out(o,l={}){o=this._toTermArray(o);const a=this._context.reduce((p,g)=>p.concat(g.out(o,l)),[]);return Ug.fromContext(a,this)}has(o,l){o=this._toTermArray(o),l=this._toTermArray(l);const a=this._context.reduce((p,g)=>p.concat(g.has(o,l)),[]);return Ug.fromContext(a,this)}addIn(o,l,a){if(!o)throw new Error("predicate parameter is required");typeof l=="function"&&(a=l,l=null),o=this._toTermArray(o),l=this._toTermArray(l)||[this.factory.blankNode()];const p=this._context.map(g=>g.addIn(o,l));return a&&Ug.fromContext(p,this).forEach(a),this}addOut(o,l,a){if(!o)throw new Error("predicate parameter is required");typeof l=="function"&&(a=l,l=null),o=this._toTermArray(o),l=this._toTermArray(l)||[this.factory.blankNode()];const p=this._context.map(g=>g.addOut(o,l));return a&&Ug.fromContext(p,this).forEach(a),this}addList(o,l){if(!o||!l)throw new Error("predicate and items parameter is required");return o=this._toTermArray(o),l=this._toTermArray(l),this._context.forEach(a=>a.addList(o,l)),this}deleteIn(o,l){return o=this._toTermArray(o),l=this._toTermArray(l),this._context.forEach(a=>a.deleteIn(o,l)),this}deleteOut(o,l){return o=this._toTermArray(o),l=this._toTermArray(l),this._context.forEach(a=>a.deleteOut(o,l)),this}deleteList(o){if(!o)throw new Error("predicate parameter is required");return o=this._toTermArray(o),this._context.forEach(l=>l.deleteList(o)),this}_toTermArray(o,l,a){return ESn(o,l,a,this.factory)}static fromContext(o,{factory:l}){return new Ug({_context:Gg(o),factory:l})}}function MSn({dataset:r,graph:o,term:l,value:a,factory:p=iT,_context:g}){return new Ug({dataset:r,graph:o,term:l,value:a,factory:p,_context:g})}class gIt{clownface({...o}={}){return!o.dataset&&typeof this.dataset=="function"&&(o.dataset=this.dataset()),MSn({...o,factory:this})}}gIt.exports=["clownface"];let bIt=class{termMap(o){return new kF(o)}};bIt.exports=["termMap"];function PCt(r){try{return w3(r)}catch{return null}}class yre{constructor(o){if(this.index=new Map,o)for(const l of o)this.add(l)}get size(){return this.index.size}add(o){const l=w3(o);return this.index.has(l)||this.index.set(l,o),this}clear(){this.index.clear()}delete(o){return o?this.index.delete(PCt(o)):!1}entries(){return this.values().entries()}forEach(o,l){return this.values().forEach(o,l)}has(o){return o?this.index.has(PCt(o)):!1}values(){return new Set(this.index.values())}keys(){return this.values()}[Symbol.iterator](){return this.index.values()}}let wIt=class{termSet(o){return new yre(o)}};wIt.exports=["termSet"];class OSn{constructor(){this.quadLevel=new Map}add(o,l){this.quadLevel.set(w3(o),l)}has(o,l){const a=this.quadLevel.get(w3(o));return a===void 0?!1:a<=l}}function FCe({backward:r,callback:o,dataset:l,filter:a,forward:p,term:g,visited:w=new OSn}){const y=(S,E)=>{const I=M=>{for(const _ of M){if(w.has(_,E))continue;w.add(_,E);const R={dataset:l,level:E,quad:_};a(R)&&(o(R),p&&y(_.object,E+1),r&&y(_.subject,E+1))}};p&&I(l.match(S)),r&&I(l.match(null,null,S))};y(g,0)}class _Sn{constructor(o,{backward:l=!1,factory:a,forward:p=!0}){this.backward=l,this.factory=a,this.filter=o,this.forward=p}forEach({term:o,dataset:l},a){FCe({backward:this.backward,callback:a,dataset:l,filter:this.filter,forward:this.forward,term:o})}match({term:o,dataset:l}){const a=this.factory.dataset();return FCe({backward:this.backward,callback:({quad:p})=>a.add(p),dataset:l,filter:this.filter,forward:this.forward,term:o}),a}reduce({term:o,dataset:l},a,p){let g=p;return FCe({backward:this.backward,callback:w=>{g=a(w,g)},dataset:l,filter:this.filter,forward:this.forward,term:o}),g}}class mIt{traverser(o,{backward:l=!1,forward:a=!0}={}){return new _Sn(o,{backward:l,factory:this,forward:a})}}mIt.exports=["traverser"];const RSn=new Gz([CH,D9t,Cxe,tEt,gIt,bIt,wIt,mIt]);function ASn(r,{checkOpen:o=!0}={}){return r!==null&&typeof r=="object"&&(r.writable||r.readable||!o||r.writable===void 0&&r.readable===void 0)&&typeof r.pipe=="function"}function LSn(r,{checkOpen:o=!0}={}){return ASn(r,{checkOpen:o})&&(r.readable||!o)&&typeof r.read=="function"&&typeof r.readable=="boolean"&&typeof r.readableObjectMode=="boolean"&&typeof r.destroy=="function"&&typeof r.destroyed=="boolean"}const $Sn=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);var h3,dH,TC,ty,D_,vIt,yIt;class jSn{constructor(o,l){Zx(this,D_);Zx(this,h3);Zx(this,dH);Zx(this,TC,!1);Zx(this,ty);s3(this,h3,o),s3(this,dH,l)}next(){const o=()=>_8e(this,D_,vIt).call(this);return s3(this,ty,Kh(this,ty)?Kh(this,ty).then(o,o):o()),Kh(this,ty)}return(o){const l=()=>_8e(this,D_,yIt).call(this,o);return Kh(this,ty)?Kh(this,ty).then(l,l):l()}}h3=new WeakMap,dH=new WeakMap,TC=new WeakMap,ty=new WeakMap,D_=new WeakSet,vIt=async function(){if(Kh(this,TC))return{done:!0,value:void 0};let o;try{o=await Kh(this,h3).read()}catch(l){throw s3(this,ty,void 0),s3(this,TC,!0),Kh(this,h3).releaseLock(),l}return o.done&&(s3(this,ty,void 0),s3(this,TC,!0),Kh(this,h3).releaseLock()),o},yIt=async function(o){if(Kh(this,TC))return{done:!0,value:o};if(s3(this,TC,!0),!Kh(this,dH)){const l=Kh(this,h3).cancel(o);return Kh(this,h3).releaseLock(),await l,{done:!0,value:o}}return Kh(this,h3).releaseLock(),{done:!0,value:o}};const Exe=Symbol();function kIt(){return this[Exe].next()}Object.defineProperty(kIt,"name",{value:"next"});function CIt(r){return this[Exe].return(r)}Object.defineProperty(CIt,"name",{value:"return"});const DSn=Object.create($Sn,{next:{enumerable:!0,configurable:!0,writable:!0,value:kIt},return:{enumerable:!0,configurable:!0,writable:!0,value:CIt}});function NSn({preventCancel:r=!1}={}){const o=this.getReader(),l=new jSn(o,r),a=Object.create(DSn);return a[Exe]=l,a}const BSn=r=>{if(LSn(r,{checkOpen:!1})&&Txe.on!==void 0)return zSn(r);if(typeof(r==null?void 0:r[Symbol.asyncIterator])=="function")return r;if(FSn.call(r)==="[object ReadableStream]")return NSn.call(r);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:FSn}=Object.prototype,zSn=async function*(r){const o=new AbortController,l={};HSn(r,o,l);try{for await(const[a]of Txe.on(r,"data",{signal:o.signal}))yield a}catch(a){if(l.error!==void 0)throw l.error;if(!o.signal.aborted)throw a}finally{r.destroy()}},HSn=async(r,o,l)=>{try{await Txe.finished(r,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(a){l.error=a}finally{o.abort()}},Txe={},KSn=async(r,{init:o,convertChunk:l,getSize:a,truncateChunk:p,addChunk:g,getFinalChunk:w,finalize:y},{maxBuffer:S=Number.POSITIVE_INFINITY}={})=>{const E=BSn(r),I=o();I.length=0;try{for await(const M of E){const _=GSn(M),R=l[_](M,I);SIt({convertedChunk:R,state:I,getSize:a,truncateChunk:p,addChunk:g,maxBuffer:S})}return USn({state:I,convertChunk:l,getSize:a,truncateChunk:p,addChunk:g,getFinalChunk:w,maxBuffer:S}),y(I)}catch(M){const _=typeof M=="object"&&M!==null?M:new Error(M);throw _.bufferedData=y(I),_}},USn=({state:r,getSize:o,truncateChunk:l,addChunk:a,getFinalChunk:p,maxBuffer:g})=>{const w=p(r);w!==void 0&&SIt({convertedChunk:w,state:r,getSize:o,truncateChunk:l,addChunk:a,maxBuffer:g})},SIt=({convertedChunk:r,state:o,getSize:l,truncateChunk:a,addChunk:p,maxBuffer:g})=>{const w=l(r),y=o.length+w;if(y<=g){MCt(r,o,p,y);return}const S=a(r,g-o.length);throw S!==void 0&&MCt(S,o,p,g),new WSn},MCt=(r,o,l,a)=>{o.contents=l(r,o,a),o.length=a},GSn=r=>{var a;const o=typeof r;if(o==="string")return"string";if(o!=="object"||r===null)return"others";if((a=globalThis.Buffer)!=null&&a.isBuffer(r))return"buffer";const l=OCt.call(r);return l==="[object ArrayBuffer]"?"arrayBuffer":l==="[object DataView]"?"dataView":Number.isInteger(r.byteLength)&&Number.isInteger(r.byteOffset)&&OCt.call(r.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:OCt}=Object.prototype;class WSn extends Error{constructor(){super("maxBuffer exceeded");M8e(this,"name","MaxBufferError")}}const VSn=r=>r,qSn=({contents:r})=>r,XSn=r=>{throw new Error(`Streams in object mode are not supported: ${String(r)}`)},YSn=r=>r.length;async function JSn(r,o){return KSn(r,n9n,o)}const QSn=()=>({contents:"",textDecoder:new TextDecoder}),ine=(r,{textDecoder:o})=>o.decode(r,{stream:!0}),ZSn=(r,{contents:o})=>o+r,e9n=(r,o)=>r.slice(0,o),t9n=({textDecoder:r})=>{const o=r.decode();return o===""?void 0:o},n9n={init:QSn,convertChunk:{string:VSn,buffer:ine,arrayBuffer:ine,dataView:ine,typedArray:ine,others:XSn},getSize:YSn,truncateChunk:e9n,addChunk:ZSn,getFinalChunk:t9n,finalize:qSn};function cE(r){return typeof r=="string"||r instanceof String}const r9n="http://www.w3.org/2001/XMLSchema#string";function Wf(r){if(typeof r=="string")return r;if(!r)return"";if(typeof r.id<"u"&&r.termType!=="Quad")return r.id;let o,l,a,p;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.language?`"${r.value}"@${r.language}`:`"${r.value}"${r.datatype&&r.datatype.value!==r9n?`^^${r.datatype.value}`:""}`;case"Quad":return o=zCe(Wf(r.subject)),l=zCe(Wf(r.predicate)),a=zCe(Wf(r.object)),p=r.graph.termType==="DefaultGraph"?"":` ${Wf(r.graph)}`,`<<${o} ${l} ${a}${p}>>`;default:throw new Error(`Unexpected termType: ${r.termType}`)}}const i9n=/^"(.*".*)(?="[^"]*$)/;function zCe(r){return r.replace(i9n,(o,l)=>`"${l.replace(/"/g,'""')}`)}class o9n{constructor(o){if(this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._ids["><"]=0,this._entities=Object.create(null),this._quads=new Map,o)for(const l of o)this.add(l)}get size(){let o=this._size;if(o!==null)return o;o=0;const l=this._graphs;let a,p;for(const g in l)for(const w in a=l[g].subjects)for(const y in p=a[w])o+=Object.keys(p[y]).length;return this._size=o,this._size}add(o){let l=Wf(o.subject),a=Wf(o.predicate),p=Wf(o.object);const g=Wf(o.graph);let w=this._graphs[g];w||(w=this._graphs[g]={subjects:{},predicates:{},objects:{}},Object.freeze(w));const y=this._ids,S=this._entities;return l=y[l]||(y[S[++this._id]=l]=this._id),a=y[a]||(y[S[++this._id]=a]=this._id),p=y[p]||(y[S[++this._id]=p]=this._id),this._addToIndex(w.subjects,l,a,p),this._addToIndex(w.predicates,a,p,l),this._addToIndex(w.objects,p,l,a),this._setQuad(l,a,p,g,o),this._size=null,this}delete(o){let l=Wf(o.subject),a=Wf(o.predicate),p=Wf(o.object);const g=Wf(o.graph),w=this._ids,y=this._graphs;let S,E,I;if(!(l=w[l])||!(a=w[a])||!(p=w[p])||!(S=y[g])||!(E=S.subjects[l])||!(I=E[a])||!(p in I))return this;this._removeFromIndex(S.subjects,l,a,p),this._removeFromIndex(S.predicates,a,p,l),this._removeFromIndex(S.objects,p,l,a),this._size!==null&&this._size--,this._deleteQuad(l,a,p,g);for(l in S.subjects)return this;return delete y[g],this}has(o){const l=Wf(o.subject),a=Wf(o.predicate),p=Wf(o.object),g=Wf(o.graph),w=this._graphs[g];if(!w)return!1;const y=this._ids;let S,E,I;return cE(l)&&!(S=y[l])||cE(a)&&!(E=y[a])||cE(p)&&!(I=y[p])?!1:this._countInIndex(w.objects,I,S,E)===1}match(o,l,a,p){return this._createDataset(this._match(o,l,a,p))}[Symbol.iterator](){return this._match()[Symbol.iterator]()}_addToIndex(o,l,a,p){const g=o[l]||(o[l]={}),w=g[a]||(g[a]={}),y=p in w;return y||(w[p]=null),!y}_removeFromIndex(o,l,a,p){const g=o[l],w=g[a];delete w[p];for(const y in w)return;delete g[a];for(const y in g)return;delete o[l]}_findInIndex(o,l,a,p,g,w,y,S,E,I){let M,_,R;l&&((M=o,o={})[l]=M[l]);for(const j in o)if(_=o[j],_){a&&((M=_,_={})[a]=M[a]);for(const K in _)if(R=_[K],R){const q=p?p in R?[p]:[]:Object.keys(R);for(let Q=0;Qo(l,this))}filter(o){return new this.constructor([...this].filter(l=>o(l,this)))}map(o){return new this.constructor([...this].map(l=>o(l,this)))}match(...o){return super.match(...o)}merge(...[o]){return lSe(new this.constructor([...this]),o)}}function l9n(r){return class extends s9n{import(...[o]){return uIt(this,o)}toCanonical(){return fIt(this)}toStream(){return cIt(this)}async serialize({format:o,prefixes:l=[]}){const a=r.formats.serializers.get(o);return a?JSn(a.import(this.toStream(),{prefixes:l.reduce((p,g)=>Array.isArray(g)?{...p,[g[0]]:g[1]}:g in B7e?{...p,[g]:B7e[g]}:p,{})})):this.toCanonical()}}}function c9n(){return new Gz([mSn(l9n)],{parent:RSn})}const u9n=c9n(),uSe=u9n;var w_;class a9n{constructor(){Zx(this,w_,{})}update(o){s3(this,w_,{}),o.forEach(l=>{Kh(this,w_)[l.prefix]=l.uri})}get prefixes(){return Kh(this,w_)}}w_=new WeakMap;const xIt=new a9n;function h_(r){if(r.termType==="NamedNode"){const o=bEt(r.value,xIt.prefixes);return o||r.value}return r.value}function f9n(r){const o=[...r].map(g=>g.subject),l=[...r].filter(g=>!g.predicate.equals(uSe.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"))).map(g=>g.object).filter(g=>g.termType==="BlankNode"||g.termType==="NamedNode");return[...new yre([...o,...l])].map(g=>{const S=[...[...r.match(g)].reduce((E,{predicate:I,object:M})=>{if(!E.has(I.value)){const _={id:I.value,term:I,name:h_(I),values:new yre};E.set(I.value,_)}return E.get(I.value).values.add(M),E},new Map).values()].sort((E,I)=>E.name==="rdf:type"?-1:I.name==="rdf:type"?1:E.name.localeCompare(I.name));return{id:g.value===""?"_:nobody":g.value,term:g,name:h_(g),properties:S}})}function d9n(r){const o=new yre(r.map(a=>a.term));return r.flatMap(a=>a.properties.map(p=>({...p,resource:a}))).reduce((a,p)=>(p.values.forEach(g=>{const w=p.resource.term,y=g;o.has(y)&&a.push({source:w.value,target:y.value,sourceProperty:p.id,label:p.name})}),a),[])}function jie(r){return $re()?(_F(r),!0):!1}function B6(r){return typeof r=="function"?r():Lr(r)}const h9n=typeof window<"u"&&typeof document<"u",p9n=r=>typeof r<"u",g9n=Object.prototype.toString,b9n=r=>g9n.call(r)==="[object Object]",w9n=()=>{};function m9n(r,o){function l(...a){return new Promise((p,g)=>{Promise.resolve(r(()=>o.apply(this,a),{fn:o,thisArg:this,args:a})).then(p).catch(g)})}return l}const EIt=r=>r();function v9n(r=EIt){const o=Co(!0);function l(){o.value=!1}function a(){o.value=!0}const p=(...g)=>{o.value&&r(...g)};return{isActive:hH(o),pause:l,resume:a,eventFilter:p}}function _Ct(r,o=!1,l="Timeout"){return new Promise((a,p)=>{setTimeout(o?()=>p(l):a,r)})}function y9n(r,o,l={}){const{eventFilter:a=EIt,...p}=l;return Os(r,m9n(a,o),p)}function NO(r,o,l={}){const{eventFilter:a,...p}=l,{eventFilter:g,pause:w,resume:y,isActive:S}=v9n(a);return{stop:y9n(r,o,{...p,eventFilter:g}),pause:w,resume:y,isActive:S}}function k9n(r,o={}){if(!Ef(r))return edn(r);const l=Array.isArray(r.value)?Array.from({length:r.value.length}):{};for(const a in r.value)l[a]=Zfn(()=>({get(){return r.value[a]},set(p){var g;if((g=B6(o.replaceRef))!=null?g:!0)if(Array.isArray(r.value)){const y=[...r.value];y[a]=p,r.value=y}else{const y={...r.value,[a]:p};Object.setPrototypeOf(y,Object.getPrototypeOf(r.value)),r.value=y}else r.value[a]=p}}));return l}function aSe(r,o=!1){function l(M,{flush:_="sync",deep:R=!1,timeout:j,throwOnTimeout:K}={}){let q=null;const Z=[new Promise(X=>{q=Os(r,ie=>{M(ie)!==o&&(q==null||q(),X(ie))},{flush:_,deep:R,immediate:!0})})];return j!=null&&Z.push(_Ct(j,K).then(()=>B6(r)).finally(()=>q==null?void 0:q())),Promise.race(Z)}function a(M,_){if(!Ef(M))return l(ie=>ie===M,_);const{flush:R="sync",deep:j=!1,timeout:K,throwOnTimeout:q}=_??{};let Q=null;const X=[new Promise(ie=>{Q=Os([r,M],([je,et])=>{o!==(je===et)&&(Q==null||Q(),ie(je))},{flush:R,deep:j,immediate:!0})})];return K!=null&&X.push(_Ct(K,q).then(()=>B6(r)).finally(()=>(Q==null||Q(),B6(r)))),Promise.race(X)}function p(M){return l(_=>!!_,M)}function g(M){return a(null,M)}function w(M){return a(void 0,M)}function y(M){return l(Number.isNaN,M)}function S(M,_){return l(R=>{const j=Array.from(R);return j.includes(M)||j.includes(B6(M))},_)}function E(M){return I(1,M)}function I(M=1,_){let R=-1;return l(()=>(R+=1,R>=M),_)}return Array.isArray(B6(r))?{toMatch:l,toContains:S,changed:E,changedTimes:I,get not(){return aSe(r,!o)}}:{toMatch:l,toBe:a,toBeTruthy:p,toBeNull:g,toBeNaN:y,toBeUndefined:w,changed:E,changedTimes:I,get not(){return aSe(r,!o)}}}function fSe(r){return aSe(r)}function C9n(r){var o;const l=B6(r);return(o=l==null?void 0:l.$el)!=null?o:l}const TIt=h9n?window:void 0;function IIt(...r){let o,l,a,p;if(typeof r[0]=="string"||Array.isArray(r[0])?([l,a,p]=r,o=TIt):[o,l,a,p]=r,!o)return w9n;Array.isArray(l)||(l=[l]),Array.isArray(a)||(a=[a]);const g=[],w=()=>{g.forEach(I=>I()),g.length=0},y=(I,M,_,R)=>(I.addEventListener(M,_,R),()=>I.removeEventListener(M,_,R)),S=Os(()=>[C9n(o),B6(p)],([I,M])=>{if(w(),!I)return;const _=b9n(M)?{...M}:M;g.push(...l.flatMap(R=>a.map(j=>y(I,R,j,_))))},{immediate:!0,flush:"post"}),E=()=>{S(),w()};return jie(E),E}function S9n(r){return typeof r=="function"?r:typeof r=="string"?o=>o.key===r:Array.isArray(r)?o=>r.includes(o.key):()=>!0}function RCt(...r){let o,l,a={};r.length===3?(o=r[0],l=r[1],a=r[2]):r.length===2?typeof r[1]=="object"?(o=!0,l=r[0],a=r[1]):(o=r[0],l=r[1]):(o=!0,l=r[0]);const{target:p=TIt,eventName:g="keydown",passive:w=!1,dedupe:y=!1}=a,S=S9n(o);return IIt(p,g,I=>{I.repeat&&B6(y)||S(I)&&l(I)},w)}function x9n(r){return JSON.parse(JSON.stringify(r))}function HCe(r,o,l,a={}){var p,g,w;const{clone:y=!1,passive:S=!1,eventName:E,deep:I=!1,defaultValue:M,shouldEmit:_}=a,R=UC(),j=l||(R==null?void 0:R.emit)||((p=R==null?void 0:R.$emit)==null?void 0:p.bind(R))||((w=(g=R==null?void 0:R.proxy)==null?void 0:g.$emit)==null?void 0:w.bind(R==null?void 0:R.proxy));let K=E;o||(o="modelValue"),K=K||`update:${o.toString()}`;const q=X=>y?typeof y=="function"?y(X):x9n(X):X,Q=()=>p9n(r[o])?q(r[o]):M,Z=X=>{_?_(X)&&j(K,X):j(K,X)};if(S){const X=Q(),ie=Co(X);let je=!1;return Os(()=>r[o],et=>{je||(je=!0,ie.value=q(et),om(()=>je=!1))}),Os(ie,et=>{!je&&(et!==r[o]||I)&&Z(et)},{deep:I}),ie}else return ho({get(){return Q()},set(X){Z(X)}})}var E9n={value:()=>{}};function Die(){for(var r=0,o=arguments.length,l={},a;r=0&&(a=l.slice(p+1),l=l.slice(0,p)),l&&!o.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:a}})}Bne.prototype=Die.prototype={constructor:Bne,on:function(r,o){var l=this._,a=T9n(r+"",l),p,g=-1,w=a.length;if(arguments.length<2){for(;++g0)for(var l=new Array(p),a=0,p,g;a=0&&(o=r.slice(0,l))!=="xmlns"&&(r=r.slice(l+1)),LCt.hasOwnProperty(o)?{space:LCt[o],local:r}:r}function P9n(r){return function(){var o=this.ownerDocument,l=this.namespaceURI;return l===dSe&&o.documentElement.namespaceURI===dSe?o.createElement(r):o.createElementNS(l,r)}}function M9n(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function PIt(r){var o=Nie(r);return(o.local?M9n:P9n)(o)}function O9n(){}function Ixe(r){return r==null?O9n:function(){return this.querySelector(r)}}function _9n(r){typeof r!="function"&&(r=Ixe(r));for(var o=this._groups,l=o.length,a=new Array(l),p=0;p=X&&(X=Z+1);!(je=q[X])&&++X=0;)(w=a[p])&&(g&&w.compareDocumentPosition(g)^4&&g.parentNode.insertBefore(w,g),g=w);return this}function nxn(r){r||(r=rxn);function o(M,_){return M&&_?r(M.__data__,_.__data__):!M-!_}for(var l=this._groups,a=l.length,p=new Array(a),g=0;go?1:r>=o?0:NaN}function ixn(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function oxn(){return Array.from(this)}function sxn(){for(var r=this._groups,o=0,l=r.length;o1?this.each((o==null?wxn:typeof o=="function"?vxn:mxn)(r,o,l??"")):A_(this.node(),r)}function A_(r,o){return r.style.getPropertyValue(o)||AIt(r).getComputedStyle(r,null).getPropertyValue(o)}function kxn(r){return function(){delete this[r]}}function Cxn(r,o){return function(){this[r]=o}}function Sxn(r,o){return function(){var l=o.apply(this,arguments);l==null?delete this[r]:this[r]=l}}function xxn(r,o){return arguments.length>1?this.each((o==null?kxn:typeof o=="function"?Sxn:Cxn)(r,o)):this.node()[r]}function LIt(r){return r.trim().split(/^|\s+/)}function Pxe(r){return r.classList||new $It(r)}function $It(r){this._node=r,this._names=LIt(r.getAttribute("class")||"")}$It.prototype={add:function(r){var o=this._names.indexOf(r);o<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var o=this._names.indexOf(r);o>=0&&(this._names.splice(o,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};function jIt(r,o){for(var l=Pxe(r),a=-1,p=o.length;++a=0&&(l=o.slice(a+1),o=o.slice(0,a)),{type:o,name:l}})}function Qxn(r){return function(){var o=this.__on;if(o){for(var l=0,a=-1,p=o.length,g;l()=>r;function hSe(r,{sourceEvent:o,subject:l,target:a,identifier:p,active:g,x:w,y,dx:S,dy:E,dispatch:I}){Object.defineProperties(this,{type:{value:r,enumerable:!0,configurable:!0},sourceEvent:{value:o,enumerable:!0,configurable:!0},subject:{value:l,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:p,enumerable:!0,configurable:!0},active:{value:g,enumerable:!0,configurable:!0},x:{value:w,enumerable:!0,configurable:!0},y:{value:y,enumerable:!0,configurable:!0},dx:{value:S,enumerable:!0,configurable:!0},dy:{value:E,enumerable:!0,configurable:!0},_:{value:I}})}hSe.prototype.on=function(){var r=this._.on.apply(this._,arguments);return r===this._?this:r};function cEn(r){return!r.ctrlKey&&!r.button}function uEn(){return this.parentNode}function aEn(r,o){return o??{x:r.x,y:r.y}}function fEn(){return navigator.maxTouchPoints||"ontouchstart"in this}function dEn(){var r=cEn,o=uEn,l=aEn,a=fEn,p={},g=Die("start","drag","end"),w=0,y,S,E,I,M=0;function _(ie){ie.on("mousedown.drag",R).filter(a).on("touchstart.drag",q).on("touchmove.drag",Q,lEn).on("touchend.drag touchcancel.drag",Z).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(ie,je){if(!(I||!r.call(this,ie,je))){var et=X(this,o.call(this,ie,je),ie,je,"mouse");et&&(oy(ie.view).on("mousemove.drag",j,Wz).on("mouseup.drag",K,Wz),FIt(ie.view),KCe(ie),E=!1,y=ie.clientX,S=ie.clientY,et("start",ie))}}function j(ie){if(p_(ie),!E){var je=ie.clientX-y,et=ie.clientY-S;E=je*je+et*et>M}p.mouse("drag",ie)}function K(ie){oy(ie.view).on("mousemove.drag mouseup.drag",null),zIt(ie.view,E),p_(ie),p.mouse("end",ie)}function q(ie,je){if(r.call(this,ie,je)){var et=ie.changedTouches,mt=o.call(this,ie,je),bt=et.length,ce,Be;for(ce=0;ce>8&15|o>>4&240,o>>4&15|o&240,(o&15)<<4|o&15,1):l===8?sne(o>>24&255,o>>16&255,o>>8&255,(o&255)/255):l===4?sne(o>>12&15|o>>8&240,o>>8&15|o>>4&240,o>>4&15|o&240,((o&15)<<4|o&15)/255):null):(o=pEn.exec(r))?new Wg(o[1],o[2],o[3],1):(o=gEn.exec(r))?new Wg(o[1]*255/100,o[2]*255/100,o[3]*255/100,1):(o=bEn.exec(r))?sne(o[1],o[2],o[3],o[4]):(o=wEn.exec(r))?sne(o[1]*255/100,o[2]*255/100,o[3]*255/100,o[4]):(o=mEn.exec(r))?zCt(o[1],o[2]/100,o[3]/100,1):(o=vEn.exec(r))?zCt(o[1],o[2]/100,o[3]/100,o[4]):$Ct.hasOwnProperty(r)?NCt($Ct[r]):r==="transparent"?new Wg(NaN,NaN,NaN,0):null}function NCt(r){return new Wg(r>>16&255,r>>8&255,r&255,1)}function sne(r,o,l,a){return a<=0&&(r=o=l=NaN),new Wg(r,o,l,a)}function CEn(r){return r instanceof DH||(r=Xz(r)),r?(r=r.rgb(),new Wg(r.r,r.g,r.b,r.opacity)):new Wg}function pSe(r,o,l,a){return arguments.length===1?CEn(r):new Wg(r,o,l,a??1)}function Wg(r,o,l,a){this.r=+r,this.g=+o,this.b=+l,this.opacity=+a}Mxe(Wg,pSe,HIt(DH,{brighter(r){return r=r==null?Cre:Math.pow(Cre,r),new Wg(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?Vz:Math.pow(Vz,r),new Wg(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new Wg(AE(this.r),AE(this.g),AE(this.b),Sre(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:BCt,formatHex:BCt,formatHex8:SEn,formatRgb:FCt,toString:FCt}));function BCt(){return`#${SE(this.r)}${SE(this.g)}${SE(this.b)}`}function SEn(){return`#${SE(this.r)}${SE(this.g)}${SE(this.b)}${SE((isNaN(this.opacity)?1:this.opacity)*255)}`}function FCt(){const r=Sre(this.opacity);return`${r===1?"rgb(":"rgba("}${AE(this.r)}, ${AE(this.g)}, ${AE(this.b)}${r===1?")":`, ${r})`}`}function Sre(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function AE(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function SE(r){return r=AE(r),(r<16?"0":"")+r.toString(16)}function zCt(r,o,l,a){return a<=0?r=o=l=NaN:l<=0||l>=1?r=o=NaN:o<=0&&(r=NaN),new sy(r,o,l,a)}function KIt(r){if(r instanceof sy)return new sy(r.h,r.s,r.l,r.opacity);if(r instanceof DH||(r=Xz(r)),!r)return new sy;if(r instanceof sy)return r;r=r.rgb();var o=r.r/255,l=r.g/255,a=r.b/255,p=Math.min(o,l,a),g=Math.max(o,l,a),w=NaN,y=g-p,S=(g+p)/2;return y?(o===g?w=(l-a)/y+(l0&&S<1?0:w,new sy(w,y,S,r.opacity)}function xEn(r,o,l,a){return arguments.length===1?KIt(r):new sy(r,o,l,a??1)}function sy(r,o,l,a){this.h=+r,this.s=+o,this.l=+l,this.opacity=+a}Mxe(sy,xEn,HIt(DH,{brighter(r){return r=r==null?Cre:Math.pow(Cre,r),new sy(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?Vz:Math.pow(Vz,r),new sy(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,o=isNaN(r)||isNaN(this.s)?0:this.s,l=this.l,a=l+(l<.5?l:1-l)*o,p=2*l-a;return new Wg(UCe(r>=240?r-240:r+120,p,a),UCe(r,p,a),UCe(r<120?r+240:r-120,p,a),this.opacity)},clamp(){return new sy(HCt(this.h),lne(this.s),lne(this.l),Sre(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const r=Sre(this.opacity);return`${r===1?"hsl(":"hsla("}${HCt(this.h)}, ${lne(this.s)*100}%, ${lne(this.l)*100}%${r===1?")":`, ${r})`}`}}));function HCt(r){return r=(r||0)%360,r<0?r+360:r}function lne(r){return Math.max(0,Math.min(1,r||0))}function UCe(r,o,l){return(r<60?o+(l-o)*r/60:r<180?l:r<240?o+(l-o)*(240-r)/60:o)*255}const UIt=r=>()=>r;function EEn(r,o){return function(l){return r+l*o}}function TEn(r,o,l){return r=Math.pow(r,l),o=Math.pow(o,l)-r,l=1/l,function(a){return Math.pow(r+a*o,l)}}function IEn(r){return(r=+r)==1?GIt:function(o,l){return l-o?TEn(o,l,r):UIt(isNaN(o)?l:o)}}function GIt(r,o){var l=o-r;return l?EEn(r,l):UIt(isNaN(r)?o:r)}const KCt=function r(o){var l=IEn(o);function a(p,g){var w=l((p=pSe(p)).r,(g=pSe(g)).r),y=l(p.g,g.g),S=l(p.b,g.b),E=GIt(p.opacity,g.opacity);return function(I){return p.r=w(I),p.g=y(I),p.b=S(I),p.opacity=E(I),p+""}}return a.gamma=r,a}(1);function vC(r,o){return r=+r,o=+o,function(l){return r*(1-l)+o*l}}var gSe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,GCe=new RegExp(gSe.source,"g");function PEn(r){return function(){return r}}function MEn(r){return function(o){return r(o)+""}}function OEn(r,o){var l=gSe.lastIndex=GCe.lastIndex=0,a,p,g,w=-1,y=[],S=[];for(r=r+"",o=o+"";(a=gSe.exec(r))&&(p=GCe.exec(o));)(g=p.index)>l&&(g=o.slice(l,g),y[w]?y[w]+=g:y[++w]=g),(a=a[0])===(p=p[0])?y[w]?y[w]+=p:y[++w]=p:(y[++w]=null,S.push({i:w,x:vC(a,p)})),l=GCe.lastIndex;return l180?I+=360:I-E>180&&(E+=360),_.push({i:M.push(p(M)+"rotate(",null,a)-2,x:vC(E,I)})):I&&M.push(p(M)+"rotate("+I+a)}function y(E,I,M,_){E!==I?_.push({i:M.push(p(M)+"skewX(",null,a)-2,x:vC(E,I)}):I&&M.push(p(M)+"skewX("+I+a)}function S(E,I,M,_,R,j){if(E!==M||I!==_){var K=R.push(p(R)+"scale(",null,",",null,")");j.push({i:K-4,x:vC(E,M)},{i:K-2,x:vC(I,_)})}else(M!==1||_!==1)&&R.push(p(R)+"scale("+M+","+_+")")}return function(E,I){var M=[],_=[];return E=r(E),I=r(I),g(E.translateX,E.translateY,I.translateX,I.translateY,M,_),w(E.rotate,I.rotate,M,_),y(E.skewX,I.skewX,M,_),S(E.scaleX,E.scaleY,I.scaleX,I.scaleY,M,_),E=I=null,function(R){for(var j=-1,K=_.length,q;++j=0&&r._call.call(void 0,o),r=r._next;--L_}function WCt(){UE=(Ere=Yz.now())+Bie,L_=IF=0;try{FEn()}finally{L_=0,HEn(),UE=0}}function zEn(){var r=Yz.now(),o=r-Ere;o>qIt&&(Bie-=o,Ere=r)}function HEn(){for(var r,o=xre,l,a=1/0;o;)o._call?(a>o._time&&(a=o._time),r=o,o=o._next):(l=o._next,o._next=null,o=r?r._next=l:xre=l);PF=r,wSe(a)}function wSe(r){if(!L_){IF&&(IF=clearTimeout(IF));var o=r-UE;o>24?(r<1/0&&(IF=setTimeout(WCt,r-Yz.now()-Bie)),gF&&(gF=clearInterval(gF))):(gF||(Ere=Yz.now(),gF=setInterval(zEn,qIt)),L_=1,XIt(WCt))}}function VCt(r,o,l){var a=new Tre;return o=o==null?0:+o,a.restart(p=>{a.stop(),r(p+o)},o,l),a}var KEn=Die("start","end","cancel","interrupt"),UEn=[],JIt=0,qCt=1,mSe=2,Fne=3,XCt=4,vSe=5,zne=6;function Fie(r,o,l,a,p,g){var w=r.__transition;if(!w)r.__transition={};else if(l in w)return;GEn(r,l,{name:o,index:a,group:p,on:KEn,tween:UEn,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:JIt})}function _xe(r,o){var l=gy(r,o);if(l.state>JIt)throw new Error("too late; already scheduled");return l}function A3(r,o){var l=gy(r,o);if(l.state>Fne)throw new Error("too late; already running");return l}function gy(r,o){var l=r.__transition;if(!l||!(l=l[o]))throw new Error("transition not found");return l}function GEn(r,o,l){var a=r.__transition,p;a[o]=l,l.timer=YIt(g,0,l.time);function g(E){l.state=qCt,l.timer.restart(w,l.delay,l.time),l.delay<=E&&w(E-l.delay)}function w(E){var I,M,_,R;if(l.state!==qCt)return S();for(I in a)if(R=a[I],R.name===l.name){if(R.state===Fne)return VCt(w);R.state===XCt?(R.state=zne,R.timer.stop(),R.on.call("interrupt",r,r.__data__,R.index,R.group),delete a[I]):+ImSe&&a.state=0&&(o=o.slice(0,l)),!o||o==="start"})}function kTn(r,o,l){var a,p,g=yTn(o)?_xe:A3;return function(){var w=g(this,r),y=w.on;y!==a&&(p=(a=y).copy()).on(o,l),w.on=p}}function CTn(r,o){var l=this._id;return arguments.length<2?gy(this.node(),l).on.on(r):this.each(kTn(l,r,o))}function STn(r){return function(){var o=this.parentNode;for(var l in this.__transition)if(+l!==r)return;o&&o.removeChild(this)}}function xTn(){return this.on("end.remove",STn(this._id))}function ETn(r){var o=this._name,l=this._id;typeof r!="function"&&(r=Ixe(r));for(var a=this._groups,p=a.length,g=new Array(p),w=0;w()=>r;function YTn(r,{sourceEvent:o,target:l,transform:a,dispatch:p}){Object.defineProperties(this,{type:{value:r,enumerable:!0,configurable:!0},sourceEvent:{value:o,enumerable:!0,configurable:!0},target:{value:l,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:p}})}function U6(r,o,l){this.k=r,this.x=o,this.y=l}U6.prototype={constructor:U6,scale:function(r){return r===1?this:new U6(this.k*r,this.x,this.y)},translate:function(r,o){return r===0&o===0?this:new U6(this.k,this.x+this.k*r,this.y+this.k*o)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var $_=new U6(1,0,0);U6.prototype;function WCe(r){r.stopImmediatePropagation()}function bF(r){r.preventDefault(),r.stopImmediatePropagation()}function JTn(r){return(!r.ctrlKey||r.type==="wheel")&&!r.button}function QTn(){var r=this;return r instanceof SVGElement?(r=r.ownerSVGElement||r,r.hasAttribute("viewBox")?(r=r.viewBox.baseVal,[[r.x,r.y],[r.x+r.width,r.y+r.height]]):[[0,0],[r.width.baseVal.value,r.height.baseVal.value]]):[[0,0],[r.clientWidth,r.clientHeight]]}function YCt(){return this.__zoom||$_}function ZTn(r){return-r.deltaY*(r.deltaMode===1?.05:r.deltaMode?1:.002)*(r.ctrlKey?10:1)}function eIn(){return navigator.maxTouchPoints||"ontouchstart"in this}function tIn(r,o,l){var a=r.invertX(o[0][0])-l[0][0],p=r.invertX(o[1][0])-l[1][0],g=r.invertY(o[0][1])-l[0][1],w=r.invertY(o[1][1])-l[1][1];return r.translate(p>a?(a+p)/2:Math.min(0,a)||Math.max(0,p),w>g?(g+w)/2:Math.min(0,g)||Math.max(0,w))}function nIn(){var r=JTn,o=QTn,l=tIn,a=ZTn,p=eIn,g=[0,1/0],w=[[-1/0,-1/0],[1/0,1/0]],y=250,S=NEn,E=Die("start","zoom","end"),I,M,_,R=500,j=150,K=0,q=10;function Q(He){He.property("__zoom",YCt).on("wheel.zoom",bt,{passive:!1}).on("mousedown.zoom",ce).on("dblclick.zoom",Be).filter(p).on("touchstart.zoom",ae).on("touchmove.zoom",xe).on("touchend.zoom touchcancel.zoom",U).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Q.transform=function(He,yt,ft,At){var Jt=He.selection?He.selection():He;Jt.property("__zoom",YCt),He!==Jt?je(He,yt,ft,At):Jt.interrupt().each(function(){et(this,arguments).event(At).start().zoom(null,typeof yt=="function"?yt.apply(this,arguments):yt).end()})},Q.scaleBy=function(He,yt,ft,At){Q.scaleTo(He,function(){var Jt=this.__zoom.k,un=typeof yt=="function"?yt.apply(this,arguments):yt;return Jt*un},ft,At)},Q.scaleTo=function(He,yt,ft,At){Q.transform(He,function(){var Jt=o.apply(this,arguments),un=this.__zoom,kn=ft==null?ie(Jt):typeof ft=="function"?ft.apply(this,arguments):ft,qt=un.invert(kn),on=typeof yt=="function"?yt.apply(this,arguments):yt;return l(X(Z(un,on),kn,qt),Jt,w)},ft,At)},Q.translateBy=function(He,yt,ft,At){Q.transform(He,function(){return l(this.__zoom.translate(typeof yt=="function"?yt.apply(this,arguments):yt,typeof ft=="function"?ft.apply(this,arguments):ft),o.apply(this,arguments),w)},null,At)},Q.translateTo=function(He,yt,ft,At,Jt){Q.transform(He,function(){var un=o.apply(this,arguments),kn=this.__zoom,qt=At==null?ie(un):typeof At=="function"?At.apply(this,arguments):At;return l($_.translate(qt[0],qt[1]).scale(kn.k).translate(typeof yt=="function"?-yt.apply(this,arguments):-yt,typeof ft=="function"?-ft.apply(this,arguments):-ft),un,w)},At,Jt)};function Z(He,yt){return yt=Math.max(g[0],Math.min(g[1],yt)),yt===He.k?He:new U6(yt,He.x,He.y)}function X(He,yt,ft){var At=yt[0]-ft[0]*He.k,Jt=yt[1]-ft[1]*He.k;return At===He.x&&Jt===He.y?He:new U6(He.k,At,Jt)}function ie(He){return[(+He[0][0]+ +He[1][0])/2,(+He[0][1]+ +He[1][1])/2]}function je(He,yt,ft,At){He.on("start.zoom",function(){et(this,arguments).event(At).start()}).on("interrupt.zoom end.zoom",function(){et(this,arguments).event(At).end()}).tween("zoom",function(){var Jt=this,un=arguments,kn=et(Jt,un).event(At),qt=o.apply(Jt,un),on=ft==null?ie(qt):typeof ft=="function"?ft.apply(Jt,un):ft,Rt=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),an=Jt.__zoom,Zn=typeof yt=="function"?yt.apply(Jt,un):yt,kt=S(an.invert(on).concat(Rt/an.k),Zn.invert(on).concat(Rt/Zn.k));return function(Ze){if(Ze===1)Ze=Zn;else{var Xt=kt(Ze),Mn=Rt/Xt[2];Ze=new U6(Mn,on[0]-Xt[0]*Mn,on[1]-Xt[1]*Mn)}kn.zoom(null,Ze)}})}function et(He,yt,ft){return!ft&&He.__zooming||new mt(He,yt)}function mt(He,yt){this.that=He,this.args=yt,this.active=0,this.sourceEvent=null,this.extent=o.apply(He,yt),this.taps=0}mt.prototype={event:function(He){return He&&(this.sourceEvent=He),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(He,yt){return this.mouse&&He!=="mouse"&&(this.mouse[1]=yt.invert(this.mouse[0])),this.touch0&&He!=="touch"&&(this.touch0[1]=yt.invert(this.touch0[0])),this.touch1&&He!=="touch"&&(this.touch1[1]=yt.invert(this.touch1[0])),this.that.__zoom=yt,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(He){var yt=oy(this.that).datum();E.call(He,this.that,new YTn(He,{sourceEvent:this.sourceEvent,target:Q,type:He,transform:this.that.__zoom,dispatch:E}),yt)}};function bt(He,...yt){if(!r.apply(this,arguments))return;var ft=et(this,yt).event(He),At=this.__zoom,Jt=Math.max(g[0],Math.min(g[1],At.k*Math.pow(2,a.apply(this,arguments)))),un=d3(He);if(ft.wheel)(ft.mouse[0][0]!==un[0]||ft.mouse[0][1]!==un[1])&&(ft.mouse[1]=At.invert(ft.mouse[0]=un)),clearTimeout(ft.wheel);else{if(At.k===Jt)return;ft.mouse=[un,At.invert(un)],Hne(this),ft.start()}bF(He),ft.wheel=setTimeout(kn,j),ft.zoom("mouse",l(X(Z(At,Jt),ft.mouse[0],ft.mouse[1]),ft.extent,w));function kn(){ft.wheel=null,ft.end()}}function ce(He,...yt){if(_||!r.apply(this,arguments))return;var ft=He.currentTarget,At=et(this,yt,!0).event(He),Jt=oy(He.view).on("mousemove.zoom",on,!0).on("mouseup.zoom",Rt,!0),un=d3(He,ft),kn=He.clientX,qt=He.clientY;FIt(He.view),WCe(He),At.mouse=[un,this.__zoom.invert(un)],Hne(this),At.start();function on(an){if(bF(an),!At.moved){var Zn=an.clientX-kn,kt=an.clientY-qt;At.moved=Zn*Zn+kt*kt>K}At.event(an).zoom("mouse",l(X(At.that.__zoom,At.mouse[0]=d3(an,ft),At.mouse[1]),At.extent,w))}function Rt(an){Jt.on("mousemove.zoom mouseup.zoom",null),zIt(an.view,At.moved),bF(an),At.event(an).end()}}function Be(He,...yt){if(r.apply(this,arguments)){var ft=this.__zoom,At=d3(He.changedTouches?He.changedTouches[0]:He,this),Jt=ft.invert(At),un=ft.k*(He.shiftKey?.5:2),kn=l(X(Z(ft,un),At,Jt),o.apply(this,yt),w);bF(He),y>0?oy(this).transition().duration(y).call(je,kn,At,He):oy(this).call(Q.transform,kn,At,He)}}function ae(He,...yt){if(r.apply(this,arguments)){var ft=He.touches,At=ft.length,Jt=et(this,yt,He.changedTouches.length===At).event(He),un,kn,qt,on;for(WCe(He),kn=0;kn(r.Left="left",r.Top="top",r.Right="right",r.Bottom="bottom",r))(wi||{}),Axe=(r=>(r.Partial="partial",r.Full="full",r))(Axe||{}),bE=(r=>(r.Bezier="default",r.SimpleBezier="simple-bezier",r.Straight="straight",r.Step="step",r.SmoothStep="smoothstep",r))(bE||{}),GE=(r=>(r.Strict="strict",r.Loose="loose",r))(GE||{}),Ire=(r=>(r.Arrow="arrow",r.ArrowClosed="arrowclosed",r))(Ire||{}),ZF=(r=>(r.Free="free",r.Vertical="vertical",r.Horizontal="horizontal",r))(ZF||{});function ySe(r){var o,l;const a=((l=(o=r.composedPath)==null?void 0:o.call(r))==null?void 0:l[0])||r.target,p=typeof(a==null?void 0:a.hasAttribute)=="function"?a.hasAttribute("contenteditable"):!1,g=typeof(a==null?void 0:a.closest)=="function"?a.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(a==null?void 0:a.nodeName)||p||!!g}function rIn(r){return r.ctrlKey||r.metaKey||r.shiftKey}function JCt(r,o,l,a){const p=o.replace("+",` -`).replace(` - -`,` -+`).split(` -`).map(w=>w.trim().toLowerCase());if(p.length===1)return r.toLowerCase()===o.toLowerCase();a||l.add(r.toLowerCase());const g=p.every((w,y)=>l.has(w)&&Array.from(l.values())[y]===p[y]);return a&&l.delete(r.toLowerCase()),g}function iIn(r,o){return l=>{if(!l.code&&!l.key)return!1;const a=oIn(l.code,r);return Array.isArray(r)?r.some(p=>JCt(l[a],p,o,l.type==="keyup")):JCt(l[a],r,o,l.type==="keyup")}}function oIn(r,o){return o.includes(r)?"code":"key"}function ez(r,o){const l=Ia(()=>Wl(o==null?void 0:o.actInsideInputWithModifier)??!1),a=Ia(()=>Wl(o==null?void 0:o.target)??window),p=Co(Wl(r)===!0);let g=!1;const w=new Set;let y=E(Wl(r));Os(()=>Wl(r),(I,M)=>{typeof M=="boolean"&&typeof I!="boolean"&&S(),y=E(I)},{immediate:!0}),bb(()=>{IIt(window,["blur","contextmenu"],S)}),RCt((...I)=>y(...I),I=>{g=rIn(I),!((!g||g&&!l.value)&&ySe(I))&&(I.preventDefault(),p.value=!0)},{eventName:"keydown",target:a}),RCt((...I)=>y(...I),I=>{if(p.value){if((!g||g&&!l.value)&&ySe(I))return;g=!1,p.value=!1}},{eventName:"keyup",target:a});function S(){g=!1,w.clear(),p.value=Wl(r)===!0}function E(I){return I===null?(S(),()=>!1):typeof I=="boolean"?(S(),p.value=I,()=>!1):Array.isArray(I)||typeof I=="string"?iIn(I,w):I}return p}const tPt="vue-flow__node-desc",nPt="vue-flow__edge-desc",sIn="vue-flow__aria-live",rPt=["Enter"," ","Escape"],b_={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function kSe(r){return{...r.computedPosition||{x:0,y:0},width:r.dimensions.width||0,height:r.dimensions.height||0}}function CSe(r,o){const l=Math.max(0,Math.min(r.x+r.width,o.x+o.width)-Math.max(r.x,o.x)),a=Math.max(0,Math.min(r.y+r.height,o.y+o.height)-Math.max(r.y,o.y));return Math.ceil(l*a)}function zie(r){return{width:r.offsetWidth,height:r.offsetHeight}}function WE(r,o=0,l=1){return Math.min(Math.max(r,o),l)}function iPt(r,o){return{x:WE(r.x,o[0][0],o[1][0]),y:WE(r.y,o[0][1],o[1][1])}}function QCt(r){const o=r.getRootNode();return"elementFromPoint"in o?o:window.document}function FC(r){return r&&typeof r=="object"&&"id"in r&&"source"in r&&"target"in r}function LE(r){return r&&typeof r=="object"&&"id"in r&&"position"in r&&!FC(r)}function MF(r){return LE(r)&&"computedPosition"in r}function ane(r){return!Number.isNaN(r)&&Number.isFinite(r)}function lIn(r){return ane(r.width)&&ane(r.height)&&ane(r.x)&&ane(r.y)}function cIn(r,o,l){const a={id:r.id.toString(),type:r.type??"default",dimensions:EE({width:0,height:0}),computedPosition:EE({z:0,...r.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:Vf(r.data)?r.data:{},events:EE(Vf(r.events)?r.events:{})};return Object.assign(o??a,r,{id:r.id.toString(),parentNode:l})}function oPt(r,o,l){var a,p;const g={id:r.id.toString(),type:r.type??(o==null?void 0:o.type)??"default",source:r.source.toString(),target:r.target.toString(),sourceHandle:(a=r.sourceHandle)==null?void 0:a.toString(),targetHandle:(p=r.targetHandle)==null?void 0:p.toString(),updatable:r.updatable??(l==null?void 0:l.updatable),selectable:r.selectable??(l==null?void 0:l.selectable),focusable:r.focusable??(l==null?void 0:l.focusable),data:Vf(r.data)?r.data:{},events:EE(Vf(r.events)?r.events:{}),label:r.label??"",interactionWidth:r.interactionWidth??(l==null?void 0:l.interactionWidth),...l??{}};return Object.assign(o??g,r,{id:r.id.toString()})}function sPt(r,o,l,a){const p=typeof r=="string"?r:r.id,g=new Set,w=a==="source"?"target":"source";for(const y of l)y[w]===p&&g.add(y[a]);return o.filter(y=>g.has(y.id))}function uIn(...r){if(r.length===3){const[g,w,y]=r;return sPt(g,w,y,"target")}const[o,l]=r,a=typeof o=="string"?o:o.id;return l.filter(g=>FC(g)&&g.source===a).map(g=>l.find(w=>LE(w)&&w.id===g.target))}function aIn(...r){if(r.length===3){const[g,w,y]=r;return sPt(g,w,y,"source")}const[o,l]=r,a=typeof o=="string"?o:o.id;return l.filter(g=>FC(g)&&g.target===a).map(g=>l.find(w=>LE(w)&&w.id===g.source))}function lPt({source:r,sourceHandle:o,target:l,targetHandle:a}){return`vueflow__edge-${r}${o??""}-${l}${a??""}`}function fIn(r,o){return o.some(l=>FC(l)&&l.source===r.source&&l.target===r.target&&(l.sourceHandle===r.sourceHandle||!l.sourceHandle&&!r.sourceHandle)&&(l.targetHandle===r.targetHandle||!l.targetHandle&&!r.targetHandle))}function cPt({x:r,y:o},{x:l,y:a,zoom:p}){return{x:r*p+l,y:o*p+a}}function Jz({x:r,y:o},{x:l,y:a,zoom:p},g=!1,w=[1,1]){const y={x:(r-l)/p,y:(o-a)/p};return g?Hie(y,w):y}function dIn(r,o){return{x:Math.min(r.x,o.x),y:Math.min(r.y,o.y),x2:Math.max(r.x2,o.x2),y2:Math.max(r.y2,o.y2)}}function uPt({x:r,y:o,width:l,height:a}){return{x:r,y:o,x2:r+l,y2:o+a}}function hIn({x:r,y:o,x2:l,y2:a}){return{x:r,y:o,width:l-r,height:a-o}}function aPt(r){let o={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let l=0;l0,q=(M??0)*(_??0);(j||K||R>=q||y.dragging)&&w.push(y)}return w}function dPt(r,o){const l=new Set;if(typeof r=="string")l.add(r);else if(r.length>=1)for(const a of r)l.add(a.id);return o.filter(a=>l.has(a.source)||l.has(a.target))}function ZCt(r,o,l,a,p,g=.1,w={x:0,y:0}){const y=o/(r.width*(1+g)),S=l/(r.height*(1+g)),E=Math.min(y,S),I=WE(E,a,p),M=r.x+r.width/2,_=r.y+r.height/2,R=o/2-M*I+(w.x??0),j=l/2-_*I+(w.y??0);return{x:R,y:j,zoom:I}}function pIn(r,o){return{x:o.x+r.x,y:o.y+r.y,z:(r.z>o.z?r.z:o.z)+1}}function hPt(r,o){if(!r.parentNode)return!1;const l=o(r.parentNode);return l?l.selected?!0:hPt(l,o):!1}function Qz(r,o){return typeof r>"u"?"":typeof r=="string"?r:`${o?`${o}__`:""}${Object.keys(r).sort().map(a=>`${a}=${r[a]}`).join("&")}`}function e7t(r,o,l){return rl?-WE(Math.abs(r-l),1,o)/o:0}function pPt(r,o,l=15,a=40){const p=e7t(r.x,a,o.width-a)*l,g=e7t(r.y,a,o.height-a)*l;return[p,g]}function VCe(r,o){if(o){const l=r.position.x+r.dimensions.width-o.dimensions.width,a=r.position.y+r.dimensions.height-o.dimensions.height;if(l>0||a>0||r.position.x<0||r.position.y<0){let p={};if(typeof o.style=="function"?p={...o.style(o)}:o.style&&(p={...o.style}),p.width=p.width??`${o.dimensions.width}px`,p.height=p.height??`${o.dimensions.height}px`,l>0)if(typeof p.width=="string"){const g=Number(p.width.replace("px",""));p.width=`${g+l}px`}else p.width+=l;if(a>0)if(typeof p.height=="string"){const g=Number(p.height.replace("px",""));p.height=`${g+a}px`}else p.height+=a;if(r.position.x<0){const g=Math.abs(r.position.x);if(o.position.x=o.position.x-g,typeof p.width=="string"){const w=Number(p.width.replace("px",""));p.width=`${w+g}px`}else p.width+=g;r.position.x=0}if(r.position.y<0){const g=Math.abs(r.position.y);if(o.position.y=o.position.y-g,typeof p.height=="string"){const w=Number(p.height.replace("px",""));p.height=`${w+g}px`}else p.height+=g;r.position.y=0}o.dimensions.width=Number(p.width.toString().replace("px","")),o.dimensions.height=Number(p.height.toString().replace("px","")),typeof o.style=="function"?o.style=g=>{const w=o.style;return{...w(g),...p}}:o.style={...o.style,...p}}}}function t7t(r,o){var l,a;const p=r.filter(w=>w.type==="add"||w.type==="remove");for(const w of p)if(w.type==="add")o.findIndex(S=>S.id===w.item.id)===-1&&o.push(w.item);else if(w.type==="remove"){const y=o.findIndex(S=>S.id===w.id);y!==-1&&o.splice(y,1)}const g=o.map(w=>w.id);for(const w of o)for(const y of r)if(y.id===w.id)switch(y.type){case"select":w.selected=y.selected;break;case"position":if(MF(w)&&(typeof y.position<"u"&&(w.position=y.position),typeof y.dragging<"u"&&(w.dragging=y.dragging),w.expandParent&&w.parentNode)){const S=o[g.indexOf(w.parentNode)];S&&MF(S)&&VCe(w,S)}break;case"dimensions":if(MF(w)&&(typeof y.dimensions<"u"&&(w.dimensions=y.dimensions),typeof y.updateStyle<"u"&&y.updateStyle&&(w.style={...w.style||{},width:`${(l=y.dimensions)==null?void 0:l.width}px`,height:`${(a=y.dimensions)==null?void 0:a.height}px`}),typeof y.resizing<"u"&&(w.resizing=y.resizing),w.expandParent&&w.parentNode)){const S=o[g.indexOf(w.parentNode)];S&&MF(S)&&(!!S.dimensions.width&&!!S.dimensions.height?VCe(w,S):om(()=>{VCe(w,S)}))}break}return o}function hC(r,o){return{id:r,type:"select",selected:o}}function n7t(r){return{item:r,type:"add"}}function r7t(r){return{id:r,type:"remove"}}function i7t(r,o,l,a,p){return{id:r,source:o,target:l,sourceHandle:a||null,targetHandle:p||null,type:"remove"}}function yC(r,o=new Set,l=!1){const a=[];for(const[p,g]of r){const w=o.has(p);!(g.selected===void 0&&!w)&&g.selected!==w&&(l&&(g.selected=w),a.push(hC(g.id,w)))}return a}function ti(r){const o=new Set;let l=!1;const a=()=>o.size>0;r&&(l=!0,o.add(r));const p=y=>{o.delete(y)};return{on:y=>{r&&l&&o.delete(r),o.add(y);const S=()=>{p(y),r&&l&&o.add(r)};return jie(S),{off:S}},off:p,trigger:y=>Promise.all(Array.from(o).map(S=>S(y))),hasListeners:a,fns:o}}function o7t(r,o,l){let a=r;do{if(a&&a.matches(o))return!0;if(a===l)return!1;a=a.parentElement}while(a);return!1}function gIn(r,o,l,a,p){var g,w;const y=[];for(const S of r)(S.selected||S.id===p)&&(!S.parentNode||!hPt(S,a))&&(S.draggable||o&&typeof S.draggable>"u")&&y.push(EE({id:S.id,position:S.position||{x:0,y:0},distance:{x:l.x-((g=S.computedPosition)==null?void 0:g.x)||0,y:l.y-((w=S.computedPosition)==null?void 0:w.y)||0},from:S.computedPosition,extent:S.extent,parentNode:S.parentNode,dimensions:S.dimensions,expandParent:S.expandParent}));return y}function qCe({id:r,dragItems:o,findNode:l}){const a=[];for(const p of o){const g=l(p.id);g&&a.push(g)}return[r?a.find(p=>p.id===r):a[0],a]}function gPt(r){if(Array.isArray(r))switch(r.length){case 1:return[r[0],r[0],r[0],r[0]];case 2:return[r[0],r[1],r[0],r[1]];case 3:return[r[0],r[1],r[2],r[1]];case 4:return r;default:return[0,0,0,0]}return[r,r,r,r]}function bIn(r,o,l){const[a,p,g,w]=typeof r!="string"?gPt(r.padding):[0,0,0,0];return l&&typeof l.computedPosition.x<"u"&&typeof l.computedPosition.y<"u"&&typeof l.dimensions.width<"u"&&typeof l.dimensions.height<"u"?[[l.computedPosition.x+w,l.computedPosition.y+a],[l.computedPosition.x+l.dimensions.width-p,l.computedPosition.y+l.dimensions.height-g]]:!1}function wIn(r,o,l,a){let p=r.extent||l;if((p==="parent"||!Array.isArray(p)&&(p==null?void 0:p.range)==="parent")&&!r.expandParent)if(r.parentNode&&a&&r.dimensions.width&&r.dimensions.height){const g=bIn(p,r,a);g&&(p=g)}else o(new Md(qf.NODE_EXTENT_INVALID,r.id)),p=l;else if(Array.isArray(p)){const g=(a==null?void 0:a.computedPosition.x)||0,w=(a==null?void 0:a.computedPosition.y)||0;p=[[p[0][0]+g,p[0][1]+w],[p[1][0]+g,p[1][1]+w]]}else if(p!=="parent"&&(p!=null&&p.range)&&Array.isArray(p.range)){const[g,w,y,S]=gPt(p.padding),E=(a==null?void 0:a.computedPosition.x)||0,I=(a==null?void 0:a.computedPosition.y)||0;p=[[p.range[0][0]+E+S,p.range[0][1]+I+g],[p.range[1][0]+E-w,p.range[1][1]+I-y]]}return p==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:p}function mIn({width:r,height:o},l){return[l[0],[l[1][0]-(r||0),l[1][1]-(o||0)]]}function Lxe(r,o,l,a,p){const g=mIn(r.dimensions,wIn(r,l,a,p)),w=iPt(o,g);return{position:{x:w.x-((p==null?void 0:p.computedPosition.x)||0),y:w.y-((p==null?void 0:p.computedPosition.y)||0)},computedPosition:w}}function Pre(r,o,l=wi.Left){const a=((o==null?void 0:o.x)??0)+r.computedPosition.x,p=((o==null?void 0:o.y)??0)+r.computedPosition.y,{width:g,height:w}=o??kIn(r);switch((o==null?void 0:o.position)??l){case wi.Top:return{x:a+g/2,y:p};case wi.Right:return{x:a+g,y:p+w/2};case wi.Bottom:return{x:a+g/2,y:p+w};case wi.Left:return{x:a,y:p+w/2}}}function s7t(r=[],o){return r.length&&(o?r.find(l=>l.id===o):r[0])||null}function vIn({sourcePos:r,targetPos:o,sourceWidth:l,sourceHeight:a,targetWidth:p,targetHeight:g,width:w,height:y,viewport:S}){const E={x:Math.min(r.x,o.x),y:Math.min(r.y,o.y),x2:Math.max(r.x+l,o.x+p),y2:Math.max(r.y+a,o.y+g)};E.x===E.x2&&(E.x2+=1),E.y===E.y2&&(E.y2+=1);const I=uPt({x:(0-S.x)/S.zoom,y:(0-S.y)/S.zoom,width:w/S.zoom,height:y/S.zoom}),M=Math.max(0,Math.min(I.x2,E.x2)-Math.max(I.x,E.x)),_=Math.max(0,Math.min(I.y2,E.y2)-Math.max(I.y,E.y));return Math.ceil(M*_)>0}function yIn(r,o,l=!1){const a=typeof r.zIndex=="number";let p=a?r.zIndex:0;const g=o(r.source),w=o(r.target);return!g||!w?0:(l&&(p=a?r.zIndex:Math.max(g.computedPosition.z||0,w.computedPosition.z||0)),p)}var qf=(r=>(r.MISSING_STYLES="MISSING_STYLES",r.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",r.NODE_INVALID="NODE_INVALID",r.NODE_NOT_FOUND="NODE_NOT_FOUND",r.NODE_MISSING_PARENT="NODE_MISSING_PARENT",r.NODE_TYPE_MISSING="NODE_TYPE_MISSING",r.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",r.EDGE_INVALID="EDGE_INVALID",r.EDGE_NOT_FOUND="EDGE_NOT_FOUND",r.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",r.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",r.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",r.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",r.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",r.EDGE_ORPHANED="EDGE_ORPHANED",r.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",r))(qf||{});const l7t={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:r=>`Node is invalid -Node: ${r}`,NODE_NOT_FOUND:r=>`Node not found -Node: ${r}`,NODE_MISSING_PARENT:(r,o)=>`Node is missing a parent -Node: ${r} -Parent: ${o}`,NODE_TYPE_MISSING:r=>`Node type is missing -Type: ${r}`,NODE_EXTENT_INVALID:r=>`Only child nodes can use a parent extent -Node: ${r}`,EDGE_INVALID:r=>`An edge needs a source and a target -Edge: ${r}`,EDGE_SOURCE_MISSING:(r,o)=>`Edge source is missing -Edge: ${r} -Source: ${o}`,EDGE_TARGET_MISSING:(r,o)=>`Edge target is missing -Edge: ${r} -Target: ${o}`,EDGE_TYPE_MISSING:r=>`Edge type is missing -Type: ${r}`,EDGE_SOURCE_TARGET_SAME:(r,o,l)=>`Edge source and target are the same -Edge: ${r} -Source: ${o} -Target: ${l}`,EDGE_SOURCE_TARGET_MISSING:(r,o,l)=>`Edge source or target is missing -Edge: ${r} -Source: ${o} -Target: ${l}`,EDGE_ORPHANED:r=>`Edge was orphaned (suddenly missing source or target) and has been removed -Edge: ${r}`,EDGE_NOT_FOUND:r=>`Edge not found -Edge: ${r}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"};class Md extends Error{constructor(o,...l){var a;super((a=l7t[o])==null?void 0:a.call(l7t,...l)),this.name="VueFlowError",this.code=o,this.args=l}}function $xe(r){return"clientX"in r}function bPt(r){return"sourceEvent"in r}function V6(r,o){var l,a;const p=$xe(r),g=p?r.clientX:(l=r.touches)==null?void 0:l[0].clientX,w=p?r.clientY:(a=r.touches)==null?void 0:a[0].clientY;return{x:g-((o==null?void 0:o.left)??0),y:w-((o==null?void 0:o.top)??0)}}const Mre=()=>{var r;return typeof navigator<"u"&&((r=navigator==null?void 0:navigator.userAgent)==null?void 0:r.indexOf("Mac"))>=0};function kIn(r){var o,l;return{width:((o=r.dimensions)==null?void 0:o.width)??r.width??0,height:((l=r.dimensions)==null?void 0:l.height)??r.height??0}}function Hie(r,o=[1,1]){return{x:o[0]*Math.round(r.x/o[0]),y:o[1]*Math.round(r.y/o[1])}}function wPt(){return{handleDomNode:null,isValid:!1,connection:{source:"",target:"",sourceHandle:null,targetHandle:null},endHandle:null}}function XCe(r){r==null||r.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function c7t(r,o,l,a){const p=[];for(const g of o[l]||[])if(`${r.id}-${g.id}-${l}`!==a){const{x:w,y}=Pre(r,g);p.push({id:g.id||null,type:l,nodeId:r.id,x:w,y})}return p}function CIn(r,o,l,a,p,g){const{x:w,y}=V6(r),E=o.elementsFromPoint(w,y).find(j=>j.classList.contains("vue-flow__handle"));if(E){const j=E.getAttribute("data-nodeid");if(j){const K=jxe(void 0,E),q=E.getAttribute("data-handleid"),Q=g({nodeId:j,id:q,type:K});if(Q){const Z=p.find(X=>X.nodeId===j&&X.type===K&&X.id===q);return{handle:{id:q,type:K,nodeId:j,x:(Z==null?void 0:Z.x)||l.x,y:(Z==null?void 0:Z.y)||l.y},validHandleResult:Q}}}}let I=[],M=Number.POSITIVE_INFINITY;for(const j of p){const K=Math.sqrt((j.x-l.x)**2+(j.y-l.y)**2);if(K<=a){const q=g(j);K<=M&&(Kj.isValid),R=I.some(({handle:j})=>j.type==="target");return I.find(({handle:j,validHandleResult:K})=>R?j.type==="target":_?K.isValid:!0)||I[0]}function u7t(r,o,l,a,p,g,w,y,S,E,I){const M=g==="target",_=y.querySelector(`.vue-flow__handle[data-id="${o==null?void 0:o.nodeId}-${o==null?void 0:o.id}-${o==null?void 0:o.type}"]`),{x:R,y:j}=V6(r),K=y.elementFromPoint(R,j),q=K!=null&&K.classList.contains("vue-flow__handle")?K:_,Q=wPt();if(q){Q.handleDomNode=q;const Z=jxe(void 0,q),X=q.getAttribute("data-nodeid"),ie=q.getAttribute("data-handleid"),je=q.classList.contains("connectable"),et=q.classList.contains("connectableend"),mt={source:M?X:a,sourceHandle:M?ie:p,target:M?a:X,targetHandle:M?p:ie};Q.connection=mt,je&&et&&(l===GE.Strict?M&&Z==="source"||!M&&Z==="target":X!==a||ie!==p)&&(Q.isValid=w(mt,{edges:S,nodes:E,sourceNode:I(mt.source),targetNode:I(mt.target)}),Q.endHandle={nodeId:X,handleId:ie,type:Z,position:Q.isValid?q.getAttribute("data-handlepos"):null})}return Q}function SIn({nodes:r,nodeId:o,handleId:l,handleType:a}){const p=[];for(let g=0;g{const y=w.getBoundingClientRect();return{id:w.getAttribute("data-handleid"),position:w.getAttribute("data-handlepos"),x:(y.left-l.left)/a,y:(y.top-l.top)/a,...zie(w)}})}function SSe(r,o,l,a,p,g=!1,w){p.value=!1,r.selected?(g||r.selected&&o)&&(a([r]),om(()=>{w.blur()})):l([r])}function Vf(r){return typeof Lr(r)<"u"}function TIn(r,o,l,a){if(!r||!r.source||!r.target)return l(new Md(qf.EDGE_INVALID,(r==null?void 0:r.id)??"[ID UNKNOWN]")),!1;let p;return FC(r)?p=r:p={...r,id:lPt(r)},p=oPt(p,void 0,a),fIn(p,o)?!1:p}function IIn(r,o,l,a,p,g){if(!o.source||!o.target)return g(new Md(qf.EDGE_INVALID,r.id)),!1;const w=a(r.id);if(!w)return g(new Md(qf.EDGE_NOT_FOUND,r.id)),!1;const{id:y,...S}=r,E={...S,id:p?lPt(o):y,source:o.source,target:o.target,sourceHandle:o.sourceHandle,targetHandle:o.targetHandle};return l.splice(l.indexOf(w),1,E),E}function f7t(r,o,l){const a={},p=[];for(let g=0;gy.id===g.parentNode);g.parentNode&&!w&&l(new Md(qf.NODE_MISSING_PARENT,g.id,g.parentNode)),(g.parentNode||a[g.id])&&(a[g.id]&&(g.isParent=!0),w&&(w.isParent=!0))}return p}function d7t(r,o){r.clear();for(const l of o){const{id:a,source:p,target:g,sourceHandle:w=null,targetHandle:y=null}=l,S=`${p}-source-${w}`,E=`${g}-target-${y}`,I=r.get(S)||new Map,M=r.get(E)||new Map,_=EE({edgeId:a,source:p,target:g,sourceHandle:w,targetHandle:y});r.set(S,I.set(`${g}-${y}`,_)),r.set(E,M.set(`${p}-${w}`,_))}}function h7t(r,o,l,a,p,g,w,y){const S=[];for(const E of r){const I=FC(E)?E:TIn(E,y,p,g);if(!I)continue;const M=l(I.source),_=l(I.target);if(!M||!_){p(new Md(qf.EDGE_SOURCE_TARGET_MISSING,I.id,I.source,I.target));continue}if(!M){p(new Md(qf.EDGE_SOURCE_MISSING,I.id,I.source));continue}if(!_){p(new Md(qf.EDGE_TARGET_MISSING,I.id,I.target));continue}if(o&&!o(I,{edges:y,nodes:w,sourceNode:M,targetNode:_})){p(new Md(qf.EDGE_INVALID,I.id));continue}const R=a(I.id);S.push({...oPt(I,R,g),sourceNode:M,targetNode:_})}return S}const p7t=Symbol("vueFlow"),vPt=Symbol("nodeId"),yPt=Symbol("nodeRef"),PIn=Symbol("edgeId"),MIn=Symbol("edgeRef"),Uie=Symbol("slots");function kPt(r){const{vueFlowRef:o,snapToGrid:l,snapGrid:a,noDragClassName:p,nodes:g,nodeExtent:w,nodeDragThreshold:y,viewport:S,autoPanOnNodeDrag:E,autoPanSpeed:I,nodesDraggable:M,panBy:_,findNode:R,multiSelectionActive:j,nodesSelectionActive:K,selectNodesOnDrag:q,removeSelectedElements:Q,addSelectedNodes:Z,updateNodePositions:X,emits:ie}=_u(),{onStart:je,onDrag:et,onStop:mt,onClick:bt,el:ce,disabled:Be,id:ae,selectable:xe,dragHandle:U}=r,He=Co(!1);let yt=[],ft,At=null,Jt={x:void 0,y:void 0},un={x:0,y:0},kn=null,qt=!1,on=0,Rt=!1;const an=RIn(),Zn=({x:ye,y:Ce})=>{Jt={x:ye,y:Ce};let ee=!1;if(yt=yt.map(V=>{const oe={x:ye-V.distance.x,y:Ce-V.distance.y},{computedPosition:ue}=Lxe(V,l.value?Hie(oe,a.value):oe,ie.error,w.value,V.parentNode?R(V.parentNode):void 0);return ee=ee||V.position.x!==ue.x||V.position.y!==ue.y,V.position=ue,V}),!!ee&&(X(yt,!0,!0),He.value=!0,kn)){const[V,oe]=qCe({id:ae,dragItems:yt,findNode:R});et({event:kn,node:V,nodes:oe})}},kt=()=>{if(!At)return;const[ye,Ce]=pPt(un,At,I.value);if(ye!==0||Ce!==0){const ee={x:(Jt.x??0)-ye/S.value.zoom,y:(Jt.y??0)-Ce/S.value.zoom};_({x:ye,y:Ce})&&Zn(ee)}on=requestAnimationFrame(kt)},Ze=(ye,Ce)=>{qt=!0;const ee=R(ae);!q.value&&!j.value&&ee&&(ee.selected||Q()),ee&&Wl(xe)&&q.value&&SSe(ee,j.value,Z,Q,K,!1,Ce);const V=an(ye.sourceEvent);if(Jt=V,yt=gIn(g.value,M.value,V,R,ae),yt.length){const[oe,ue]=qCe({id:ae,dragItems:yt,findNode:R});je({event:ye.sourceEvent,node:oe,nodes:ue})}},Xt=(ye,Ce)=>{var ee;ye.sourceEvent.type==="touchmove"&&ye.sourceEvent.touches.length>1||(y.value===0&&Ze(ye,Ce),Jt=an(ye.sourceEvent),At=((ee=o.value)==null?void 0:ee.getBoundingClientRect())||null,un=V6(ye.sourceEvent,At))},Mn=(ye,Ce)=>{const ee=an(ye.sourceEvent);if(!Rt&&qt&&E.value&&(Rt=!0,kt()),!qt){const V=ee.xSnapped-(Jt.x??0),oe=ee.ySnapped-(Jt.y??0);Math.sqrt(V*V+oe*oe)>y.value&&Ze(ye,Ce)}(Jt.x!==ee.xSnapped||Jt.y!==ee.ySnapped)&&yt.length&&qt&&(kn=ye.sourceEvent,un=V6(ye.sourceEvent,At),Zn(ee))},pr=ye=>{if(!bPt(ye)&&!qt&&!He.value&&!j.value){const Ce=ye,ee=an(Ce),V=ee.xSnapped-(Jt.x??0),oe=ee.ySnapped-(Jt.y??0),ue=Math.sqrt(V*V+oe*oe);ue!==0&&ue<=y.value&&(bt==null||bt(Ce));return}if(He.value=!1,Rt=!1,qt=!1,Jt={x:void 0,y:void 0},cancelAnimationFrame(on),yt.length){X(yt,!1,!1);const[Ce,ee]=qCe({id:ae,dragItems:yt,findNode:R});mt({event:ye.sourceEvent,node:Ce,nodes:ee})}};return Os([()=>Wl(Be),ce],([ye,Ce],ee,V)=>{if(Ce){const oe=oy(Ce);ye||(ft=dEn().on("start",ue=>Xt(ue,Ce)).on("drag",ue=>Mn(ue,Ce)).on("end",ue=>pr(ue)).filter(ue=>{const ge=ue.target,Ge=Wl(U);return!ue.button&&(!p.value||!o7t(ge,`.${p.value}`,Ce)&&(!Ge||o7t(ge,Ge,Ce)))}),oe.call(ft)),V(()=>{oe.on(".drag",null),ft&&(ft.on("start",null),ft.on("drag",null),ft.on("end",null))})}}),He}function OIn(){return{doubleClick:ti(),click:ti(),mouseEnter:ti(),mouseMove:ti(),mouseLeave:ti(),contextMenu:ti(),updateStart:ti(),update:ti(),updateEnd:ti()}}function _In(r,o){const l=OIn();return l.doubleClick.on(a=>{var p,g;o.edgeDoubleClick(a),(g=(p=r.events)==null?void 0:p.doubleClick)==null||g.call(p,a)}),l.click.on(a=>{var p,g;o.edgeClick(a),(g=(p=r.events)==null?void 0:p.click)==null||g.call(p,a)}),l.mouseEnter.on(a=>{var p,g;o.edgeMouseEnter(a),(g=(p=r.events)==null?void 0:p.mouseEnter)==null||g.call(p,a)}),l.mouseMove.on(a=>{var p,g;o.edgeMouseMove(a),(g=(p=r.events)==null?void 0:p.mouseMove)==null||g.call(p,a)}),l.mouseLeave.on(a=>{var p,g;o.edgeMouseLeave(a),(g=(p=r.events)==null?void 0:p.mouseLeave)==null||g.call(p,a)}),l.contextMenu.on(a=>{var p,g;o.edgeContextMenu(a),(g=(p=r.events)==null?void 0:p.contextMenu)==null||g.call(p,a)}),l.updateStart.on(a=>{var p,g;o.edgeUpdateStart(a),(g=(p=r.events)==null?void 0:p.updateStart)==null||g.call(p,a)}),l.update.on(a=>{var p,g;o.edgeUpdate(a),(g=(p=r.events)==null?void 0:p.update)==null||g.call(p,a)}),l.updateEnd.on(a=>{var p,g;o.edgeUpdateEnd(a),(g=(p=r.events)==null?void 0:p.updateEnd)==null||g.call(p,a)}),Object.entries(l).reduce((a,[p,g])=>(a.emit[p]=g.trigger,a.on[p]=g.on,a),{emit:{},on:{}})}function RIn(){const{viewport:r,snapGrid:o,snapToGrid:l}=_u();return a=>{const p=bPt(a)?a.sourceEvent:a,{x:g,y:w}=V6(p),y=Jz({x:g,y:w},r.value),{x:S,y:E}=l.value?Hie(y,o.value):y;return{xSnapped:S,ySnapped:E,...y}}}function fne(){return!0}function CPt({handleId:r,nodeId:o,type:l,isValidConnection:a,edgeUpdaterType:p,onEdgeUpdate:g,onEdgeUpdateEnd:w}){const{vueFlowRef:y,connectionMode:S,connectionRadius:E,connectOnClick:I,connectionClickStartHandle:M,nodesConnectable:_,autoPanOnConnect:R,autoPanSpeed:j,findNode:K,panBy:q,startConnection:Q,updateConnection:Z,endConnection:X,emits:ie,viewport:je,edges:et,nodes:mt,isValidConnection:bt}=_u();let ce=null,Be=!1,ae=null,xe=null;function U(yt){var ft;const At=Wl(l)==="target",Jt=$xe(yt),un=QCt(yt.target);if(Jt&&yt.button===0||!Jt){let kn=function(ue){Ce=V6(ue,pr);const{handle:ge,validHandleResult:Ge}=CIn(ue,un,Jz(Ce,je.value,!1,[1,1]),E.value,V,$t=>u7t(ue,$t,S.value,Wl(o),Wl(r),At?"target":"source",Rt,un,et.value,mt.value,K));if(an=ge,ee||(oe(),ee=!0),ce=Ge.connection,Be=Ge.isValid,ae=Ge.handleDomNode,!(Be&&an&&(xe!=null&&xe.endHandle)&&Ge.endHandle&&xe.endHandle.type===Ge.endHandle.type&&xe.endHandle.nodeId===Ge.endHandle.nodeId&&xe.endHandle.handleId===Ge.endHandle.handleId)){if(Z(an&&Be?cPt({x:an.x,y:an.y},je.value):Ce,Ge.endHandle,xIn(!!an,Be)),xe=Ge,!an&&!Be&&!ae)return XCe(ye);ce&&ce.source!==ce.target&&ae&&(XCe(ye),ye=ae,ae.classList.add("connecting","vue-flow__handle-connecting"),ae.classList.toggle("valid",Be),ae.classList.toggle("vue-flow__handle-valid",Be))}},qt=function(ue){(an||ae)&&ce&&Be&&(g?g(ue,ce):ie.connect(ce)),ie.connectEnd(ue),p&&(w==null||w(ue)),XCe(ye),cancelAnimationFrame(Zn),X(ue),ee=!1,Be=!1,ce=null,ae=null,un.removeEventListener("mousemove",kn),un.removeEventListener("mouseup",qt),un.removeEventListener("touchmove",kn),un.removeEventListener("touchend",qt)};const on=K(Wl(o));let Rt=Wl(a)||bt.value||fne;!Rt&&on&&(Rt=(At?on.isValidSourcePos:on.isValidTargetPos)||fne);let an,Zn=0;const{x:kt,y:Ze}=V6(yt),Xt=un==null?void 0:un.elementFromPoint(kt,Ze),Mn=jxe(Wl(p),Xt),pr=(ft=y.value)==null?void 0:ft.getBoundingClientRect();if(!pr||!Mn)return;let ye,Ce=V6(yt,pr),ee=!1;const V=SIn({nodes:mt.value,nodeId:Wl(o),handleId:Wl(r),handleType:Mn}),oe=()=>{if(!R.value)return;const[ue,ge]=pPt(Ce,pr,j.value);q({x:ue,y:ge}),Zn=requestAnimationFrame(oe)};Q({nodeId:Wl(o),handleId:Wl(r),type:Mn,position:(Xt==null?void 0:Xt.getAttribute("data-handlepos"))||wi.Top},{x:kt-pr.left,y:Ze-pr.top}),ie.connectStart({event:yt,nodeId:Wl(o),handleId:Wl(r),handleType:Mn}),un.addEventListener("mousemove",kn),un.addEventListener("mouseup",qt),un.addEventListener("touchmove",kn),un.addEventListener("touchend",qt)}}function He(yt){if(!I.value)return;const ft=Wl(l)==="target";if(!M.value)ie.clickConnectStart({event:yt,nodeId:Wl(o),handleId:Wl(r)}),Q({nodeId:Wl(o),type:Wl(l),handleId:Wl(r)},void 0,!0);else{let At=Wl(a)||bt.value||fne;const Jt=K(Wl(o));if(!At&&Jt&&(At=(ft?Jt.isValidSourcePos:Jt.isValidTargetPos)||fne),Jt&&(typeof Jt.connectable>"u"?_.value:Jt.connectable)===!1)return;const un=QCt(yt.target),{connection:kn,isValid:qt}=u7t(yt,{nodeId:Wl(o),id:Wl(r),type:Wl(l)},S.value,M.value.nodeId,M.value.handleId||null,M.value.type,At,un,et.value,mt.value,K),on=kn.source===kn.target;qt&&!on&&ie.connect(kn),ie.clickConnectEnd(yt),X(yt,!0)}}return{handlePointerDown:U,handleClick:He}}function AIn(){return v3(vPt,"")}function SPt(r){const o=r??AIn()??"",l=v3(yPt,Co(null)),{findNode:a,edges:p,emits:g}=_u(),w=a(o);return w||g.error(new Md(qf.NODE_NOT_FOUND,o)),{id:o,nodeEl:l,node:w,parentNode:ho(()=>a(w.parentNode)),connectedEdges:ho(()=>dPt([w],p.value))}}function LIn(){return{doubleClick:ti(),click:ti(),mouseEnter:ti(),mouseMove:ti(),mouseLeave:ti(),contextMenu:ti(),dragStart:ti(),drag:ti(),dragStop:ti()}}function $In(r,o){const l=LIn();return l.doubleClick.on(a=>{var p,g;o.nodeDoubleClick(a),(g=(p=r.events)==null?void 0:p.doubleClick)==null||g.call(p,a)}),l.click.on(a=>{var p,g;o.nodeClick(a),(g=(p=r.events)==null?void 0:p.click)==null||g.call(p,a)}),l.mouseEnter.on(a=>{var p,g;o.nodeMouseEnter(a),(g=(p=r.events)==null?void 0:p.mouseEnter)==null||g.call(p,a)}),l.mouseMove.on(a=>{var p,g;o.nodeMouseMove(a),(g=(p=r.events)==null?void 0:p.mouseMove)==null||g.call(p,a)}),l.mouseLeave.on(a=>{var p,g;o.nodeMouseLeave(a),(g=(p=r.events)==null?void 0:p.mouseLeave)==null||g.call(p,a)}),l.contextMenu.on(a=>{var p,g;o.nodeContextMenu(a),(g=(p=r.events)==null?void 0:p.contextMenu)==null||g.call(p,a)}),l.dragStart.on(a=>{var p,g;o.nodeDragStart(a),(g=(p=r.events)==null?void 0:p.dragStart)==null||g.call(p,a)}),l.drag.on(a=>{var p,g;o.nodeDrag(a),(g=(p=r.events)==null?void 0:p.drag)==null||g.call(p,a)}),l.dragStop.on(a=>{var p,g;o.nodeDragStop(a),(g=(p=r.events)==null?void 0:p.dragStop)==null||g.call(p,a)}),Object.entries(l).reduce((a,[p,g])=>(a.emit[p]=g.trigger,a.on[p]=g.on,a),{emit:{},on:{}})}function xPt(){const{getSelectedNodes:r,nodeExtent:o,updateNodePositions:l,findNode:a,snapGrid:p,snapToGrid:g,nodesDraggable:w,emits:y}=_u();return(S,E=!1)=>{const I=g.value?p.value[0]:5,M=g.value?p.value[1]:5,_=E?4:1,R=S.x*I*_,j=S.y*M*_,K=[];for(const q of r.value)if(q.draggable||w&&typeof q.draggable>"u"){const Q={x:q.computedPosition.x+R,y:q.computedPosition.y+j},{computedPosition:Z}=Lxe(q,Q,y.error,o.value,q.parentNode?a(q.parentNode):void 0);K.push({id:q.id,position:Z,from:q.position,distance:{x:S.x,y:S.y},dimensions:q.dimensions})}l(K,!0,!1)}}const YCe=.1;function fC(){return Kie("Viewport not initialized yet."),Promise.resolve(!1)}const jIn={zoomIn:fC,zoomOut:fC,zoomTo:fC,fitView:fC,setCenter:fC,fitBounds:fC,project:r=>r,screenToFlowCoordinate:r=>r,flowToScreenCoordinate:r=>r,setViewport:fC,setTransform:fC,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function DIn(r){function o(a,p){return new Promise(g=>{r.d3Selection&&r.d3Zoom?r.d3Zoom.scaleBy(JCe(r.d3Selection,p,()=>{g(!0)}),a):g(!1)})}function l(a,p,g,w){return new Promise(y=>{const{x:S,y:E}=iPt({x:-a,y:-p},r.translateExtent),I=$_.translate(-S,-E).scale(g);r.d3Selection&&r.d3Zoom?r.d3Zoom.transform(JCe(r.d3Selection,w,()=>{y(!0)}),I):y(!1)})}return ho(()=>r.d3Zoom&&r.d3Selection&&r.dimensions.width&&r.dimensions.height?{viewportInitialized:!0,zoomIn:p=>o(1.2,p==null?void 0:p.duration),zoomOut:p=>o(1/1.2,p==null?void 0:p.duration),zoomTo:(p,g)=>new Promise(w=>{r.d3Selection&&r.d3Zoom?r.d3Zoom.scaleTo(JCe(r.d3Selection,g==null?void 0:g.duration,()=>{w(!0)}),p):w(!1)}),setViewport:(p,g)=>l(p.x,p.y,p.zoom,g==null?void 0:g.duration),setTransform:(p,g)=>l(p.x,p.y,p.zoom,g==null?void 0:g.duration),getViewport:()=>({x:r.viewport.x,y:r.viewport.y,zoom:r.viewport.zoom}),getTransform:()=>({x:r.viewport.x,y:r.viewport.y,zoom:r.viewport.zoom}),fitView:(p={padding:YCe,includeHiddenNodes:!1,duration:0})=>{var g,w;const y=[];for(const _ of r.nodes)_.dimensions.width&&_.dimensions.height&&((p==null?void 0:p.includeHiddenNodes)||!_.hidden)&&(!((g=p.nodes)!=null&&g.length)||(w=p.nodes)!=null&&w.length&&p.nodes.includes(_.id))&&y.push(_);if(!y.length)return Promise.resolve(!1);const S=aPt(y),{x:E,y:I,zoom:M}=ZCt(S,r.dimensions.width,r.dimensions.height,p.minZoom??r.minZoom,p.maxZoom??r.maxZoom,p.padding??YCe,p.offset);return l(E,I,M,p==null?void 0:p.duration)},setCenter:(p,g,w)=>{const y=typeof(w==null?void 0:w.zoom)<"u"?w.zoom:r.maxZoom,S=r.dimensions.width/2-p*y,E=r.dimensions.height/2-g*y;return l(S,E,y,w==null?void 0:w.duration)},fitBounds:(p,g={padding:YCe})=>{const{x:w,y,zoom:S}=ZCt(p,r.dimensions.width,r.dimensions.height,r.minZoom,r.maxZoom,g.padding);return l(w,y,S,g==null?void 0:g.duration)},project:p=>Jz(p,r.viewport,r.snapToGrid,r.snapGrid),screenToFlowCoordinate:p=>{if(r.vueFlowRef){const{x:g,y:w}=r.vueFlowRef.getBoundingClientRect(),y={x:p.x-g,y:p.y-w};return Jz(y,r.viewport,r.snapToGrid,r.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:p=>{if(r.vueFlowRef){const{x:g,y:w}=r.vueFlowRef.getBoundingClientRect(),y={x:p.x+g,y:p.y+w};return cPt(y,r.viewport)}return{x:0,y:0}}}:jIn)}function JCe(r,o=0,l){return r.transition().duration(o).on("end",l)}function NIn(r,o,l){const a=nSt(!0);return a.run(()=>{const p=()=>{a.run(()=>{let K,q,Q=!!(l.nodes.value.length||l.edges.value.length);K=NO([r.modelValue,()=>{var Z,X;return(X=(Z=r.modelValue)==null?void 0:Z.value)==null?void 0:X.length}],([Z])=>{Z&&Array.isArray(Z)&&(q==null||q.pause(),l.setElements(Z),!q&&!Q&&Z.length?Q=!0:q==null||q.resume())}),q=NO([l.nodes,l.edges,()=>l.edges.value.length,()=>l.nodes.value.length],([Z,X])=>{var ie;(ie=r.modelValue)!=null&&ie.value&&Array.isArray(r.modelValue.value)&&(K==null||K.pause(),r.modelValue.value=[...Z,...X],om(()=>{K==null||K.resume()}))},{immediate:Q}),_F(()=>{K==null||K.stop(),q==null||q.stop()})})},g=()=>{a.run(()=>{let K,q,Q=!!l.nodes.value.length;K=NO([r.nodes,()=>{var Z,X;return(X=(Z=r.nodes)==null?void 0:Z.value)==null?void 0:X.length}],([Z])=>{Z&&Array.isArray(Z)&&(q==null||q.pause(),l.setNodes(Z),!q&&!Q&&Z.length?Q=!0:q==null||q.resume())}),q=NO([l.nodes,()=>l.nodes.value.length],([Z])=>{var X;(X=r.nodes)!=null&&X.value&&Array.isArray(r.nodes.value)&&(K==null||K.pause(),r.nodes.value=[...Z],om(()=>{K==null||K.resume()}))},{immediate:Q}),_F(()=>{K==null||K.stop(),q==null||q.stop()})})},w=()=>{a.run(()=>{let K,q,Q=!!l.edges.value.length;K=NO([r.edges,()=>{var Z,X;return(X=(Z=r.edges)==null?void 0:Z.value)==null?void 0:X.length}],([Z])=>{Z&&Array.isArray(Z)&&(q==null||q.pause(),l.setEdges(Z),!q&&!Q&&Z.length?Q=!0:q==null||q.resume())}),q=NO([l.edges,()=>l.edges.value.length],([Z])=>{var X;(X=r.edges)!=null&&X.value&&Array.isArray(r.edges.value)&&(K==null||K.pause(),r.edges.value=[...Z],om(()=>{K==null||K.resume()}))},{immediate:Q}),_F(()=>{K==null||K.stop(),q==null||q.stop()})})},y=()=>{a.run(()=>{Os(()=>o.maxZoom,()=>{o.maxZoom&&Vf(o.maxZoom)&&l.setMaxZoom(o.maxZoom)},{immediate:!0})})},S=()=>{a.run(()=>{Os(()=>o.minZoom,()=>{o.minZoom&&Vf(o.minZoom)&&l.setMinZoom(o.minZoom)},{immediate:!0})})},E=()=>{a.run(()=>{Os(()=>o.translateExtent,()=>{o.translateExtent&&Vf(o.translateExtent)&&l.setTranslateExtent(o.translateExtent)},{immediate:!0})})},I=()=>{a.run(()=>{Os(()=>o.nodeExtent,()=>{o.nodeExtent&&Vf(o.nodeExtent)&&l.setNodeExtent(o.nodeExtent)},{immediate:!0})})},M=()=>{a.run(()=>{Os(()=>o.applyDefault,()=>{Vf(o.applyDefault)&&(l.applyDefault.value=o.applyDefault)},{immediate:!0})})},_=()=>{a.run(()=>{const K=async q=>{let Q=q;typeof o.autoConnect=="function"&&(Q=await o.autoConnect(q)),Q!==!1&&l.addEdges([Q])};Os(()=>o.autoConnect,()=>{Vf(o.autoConnect)&&(l.autoConnect.value=o.autoConnect)},{immediate:!0}),Os(l.autoConnect,(q,Q,Z)=>{q?l.onConnect(K):l.hooks.value.connect.off(K),Z(()=>{l.hooks.value.connect.off(K)})},{immediate:!0})})},R=()=>{const K=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const q of Object.keys(o)){const Q=q;if(!K.includes(Q)){const Z=Ia(()=>o[Q]),X=l[Q];Ef(X)&&a.run(()=>{Os(Z,ie=>{Vf(ie)&&(X.value=ie)},{immediate:!0})})}}};(()=>{p(),g(),w(),S(),y(),E(),I(),M(),_(),R()})()}),()=>a.stop()}function BIn(){return{edgesChange:ti(),nodesChange:ti(),nodeDoubleClick:ti(),nodeClick:ti(),nodeMouseEnter:ti(),nodeMouseMove:ti(),nodeMouseLeave:ti(),nodeContextMenu:ti(),nodeDragStart:ti(),nodeDrag:ti(),nodeDragStop:ti(),nodesInitialized:ti(),miniMapNodeClick:ti(),miniMapNodeDoubleClick:ti(),miniMapNodeMouseEnter:ti(),miniMapNodeMouseMove:ti(),miniMapNodeMouseLeave:ti(),connect:ti(),connectStart:ti(),connectEnd:ti(),clickConnectStart:ti(),clickConnectEnd:ti(),paneReady:ti(),init:ti(),move:ti(),moveStart:ti(),moveEnd:ti(),selectionDragStart:ti(),selectionDrag:ti(),selectionDragStop:ti(),selectionContextMenu:ti(),selectionStart:ti(),selectionEnd:ti(),viewportChangeStart:ti(),viewportChange:ti(),viewportChangeEnd:ti(),paneScroll:ti(),paneClick:ti(),paneContextMenu:ti(),paneMouseEnter:ti(),paneMouseMove:ti(),paneMouseLeave:ti(),edgeContextMenu:ti(),edgeMouseEnter:ti(),edgeMouseMove:ti(),edgeMouseLeave:ti(),edgeDoubleClick:ti(),edgeClick:ti(),edgeUpdateStart:ti(),edgeUpdate:ti(),edgeUpdateEnd:ti(),updateNodeInternals:ti(),error:ti(r=>Kie(r.message))}}function FIn(r,o){$St(()=>{for(const[l,a]of Object.entries(o.value)){const p=g=>{r(l,g)};a.fns.add(p),jie(()=>{a.off(p)})}})}function EPt(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:Axe.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:ZF.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:bE.Bezier,style:{}},connectionMode:GE.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:Number.NaN,y:Number.NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:Mre()?"Meta":"Control",zoomActivationKeyCode:Mre()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:BIn(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}const zIn=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function HIn(r,o,l){const a=DIn(r),p=V=>{const oe=V??[];r.hooks.updateNodeInternals.trigger(oe)},g=V=>aIn(V,r.nodes,r.edges),w=V=>uIn(V,r.nodes,r.edges),y=V=>dPt(V,r.edges),S=({id:V,type:oe,nodeId:ue})=>{var ge;return Array.from(((ge=r.connectionLookup.get(`${ue}-${oe}-${V??null}`))==null?void 0:ge.values())??[])},E=V=>{if(V)return o.value.get(V)},I=V=>{if(V)return l.value.get(V)},M=(V,oe,ue)=>{var ge,Ge;const $t=[];for(const Lt of V){const tn={id:Lt.id,type:"position",dragging:ue,from:Lt.from};if(oe&&(tn.position=Lt.position,Lt.parentNode)){const Ct=E(Lt.parentNode);tn.position={x:tn.position.x-(((ge=Ct==null?void 0:Ct.computedPosition)==null?void 0:ge.x)??0),y:tn.position.y-(((Ge=Ct==null?void 0:Ct.computedPosition)==null?void 0:Ge.y)??0)}}$t.push(tn)}$t!=null&&$t.length&&r.hooks.nodesChange.trigger($t)},_=V=>{if(!r.vueFlowRef)return;const oe=r.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!oe)return;const ue=window.getComputedStyle(oe),{m22:ge}=new window.DOMMatrixReadOnly(ue.transform),Ge=[];for(let $t=0;$t{r.fitViewOnInitDone=!0}),Ge.length&&r.hooks.nodesChange.trigger(Ge)},R=(V,oe)=>{const ue=new Set,ge=new Set;for(const Lt of V)LE(Lt)?ue.add(Lt.id):FC(Lt)&&ge.add(Lt.id);const Ge=yC(o.value,ue,!0),$t=yC(l.value,ge);if(r.multiSelectionActive){for(const Lt of ue)Ge.push(hC(Lt,oe));for(const Lt of ge)$t.push(hC(Lt,oe))}Ge.length&&r.hooks.nodesChange.trigger(Ge),$t.length&&r.hooks.edgesChange.trigger($t)},j=V=>{if(r.multiSelectionActive){const oe=V.map(ue=>hC(ue.id,!0));r.hooks.nodesChange.trigger(oe);return}r.hooks.nodesChange.trigger(yC(o.value,new Set(V.map(oe=>oe.id)),!0)),r.hooks.edgesChange.trigger(yC(l.value))},K=V=>{if(r.multiSelectionActive){const oe=V.map(ue=>hC(ue.id,!0));r.hooks.edgesChange.trigger(oe);return}r.hooks.edgesChange.trigger(yC(l.value,new Set(V.map(oe=>oe.id)))),r.hooks.nodesChange.trigger(yC(o.value,new Set,!0))},q=V=>{R(V,!0)},Q=V=>{const ue=(V||r.nodes).map(ge=>(ge.selected=!1,hC(ge.id,!1)));r.hooks.nodesChange.trigger(ue)},Z=V=>{const ue=(V||r.edges).map(ge=>(ge.selected=!1,hC(ge.id,!1)));r.hooks.edgesChange.trigger(ue)},X=V=>{if(!V||!V.length)return R([],!1);const oe=V.reduce((ue,ge)=>{const Ge=hC(ge.id,!1);return LE(ge)?ue.nodes.push(Ge):ue.edges.push(Ge),ue},{nodes:[],edges:[]});oe.nodes.length&&r.hooks.nodesChange.trigger(oe.nodes),oe.edges.length&&r.hooks.edgesChange.trigger(oe.edges)},ie=V=>{var oe;(oe=r.d3Zoom)==null||oe.scaleExtent([V,r.maxZoom]),r.minZoom=V},je=V=>{var oe;(oe=r.d3Zoom)==null||oe.scaleExtent([r.minZoom,V]),r.maxZoom=V},et=V=>{var oe;(oe=r.d3Zoom)==null||oe.translateExtent(V),r.translateExtent=V},mt=V=>{r.nodeExtent=V,p()},bt=V=>{var oe;(oe=r.d3Zoom)==null||oe.clickDistance(V)},ce=V=>{r.nodesDraggable=V,r.nodesConnectable=V,r.elementsSelectable=V},Be=V=>{const oe=V instanceof Function?V(r.nodes):V;!r.initialized&&!oe.length||(r.nodes=f7t(oe,E,r.hooks.error.trigger))},ae=V=>{const oe=V instanceof Function?V(r.edges):V;if(!r.initialized&&!oe.length)return;const ue=h7t(oe,r.isValidConnection,E,I,r.hooks.error.trigger,r.defaultEdgeOptions,r.nodes,r.edges);d7t(r.connectionLookup,ue),r.edges=ue},xe=V=>{const oe=V instanceof Function?V([...r.nodes,...r.edges]):V;!r.initialized&&!oe.length||(Be(oe.filter(LE)),ae(oe.filter(FC)))},U=V=>{let oe=V instanceof Function?V(r.nodes):V;oe=Array.isArray(oe)?oe:[oe];const ue=f7t(oe,E,r.hooks.error.trigger),ge=[];for(const Ge of ue)ge.push(n7t(Ge));ge.length&&r.hooks.nodesChange.trigger(ge)},He=V=>{let oe=V instanceof Function?V(r.edges):V;oe=Array.isArray(oe)?oe:[oe];const ue=h7t(oe,r.isValidConnection,E,I,r.hooks.error.trigger,r.defaultEdgeOptions,r.nodes,r.edges),ge=[];for(const Ge of ue)ge.push(n7t(Ge));ge.length&&r.hooks.edgesChange.trigger(ge)},yt=(V,oe=!0,ue=!1)=>{const ge=V instanceof Function?V(r.nodes):V,Ge=Array.isArray(ge)?ge:[ge],$t=[],Lt=[];function tn(Kn){const dn=y(Kn);for(const Rn of dn)(!Vf(Rn.deletable)||Rn.deletable)&&Lt.push(i7t(Rn.id,Rn.source,Rn.target,Rn.sourceHandle,Rn.targetHandle))}function Ct(Kn){const dn=[];for(const Rn of r.nodes)Rn.parentNode===Kn&&dn.push(Rn);if(dn.length){for(const Rn of dn)$t.push(r7t(Rn.id));oe&&tn(dn);for(const Rn of dn)Ct(Rn.id)}}for(const Kn of Ge){const dn=typeof Kn=="string"?E(Kn):Kn;dn&&(Vf(dn.deletable)&&!dn.deletable||($t.push(r7t(dn.id)),oe&&tn([dn]),ue&&Ct(dn.id)))}Lt.length&&r.hooks.edgesChange.trigger(Lt),$t.length&&r.hooks.nodesChange.trigger($t)},ft=V=>{const oe=V instanceof Function?V(r.edges):V,ue=Array.isArray(oe)?oe:[oe],ge=[];for(const Ge of ue){const $t=typeof Ge=="string"?I(Ge):Ge;$t&&(Vf($t.deletable)&&!$t.deletable||ge.push(i7t(typeof Ge=="string"?Ge:Ge.id,$t.source,$t.target,$t.sourceHandle,$t.targetHandle)))}r.hooks.edgesChange.trigger(ge)},At=(V,oe,ue=!0)=>IIn(V,oe,r.edges,I,ue,r.hooks.error.trigger),Jt=(V,oe,ue={replace:!1})=>{const ge=I(V);if(!ge)return;const Ge=typeof oe=="function"?oe(ge):oe;ge.data=ue.replace?Ge:{...ge.data,...Ge}},un=V=>t7t(V,r.nodes),kn=V=>{const oe=t7t(V,r.edges);return d7t(r.connectionLookup,oe),oe},qt=(V,oe,ue={replace:!1})=>{const ge=E(V);if(!ge)return;const Ge=typeof oe=="function"?oe(ge):oe;ue.replace?r.nodes.splice(r.nodes.indexOf(ge),1,Ge):Object.assign(ge,Ge)},on=(V,oe,ue={replace:!1})=>{const ge=E(V);if(!ge)return;const Ge=typeof oe=="function"?oe(ge):oe;ge.data=ue.replace?Ge:{...ge.data,...Ge}},Rt=(V,oe,ue=!1)=>{ue?r.connectionClickStartHandle=V:r.connectionStartHandle=V,r.connectionEndHandle=null,r.connectionStatus=null,oe&&(r.connectionPosition=oe)},an=(V,oe=null,ue=null)=>{r.connectionStartHandle&&(r.connectionPosition=V,r.connectionEndHandle=oe,r.connectionStatus=ue)},Zn=(V,oe)=>{r.connectionPosition={x:Number.NaN,y:Number.NaN},r.connectionEndHandle=null,r.connectionStatus=null,oe?r.connectionClickStartHandle=null:r.connectionStartHandle=null},kt=V=>{const oe=lIn(V),ue=oe?null:MF(V)?V:E(V.id);return!oe&&!ue?[null,null,oe]:[oe?V:kSe(ue),ue,oe]},Ze=(V,oe=!0,ue=r.nodes)=>{const[ge,Ge,$t]=kt(V);if(!ge)return[];const Lt=[];for(const tn of ue||r.nodes){if(!$t&&(tn.id===Ge.id||!tn.computedPosition))continue;const Ct=kSe(tn),Kn=CSe(Ct,ge);(oe&&Kn>0||Kn>=Number(ge.width)*Number(ge.height))&&Lt.push(tn)}return Lt},Xt=(V,oe,ue=!0)=>{const[ge]=kt(V);if(!ge)return!1;const Ge=CSe(ge,oe);return ue&&Ge>0||Ge>=Number(ge.width)*Number(ge.height)},Mn=V=>{const{viewport:oe,dimensions:ue,d3Zoom:ge,d3Selection:Ge,translateExtent:$t}=r;if(!ge||!Ge||!V.x&&!V.y)return!1;const Lt=$_.translate(oe.x+V.x,oe.y+V.y).scale(oe.zoom),tn=[[0,0],[ue.width,ue.height]],Ct=ge.constrain()(Lt,tn,$t),Kn=r.viewport.x!==Ct.x||r.viewport.y!==Ct.y||r.viewport.zoom!==Ct.k;return ge.transform(Ge,Ct),Kn},pr=V=>{const oe=V instanceof Function?V(r):V,ue=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];Vf(oe.defaultEdgeOptions)&&(r.defaultEdgeOptions=oe.defaultEdgeOptions);const ge=oe.modelValue||oe.nodes||oe.edges?[]:void 0;ge&&(oe.modelValue&&ge.push(...oe.modelValue),oe.nodes&&ge.push(...oe.nodes),oe.edges&&ge.push(...oe.edges),xe(ge));const Ge=()=>{Vf(oe.maxZoom)&&je(oe.maxZoom),Vf(oe.minZoom)&&ie(oe.minZoom),Vf(oe.translateExtent)&&et(oe.translateExtent)};for(const $t of Object.keys(oe)){const Lt=$t,tn=oe[Lt];![...zIn,...ue].includes(Lt)&&Vf(tn)&&(r[Lt]=tn)}fSe(()=>r.d3Zoom).not.toBeNull().then(Ge),r.initialized||(r.initialized=!0)};return{updateNodePositions:M,updateNodeDimensions:_,setElements:xe,setNodes:Be,setEdges:ae,addNodes:U,addEdges:He,removeNodes:yt,removeEdges:ft,findNode:E,findEdge:I,updateEdge:At,updateEdgeData:Jt,updateNode:qt,updateNodeData:on,applyEdgeChanges:kn,applyNodeChanges:un,addSelectedElements:q,addSelectedNodes:j,addSelectedEdges:K,setMinZoom:ie,setMaxZoom:je,setTranslateExtent:et,setNodeExtent:mt,setPaneClickDistance:bt,removeSelectedElements:X,removeSelectedNodes:Q,removeSelectedEdges:Z,startConnection:Rt,updateConnection:an,endConnection:Zn,setInteractive:ce,setState:pr,getIntersectingNodes:Ze,getIncomers:g,getOutgoers:w,getConnectedEdges:y,getHandleConnections:S,isNodeIntersecting:Xt,panBy:Mn,fitView:V=>a.value.fitView(V),zoomIn:V=>a.value.zoomIn(V),zoomOut:V=>a.value.zoomOut(V),zoomTo:(V,oe)=>a.value.zoomTo(V,oe),setViewport:(V,oe)=>a.value.setViewport(V,oe),setTransform:(V,oe)=>a.value.setTransform(V,oe),getViewport:()=>a.value.getViewport(),getTransform:()=>a.value.getTransform(),setCenter:(V,oe,ue)=>a.value.setCenter(V,oe,ue),fitBounds:(V,oe)=>a.value.fitBounds(V,oe),project:V=>a.value.project(V),screenToFlowCoordinate:V=>a.value.screenToFlowCoordinate(V),flowToScreenCoordinate:V=>a.value.flowToScreenCoordinate(V),toObject:()=>{const V=[],oe=[];for(const ue of r.nodes){const{computedPosition:ge,handleBounds:Ge,selected:$t,dimensions:Lt,isParent:tn,resizing:Ct,dragging:Kn,events:dn,...Rn}=ue;V.push(Rn)}for(const ue of r.edges){const{selected:ge,sourceNode:Ge,targetNode:$t,events:Lt,...tn}=ue;oe.push(tn)}return JSON.parse(JSON.stringify({nodes:V,edges:oe,position:[r.viewport.x,r.viewport.y],zoom:r.viewport.zoom,viewport:r.viewport}))},fromObject:V=>new Promise(oe=>{const{nodes:ue,edges:ge,position:Ge,zoom:$t,viewport:Lt}=V;if(ue&&Be(ue),ge&&ae(ge),Lt!=null&&Lt.x&&(Lt!=null&&Lt.y)||Ge){const tn=(Lt==null?void 0:Lt.x)||Ge[0],Ct=(Lt==null?void 0:Lt.y)||Ge[1],Kn=(Lt==null?void 0:Lt.zoom)||$t||r.viewport.zoom;return fSe(()=>a.value.viewportInitialized).toBe(!0).then(()=>{a.value.setViewport({x:tn,y:Ct,zoom:Kn}).then(()=>{oe(!0)})})}else oe(!0)}),updateNodeInternals:p,viewportHelper:a,$reset:()=>{const V=EPt();if(r.edges=[],r.nodes=[],r.d3Zoom&&r.d3Selection){const oe=$_.translate(V.defaultViewport.x??0,V.defaultViewport.y??0).scale(WE(V.defaultViewport.zoom??1,V.minZoom,V.maxZoom)),ue=r.viewportRef.getBoundingClientRect(),ge=[[0,0],[ue.width,ue.height]],Ge=r.d3Zoom.constrain()(oe,ge,V.translateExtent);r.d3Zoom.transform(r.d3Selection,Ge)}pr(V)},$destroy:()=>{}}}const KIn=["data-id","data-handleid","data-nodeid","data-handlepos"],UIn={name:"Handle",compatConfig:{MODE:3}},j_=bc({...UIn,props:{id:{default:null},type:{},position:{default:()=>wi.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(r,{expose:o}){const l=BSt(r,["position","connectable","connectableStart","connectableEnd","id"]),a=Ia(()=>l.type??"source"),p=Ia(()=>l.isValidConnection??null),{connectionStartHandle:g,connectionClickStartHandle:w,connectionEndHandle:y,vueFlowRef:S,nodesConnectable:E,noDragClassName:I,noPanClassName:M}=_u(),{id:_,node:R,nodeEl:j,connectedEdges:K}=SPt(),q=Co(),Q=Ia(()=>typeof r.connectableStart<"u"?r.connectableStart:!0),Z=Ia(()=>typeof r.connectableEnd<"u"?r.connectableEnd:!0),X=Ia(()=>{var Be,ae,xe,U,He,yt;return((Be=g.value)==null?void 0:Be.nodeId)===_&&((ae=g.value)==null?void 0:ae.handleId)===r.id&&((xe=g.value)==null?void 0:xe.type)===a.value||((U=y.value)==null?void 0:U.nodeId)===_&&((He=y.value)==null?void 0:He.handleId)===r.id&&((yt=y.value)==null?void 0:yt.type)===a.value}),ie=Ia(()=>{var Be,ae,xe;return((Be=w.value)==null?void 0:Be.nodeId)===_&&((ae=w.value)==null?void 0:ae.handleId)===r.id&&((xe=w.value)==null?void 0:xe.type)===a.value}),{handlePointerDown:je,handleClick:et}=CPt({nodeId:_,handleId:r.id,isValidConnection:p,type:a}),mt=ho(()=>typeof r.connectable=="string"&&r.connectable==="single"?!K.value.some(Be=>{const ae=Be[`${a.value}Handle`];return Be[a.value]!==_?!1:ae?ae===r.id:!0}):typeof r.connectable=="number"?K.value.filter(Be=>{const ae=Be[`${a.value}Handle`];return Be[a.value]!==_?!1:ae?ae===r.id:!0}).length{var Be;if(!R.dimensions.width||!R.dimensions.height)return;const ae=(Be=R.handleBounds[a.value])==null?void 0:Be.find(Jt=>Jt.id===r.id);if(!S.value||ae)return;const xe=S.value.querySelector(".vue-flow__transformationpane");if(!j.value||!q.value||!xe||!r.id)return;const U=j.value.getBoundingClientRect(),He=q.value.getBoundingClientRect(),yt=window.getComputedStyle(xe),{m22:ft}=new window.DOMMatrixReadOnly(yt.transform),At={id:r.id,position:r.position,x:(He.left-U.left)/ft,y:(He.top-U.top)/ft,...zie(q.value)};R.handleBounds[a.value]=[...R.handleBounds[a.value]??[],At]}),Hre(()=>{const Be=R.handleBounds[a.value];Be&&(R.handleBounds[a.value]=Be.filter(ae=>ae.id!==r.id))});function bt(Be){const ae=$xe(Be);mt.value&&Q.value&&(ae&&Be.button===0||!ae)&&je(Be)}function ce(Be){!_||!w.value&&!Q.value||mt.value&&et(Be)}return o({handleClick:et,handlePointerDown:je,onClick:ce,onPointerDown:bt}),(Be,ae)=>(ve(),wt("div",{ref_key:"handle",ref:q,"data-id":`${Lr(_)}-${r.id}-${a.value}`,"data-handleid":r.id,"data-nodeid":Lr(_),"data-handlepos":Be.position,class:yo(["vue-flow__handle",[`vue-flow__handle-${Be.position}`,`vue-flow__handle-${r.id}`,Lr(I),Lr(M),a.value,{connectable:mt.value,connecting:ie.value,connectablestart:Q.value,connectableend:Z.value,connectionindicator:mt.value&&(Q.value&&!X.value||Z.value&&X.value)}]]),onMousedown:bt,onTouchstartPassive:bt,onClick:ce},[Nr(Be.$slots,"default",{id:Be.id})],42,KIn))}}),Gie=function({sourcePosition:r=wi.Bottom,targetPosition:o=wi.Top,label:l,connectable:a=!0,isValidTargetPos:p,isValidSourcePos:g,data:w}){const y=w.label||l;return[Pc(j_,{type:"target",position:o,connectable:a,isValidConnection:p}),typeof y!="string"&&y?Pc(y):Pc(si,[y]),Pc(j_,{type:"source",position:r,connectable:a,isValidConnection:g})]};Gie.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"];Gie.inheritAttrs=!1;Gie.compatConfig={MODE:3};const GIn=Gie,Wie=function({targetPosition:r=wi.Top,label:o,connectable:l=!0,isValidTargetPos:a,data:p}){const g=p.label||o;return[Pc(j_,{type:"target",position:r,connectable:l,isValidConnection:a}),typeof g!="string"&&g?Pc(g):Pc(si,[g])]};Wie.props=["targetPosition","label","isValidTargetPos","connectable","data"];Wie.inheritAttrs=!1;Wie.compatConfig={MODE:3};const WIn=Wie,Vie=function({sourcePosition:r=wi.Bottom,label:o,connectable:l=!0,isValidSourcePos:a,data:p}){const g=p.label||o;return[typeof g!="string"&&g?Pc(g):Pc(si,[g]),Pc(j_,{type:"source",position:r,connectable:l,isValidConnection:a})]};Vie.props=["sourcePosition","label","isValidSourcePos","connectable","data"];Vie.inheritAttrs=!1;Vie.compatConfig={MODE:3};const VIn=Vie,qIn=["transform"],XIn=["width","height","x","y","rx","ry"],YIn=["y"],JIn={name:"EdgeText",compatConfig:{MODE:3}},QIn=bc({...JIn,props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(r){const o=Co({x:0,y:0,width:0,height:0}),l=Co(null),a=ho(()=>`translate(${r.x-o.value.width/2} ${r.y-o.value.height/2})`);bb(p),Os([()=>r.x,()=>r.y,l,()=>r.label],p);function p(){if(!l.value)return;const g=l.value.getBBox();(g.width!==o.value.width||g.height!==o.value.height)&&(o.value=g)}return(g,w)=>(ve(),wt("g",{transform:a.value,class:"vue-flow__edge-textwrapper"},[g.labelShowBg?(ve(),wt("rect",{key:0,class:"vue-flow__edge-textbg",width:`${o.value.width+2*g.labelBgPadding[0]}px`,height:`${o.value.height+2*g.labelBgPadding[1]}px`,x:-g.labelBgPadding[0],y:-g.labelBgPadding[1],style:A1(g.labelBgStyle),rx:g.labelBgBorderRadius,ry:g.labelBgBorderRadius},null,12,XIn)):rr("",!0),ar("text",Qe(g.$attrs,{ref_key:"el",ref:l,class:"vue-flow__edge-text",y:o.value.height/2,dy:"0.3em",style:g.labelStyle}),[Nr(g.$slots,"default",{},()=>[typeof g.label!="string"?(ve(),Cn(ko(g.label),{key:0})):(ve(),wt(si,{key:1},[hb(Il(g.label),1)],64))])],16,YIn)],8,qIn))}}),ZIn=["id","d","marker-end","marker-start"],ePn=["d","stroke-width"],tPn={name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3}},NH=bc({...tPn,props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},style:{},labelStyle:{},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(r,{expose:o}){const l=BSt(r,["interactionWidth","labelShowBg"]),a=Co(null),p=Co(null),g=Co(null),w=Idn();return o({pathEl:a,interactionEl:p,labelEl:g}),(y,S)=>(ve(),wt(si,null,[ar("path",{id:y.id,ref_key:"pathEl",ref:a,d:y.path,style:A1(l.style),class:yo(["vue-flow__edge-path",Lr(w).class]),"marker-end":y.markerEnd,"marker-start":y.markerStart},null,14,ZIn),y.interactionWidth?(ve(),wt("path",{key:0,ref_key:"interactionEl",ref:p,fill:"none",d:y.path,"stroke-width":y.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,ePn)):rr("",!0),y.label&&y.labelX&&y.labelY?(ve(),Cn(QIn,{key:1,ref_key:"labelEl",ref:g,x:y.labelX,y:y.labelY,label:y.label,"label-show-bg":y.labelShowBg,"label-bg-style":y.labelBgStyle,"label-bg-padding":y.labelBgPadding,"label-bg-border-radius":y.labelBgBorderRadius,"label-style":y.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):rr("",!0)],64))}});function TPt({sourceX:r,sourceY:o,targetX:l,targetY:a}){const p=Math.abs(l-r)/2,g=l=0?.5*r:o*25*Math.sqrt(-r)}function g7t({pos:r,x1:o,y1:l,x2:a,y2:p,c:g}){let w,y;switch(r){case wi.Left:w=o-dne(o-a,g),y=l;break;case wi.Right:w=o+dne(a-o,g),y=l;break;case wi.Top:w=o,y=l-dne(l-p,g);break;case wi.Bottom:w=o,y=l+dne(p-l,g);break}return[w,y]}function Dxe(r){const{sourceX:o,sourceY:l,sourcePosition:a=wi.Bottom,targetX:p,targetY:g,targetPosition:w=wi.Top,curvature:y=.25}=r,[S,E]=g7t({pos:a,x1:o,y1:l,x2:p,y2:g,c:y}),[I,M]=g7t({pos:w,x1:p,y1:g,x2:o,y2:l,c:y}),[_,R,j,K]=IPt({sourceX:o,sourceY:l,targetX:p,targetY:g,sourceControlX:S,sourceControlY:E,targetControlX:I,targetControlY:M});return[`M${o},${l} C${S},${E} ${I},${M} ${p},${g}`,_,R,j,K]}function b7t({pos:r,x1:o,y1:l,x2:a,y2:p}){let g,w;switch(r){case wi.Left:case wi.Right:g=.5*(o+a),w=l;break;case wi.Top:case wi.Bottom:g=o,w=.5*(l+p);break}return[g,w]}function PPt(r){const{sourceX:o,sourceY:l,sourcePosition:a=wi.Bottom,targetX:p,targetY:g,targetPosition:w=wi.Top}=r,[y,S]=b7t({pos:a,x1:o,y1:l,x2:p,y2:g}),[E,I]=b7t({pos:w,x1:p,y1:g,x2:o,y2:l}),[M,_,R,j]=IPt({sourceX:o,sourceY:l,targetX:p,targetY:g,sourceControlX:y,sourceControlY:S,targetControlX:E,targetControlY:I});return[`M${o},${l} C${y},${S} ${E},${I} ${p},${g}`,M,_,R,j]}const w7t={[wi.Left]:{x:-1,y:0},[wi.Right]:{x:1,y:0},[wi.Top]:{x:0,y:-1},[wi.Bottom]:{x:0,y:1}};function nPn({source:r,sourcePosition:o=wi.Bottom,target:l}){return o===wi.Left||o===wi.Right?r.xr[M]?-1:1)*He:Q[M]=(E[M]>l[M]?-1:1)*He}}if(o!==a){const U=M==="x"?"y":"x",He=w[M]===y[U],yt=S[U]>E[U],ft=S[U]=xe?(j=(ce.x+Be.x)/2,K=R[0].y):(j=R[0].x,K=(ce.y+Be.y)/2)}return[[r,{x:S.x+q.x,y:S.y+q.y},...R,{x:E.x+Q.x,y:E.y+Q.y},l],j,K,ie,je]}function iPn(r,o,l,a){const p=Math.min(m7t(r,o)/2,m7t(o,l)/2,a),{x:g,y:w}=o;if(r.x===g&&g===l.x||r.y===w&&w===l.y)return`L${g} ${w}`;if(r.y===w){const E=r.x{let ie;return X>0&&X{const[l,a,p]=oPn(r);return Pc(NH,{path:l,labelX:a,labelY:p,...o,...r})}}}),lPn=sPn,cPn=bc({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(r,{attrs:o}){return()=>{const[l,a,p]=xSe({...r,sourcePosition:r.sourcePosition??wi.Bottom,targetPosition:r.targetPosition??wi.Top});return Pc(NH,{path:l,labelX:a,labelY:p,...o,...r})}}}),MPt=cPn,uPn=bc({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(r,{attrs:o}){return()=>Pc(MPt,{...r,...o,borderRadius:0})}}),aPn=uPn,fPn=bc({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(r,{attrs:o}){return()=>{const[l,a,p]=Dxe({...r,sourcePosition:r.sourcePosition??wi.Bottom,targetPosition:r.targetPosition??wi.Top});return Pc(NH,{path:l,labelX:a,labelY:p,...o,...r})}}}),dPn=fPn,hPn=bc({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(r,{attrs:o}){return()=>{const[l,a,p]=PPt({...r,sourcePosition:r.sourcePosition??wi.Bottom,targetPosition:r.targetPosition??wi.Top});return Pc(NH,{path:l,labelX:a,labelY:p,...o,...r})}}}),pPn=hPn,gPn={input:VIn,default:GIn,output:WIn},bPn={default:dPn,straight:lPn,step:aPn,smoothstep:MPt,simplebezier:pPn};function wPn(r,o,l){const a=ho(()=>K=>o.value.get(K)),p=ho(()=>K=>l.value.get(K)),g=ho(()=>{const K={...bPn,...r.edgeTypes},q=Object.keys(K);for(const Q of r.edges)Q.type&&!q.includes(Q.type)&&(K[Q.type]=Q.type);return K}),w=ho(()=>{const K={...gPn,...r.nodeTypes},q=Object.keys(K);for(const Q of r.nodes)Q.type&&!q.includes(Q.type)&&(K[Q.type]=Q.type);return K}),y=ho(()=>r.onlyRenderVisibleElements?fPt(r.nodes,{x:0,y:0,width:r.dimensions.width,height:r.dimensions.height},r.viewport,!0):r.nodes),S=ho(()=>{if(r.onlyRenderVisibleElements){const K=[];for(const q of r.edges){const Q=o.value.get(q.source),Z=o.value.get(q.target);vIn({sourcePos:Q.computedPosition||{x:0,y:0},targetPos:Z.computedPosition||{x:0,y:0},sourceWidth:Q.dimensions.width,sourceHeight:Q.dimensions.height,targetWidth:Z.dimensions.width,targetHeight:Z.dimensions.height,width:r.dimensions.width,height:r.dimensions.height,viewport:r.viewport})&&K.push(q)}return K}return r.edges}),E=ho(()=>[...y.value,...S.value]),I=ho(()=>{const K=[];for(const q of r.nodes)q.selected&&K.push(q);return K}),M=ho(()=>{const K=[];for(const q of r.edges)q.selected&&K.push(q);return K}),_=ho(()=>[...I.value,...M.value]),R=ho(()=>{const K=[];for(const q of r.nodes)q.dimensions.width&&q.dimensions.height&&q.handleBounds!==void 0&&K.push(q);return K}),j=ho(()=>y.value.length>0&&R.value.length===y.value.length);return{getNode:a,getEdge:p,getElements:E,getEdgeTypes:g,getNodeTypes:w,getEdges:S,getNodes:y,getSelectedElements:_,getSelectedNodes:I,getSelectedEdges:M,getNodesInitialized:R,areNodesInitialized:j}}class wE{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var o;const l=(o=UC())==null?void 0:o.appContext.app,a=(l==null?void 0:l.config.globalProperties.$vueFlowStorage)??wE.instance;return wE.instance=a??new wE,l&&(l.config.globalProperties.$vueFlowStorage=wE.instance),wE.instance}set(o,l){return this.flows.set(o,l)}get(o){return this.flows.get(o)}remove(o){return this.flows.delete(o)}create(o,l){const a=EPt(),p=$E(a),g={};for(const[_,R]of Object.entries(p.hooks)){const j=`on${_.charAt(0).toUpperCase()+_.slice(1)}`;g[j]=R.on}const w={};for(const[_,R]of Object.entries(p.hooks))w[_]=R.trigger;const y=ho(()=>{const _=new Map;for(const R of p.nodes)_.set(R.id,R);return _}),S=ho(()=>{const _=new Map;for(const R of p.edges)_.set(R.id,R);return _}),E=wPn(p,y,S),I=HIn(p,y,S);I.setState({...p,...l});const M={...g,...E,...I,...k9n(p),nodeLookup:y,edgeLookup:S,emits:w,id:o,vueFlowVersion:"1.41.5",$destroy:()=>{this.remove(o)}};return this.set(o,M),M}getId(){return`vue-flow-${this.currentId++}`}}function _u(r){const o=wE.getInstance(),l=$re(),a=typeof r=="object",p=a?r:{id:r},g=p.id,w=g??(l==null?void 0:l.vueFlowId);let y;if(l){const S=v3(p7t,null);typeof S<"u"&&S!==null&&(!w||S.id===w)&&(y=S)}if(y||w&&(y=o.get(w)),!y||w&&y.id!==w){const S=g??o.getId(),E=o.create(S,p);y=E,(l??nSt(!0)).run(()=>{Os(E.applyDefault,(M,_,R)=>{const j=q=>{E.applyNodeChanges(q)},K=q=>{E.applyEdgeChanges(q)};M?(E.onNodesChange(j),E.onEdgesChange(K)):(E.hooks.value.nodesChange.off(j),E.hooks.value.edgesChange.off(K)),R(()=>{E.hooks.value.nodesChange.off(j),E.hooks.value.edgesChange.off(K)})},{immediate:!0}),jie(()=>{if(y){const M=o.get(y.id);M?M.$destroy():Kie(`No store instance found for id ${y.id} in storage.`)}})})}else a&&y.setState(p);if(l&&(DE(p7t,y),l.vueFlowId=y.id),a){const S=UC();(S==null?void 0:S.type.name)!=="VueFlow"&&y.emits.error(new Md(qf.USEVUEFLOW_OPTIONS))}return y}function mPn(r){const{emits:o,dimensions:l}=_u();let a;bb(()=>{const p=r.value,g=()=>{if(!p)return;const w=zie(p);(w.width===0||w.height===0)&&o.error(new Md(qf.MISSING_VIEWPORT_DIMENSIONS)),l.value={width:w.width||500,height:w.height||500}};g(),window.addEventListener("resize",g),p&&(a=new ResizeObserver(()=>g()),a.observe(p)),zre(()=>{window.removeEventListener("resize",g),a&&p&&a.unobserve(p)})})}const vPn={name:"UserSelection",compatConfig:{MODE:3}},yPn=bc({...vPn,props:{userSelectionRect:{}},setup(r){return(o,l)=>(ve(),wt("div",{class:"vue-flow__selection vue-flow__container",style:A1({width:`${o.userSelectionRect.width}px`,height:`${o.userSelectionRect.height}px`,transform:`translate(${o.userSelectionRect.x}px, ${o.userSelectionRect.y}px)`})},null,4))}}),kPn=["tabIndex"],CPn={name:"NodesSelection",compatConfig:{MODE:3}},SPn=bc({...CPn,setup(r){const{emits:o,viewport:l,getSelectedNodes:a,noPanClassName:p,disableKeyboardA11y:g,userSelectionActive:w}=_u(),y=xPt(),S=Co(null),E=kPt({el:S,onStart(j){o.selectionDragStart(j)},onDrag(j){o.selectionDrag(j)},onStop(j){o.selectionDragStop(j)}});bb(()=>{var j;g.value||(j=S.value)==null||j.focus({preventScroll:!0})});const I=ho(()=>aPt(a.value)),M=ho(()=>({width:`${I.value.width}px`,height:`${I.value.height}px`,top:`${I.value.y}px`,left:`${I.value.x}px`}));function _(j){o.selectionContextMenu({event:j,nodes:a.value})}function R(j){g||b_[j.key]&&y({x:b_[j.key].x,y:b_[j.key].y},j.shiftKey)}return(j,K)=>!Lr(w)&&I.value.width&&I.value.height?(ve(),wt("div",{key:0,class:yo(["vue-flow__nodesselection vue-flow__container",Lr(p)]),style:A1({transform:`translate(${Lr(l).x}px,${Lr(l).y}px) scale(${Lr(l).zoom})`})},[ar("div",{ref_key:"el",ref:S,class:yo([{dragging:Lr(E)},"vue-flow__nodesselection-rect"]),style:A1(M.value),tabIndex:Lr(g)?void 0:-1,onContextmenu:_,onKeydown:R},null,46,kPn)],6)):rr("",!0)}});function xPn(r,o){return{x:r.clientX-o.left,y:r.clientY-o.top}}const EPn={name:"Pane",compatConfig:{MODE:3}},TPn=bc({...EPn,props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(r){const{vueFlowRef:o,nodes:l,viewport:a,emits:p,userSelectionActive:g,removeSelectedElements:w,panOnDrag:y,userSelectionRect:S,elementsSelectable:E,nodesSelectionActive:I,getSelectedEdges:M,getSelectedNodes:_,removeNodes:R,removeEdges:j,selectionMode:K,deleteKeyCode:q,multiSelectionKeyCode:Q,multiSelectionActive:Z,edgeLookup:X,nodeLookup:ie}=_u(),je=Co(null),et=Co(0),mt=Co(0),bt=Co(),ce=Co(new Map),Be=Ia(()=>E.value&&(r.isSelecting||g.value));let ae=!1,xe=!1;const U=ez(q,{actInsideInputWithModifier:!1}),He=ez(Q);Os(U,Rt=>{Rt&&(R(_.value),j(M.value),I.value=!1)}),Os(He,Rt=>{Z.value=Rt});function yt(Rt,an){return Zn=>{Zn.target===an&&(Rt==null||Rt(Zn))}}function ft(){g.value=!1,S.value=null,et.value=0,mt.value=0}function At(Rt){if(ae){ae=!1;return}p.paneClick(Rt),w(),I.value=!1}function Jt(Rt){var an;if(Array.isArray(y.value)&&((an=y.value)!=null&&an.includes(2))){Rt.preventDefault();return}p.paneContextMenu(Rt)}function un(Rt){p.paneScroll(Rt)}function kn(Rt){var an,Zn,kt,Ze,Xt;if(bt.value=(an=o.value)==null?void 0:an.getBoundingClientRect(),!E.value||!r.isSelecting||Rt.button!==0||Rt.target!==je.value||!bt.value)return;(kt=(Zn=Rt.target)==null?void 0:Zn.setPointerCapture)==null||kt.call(Zn,Rt.pointerId);const{x:Mn,y:pr}=xPn(Rt,bt.value);xe=!0,ae=!1,ce.value=new Map;for(const[ye,Ce]of X.value)ce.value.set(Ce.source,((Ze=ce.value.get(Ce.source))==null?void 0:Ze.add(ye))||new Set([ye])),ce.value.set(Ce.target,((Xt=ce.value.get(Ce.target))==null?void 0:Xt.add(ye))||new Set([ye]));w(),S.value={width:0,height:0,startX:Mn,startY:pr,x:Mn,y:pr},p.selectionStart(Rt)}function qt(Rt){if(!bt.value||!S.value)return;ae=!0;const{x:an,y:Zn}=V6(Rt,bt.value),{startX:kt=0,startY:Ze=0}=S.value,Xt={startX:kt,startY:Ze,x:an0&&(I.value=!0),ft(),p.selectionEnd(Rt),r.selectionKeyPressed&&(ae=!1),xe=!1)}return(Rt,an)=>(ve(),wt("div",{ref_key:"container",ref:je,class:yo(["vue-flow__pane vue-flow__container",{selection:Rt.isSelecting}]),onClick:an[0]||(an[0]=Zn=>Be.value?void 0:yt(At,je.value)(Zn)),onContextmenu:an[1]||(an[1]=Zn=>yt(Jt,je.value)(Zn)),onWheelPassive:an[2]||(an[2]=Zn=>yt(un,je.value)(Zn)),onPointerenter:an[3]||(an[3]=Zn=>Be.value?void 0:Lr(p).paneMouseEnter(Zn)),onPointerdown:an[4]||(an[4]=Zn=>Be.value?kn(Zn):Lr(p).paneMouseMove(Zn)),onPointermove:an[5]||(an[5]=Zn=>Be.value?qt(Zn):Lr(p).paneMouseMove(Zn)),onPointerup:an[6]||(an[6]=Zn=>Be.value?on(Zn):void 0),onPointerleave:an[7]||(an[7]=Zn=>Lr(p).paneMouseLeave(Zn))},[Nr(Rt.$slots,"default"),Lr(g)&&Lr(S)?(ve(),Cn(yPn,{key:0,"user-selection-rect":Lr(S)},null,8,["user-selection-rect"])):rr("",!0),Lr(I)&&Lr(_).length?(ve(),Cn(SPn,{key:1})):rr("",!0)],34))}}),IPn={name:"Transform",compatConfig:{MODE:3}},PPn=bc({...IPn,setup(r){const{viewport:o,fitViewOnInit:l,fitViewOnInitDone:a}=_u(),p=ho(()=>l.value?!a.value:!1),g=ho(()=>`translate(${o.value.x}px,${o.value.y}px) scale(${o.value.zoom})`);return(w,y)=>(ve(),wt("div",{class:"vue-flow__transformationpane vue-flow__container",style:A1({transform:g.value,opacity:p.value?0:void 0})},[Nr(w.$slots,"default")],4))}}),MPn={name:"Viewport",compatConfig:{MODE:3}},OPn=bc({...MPn,setup(r){const{minZoom:o,maxZoom:l,defaultViewport:a,translateExtent:p,zoomActivationKeyCode:g,selectionKeyCode:w,panActivationKeyCode:y,panOnScroll:S,panOnScrollMode:E,panOnScrollSpeed:I,panOnDrag:M,zoomOnDoubleClick:_,zoomOnPinch:R,zoomOnScroll:j,preventScrolling:K,noWheelClassName:q,noPanClassName:Q,emits:Z,connectionStartHandle:X,userSelectionActive:ie,paneDragging:je,d3Zoom:et,d3Selection:mt,d3ZoomHandler:bt,viewport:ce,viewportRef:Be,paneClickDistance:ae}=_u();mPn(Be);const xe=Co(!1),U=Co(!1);let He=null,yt=!1,ft=0,At={x:0,y:0,zoom:0};const Jt=ez(y),un=ez(w),kn=ez(g),qt=Ia(()=>(!un.value||un.value&&w.value===!0)&&(Jt.value||M.value)),on=Ia(()=>Jt.value||S.value),Rt=Ia(()=>un.value||w.value===!0&&qt.value!==!0);bb(()=>{if(!Be.value){Kie("Viewport element is missing");return}const Mn=Be.value,pr=Mn.getBoundingClientRect(),ye=nIn().clickDistance(ae.value).scaleExtent([o.value,l.value]).translateExtent(p.value),Ce=oy(Mn).call(ye),ee=Ce.on("wheel.zoom"),V=$_.translate(a.value.x??0,a.value.y??0).scale(WE(a.value.zoom??1,o.value,l.value)),oe=[[0,0],[pr.width,pr.height]],ue=ye.constrain()(V,oe,p.value);ye.transform(Ce,ue),ye.wheelDelta(Zn),et.value=ye,mt.value=Ce,bt.value=ee,ce.value={x:ue.x,y:ue.y,zoom:ue.k},ye.on("start",ge=>{var Ge;if(!ge.sourceEvent)return null;ft=ge.sourceEvent.button,xe.value=!0;const $t=Ze(ge.transform);((Ge=ge.sourceEvent)==null?void 0:Ge.type)==="mousedown"&&(je.value=!0),At=$t,Z.viewportChangeStart($t),Z.moveStart({event:ge,flowTransform:$t})}),ye.on("end",ge=>{if(!ge.sourceEvent)return null;if(xe.value=!1,je.value=!1,an(qt.value,ft??0)&&!yt&&Z.paneContextMenu(ge.sourceEvent),yt=!1,kt(At,ge.transform)){const Ge=Ze(ge.transform);At=Ge,Z.viewportChangeEnd(Ge),Z.moveEnd({event:ge,flowTransform:Ge})}}),ye.filter(ge=>{var Ge,$t,Lt;const tn=kn.value||j.value,Ct=R.value&&ge.ctrlKey,Kn=ge.button;if((qt.value===!0||Array.isArray(qt.value)&&qt.value.includes(1))&&Kn===1&&ge.type==="mousedown"&&((Ge=ge.target)!=null&&Ge.closest(".vue-flow__node")||($t=ge.target)!=null&&$t.closest(".vue-flow__edge")))return!0;if(!qt.value&&!tn&&!on.value&&!_.value&&!R.value||ie.value||!_.value&&ge.type==="dblclick"||Xt(ge,q.value)&&ge.type==="wheel"||Xt(ge,Q.value)&&(ge.type!=="wheel"||on.value&&ge.type==="wheel"&&!kn.value)||!R.value&&ge.ctrlKey&&ge.type==="wheel"||!tn&&!on.value&&!Ct&&ge.type==="wheel")return!1;if(!R&&ge.type==="touchstart"&&((Lt=ge.touches)==null?void 0:Lt.length)>1)return ge.preventDefault(),!1;if(!qt.value&&(ge.type==="mousedown"||ge.type==="touchstart")||w.value===!0&&Array.isArray(M.value)&&M.value.includes(0)&&Kn===0||Array.isArray(qt.value)&&!qt.value.includes(Kn)&&(ge.type==="mousedown"||ge.type==="touchstart"))return!1;const dn=Array.isArray(qt.value)&&qt.value.includes(Kn)||w.value===!0&&Array.isArray(qt.value)&&!qt.value.includes(0)||!Kn||Kn<=1;return(!ge.ctrlKey||ge.type==="wheel")&&dn}),Os([ie,qt],()=>{ie.value&&!xe.value?ye.on("zoom",null):ie.value||ye.on("zoom",ge=>{ce.value={x:ge.transform.x,y:ge.transform.y,zoom:ge.transform.k};const Ge=Ze(ge.transform);yt=an(qt.value,ft??0),Z.viewportChange(Ge),Z.move({event:ge,flowTransform:Ge})})},{immediate:!0}),Os([ie,on,E,kn,R,K,q],()=>{on.value&&!kn.value&&!ie.value?Ce.on("wheel.zoom",ge=>{if(Xt(ge,q.value))return!1;const Ge=kn.value||j.value,$t=R.value&&ge.ctrlKey;if(!(!K.value||on.value||Ge||$t))return!1;ge.preventDefault(),ge.stopImmediatePropagation();const tn=Ce.property("__zoom").k||1,Ct=Mre();if(ge.ctrlKey&&R.value&&Ct){const de=d3(ge),G=Zn(ge),Y=tn*2**G;ye.scaleTo(Ce,Y,de,ge);return}const Kn=ge.deltaMode===1?20:1;let dn=E.value===ZF.Vertical?0:ge.deltaX*Kn,Rn=E.value===ZF.Horizontal?0:ge.deltaY*Kn;!Ct&&ge.shiftKey&&E.value!==ZF.Vertical&&!dn&&Rn&&(dn=Rn,Rn=0),ye.translateBy(Ce,-(dn/tn)*I.value,-(Rn/tn)*I.value);const br=Ze(Ce.property("__zoom"));He&&clearTimeout(He),U.value?(Z.move({event:ge,flowTransform:br}),Z.viewportChange(br),He=setTimeout(()=>{Z.moveEnd({event:ge,flowTransform:br}),Z.viewportChangeEnd(br),U.value=!1},150)):(U.value=!0,Z.moveStart({event:ge,flowTransform:br}),Z.viewportChangeStart(br))},{passive:!1}):typeof ee<"u"&&Ce.on("wheel.zoom",function(ge,Ge){const $t=!K.value&&ge.type==="wheel"&&!ge.ctrlKey,Lt=kn.value||j.value,tn=R.value&&ge.ctrlKey;if(!Lt&&!S.value&&!tn&&ge.type==="wheel"||$t||Xt(ge,q.value))return null;ge.preventDefault(),ee.call(this,ge,Ge)},{passive:!1})},{immediate:!0})});function an(Mn,pr){return pr===2&&Array.isArray(Mn)&&Mn.includes(2)}function Zn(Mn){const pr=Mn.ctrlKey&&Mre()?10:1;return-Mn.deltaY*(Mn.deltaMode===1?.05:Mn.deltaMode?1:.002)*pr}function kt(Mn,pr){return Mn.x!==pr.x&&!Number.isNaN(pr.x)||Mn.y!==pr.y&&!Number.isNaN(pr.y)||Mn.zoom!==pr.k&&!Number.isNaN(pr.k)}function Ze(Mn){return{x:Mn.x,y:Mn.y,zoom:Mn.k}}function Xt(Mn,pr){return Mn.target.closest(`.${pr}`)}return(Mn,pr)=>(ve(),wt("div",{ref_key:"viewportRef",ref:Be,class:"vue-flow__viewport vue-flow__container"},[ai(TPn,{"is-selecting":Rt.value,"selection-key-pressed":Lr(un),class:yo({connecting:!!Lr(X),dragging:Lr(je),draggable:Lr(M)===!0||Array.isArray(Lr(M))&&Lr(M).includes(0)})},{default:ui(()=>[ai(PPn,null,{default:ui(()=>[Nr(Mn.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),_Pn=["id"],RPn=["id"],APn=["id"],LPn={name:"A11yDescriptions",compatConfig:{MODE:3}},$Pn=bc({...LPn,setup(r){const{id:o,disableKeyboardA11y:l,ariaLiveMessage:a}=_u();return(p,g)=>(ve(),wt(si,null,[ar("div",{id:`${Lr(tPt)}-${Lr(o)}`,style:{display:"none"}}," Press enter or space to select a node. "+Il(Lr(l)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,_Pn),ar("div",{id:`${Lr(nPt)}-${Lr(o)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,RPn),Lr(l)?rr("",!0):(ve(),wt("div",{key:0,id:`${Lr(sIn)}-${Lr(o)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},Il(Lr(a)),9,APn))],64))}});function jPn(){const r=_u();Os(()=>r.viewportHelper.value.viewportInitialized,o=>{o&&setTimeout(()=>{r.emits.init(r),r.emits.paneReady(r)},1)})}function DPn(r,o,l){return l===wi.Left?r-o:l===wi.Right?r+o:r}function NPn(r,o,l){return l===wi.Top?r-o:l===wi.Bottom?r+o:r}const Nxe=function({radius:r=10,centerX:o=0,centerY:l=0,position:a=wi.Top,type:p}){return Pc("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${p}`,cx:DPn(o,r,a),cy:NPn(l,r,a),r,stroke:"transparent",fill:"transparent"})};Nxe.props=["radius","centerX","centerY","position","type"];Nxe.compatConfig={MODE:3};const v7t=Nxe,BPn=bc({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(r){const{id:o,addSelectedEdges:l,connectionMode:a,edgeUpdaterRadius:p,emits:g,nodesSelectionActive:w,noPanClassName:y,getEdgeTypes:S,removeSelectedEdges:E,findEdge:I,findNode:M,isValidConnection:_,multiSelectionActive:R,disableKeyboardA11y:j,elementsSelectable:K,edgesUpdatable:q,edgesFocusable:Q,hooks:Z}=_u(),X=ho(()=>I(r.id)),{emit:ie,on:je}=_In(X.value,g),et=v3(Uie),mt=UC(),bt=Co(!1),ce=Co(!1),Be=Co(""),ae=Co(null),xe=Co("source"),U=Co(null),He=Ia(()=>typeof X.value.selectable>"u"?K.value:X.value.selectable),yt=Ia(()=>typeof X.value.updatable>"u"?q.value:X.value.updatable),ft=Ia(()=>typeof X.value.focusable>"u"?Q.value:X.value.focusable);DE(PIn,r.id),DE(MIn,U);const At=ho(()=>X.value.class instanceof Function?X.value.class(X.value):X.value.class),Jt=ho(()=>X.value.style instanceof Function?X.value.style(X.value):X.value.style),un=ho(()=>{const oe=X.value.type||"default",ue=et==null?void 0:et[`edge-${oe}`];if(ue)return ue;let ge=X.value.template??S.value[oe];if(typeof ge=="string"&&mt){const Ge=Object.keys(mt.appContext.components);Ge&&Ge.includes(oe)&&(ge=ki(oe,!1))}return ge&&typeof ge!="string"?ge:(g.error(new Md(qf.EDGE_TYPE_MISSING,ge)),!1)}),{handlePointerDown:kn}=CPt({nodeId:Be,handleId:ae,type:xe,isValidConnection:_,edgeUpdaterType:xe,onEdgeUpdate:Rt,onEdgeUpdateEnd:an});return()=>{const oe=M(X.value.source),ue=M(X.value.target),ge="pathOptions"in X.value?X.value.pathOptions:{};if(!oe&&!ue)return g.error(new Md(qf.EDGE_SOURCE_TARGET_MISSING,X.value.id,X.value.source,X.value.target)),null;if(!oe)return g.error(new Md(qf.EDGE_SOURCE_MISSING,X.value.id,X.value.source)),null;if(!ue)return g.error(new Md(qf.EDGE_TARGET_MISSING,X.value.id,X.value.target)),null;if(!X.value||X.value.hidden||oe.hidden||ue.hidden)return null;let Ge;a.value===GE.Strict?Ge=oe.handleBounds.source:Ge=[...oe.handleBounds.source||[],...oe.handleBounds.target||[]];const $t=s7t(Ge,X.value.sourceHandle);let Lt;a.value===GE.Strict?Lt=ue.handleBounds.target:Lt=[...ue.handleBounds.target||[],...ue.handleBounds.source||[]];const tn=s7t(Lt,X.value.targetHandle),Ct=($t==null?void 0:$t.position)||wi.Bottom,Kn=(tn==null?void 0:tn.position)||wi.Top,{x:dn,y:Rn}=Pre(oe,$t,Ct),{x:br,y:de}=Pre(ue,tn,Kn);return X.value.sourceX=dn,X.value.sourceY=Rn,X.value.targetX=br,X.value.targetY=de,Pc("g",{ref:U,key:r.id,"data-id":r.id,class:["vue-flow__edge",`vue-flow__edge-${un.value===!1?"default":X.value.type||"default"}`,y.value,At.value,{updating:bt.value,selected:X.value.selected,animated:X.value.animated,inactive:!He.value&&!Z.value.edgeClick.hasListeners()}],onClick:kt,onContextmenu:Ze,onDblclick:Xt,onMouseenter:Mn,onMousemove:pr,onMouseleave:ye,onKeyDown:ft.value?V:void 0,tabIndex:ft.value?0:void 0,"aria-label":X.value.ariaLabel===null?void 0:X.value.ariaLabel||`Edge from ${X.value.source} to ${X.value.target}`,"aria-describedby":ft.value?`${nPt}-${o}`:void 0,role:ft.value?"button":"img"},[ce.value?null:Pc(un.value===!1?S.value.default:un.value,{id:r.id,sourceNode:oe,targetNode:ue,source:X.value.source,target:X.value.target,type:X.value.type,updatable:yt.value,selected:X.value.selected,animated:X.value.animated,label:X.value.label,labelStyle:X.value.labelStyle,labelShowBg:X.value.labelShowBg,labelBgStyle:X.value.labelBgStyle,labelBgPadding:X.value.labelBgPadding,labelBgBorderRadius:X.value.labelBgBorderRadius,data:X.value.data,events:{...X.value.events,...je},style:Jt.value,markerStart:`url('#${Qz(X.value.markerStart,o)}')`,markerEnd:`url('#${Qz(X.value.markerEnd,o)}')`,sourcePosition:Ct,targetPosition:Kn,sourceX:dn,sourceY:Rn,targetX:br,targetY:de,sourceHandleId:X.value.sourceHandle,targetHandleId:X.value.targetHandle,interactionWidth:X.value.interactionWidth,...ge}),[yt.value==="source"||yt.value===!0?[Pc("g",{onMousedown:Ce,onMouseenter:qt,onMouseout:on},Pc(v7t,{position:Ct,centerX:dn,centerY:Rn,radius:p.value,type:"source","data-type":"source"}))]:null,yt.value==="target"||yt.value===!0?[Pc("g",{onMousedown:ee,onMouseenter:qt,onMouseout:on},Pc(v7t,{position:Kn,centerX:br,centerY:de,radius:p.value,type:"target","data-type":"target"}))]:null]])};function qt(){bt.value=!0}function on(){bt.value=!1}function Rt(oe,ue){ie.update({event:oe,edge:X.value,connection:ue})}function an(oe){ie.updateEnd({event:oe,edge:X.value}),ce.value=!1}function Zn(oe,ue){oe.button===0&&(ce.value=!0,Be.value=ue?X.value.target:X.value.source,ae.value=(ue?X.value.targetHandle:X.value.sourceHandle)??"",xe.value=ue?"target":"source",ie.updateStart({event:oe,edge:X.value}),kn(oe))}function kt(oe){var ue;const ge={event:oe,edge:X.value};He.value&&(w.value=!1,X.value.selected&&R.value?(E([X.value]),(ue=U.value)==null||ue.blur()):l([X.value])),ie.click(ge)}function Ze(oe){ie.contextMenu({event:oe,edge:X.value})}function Xt(oe){ie.doubleClick({event:oe,edge:X.value})}function Mn(oe){ie.mouseEnter({event:oe,edge:X.value})}function pr(oe){ie.mouseMove({event:oe,edge:X.value})}function ye(oe){ie.mouseLeave({event:oe,edge:X.value})}function Ce(oe){Zn(oe,!0)}function ee(oe){Zn(oe,!1)}function V(oe){var ue;!j.value&&rPt.includes(oe.key)&&He.value&&(oe.key==="Escape"?((ue=U.value)==null||ue.blur(),E([I(r.id)])):l([I(r.id)]))}}}),FPn=BPn,zPn={[wi.Left]:wi.Right,[wi.Right]:wi.Left,[wi.Top]:wi.Bottom,[wi.Bottom]:wi.Top},HPn=bc({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var r;const{id:o,connectionMode:l,connectionStartHandle:a,connectionEndHandle:p,connectionPosition:g,connectionLineType:w,connectionLineStyle:y,connectionLineOptions:S,connectionStatus:E,viewport:I,findNode:M}=_u(),_=(r=v3(Uie))==null?void 0:r["connection-line"],R=ho(()=>{var Z;return M((Z=a.value)==null?void 0:Z.nodeId)}),j=ho(()=>{var Z;return M((Z=p.value)==null?void 0:Z.nodeId)??null}),K=ho(()=>({x:(g.value.x-I.value.x)/I.value.zoom,y:(g.value.y-I.value.y)/I.value.zoom})),q=ho(()=>S.value.markerStart?`url(#${Qz(S.value.markerStart,o)})`:""),Q=ho(()=>S.value.markerEnd?`url(#${Qz(S.value.markerEnd,o)})`:"");return()=>{var Z,X,ie,je;if(!R.value||!a.value)return null;const et=a.value.handleId,mt=a.value.type,bt=R.value.handleBounds;let ce=(bt==null?void 0:bt[mt])||[];if(l.value===GE.Loose){const un=(bt==null?void 0:bt[mt==="source"?"target":"source"])||[];ce=[...ce,...un]}if(!ce)return null;const Be=(et?ce.find(un=>un.id===et):ce[0])??null,ae=(Be==null?void 0:Be.position)||wi.Top,{x:xe,y:U}=Pre(R.value,Be,ae);let He=null;j.value&&((Z=p.value)!=null&&Z.handleId)&&(l.value===GE.Strict?He=((X=j.value.handleBounds[mt==="source"?"target":"source"])==null?void 0:X.find(un=>{var kn;return un.id===((kn=p.value)==null?void 0:kn.handleId)}))||null:He=((ie=[...j.value.handleBounds.source||[],...j.value.handleBounds.target||[]])==null?void 0:ie.find(un=>{var kn;return un.id===((kn=p.value)==null?void 0:kn.handleId)}))||null);const yt=((je=p.value)==null?void 0:je.position)??(ae?zPn[ae]:null);if(!ae||!yt)return null;const ft=w.value??S.value.type??bE.Bezier;let At="";const Jt={sourceX:xe,sourceY:U,sourcePosition:ae,targetX:K.value.x,targetY:K.value.y,targetPosition:yt};return ft===bE.Bezier?[At]=Dxe(Jt):ft===bE.Step?[At]=xSe({...Jt,borderRadius:0}):ft===bE.SmoothStep?[At]=xSe(Jt):ft===bE.SimpleBezier?[At]=PPt(Jt):At=`M${xe},${U} ${K.value.x},${K.value.y}`,Pc("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},Pc("g",{class:"vue-flow__connection"},_?Pc(_,{sourceX:xe,sourceY:U,sourcePosition:ae,targetX:K.value.x,targetY:K.value.y,targetPosition:yt,sourceNode:R.value,sourceHandle:Be,targetNode:j.value,targetHandle:He,markerEnd:Q.value,markerStart:q.value,connectionStatus:E.value}):Pc("path",{d:At,class:[S.value.class,E,"vue-flow__connection-path"],style:{...y.value,...S.value.style},"marker-end":Q.value,"marker-start":q.value})))}}}),KPn=HPn,UPn=["id","markerWidth","markerHeight","markerUnits","orient"],GPn={name:"MarkerType",compatConfig:{MODE:3}},WPn=bc({...GPn,props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(r){return(o,l)=>(ve(),wt("marker",{id:o.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${o.width}`,markerHeight:`${o.height}`,markerUnits:o.markerUnits,orient:o.orient},[o.type===Lr(Ire).ArrowClosed?(ve(),wt("polyline",{key:0,style:A1({stroke:o.color,fill:o.color,strokeWidth:o.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):rr("",!0),o.type===Lr(Ire).Arrow?(ve(),wt("polyline",{key:1,style:A1({stroke:o.color,strokeWidth:o.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):rr("",!0)],8,UPn))}}),VPn={class:"vue-flow__marker vue-flow__container"},qPn={name:"MarkerDefinitions",compatConfig:{MODE:3}},XPn=bc({...qPn,setup(r){const{id:o,edges:l,connectionLineOptions:a,defaultMarkerColor:p}=_u(),g=ho(()=>{const w=new Set,y=[],S=E=>{if(E){const I=Qz(E,o);w.has(I)||(typeof E=="object"?y.push({...E,id:I,color:E.color||p.value}):y.push({id:I,color:p.value,type:E}),w.add(I))}};for(const E of[a.value.markerEnd,a.value.markerStart])S(E);for(const E of l.value)for(const I of[E.markerStart,E.markerEnd])S(I);return y.sort((E,I)=>E.id.localeCompare(I.id))});return(w,y)=>(ve(),wt("svg",VPn,[ar("defs",null,[(ve(!0),wt(si,null,Mu(g.value,S=>(ve(),Cn(WPn,{id:S.id,key:S.id,type:S.type,color:S.color,width:S.width,height:S.height,markerUnits:S.markerUnits,"stroke-width":S.strokeWidth,orient:S.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),YPn={name:"Edges",compatConfig:{MODE:3}},JPn=bc({...YPn,setup(r){const{findNode:o,getEdges:l,elevateEdgesOnSelect:a}=_u();return(p,g)=>(ve(),wt(si,null,[ai(XPn),(ve(!0),wt(si,null,Mu(Lr(l),w=>(ve(),wt("svg",{key:w.id,class:"vue-flow__edges vue-flow__container",style:A1({zIndex:Lr(yIn)(w,Lr(o),Lr(a))})},[ai(Lr(FPn),{id:w.id},null,8,["id"])],4))),128)),ai(Lr(KPn))],64))}}),QPn=bc({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(r){const{id:o,noPanClassName:l,selectNodesOnDrag:a,nodesSelectionActive:p,multiSelectionActive:g,emits:w,removeSelectedNodes:y,addSelectedNodes:S,updateNodeDimensions:E,onUpdateNodeInternals:I,getNodeTypes:M,nodeExtent:_,elevateNodesOnSelect:R,disableKeyboardA11y:j,ariaLiveMessage:K,snapToGrid:q,snapGrid:Q,nodeDragThreshold:Z,nodesDraggable:X,elementsSelectable:ie,nodesConnectable:je,nodesFocusable:et,hooks:mt}=_u(),bt=Co(null);DE(yPt,bt),DE(vPt,r.id);const ce=v3(Uie),Be=UC(),ae=xPt(),{node:xe,parentNode:U}=SPt(r.id),{emit:He,on:yt}=$In(xe,w),ft=Ia(()=>typeof xe.draggable>"u"?X.value:xe.draggable),At=Ia(()=>typeof xe.selectable>"u"?ie.value:xe.selectable),Jt=Ia(()=>typeof xe.connectable>"u"?je.value:xe.connectable),un=Ia(()=>typeof xe.focusable>"u"?et.value:xe.focusable),kn=Ia(()=>At.value||ft.value||mt.value.nodeClick.hasListeners()||mt.value.nodeDoubleClick.hasListeners()||mt.value.nodeMouseEnter.hasListeners()||mt.value.nodeMouseMove.hasListeners()||mt.value.nodeMouseLeave.hasListeners()),qt=Ia(()=>!!xe.dimensions.width&&!!xe.dimensions.height),on=ho(()=>{const ue=xe.type||"default",ge=ce==null?void 0:ce[`node-${ue}`];if(ge)return ge;let Ge=xe.template||M.value[ue];if(typeof Ge=="string"&&Be){const $t=Object.keys(Be.appContext.components);$t&&$t.includes(ue)&&(Ge=ki(ue,!1))}return Ge&&typeof Ge!="string"?Ge:(w.error(new Md(qf.NODE_TYPE_MISSING,Ge)),!1)}),Rt=kPt({id:r.id,el:bt,disabled:()=>!ft.value,selectable:At,dragHandle:()=>xe.dragHandle,onStart(ue){He.dragStart(ue)},onDrag(ue){He.drag(ue)},onStop(ue){He.dragStop(ue)},onClick(ue){V(ue)}}),an=ho(()=>xe.class instanceof Function?xe.class(xe):xe.class),Zn=ho(()=>{const ue=(xe.style instanceof Function?xe.style(xe):xe.style)||{},ge=xe.width instanceof Function?xe.width(xe):xe.width,Ge=xe.height instanceof Function?xe.height(xe):xe.height;return!ue.width&&ge&&(ue.width=typeof ge=="string"?ge:`${ge}px`),!ue.height&&Ge&&(ue.height=typeof Ge=="string"?Ge:`${Ge}px`),ue}),kt=Ia(()=>Number(xe.zIndex??Zn.value.zIndex??0));return I(ue=>{(ue.includes(r.id)||!ue.length)&&Xt()}),bb(()=>{Os(()=>xe.hidden,(ue=!1,ge,Ge)=>{!ue&&bt.value&&(r.resizeObserver.observe(bt.value),Ge(()=>{bt.value&&r.resizeObserver.unobserve(bt.value)}))},{immediate:!0,flush:"post"})}),Os([()=>xe.type,()=>xe.sourcePosition,()=>xe.targetPosition],()=>{om(()=>{E([{id:r.id,nodeElement:bt.value,forceUpdate:!0}])})}),Os([()=>xe.position.x,()=>xe.position.y,()=>{var ue;return(ue=U.value)==null?void 0:ue.computedPosition.x},()=>{var ue;return(ue=U.value)==null?void 0:ue.computedPosition.y},()=>{var ue;return(ue=U.value)==null?void 0:ue.computedPosition.z},kt,()=>xe.selected,()=>xe.dimensions.height,()=>xe.dimensions.width,()=>{var ue;return(ue=U.value)==null?void 0:ue.dimensions.height},()=>{var ue;return(ue=U.value)==null?void 0:ue.dimensions.width}],([ue,ge,Ge,$t,Lt,tn])=>{const Ct={x:ue,y:ge,z:tn+(R.value&&xe.selected?1e3:0)};typeof Ge<"u"&&typeof $t<"u"?xe.computedPosition=pIn({x:Ge,y:$t,z:Lt},Ct):xe.computedPosition=Ct},{flush:"post",immediate:!0}),Os([()=>xe.extent,_],([ue,ge],[Ge,$t])=>{(ue!==Ge||ge!==$t)&&Ze()}),xe.extent==="parent"||typeof xe.extent=="object"&&"range"in xe.extent&&xe.extent.range==="parent"?fSe(()=>qt).toBe(!0).then(Ze):Ze(),()=>xe.hidden?null:Pc("div",{ref:bt,"data-id":xe.id,class:["vue-flow__node",`vue-flow__node-${on.value===!1?"default":xe.type||"default"}`,{[l.value]:ft.value,dragging:Rt==null?void 0:Rt.value,draggable:ft.value,selected:xe.selected,selectable:At.value,parent:xe.isParent},an.value],style:{visibility:qt.value?"visible":"hidden",zIndex:xe.computedPosition.z??kt.value,transform:`translate(${xe.computedPosition.x}px,${xe.computedPosition.y}px)`,pointerEvents:kn.value?"all":"none",...Zn.value},tabIndex:un.value?0:void 0,role:un.value?"button":void 0,"aria-describedby":j.value?void 0:`${tPt}-${o}`,"aria-label":xe.ariaLabel,onMouseenter:Mn,onMousemove:pr,onMouseleave:ye,onContextmenu:Ce,onClick:V,onDblclick:ee,onKeydown:oe},[Pc(on.value===!1?M.value.default:on.value,{id:xe.id,type:xe.type,data:xe.data,events:{...xe.events,...yt},selected:xe.selected,resizing:xe.resizing,dragging:Rt.value,connectable:Jt.value,position:xe.computedPosition,dimensions:xe.dimensions,isValidTargetPos:xe.isValidTargetPos,isValidSourcePos:xe.isValidSourcePos,parent:xe.parentNode,parentNodeId:xe.parentNode,zIndex:xe.computedPosition.z??kt.value,targetPosition:xe.targetPosition,sourcePosition:xe.sourcePosition,label:xe.label,dragHandle:xe.dragHandle,onUpdateNodeInternals:Xt})]);function Ze(){const ue=xe.computedPosition,{computedPosition:ge,position:Ge}=Lxe(xe,q.value?Hie(ue,Q.value):ue,w.error,_.value,U.value);(xe.computedPosition.x!==ge.x||xe.computedPosition.y!==ge.y)&&(xe.computedPosition={...xe.computedPosition,...ge}),(xe.position.x!==Ge.x||xe.position.y!==Ge.y)&&(xe.position=Ge)}function Xt(){bt.value&&E([{id:r.id,nodeElement:bt.value,forceUpdate:!0}])}function Mn(ue){Rt!=null&&Rt.value||He.mouseEnter({event:ue,node:xe})}function pr(ue){Rt!=null&&Rt.value||He.mouseMove({event:ue,node:xe})}function ye(ue){Rt!=null&&Rt.value||He.mouseLeave({event:ue,node:xe})}function Ce(ue){return He.contextMenu({event:ue,node:xe})}function ee(ue){return He.doubleClick({event:ue,node:xe})}function V(ue){At.value&&(!a.value||!ft.value||Z.value>0)&&SSe(xe,g.value,S,y,p,!1,bt.value),He.click({event:ue,node:xe})}function oe(ue){if(!(ySe(ue)||j.value))if(rPt.includes(ue.key)&&At.value){const ge=ue.key==="Escape";SSe(xe,g.value,S,y,p,ge,bt.value)}else ft.value&&xe.selected&&b_[ue.key]&&(K.value=`Moved selected node ${ue.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~xe.position.x}, y: ${~~xe.position.y}`,ae({x:b_[ue.key].x,y:b_[ue.key].y},ue.shiftKey))}}}),ZPn=QPn;function eMn(r={includeHiddenNodes:!1}){const{nodes:o}=_u();return ho(()=>{if(o.value.length===0)return!1;for(const l of o.value)if((r.includeHiddenNodes||!l.hidden)&&((l==null?void 0:l.handleBounds)===void 0||l.dimensions.width===0||l.dimensions.height===0))return!1;return!0})}const tMn={class:"vue-flow__nodes vue-flow__container"},nMn={name:"Nodes",compatConfig:{MODE:3}},rMn=bc({...nMn,setup(r){const{getNodes:o,updateNodeDimensions:l,emits:a}=_u(),p=eMn(),g=Co();return Os(p,w=>{w&&om(()=>{a.nodesInitialized(o.value)})},{immediate:!0}),bb(()=>{g.value=new ResizeObserver(w=>{const y=w.map(S=>({id:S.target.getAttribute("data-id"),nodeElement:S.target,forceUpdate:!0}));om(()=>l(y))})}),zre(()=>{var w;return(w=g.value)==null?void 0:w.disconnect()}),(w,y)=>(ve(),wt("div",tMn,[g.value?(ve(!0),wt(si,{key:0},Mu(Lr(o),(S,E,I,M)=>{const _=[S.id];if(M&&M.key===S.id&&fhn(M,_))return M;const R=(ve(),Cn(Lr(ZPn),{id:S.id,key:S.id,"resize-observer":g.value},null,8,["id","resize-observer"]));return R.memo=_,R},y,0),128)):rr("",!0)]))}});function iMn(){const{emits:r}=_u();bb(()=>{if(mPt()){const o=document.querySelector(".vue-flow__pane");o&&window.getComputedStyle(o).zIndex!=="1"&&r.error(new Md(qf.MISSING_STYLES))}})}const oMn=ar("div",{class:"vue-flow__edge-labels"},null,-1),sMn={name:"VueFlow",compatConfig:{MODE:3}},lMn=bc({...sMn,props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(r,{expose:o,emit:l}){const a=r,p=Tdn(),g=HCe(a,"modelValue",l),w=HCe(a,"nodes",l),y=HCe(a,"edges",l),S=_u(a),E=NIn({modelValue:g,nodes:w,edges:y},a,S);return FIn(l,S.hooks),jPn(),iMn(),DE(Uie,p),Hre(()=>{E()}),o(S),(I,M)=>(ve(),wt("div",{ref:Lr(S).vueFlowRef,class:"vue-flow"},[ai(OPn,null,{default:ui(()=>[ai(JPn),oMn,ai(rMn),Nr(I.$slots,"zoom-pane")]),_:3}),Nr(I.$slots,"default"),ai($Pn)],512))}});function y7t(r,o){const{dimensions:{width:l,height:a},computedPosition:p}=r,g=o.computedPosition,w=l/2,y=a/2,S=p.x+w,E=p.y+y,I=g.x+w,M=g.y+y,_=(I-S)/(2*w)-(M-E)/(2*y),R=(I-S)/(2*w)+(M-E)/(2*y),j=1/(Math.abs(_)+Math.abs(R)),K=j*_,q=j*R,Q=w*(K+q)+S,Z=y*(-K+q)+E;return{x:Q,y:Z}}function k7t(r,o){const l={...r.computedPosition,...r.dimensions},a=Math.round(l.x),p=Math.round(l.y),g=Math.round(o.x),w=Math.round(o.y);return g<=a+1?wi.Left:g>=a+l.width-1?wi.Right:w<=p+1?wi.Top:w>=l.y+l.height-1?wi.Bottom:wi.Top}function cMn(r,o){const l=y7t(r,o),a=y7t(o,r),p=k7t(r,l),g=k7t(o,a);return{sx:l.x,sy:l.y,tx:a.x,ty:a.y,sourcePos:p,targetPos:g}}const uMn=bc({__name:"FloatingEdge",props:{id:{},source:{},target:{},markerEndId:{},sourceNode:{},targetNode:{},style:{},markerEnd:{},markerStart:{},type:{},label:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{}},setup(r){const o=r,l=ho(()=>cMn(o.sourceNode,o.targetNode)),a=ho(()=>{if(!l.value.sx)return"";const p=o.sourceX(ve(),Cn(Lr(NH),{id:p.id,path:a.value[0],"marker-start":p.markerStart,"marker-end":p.markerEnd,style:A1(p.style)},null,8,["id","path","marker-start","marker-end","style"]))}});function hne(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var OPt={exports:{}};(function(r,o){(function(l){r.exports=l()})(function(){return function(){function l(a,p,g){function w(E,I){if(!p[E]){if(!a[E]){var M=typeof hne=="function"&&hne;if(!I&&M)return M(E,!0);if(y)return y(E,!0);var _=new Error("Cannot find module '"+E+"'");throw _.code="MODULE_NOT_FOUND",_}var R=p[E]={exports:{}};a[E][0].call(R.exports,function(j){var K=a[E][1][j];return w(K||j)},R,R.exports,l,a,p,g)}return p[E].exports}for(var y=typeof hne=="function"&&hne,S=0;S0&&arguments[0]!==void 0?arguments[0]:{},_=M.defaultLayoutOptions,R=_===void 0?{}:_,j=M.algorithms,K=j===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:j,q=M.workerFactory,Q=M.workerUrl;if(w(this,E),this.defaultLayoutOptions=R,this.initialized=!1,typeof Q>"u"&&typeof q>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Z=q;typeof Q<"u"&&typeof q>"u"&&(Z=function(je){return new Worker(je)});var X=Z(Q);if(typeof X.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new S(X),this.worker.postMessage({cmd:"register",algorithms:K}).then(function(ie){return I.initialized=!0}).catch(console.err)}return g(E,[{key:"layout",value:function(M){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=_.layoutOptions,j=R===void 0?this.defaultLayoutOptions:R,K=_.logging,q=K===void 0?!1:K,Q=_.measureExecutionTime,Z=Q===void 0?!1:Q;return M?this.worker.postMessage({cmd:"layout",graph:M,layoutOptions:j,options:{logging:q,measureExecutionTime:Z}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),E}();p.default=y;var S=function(){function E(I){var M=this;if(w(this,E),I===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=I,this.worker.onmessage=function(_){setTimeout(function(){M.receive(M,_)},0)}}return g(E,[{key:"postMessage",value:function(M){var _=this.id||0;this.id=_+1,M.id=_;var R=this;return new Promise(function(j,K){R.resolvers[_]=function(q,Q){q?(R.convertGwtStyleError(q),K(q)):j(Q)},R.worker.postMessage(M)})}},{key:"receive",value:function(M,_){var R=_.data,j=M.resolvers[R.id];j&&(delete M.resolvers[R.id],R.error?j(R.error):j(null,R.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(M){if(M){var _=M.__java$exception;_&&(_.cause&&_.cause.backingJsObject&&(M.cause=_.cause.backingJsObject,this.convertGwtStyleError(M.cause)),delete M.__java$exception)}}}]),E}()},{}],2:[function(l,a,p){(function(g){(function(){var w;typeof window<"u"?w=window:typeof g<"u"?w=g:typeof self<"u"&&(w=self);var y;function S(){}function E(){}function I(){}function M(){}function _(){}function R(){}function j(){}function K(){}function q(){}function Q(){}function Z(){}function X(){}function ie(){}function je(){}function et(){}function mt(){}function bt(){}function ce(){}function Be(){}function ae(){}function xe(){}function U(){}function He(){}function yt(){}function ft(){}function At(){}function Jt(){}function un(){}function kn(){}function qt(){}function on(){}function Rt(){}function an(){}function Zn(){}function kt(){}function Ze(){}function Xt(){}function Mn(){}function pr(){}function ye(){}function Ce(){}function ee(){}function V(){}function oe(){}function ue(){}function ge(){}function Ge(){}function $t(){}function Lt(){}function tn(){}function Ct(){}function Kn(){}function dn(){}function Rn(){}function br(){}function de(){}function G(){}function Y(){}function De(){}function gt(){}function Kt(){}function Ut(){}function so(){}function rl(){}function Ro(){}function Ao(){}function zs(){}function by(){}function oT(){}function L3(){}function _d(){}function YC(){}function sT(){}function $1(){}function JC(){}function Ne(){}function Xe(){}function Pr(){}function Cr(){}function Gr(){}function lu(){}function Rd(){}function Jg(){}function mb(){}function ck(){}function $3(){}function j1(){}function wy(){}function uk(){}function j3(){}function ak(){}function Fp(){}function Qg(){}function zp(){}function lT(){}function BH(){}function QC(){}function cT(){}function ZC(){}function Y_(){}function we(){}function We(){}function En(){}function fr(){}function xo(){}function _s(){}function tc(){}function Ad(){}function Zg(){}function FH(){}function Uxe(){}function Gxe(){}function Wxe(){}function Vxe(){}function qxe(){}function qie(){}function Xxe(){}function Yxe(){}function Xie(){}function Jxe(){}function Qxe(){}function Zxe(){}function eEe(){}function tEe(){}function nEe(){}function rEe(){}function iEe(){}function oEe(){}function sEe(){}function lEe(){}function cEe(){}function uEe(){}function zH(){}function aEe(){}function fEe(){}function dEe(){}function hEe(){}function pEe(){}function gEe(){}function bEe(){}function wEe(){}function mEe(){}function Yie(){}function Jie(){}function vEe(){}function yEe(){}function kEe(){}function CEe(){}function SEe(){}function xEe(){}function EEe(){}function TEe(){}function IEe(){}function PEe(){}function MEe(){}function OEe(){}function _Ee(){}function REe(){}function AEe(){}function LEe(){}function $Ee(){}function jEe(){}function DEe(){}function NEe(){}function BEe(){}function FEe(){}function zEe(){}function HEe(){}function KEe(){}function UEe(){}function GEe(){}function WEe(){}function VEe(){}function qEe(){}function XEe(){}function YEe(){}function JEe(){}function QEe(){}function ZEe(){}function eTe(){}function tTe(){}function nTe(){}function rTe(){}function iTe(){}function oTe(){}function sTe(){}function lTe(){}function cTe(){}function uTe(){}function aTe(){}function fTe(){}function dTe(){}function hTe(){}function pTe(){}function gTe(){}function bTe(){}function wTe(){}function mTe(){}function vTe(){}function yTe(){}function kTe(){}function CTe(){}function STe(){}function xTe(){}function ETe(){}function TTe(){}function ITe(){}function PTe(){}function MTe(){}function OTe(){}function _Te(){}function RTe(){}function ATe(){}function LTe(){}function $Te(){}function jTe(){}function DTe(){}function NTe(){}function BTe(){}function FTe(){}function zTe(){}function HTe(){}function KTe(){}function UTe(){}function GTe(){}function WTe(){}function VTe(){}function qTe(){}function XTe(){}function YTe(){}function JTe(){}function QTe(){}function ZTe(){}function eIe(){}function tIe(){}function nIe(){}function rIe(){}function iIe(){}function oIe(){}function sIe(){}function lIe(){}function cIe(){}function uIe(){}function aIe(){}function Qie(){}function fIe(){}function dIe(){}function hIe(){}function pIe(){}function gIe(){}function bIe(){}function wIe(){}function mIe(){}function vIe(){}function yIe(){}function kIe(){}function CIe(){}function SIe(){}function xIe(){}function EIe(){}function TIe(){}function IIe(){}function PIe(){}function MIe(){}function OIe(){}function _Ie(){}function RIe(){}function AIe(){}function LIe(){}function $Ie(){}function jIe(){}function DIe(){}function NIe(){}function BIe(){}function FIe(){}function zIe(){}function HIe(){}function KIe(){}function UIe(){}function GIe(){}function WIe(){}function VIe(){}function qIe(){}function XIe(){}function YIe(){}function JIe(){}function QIe(){}function ZIe(){}function ePe(){}function tPe(){}function nPe(){}function rPe(){}function iPe(){}function oPe(){}function sPe(){}function lPe(){}function cPe(){}function uPe(){}function aPe(){}function fPe(){}function dPe(){}function hPe(){}function pPe(){}function gPe(){}function bPe(){}function wPe(){}function mPe(){}function vPe(){}function yPe(){}function kPe(){}function CPe(){}function SPe(){}function xPe(){}function EPe(){}function TPe(){}function IPe(){}function PPe(){}function MPe(){}function Zie(){}function OPe(){}function _Pe(){}function RPe(){}function APe(){}function LPe(){}function $Pe(){}function jPe(){}function DPe(){}function NPe(){}function BPe(){}function eoe(){}function FPe(){}function zPe(){}function HPe(){}function KPe(){}function UPe(){}function GPe(){}function toe(){}function noe(){}function WPe(){}function roe(){}function ioe(){}function VPe(){}function qPe(){}function XPe(){}function YPe(){}function JPe(){}function QPe(){}function ZPe(){}function eMe(){}function tMe(){}function nMe(){}function rMe(){}function ooe(){}function iMe(){}function oMe(){}function sMe(){}function lMe(){}function cMe(){}function uMe(){}function aMe(){}function fMe(){}function dMe(){}function hMe(){}function pMe(){}function gMe(){}function bMe(){}function wMe(){}function mMe(){}function vMe(){}function yMe(){}function kMe(){}function CMe(){}function SMe(){}function xMe(){}function EMe(){}function TMe(){}function IMe(){}function PMe(){}function MMe(){}function OMe(){}function _Me(){}function RMe(){}function AMe(){}function LMe(){}function $Me(){}function jMe(){}function DMe(){}function NMe(){}function BMe(){}function FMe(){}function zMe(){}function HMe(){}function KMe(){}function UMe(){}function GMe(){}function WMe(){}function VMe(){}function qMe(){}function XMe(){}function YMe(){}function JMe(){}function QMe(){}function ZMe(){}function eOe(){}function tOe(){}function nOe(){}function rOe(){}function iOe(){}function oOe(){}function sOe(){}function lOe(){}function cOe(){}function uOe(){}function aOe(){}function fOe(){}function dOe(){}function hOe(){}function pOe(){}function gOe(){}function bOe(){}function wOe(){}function mOe(){}function vOe(){}function yOe(){}function kOe(){}function COe(){}function SOe(){}function xOe(){}function EOe(){}function TOe(){}function IOe(){}function POe(){}function MOe(){}function OOe(){}function _Oe(){}function ROe(){}function AOe(){}function LOe(){}function $Oe(){}function vMt(){}function jOe(){}function DOe(){}function NOe(){}function BOe(){}function FOe(){}function zOe(){}function HOe(){}function KOe(){}function UOe(){}function GOe(){}function WOe(){}function VOe(){}function qOe(){}function XOe(){}function YOe(){}function JOe(){}function QOe(){}function ZOe(){}function e_e(){}function t_e(){}function n_e(){}function r_e(){}function i_e(){}function o_e(){}function s_e(){}function l_e(){}function c_e(){}function HH(){}function KH(){}function u_e(){}function UH(){}function a_e(){}function f_e(){}function d_e(){}function h_e(){}function p_e(){}function g_e(){}function b_e(){}function w_e(){}function m_e(){}function v_e(){}function soe(){}function y_e(){}function k_e(){}function C_e(){}function yMt(){}function S_e(){}function x_e(){}function E_e(){}function T_e(){}function I_e(){}function P_e(){}function M_e(){}function e0(){}function O_e(){}function D3(){}function loe(){}function __e(){}function R_e(){}function A_e(){}function L_e(){}function $_e(){}function j_e(){}function D_e(){}function N_e(){}function B_e(){}function F_e(){}function z_e(){}function H_e(){}function K_e(){}function U_e(){}function G_e(){}function W_e(){}function V_e(){}function q_e(){}function X_e(){}function tt(){}function Y_e(){}function J_e(){}function Q_e(){}function Z_e(){}function eRe(){}function tRe(){}function nRe(){}function rRe(){}function iRe(){}function oRe(){}function sRe(){}function lRe(){}function cRe(){}function GH(){}function uRe(){}function aRe(){}function fRe(){}function J_(){}function dRe(){}function WH(){}function Q_(){}function hRe(){}function coe(){}function pRe(){}function gRe(){}function bRe(){}function wRe(){}function mRe(){}function vRe(){}function Z_(){}function yRe(){}function kRe(){}function eR(){}function CRe(){}function tR(){}function SRe(){}function uoe(){}function xRe(){}function VH(){}function aoe(){}function ERe(){}function TRe(){}function IRe(){}function PRe(){}function kMt(){}function MRe(){}function ORe(){}function _Re(){}function RRe(){}function ARe(){}function LRe(){}function $Re(){}function jRe(){}function DRe(){}function NRe(){}function fk(){}function qH(){}function BRe(){}function FRe(){}function zRe(){}function HRe(){}function KRe(){}function URe(){}function GRe(){}function WRe(){}function VRe(){}function qRe(){}function XRe(){}function YRe(){}function JRe(){}function QRe(){}function ZRe(){}function eAe(){}function tAe(){}function nAe(){}function rAe(){}function iAe(){}function oAe(){}function sAe(){}function lAe(){}function cAe(){}function uAe(){}function aAe(){}function fAe(){}function dAe(){}function hAe(){}function pAe(){}function gAe(){}function bAe(){}function wAe(){}function mAe(){}function vAe(){}function yAe(){}function kAe(){}function CAe(){}function SAe(){}function xAe(){}function EAe(){}function TAe(){}function IAe(){}function PAe(){}function MAe(){}function OAe(){}function _Ae(){}function RAe(){}function AAe(){}function LAe(){}function $Ae(){}function jAe(){}function DAe(){}function NAe(){}function BAe(){}function FAe(){}function zAe(){}function HAe(){}function KAe(){}function UAe(){}function GAe(){}function WAe(){}function VAe(){}function qAe(){}function XAe(){}function YAe(){}function JAe(){}function QAe(){}function ZAe(){}function eLe(){}function tLe(){}function nLe(){}function rLe(){}function iLe(){}function oLe(){}function sLe(){}function lLe(){}function cLe(){}function uLe(){}function aLe(){}function fLe(){}function dLe(){}function hLe(){}function pLe(){}function gLe(){}function bLe(){}function wLe(){}function mLe(){}function vLe(){}function yLe(){}function kLe(){}function CLe(){}function SLe(){}function xLe(){}function ELe(){}function TLe(){}function ILe(){}function PLe(){}function MLe(){}function OLe(){}function _Le(){}function foe(){}function RLe(){}function ALe(){}function XH(){l7()}function LLe(){ST()}function $Le(){H$()}function jLe(){tV()}function DLe(){RS()}function NLe(){v1e()}function BLe(){uf()}function FLe(){Mhe()}function zLe(){uP()}function HLe(){xT()}function KLe(){QT()}function ULe(){bHe()}function GLe(){x4()}function WLe(){UJe()}function VLe(){Pfe()}function qLe(){RXe()}function XLe(){Mfe()}function YLe(){kQe()}function JLe(){_Xe()}function QLe(){k5()}function ZLe(){iet()}function e$e(){ret()}function t$e(){IYe()}function n$e(){oet()}function r$e(){fg()}function i$e(){MR()}function o$e(){mge()}function s$e(){Ue()}function l$e(){set()}function c$e(){$et()}function u$e(){AXe()}function a$e(){sit()}function f$e(){LXe()}function d$e(){yct()}function h$e(){Y1e()}function p$e(){u1()}function g$e(){knt()}function b$e(){sl()}function w$e(){KXe()}function m$e(){S4()}function v$e(){Rpe()}function y$e(){dg()}function k$e(){Ape()}function C$e(){ud()}function S$e(){pP()}function x$e(){Iq()}function E$e(){jV()}function If(){vWe()}function T$e(){PL()}function I$e(){q$()}function doe(){gr()}function P$e(){a$()}function M$e(){ohe()}function hoe(){jW()}function poe(){bj()}function O$e(){Upe()}function goe(e){sn(e)}function _$e(e){this.a=e}function nR(e){this.a=e}function R$e(e){this.a=e}function A$e(e){this.a=e}function L$e(e){this.a=e}function $$e(e){this.a=e}function j$e(e){this.a=e}function D$e(e){this.a=e}function boe(e){this.a=e}function woe(e){this.a=e}function N$e(e){this.a=e}function B$e(e){this.a=e}function YH(e){this.a=e}function F$e(e){this.a=e}function z$e(e){this.a=e}function JH(e){this.a=e}function QH(e){this.a=e}function H$e(e){this.a=e}function ZH(e){this.a=e}function K$e(e){this.a=e}function U$e(e){this.a=e}function G$e(e){this.a=e}function moe(e){this.b=e}function W$e(e){this.c=e}function V$e(e){this.a=e}function q$e(e){this.a=e}function X$e(e){this.a=e}function Y$e(e){this.a=e}function J$e(e){this.a=e}function Q$e(e){this.a=e}function Z$e(e){this.a=e}function eje(e){this.a=e}function tje(e){this.a=e}function nje(e){this.a=e}function rje(e){this.a=e}function ije(e){this.a=e}function oje(e){this.a=e}function voe(e){this.a=e}function yoe(e){this.a=e}function rR(e){this.a=e}function uT(e){this.a=e}function t0(){this.a=[]}function sje(e,t){e.a=t}function CMt(e,t){e.a=t}function SMt(e,t){e.b=t}function xMt(e,t){e.b=t}function EMt(e,t){e.b=t}function koe(e,t){e.j=t}function TMt(e,t){e.g=t}function IMt(e,t){e.i=t}function PMt(e,t){e.c=t}function MMt(e,t){e.c=t}function OMt(e,t){e.d=t}function _Mt(e,t){e.d=t}function n0(e,t){e.k=t}function RMt(e,t){e.c=t}function Coe(e,t){e.c=t}function Soe(e,t){e.a=t}function AMt(e,t){e.a=t}function LMt(e,t){e.f=t}function $Mt(e,t){e.a=t}function jMt(e,t){e.b=t}function eK(e,t){e.d=t}function iR(e,t){e.i=t}function xoe(e,t){e.o=t}function DMt(e,t){e.r=t}function NMt(e,t){e.a=t}function BMt(e,t){e.b=t}function lje(e,t){e.e=t}function FMt(e,t){e.f=t}function Eoe(e,t){e.g=t}function zMt(e,t){e.e=t}function HMt(e,t){e.f=t}function KMt(e,t){e.f=t}function tK(e,t){e.a=t}function nK(e,t){e.b=t}function UMt(e,t){e.n=t}function GMt(e,t){e.a=t}function WMt(e,t){e.c=t}function VMt(e,t){e.c=t}function qMt(e,t){e.c=t}function XMt(e,t){e.a=t}function YMt(e,t){e.a=t}function JMt(e,t){e.d=t}function QMt(e,t){e.d=t}function ZMt(e,t){e.e=t}function eOt(e,t){e.e=t}function tOt(e,t){e.g=t}function nOt(e,t){e.f=t}function rOt(e,t){e.j=t}function iOt(e,t){e.a=t}function oOt(e,t){e.a=t}function sOt(e,t){e.b=t}function cje(e){e.b=e.a}function uje(e){e.c=e.d.d}function Toe(e){this.a=e}function Ioe(e){this.a=e}function Poe(e){this.a=e}function r0(e){this.a=e}function i0(e){this.a=e}function aT(e){this.a=e}function aje(e){this.a=e}function Moe(e){this.a=e}function fT(e){this.a=e}function oR(e){this.a=e}function Yh(e){this.a=e}function wm(e){this.a=e}function fje(e){this.a=e}function dje(e){this.a=e}function rK(e){this.b=e}function dk(e){this.b=e}function hk(e){this.b=e}function iK(e){this.a=e}function hje(e){this.a=e}function oK(e){this.c=e}function N(e){this.c=e}function pje(e){this.c=e}function e7(e){this.d=e}function Ooe(e){this.a=e}function Wn(e){this.a=e}function gje(e){this.a=e}function _oe(e){this.a=e}function Roe(e){this.a=e}function Aoe(e){this.a=e}function Loe(e){this.a=e}function $oe(e){this.a=e}function joe(e){this.a=e}function pk(e){this.a=e}function bje(e){this.a=e}function wje(e){this.a=e}function gk(e){this.a=e}function mje(e){this.a=e}function vje(e){this.a=e}function yje(e){this.a=e}function kje(e){this.a=e}function Cje(e){this.a=e}function Sje(e){this.a=e}function xje(e){this.a=e}function Eje(e){this.a=e}function Tje(e){this.a=e}function Ije(e){this.a=e}function Pje(e){this.a=e}function Mje(e){this.a=e}function Oje(e){this.a=e}function _je(e){this.a=e}function Rje(e){this.a=e}function t7(e){this.a=e}function Aje(e){this.a=e}function Lje(e){this.a=e}function $je(e){this.a=e}function jje(e){this.a=e}function sR(e){this.a=e}function Dje(e){this.a=e}function Nje(e){this.a=e}function bk(e){this.a=e}function Doe(e){this.a=e}function Bje(e){this.a=e}function Fje(e){this.a=e}function zje(e){this.a=e}function Hje(e){this.a=e}function Kje(e){this.a=e}function Uje(e){this.a=e}function Noe(e){this.a=e}function Boe(e){this.a=e}function Foe(e){this.a=e}function n7(e){this.a=e}function lR(e){this.e=e}function wk(e){this.a=e}function Gje(e){this.a=e}function N3(e){this.a=e}function zoe(e){this.a=e}function Wje(e){this.a=e}function Vje(e){this.a=e}function qje(e){this.a=e}function Xje(e){this.a=e}function Yje(e){this.a=e}function Jje(e){this.a=e}function Qje(e){this.a=e}function Zje(e){this.a=e}function eDe(e){this.a=e}function tDe(e){this.a=e}function nDe(e){this.a=e}function Hoe(e){this.a=e}function rDe(e){this.a=e}function iDe(e){this.a=e}function oDe(e){this.a=e}function sDe(e){this.a=e}function lDe(e){this.a=e}function cDe(e){this.a=e}function uDe(e){this.a=e}function aDe(e){this.a=e}function fDe(e){this.a=e}function dDe(e){this.a=e}function hDe(e){this.a=e}function pDe(e){this.a=e}function gDe(e){this.a=e}function bDe(e){this.a=e}function wDe(e){this.a=e}function mDe(e){this.a=e}function vDe(e){this.a=e}function yDe(e){this.a=e}function kDe(e){this.a=e}function CDe(e){this.a=e}function SDe(e){this.a=e}function xDe(e){this.a=e}function EDe(e){this.a=e}function TDe(e){this.a=e}function IDe(e){this.a=e}function PDe(e){this.a=e}function MDe(e){this.a=e}function ODe(e){this.a=e}function _De(e){this.a=e}function RDe(e){this.a=e}function ADe(e){this.a=e}function LDe(e){this.a=e}function $De(e){this.a=e}function jDe(e){this.a=e}function DDe(e){this.a=e}function NDe(e){this.a=e}function BDe(e){this.a=e}function FDe(e){this.a=e}function zDe(e){this.c=e}function HDe(e){this.b=e}function KDe(e){this.a=e}function UDe(e){this.a=e}function GDe(e){this.a=e}function WDe(e){this.a=e}function VDe(e){this.a=e}function qDe(e){this.a=e}function XDe(e){this.a=e}function YDe(e){this.a=e}function JDe(e){this.a=e}function QDe(e){this.a=e}function ZDe(e){this.a=e}function eNe(e){this.a=e}function tNe(e){this.a=e}function nNe(e){this.a=e}function rNe(e){this.a=e}function iNe(e){this.a=e}function oNe(e){this.a=e}function sNe(e){this.a=e}function lNe(e){this.a=e}function cNe(e){this.a=e}function uNe(e){this.a=e}function aNe(e){this.a=e}function fNe(e){this.a=e}function dNe(e){this.a=e}function hNe(e){this.a=e}function pNe(e){this.a=e}function gNe(e){this.a=e}function Jh(e){this.a=e}function my(e){this.a=e}function bNe(e){this.a=e}function wNe(e){this.a=e}function mNe(e){this.a=e}function vNe(e){this.a=e}function yNe(e){this.a=e}function kNe(e){this.a=e}function CNe(e){this.a=e}function SNe(e){this.a=e}function xNe(e){this.a=e}function ENe(e){this.a=e}function TNe(e){this.a=e}function INe(e){this.a=e}function PNe(e){this.a=e}function MNe(e){this.a=e}function ONe(e){this.a=e}function _Ne(e){this.a=e}function RNe(e){this.a=e}function ANe(e){this.a=e}function LNe(e){this.a=e}function $Ne(e){this.a=e}function jNe(e){this.a=e}function DNe(e){this.a=e}function NNe(e){this.a=e}function BNe(e){this.a=e}function FNe(e){this.a=e}function zNe(e){this.a=e}function cR(e){this.a=e}function HNe(e){this.f=e}function KNe(e){this.a=e}function UNe(e){this.a=e}function GNe(e){this.a=e}function WNe(e){this.a=e}function VNe(e){this.a=e}function qNe(e){this.a=e}function XNe(e){this.a=e}function YNe(e){this.a=e}function JNe(e){this.a=e}function QNe(e){this.a=e}function ZNe(e){this.a=e}function eBe(e){this.a=e}function tBe(e){this.a=e}function nBe(e){this.a=e}function rBe(e){this.a=e}function iBe(e){this.a=e}function oBe(e){this.a=e}function sBe(e){this.a=e}function lBe(e){this.a=e}function cBe(e){this.a=e}function uBe(e){this.a=e}function aBe(e){this.a=e}function fBe(e){this.a=e}function dBe(e){this.a=e}function hBe(e){this.a=e}function pBe(e){this.a=e}function gBe(e){this.a=e}function bBe(e){this.a=e}function sK(e){this.a=e}function Koe(e){this.a=e}function Fr(e){this.b=e}function wBe(e){this.a=e}function mBe(e){this.a=e}function vBe(e){this.a=e}function yBe(e){this.a=e}function kBe(e){this.a=e}function CBe(e){this.a=e}function SBe(e){this.a=e}function xBe(e){this.b=e}function EBe(e){this.a=e}function dT(e){this.a=e}function TBe(e){this.a=e}function IBe(e){this.a=e}function Uoe(e){this.c=e}function uR(e){this.e=e}function aR(e){this.a=e}function fR(e){this.a=e}function lK(e){this.a=e}function PBe(e){this.d=e}function MBe(e){this.a=e}function Goe(e){this.a=e}function Woe(e){this.a=e}function vb(e){this.e=e}function lOt(){this.a=0}function On(){qc(this)}function Le(){kU(this)}function cK(){dqe(this)}function OBe(){}function yb(){this.c=Q5e}function _Be(e,t){e.b+=t}function cOt(e,t){t.Wb(e)}function uOt(e){return e.a}function aOt(e){return e.a}function fOt(e){return e.a}function dOt(e){return e.a}function hOt(e){return e.a}function B(e){return e.e}function pOt(){return null}function gOt(){return null}function bOt(){_se(),Xun()}function wOt(e){e.b.Of(e.e)}function RBe(e){e.b=new PK}function r7(e,t){e.b=t-e.b}function i7(e,t){e.a=t-e.a}function Ft(e,t){e.push(t)}function ABe(e,t){e.sort(t)}function LBe(e,t){t.jd(e.a)}function mOt(e,t){Vi(t,e)}function vOt(e,t,n){e.Yd(n,t)}function hT(e,t){e.e=t,t.b=e}function Voe(e){Fd(),this.a=e}function $Be(e){Fd(),this.a=e}function jBe(e){Fd(),this.a=e}function uK(e){Hb(),this.a=e}function DBe(e){Vk(),QJ.le(e)}function qoe(){qoe=U,new On}function o0(){nGe.call(this)}function Xoe(){nGe.call(this)}function Yoe(){o0.call(this)}function aK(){o0.call(this)}function NBe(){o0.call(this)}function pT(){o0.call(this)}function Oc(){o0.call(this)}function B3(){o0.call(this)}function Xn(){o0.call(this)}function ea(){o0.call(this)}function BBe(){o0.call(this)}function qs(){o0.call(this)}function FBe(){o0.call(this)}function zBe(){this.a=this}function dR(){this.Bb|=256}function HBe(){this.b=new XKe}function mm(e,t){e.length=t}function hR(e,t){$e(e.a,t)}function yOt(e,t){k1e(e.c,t)}function kOt(e,t){Fi(e.b,t)}function COt(e,t){j$(e.a,t)}function SOt(e,t){uV(e.a,t)}function mk(e,t){_r(e.e,t)}function F3(e){Q$(e.c,e.b)}function xOt(e,t){e.kc().Nb(t)}function Joe(e){this.a=bVt(e)}function _i(){this.a=new On}function KBe(){this.a=new On}function Qoe(){this.a=new cHe}function pR(){this.a=new Le}function fK(){this.a=new Le}function Zoe(){this.a=new Le}function Pa(){this.a=new L3}function s0(){this.a=new NJe}function ese(){this.a=new qie}function tse(){this.a=new OXe}function nse(){this.a=new HGe}function UBe(){this.a=new Le}function GBe(){this.a=new Le}function WBe(){this.a=new Le}function rse(){this.a=new Le}function VBe(){this.d=new Le}function qBe(){this.a=new YXe}function XBe(){this.a=new _i}function YBe(){this.a=new On}function JBe(){this.b=new On}function QBe(){this.b=new Le}function ise(){this.e=new Le}function ZBe(){this.a=new r$e}function eFe(){this.d=new Le}function tFe(){tXe.call(this)}function nFe(){tXe.call(this)}function rFe(){Le.call(this)}function ose(){Yoe.call(this)}function sse(){pR.call(this)}function iFe(){vA.call(this)}function oFe(){rse.call(this)}function o7(){OBe.call(this)}function dK(){o7.call(this)}function z3(){OBe.call(this)}function lse(){z3.call(this)}function sFe(){fse.call(this)}function lFe(){fse.call(this)}function cFe(){fse.call(this)}function uFe(){dse.call(this)}function s7(){dRe.call(this)}function cse(){dRe.call(this)}function _c(){Zr.call(this)}function aFe(){EFe.call(this)}function fFe(){EFe.call(this)}function dFe(){On.call(this)}function hFe(){On.call(this)}function pFe(){On.call(this)}function hK(){aet.call(this)}function gFe(){_i.call(this)}function bFe(){dR.call(this)}function pK(){Gle.call(this)}function use(){On.call(this)}function gK(){Gle.call(this)}function bK(){On.call(this)}function wFe(){On.call(this)}function ase(){tR.call(this)}function mFe(){ase.call(this)}function vFe(){tR.call(this)}function yFe(){foe.call(this)}function fse(){this.a=new _i}function kFe(){this.a=new On}function CFe(){this.a=new Le}function dse(){this.a=new On}function H3(){this.a=new Zr}function SFe(){this.j=new Le}function xFe(){this.a=new Cze}function EFe(){this.a=new CRe}function hse(){this.a=new r_e}function l7(){l7=U,UJ=new E}function wK(){wK=U,GJ=new IFe}function mK(){mK=U,WJ=new TFe}function TFe(){JH.call(this,"")}function IFe(){JH.call(this,"")}function PFe(e){RZe.call(this,e)}function MFe(e){RZe.call(this,e)}function pse(e){boe.call(this,e)}function gse(e){Jze.call(this,e)}function EOt(e){Jze.call(this,e)}function TOt(e){gse.call(this,e)}function IOt(e){gse.call(this,e)}function POt(e){gse.call(this,e)}function OFe(e){YG.call(this,e)}function _Fe(e){YG.call(this,e)}function RFe(e){aWe.call(this,e)}function AFe(e){Nse.call(this,e)}function c7(e){ER.call(this,e)}function bse(e){ER.call(this,e)}function LFe(e){ER.call(this,e)}function wse(e){YQt.call(this,e)}function mse(e){wse.call(this,e)}function Xs(e){_Ve.call(this,e)}function $Fe(e){Xs.call(this,e)}function K3(){uT.call(this,{})}function jFe(){jFe=U,vpt=new ae}function gR(){gR=U,XJ=new RUe}function DFe(){DFe=U,pme=new S}function vse(){vse=U,gme=new je}function bR(){bR=U,j9=new bt}function vK(e){Ok(),this.a=e}function yK(e){Wfe(),this.a=e}function kb(e){iG(),this.f=e}function kK(e){iG(),this.f=e}function NFe(e){mWe(),this.a=e}function BFe(e){e.b=null,e.c=0}function MOt(e,t){e.e=t,ylt(e,t)}function OOt(e,t){e.a=t,DZt(e)}function CK(e,t,n){e.a[t.g]=n}function _Ot(e,t,n){QYt(n,e,t)}function ROt(e,t){ILt(t.i,e.n)}function FFe(e,t){JGt(e).Cd(t)}function AOt(e,t){e.a.ec().Mc(t)}function zFe(e,t){return e.g-t.g}function LOt(e,t){return e*e/t}function qe(e){return sn(e),e}function le(e){return sn(e),e}function gT(e){return sn(e),e}function $Ot(e){return new rR(e)}function jOt(e){return new Rm(e)}function yse(e){return sn(e),e}function DOt(e){return sn(e),e}function wR(e){Xs.call(this,e)}function ys(e){Xs.call(this,e)}function HFe(e){Xs.call(this,e)}function SK(e){_Ve.call(this,e)}function vk(e){Xs.call(this,e)}function Qt(e){Xs.call(this,e)}function ks(e){Xs.call(this,e)}function KFe(e){Xs.call(this,e)}function U3(e){Xs.call(this,e)}function D1(e){Xs.call(this,e)}function N1(e){Xs.call(this,e)}function G3(e){Xs.call(this,e)}function Ld(e){Xs.call(this,e)}function xK(e){Xs.call(this,e)}function er(e){Xs.call(this,e)}function Wc(e){sn(e),this.a=e}function kse(e){return T0(e),e}function u7(e){Aue(e,e.length)}function a7(e){return e.b==e.c}function vm(e){return!!e&&e.b}function NOt(e){return!!e&&e.k}function BOt(e){return!!e&&e.j}function FOt(e,t,n){e.c.Ef(t,n)}function UFe(e,t){e.be(t),t.ae(e)}function W3(e){Fd(),this.a=qn(e)}function EK(){this.a=Jn(qn(Xo))}function GFe(){throw B(new Xn)}function zOt(){throw B(new Xn)}function Cse(){throw B(new Xn)}function WFe(){throw B(new Xn)}function HOt(){throw B(new Xn)}function KOt(){throw B(new Xn)}function mR(){mR=U,Vk()}function B1(){aT.call(this,"")}function f7(){aT.call(this,"")}function Hp(){aT.call(this,"")}function V3(){aT.call(this,"")}function Sse(e){ys.call(this,e)}function xse(e){ys.call(this,e)}function $d(e){Qt.call(this,e)}function yk(e){hk.call(this,e)}function VFe(e){yk.call(this,e)}function TK(e){pA.call(this,e)}function IK(e){rce.call(this,e,0)}function PK(){gae.call(this,12,3)}function F(e,t){return xXe(e,t)}function vR(e,t){return fW(e,t)}function UOt(e,t){return e.a-t.a}function GOt(e,t){return e.a-t.a}function WOt(e,t){return e.a-t.a}function VOt(e,t){return t in e.a}function qFe(e){return e.a?e.b:0}function qOt(e){return e.a?e.b:0}function XOt(e,t,n){t.Cd(e.a[n])}function YOt(e,t,n){t.Pe(e.a[n])}function JOt(e,t){e.b=new Vo(t)}function QOt(e,t){return e.b=t,e}function XFe(e,t){return e.c=t,e}function YFe(e,t){return e.f=t,e}function ZOt(e,t){return e.g=t,e}function Ese(e,t){return e.a=t,e}function Tse(e,t){return e.f=t,e}function e_t(e,t){return e.k=t,e}function Ise(e,t){return e.a=t,e}function t_t(e,t){return e.e=t,e}function Pse(e,t){return e.e=t,e}function n_t(e,t){return e.f=t,e}function r_t(e,t){e.b=!0,e.d=t}function i_t(e,t){return e.b-t.b}function o_t(e,t){return e.g-t.g}function s_t(e,t){return e?0:t-1}function JFe(e,t){return e?0:t-1}function l_t(e,t){return e?t-1:0}function c_t(e,t){return e.s-t.s}function u_t(e,t){return t.rg(e)}function Cb(e,t){return e.b=t,e}function yR(e,t){return e.a=t,e}function Sb(e,t){return e.c=t,e}function xb(e,t){return e.d=t,e}function Eb(e,t){return e.e=t,e}function Mse(e,t){return e.f=t,e}function d7(e,t){return e.a=t,e}function kk(e,t){return e.b=t,e}function Ck(e,t){return e.c=t,e}function rt(e,t){return e.c=t,e}function Tt(e,t){return e.b=t,e}function it(e,t){return e.d=t,e}function ot(e,t){return e.e=t,e}function a_t(e,t){return e.f=t,e}function st(e,t){return e.g=t,e}function lt(e,t){return e.a=t,e}function ct(e,t){return e.i=t,e}function ut(e,t){return e.j=t,e}function f_t(e,t){fg(),Js(t,e)}function d_t(e,t,n){PDt(e.a,t,n)}function kR(e){BU.call(this,e)}function QFe(e){_Vt.call(this,e)}function ZFe(e){Rqe.call(this,e)}function Ose(e){Rqe.call(this,e)}function Kp(e){Qb.call(this,e)}function eze(e){PG.call(this,e)}function tze(e){PG.call(this,e)}function nze(){Ble.call(this,"")}function po(){this.a=0,this.b=0}function rze(){this.b=0,this.a=0}function ize(e,t){e.b=0,Hm(e,t)}function oze(e,t){return e.k=t,e}function h_t(e,t){return e.j=t,e}function p_t(e,t){e.c=t,e.b=!0}function sze(){sze=U,Rpt=EJt()}function Up(){Up=U,E4t=jYt()}function lze(){lze=U,oo=qJt()}function _se(){_se=U,Dg=c5()}function Sk(){Sk=U,J5e=DYt()}function cze(){cze=U,u6t=NYt()}function Rse(){Rse=U,ml=LZt()}function Pf(e){return e.e&&e.e()}function uze(e){return e.l|e.m<<22}function aze(e,t){return e.c._b(t)}function fze(e,t){return ant(e.b,t)}function MK(e){return e?e.d:null}function g_t(e){return e?e.g:null}function b_t(e){return e?e.i:null}function l0(e){return e1(e),e.o}function vy(e,t){return e.a+=t,e}function OK(e,t){return e.a+=t,e}function F1(e,t){return e.a+=t,e}function Tb(e,t){return e.a+=t,e}function Ase(e,t){for(;e.Bd(t););}function CR(e){this.a=new q3(e)}function dze(){throw B(new Xn)}function hze(){throw B(new Xn)}function pze(){throw B(new Xn)}function gze(){throw B(new Xn)}function bze(){throw B(new Xn)}function wze(){throw B(new Xn)}function z1(e){this.a=new lG(e)}function mze(){this.a=new VS(W4e)}function vze(){this.b=new VS(f4e)}function yze(){this.a=new VS(b6e)}function kze(){this.b=new VS(zee)}function Cze(){this.b=new VS(zee)}function SR(e){this.a=0,this.b=e}function Lse(e){Qut(),can(this,e)}function xk(e){return Qp(e),e.a}function bT(e){return e.b!=e.d.c}function $se(e,t){return e.d[t.p]}function Sze(e,t){return Ern(e,t)}function jse(e,t,n){e.splice(t,n)}function yy(e,t){for(;e.Re(t););}function xze(e){e.c?Nlt(e):Blt(e)}function Eze(){throw B(new Xn)}function Tze(){throw B(new Xn)}function Ize(){throw B(new Xn)}function Pze(){throw B(new Xn)}function Mze(){throw B(new Xn)}function Oze(){throw B(new Xn)}function _ze(){throw B(new Xn)}function Rze(){throw B(new Xn)}function Aze(){throw B(new Xn)}function Lze(){throw B(new Xn)}function w_t(){throw B(new qs)}function m_t(){throw B(new qs)}function wT(e){this.a=new $ze(e)}function $ze(e){CUt(this,e,eZt())}function mT(e){return!e||fqe(e)}function vT(e){return xd[e]!=-1}function v_t(){$D!=0&&($D=0),jD=-1}function jze(){KJ==null&&(KJ=[])}function yT(e,t){Ly.call(this,e,t)}function Ek(e,t){yT.call(this,e,t)}function Dze(e,t){this.a=e,this.b=t}function Nze(e,t){this.a=e,this.b=t}function Bze(e,t){this.a=e,this.b=t}function Fze(e,t){this.a=e,this.b=t}function zze(e,t){this.a=e,this.b=t}function Hze(e,t){this.a=e,this.b=t}function Kze(e,t){this.a=e,this.b=t}function Tk(e,t){this.e=e,this.d=t}function Dse(e,t){this.b=e,this.c=t}function Uze(e,t){this.b=e,this.a=t}function Gze(e,t){this.b=e,this.a=t}function Wze(e,t){this.b=e,this.a=t}function Vze(e,t){this.b=e,this.a=t}function qze(e,t){this.a=e,this.b=t}function _K(e,t){this.a=e,this.b=t}function Xze(e,t){this.a=e,this.f=t}function Ib(e,t){this.g=e,this.i=t}function Fn(e,t){this.f=e,this.g=t}function Yze(e,t){this.b=e,this.c=t}function Jze(e){Vle(e.dc()),this.c=e}function y_t(e,t){this.a=e,this.b=t}function Qze(e,t){this.a=e,this.b=t}function Zze(e){this.a=u(qn(e),15)}function Nse(e){this.a=u(qn(e),15)}function eHe(e){this.a=u(qn(e),85)}function xR(e){this.b=u(qn(e),85)}function ER(e){this.b=u(qn(e),51)}function TR(){this.q=new w.Date}function RK(e,t){this.a=e,this.b=t}function tHe(e,t){return rc(e.b,t)}function kT(e,t){return e.b.Hc(t)}function nHe(e,t){return e.b.Ic(t)}function rHe(e,t){return e.b.Qc(t)}function iHe(e,t){return e.b.Hc(t)}function oHe(e,t){return e.c.uc(t)}function sHe(e,t){return Rr(e.c,t)}function Mf(e,t){return e.a._b(t)}function lHe(e,t){return e>t&&t0}function NK(e,t){return kl(e,t)<0}function SHe(e,t){return eG(e.a,t)}function B_t(e,t){EXe.call(this,e,t)}function Gse(e){vG(),aWe.call(this,e)}function Wse(e,t){mVe(e,e.length,t)}function ET(e,t){WVe(e,e.length,t)}function y7(e,t){return e.a.get(t)}function xHe(e,t){return rc(e.e,t)}function Vse(e){return sn(e),!1}function qse(e){this.a=u(qn(e),229)}function $R(e){Pt.call(this,e,21)}function jR(e,t){Fn.call(this,e,t)}function BK(e,t){Fn.call(this,e,t)}function EHe(e,t){this.b=e,this.a=t}function DR(e,t){this.d=e,this.e=t}function THe(e,t){this.a=e,this.b=t}function IHe(e,t){this.a=e,this.b=t}function PHe(e,t){this.a=e,this.b=t}function MHe(e,t){this.a=e,this.b=t}function Y3(e,t){this.a=e,this.b=t}function OHe(e,t){this.b=e,this.a=t}function Xse(e,t){this.b=e,this.a=t}function Yse(e,t){Fn.call(this,e,t)}function Jse(e,t){Fn.call(this,e,t)}function ky(e,t){Fn.call(this,e,t)}function FK(e,t){Fn.call(this,e,t)}function zK(e,t){Fn.call(this,e,t)}function HK(e,t){Fn.call(this,e,t)}function NR(e,t){Fn.call(this,e,t)}function Qse(e,t){this.b=e,this.a=t}function BR(e,t){Fn.call(this,e,t)}function Zse(e,t){this.b=e,this.a=t}function FR(e,t){Fn.call(this,e,t)}function _He(e,t){this.b=e,this.a=t}function ele(e,t){Fn.call(this,e,t)}function KK(e,t){Fn.call(this,e,t)}function TT(e,t){Fn.call(this,e,t)}function k7(e,t,n){e.splice(t,0,n)}function F_t(e,t,n){e.Mb(n)&&t.Cd(n)}function z_t(e,t,n){t.Pe(e.a.Ye(n))}function H_t(e,t,n){t.Dd(e.a.Ze(n))}function K_t(e,t,n){t.Cd(e.a.Kb(n))}function U_t(e,t){return Ac(e.c,t)}function G_t(e,t){return Ac(e.e,t)}function zR(e,t){Fn.call(this,e,t)}function HR(e,t){Fn.call(this,e,t)}function C7(e,t){Fn.call(this,e,t)}function tle(e,t){Fn.call(this,e,t)}function Ri(e,t){Fn.call(this,e,t)}function KR(e,t){Fn.call(this,e,t)}function RHe(e,t){this.a=e,this.b=t}function AHe(e,t){this.a=e,this.b=t}function LHe(e,t){this.a=e,this.b=t}function $He(e,t){this.a=e,this.b=t}function jHe(e,t){this.a=e,this.b=t}function DHe(e,t){this.a=e,this.b=t}function NHe(e,t){this.b=e,this.a=t}function BHe(e,t){this.b=e,this.a=t}function nle(e,t){this.b=e,this.a=t}function Mk(e,t){this.c=e,this.d=t}function FHe(e,t){this.e=e,this.d=t}function zHe(e,t){this.a=e,this.b=t}function HHe(e,t){this.a=e,this.b=t}function KHe(e,t){this.a=e,this.b=t}function UHe(e,t){this.b=e,this.a=t}function GHe(e,t){this.b=t,this.c=e}function UR(e,t){Fn.call(this,e,t)}function IT(e,t){Fn.call(this,e,t)}function UK(e,t){Fn.call(this,e,t)}function rle(e,t){Fn.call(this,e,t)}function S7(e,t){Fn.call(this,e,t)}function GK(e,t){Fn.call(this,e,t)}function WK(e,t){Fn.call(this,e,t)}function PT(e,t){Fn.call(this,e,t)}function ile(e,t){Fn.call(this,e,t)}function VK(e,t){Fn.call(this,e,t)}function x7(e,t){Fn.call(this,e,t)}function ole(e,t){Fn.call(this,e,t)}function E7(e,t){Fn.call(this,e,t)}function T7(e,t){Fn.call(this,e,t)}function km(e,t){Fn.call(this,e,t)}function qK(e,t){Fn.call(this,e,t)}function XK(e,t){Fn.call(this,e,t)}function sle(e,t){Fn.call(this,e,t)}function MT(e,t){Fn.call(this,e,t)}function Cy(e,t){Fn.call(this,e,t)}function YK(e,t){Fn.call(this,e,t)}function GR(e,t){Fn.call(this,e,t)}function OT(e,t){Fn.call(this,e,t)}function Cm(e,t){Fn.call(this,e,t)}function WR(e,t){Fn.call(this,e,t)}function lle(e,t){Fn.call(this,e,t)}function JK(e,t){Fn.call(this,e,t)}function QK(e,t){Fn.call(this,e,t)}function ZK(e,t){Fn.call(this,e,t)}function eU(e,t){Fn.call(this,e,t)}function tU(e,t){Fn.call(this,e,t)}function nU(e,t){Fn.call(this,e,t)}function rU(e,t){Fn.call(this,e,t)}function WHe(e,t){this.b=e,this.a=t}function cle(e,t){Fn.call(this,e,t)}function VHe(e,t){this.a=e,this.b=t}function qHe(e,t){this.a=e,this.b=t}function XHe(e,t){this.a=e,this.b=t}function ule(e,t){Fn.call(this,e,t)}function ale(e,t){Fn.call(this,e,t)}function YHe(e,t){this.a=e,this.b=t}function W_t(e,t){return jk(),t!=e}function _T(e){return yn(e.a),e.b}function iU(e){return Zen(e,e.c),e}function JHe(){return sze(),new Rpt}function QHe(){xA(),this.a=new Ice}function ZHe(){lj(),this.a=new _i}function eKe(){NG(),this.b=new _i}function tKe(e,t){this.b=e,this.d=t}function nKe(e,t){this.a=e,this.b=t}function rKe(e,t){this.a=e,this.b=t}function iKe(e,t){this.a=e,this.b=t}function oKe(e,t){this.b=e,this.a=t}function fle(e,t){Fn.call(this,e,t)}function dle(e,t){Fn.call(this,e,t)}function VR(e,t){Fn.call(this,e,t)}function Ob(e,t){Fn.call(this,e,t)}function oU(e,t){Fn.call(this,e,t)}function qR(e,t){Fn.call(this,e,t)}function hle(e,t){Fn.call(this,e,t)}function ple(e,t){Fn.call(this,e,t)}function RT(e,t){Fn.call(this,e,t)}function gle(e,t){Fn.call(this,e,t)}function sU(e,t){Fn.call(this,e,t)}function XR(e,t){Fn.call(this,e,t)}function lU(e,t){Fn.call(this,e,t)}function cU(e,t){Fn.call(this,e,t)}function uU(e,t){Fn.call(this,e,t)}function aU(e,t){Fn.call(this,e,t)}function ble(e,t){Fn.call(this,e,t)}function fU(e,t){Fn.call(this,e,t)}function wle(e,t){Fn.call(this,e,t)}function AT(e,t){Fn.call(this,e,t)}function dU(e,t){Fn.call(this,e,t)}function mle(e,t){Fn.call(this,e,t)}function LT(e,t){Fn.call(this,e,t)}function vle(e,t){Fn.call(this,e,t)}function sKe(e,t){this.b=e,this.a=t}function lKe(e,t){this.b=e,this.a=t}function cKe(e,t){this.b=e,this.a=t}function uKe(e,t){this.b=e,this.a=t}function yle(e,t){this.a=e,this.b=t}function aKe(e,t){this.a=e,this.b=t}function fKe(e,t){this.a=e,this.b=t}function Me(e,t){this.a=e,this.b=t}function I7(e,t){Fn.call(this,e,t)}function $T(e,t){Fn.call(this,e,t)}function J3(e,t){Fn.call(this,e,t)}function P7(e,t){Fn.call(this,e,t)}function jT(e,t){Fn.call(this,e,t)}function hU(e,t){Fn.call(this,e,t)}function YR(e,t){Fn.call(this,e,t)}function M7(e,t){Fn.call(this,e,t)}function pU(e,t){Fn.call(this,e,t)}function JR(e,t){Fn.call(this,e,t)}function Sy(e,t){Fn.call(this,e,t)}function DT(e,t){Fn.call(this,e,t)}function O7(e,t){Fn.call(this,e,t)}function _7(e,t){Fn.call(this,e,t)}function NT(e,t){Fn.call(this,e,t)}function QR(e,t){Fn.call(this,e,t)}function xy(e,t){Fn.call(this,e,t)}function gU(e,t){Fn.call(this,e,t)}function dKe(e,t){Fn.call(this,e,t)}function ZR(e,t){Fn.call(this,e,t)}function hKe(e,t){this.a=e,this.b=t}function pKe(e,t){this.a=e,this.b=t}function gKe(e,t){this.a=e,this.b=t}function bKe(e,t){this.a=e,this.b=t}function wKe(e,t){this.a=e,this.b=t}function mKe(e,t){this.a=e,this.b=t}function Gi(e,t){this.a=e,this.b=t}function vKe(e,t){this.a=e,this.b=t}function yKe(e,t){this.a=e,this.b=t}function kKe(e,t){this.a=e,this.b=t}function CKe(e,t){this.a=e,this.b=t}function SKe(e,t){this.a=e,this.b=t}function xKe(e,t){this.a=e,this.b=t}function EKe(e,t){this.b=e,this.a=t}function TKe(e,t){this.b=e,this.a=t}function IKe(e,t){this.b=e,this.a=t}function PKe(e,t){this.b=e,this.a=t}function MKe(e,t){this.a=e,this.b=t}function OKe(e,t){this.a=e,this.b=t}function eA(e,t){Fn.call(this,e,t)}function _Ke(e,t){this.a=e,this.b=t}function RKe(e,t){this.a=e,this.b=t}function Q3(e,t){Fn.call(this,e,t)}function AKe(e,t){this.f=e,this.c=t}function kle(e,t){return Ac(e.g,t)}function V_t(e,t){return Ac(t.b,e)}function LKe(e,t){return vV(e.a,t)}function q_t(e,t){return-e.b.af(t)}function X_t(e,t){e&&vr(IO,e,t)}function Cle(e,t){e.i=null,YL(e,t)}function Y_t(e,t,n){Iit(t,fq(e,n))}function J_t(e,t,n){Iit(t,fq(e,n))}function Q_t(e,t){Tnn(e.a,u(t,58))}function $Ke(e,t){CKt(e.a,u(t,12))}function tA(e,t){this.a=e,this.b=t}function jKe(e,t){this.a=e,this.b=t}function DKe(e,t){this.a=e,this.b=t}function NKe(e,t){this.a=e,this.b=t}function BKe(e,t){this.a=e,this.b=t}function FKe(e,t){this.d=e,this.b=t}function zKe(e,t){this.e=e,this.a=t}function BT(e,t){this.b=e,this.c=t}function Sle(e,t){this.i=e,this.g=t}function xle(e,t){this.d=e,this.e=t}function Z_t(e,t){DKt(new hn(e),t)}function nA(e){return nP(e.c,e.b)}function Rs(e){return e?e.md():null}function fe(e){return e??null}function lo(e){return typeof e===iX}function Sm(e){return typeof e===B4}function xm(e){return typeof e===yge}function _b(e,t){return kl(e,t)==0}function rA(e,t){return kl(e,t)>=0}function R7(e,t){return kl(e,t)!=0}function iA(e,t){return eGt(e.Kc(),t)}function Vp(e,t){return e.Rd().Xb(t)}function HKe(e){return au(e),e.d.gc()}function oA(e){return U7(e==null),e}function A7(e,t){return e.a+=""+t,e}function ps(e,t){return e.a+=""+t,e}function L7(e,t){return e.a+=""+t,e}function Al(e,t){return e.a+=""+t,e}function lr(e,t){return e.a+=""+t,e}function Ele(e,t){return e.a+=""+t,e}function eRt(e){return""+(sn(e),e)}function KKe(e){qc(this),bS(this,e)}function UKe(){pae(),yue.call(this)}function GKe(e,t){Eue.call(this,e,t)}function WKe(e,t){Eue.call(this,e,t)}function sA(e,t){Eue.call(this,e,t)}function Wo(e,t){gi(e,t,e.c.b,e.c)}function Ey(e,t){gi(e,t,e.a,e.a.a)}function Tle(e){return _t(e,0),null}function VKe(){this.b=0,this.a=!1}function qKe(){this.b=0,this.a=!1}function XKe(){this.b=new q3(Fm(12))}function YKe(){YKe=U,Tgt=Hn(TV())}function JKe(){JKe=U,q0t=Hn(ult())}function QKe(){QKe=U,wyt=Hn(Het())}function Ile(){Ile=U,qoe(),bme=new On}function Of(e){return e.a=0,e.b=0,e}function ZKe(e,t){return e.a=t.g+1,e}function bU(e,t){Mm.call(this,e,t)}function St(e,t){fi.call(this,e,t)}function Ty(e,t){Sle.call(this,e,t)}function eUe(e,t){KT.call(this,e,t)}function wU(e,t){p5.call(this,e,t)}function wr(e,t){AR(),vr(JB,e,t)}function tUe(e,t){e.q.setTime(m0(t))}function tRt(e){w.clearTimeout(e)}function nRt(e){return qn(e),new $7(e)}function nUe(e,t){return fe(e)===fe(t)}function rUe(e,t){return e.a.a.a.cc(t)}function mU(e,t){return oa(e.a,0,t)}function Ple(e){return oNt(u(e,74))}function Z3(e){return Wi((sn(e),e))}function rRt(e){return Wi((sn(e),e))}function iUe(e){return nc(e.l,e.m,e.h)}function Mle(e,t){return yl(e.a,t.a)}function iRt(e,t){return UVe(e.a,t.a)}function oRt(e,t){return Kr(e.a,t.a)}function jd(e,t){return e.indexOf(t)}function sRt(e,t){return e.j[t.p]==2}function Rb(e,t){return e==t?0:e?1:-1}function lA(e){return e<10?"0"+e:""+e}function Hs(e){return typeof e===yge}function lRt(e){return e==Pw||e==vv}function cRt(e){return e==Pw||e==mv}function oUe(e,t){return yl(e.g,t.g)}function Ole(e){return $s(e.b.b,e,0)}function sUe(){LA.call(this,0,0,0,0)}function Dd(){_oe.call(this,new q1)}function _le(e,t){Zk(e,0,e.length,t)}function uRt(e,t){return $e(e.a,t),t}function aRt(e,t){return tf(),t.a+=e}function fRt(e,t){return tf(),t.a+=e}function dRt(e,t){return tf(),t.c+=e}function hRt(e,t){return $e(e.c,t),e}function Rle(e,t){return Bu(e.a,t),e}function lUe(e){this.a=JHe(),this.b=e}function cUe(e){this.a=JHe(),this.b=e}function Vo(e){this.a=e.a,this.b=e.b}function $7(e){this.a=e,XH.call(this)}function uUe(e){this.a=e,XH.call(this)}function e4(){ia.call(this,0,0,0,0)}function cA(e){return Bu(new Li,e)}function aUe(e){return QA(u(e,123))}function ku(e){return e.vh()&&e.wh()}function Iy(e){return e!=kd&&e!=Lg}function Zh(e){return e==Ps||e==Bs}function Py(e){return e==Ca||e==vd}function fUe(e){return e==N2||e==D2}function pRt(e,t){return yl(e.g,t.g)}function dUe(e,t){return new p5(t,e)}function gRt(e,t){return new p5(t,e)}function Ale(e){return jjt(e.b.Kc(),e.a)}function vU(e,t){C5(e,t),l5(e,e.D)}function yU(e,t,n){HL(e,t),zL(e,n)}function My(e,t,n){ew(e,t),Zb(e,n)}function ta(e,t,n){oc(e,t),sc(e,n)}function FT(e,t,n){r5(e,t),o5(e,n)}function zT(e,t,n){i5(e,t),s5(e,n)}function hUe(e,t,n){gce.call(this,e,t,n)}function Lle(e){AKe.call(this,e,!0)}function pUe(){jR.call(this,"Tail",3)}function gUe(){jR.call(this,"Head",1)}function qp(e){Vd(),YUt.call(this,e)}function Ab(e){LA.call(this,e,e,e,e)}function kU(e){e.c=be(Ji,Bt,1,0,5,1)}function $le(e){return e.b&&Fq(e),e.a}function jle(e){return e.b&&Fq(e),e.c}function bRt(e,t){pd||(e.b=t)}function wRt(e,t){return e[e.length]=t}function mRt(e,t){return e[e.length]=t}function vRt(e,t){return zm(t,Qf(e))}function yRt(e,t){return zm(t,Qf(e))}function kRt(e,t){return VL(wG(e.d),t)}function CRt(e,t){return VL(wG(e.g),t)}function SRt(e,t){return VL(wG(e.j),t)}function go(e,t){fi.call(this,e.b,t)}function xRt(e,t){Dn(Pl(e.a),jXe(t))}function ERt(e,t){Dn(uu(e.a),DXe(t))}function TRt(e,t,n){ta(n,n.i+e,n.j+t)}function bUe(e,t,n){pi(e.c[t.g],t.g,n)}function IRt(e,t,n){u(e.c,71).Gi(t,n)}function CU(e,t,n){return pi(e,t,n),n}function wUe(e){ic(e.Sf(),new jje(e))}function Oy(e){return e!=null?Vr(e):0}function PRt(e){return e==null?0:Vr(e)}function j7(e){Ir(),vb.call(this,e)}function mUe(e){this.a=e,Yce.call(this,e)}function Yf(){Yf=U,w.Math.log(2)}function na(){na=U,zh=(kHe(),_4t)}function vUe(){vUe=U,nee=new MS(bte)}function Yn(){Yn=U,new yUe,new Le}function yUe(){new On,new On,new On}function MRt(){throw B(new D1(rpt))}function ORt(){throw B(new D1(rpt))}function _Rt(){throw B(new D1(ipt))}function RRt(){throw B(new D1(ipt))}function SU(e){this.a=e,xR.call(this,e)}function xU(e){this.a=e,xR.call(this,e)}function kUe(e,t){Hb(),this.a=e,this.b=t}function ARt(e,t){qn(t),jy(e).Jc(new Q)}function Mi(e,t){tG(e.c,e.c.length,t)}function Ys(e){return e.at?1:0}function Nle(e,t){return kl(e,t)>0?e:t}function nc(e,t,n){return{l:e,m:t,h:n}}function LRt(e,t){e.a!=null&&$Ke(t,e.a)}function $Rt(e){zo(e,null),ao(e,null)}function jRt(e,t,n){return vr(e.g,n,t)}function _y(e,t,n){return lhe(t,n,e.c)}function DRt(e,t,n){return vr(e.k,n,t)}function NRt(e,t,n){return Scn(e,t,n),n}function BRt(e,t){return Lu(),t.n.b+=e}function SUe(e){lae.call(this),this.b=e}function Ble(e){Tce.call(this),this.a=e}function xUe(){jR.call(this,"Range",2)}function uA(e){this.b=e,this.a=new Le}function EUe(e){this.b=new xo,this.a=e}function TUe(e){e.a=new Zn,e.c=new Zn}function IUe(e){e.a=new On,e.d=new On}function PUe(e){BG(e,null),FG(e,null)}function MUe(e,t){return Ecn(e.a,t,null)}function FRt(e,t){return vr(e.a,t.a,t)}function Eo(e){return new Me(e.a,e.b)}function Fle(e){return new Me(e.c,e.d)}function zRt(e){return new Me(e.c,e.d)}function D7(e,t){return Dln(e.c,e.b,t)}function te(e,t){return e!=null&&OV(e,t)}function EU(e,t){return OGt(e.Kc(),t)!=-1}function aA(e){return e.Ob()?e.Pb():null}function HRt(e){this.b=(Ot(),new oK(e))}function zle(e){this.a=e,On.call(this)}function OUe(){KT.call(this,null,null)}function _Ue(){wA.call(this,null,null)}function RUe(){Fn.call(this,"INSTANCE",0)}function AUe(){Fhe(),this.a=new VS(Dve)}function LUe(e){return Ud(e,0,e.length)}function KRt(e,t){return new QUe(e.Kc(),t)}function Hle(e,t){return e.a.Bc(t)!=null}function $Ue(e,t){jn(e),e.Gc(u(t,15))}function URt(e,t,n){e.c.bd(t,u(n,136))}function GRt(e,t,n){e.c.Ui(t,u(n,136))}function jUe(e,t){e.c&&(uue(t),cXe(t))}function WRt(e,t){e.q.setHours(t),QS(e,t)}function VRt(e,t){jb(t,e.a.a.a,e.a.a.b)}function qRt(e,t,n,i){pi(e.a[t.g],n.g,i)}function TU(e,t,n){return e.a[t.g][n.g]}function XRt(e,t){return e.e[t.c.p][t.p]}function YRt(e,t){return e.c[t.c.p][t.p]}function Jf(e,t){return e.a[t.c.p][t.p]}function JRt(e,t){return e.j[t.p]=cnn(t)}function IU(e,t){return e.a.Bc(t)!=null}function QRt(e,t){return le(pe(t.a))<=e}function ZRt(e,t){return le(pe(t.a))>=e}function eAt(e,t){return Wae(e.f,t.Pg())}function t4(e,t){return e.a*t.a+e.b*t.b}function tAt(e,t){return e.a0?t/(e*e):t*100}function TAt(e,t){return e>0?t*t/e:t*t*100}function Em(e,t){return u(id(e.a,t),34)}function IAt(e,t){return fg(),It(e,t.e,t)}function PAt(e,t,n){return OR(),n.Mg(e,t)}function MAt(e){return u1(),e.e.a+e.f.a/2}function OAt(e,t,n){return u1(),n.e.a-e*t}function _At(e){return u1(),e.e.b+e.f.b/2}function RAt(e,t,n){return u1(),n.e.b-e*t}function dGe(e){e.d=new uGe(e),e.e=new On}function hGe(){this.a=new qb,this.b=new qb}function pGe(e){this.c=e,this.a=1,this.b=1}function gGe(e){nX(),RBe(this),this.Ff(e)}function AAt(e,t,n){PL(),e.pf(t)&&n.Cd(e)}function LAt(e,t,n){return $e(t,Pnt(e,n))}function jb(e,t,n){return e.a+=t,e.b+=n,e}function $At(e,t,n){return e.a*=t,e.b*=n,e}function sce(e,t){return e.a=t.a,e.b=t.b,e}function mA(e){return e.a=-e.a,e.b=-e.b,e}function z7(e,t,n){return e.a-=t,e.b-=n,e}function bGe(e){Zr.call(this),dS(this,e)}function wGe(){Fn.call(this,"GROW_TREE",0)}function mGe(){Fn.call(this,"POLYOMINO",0)}function Su(e,t,n){jc.call(this,e,t,n,2)}function jAt(e,t,n){IS(Pl(e.a),t,jXe(n))}function vGe(e,t){v7(),KT.call(this,e,t)}function lce(e,t){H1(),wA.call(this,e,t)}function yGe(e,t){H1(),lce.call(this,e,t)}function kGe(e,t){H1(),wA.call(this,e,t)}function DAt(e,t){return e.c.Fc(u(t,136))}function NAt(e,t,n){IS(uu(e.a),t,DXe(n))}function CGe(e){this.c=e,oc(e,0),sc(e,0)}function AU(e,t){na(),DA.call(this,e,t)}function SGe(e,t){na(),AU.call(this,e,t)}function cce(e,t){na(),AU.call(this,e,t)}function uce(e,t){na(),DA.call(this,e,t)}function xGe(e,t){na(),cce.call(this,e,t)}function EGe(e,t){na(),uce.call(this,e,t)}function TGe(e,t){na(),DA.call(this,e,t)}function BAt(e,t,n){return t.zl(e.e,e.c,n)}function FAt(e,t,n){return t.Al(e.e,e.c,n)}function ace(e,t,n){return vj(MI(e,t),n)}function LU(e,t){return sg(e.e,u(t,54))}function zAt(e){return e==null?null:dun(e)}function HAt(e){return e==null?null:oZt(e)}function KAt(e){return e==null?null:Us(e)}function UAt(e){return e==null?null:Us(e)}function Ve(e){return U7(e==null||Sm(e)),e}function pe(e){return U7(e==null||xm(e)),e}function Jn(e){return U7(e==null||lo(e)),e}function e1(e){e.o==null&&Dtn(e)}function fce(e){if(!e)throw B(new pT)}function GAt(e){if(!e)throw B(new aK)}function yn(e){if(!e)throw B(new qs)}function Tm(e){if(!e)throw B(new Oc)}function IGe(e){if(!e)throw B(new ea)}function Lk(){Lk=U,MO=new aFe,new fFe}function $y(){$y=U,z2=new Fr("root")}function dce(){aet.call(this),this.Bb|=es}function WAt(e,t){this.d=e,uje(this),this.b=t}function hce(e,t){lW.call(this,e),this.a=t}function pce(e,t){lW.call(this,e),this.a=t}function gce(e,t,n){xL.call(this,e,t,n,null)}function PGe(e,t,n){xL.call(this,e,t,n,null)}function WT(e,t){this.c=e,Tk.call(this,e,t)}function H7(e,t){this.a=e,WT.call(this,e,t)}function bce(e){this.q=new w.Date(m0(e))}function MGe(e){return e>8?0:e+1}function OGe(e,t){pd||$e(e.a,t)}function VAt(e,t){return xT(),h5(t.d.i,e)}function qAt(e,t){return x4(),new cct(t,e)}function XAt(e,t,n){return e.Ne(t,n)<=0?n:t}function YAt(e,t,n){return e.Ne(t,n)<=0?t:n}function JAt(e,t){return u(id(e.b,t),143)}function QAt(e,t){return u(id(e.c,t),233)}function $U(e){return u(Ye(e.a,e.b),294)}function _Ge(e){return new Me(e.c,e.d+e.a)}function RGe(e){return sn(e),e?1231:1237}function AGe(e){return Lu(),fUe(u(e,203))}function Im(){Im=U,fve=ht((Iu(),sb))}function ZAt(e,t){t.a?rtn(e,t):IU(e.a,t.b)}function VT(e,t,n){++e.j,e.tj(),sW(e,t,n)}function LGe(e,t,n){++e.j,e.qj(t,e.Zi(t,n))}function $Ge(e,t,n){var i;i=e.fd(t),i.Rb(n)}function wce(e,t,n){return n=Hu(e,t,6,n),n}function mce(e,t,n){return n=Hu(e,t,3,n),n}function vce(e,t,n){return n=Hu(e,t,9,n),n}function Bd(e,t){return aI(t,Kge),e.f=t,e}function yce(e,t){return(t&Mr)%e.d.length}function jGe(e,t,n){return Zpe(e.c,e.b,t,n)}function DGe(e,t){this.c=e,Qb.call(this,t)}function NGe(e,t){this.a=e,xBe.call(this,t)}function qT(e,t){this.a=e,xBe.call(this,t)}function fi(e,t){Fr.call(this,e),this.a=t}function kce(e,t){Uoe.call(this,e),this.a=t}function jU(e,t){Uoe.call(this,e),this.a=t}function eLt(e){the.call(this,0,0),this.f=e}function BGe(e,t,n){return e.a+=Ud(t,0,n),e}function XT(e){return!e.a&&(e.a=new Be),e.a}function Cce(e,t){var n;return n=e.e,e.e=t,n}function Sce(e,t){var n;return n=t,!!e.Fe(n)}function tLt(e,t){return Gt(),e==t?0:e?1:-1}function Pm(e,t){e.a.bd(e.b,t),++e.b,e.c=-1}function YT(e){e.b?YT(e.b):e.f.c.zc(e.e,e.d)}function FGe(e){qc(e.e),e.d.b=e.d,e.d.a=e.d}function nLt(e,t,n){c0(),sje(e,t.Ve(e.a,n))}function xce(e,t,n){return f4(e,u(t,22),n)}function ef(e,t){return vR(new Array(t),e)}function rLt(e){return Vn(Yp(e,32))^Vn(e)}function DU(e){return String.fromCharCode(e)}function iLt(e){return e==null?null:e.message}function oLt(e,t,n){return e.apply(t,n)}function sLt(e,t){var n;n=e[jX],n.call(e,t)}function lLt(e,t){var n;n=e[jX],n.call(e,t)}function cLt(e,t){return xT(),!h5(t.d.i,e)}function Ece(e,t,n,i){LA.call(this,e,t,n,i)}function zGe(){vA.call(this),this.a=new po}function Tce(){this.n=new po,this.o=new po}function HGe(){this.b=new po,this.c=new Le}function KGe(){this.a=new Le,this.b=new Le}function UGe(){this.a=new qie,this.b=new HBe}function Ice(){this.b=new q1,this.a=new q1}function GGe(){this.b=new _i,this.a=new _i}function WGe(){this.b=new On,this.a=new On}function VGe(){this.b=new vze,this.a=new WMe}function qGe(){this.a=new i$e,this.b=new DPe}function XGe(){this.a=new Le,this.d=new Le}function vA(){this.n=new z3,this.i=new e4}function YGe(e){this.a=(Nu(e,lv),new ql(e))}function JGe(e){this.a=(Nu(e,lv),new ql(e))}function uLt(e){return e<100?null:new Kp(e)}function aLt(e,t){return e.n.a=(sn(t),t+10)}function fLt(e,t){return e.n.a=(sn(t),t+10)}function dLt(e,t){return t==e||j5(nj(t),e)}function QGe(e,t){return vr(e.a,t,"")==null}function hLt(e,t){var n;return n=t.qi(e.a),n}function Or(e,t){return e.a+=t.a,e.b+=t.b,e}function Xi(e,t){return e.a-=t.a,e.b-=t.b,e}function pLt(e){return mm(e.j.c,0),e.a=-1,e}function Pce(e,t,n){return n=Hu(e,t,11,n),n}function gLt(e,t,n){n!=null&&qL(t,zV(e,n))}function bLt(e,t,n){n!=null&&XL(t,zV(e,n))}function i4(e,t,n,i){Se.call(this,e,t,n,i)}function Mce(e,t,n,i){Se.call(this,e,t,n,i)}function ZGe(e,t,n,i){Mce.call(this,e,t,n,i)}function eWe(e,t,n,i){UA.call(this,e,t,n,i)}function NU(e,t,n,i){UA.call(this,e,t,n,i)}function Oce(e,t,n,i){UA.call(this,e,t,n,i)}function tWe(e,t,n,i){NU.call(this,e,t,n,i)}function _ce(e,t,n,i){NU.call(this,e,t,n,i)}function jt(e,t,n,i){Oce.call(this,e,t,n,i)}function nWe(e,t,n,i){_ce.call(this,e,t,n,i)}function rWe(e,t,n,i){Mue.call(this,e,t,n,i)}function Mm(e,t){ys.call(this,I9+e+z0+t)}function Rce(e,t){return e.jk().wi().ri(e,t)}function Ace(e,t){return e.jk().wi().ti(e,t)}function iWe(e,t){return sn(e),fe(e)===fe(t)}function Et(e,t){return sn(e),fe(e)===fe(t)}function wLt(e,t){return e.b.Bd(new IHe(e,t))}function mLt(e,t){return e.b.Bd(new PHe(e,t))}function oWe(e,t){return e.b.Bd(new MHe(e,t))}function vLt(e,t){return e.e=u(e.d.Kb(t),159)}function Lce(e,t,n){return e.lastIndexOf(t,n)}function yLt(e,t,n){return Kr(e[t.a],e[n.a])}function kLt(e,t){return Ee(t,(Ue(),zM),e)}function CLt(e,t){return yl(t.a.d.p,e.a.d.p)}function SLt(e,t){return yl(e.a.d.p,t.a.d.p)}function xLt(e,t){return Kr(e.c-e.s,t.c-t.s)}function ELt(e,t){return Kr(e.b.e.a,t.b.e.a)}function TLt(e,t){return Kr(e.c.e.a,t.c.e.a)}function sWe(e){return e.c?$s(e.c.a,e,0):-1}function o4(e){return e==ob||e==Bh||e==Ul}function $ce(e,t){this.c=e,fG.call(this,e,t)}function lWe(e,t,n){this.a=e,rce.call(this,t,n)}function cWe(e){this.c=e,sA.call(this,FP,0)}function uWe(e,t,n){this.c=t,this.b=n,this.a=e}function JT(e){jk(),this.d=e,this.a=new Ay}function aWe(e){Fd(),this.a=(Ot(),new yk(e))}function ILt(e,t){Zh(e.f)?Mtn(e,t):sQt(e,t)}function fWe(e,t){Fjt.call(this,e,e.length,t)}function PLt(e,t){pd||t&&(e.d=t)}function dWe(e,t){return te(t,15)&&Hlt(e.c,t)}function MLt(e,t,n){return u(e.c,71).Wk(t,n)}function yA(e,t,n){return u(e.c,71).Xk(t,n)}function OLt(e,t,n){return BAt(e,u(t,343),n)}function jce(e,t,n){return FAt(e,u(t,343),n)}function _Lt(e,t,n){return $it(e,u(t,343),n)}function hWe(e,t,n){return vQt(e,u(t,343),n)}function K7(e,t){return t==null?null:Gm(e.b,t)}function Dce(e){return xm(e)?(sn(e),e):e.ue()}function kA(e){return!isNaN(e)&&!isFinite(e)}function BU(e){TUe(this),Au(this),vo(this,e)}function Vc(e){kU(this),Zce(this.c,0,e.Pc())}function ra(e,t,n){this.a=e,this.b=t,this.c=n}function pWe(e,t,n){this.a=e,this.b=t,this.c=n}function gWe(e,t,n){this.d=e,this.b=n,this.a=t}function bWe(e){this.a=e,Qh(),bl(Date.now())}function wWe(e){Eu(e.a),Qae(e.c,e.b),e.b=null}function FU(){FU=U,Nme=new kt,Apt=new Ze}function mWe(){mWe=U,j4t=be(Ji,Bt,1,0,5,1)}function vWe(){vWe=U,e6t=be(Ji,Bt,1,0,5,1)}function Nce(){Nce=U,t6t=be(Ji,Bt,1,0,5,1)}function Fd(){Fd=U,new Voe((Ot(),Ot(),Jo))}function RLt(e){return e5(),zn((EQe(),jpt),e)}function ALt(e){return Jc(),zn((gQe(),Hpt),e)}function LLt(e){return P$(),zn((eJe(),qpt),e)}function $Lt(e){return $L(),zn((tJe(),Xpt),e)}function jLt(e){return aj(),zn((ntt(),Ypt),e)}function DLt(e){return jf(),zn((hQe(),Zpt),e)}function NLt(e){return Yc(),zn((dQe(),tgt),e)}function BLt(e){return yc(),zn((pQe(),rgt),e)}function FLt(e){return xj(),zn((YKe(),Tgt),e)}function zLt(e){return iw(),zn((IQe(),Pgt),e)}function HLt(e){return O4(),zn((MQe(),Ogt),e)}function KLt(e){return LS(),zn((PQe(),Agt),e)}function ULt(e){return PR(),zn((TYe(),Lgt),e)}function GLt(e){return jL(),zn((nJe(),Jgt),e)}function WLt(e){return aS(),zn((bQe(),S0t),e)}function VLt(e){return $o(),zn((aZe(),I0t),e)}function qLt(e){return b5(),zn((_Qe(),R0t),e)}function XLt(e){return P0(),zn((OQe(),N0t),e)}function Bce(e,t){if(!e)throw B(new Qt(t))}function $k(e){if(!e)throw B(new ks(kge))}function zU(e,t){if(e!=t)throw B(new ea)}function yWe(e,t,n){this.a=e,this.b=t,this.c=n}function Fce(e,t,n){this.a=e,this.b=t,this.c=n}function kWe(e,t,n){this.a=e,this.b=t,this.c=n}function CA(e,t,n){this.b=e,this.a=t,this.c=n}function zce(e,t,n){this.b=e,this.c=t,this.a=n}function Hce(e,t,n){this.a=e,this.b=t,this.c=n}function SA(e,t,n){this.e=t,this.b=e,this.d=n}function CWe(e,t,n){this.b=e,this.a=t,this.c=n}function YLt(e,t,n){return c0(),e.a.Yd(t,n),t}function HU(e){var t;return t=new _d,t.e=e,t}function Kce(e){var t;return t=new VBe,t.b=e,t}function QT(){QT=U,eN=new dTe,tN=new hTe}function xA(){xA=U,Z0t=new FTe,Q0t=new zTe}function tf(){tf=U,ibt=new XIe,obt=new YIe}function JLt(e){return nw(),zn((VJe(),gbt),e)}function QLt(e){return Uo(),zn((JKe(),q0t),e)}function ZLt(e){return l$(),zn((AQe(),J0t),e)}function e$t(e){return sd(),zn((RQe(),cbt),e)}function t$t(e){return Ym(),zn((fZe(),abt),e)}function n$t(e){return cj(),zn((zet(),bbt),e)}function r$t(e){return L4(),zn((jZe(),wbt),e)}function i$t(e){return IL(),zn((uJe(),mbt),e)}function o$t(e){return hS(),zn((GJe(),vbt),e)}function s$t(e){return UL(),zn((WJe(),ybt),e)}function l$t(e){return ip(),zn((dZe(),kbt),e)}function c$t(e){return LI(),zn((oJe(),Cbt),e)}function u$t(e){return N5(),zn((BZe(),Pbt),e)}function a$t(e){return cs(),zn((mtt(),Mbt),e)}function f$t(e){return g5(),zn((XJe(),Obt),e)}function d$t(e){return c1(),zn((YJe(),Rbt),e)}function h$t(e){return bL(),zn((iJe(),Abt),e)}function p$t(e){return hP(),zn((NZe(),Ibt),e)}function g$t(e){return E0(),zn((qJe(),xbt),e)}function b$t(e){return X$(),zn((DZe(),Ebt),e)}function w$t(e){return II(),zn((sJe(),Tbt),e)}function m$t(e){return pa(),zn((pZe(),Lbt),e)}function v$t(e){return up(),zn((Zet(),ivt),e)}function y$t(e){return SS(),zn((JJe(),ovt),e)}function k$t(e){return qm(),zn((LQe(),svt),e)}function C$t(e){return AS(),zn((hZe(),lvt),e)}function S$t(e){return La(),zn((vtt(),cvt),e)}function x$t(e){return Gd(),zn(($Qe(),uvt),e)}function E$t(e){return RI(),zn((lJe(),avt),e)}function T$t(e){return ls(),zn((eQe(),dvt),e)}function I$t(e){return i$(),zn((QJe(),hvt),e)}function P$t(e){return yS(),zn((ZJe(),pvt),e)}function M$t(e){return S5(),zn((tQe(),gvt),e)}function O$t(e){return KL(),zn((nQe(),bvt),e)}function _$t(e){return c$(),zn((rQe(),wvt),e)}function R$t(e){return tw(),zn((fQe(),Avt),e)}function A$t(e){return lS(),zn((cJe(),Nvt),e)}function L$t(e){return Hd(),zn((dJe(),Gvt),e)}function $$t(e){return Zf(),zn((hJe(),Vvt),e)}function j$t(e){return Af(),zn((pJe(),cyt),e)}function D$t(e){return Xb(),zn((gJe(),gyt),e)}function N$t(e){return A4(),zn((HQe(),byt),e)}function B$t(e){return YS(),zn((QKe(),wyt),e)}function F$t(e){return kS(),zn((iQe(),myt),e)}function z$t(e){return CS(),zn((zQe(),zyt),e)}function H$t(e){return hL(),zn((aJe(),Hyt),e)}function K$t(e){return JL(),zn((fJe(),Vyt),e)}function U$t(e){return G$(),zn((gZe(),Xyt),e)}function G$t(e){return qI(),zn((oQe(),Jyt),e)}function W$t(e){return ML(),zn((bJe(),Yyt),e)}function V$t(e){return N$(),zn((FQe(),w2t),e)}function q$t(e){return r$(),zn((sQe(),m2t),e)}function X$t(e){return S$(),zn((lQe(),v2t),e)}function Y$t(e){return L$(),zn((cQe(),k2t),e)}function J$t(e){return w$(),zn((uQe(),x2t),e)}function Q$t(e){return kL(),zn((wJe(),G2t),e)}function Z$t(e){return a5(),zn((rJe(),V0t),e)}function ejt(e){return nn(),zn((FZe(),H0t),e)}function tjt(e){return OL(),zn((aQe(),W2t),e)}function njt(e){return NW(),zn((mJe(),V2t),e)}function rjt(e){return WS(),zn((bZe(),X2t),e)}function ijt(e){return _R(),zn((LYe(),J2t),e)}function ojt(e){return eP(),zn((mQe(),Y2t),e)}function sjt(e){return RR(),zn(($Ye(),Z2t),e)}function ljt(e){return CI(),zn((vJe(),e3t),e)}function cjt(e){return gP(),zn((wZe(),t3t),e)}function ujt(e){return b7(),zn((jYe(),w3t),e)}function ajt(e){return UI(),zn((yJe(),m3t),e)}function fjt(e){return Nf(),zn((vZe(),x3t),e)}function djt(e){return cp(),zn((Bet(),T3t),e)}function hjt(e){return Ch(),zn((zZe(),I3t),e)}function pjt(e){return O0(),zn((HZe(),A3t),e)}function gjt(e){return ji(),zn((mZe(),Q3t),e)}function bjt(e){return od(),zn((vQe(),Z3t),e)}function wjt(e){return d1(),zn((KQe(),e4t),e)}function mjt(e){return V$(),zn((KZe(),t4t),e)}function vjt(e){return f1(),zn((wQe(),r4t),e)}function yjt(e){return Fu(),zn((UQe(),o4t),e)}function kjt(e){return ev(),zn((ttt(),s4t),e)}function Cjt(e){return Vy(),zn((yZe(),l4t),e)}function Sjt(e){return fo(),zn((UZe(),c4t),e)}function xjt(e){return Qc(),zn((GZe(),u4t),e)}function Ejt(e){return ze(),zn((kZe(),a4t),e)}function Tjt(e){return Iu(),zn((GQe(),g4t),e)}function Ijt(e){return du(),zn((ett(),b4t),e)}function Pjt(e){return I4(),zn((yQe(),w4t),e)}function Mjt(e,t){return sn(e),e+(sn(t),t)}function Ojt(e){return KU(),zn((kJe(),m4t),e)}function _jt(e){return v$(),zn((WQe(),v4t),e)}function Rjt(e){return u$(),zn((VQe(),C4t),e)}function jk(){jk=U,u4e=(ze(),rn),sB=fn}function KU(){KU=U,T5e=new QWe,I5e=new DVe}function Ajt(e){return!e.e&&(e.e=new Le),e.e}function UU(e,t){this.c=e,this.a=t,this.b=t-e}function SWe(e,t,n){this.a=e,this.b=t,this.c=n}function GU(e,t,n){this.a=e,this.b=t,this.c=n}function Uce(e,t,n){this.a=e,this.b=t,this.c=n}function Gce(e,t,n){this.a=e,this.b=t,this.c=n}function xWe(e,t,n){this.a=e,this.b=t,this.c=n}function EWe(e,t,n){this.a=e,this.b=t,this.c=n}function U1(e,t,n){this.e=e,this.a=t,this.c=n}function TWe(e,t,n){na(),uae.call(this,e,t,n)}function WU(e,t,n){na(),Wue.call(this,e,t,n)}function Wce(e,t,n){na(),Wue.call(this,e,t,n)}function Vce(e,t,n){na(),Wue.call(this,e,t,n)}function IWe(e,t,n){na(),WU.call(this,e,t,n)}function qce(e,t,n){na(),WU.call(this,e,t,n)}function PWe(e,t,n){na(),qce.call(this,e,t,n)}function MWe(e,t,n){na(),Wce.call(this,e,t,n)}function OWe(e,t,n){na(),Vce.call(this,e,t,n)}function VU(e){LA.call(this,e.d,e.c,e.a,e.b)}function Xce(e){LA.call(this,e.d,e.c,e.a,e.b)}function Yce(e){this.d=e,uje(this),this.b=RDt(e.d)}function Ljt(e){return F5(),zn((Fet(),$4t),e)}function ZT(e,t){return qn(e),qn(t),new Nze(e,t)}function s4(e,t){return qn(e),qn(t),new KWe(e,t)}function $jt(e,t){return qn(e),qn(t),new UWe(e,t)}function jjt(e,t){return qn(e),qn(t),new Vze(e,t)}function qU(e){return yn(e.b!=0),ua(e,e.a.a)}function Djt(e){return yn(e.b!=0),ua(e,e.c.b)}function Njt(e){return!e.c&&(e.c=new fk),e.c}function Dk(e){var t;return t=new Le,mW(t,e),t}function Bjt(e){var t;return t=new _i,mW(t,e),t}function _We(e){var t;return t=new Qoe,_W(t,e),t}function eI(e){var t;return t=new Zr,_W(t,e),t}function u(e,t){return U7(e==null||OV(e,t)),e}function Fjt(e,t,n){OVe.call(this,t,n),this.a=e}function RWe(e,t){this.c=e,this.b=t,this.a=!1}function AWe(){this.a=";,;",this.b="",this.c=""}function LWe(e,t,n){this.b=e,GKe.call(this,t,n)}function Jce(e,t,n){this.c=e,DR.call(this,t,n)}function Qce(e,t,n){Mk.call(this,e,t),this.b=n}function Zce(e,t,n){G1e(n,0,e,t,n.length,!1)}function bh(e,t,n,i,s){e.b=t,e.c=n,e.d=i,e.a=s}function eue(e,t,n,i,s){e.d=t,e.c=n,e.a=i,e.b=s}function zjt(e,t){t&&(e.b=t,e.a=(Qp(t),t.a))}function tI(e,t){if(!e)throw B(new Qt(t))}function l4(e,t){if(!e)throw B(new ks(t))}function tue(e,t){if(!e)throw B(new HFe(t))}function Hjt(e,t){return MR(),yl(e.d.p,t.d.p)}function Kjt(e,t){return u1(),Kr(e.e.b,t.e.b)}function Ujt(e,t){return u1(),Kr(e.e.a,t.e.a)}function Gjt(e,t){return yl(XWe(e.d),XWe(t.d))}function EA(e,t){return t&&XA(e,t.d)?t:null}function Wjt(e,t){return t==(ze(),rn)?e.c:e.d}function nue(e){return rg(GDt(Hs(e)?_a(e):e))}function Vjt(e){return new Me(e.c+e.b,e.d+e.a)}function $We(e){return e!=null&&!gV(e,zx,Hx)}function qjt(e,t){return(gnt(e)<<4|gnt(t))&Di}function jWe(e,t,n,i,s){e.c=t,e.d=n,e.b=i,e.a=s}function rue(e){var t,n;t=e.b,n=e.c,e.b=n,e.c=t}function iue(e){var t,n;n=e.d,t=e.a,e.d=t,e.a=n}function Xjt(e,t){var n;return n=e.c,jfe(e,t),n}function oue(e,t){return t<0?e.g=-1:e.g=t,e}function TA(e,t){return rUt(e),e.a*=t,e.b*=t,e}function DWe(e,t,n){_Ze.call(this,t,n),this.d=e}function nI(e,t,n){xle.call(this,e,t),this.c=n}function IA(e,t,n){xle.call(this,e,t),this.c=n}function sue(e){Nce(),tR.call(this),this.ci(e)}function NWe(){Jk(),bNt.call(this,(Gp(),Wa))}function BWe(e){return Ir(),new wh(0,e)}function FWe(){FWe=U,_te=(Ot(),new iK(LJ))}function PA(){PA=U,new whe((mK(),WJ),(wK(),GJ))}function zWe(){zWe=U,xme=be(Oo,_e,17,256,0,1)}function HWe(){this.b=le(pe(Ke((uf(),EQ))))}function XU(e){this.b=e,this.a=a0(this.b.a).Od()}function KWe(e,t){this.b=e,this.a=t,XH.call(this)}function UWe(e,t){this.a=e,this.b=t,XH.call(this)}function GWe(e,t,n){this.a=e,Ty.call(this,t,n)}function WWe(e,t,n){this.a=e,Ty.call(this,t,n)}function Nk(e,t,n){var i;i=new Rm(n),$f(e,t,i)}function lue(e,t,n){var i;return i=e[t],e[t]=n,i}function MA(e){var t;return t=e.slice(),fW(t,e)}function OA(e){var t;return t=e.n,e.a.b+t.d+t.a}function VWe(e){var t;return t=e.n,e.e.b+t.d+t.a}function cue(e){var t;return t=e.n,e.e.a+t.b+t.c}function uue(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function or(e,t){return gi(e,t,e.c.b,e.c),!0}function Yjt(e){return e.a?e.a:SG(e)}function Jjt(e){return g4(),Sh(e)==ri(ug(e))}function Qjt(e){return g4(),ug(e)==ri(Sh(e))}function Db(e,t){return NS(e,new Mk(t.a,t.b))}function Zjt(e,t){return JA(),NV(e,t),new gqe(e,t)}function eDt(e,t){return e.c=t)throw B(new ose)}function Om(e,t){return QI(e,(sn(t),new bje(t)))}function u4(e,t){return QI(e,(sn(t),new wje(t)))}function RVe(e,t,n){return Tan(e,u(t,12),u(n,12))}function AVe(e){return Dc(),u(e,12).g.c.length!=0}function LVe(e){return Dc(),u(e,12).e.c.length!=0}function NDt(e,t){return x4(),Kr(t.a.o.a,e.a.o.a)}function BDt(e,t){t.Bb&wl&&!e.a.o&&(e.a.o=t)}function FDt(e,t){t.Ug("General 'Rotator",1),eun(e)}function zDt(e,t,n){t.qf(n,le(pe(pn(e.b,n)))*e.a)}function $Ve(e,t,n){return r2(),f5(e,t)&&f5(e,n)}function q7(e){return Qc(),!e.Hc(T1)&&!e.Hc($g)}function HDt(e){return e.e?Yae(e.e):null}function X7(e){return Hs(e)?""+e:zlt(e)}function Pue(e){var t;for(t=e;t.f;)t=t.f;return t}function KDt(e,t,n){return pi(t,0,pue(t[0],n[0])),t}function G1(e,t,n,i){var s;s=e.i,s.i=t,s.a=n,s.b=i}function Se(e,t,n,i){Ai.call(this,e,t,n),this.b=i}function ro(e,t,n,i,s){uW.call(this,e,t,n,i,s,-1)}function Y7(e,t,n,i,s){xI.call(this,e,t,n,i,s,-1)}function UA(e,t,n,i){nI.call(this,e,t,n),this.b=i}function jVe(e){AKe.call(this,e,!1),this.a=!1}function DVe(){dKe.call(this,"LOOKAHEAD_LAYOUT",1)}function NVe(e){this.b=e,n4.call(this,e),KUe(this)}function BVe(e){this.b=e,UT.call(this,e),UUe(this)}function _m(e,t,n){this.a=e,i4.call(this,t,n,5,6)}function Mue(e,t,n,i){this.b=e,Ai.call(this,t,n,i)}function FVe(e,t){this.b=e,W$e.call(this,e.b),this.a=t}function zVe(e){this.a=Trt(e.a),this.b=new Vc(e.b)}function Oue(e,t){Hb(),y_t.call(this,e,h$(new Wc(t)))}function GA(e,t){return Ir(),new Gue(e,t,0)}function cG(e,t){return Ir(),new Gue(6,e,t)}function To(e,t){for(sn(t);e.Ob();)t.Cd(e.Pb())}function rc(e,t){return lo(t)?_G(e,t):!!ss(e.f,t)}function uG(e,t){return t.Vh()?sg(e.b,u(t,54)):t}function UDt(e,t){return Et(e.substr(0,t.length),t)}function mh(e){return new gn(new Jle(e.a.length,e.a))}function WA(e){return new Me(e.c+e.b/2,e.d+e.a/2)}function GDt(e){return nc(~e.l&hu,~e.m&hu,~e.h&v1)}function aG(e){return typeof e===jP||typeof e===oX}function qc(e){e.f=new lUe(e),e.i=new cUe(e),++e.g}function HVe(e){if(!e)throw B(new qs);return e.d}function a4(e){var t;return t=vS(e),yn(t!=null),t}function WDt(e){var t;return t=cVt(e),yn(t!=null),t}function Fk(e,t){var n;return n=e.a.gc(),Gae(t,n),n-t}function Fi(e,t){var n;return n=e.a.zc(t,e),n==null}function iI(e,t){return e.a.zc(t,(Gt(),kg))==null}function _ue(e){return new xt(null,JDt(e,e.length))}function Rue(e,t,n){return fut(e,u(t,42),u(n,176))}function f4(e,t,n){return sf(e.a,t),lue(e.b,t.g,n)}function VDt(e,t,n){Bk(n,e.a.c.length),la(e.a,n,t)}function he(e,t,n,i){Htt(t,n,e.length),qDt(e,t,n,i)}function qDt(e,t,n,i){var s;for(s=t;s0?w.Math.log(e/t):-100}function UVe(e,t){return kl(e,t)<0?-1:kl(e,t)>0?1:0}function oI(e,t){$Ue(e,te(t,160)?t:u(t,2036).Rl())}function jue(e,t){if(e==null)throw B(new U3(t))}function JDt(e,t){return ZKt(t,e.length),new JWe(e,t)}function Due(e,t){return t?vo(e,t):!1}function QDt(){return gR(),H(F(dpt,1),Te,549,0,[XJ])}function Q7(e){return e.e==0?e:new d0(-e.e,e.d,e.a)}function ZDt(e,t){return Kr(e.c.c+e.c.b,t.c.c+t.c.b)}function sI(e,t){gi(e.d,t,e.b.b,e.b),++e.a,e.c=null}function GVe(e,t){return e.c?GVe(e.c,t):$e(e.b,t),e}function eNt(e,t,n){var i;return i=Bm(e,t),VG(e,t,n),i}function WVe(e,t,n){var i;for(i=0;i=e.g}function pi(e,t,n){return GAt(n==null||Bon(e,n)),e[t]=n}function Hue(e,t){return Zt(t,e.length+1),e.substr(t)}function yG(e,t){for(sn(t);e.c=e?new Bse:SUt(e-1)}function Io(e){return!e.a&&e.c?e.c.b:e.a}function Vue(e){return te(e,616)?e:new fXe(e)}function Qp(e){e.c?Qp(e.c):(lg(e),e.d=!0)}function tS(e){e.c?e.c.$e():(e.d=!0,znn(e))}function dqe(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function hqe(e){var t,n;return t=e.c.i.c,n=e.d.i.c,t==n}function vNt(e,t){var n;n=e.Ih(t),n>=0?e.ki(n):j1e(e,t)}function pqe(e,t){e.c<0||e.b.b0;)e=e<<1|(e<0?1:0);return e}function Cqe(e,t){var n;return n=new Ll(e),Ft(t.c,n),n}function Sqe(e,t){e.u.Hc((Qc(),T1))&&xen(e,t),HHt(e,t)}function gl(e,t){return fe(e)===fe(t)||e!=null&&Rr(e,t)}function gs(e,t){return eG(e.a,t)?e.b[u(t,22).g]:null}function RNt(){return PR(),H(F(pve,1),Te,489,0,[mQ])}function ANt(){return _R(),H(F(H6e,1),Te,490,0,[Hee])}function LNt(){return RR(),H(F(Q2t,1),Te,558,0,[Kee])}function $Nt(){return b7(),H(F(uke,1),Te,539,0,[oO])}function QA(e){return!e.n&&(e.n=new Se(ms,e,1,7)),e.n}function CG(e){return!e.c&&(e.c=new Se(ru,e,9,9)),e.c}function Jue(e){return!e.c&&(e.c=new jt(Tn,e,5,8)),e.c}function jNt(e){return!e.b&&(e.b=new jt(Tn,e,4,7)),e.b}function lI(e){return e.j.c.length=0,Zue(e.c),pLt(e.a),e}function Gk(e){return e.e==y8&&eOt(e,Oqt(e.g,e.b)),e.e}function cI(e){return e.f==y8&&nOt(e,kYt(e.g,e.b)),e.f}function yr(e,t,n,i){return qet(e,t,n,!1),p$(e,i),e}function xqe(e,t){this.b=e,fG.call(this,e,t),KUe(this)}function Eqe(e,t){this.b=e,$ce.call(this,e,t),UUe(this)}function nS(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function Que(e,t){this.b=e,this.c=t,this.a=new X3(this.b)}function Lo(e,t){return Zt(t,e.length),e.charCodeAt(t)}function DNt(e,t){Bde(e,le(a1(t,"x")),le(a1(t,"y")))}function NNt(e,t){Bde(e,le(a1(t,"x")),le(a1(t,"y")))}function Ar(e,t){return lg(e),new xt(e,new ufe(t,e.a))}function As(e,t){return lg(e),new xt(e,new qae(t,e.a))}function Am(e,t){return lg(e),new hce(e,new LJe(t,e.a))}function ZA(e,t){return lg(e),new pce(e,new $Je(t,e.a))}function BNt(e,t){return new Xqe(u(qn(e),50),u(qn(t),50))}function FNt(e,t){return Kr(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function Tqe(e,t,n){n.a?sc(e,t.b-e.f/2):oc(e,t.a-e.g/2)}function zNt(e,t){return Kr(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function HNt(e,t){return Hse(),Kr((sn(e),e),(sn(t),t))}function KNt(e){return e!=null&&kT(QB,e.toLowerCase())}function Zue(e){var t;for(t=e.Kc();t.Ob();)t.Pb(),t.Qb()}function jy(e){var t;return t=e.b,!t&&(e.b=t=new N$e(e)),t}function SG(e){var t;return t=IUt(e),t||null}function Iqe(e,t){var n,i;return n=e/t,i=Wi(n),n>i&&++i,i}function UNt(e,t,n){var i;i=u(e.d.Kb(n),159),i&&i.Nb(t)}function GNt(e,t,n){Vsn(e.a,n),xGt(n),ptn(e.b,n),hln(t,n)}function eL(e,t,n,i){this.a=e,this.c=t,this.b=n,this.d=i}function eae(e,t,n,i){this.c=e,this.b=t,this.a=n,this.d=i}function Pqe(e,t,n,i){this.c=e,this.b=t,this.d=n,this.a=i}function ia(e,t,n,i){this.c=e,this.d=t,this.b=n,this.a=i}function Mqe(e,t,n,i){this.a=e,this.d=t,this.c=n,this.b=i}function xG(e,t,n,i){this.a=e,this.e=t,this.d=n,this.c=i}function Oqe(e,t,n,i){this.a=e,this.c=t,this.d=n,this.b=i}function EG(e,t,n){this.a=Ige,this.d=e,this.b=t,this.c=n}function h4(e,t,n,i){Fn.call(this,e,t),this.a=n,this.b=i}function _qe(e,t){this.d=(sn(e),e),this.a=16449,this.c=t}function Rqe(e){this.a=new Le,this.e=be(Bn,_e,53,e,0,2)}function WNt(e){e.Ug("No crossing minimization",1),e.Vg()}function Aqe(){Xs.call(this,"There is no more element.")}function Lqe(e,t,n,i){this.a=e,this.b=t,this.c=n,this.d=i}function $qe(e,t,n,i){this.a=e,this.b=t,this.c=n,this.d=i}function p0(e,t,n,i){this.e=e,this.a=t,this.c=n,this.d=i}function jqe(e,t,n,i){this.a=e,this.c=t,this.d=n,this.b=i}function Dqe(e,t,n,i){na(),jJe.call(this,t,n,i),this.a=e}function Nqe(e,t,n,i){na(),jJe.call(this,t,n,i),this.a=e}function TG(e,t,n){var i,s;return i=hge(e),s=t.ti(n,i),s}function t1(e){var t,n;return n=(t=new yb,t),n5(n,e),n}function IG(e){var t,n;return n=(t=new yb,t),b1e(n,e),n}function VNt(e,t){var n;return n=pn(e.f,t),Xfe(t,n),null}function Bqe(e){return!e.b&&(e.b=new Se(Ti,e,12,3)),e.b}function Fqe(e){return U7(e==null||aG(e)&&e.Tm!==xe),e}function tL(e){return e.n&&(e.e!==Kat&&e.je(),e.j=null),e}function Wk(e){if(au(e.d),e.d.d!=e.c)throw B(new ea)}function tae(e){return yn(e.b0&&yit(this)}function zqe(e,t){this.a=e,WAt.call(this,e,u(e.d,15).fd(t))}function qNt(e,t){return Kr(Lc(e)*xu(e),Lc(t)*xu(t))}function XNt(e,t){return Kr(Lc(e)*xu(e),Lc(t)*xu(t))}function YNt(e){return fw(e)&&qe(Ve(Ie(e,(Ue(),X0))))}function JNt(e,t){return It(e,u(A(t,(Ue(),F8)),17),t)}function QNt(e,t){return u(A(e,(Oe(),c6)),15).Fc(t),t}function nae(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function Hqe(e,t,n,i){this.b=e,this.c=i,sA.call(this,t,n)}function ZNt(e,t,n){e.i=0,e.e=0,t!=n&&Itt(e,t,n)}function eBt(e,t,n){e.i=0,e.e=0,t!=n&&Ptt(e,t,n)}function tBt(e,t,n){return g7(),PVt(u(pn(e.e,t),529),n)}function p4(e){var t;return t=e.f,t||(e.f=new Tk(e,e.c))}function Kqe(e,t){return Wy(e.j,t.s,t.c)+Wy(t.e,e.s,e.c)}function Uqe(e,t){e.e&&!e.e.a&&(_Be(e.e,t),Uqe(e.e,t))}function Gqe(e,t){e.d&&!e.d.a&&(_Be(e.d,t),Gqe(e.d,t))}function nBt(e,t){return-Kr(Lc(e)*xu(e),Lc(t)*xu(t))}function rBt(e){return u(e.ld(),149).Pg()+":"+Us(e.md())}function Wqe(){sq(this,new poe),this.wb=(Jp(),Wt),Sk()}function Vqe(e){this.b=new Le,zi(this.b,this.b),this.a=e}function rae(e,t){new Zr,this.a=new _c,this.b=e,this.c=t}function Wb(){Wb=U,jme=new qt,rQ=new qt,Dme=new on}function Ot(){Ot=U,Jo=new ft,Rh=new Jt,FD=new un}function iae(){iae=U,Gpt=new Ro,Vpt=new vue,Wpt=new Ao}function g4(){g4=U,qD=new Le,CQ=new On,kQ=new Le}function nL(e,t){if(e==null)throw B(new U3(t));return e}function rL(e){return!e.a&&(e.a=new Se(xr,e,10,11)),e.a}function Dr(e){return!e.q&&(e.q=new Se(Ga,e,11,10)),e.q}function me(e){return!e.s&&(e.s=new Se(Tc,e,21,17)),e.s}function iBt(e){return qn(e),jrt(new gn(wn(e.a.Kc(),new j)))}function oBt(e,t){return Tu(e),Tu(t),zFe(u(e,22),u(t,22))}function g0(e,t,n){var i,s;i=Dce(n),s=new rR(i),$f(e,t,s)}function MG(e,t,n,i,s,c){xI.call(this,e,t,n,i,s,c?-2:-1)}function qqe(e,t,n,i){xle.call(this,t,n),this.b=e,this.a=i}function Xqe(e,t){TOt.call(this,new lG(e)),this.a=e,this.b=t}function oae(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function sBt(e){tf();var t;t=u(e.g,10),t.n.a=e.d.c+t.d.b}function Vk(){Vk=U;var e,t;t=!hqt(),e=new mt,QJ=t?new et:e}function OG(e){return Ot(),te(e,59)?new TK(e):new pA(e)}function iL(e){return te(e,16)?new G7(u(e,16)):Bjt(e.Kc())}function lBt(e){return new WUe(e,e.e.Rd().gc()*e.c.Rd().gc())}function cBt(e){return new VUe(e,e.e.Rd().gc()*e.c.Rd().gc())}function sae(e){return e&&e.hashCode?e.hashCode():$b(e)}function _G(e,t){return t==null?!!ss(e.f,null):xDt(e.i,t)}function uBt(e,t){var n;return n=Hle(e.a,t),n&&(t.d=null),n}function Yqe(e,t,n){return e.f?e.f.ef(t,n):!1}function uI(e,t,n,i){pi(e.c[t.g],n.g,i),pi(e.c[n.g],t.g,i)}function RG(e,t,n,i){pi(e.c[t.g],t.g,n),pi(e.b[t.g],t.g,i)}function aBt(e,t,n){return le(pe(n.a))<=e&&le(pe(n.b))>=t}function Jqe(e,t){this.g=e,this.d=H(F(Lh,1),fp,10,0,[t])}function Qqe(e){this.c=e,this.b=new z1(u(qn(new zs),50))}function Zqe(e){this.c=e,this.b=new z1(u(qn(new oEe),50))}function eXe(e){this.b=e,this.a=new z1(u(qn(new fr),50))}function tXe(){this.b=new _i,this.d=new Zr,this.e=new sse}function lae(){this.c=new po,this.d=new po,this.e=new po}function Vb(){this.a=new _c,this.b=(Nu(3,lv),new ql(3))}function W1(e,t){this.e=e,this.a=Ji,this.b=rct(t),this.c=t}function oL(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function nXe(e,t,n,i,s,c){this.a=e,xW.call(this,t,n,i,s,c)}function rXe(e,t,n,i,s,c){this.a=e,xW.call(this,t,n,i,s,c)}function Zp(e,t,n,i,s,c,d){return new XG(e.e,t,n,i,s,c,d)}function fBt(e,t,n){return n>=0&&Et(e.substr(n,t.length),t)}function iXe(e,t){return te(t,149)&&Et(e.b,u(t,149).Pg())}function dBt(e,t){return e.a?t.Gh().Kc():u(t.Gh(),71).Ii()}function oXe(e,t){var n;return n=e.b.Qc(t),ZYe(n,e.b.gc()),n}function aI(e,t){if(e==null)throw B(new U3(t));return e}function Ls(e){return e.u||(cu(e),e.u=new NGe(e,e)),e.u}function AG(e){this.a=(Ot(),te(e,59)?new TK(e):new pA(e))}function mc(e){var t;return t=u(Yt(e,16),29),t||e.ii()}function sL(e,t){var n;return n=l0(e.Rm),t==null?n:n+": "+t}function oa(e,t,n){return mo(t,n,e.length),e.substr(t,n-t)}function sXe(e,t){vA.call(this),mfe(this),this.a=e,this.c=t}function hBt(e){e&&sL(e,e.ie())}function pBt(e){mR(),w.setTimeout(function(){throw e},0)}function gBt(){return P$(),H(F(Gme,1),Te,436,0,[fQ,Ume])}function bBt(){return $L(),H(F(Vme,1),Te,435,0,[Wme,dQ])}function wBt(){return jL(),H(F(kve,1),Te,432,0,[SQ,XD])}function mBt(){return a5(),H(F(W0t,1),Te,517,0,[OM,DQ])}function vBt(){return bL(),H(F(i2e,1),Te,429,0,[hZ,r2e])}function yBt(){return LI(),H(F(Hye,1),Te,428,0,[EN,zye])}function kBt(){return IL(),H(F(Lye,1),Te,431,0,[Aye,QQ])}function CBt(){return RI(),H(F(Y3e,1),Te,430,0,[qZ,XZ])}function SBt(){return lS(),H(F(Dvt,1),Te,531,0,[fx,ax])}function xBt(){return JL(),H(F(W4e,1),Te,501,0,[gB,H2])}function EBt(){return Hd(),H(F(Uvt,1),Te,523,0,[Hw,mp])}function TBt(){return Zf(),H(F(Wvt,1),Te,522,0,[eb,wd])}function IBt(){return Af(),H(F(lyt,1),Te,528,0,[$v,Pg])}function PBt(){return II(),H(F(Gye,1),Te,488,0,[Uye,IN])}function MBt(){return kL(),H(F($6e,1),Te,491,0,[Bee,L6e])}function OBt(){return NW(),H(F(z6e,1),Te,492,0,[B6e,F6e])}function _Bt(){return hL(),H(F(G4e,1),Te,433,0,[wee,U4e])}function RBt(){return ML(),H(F(q4e,1),Te,434,0,[V4e,See])}function ABt(){return Xb(),H(F(pyt,1),Te,465,0,[Mg,B2])}function LBt(){return CI(),H(F(K6e,1),Te,438,0,[Uee,TB])}function $Bt(){return UI(),H(F(fke,1),Te,437,0,[PB,ake])}function jBt(){return KU(),H(F(KB,1),Te,347,0,[T5e,I5e])}function lL(e,t,n,i){return n>=0?e.Uh(t,n,i):e.Ch(null,n,i)}function fI(e){return e.b.b==0?e.a.sf():qU(e.b)}function DBt(e){if(e.p!=5)throw B(new Oc);return Vn(e.f)}function NBt(e){if(e.p!=5)throw B(new Oc);return Vn(e.k)}function cae(e){return fe(e.a)===fe((jW(),Pte))&&jln(e),e.a}function BBt(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=$A(e.c,e.b,e.a))}function FBt(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=$A(e.c,e.b,e.a))}function lXe(e,t){NMt(this,new Me(e.a,e.b)),BMt(this,eI(t))}function qb(){IOt.call(this,new q3(Fm(12))),Vle(!0),this.a=2}function LG(e,t,n){Ir(),vb.call(this,e),this.b=t,this.a=n}function uae(e,t,n){na(),uR.call(this,t),this.a=e,this.b=n}function cXe(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function zBt(e){return e.b==0?null:(yn(e.b!=0),ua(e,e.a.a))}function $l(e,t){return t==null?Rs(ss(e.f,null)):y7(e.i,t)}function uXe(e,t,n,i,s){return new cq(e,(e5(),lQ),t,n,i,s)}function cL(e,t){return YYe(t),fUt(e,be(Bn,ur,28,t,15,1),t)}function uL(e,t){return nL(e,"set1"),nL(t,"set2"),new Qze(e,t)}function HBt(e,t){var n=JJ[e.charCodeAt(0)];return n??e}function aXe(e,t){var n,i;return n=t,i=new Mn,But(e,n,i),i.d}function $G(e,t,n,i){var s;s=new zGe,t.a[n.g]=s,f4(e.b,i,s)}function KBt(e,t){var n;return n=cUt(e.f,t),Or(mA(n),e.f.d)}function dI(e){var t;vUt(e.a),wUe(e.a),t=new sR(e.a),Xde(t)}function UBt(e,t){Vlt(e,!0),ic(e.e.Rf(),new zce(e,!0,t))}function GBt(e,t){return g4(),e==ri(Sh(t))||e==ri(ug(t))}function WBt(e,t){return u1(),u(A(t,(sl(),ch)),17).a==e}function Wi(e){return Math.max(Math.min(e,Mr),-2147483648)|0}function fXe(e){this.a=u(qn(e),277),this.b=(Ot(),new ece(e))}function dXe(e,t,n){this.i=new Le,this.b=e,this.g=t,this.a=n}function aae(e,t,n){this.a=new Le,this.e=e,this.f=t,this.c=n}function aL(e,t,n){this.c=new Le,this.e=e,this.f=t,this.b=n}function hXe(e){vA.call(this),mfe(this),this.a=e,this.c=!0}function VBt(e){function t(){}return t.prototype=e||{},new t}function qBt(e){if(e.Ae())return null;var t=e.n;return LD[t]}function hI(e){return e.Db>>16!=3?null:u(e.Cb,27)}function Qf(e){return e.Db>>16!=9?null:u(e.Cb,27)}function pXe(e){return e.Db>>16!=6?null:u(e.Cb,74)}function Xb(){Xb=U,Mg=new dle(U4,0),B2=new dle(G4,1)}function Hd(){Hd=U,Hw=new ule(G4,0),mp=new ule(U4,1)}function Zf(){Zf=U,eb=new ale(GX,0),wd=new ale("UP",1)}function gXe(){gXe=U,hpt=Hn((gR(),H(F(dpt,1),Te,549,0,[XJ])))}function bXe(e){var t;return t=new CR(Fm(e.length)),cde(t,e),t}function wXe(e,t){return e.b+=t.b,e.c+=t.c,e.d+=t.d,e.a+=t.a,e}function XBt(e,t){return ott(e,t)?(ZZe(e),!0):!1}function n1(e,t){if(t==null)throw B(new B3);return gqt(e,t)}function pI(e,t){var n;n=e.q.getHours(),e.q.setDate(t),QS(e,n)}function fae(e,t,n){var i;i=e.Ih(t),i>=0?e.bi(i,n):upe(e,t,n)}function mXe(e,t){var n;return n=e.Ih(t),n>=0?e.Wh(n):pq(e,t)}function vXe(e,t){var n;for(qn(t),n=e.a;n;n=n.c)t.Yd(n.g,n.i)}function jG(e,t,n){var i;i=Ett(e,t,n),e.b=new ZL(i.c.length)}function Dy(e,t,n){fL(),e&&vr(Ete,e,t),e&&vr(IO,e,n)}function YBt(e,t){return xA(),Gt(),u(t.a,17).a0}function dae(e){var t;return t=e.d,t=e.bj(e.f),Dn(e,t),t.Ob()}function yXe(e,t){var n;return n=new bue(t),Vit(n,e),new Vc(n)}function ZBt(e){if(e.p!=0)throw B(new Oc);return R7(e.f,0)}function eFt(e){if(e.p!=0)throw B(new Oc);return R7(e.k,0)}function kXe(e){return e.Db>>16!=7?null:u(e.Cb,241)}function qk(e){return e.Db>>16!=6?null:u(e.Cb,241)}function CXe(e){return e.Db>>16!=7?null:u(e.Cb,167)}function ri(e){return e.Db>>16!=11?null:u(e.Cb,27)}function Lm(e){return e.Db>>16!=17?null:u(e.Cb,29)}function SXe(e){return e.Db>>16!=3?null:u(e.Cb,155)}function hae(e){var t;return lg(e),t=new _i,Ar(e,new Mje(t))}function xXe(e,t){var n=e.a=e.a||[];return n[t]||(n[t]=e.ve(t))}function tFt(e,t){var n;n=e.q.getHours(),e.q.setMonth(t),QS(e,n)}function EXe(e,t){dA(this),this.f=t,this.g=e,tL(this),this.je()}function TXe(e,t){this.a=e,this.c=Eo(this.a),this.b=new oL(t)}function IXe(e,t,n){this.a=t,this.c=e,this.b=(qn(n),new Vc(n))}function PXe(e,t,n){this.a=t,this.c=e,this.b=(qn(n),new Vc(n))}function MXe(e){this.a=e,this.b=be(Lvt,_e,2043,e.e.length,0,2)}function OXe(){this.a=new Dd,this.e=new _i,this.g=0,this.i=0}function fL(){fL=U,Ete=new On,IO=new On,X_t(_pt,new vRe)}function _Xe(){_Xe=U,mvt=$c(new Li,($o(),Ns),(Uo(),_M))}function pae(){pae=U,vvt=$c(new Li,($o(),Ns),(Uo(),_M))}function RXe(){RXe=U,kvt=$c(new Li,($o(),Ns),(Uo(),_M))}function AXe(){AXe=U,Bvt=cr(new Li,($o(),Ns),(Uo(),K9))}function Lu(){Lu=U,Hvt=cr(new Li,($o(),Ns),(Uo(),K9))}function LXe(){LXe=U,Kvt=cr(new Li,($o(),Ns),(Uo(),K9))}function NG(){NG=U,qvt=cr(new Li,($o(),Ns),(Uo(),K9))}function rS(e,t,n,i,s,c){return new l1(e.e,t,e.Lj(),n,i,s,c)}function Cs(e,t,n){return t==null?Jl(e.f,null,n):ow(e.i,t,n)}function zo(e,t){e.c&&vc(e.c.g,e),e.c=t,e.c&&$e(e.c.g,e)}function bo(e,t){e.c&&vc(e.c.a,e),e.c=t,e.c&&$e(e.c.a,e)}function Js(e,t){e.i&&vc(e.i.j,e),e.i=t,e.i&&$e(e.i.j,e)}function ao(e,t){e.d&&vc(e.d.e,e),e.d=t,e.d&&$e(e.d.e,e)}function BG(e,t){e.a&&vc(e.a.k,e),e.a=t,e.a&&$e(e.a.k,e)}function FG(e,t){e.b&&vc(e.b.f,e),e.b=t,e.b&&$e(e.b.f,e)}function $Xe(e,t){hNt(e,e.b,e.c),u(e.b.b,68),t&&u(t.b,68).b}function nFt(e,t){return Kr(u(e.c,65).c.e.b,u(t.c,65).c.e.b)}function rFt(e,t){return Kr(u(e.c,65).c.e.a,u(t.c,65).c.e.a)}function iFt(e){return nV(),Gt(),u(e.a,86).d.e!=0}function dL(e,t){te(e.Cb,184)&&(u(e.Cb,184).tb=null),Xl(e,t)}function zG(e,t){te(e.Cb,90)&&Zm(cu(u(e.Cb,90)),4),Xl(e,t)}function oFt(e,t){Fde(e,t),te(e.Cb,90)&&Zm(cu(u(e.Cb,90)),2)}function sFt(e,t){var n,i;n=t.c,i=n!=null,i&&d4(e,new Rm(t.c))}function jXe(e){var t,n;return n=(Sk(),t=new yb,t),n5(n,e),n}function DXe(e){var t,n;return n=(Sk(),t=new yb,t),n5(n,e),n}function NXe(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function lFt(e,t,n){return $e(e.a,(JA(),NV(t,n),new Ib(t,n))),e}function jl(e,t){return rs(),bW(t)?new _A(t,e):new BT(t,e)}function gI(e){return Vd(),kl(e,0)>=0?cg(e):Q7(cg(J1(e)))}function cFt(e){var t;return t=u(MA(e.b),9),new ra(e.a,t,e.c)}function BXe(e,t){var n;return n=u(Gm(p4(e.a),t),16),n?n.gc():0}function FXe(e,t,n){var i;hnt(t,n,e.c.length),i=n-t,jse(e.c,t,i)}function V1(e,t,n){hnt(t,n,e.gc()),this.c=e,this.a=t,this.b=n-t}function b4(e){this.c=new Zr,this.b=e.b,this.d=e.c,this.a=e.a}function HG(e){this.a=w.Math.cos(e),this.b=w.Math.sin(e)}function b0(e,t,n,i){this.c=e,this.d=i,BG(this,t),FG(this,n)}function gae(e,t){EOt.call(this,new q3(Fm(e))),Nu(t,Dat),this.a=t}function zXe(e,t,n){return new cq(e,(e5(),sQ),null,!1,t,n)}function HXe(e,t,n){return new cq(e,(e5(),cQ),t,n,null,!1)}function uFt(){return Jc(),H(F(Ts,1),Te,108,0,[Kme,Ws,bv])}function aFt(){return yc(),H(F(ngt,1),Te,472,0,[zf,Sg,df])}function fFt(){return Yc(),H(F(egt,1),Te,471,0,[oh,Cg,ff])}function dFt(){return jf(),H(F(wv,1),Te,237,0,[ul,Ql,al])}function hFt(){return aS(),H(F(jve,1),Te,391,0,[IQ,TQ,PQ])}function pFt(){return nw(),H(F(KQ,1),Te,372,0,[Ow,xg,Mw])}function gFt(){return hS(),H(F(jye,1),Te,322,0,[G9,LM,$ye])}function bFt(){return UL(),H(F(Nye,1),Te,351,0,[Dye,xN,ZQ])}function wFt(){return E0(),H(F(Sbt,1),Te,460,0,[nZ,L8,I2])}function mFt(){return g5(),H(F(dZ,1),Te,299,0,[aZ,fZ,$M])}function vFt(){return c1(),H(F(_bt,1),Te,311,0,[jM,M2,o6])}function yFt(){return SS(),H(F(F3e,1),Te,390,0,[zZ,B3e,tB])}function kFt(){return ls(),H(F(fvt,1),Te,463,0,[lx,eu,Zl])}function CFt(){return i$(),H(F(Z3e,1),Te,387,0,[J3e,YZ,Q3e])}function SFt(){return yS(),H(F(e4e,1),Te,349,0,[QZ,JZ,VM])}function xFt(){return S5(),H(F(n4e,1),Te,350,0,[ZZ,t4e,cx])}function EFt(){return KL(),H(F(o4e,1),Te,352,0,[i4e,eee,r4e])}function TFt(){return c$(),H(F(s4e,1),Te,388,0,[tee,V8,Lv])}function IFt(){return tw(),H(F(Rvt,1),Te,464,0,[qM,ux,oB])}function ed(e){return Zs(H(F(to,1),_e,8,0,[e.i.n,e.n,e.a]))}function PFt(){return kS(),H(F(S4e,1),Te,392,0,[C4e,iee,YM])}function KXe(){KXe=U,Kyt=$c(new Li,(A4(),hx),(YS(),h4e))}function hL(){hL=U,wee=new hle("DFS",0),U4e=new hle("BFS",1)}function UXe(e,t,n){var i;i=new IMe,i.b=t,i.a=n,++t.b,$e(e.d,i)}function MFt(e,t,n){var i;i=new Vo(n.d),Or(i,e),Bde(t,i.a,i.b)}function OFt(e,t){DUe(e,Vn(Yi(Bb(t,24),Pj)),Vn(Yi(t,Pj)))}function $m(e,t){if(e<0||e>t)throw B(new ys(jge+e+Dge+t))}function _t(e,t){if(e<0||e>=t)throw B(new ys(jge+e+Dge+t))}function Zt(e,t){if(e<0||e>=t)throw B(new Sse(jge+e+Dge+t))}function Pt(e,t){this.b=(sn(e),e),this.a=t&cv?t:t|64|Xd}function bae(e){var t;return lg(e),t=(Wb(),Wb(),rQ),BL(e,t)}function _Ft(e,t,n){var i;return i=t9(e,t,!1),i.b<=t&&i.a<=n}function RFt(){return OL(),H(F(N6e,1),Te,439,0,[Fee,D6e,j6e])}function AFt(){return w$(),H(F(v6e,1),Te,394,0,[m6e,$ee,w6e])}function LFt(){return S$(),H(F(b6e,1),Te,445,0,[tO,vB,Mee])}function $Ft(){return L$(),H(F(y2t,1),Te,456,0,[Oee,Ree,_ee])}function jFt(){return qI(),H(F(J4e,1),Te,393,0,[bB,X4e,Y4e])}function DFt(){return r$(),H(F(g6e,1),Te,300,0,[Pee,p6e,h6e])}function NFt(){return f1(),H(F(m5e,1),Te,346,0,[jB,Cp,Rx])}function BFt(){return eP(),H(F(zee,1),Te,444,0,[SB,xB,EB])}function FFt(){return od(),H(F(s5e,1),Te,278,0,[eC,Bv,tC])}function zFt(){return I4(),H(F(E5e,1),Te,280,0,[x5e,zv,HB])}function Yb(e){return qn(e),te(e,16)?new Vc(u(e,16)):Dk(e.Kc())}function wae(e,t){return e&&e.equals?e.equals(t):fe(e)===fe(t)}function Yi(e,t){return rg(ADt(Hs(e)?_a(e):e,Hs(t)?_a(t):t))}function Rf(e,t){return rg(LDt(Hs(e)?_a(e):e,Hs(t)?_a(t):t))}function KG(e,t){return rg($Dt(Hs(e)?_a(e):e,Hs(t)?_a(t):t))}function HFt(e,t){var n;return n=(sn(e),e).g,fce(!!n),sn(t),n(t)}function GXe(e,t){var n,i;return i=Fk(e,t),n=e.a.fd(i),new Yze(e,n)}function KFt(e){return e.Db>>16!=6?null:u(wq(e),241)}function UFt(e){if(e.p!=2)throw B(new Oc);return Vn(e.f)&Di}function GFt(e){if(e.p!=2)throw B(new Oc);return Vn(e.k)&Di}function D(e){return yn(e.ai?1:0}function XXe(e,t){var n,i;return n=dW(t),i=n,u(pn(e.c,i),17).a}function UG(e,t,n){var i;i=e.d[t.p],e.d[t.p]=e.d[n.p],e.d[n.p]=i}function nzt(e,t,n){var i;e.n&&t&&n&&(i=new aRe,$e(e.e,i))}function GG(e,t){if(Fi(e.a,t),t.d)throw B(new Xs(sft));t.d=e}function yae(e,t){this.a=new Le,this.d=new Le,this.f=e,this.c=t}function YXe(){this.c=new AUe,this.a=new BJe,this.b=new JBe,gHe()}function JXe(){E4(),this.b=new On,this.a=new On,this.c=new Le}function QXe(e,t,n){this.d=e,this.j=t,this.e=n,this.o=-1,this.p=3}function ZXe(e,t,n){this.d=e,this.k=t,this.f=n,this.o=-1,this.p=5}function eYe(e,t,n,i,s,c){yfe.call(this,e,t,n,i,s),c&&(this.o=-2)}function tYe(e,t,n,i,s,c){kfe.call(this,e,t,n,i,s),c&&(this.o=-2)}function nYe(e,t,n,i,s,c){Nae.call(this,e,t,n,i,s),c&&(this.o=-2)}function rYe(e,t,n,i,s,c){xfe.call(this,e,t,n,i,s),c&&(this.o=-2)}function iYe(e,t,n,i,s,c){Bae.call(this,e,t,n,i,s),c&&(this.o=-2)}function oYe(e,t,n,i,s,c){Cfe.call(this,e,t,n,i,s),c&&(this.o=-2)}function sYe(e,t,n,i,s,c){Sfe.call(this,e,t,n,i,s),c&&(this.o=-2)}function lYe(e,t,n,i,s,c){Fae.call(this,e,t,n,i,s),c&&(this.o=-2)}function cYe(e,t,n,i){uR.call(this,n),this.b=e,this.c=t,this.d=i}function uYe(e,t){this.f=e,this.a=(Jk(),tF),this.c=tF,this.b=t}function aYe(e,t){this.g=e,this.d=(Jk(),nF),this.a=nF,this.b=t}function kae(e,t){!e.c&&(e.c=new vi(e,0)),mj(e.c,(zr(),Ux),t)}function rzt(e,t){return Btn(e,t,te(t,102)&&(u(t,19).Bb&es)!=0)}function izt(e,t){return UVe(bl(e.q.getTime()),bl(t.q.getTime()))}function fYe(e){return JU(e.e.Rd().gc()*e.c.Rd().gc(),16,new $$e(e))}function ozt(e){return!!e.u&&Pl(e.u.a).i!=0&&!(e.n&&LV(e.n))}function szt(e){return!!e.a&&uu(e.a.a).i!=0&&!(e.b&&$V(e.b))}function Cae(e,t){return t==0?!!e.o&&e.o.f!=0:PV(e,t)}function lzt(e,t,n){var i;return i=u(e.Zb().xc(t),16),!!i&&i.Hc(n)}function dYe(e,t,n){var i;return i=u(e.Zb().xc(t),16),!!i&&i.Mc(n)}function hYe(e,t){var n;return n=1-t,e.a[n]=QL(e.a[n],n),QL(e,t)}function pYe(e,t){var n,i;return i=Yi(e,us),n=nf(t,32),Rf(n,i)}function gYe(e,t,n){var i;i=(qn(e),new Vc(e)),uYt(new IXe(i,t,n))}function bI(e,t,n){var i;i=(qn(e),new Vc(e)),aYt(new PXe(i,t,n))}function il(e,t,n,i,s,c){return qet(e,t,n,c),_de(e,i),Rde(e,s),e}function bYe(e,t,n,i){return e.a+=""+oa(t==null?Cc:Us(t),n,i),e}function wo(e,t){this.a=e,e7.call(this,e),$m(t,e.gc()),this.b=t}function wYe(e){this.a=be(Ji,Bt,1,ide(w.Math.max(8,e))<<1,5,1)}function wI(e){return u(ld(e,be(Lh,fp,10,e.c.length,0,1)),199)}function Kd(e){return u(ld(e,be($Q,cY,18,e.c.length,0,1)),483)}function mYe(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function iS(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function vYe(e){return yn(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function czt(e,t,n){e.a=t,e.c=n,e.b.a.$b(),Au(e.d),mm(e.e.a.c,0)}function yYe(e,t){var n;e.e=new hse,n=tv(t),Mi(n,e.c),jlt(e,n,0)}function $i(e,t,n,i){var s;s=new loe,s.a=t,s.b=n,s.c=i,or(e.a,s)}function Re(e,t,n,i){var s;s=new loe,s.a=t,s.b=n,s.c=i,or(e.b,s)}function kYe(e,t,n){if(e<0||tn)throw B(new ys(kZt(e,t,n)))}function mI(e,t){if(e<0||e>=t)throw B(new ys(QZt(e,t)));return e}function uzt(e){if(!("stack"in e))try{throw e}catch{}return e}function Ny(e){return g7(),te(e.g,10)?u(e.g,10):null}function azt(e){return jy(e).dc()?!1:(ARt(e,new Z),!0)}function m0(e){var t;return Hs(e)?(t=e,t==-0?0:t):EKt(e)}function CYe(e,t){return te(t,44)?FV(e.a,u(t,44)):!1}function SYe(e,t){return te(t,44)?FV(e.a,u(t,44)):!1}function xYe(e,t){return te(t,44)?FV(e.a,u(t,44)):!1}function Sae(e){var t;return Qp(e),t=new Rt,yy(e.a,new Tje(t)),t}function xae(){var e,t,n;return t=(n=(e=new yb,e),n),$e(l8e,t),t}function pL(e){var t;return Qp(e),t=new an,yy(e.a,new Ije(t)),t}function fzt(e,t){return e.a<=e.b?(t.Dd(e.a++),!0):!1}function EYe(e){AW.call(this,e,(e5(),oQ),null,!1,null,!1)}function TYe(){TYe=U,Lgt=Hn((PR(),H(F(pve,1),Te,489,0,[mQ])))}function IYe(){IYe=U,c4e=vqe(Ae(1),Ae(4)),l4e=vqe(Ae(1),Ae(2))}function dzt(e,t){return new GU(t,z7(Eo(t.e),e,e),(Gt(),!0))}function gL(e){return new ql((Nu(e,uX),DL(Ho(Ho(5,e),e/10|0))))}function hzt(e){return JU(e.e.Rd().gc()*e.c.Rd().gc(),273,new L$e(e))}function PYe(e){return u(ld(e,be(K0t,Nft,12,e.c.length,0,1)),2042)}function pzt(e){return Lu(),!Zo(e)&&!(!Zo(e)&&e.c.i.c==e.d.i.c)}function gzt(e,t){return S4(),u(A(t,(sl(),F2)),17).a>=e.gc()}function oS(e,t){Jun(t,e),rue(e.d),rue(u(A(e,(Ue(),qN)),214))}function WG(e,t){Qun(t,e),iue(e.d),iue(u(A(e,(Ue(),qN)),214))}function bzt(e,t,n){e.d&&vc(e.d.e,e),e.d=t,e.d&&Nb(e.d.e,n,e)}function wzt(e,t,n){return n.f.c.length>0?Rue(e.a,t,n):Rue(e.b,t,n)}function mzt(e,t,n){var i;i=$qt();try{return oLt(e,t,n)}finally{aHt(i)}}function Jb(e,t){var n,i;return n=n1(e,t),i=null,n&&(i=n.pe()),i}function sS(e,t){var n,i;return n=n1(e,t),i=null,n&&(i=n.se()),i}function Xk(e,t){var n,i;return n=Bm(e,t),i=null,n&&(i=n.se()),i}function r1(e,t){var n,i;return n=n1(e,t),i=null,n&&(i=S1e(n)),i}function vzt(e,t,n){var i;return i=_5(n),hj(e.g,i,t),hj(e.i,t,n),t}function Eae(e,t,n){this.d=new BDe(this),this.e=e,this.i=t,this.f=n}function MYe(e,t,n,i){this.e=null,this.c=e,this.d=t,this.a=n,this.b=i}function OYe(e,t,n,i){IUe(this),this.c=e,this.e=t,this.f=n,this.b=i}function Tae(e,t,n,i){this.d=e,this.n=t,this.g=n,this.o=i,this.p=-1}function _Ye(e,t,n,i){return te(n,59)?new lGe(e,t,n,i):new Tue(e,t,n,i)}function Yk(e){return te(e,16)?u(e,16).dc():!e.Kc().Ob()}function RYe(e){if(e.e.g!=e.b)throw B(new ea);return!!e.c&&e.d>0}function _n(e){return yn(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function Iae(e,t){sn(t),pi(e.a,e.c,t),e.c=e.c+1&e.a.length-1,nit(e)}function eg(e,t){sn(t),e.b=e.b-1&e.a.length-1,pi(e.a,e.b,t),nit(e)}function AYe(e){var t;t=e.Gh(),this.a=te(t,71)?u(t,71).Ii():t.Kc()}function yzt(e){return new Pt(oUt(u(e.a.md(),16).gc(),e.a.ld()),16)}function LYe(){LYe=U,J2t=Hn((_R(),H(F(H6e,1),Te,490,0,[Hee])))}function $Ye(){$Ye=U,Z2t=Hn((RR(),H(F(Q2t,1),Te,558,0,[Kee])))}function jYe(){jYe=U,w3t=Hn((b7(),H(F(uke,1),Te,539,0,[oO])))}function kzt(){return P0(),H(F(Fve,1),Te,389,0,[yv,Bve,AQ,LQ])}function Czt(){return e5(),H(F(zD,1),Te,304,0,[oQ,sQ,lQ,cQ])}function Szt(){return O4(),H(F(Mgt,1),Te,332,0,[SM,CM,xM,EM])}function xzt(){return LS(),H(F(Rgt,1),Te,406,0,[TM,GD,WD,IM])}function Ezt(){return iw(),H(F(Igt,1),Te,417,0,[kM,yM,bQ,wQ])}function Tzt(){return b5(),H(F(_0t,1),Te,416,0,[Pw,vv,mv,C2])}function Izt(){return sd(),H(F(lbt,1),Te,421,0,[i6,I8,P8,HQ])}function Pzt(){return l$(),H(F(Y0t,1),Te,371,0,[zQ,mN,vN,RM])}function Mzt(){return qm(),H(F(KZ,1),Te,203,0,[nB,HZ,N2,D2])}function Ozt(){return Gd(),H(F(X3e,1),Te,284,0,[wp,q3e,WZ,VZ])}function _zt(e){var t;return e.j==(ze(),Pn)&&(t=xst(e),Ac(t,fn))}function Rzt(e,t){var n;n=t.a,zo(n,t.c.d),ao(n,t.d.d),Km(n.a,e.n)}function Pae(e,t){var n;return n=u(id(e.b,t),67),!n&&(n=new Zr),n}function m4(e){return g7(),te(e.g,154)?u(e.g,154):null}function Azt(e){e.a=null,e.e=null,mm(e.b.c,0),mm(e.f.c,0),e.c=null}function bL(){bL=U,hZ=new sle(o8,0),r2e=new sle("TOP_LEFT",1)}function lS(){lS=U,fx=new cle("UPPER",0),ax=new cle("LOWER",1)}function Lzt(e,t){return t4(new Me(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)}function DYe(e,t){return u(Cu(Om(u($r(e.k,t),15).Oc(),x2)),113)}function NYe(e,t){return u(Cu(u4(u($r(e.k,t),15).Oc(),x2)),113)}function $zt(){return A4(),H(F(f4e,1),Te,405,0,[uB,dx,hx,px])}function jzt(){return CS(),H(F(K4e,1),Te,353,0,[bee,pB,gee,pee])}function Dzt(){return N$(),H(F(d6e,1),Te,354,0,[Iee,a6e,f6e,u6e])}function Nzt(){return Iu(),H(F(Dx,1),Te,386,0,[kO,sb,yO,Fv])}function Bzt(){return Fu(),H(F(i4t,1),Te,291,0,[wO,Dh,Rg,bO])}function Fzt(){return d1(),H(F(bte,1),Te,223,0,[gte,gO,nC,v6])}function zzt(){return v$(),H(F(_5e,1),Te,320,0,[vte,P5e,O5e,M5e])}function Hzt(){return u$(),H(F(k4t,1),Te,415,0,[yte,A5e,R5e,L5e])}function Kzt(e){return fL(),rc(Ete,e)?u(pn(Ete,e),341).Qg():null}function sa(e,t,n){return t<0?pq(e,n):u(n,69).wk().Bk(e,e.hi(),t)}function Uzt(e,t,n){var i;return i=_5(n),hj(e.j,i,t),vr(e.k,t,n),t}function Gzt(e,t,n){var i;return i=_5(n),hj(e.d,i,t),vr(e.e,t,n),t}function BYe(e){var t,n;return t=(Up(),n=new WH,n),e&&rj(t,e),t}function Mae(e){var t;return t=e.aj(e.i),e.i>0&&Ol(e.g,0,t,0,e.i),t}function FYe(e,t){var n;for(n=e.j.c.length;n>24}function Vzt(e){if(e.p!=1)throw B(new Oc);return Vn(e.k)<<24>>24}function qzt(e){if(e.p!=7)throw B(new Oc);return Vn(e.k)<<16>>16}function Xzt(e){if(e.p!=7)throw B(new Oc);return Vn(e.f)<<16>>16}function By(e,t){return t.e==0||e.e==0?N9:(K5(),Sq(e,t))}function KYe(e,t){return fe(t)===fe(e)?"(this Map)":t==null?Cc:Us(t)}function Yzt(e,t,n){return sG(pe(Rs(ss(e.f,t))),pe(Rs(ss(e.f,n))))}function Jzt(e,t,n){var i;i=u(pn(e.g,n),60),$e(e.a.c,new Gi(t,i))}function UYe(e,t,n){e.i=0,e.e=0,t!=n&&(Ptt(e,t,n),Itt(e,t,n))}function Qzt(e,t,n,i,s){var c;c=Ztn(s,n,i),$e(t,GZt(s,c)),jQt(e,s,t)}function Oae(e,t,n,i,s){this.i=e,this.a=t,this.e=n,this.j=i,this.f=s}function GYe(e,t){lae.call(this),this.a=e,this.b=t,$e(this.a.b,this)}function WYe(e){this.b=new On,this.c=new On,this.d=new On,this.a=e}function VYe(e,t){var n;return n=new V3,e.Gd(n),n.a+="..",t.Hd(n),n.a}function qYe(e,t){var n;for(n=t;n;)jb(e,n.i,n.j),n=ri(n);return e}function XYe(e,t,n){var i;return i=_5(n),vr(e.b,i,t),vr(e.c,t,n),t}function i1(e){var t;for(t=0;e.Ob();)e.Pb(),t=Ho(t,1);return DL(t)}function yh(e,t){rs();var n;return n=u(e,69).vk(),QQt(n,t),n.xl(t)}function Zzt(e,t,n){if(n){var i=n.oe();e.a[t]=i(n)}else delete e.a[t]}function _ae(e,t){var n;n=e.q.getHours(),e.q.setFullYear(t+gg),QS(e,n)}function eHt(e,t){return u(t==null?Rs(ss(e.f,null)):y7(e.i,t),288)}function Rae(e,t){return e==(nn(),Ei)&&t==Ei?4:e==Ei||t==Ei?8:32}function wL(e,t,n){return gj(e,t,n,te(t,102)&&(u(t,19).Bb&es)!=0)}function tHt(e,t,n){return V5(e,t,n,te(t,102)&&(u(t,19).Bb&es)!=0)}function nHt(e,t,n){return Wtn(e,t,n,te(t,102)&&(u(t,19).Bb&es)!=0)}function Aae(e){e.b!=e.c&&(e.a=be(Ji,Bt,1,8,5,1),e.b=0,e.c=0)}function cS(e){return yn(e.a=0&&e.a[n]===t[n];n--);return n<0}function mL(e){var t;return e?new bue(e):(t=new Dd,_W(t,e),t)}function uHt(e,t){var n,i;i=!1;do n=wtt(e,t),i=i|n;while(n);return i}function aHt(e){e&&jKt((vse(),gme)),--$D,e&&jD!=-1&&(tRt(jD),jD=-1)}function vL(e){l1e(),DUe(this,Vn(Yi(Bb(e,24),Pj)),Vn(Yi(e,Pj)))}function eJe(){eJe=U,qpt=Hn((P$(),H(F(Gme,1),Te,436,0,[fQ,Ume])))}function tJe(){tJe=U,Xpt=Hn(($L(),H(F(Vme,1),Te,435,0,[Wme,dQ])))}function nJe(){nJe=U,Jgt=Hn((jL(),H(F(kve,1),Te,432,0,[SQ,XD])))}function rJe(){rJe=U,V0t=Hn((a5(),H(F(W0t,1),Te,517,0,[OM,DQ])))}function iJe(){iJe=U,Abt=Hn((bL(),H(F(i2e,1),Te,429,0,[hZ,r2e])))}function oJe(){oJe=U,Cbt=Hn((LI(),H(F(Hye,1),Te,428,0,[EN,zye])))}function sJe(){sJe=U,Tbt=Hn((II(),H(F(Gye,1),Te,488,0,[Uye,IN])))}function lJe(){lJe=U,avt=Hn((RI(),H(F(Y3e,1),Te,430,0,[qZ,XZ])))}function cJe(){cJe=U,Nvt=Hn((lS(),H(F(Dvt,1),Te,531,0,[fx,ax])))}function uJe(){uJe=U,mbt=Hn((IL(),H(F(Lye,1),Te,431,0,[Aye,QQ])))}function aJe(){aJe=U,Hyt=Hn((hL(),H(F(G4e,1),Te,433,0,[wee,U4e])))}function fJe(){fJe=U,Vyt=Hn((JL(),H(F(W4e,1),Te,501,0,[gB,H2])))}function dJe(){dJe=U,Gvt=Hn((Hd(),H(F(Uvt,1),Te,523,0,[Hw,mp])))}function hJe(){hJe=U,Vvt=Hn((Zf(),H(F(Wvt,1),Te,522,0,[eb,wd])))}function pJe(){pJe=U,cyt=Hn((Af(),H(F(lyt,1),Te,528,0,[$v,Pg])))}function gJe(){gJe=U,gyt=Hn((Xb(),H(F(pyt,1),Te,465,0,[Mg,B2])))}function bJe(){bJe=U,Yyt=Hn((ML(),H(F(q4e,1),Te,434,0,[V4e,See])))}function wJe(){wJe=U,G2t=Hn((kL(),H(F($6e,1),Te,491,0,[Bee,L6e])))}function mJe(){mJe=U,V2t=Hn((NW(),H(F(z6e,1),Te,492,0,[B6e,F6e])))}function vJe(){vJe=U,e3t=Hn((CI(),H(F(K6e,1),Te,438,0,[Uee,TB])))}function yJe(){yJe=U,m3t=Hn((UI(),H(F(fke,1),Te,437,0,[PB,ake])))}function kJe(){kJe=U,m4t=Hn((KU(),H(F(KB,1),Te,347,0,[T5e,I5e])))}function fHt(){return ji(),H(F(Ox,1),Te,88,0,[yd,Bs,Ps,vd,Ca])}function dHt(){return ze(),H(F(ts,1),Sl,64,0,[nl,en,fn,Pn,rn])}function hHt(e,t,n){return u(t==null?Jl(e.f,null,n):ow(e.i,t,n),288)}function pHt(e){return(e.k==(nn(),Ei)||e.k==Oi)&&Xr(e,(Oe(),X9))}function JG(e){return e.c&&e.d?vae(e.c)+"->"+vae(e.d):"e_"+$b(e)}function Po(e,t){var n,i;for(sn(t),i=e.Kc();i.Ob();)n=i.Pb(),t.Cd(n)}function gHt(e,t){var n;n=new K3,g0(n,"x",t.a),g0(n,"y",t.b),d4(e,n)}function bHt(e,t){var n;n=new K3,g0(n,"x",t.a),g0(n,"y",t.b),d4(e,n)}function CJe(e,t){var n;for(n=t;n;)jb(e,-n.i,-n.j),n=ri(n);return e}function $ae(e,t){var n,i;for(n=t,i=0;n>0;)i+=e.a[n],n-=n&-n;return i}function la(e,t,n){var i;return i=(_t(t,e.c.length),e.c[t]),e.c[t]=n,i}function jae(e,t,n){e.a.c.length=0,zln(e,t,n),e.a.c.length==0||pon(e,t)}function vI(e){e.i=0,ET(e.b,null),ET(e.c,null),e.a=null,e.e=null,++e.g}function yL(){yL=U,pd=!0,Npt=!1,Bpt=!1,zpt=!1,Fpt=!1}function QG(e){yL(),!pd&&(this.c=e,this.e=!0,this.a=new Le)}function SJe(e,t){this.c=0,this.b=t,WKe.call(this,e,17493),this.a=this.c}function xJe(e){Pat(),RBe(this),this.a=new Zr,gde(this,e),or(this.a,e)}function EJe(){kU(this),this.b=new Me(ii,ii),this.a=new Me(Hi,Hi)}function kL(){kL=U,Bee=new ble(d0e,0),L6e=new ble("TARGET_WIDTH",1)}function Fy(e,t){return(lg(e),xk(new xt(e,new ufe(t,e.a)))).Bd(t6)}function wHt(){return $o(),H(F(Dve,1),Te,367,0,[hf,Ah,_l,zl,Ns])}function mHt(){return Ym(),H(F(ubt,1),Te,375,0,[AM,CN,SN,kN,yN])}function vHt(){return ip(),H(F(Fye,1),Te,348,0,[eZ,Bye,tZ,A8,R8])}function yHt(){return AS(),H(F(H3e,1),Te,323,0,[z3e,UZ,GZ,ox,sx])}function kHt(){return pa(),H(F(w2e,1),Te,171,0,[FM,J9,Tg,Q9,Ev])}function CHt(){return G$(),H(F(qyt,1),Te,368,0,[kee,mee,Cee,vee,yee])}function SHt(){return WS(),H(F(q2t,1),Te,373,0,[K2,p6,Sx,Cx,iO])}function xHt(){return gP(),H(F(V6e,1),Te,324,0,[U6e,Gee,W6e,Wee,G6e])}function EHt(){return Nf(),H(F(jh,1),Te,170,0,[Nt,qi,uh,tb,yp])}function THt(){return Vy(),H(F(Lx,1),Te,256,0,[Ag,mO,v5e,Ax,y5e])}function IHt(e){return mR(),function(){return mzt(e,this,arguments)}}function Zo(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function Dae(e,t){return te(t,143)?Et(e.c,u(t,143).c):!1}function cu(e){return e.t||(e.t=new CBe(e),IS(new NFe(e),0,e.t)),e.t}function TJe(e){this.b=e,hn.call(this,e),this.a=u(Yt(this.b.a,4),129)}function IJe(e){this.b=e,r4.call(this,e),this.a=u(Yt(this.b.a,4),129)}function rf(e,t,n,i,s){DJe.call(this,t,i,s),this.c=e,this.b=n}function Nae(e,t,n,i,s){QXe.call(this,t,i,s),this.c=e,this.a=n}function Bae(e,t,n,i,s){ZXe.call(this,t,i,s),this.c=e,this.a=n}function Fae(e,t,n,i,s){DJe.call(this,t,i,s),this.c=e,this.a=n}function ZG(e,t){var n;return n=u(id(e.d,t),23),n||u(id(e.e,t),23)}function PJe(e,t){var n,i;return n=t.ld(),i=e.Fe(n),!!i&&gl(i.e,t.md())}function MJe(e,t){var n;return n=t.ld(),new Ib(n,e.e.pc(n,u(t.md(),16)))}function PHt(e,t){var n;return n=e.a.get(t),n??be(Ji,Bt,1,0,5,1)}function OJe(e){var t;return t=e.length,Et(cn.substr(cn.length-t,t),e)}function xn(e){if($n(e))return e.c=e.a,e.a.Pb();throw B(new qs)}function zae(e,t){return t==0||e.e==0?e:t>0?klt(e,t):Gnt(e,-t)}function v4(e,t){return t==0||e.e==0?e:t>0?Gnt(e,t):klt(e,-t)}function Hae(e){B_t.call(this,e==null?Cc:Us(e),te(e,82)?u(e,82):null)}function _Je(e){var t;return e.c||(t=e.r,te(t,90)&&(e.c=u(t,29))),e.c}function eW(e){var t;return t=new Vb,js(t,e),Ee(t,(Ue(),Is),null),t}function RJe(e){var t,n;return t=e.c.i,n=e.d.i,t.k==(nn(),Oi)&&n.k==Oi}function tW(e){var t,n,i;return t=e&hu,n=e>>22&hu,i=e<0?v1:0,nc(t,n,i)}function MHt(e){var t,n,i,s;for(n=e,i=0,s=n.length;i=0?e.Lh(i,n,!0):dw(e,t,n)}function _Ht(e,t,n){return Kr(t4(A5(e),Eo(t.b)),t4(A5(e),Eo(n.b)))}function RHt(e,t,n){return Kr(t4(A5(e),Eo(t.e)),t4(A5(e),Eo(n.e)))}function AHt(e,t){return w.Math.min(tg(t.a,e.d.d.c),tg(t.b,e.d.d.c))}function yI(e,t){e._i(e.i+1),N7(e,e.i,e.Zi(e.i,t)),e.Mi(e.i++,t),e.Ni()}function uS(e){var t,n;++e.j,t=e.g,n=e.i,e.g=null,e.i=0,e.Oi(n,t),e.Ni()}function AJe(e,t,n){var i;i=new zle(e.a),bS(i,e.a.a),Jl(i.f,t,n),e.a.a=i}function Kae(e,t,n,i){var s;for(s=0;st)throw B(new ys(R1e(e,t,"index")));return e}function X1(e,t){var n;return n=(_t(t,e.c.length),e.c[t]),jse(e.c,t,1),n}function Wae(e,t){var n,i;return n=(sn(e),e),i=(sn(t),t),n==i?0:nt.p?-1:0}function zJe(e){var t;return e.a||(t=e.r,te(t,156)&&(e.a=u(t,156))),e.a}function BHt(e,t,n){var i;return++e.e,--e.f,i=u(e.d[t].gd(n),136),i.md()}function FHt(e){var t,n;return t=e.ld(),n=u(e.md(),16),ZT(n.Nc(),new D$e(t))}function HJe(e,t){return rc(e.a,t)?(y4(e.a,t),!0):!1}function k4(e,t,n){return mI(t,e.e.Rd().gc()),mI(n,e.c.Rd().gc()),e.a[t][n]}function SL(e,t,n){this.a=e,this.b=t,this.c=n,$e(e.t,this),$e(t.i,this)}function xL(e,t,n,i){this.f=e,this.e=t,this.d=n,this.b=i,this.c=i?i.d:null}function kI(){this.b=new Zr,this.a=new Zr,this.b=new Zr,this.a=new Zr}function Jk(){Jk=U;var e,t;tF=(Sk(),t=new dR,t),nF=(e=new hK,e)}function zHt(e){var t;return lg(e),t=new LWe(e,e.a.e,e.a.d|4),new hce(e,t)}function KJe(e){var t;for(Qp(e),t=0;e.a.Bd(new gt);)t=Ho(t,1);return t}function EL(e,t){return sn(t),e.c=0,"Initial capacity must not be negative")}function TL(){TL=U,xx=new Fr("org.eclipse.elk.labels.labelManager")}function UJe(){UJe=U,Pye=new fi("separateLayerConnections",(l$(),zQ))}function Af(){Af=U,$v=new fle("REGULAR",0),Pg=new fle("CRITICAL",1)}function CI(){CI=U,Uee=new mle("FIXED",0),TB=new mle("CENTER_NODE",1)}function IL(){IL=U,Aye=new rle("QUADRATIC",0),QQ=new rle("SCANLINE",1)}function GJe(){GJe=U,vbt=Hn((hS(),H(F(jye,1),Te,322,0,[G9,LM,$ye])))}function WJe(){WJe=U,ybt=Hn((UL(),H(F(Nye,1),Te,351,0,[Dye,xN,ZQ])))}function VJe(){VJe=U,gbt=Hn((nw(),H(F(KQ,1),Te,372,0,[Ow,xg,Mw])))}function qJe(){qJe=U,xbt=Hn((E0(),H(F(Sbt,1),Te,460,0,[nZ,L8,I2])))}function XJe(){XJe=U,Obt=Hn((g5(),H(F(dZ,1),Te,299,0,[aZ,fZ,$M])))}function YJe(){YJe=U,Rbt=Hn((c1(),H(F(_bt,1),Te,311,0,[jM,M2,o6])))}function JJe(){JJe=U,ovt=Hn((SS(),H(F(F3e,1),Te,390,0,[zZ,B3e,tB])))}function QJe(){QJe=U,hvt=Hn((i$(),H(F(Z3e,1),Te,387,0,[J3e,YZ,Q3e])))}function ZJe(){ZJe=U,pvt=Hn((yS(),H(F(e4e,1),Te,349,0,[QZ,JZ,VM])))}function eQe(){eQe=U,dvt=Hn((ls(),H(F(fvt,1),Te,463,0,[lx,eu,Zl])))}function tQe(){tQe=U,gvt=Hn((S5(),H(F(n4e,1),Te,350,0,[ZZ,t4e,cx])))}function nQe(){nQe=U,bvt=Hn((KL(),H(F(o4e,1),Te,352,0,[i4e,eee,r4e])))}function rQe(){rQe=U,wvt=Hn((c$(),H(F(s4e,1),Te,388,0,[tee,V8,Lv])))}function iQe(){iQe=U,myt=Hn((kS(),H(F(S4e,1),Te,392,0,[C4e,iee,YM])))}function oQe(){oQe=U,Jyt=Hn((qI(),H(F(J4e,1),Te,393,0,[bB,X4e,Y4e])))}function sQe(){sQe=U,m2t=Hn((r$(),H(F(g6e,1),Te,300,0,[Pee,p6e,h6e])))}function lQe(){lQe=U,v2t=Hn((S$(),H(F(b6e,1),Te,445,0,[tO,vB,Mee])))}function cQe(){cQe=U,k2t=Hn((L$(),H(F(y2t,1),Te,456,0,[Oee,Ree,_ee])))}function uQe(){uQe=U,x2t=Hn((w$(),H(F(v6e,1),Te,394,0,[m6e,$ee,w6e])))}function aQe(){aQe=U,W2t=Hn((OL(),H(F(N6e,1),Te,439,0,[Fee,D6e,j6e])))}function fQe(){fQe=U,Avt=Hn((tw(),H(F(Rvt,1),Te,464,0,[qM,ux,oB])))}function dQe(){dQe=U,tgt=Hn((Yc(),H(F(egt,1),Te,471,0,[oh,Cg,ff])))}function hQe(){hQe=U,Zpt=Hn((jf(),H(F(wv,1),Te,237,0,[ul,Ql,al])))}function pQe(){pQe=U,rgt=Hn((yc(),H(F(ngt,1),Te,472,0,[zf,Sg,df])))}function gQe(){gQe=U,Hpt=Hn((Jc(),H(F(Ts,1),Te,108,0,[Kme,Ws,bv])))}function bQe(){bQe=U,S0t=Hn((aS(),H(F(jve,1),Te,391,0,[IQ,TQ,PQ])))}function wQe(){wQe=U,r4t=Hn((f1(),H(F(m5e,1),Te,346,0,[jB,Cp,Rx])))}function mQe(){mQe=U,Y2t=Hn((eP(),H(F(zee,1),Te,444,0,[SB,xB,EB])))}function vQe(){vQe=U,Z3t=Hn((od(),H(F(s5e,1),Te,278,0,[eC,Bv,tC])))}function yQe(){yQe=U,w4t=Hn((I4(),H(F(E5e,1),Te,280,0,[x5e,zv,HB])))}function rd(e,t){return!e.o&&(e.o=new jc((Cl(),Fh),Sp,e,0)),vV(e.o,t)}function HHt(e,t){var n;e.C&&(n=u(gs(e.b,t),127).n,n.d=e.C.d,n.a=e.C.a)}function Jae(e){var t,n,i,s;s=e.d,t=e.a,n=e.b,i=e.c,e.d=n,e.a=i,e.b=s,e.c=t}function KHt(e){return!e.g&&(e.g=new eR),!e.g.b&&(e.g.b=new mBe(e)),e.g.b}function SI(e){return!e.g&&(e.g=new eR),!e.g.c&&(e.g.c=new kBe(e)),e.g.c}function UHt(e){return!e.g&&(e.g=new eR),!e.g.d&&(e.g.d=new vBe(e)),e.g.d}function GHt(e){return!e.g&&(e.g=new eR),!e.g.a&&(e.g.a=new yBe(e)),e.g.a}function WHt(e,t,n,i){return n&&(i=n.Rh(t,ci(n.Dh(),e.c.uk()),null,i)),i}function VHt(e,t,n,i){return n&&(i=n.Th(t,ci(n.Dh(),e.c.uk()),null,i)),i}function oW(e,t,n,i){var s;return s=be(Bn,ur,28,t+1,15,1),Jon(s,e,t,n,i),s}function be(e,t,n,i,s,c){var d;return d=Vrt(s,i),s!=10&&H(F(e,c),t,n,s,d),d}function qHt(e,t,n){var i,s;for(s=new p5(t,e),i=0;in||t=0?e.Lh(n,!0,!0):dw(e,t,!0)}function fKt(e,t,n){var i;return i=Ett(e,t,n),e.b=new ZL(i.c.length),ype(e,i)}function dKt(e){if(e.b<=0)throw B(new qs);return--e.b,e.a-=e.c.c,Ae(e.a)}function hKt(e){var t;if(!e.a)throw B(new Aqe);return t=e.a,e.a=ri(e.a),t}function pKt(e){for(;!e.a;)if(!oWe(e.c,new Pje(e)))return!1;return!0}function C4(e){var t;return qn(e),te(e,204)?(t=u(e,204),t):new G$e(e)}function gKt(e){PL(),u(e.of((gr(),Nv)),181).Fc((Qc(),vO)),e.qf(dte,null)}function PL(){PL=U,k3t=new I_e,S3t=new P_e,C3t=rWt((gr(),dte),k3t,_g,S3t)}function ML(){ML=U,V4e=new gle("LEAF_NUMBER",0),See=new gle("NODE_SIZE",1)}function aW(e){e.a=be(Bn,ur,28,e.b+1,15,1),e.c=be(Bn,ur,28,e.b,15,1),e.d=0}function bKt(e,t){e.a.Ne(t.d,e.b)>0&&($e(e.c,new Qce(t.c,t.d,e.d)),e.b=t.d)}function lfe(e,t){if(e.g==null||t>=e.i)throw B(new bU(t,e.i));return e.g[t]}function xQe(e,t,n){if(y5(e,n),n!=null&&!e.fk(n))throw B(new aK);return n}function fW(e,t){return AI(t)!=10&&H(Tu(t),t.Sm,t.__elementTypeId$,AI(t),e),e}function Zk(e,t,n,i){var s;i=(Wb(),i||jme),s=e.slice(t,n),A1e(s,e,t,n,-t,i)}function ca(e,t,n,i,s){return t<0?dw(e,n,i):u(n,69).wk().yk(e,e.hi(),t,i,s)}function wKt(e,t){return Kr(le(pe(A(e,(Oe(),Aw)))),le(pe(A(t,Aw))))}function EQe(){EQe=U,jpt=Hn((e5(),H(F(zD,1),Te,304,0,[oQ,sQ,lQ,cQ])))}function e5(){e5=U,oQ=new jR("All",0),sQ=new gUe,lQ=new xUe,cQ=new pUe}function Yc(){Yc=U,oh=new zK(U4,0),Cg=new zK(o8,1),ff=new zK(G4,2)}function TQe(){TQe=U,bj(),g8e=ii,x6t=Hi,b8e=new fT(ii),E6t=new fT(Hi)}function IQe(){IQe=U,Pgt=Hn((iw(),H(F(Igt,1),Te,417,0,[kM,yM,bQ,wQ])))}function PQe(){PQe=U,Agt=Hn((LS(),H(F(Rgt,1),Te,406,0,[TM,GD,WD,IM])))}function MQe(){MQe=U,Ogt=Hn((O4(),H(F(Mgt,1),Te,332,0,[SM,CM,xM,EM])))}function OQe(){OQe=U,N0t=Hn((P0(),H(F(Fve,1),Te,389,0,[yv,Bve,AQ,LQ])))}function _Qe(){_Qe=U,R0t=Hn((b5(),H(F(_0t,1),Te,416,0,[Pw,vv,mv,C2])))}function RQe(){RQe=U,cbt=Hn((sd(),H(F(lbt,1),Te,421,0,[i6,I8,P8,HQ])))}function AQe(){AQe=U,J0t=Hn((l$(),H(F(Y0t,1),Te,371,0,[zQ,mN,vN,RM])))}function LQe(){LQe=U,svt=Hn((qm(),H(F(KZ,1),Te,203,0,[nB,HZ,N2,D2])))}function $Qe(){$Qe=U,uvt=Hn((Gd(),H(F(X3e,1),Te,284,0,[wp,q3e,WZ,VZ])))}function II(){II=U,Uye=new ole(eh,0),IN=new ole("IMPROVE_STRAIGHTNESS",1)}function jQe(e,t){var n,i;return i=t/e.c.Rd().gc()|0,n=t%e.c.Rd().gc(),k4(e,i,n)}function DQe(e){var t;if(e.nl())for(t=e.i-1;t>=0;--t)re(e,t);return Mae(e)}function cfe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[0];)n=t;return n}function NQe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[1];)n=t;return n}function mKt(e){return te(e,180)?""+u(e,180).a:e==null?null:Us(e)}function vKt(e){return te(e,180)?""+u(e,180).a:e==null?null:Us(e)}function BQe(e,t){if(t.a)throw B(new Xs(sft));Fi(e.a,t),t.a=e,!e.j&&(e.j=t)}function ufe(e,t){sA.call(this,t.zd(),t.yd()&-16449),sn(e),this.a=e,this.c=t}function yKt(e,t){return new GU(t,jb(Eo(t.e),t.f.a+e,t.f.b+e),(Gt(),!1))}function kKt(e,t){return jk(),$e(e,new Gi(t,Ae(t.e.c.length+t.g.c.length)))}function CKt(e,t){return jk(),$e(e,new Gi(t,Ae(t.e.c.length+t.g.c.length)))}function FQe(){FQe=U,w2t=Hn((N$(),H(F(d6e,1),Te,354,0,[Iee,a6e,f6e,u6e])))}function zQe(){zQe=U,zyt=Hn((CS(),H(F(K4e,1),Te,353,0,[bee,pB,gee,pee])))}function HQe(){HQe=U,byt=Hn((A4(),H(F(f4e,1),Te,405,0,[uB,dx,hx,px])))}function KQe(){KQe=U,e4t=Hn((d1(),H(F(bte,1),Te,223,0,[gte,gO,nC,v6])))}function UQe(){UQe=U,o4t=Hn((Fu(),H(F(i4t,1),Te,291,0,[wO,Dh,Rg,bO])))}function GQe(){GQe=U,g4t=Hn((Iu(),H(F(Dx,1),Te,386,0,[kO,sb,yO,Fv])))}function WQe(){WQe=U,v4t=Hn((v$(),H(F(_5e,1),Te,320,0,[vte,P5e,O5e,M5e])))}function VQe(){VQe=U,C4t=Hn((u$(),H(F(k4t,1),Te,415,0,[yte,A5e,R5e,L5e])))}function OL(){OL=U,Fee=new fU(xdt,0),D6e=new fU(_be,1),j6e=new fU(eh,2)}function Nm(e,t,n,i,s){return sn(e),sn(t),sn(n),sn(i),sn(s),new Lue(e,t,i)}function qQe(e,t){var n;return n=u(y4(e.e,t),400),n?(uue(n),n.e):null}function vc(e,t){var n;return n=$s(e,t,0),n==-1?!1:(X1(e,n),!0)}function XQe(e,t,n){var i;return Qp(e),i=new Y,i.a=t,e.a.Nb(new OHe(i,n)),i.a}function SKt(e){var t;return Qp(e),t=be(uo,ws,28,0,15,1),yy(e.a,new Eje(t)),t}function afe(e){var t;if(!IW(e))throw B(new qs);return e.e=1,t=e.d,e.d=null,t}function J1(e){var t;return Hs(e)&&(t=0-e,!isNaN(t))?t:rg(m5(e))}function $s(e,t,n){for(;n=0?R$(e,n,!0,!0):dw(e,t,!0)}function dfe(e){var t;return t=y0(Yt(e,32)),t==null&&(lc(e),t=y0(Yt(e,32))),t}function hfe(e){var t;return e.Oh()||(t=Sn(e.Dh())-e.ji(),e.$h().Mk(t)),e.zh()}function tZe(e,t){dve=new _s,_gt=t,F9=e,u(F9.b,68),efe(F9,dve,null),mut(F9)}function aS(){aS=U,IQ=new KK("XY",0),TQ=new KK("X",1),PQ=new KK("Y",2)}function yc(){yc=U,zf=new HK("TOP",0),Sg=new HK(o8,1),df=new HK(Uge,2)}function c1(){c1=U,jM=new XK(eh,0),M2=new XK("TOP",1),o6=new XK(Uge,2)}function RI(){RI=U,qZ=new lle("INPUT_ORDER",0),XZ=new lle("PORT_DEGREE",1)}function t5(){t5=U,wme=nc(hu,hu,524287),ypt=nc(0,0,KP),mme=tW(1),tW(2),vme=tW(0)}function bW(e){var t;return e.d!=e.r&&(t=Aa(e),e.e=!!t&&t.lk()==y1t,e.d=t),e.e}function wW(e,t,n){var i;return i=e.g[t],N7(e,t,e.Zi(t,n)),e.Ri(t,n,i),e.Ni(),i}function LL(e,t){var n;return n=e.dd(t),n>=0?(e.gd(n),!0):!1}function mW(e,t){var n;for(qn(e),qn(t),n=!1;t.Ob();)n=n|e.Fc(t.Pb());return n}function id(e,t){var n;return n=u(pn(e.e,t),400),n?(jUe(e,n),n.e):null}function nZe(e){var t,n;return t=e/60|0,n=e%60,n==0?""+t:""+t+":"+(""+n)}function Bm(e,t){var n=e.a[t],i=(UW(),ZJ)[typeof n];return i?i(n):Cde(typeof n)}function Qs(e,t){var n,i;return lg(e),i=new qae(t,e.a),n=new cWe(i),new xt(e,n)}function vW(e){var t;return t=e.b.c.length==0?null:Ye(e.b,0),t!=null&&MW(e,0),t}function IKt(e,t){var n,i,s;s=t.c.i,n=u(pn(e.f,s),60),i=n.d.c-n.e.c,Gfe(t.a,i,0)}function pfe(e,t){var n;for(++e.d,++e.c[t],n=t+1;n=0;)++t[0]}function PKt(e,t){oc(e,t==null||kA((sn(t),t))||isNaN((sn(t),t))?0:(sn(t),t))}function MKt(e,t){sc(e,t==null||kA((sn(t),t))||isNaN((sn(t),t))?0:(sn(t),t))}function OKt(e,t){ew(e,t==null||kA((sn(t),t))||isNaN((sn(t),t))?0:(sn(t),t))}function _Kt(e,t){Zb(e,t==null||kA((sn(t),t))||isNaN((sn(t),t))?0:(sn(t),t))}function RKt(e,t,n){return t4(new Me(n.e.a+n.f.a/2,n.e.b+n.f.b/2),e)==(sn(t),t)}function AKt(e,t){return te(t,102)&&u(t,19).Bb&es?new wU(t,e):new p5(t,e)}function LKt(e,t){return te(t,102)&&u(t,19).Bb&es?new wU(t,e):new p5(t,e)}function AI(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function oZe(e,t){return t==(FU(),FU(),Apt)?e.toLocaleLowerCase():e.toLowerCase()}function sZe(e){if(!e.e)throw B(new qs);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function gfe(e){if(!e.c)throw B(new qs);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function lZe(e){var t;for(++e.a,t=e.c.a.length;e.ae.a[i]&&(i=n);return i}function cZe(e){var t;return t=u(A(e,(Oe(),_w)),313),t?t.a==e:!1}function uZe(e){var t;return t=u(A(e,(Oe(),_w)),313),t?t.i==e:!1}function aZe(){aZe=U,I0t=Hn(($o(),H(F(Dve,1),Te,367,0,[hf,Ah,_l,zl,Ns])))}function fZe(){fZe=U,abt=Hn((Ym(),H(F(ubt,1),Te,375,0,[AM,CN,SN,kN,yN])))}function dZe(){dZe=U,kbt=Hn((ip(),H(F(Fye,1),Te,348,0,[eZ,Bye,tZ,A8,R8])))}function hZe(){hZe=U,lvt=Hn((AS(),H(F(H3e,1),Te,323,0,[z3e,UZ,GZ,ox,sx])))}function pZe(){pZe=U,Lbt=Hn((pa(),H(F(w2e,1),Te,171,0,[FM,J9,Tg,Q9,Ev])))}function gZe(){gZe=U,Xyt=Hn((G$(),H(F(qyt,1),Te,368,0,[kee,mee,Cee,vee,yee])))}function bZe(){bZe=U,X2t=Hn((WS(),H(F(q2t,1),Te,373,0,[K2,p6,Sx,Cx,iO])))}function wZe(){wZe=U,t3t=Hn((gP(),H(F(V6e,1),Te,324,0,[U6e,Gee,W6e,Wee,G6e])))}function mZe(){mZe=U,Q3t=Hn((ji(),H(F(Ox,1),Te,88,0,[yd,Bs,Ps,vd,Ca])))}function vZe(){vZe=U,x3t=Hn((Nf(),H(F(jh,1),Te,170,0,[Nt,qi,uh,tb,yp])))}function yZe(){yZe=U,l4t=Hn((Vy(),H(F(Lx,1),Te,256,0,[Ag,mO,v5e,Ax,y5e])))}function kZe(){kZe=U,a4t=Hn((ze(),H(F(ts,1),Sl,64,0,[nl,en,fn,Pn,rn])))}function $L(){$L=U,Wme=new Jse("BY_SIZE",0),dQ=new Jse("BY_SIZE_AND_SHAPE",1)}function jL(){jL=U,SQ=new ele("EADES",0),XD=new ele("FRUCHTERMAN_REINGOLD",1)}function LI(){LI=U,EN=new ile("READING_DIRECTION",0),zye=new ile("ROTATION",1)}function fS(){fS=U,$0t=new cEe,j0t=new fEe,A0t=new dEe,L0t=new aEe,D0t=new hEe}function CZe(e){this.b=new Le,this.a=new Le,this.c=new Le,this.d=new Le,this.e=e}function SZe(e){this.g=e,this.f=new Le,this.a=w.Math.min(this.g.c.c,this.g.d.c)}function xZe(e,t,n){vA.call(this),mfe(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function FKt(e,t,n){var i,s;for(s=new N(n);s.a=0&&t0?t-1:t,oze(h_t(qZe(oue(new H3,n),e.n),e.j),e.k)}function xs(e){var t,n;n=(t=new pK,t),Dn((!e.q&&(e.q=new Se(Ga,e,11,10)),e.q),n)}function bfe(e){return(e.i&2?"interface ":e.i&1?"":"class ")+(e1(e),e.o)}function DL(e){return kl(e,Mr)>0?Mr:kl(e,jo)<0?jo:Vn(e)}function Fm(e){return e<3?(Nu(e,zat),e+1):e=-.01&&e.a<=fd&&(e.a=0),e.b>=-.01&&e.b<=fd&&(e.b=0),e}function zy(e){r2();var t,n;for(n=Lbe,t=0;tn&&(n=e[t]);return n}function PZe(e,t){var n;if(n=xP(e.Dh(),t),!n)throw B(new Qt(vg+t+dJ));return n}function zm(e,t){var n;for(n=e;ri(n);)if(n=ri(n),n==t)return!0;return!1}function JKt(e,t){var n,i,s;for(i=t.a.ld(),n=u(t.a.md(),16).gc(),s=0;se||e>t)throw B(new xse("fromIndex: 0, toIndex: "+e+Rge+t))}function Qb(e){if(e<0)throw B(new Qt("Illegal Capacity: "+e));this.g=this.aj(e)}function wfe(e,t){return Yf(),of(pg),w.Math.abs(e-t)<=pg||e==t||isNaN(e)&&isNaN(t)}function CW(e,t){var n,i,s,c;for(i=e.d,s=0,c=i.length;s0&&(e.a/=t,e.b/=t),e}function ju(e){var t;return e.w?e.w:(t=KFt(e),t&&!t.Vh()&&(e.w=t),t)}function n5(e,t){var n,i;i=e.a,n=VWt(e,t,null),i!=t&&!e.e&&(n=Y5(e,t,n)),n&&n.oj()}function AZe(e,t,n){var i,s;i=t;do s=le(e.p[i.p])+n,e.p[i.p]=s,i=e.a[i.p];while(i!=t)}function LZe(e,t,n){var i=function(){return e.apply(i,arguments)};return t.apply(i,n),i}function iUt(e){var t;return e==null?null:(t=u(e,195),bQt(t,t.length))}function re(e,t){if(e.g==null||t>=e.i)throw B(new bU(t,e.i));return e.Wi(t,e.g[t])}function oUt(e,t){Ot();var n,i;for(i=new Le,n=0;n=14&&t<=16))),e}function zn(e,t){var n;return sn(t),n=e[":"+t],tI(!!n,"Enum constant undefined: "+t),n}function An(e,t,n,i,s,c){var d;return d=mG(e,t),XZe(n,d),d.i=s?8:0,d.f=i,d.e=s,d.g=c,d}function yfe(e,t,n,i,s){this.d=t,this.k=i,this.f=s,this.o=-1,this.p=1,this.c=e,this.a=n}function kfe(e,t,n,i,s){this.d=t,this.k=i,this.f=s,this.o=-1,this.p=2,this.c=e,this.a=n}function Cfe(e,t,n,i,s){this.d=t,this.k=i,this.f=s,this.o=-1,this.p=6,this.c=e,this.a=n}function Sfe(e,t,n,i,s){this.d=t,this.k=i,this.f=s,this.o=-1,this.p=7,this.c=e,this.a=n}function xfe(e,t,n,i,s){this.d=t,this.j=i,this.e=s,this.o=-1,this.p=4,this.c=e,this.a=n}function YZe(e,t){var n,i,s,c;for(i=t,s=0,c=i.length;s=0))throw B(new Qt("tolerance ("+e+") must be >= 0"));return e}function QZe(e,t){var n;return te(t,44)?e.c.Mc(t):(n=vV(e,t),x$(e,t),n)}function bs(e,t,n){return I0(e,t),Xl(e,n),Q1(e,0),Hm(e,1),rp(e,!0),np(e,!0),e}function jI(e,t){var n;if(n=e.gc(),t<0||t>n)throw B(new Mm(t,n));return new $ce(e,t)}function GL(e,t){e.b=w.Math.max(e.b,t.d),e.e+=t.r+(e.a.c.length==0?0:e.c),$e(e.a,t)}function ZZe(e){Tm(e.c>=0),vqt(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function WL(e){var t,n;for(n=e.c.Cc().Kc();n.Ob();)t=u(n.Pb(),16),t.$b();e.c.$b(),e.d=0}function gUt(e){var t,n,i,s;for(n=e.a,i=0,s=n.length;i=0}function _fe(e,t){e.r>0&&e.c0&&e.g!=0&&_fe(e.i,t/e.r*e.i.d))}function Rfe(e,t){var n;n=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,1,n,e.c))}function EW(e,t){var n;n=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,4,n,e.c))}function u5(e,t){var n;n=e.k,e.k=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,2,n,e.k))}function TW(e,t){var n;n=e.D,e.D=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,2,n,e.D))}function qL(e,t){var n;n=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,8,n,e.f))}function XL(e,t){var n;n=e.i,e.i=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,7,n,e.i))}function Afe(e,t){var n;n=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,8,n,e.a))}function Lfe(e,t){var n;n=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,0,n,e.b))}function $fe(e,t){var n;n=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,0,n,e.b))}function jfe(e,t){var n;n=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,1,n,e.c))}function Dfe(e,t){var n;n=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,1,n,e.d))}function CUt(e,t,n){var i;e.b=t,e.a=n,i=(e.a&512)==512?new yFe:new foe,e.c=jrn(i,e.b,e.a)}function det(e,t){return w1(e.e,t)?(rs(),bW(t)?new _A(t,e):new BT(t,e)):new BKe(t,e)}function SUt(e){var t,n;return 0>e?new Bse:(t=e+1,n=new SJe(t,e),new pce(null,n))}function xUt(e,t){Ot();var n;return n=new q3(1),lo(e)?Cs(n,e,t):Jl(n.f,e,t),new oK(n)}function EUt(e,t){var n,i;return n=e.c,i=t.e[e.p],i>0?u(Ye(n.a,i-1),10):null}function TUt(e,t){var n,i;return n=e.o+e.p,i=t.o+t.p,nt?(t<<=1,t>0?t:o9):t}function IW(e){switch(qle(e.e!=3),e.e){case 2:return!1;case 0:return!0}return $Ht(e)}function pet(e,t){var n;return te(t,8)?(n=u(t,8),e.a==n.a&&e.b==n.b):!1}function PUt(e,t){var n;n=new _s,u(t.b,68),u(t.b,68),u(t.b,68),ic(t.a,new Gce(e,n,t))}function get(e,t){var n,i;for(i=t.vc().Kc();i.Ob();)n=u(i.Pb(),44),fP(e,n.ld(),n.md())}function Nfe(e,t){var n;n=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,11,n,e.d))}function YL(e,t){var n;n=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,13,n,e.j))}function Bfe(e,t){var n;n=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,21,n,e.b))}function MUt(e,t){(yL(),pd?null:t.c).length==0&&OGe(t,new Ce),Cs(e.a,pd?null:t.c,t)}function OUt(e,t){t.Ug("Hierarchical port constraint processing",1),qqt(e),pan(e),t.Vg()}function nw(){nw=U,Ow=new UK("START",0),xg=new UK("MIDDLE",1),Mw=new UK("END",2)}function JL(){JL=U,gB=new ple("P1_NODE_PLACEMENT",0),H2=new ple("P2_EDGE_ROUTING",1)}function ng(){ng=U,r6=new Fr(r0e),QD=new Fr(_ft),H9=new Fr(Rft),PM=new Fr(Aft)}function rw(e){var t;return zU(e.f.g,e.d),yn(e.b),e.c=e.a,t=u(e.a.Pb(),44),e.b=Qfe(e),t}function Ffe(e){var t;return e.b==null?(H1(),H1(),OO):(t=e.ul()?e.tl():e.sl(),t)}function bet(e,t){var n;return n=t==null?-1:$s(e.b,t,0),n<0?!1:(MW(e,n),!0)}function sf(e,t){var n;return sn(t),n=t.g,e.b[n]?!1:(pi(e.b,n,t),++e.c,!0)}function QL(e,t){var n,i;return n=1-t,i=e.a[n],e.a[n]=i.a[t],i.a[t]=e,e.b=!0,i.b=!1,i}function _Ut(e,t){var n,i;for(i=t.Kc();i.Ob();)n=u(i.Pb(),272),e.b=!0,Fi(e.e,n),n.b=e}function RUt(e,t){var n,i;return n=u(A(e,(Ue(),_v)),8),i=u(A(t,_v),8),Kr(n.b,i.b)}function PW(e,t,n){var i,s,c;return c=t>>5,s=t&31,i=Yi(Yp(e.n[n][c],Vn(nf(s,1))),3),i}function wet(e,t,n){var i,s,c;for(c=e.a.length-1,s=e.b,i=0;i0?1:0:(!e.c&&(e.c=gI(bl(e.f))),e.c).e}function Iet(e,t){t?e.B==null&&(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function jUt(e,t){return b5(),e==Pw&&t==vv||e==vv&&t==Pw||e==C2&&t==mv||e==mv&&t==C2}function DUt(e,t){return b5(),e==Pw&&t==mv||e==Pw&&t==C2||e==vv&&t==C2||e==vv&&t==mv}function Pet(e,t){return Yf(),of(fd),w.Math.abs(0-t)<=fd||t==0||isNaN(0)&&isNaN(t)?0:e/t}function Met(e,t){return le(pe(Cu(QI(As(new xt(null,new Pt(e.c.b,16)),new LDe(e)),t))))}function Ufe(e,t){return le(pe(Cu(QI(As(new xt(null,new Pt(e.c.b,16)),new ADe(e)),t))))}function NUt(){return cs(),H(F(uZ,1),Te,259,0,[MN,ka,V9,ON,D8,P2,q9,$8,j8,_N])}function BUt(){return La(),H(F(V3e,1),Te,243,0,[rB,GM,WM,U3e,G3e,K3e,W3e,iB,zw,Av])}function FUt(e,t){var n;t.Ug("General Compactor",1),n=GVt(u(Ie(e,(dg(),Eee)),393)),n.Cg(e)}function zUt(e,t){var n,i;return n=u(Ie(e,(dg(),wB)),17),i=u(Ie(t,wB),17),yl(n.a,i.a)}function Gfe(e,t,n){var i,s;for(s=Ln(e,0);s.b!=s.d.c;)i=u(_n(s),8),i.a+=t,i.b+=n;return e}function pS(e,t,n){var i;for(i=e.b[n&e.f];i;i=i.b)if(n==i.a&&zd(t,i.g))return i;return null}function gS(e,t,n){var i;for(i=e.c[n&e.f];i;i=i.d)if(n==i.f&&zd(t,i.i))return i;return null}function HUt(e,t,n){var i,s,c;for(i=0,s=0;s>>31;i!=0&&(e[n]=i)}function AW(e,t,n,i,s,c){var d;this.c=e,d=new Le,xhe(e,d,t,e.b,n,i,s,c),this.a=new wo(d,0)}function Oet(){this.c=new SR(0),this.b=new SR(Abe),this.d=new SR(wdt),this.a=new SR(tY)}function aa(e,t,n,i,s,c,d){Fn.call(this,e,t),this.d=n,this.e=i,this.c=s,this.b=c,this.a=td(d)}function Si(e,t,n,i,s,c,d,h,b,m,v,k,T){return $ot(e,t,n,i,s,c,d,h,b,m,v,k,T),dV(e,!1),e}function KUt(e){return e.b.c.i.k==(nn(),Oi)?u(A(e.b.c.i,(Oe(),jr)),12):e.b.c}function _et(e){return e.b.d.i.k==(nn(),Oi)?u(A(e.b.d.i,(Oe(),jr)),12):e.b.d}function UUt(e){var t;return t=pL(e),_b(t.a,0)?(IR(),IR(),Lpt):(IR(),new aGe(t.b))}function LW(e){var t;return t=Sae(e),_b(t.a,0)?(ym(),ym(),iQ):(ym(),new _U(t.b))}function $W(e){var t;return t=Sae(e),_b(t.a,0)?(ym(),ym(),iQ):(ym(),new _U(t.c))}function Ret(e){switch(e.g){case 2:return ze(),rn;case 4:return ze(),fn;default:return e}}function Aet(e){switch(e.g){case 1:return ze(),Pn;case 3:return ze(),en;default:return e}}function Let(e){switch(e.g){case 0:return new p_e;case 1:return new g_e;default:return null}}function x4(){x4=U,FQ=new fi("edgelabelcenterednessanalysis.includelabel",(Gt(),kg))}function Wfe(){Wfe=U,_vt=Wd(ZKe(cr(cr(new Li,($o(),_l),(Uo(),aN)),zl,oN),Ns),uN)}function $et(){$et=U,$vt=Wd(ZKe(cr(cr(new Li,($o(),_l),(Uo(),aN)),zl,oN),Ns),uN)}function jW(){jW=U,Kx=new gFe,Pte=H(F(Tc,1),m2,179,0,[]),n6t=H(F(Ga,1),Qwe,62,0,[])}function a5(){a5=U,OM=new tle("TO_INTERNAL_LTR",0),DQ=new tle("TO_INPUT_DIRECTION",1)}function Dc(){Dc=U,Wve=new vEe,Uve=new yEe,Gve=new kEe,Kve=new CEe,Vve=new SEe,qve=new xEe}function GUt(e,t){t.Ug(qft,1),Xde(M_t(new sR((p7(),new xG(e,!1,!1,new Yie))))),t.Vg()}function WUt(e,t,n){n.Ug("DFS Treeifying phase",1),uqt(e,t),lrn(e,t),e.a=null,e.b=null,n.Vg()}function DI(e,t){return Gt(),lo(e)?Wae(e,Jn(t)):xm(e)?sG(e,pe(t)):Sm(e)?jDt(e,Ve(t)):e.Fd(t)}function bS(e,t){var n,i;for(sn(t),i=t.vc().Kc();i.Ob();)n=u(i.Pb(),44),e.zc(n.ld(),n.md())}function VUt(e,t,n){var i;for(i=n.Kc();i.Ob();)if(!wL(e,t,i.Pb()))return!1;return!0}function qUt(e,t,n,i,s){var c;return n&&(c=ci(t.Dh(),e.c),s=n.Rh(t,-1-(c==-1?i:c),null,s)),s}function XUt(e,t,n,i,s){var c;return n&&(c=ci(t.Dh(),e.c),s=n.Th(t,-1-(c==-1?i:c),null,s)),s}function jet(e){var t;if(e.b==-2){if(e.e==0)t=-1;else for(t=0;e.a[t]==0;t++);e.b=t}return e.b}function YUt(e){if(sn(e),e.length==0)throw B(new $d("Zero length BigInteger"));ton(this,e)}function Vfe(e){this.i=e.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),e.Qc(this.g))}function Det(e,t,n){this.g=e,this.d=t,this.e=n,this.a=new Le,cen(this),Ot(),Mi(this.a,null)}function qfe(e,t){t.q=e,e.d=w.Math.max(e.d,t.r),e.b+=t.d+(e.a.c.length==0?0:e.c),$e(e.a,t)}function f5(e,t){var n,i,s,c;return s=e.c,n=e.c+e.b,c=e.d,i=e.d+e.a,t.a>s&&t.ac&&t.bs?n=s:Zt(t,n+1),e.a=oa(e.a,0,t)+(""+i)+Hue(e.a,n)}function Wet(e,t){e.a=Ho(e.a,1),e.c=w.Math.min(e.c,t),e.b=w.Math.max(e.b,t),e.d=Ho(e.d,t)}function rGt(e,t){return t1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw B(new qs)}function Yet(e){switch(e.a.g){case 1:return new ZHe;case 3:return new tit;default:return new d$e}}function Yfe(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Cae(e,t)}function bl(e){return UP>22),s=e.h+t.h+(i>>22),nc(n&hu,i&hu,s&v1)}function itt(e,t){var n,i,s;return n=e.l-t.l,i=e.m-t.m+(n>>22),s=e.h-t.h+(i>>22),nc(n&hu,i&hu,s&v1)}function xGt(e){var t,n;for(wun(e),n=new N(e.d);n.ai)throw B(new Mm(t,i));return e.Si()&&(n=yXe(e,n)),e.Ei(t,n)}function w5(e,t,n,i,s){var c,d;for(d=n;d<=s;d++)for(c=t;c<=i;c++)Xy(e,c,d)||dj(e,c,d,!0,!1)}function NGt(e){r2();var t,n,i;for(n=be(to,_e,8,2,0,1),i=0,t=0;t<2;t++)i+=.5,n[t]=_Xt(i,e);return n}function m5(e){var t,n,i;return t=~e.l+1&hu,n=~e.m+(t==0?1:0)&hu,i=~e.h+(t==0&&n==0?1:0)&v1,nc(t,n,i)}function ide(e){var t;if(e<0)return jo;if(e==0)return 0;for(t=o9;!(t&e);t>>=1);return t}function KW(e,t,n){return e>=128?!1:e<64?R7(Yi(nf(1,e),n),0):R7(Yi(nf(1,e-64),t),0)}function WI(e,t,n){return n==null?(!e.q&&(e.q=new On),y4(e.q,t)):(!e.q&&(e.q=new On),vr(e.q,t,n)),e}function Ee(e,t,n){return n==null?(!e.q&&(e.q=new On),y4(e.q,t)):(!e.q&&(e.q=new On),vr(e.q,t,n)),e}function gtt(e){var t,n;return n=new CL,js(n,e),Ee(n,(ng(),r6),e),t=new On,hsn(e,n,t),zcn(e,n,t),n}function btt(e){var t,n;return t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,n=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,t||n}function wtt(e,t){var n,i,s,c;for(n=!1,i=e.a[t].length,c=0;c=0,"Negative initial capacity"),tI(t>=0,"Non-positive load factor"),qc(this)}function FGt(e,t,n,i,s){var c,d;if(d=e.length,c=n.length,t<0||i<0||s<0||t+s>d||i+s>c)throw B(new Yoe)}function cde(e,t){Ot();var n,i,s,c,d;for(d=!1,i=t,s=0,c=i.length;s1||t>=0&&e.b<3)}function WW(e){var t,n,i;t=~e.l+1&hu,n=~e.m+(t==0?1:0)&hu,i=~e.h+(t==0&&n==0?1:0)&v1,e.l=t,e.m=n,e.h=i}function fde(e){Ot();var t,n,i;for(i=1,n=e.Kc();n.Ob();)t=n.Pb(),i=31*i+(t!=null?Vr(t):0),i=i|0;return i}function GGt(e,t,n,i,s){var c;return c=epe(e,t),n&&WW(c),s&&(e=NXt(e,t),i?yg=m5(e):yg=nc(e.l,e.m,e.h)),c}function Itt(e,t,n){e.g=aq(e,t,(ze(),fn),e.b),e.d=aq(e,n,fn,e.b),!(e.g.c==0||e.d.c==0)&&iot(e)}function Ptt(e,t,n){e.g=aq(e,t,(ze(),rn),e.j),e.d=aq(e,n,rn,e.j),!(e.g.c==0||e.d.c==0)&&iot(e)}function dde(e,t){switch(t){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return Yde(e,t)}function WGt(e,t){switch(t.g){case 0:te(e.b,641)||(e.b=new Get);break;case 1:te(e.b,642)||(e.b=new HWe)}}function Mtt(e){switch(e.g){case 0:return new y_e;default:throw B(new Qt(dD+(e.f!=null?e.f:""+e.g)))}}function Ott(e){switch(e.g){case 0:return new v_e;default:throw B(new Qt(dD+(e.f!=null?e.f:""+e.g)))}}function VGt(e,t,n){return!xk(Ar(new xt(null,new Pt(e.c,16)),new gk(new pKe(t,n)))).Bd((c0(),t6))}function _tt(e,t){return t4(A5(u(A(t,(sl(),Kw)),88)),new Me(e.c.e.a-e.b.e.a,e.c.e.b-e.b.e.b))<=0}function qGt(e,t){for(;e.g==null&&!e.c?dae(e):e.g==null||e.i!=0&&u(e.g[e.i-1],51).Ob();)Q_t(t,ej(e))}function T0(e){var t,n;for(n=new N(e.a.b);n.ai?1:0}function JGt(e){return $e(e.c,(E4(),y3t)),wfe(e.a,le(pe(Ke((mV(),ZN)))))?new sRe:new BNe(e)}function QGt(e){for(;!e.d||!e.d.Ob();)if(e.b&&!a7(e.b))e.d=u(a4(e.b),51);else return null;return e.d}function pde(e){switch(e.g){case 1:return wdt;default:case 2:return 0;case 3:return tY;case 4:return Abe}}function ZGt(){Ir();var e;return Lte||(e=vAt(hg("M",!0)),e=jA(hg("M",!1),e),Lte=e,Lte)}function u$(){u$=U,yte=new eA("ELK",0),A5e=new eA("JSON",1),R5e=new eA("DOT",2),L5e=new eA("SVG",3)}function yS(){yS=U,QZ=new ZK("STACKED",0),JZ=new ZK("REVERSE_STACKED",1),VM=new ZK("SEQUENCED",2)}function kS(){kS=U,C4e=new oU(eh,0),iee=new oU("MIDDLE_TO_MIDDLE",1),YM=new oU("AVOID_OVERLAP",2)}function k5(){k5=U,Oye=new nIe,_ye=new rIe,nbt=new eIe,tbt=new iIe,ebt=new tIe,Mye=(sn(ebt),new kn)}function a$(){a$=U,w5e=new Ab(15),n4t=new go((gr(),kp),w5e),_x=b6,h5e=$3t,p5e=rb,b5e=Y2,g5e=Dv}function Ky(e,t){var n,i,s,c,d;for(i=t,s=0,c=i.length;s=e.b.c.length||(bde(e,2*t+1),n=2*t+2,n0&&(t.Cd(n),n.i&&tVt(n))}function wde(e,t,n){var i;for(i=n-1;i>=0&&e[i]===t[i];i--);return i<0?0:NK(Yi(e[i],us),Yi(t[i],us))?-1:1}function Ltt(e,t,n){var i,s;this.g=e,this.c=t,this.a=this,this.d=this,s=het(n),i=be(ppt,zP,227,s,0,1),this.b=i}function JW(e,t,n,i,s){var c,d;for(d=n;d<=s;d++)for(c=t;c<=i;c++)if(Xy(e,c,d))return!0;return!1}function oWt(e,t){var n,i;for(i=e.Zb().Cc().Kc();i.Ob();)if(n=u(i.Pb(),16),n.Hc(t))return!0;return!1}function $tt(e,t,n){var i,s,c,d;for(sn(n),d=!1,c=e.fd(t),s=n.Kc();s.Ob();)i=s.Pb(),c.Rb(i),d=!0;return d}function QW(e,t){var n,i;return i=u(Yt(e.a,4),129),n=be(Tte,MJ,424,t,0,1),i!=null&&Ol(i,0,n,0,i.length),n}function jtt(e,t){var n;return n=new Tq((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,t),e.e!=null||(n.c=e),n}function sWt(e,t){var n;return e===t?!0:te(t,85)?(n=u(t,85),y1e(a0(e),n.vc())):!1}function Dtt(e,t,n){var i,s;for(s=n.Kc();s.Ob();)if(i=u(s.Pb(),44),e.Be(t,i.md()))return!0;return!1}function Ntt(e,t,n){return e.d[t.p][n.p]||(uXt(e,t,n),e.d[t.p][n.p]=!0,e.d[n.p][t.p]=!0),e.a[t.p][n.p]}function lWt(e,t){var n;return!e||e==t||!Xr(t,(Oe(),Rw))?!1:(n=u(A(t,(Oe(),Rw)),10),n!=e)}function ZW(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.$l()}}function Btt(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e._l()}}function Ftt(e){EXe.call(this,"The given string does not match the expected format for individual spacings.",e)}function cWt(e,t){var n;t.Ug("Min Size Preprocessing",1),n=M1e(e),Br(e,(xh(),vx),n.a),Br(e,yB,n.b),t.Vg()}function uWt(e){var t,n,i;for(t=0,i=be(to,_e,8,e.b,0,1),n=Ln(e,0);n.b!=n.d.c;)i[t++]=u(_n(n),8);return i}function eV(e,t,n){var i,s,c;for(i=new Zr,c=Ln(n,0);c.b!=c.d.c;)s=u(_n(c),8),or(i,new Vo(s));$tt(e,t,i)}function aWt(e,t){var n;return n=Ho(e,t),NK(KG(e,t),0)|rA(KG(e,n),0)?n:Ho(FP,KG(Yp(n,63),1))}function fWt(e,t){var n,i;return n=u(e.d.Bc(t),16),n?(i=e.e.hc(),i.Gc(n),e.e.d-=n.gc(),n.$b(),i):null}function ztt(e){var t;if(t=e.a.c.length,t>0)return Bk(t-1,e.a.c.length),X1(e.a,t-1);throw B(new BBe)}function Htt(e,t,n){if(e>t)throw B(new Qt(Mj+e+rft+t));if(e<0||t>n)throw B(new xse(Mj+e+$ge+t+Rge+n))}function C5(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),TW(e,t==null?null:(sn(t),t)),e.C&&e.hl(null)}function dWt(e,t){var n;n=Ke((mV(),ZN))!=null&&t.Sg()!=null?le(pe(t.Sg()))/le(pe(Ke(ZN))):1,vr(e.b,t,n)}function mde(e,t){var n,i;if(i=e.c[t],i!=0)for(e.c[t]=0,e.d-=i,n=t+1;noD?e-n>oD:n-e>oD}function Ztt(e,t){var n;for(n=0;ns&&(Mit(t.q,s),i=n!=t.q.d)),i}function ent(e,t){var n,i,s,c,d,h,b,m;return b=t.i,m=t.j,i=e.f,s=i.i,c=i.j,d=b-s,h=m-c,n=w.Math.sqrt(d*d+h*h),n}function xde(e,t){var n,i;return i=E$(e),i||(n=(qq(),zst(t)),i=new PBe(n),Dn(i.El(),e)),i}function YI(e,t){var n,i;return n=u(e.c.Bc(t),16),n?(i=e.hc(),i.Gc(n),e.d-=n.gc(),n.$b(),e.mc(i)):e.jc()}function SWt(e,t){var n,i;for(i=fu(e.d,1)!=0,n=!0;n;)n=!1,n=t.c.mg(t.e,i),n=n|EP(e,t,i,!1),i=!i;Hfe(e)}function tnt(e,t,n,i){var s,c;e.a=t,c=i?0:1,e.f=(s=new pot(e.c,e.a,n,c),new Wlt(n,e.a,s,e.e,e.b,e.c==(tw(),ux)))}function d$(e){var t;return yn(e.a!=e.b),t=e.d.a[e.a],IGe(e.b==e.d.c&&t!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,t}function nnt(e){var t;if(e.c!=0)return e.c;for(t=0;t=e.c.b:e.a<=e.c.b))throw B(new qs);return t=e.a,e.a+=e.c.c,++e.b,Ae(t)}function oV(e){var t;return t=new Ble(e.a),js(t,e),Ee(t,(Oe(),jr),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function sV(e){return(ze(),xc).Hc(e.j)?le(pe(A(e,(Oe(),N8)))):Zs(H(F(to,1),_e,8,0,[e.i.n,e.n,e.a])).b}function EWt(e){var t;return t=cA(Ovt),u(A(e,(Oe(),Kl)),21).Hc((cs(),D8))&&cr(t,($o(),_l),(Uo(),hN)),t}function TWt(e){var t,n,i,s;for(s=new _i,i=new N(e);i.a=0?t:-t;i>0;)i%2==0?(n*=n,i=i/2|0):(s*=n,i-=1);return t<0?1/s:s}function _Wt(e,t){var n,i,s;for(s=1,n=e,i=t>=0?t:-t;i>0;)i%2==0?(n*=n,i=i/2|0):(s*=n,i-=1);return t<0?1/s:s}function sg(e,t){var n,i,s,c;return c=(s=e?E$(e):null,Dot((i=t,s&&s.Gl(),i))),c==t&&(n=E$(e),n&&n.Gl()),c}function rnt(e,t,n){var i,s;return s=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&(i=new ro(e,1,0,s,t),n?n.nj(i):n=i),n}function int(e,t,n){var i,s;return s=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&(i=new ro(e,1,3,s,t),n?n.nj(i):n=i),n}function Tde(e,t,n){var i,s;return s=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&(i=new ro(e,1,1,s,t),n?n.nj(i):n=i),n}function ont(e){var t,n;if(e!=null)for(n=0;n=i||t-129&&e<128?(zWe(),t=e+128,n=xme[t],!n&&(n=xme[t]=new Toe(e)),n):new Toe(e)}function x5(e){var t,n;return e>-129&&e<128?(iVe(),t=e+128,n=Pme[t],!n&&(n=Pme[t]=new Poe(e)),n):new Poe(e)}function cnt(e,t){var n;e.a.c.length>0&&(n=u(Ye(e.a,e.a.c.length-1),579),gde(n,t))||$e(e.a,new xJe(t))}function DWt(e){tf();var t,n;t=e.d.c-e.e.c,n=u(e.g,154),ic(n.b,new kDe(t)),ic(n.c,new CDe(t)),Po(n.i,new SDe(t))}function unt(e){var t;return t=new Hp,t.a+="VerticalSegment ",Al(t,e.e),t.a+=" ",lr(t,Wle(new EK,new N(e.k))),t.a}function lV(e,t){var n,i,s;for(n=0,s=el(e,t).Kc();s.Ob();)i=u(s.Pb(),12),n+=A(i,(Oe(),Zc))!=null?1:0;return n}function Wy(e,t,n){var i,s,c;for(i=0,c=Ln(e,0);c.b!=c.d.c&&(s=le(pe(_n(c))),!(s>n));)s>=t&&++i;return i}function ant(e,t){qn(e);try{return e._b(t)}catch(n){if(n=li(n),te(n,212)||te(n,169))return!1;throw B(n)}}function Pde(e,t){qn(e);try{return e.Hc(t)}catch(n){if(n=li(n),te(n,212)||te(n,169))return!1;throw B(n)}}function NWt(e,t){qn(e);try{return e.Mc(t)}catch(n){if(n=li(n),te(n,212)||te(n,169))return!1;throw B(n)}}function Gm(e,t){qn(e);try{return e.xc(t)}catch(n){if(n=li(n),te(n,212)||te(n,169))return null;throw B(n)}}function BWt(e,t){qn(e);try{return e.Bc(t)}catch(n){if(n=li(n),te(n,212)||te(n,169))return null;throw B(n)}}function xS(e,t){switch(t.g){case 2:case 1:return el(e,t);case 3:case 4:return ha(el(e,t))}return Ot(),Ot(),Jo}function ES(e){var t;return e.Db&64?lf(e):(t=new Ma(lf(e)),t.a+=" (name: ",ps(t,e.zb),t.a+=")",t.a)}function FWt(e){var t;return t=u(id(e.c.c,""),233),t||(t=new b4(Ck(kk(new D3,""),"Other")),op(e.c.c,"",t)),t}function Mde(e,t,n){var i,s;return s=e.sb,e.sb=t,e.Db&4&&!(e.Db&1)&&(i=new ro(e,1,4,s,t),n?n.nj(i):n=i),n}function Ode(e,t,n){var i,s;return s=e.r,e.r=t,e.Db&4&&!(e.Db&1)&&(i=new ro(e,1,8,s,e.r),n?n.nj(i):n=i),n}function zWt(e,t,n){var i,s;return i=new l1(e.e,4,13,(s=t.c,s||(Mt(),Sd)),null,sp(e,t),!1),n?n.nj(i):n=i,n}function HWt(e,t,n){var i,s;return i=new l1(e.e,3,13,null,(s=t.c,s||(Mt(),Sd)),sp(e,t),!1),n?n.nj(i):n=i,n}function tp(e,t){var n,i;return n=u(t,691),i=n.el(),!i&&n.fl(i=te(t,90)?new FKe(e,u(t,29)):new uYe(e,u(t,156))),i}function JI(e,t,n){var i;e._i(e.i+1),i=e.Zi(t,n),t!=e.i&&Ol(e.g,t,e.g,t+1,e.i-t),pi(e.g,t,i),++e.i,e.Mi(t,n),e.Ni()}function KWt(e,t){var n;return t.a&&(n=t.a.a.length,e.a?lr(e.a,e.b):e.a=new Ru(e.d),bYe(e.a,t.a,t.d.length,n)),e}function UWt(e,t){var n;e.c=t,e.a=XVt(t),e.a<54&&(e.f=(n=t.d>1?pYe(t.a[0],t.a[1]):pYe(t.a[0],0),m0(t.e>0?n:J1(n))))}function QI(e,t){var n;return n=new Y,e.a.Bd(n)?(Ok(),new vK(sn(XQe(e,n.a,t)))):(Qp(e),Ok(),Ok(),Bme)}function fnt(e,t){var n;e.c.length!=0&&(n=u(ld(e,be(Lh,fp,10,e.c.length,0,1)),199),_le(n,new cTe),ist(n,t))}function dnt(e,t){var n;e.c.length!=0&&(n=u(ld(e,be(Lh,fp,10,e.c.length,0,1)),199),_le(n,new uTe),ist(n,t))}function Rr(e,t){return lo(e)?Et(e,t):xm(e)?iWe(e,t):Sm(e)?(sn(e),fe(e)===fe(t)):xue(e)?e.Fb(t):wue(e)?nUe(e,t):wae(e,t)}function fa(e,t,n){if(t<0)j1e(e,n);else{if(!n.rk())throw B(new Qt(vg+n.xe()+x9));u(n,69).wk().Ek(e,e.hi(),t)}}function hnt(e,t,n){if(e<0||t>n)throw B(new ys(Mj+e+$ge+t+", size: "+n));if(e>t)throw B(new Qt(Mj+e+rft+t))}function pnt(e){var t;return e.Db&64?lf(e):(t=new Ma(lf(e)),t.a+=" (source: ",ps(t,e.d),t.a+=")",t.a)}function gnt(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function GWt(e){xj();var t,n,i,s;for(n=TV(),i=0,s=n.length;i=0?cg(e):Q7(cg(J1(e))))}function mnt(e,t,n,i,s,c){this.e=new Le,this.f=(ls(),lx),$e(this.e,e),this.d=t,this.a=n,this.b=i,this.f=s,this.c=c}function qWt(e,t,n){e.n=u0(Hg,[_e,RX],[376,28],14,[n,Wi(w.Math.ceil(t/32))],2),e.o=t,e.p=n,e.j=t-1>>1,e.k=n-1>>1}function vnt(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function ynt(e,t){var n,i;for(i=new hn(e);i.e!=i.i.gc();)if(n=u(mn(i),142),fe(t)===fe(n))return!0;return!1}function XWt(e,t,n){var i,s,c;return c=(s=z5(e.b,t),s),c&&(i=u(vj(MI(e,c),""),29),i)?ipe(e,i,t,n):null}function cV(e,t,n){var i,s,c;return c=(s=z5(e.b,t),s),c&&(i=u(vj(MI(e,c),""),29),i)?ope(e,i,t,n):null}function YWt(e,t){var n;if(n=Hy(e.i,t),n==null)throw B(new Ld("Node did not exist in input."));return Xfe(t,n),null}function JWt(e,t){var n;if(n=xP(e,t),te(n,331))return u(n,35);throw B(new Qt(vg+t+"' is not a valid attribute"))}function IS(e,t,n){var i;if(i=e.gc(),t>i)throw B(new Mm(t,i));if(e.Si()&&e.Hc(n))throw B(new Qt(fM));e.Gi(t,n)}function QWt(e,t){t.Ug("Sort end labels",1),Ci(Ar(Qs(new xt(null,new Pt(e.b,16)),new WEe),new VEe),new qEe),t.Vg()}function ji(){ji=U,yd=new jT(a9,0),Bs=new jT(G4,1),Ps=new jT(U4,2),vd=new jT(GX,3),Ca=new jT("UP",4)}function eP(){eP=U,SB=new dU("P1_STRUCTURE",0),xB=new dU("P2_PROCESSING_ORDER",1),EB=new dU("P3_EXECUTION",2)}function knt(){knt=U,Gyt=Wd(Wd(m7(Wd(Wd(m7(cr(new Li,(A4(),dx),(YS(),ree)),hx),m4e),y4e),px),p4e),k4e)}function ZWt(e){switch(u(A(e,(Oe(),W0)),311).g){case 1:Ee(e,W0,(c1(),o6));break;case 2:Ee(e,W0,(c1(),M2))}}function eVt(e){switch(e){case 0:return new cFe;case 1:return new sFe;case 2:return new lFe;default:throw B(new pT)}}function Cnt(e){switch(e.g){case 2:return Bs;case 1:return Ps;case 4:return vd;case 3:return Ca;default:return yd}}function Lde(e,t){switch(e.b.g){case 0:case 1:return t;case 2:case 3:return new ia(t.d,0,t.a,t.b);default:return null}}function $de(e){switch(e.g){case 1:return rn;case 2:return en;case 3:return fn;case 4:return Pn;default:return nl}}function tP(e){switch(e.g){case 1:return Pn;case 2:return rn;case 3:return en;case 4:return fn;default:return nl}}function g$(e){switch(e.g){case 1:return fn;case 2:return Pn;case 3:return rn;case 4:return en;default:return nl}}function jde(e,t,n,i){switch(t){case 1:return!e.n&&(e.n=new Se(ms,e,1,7)),e.n;case 2:return e.k}return Phe(e,t,n,i)}function PS(e,t,n){var i,s;return e.Pj()?(s=e.Qj(),i=gq(e,t,n),e.Jj(e.Ij(7,Ae(n),i,t,s)),i):gq(e,t,n)}function uV(e,t){var n,i,s;e.d==null?(++e.e,--e.f):(s=t.ld(),n=t.Bi(),i=(n&Mr)%e.d.length,BHt(e,i,Gst(e,i,n,s)))}function E5(e,t){var n;n=(e.Bb&af)!=0,t?e.Bb|=af:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&_r(e,new rf(e,1,10,n,t))}function T5(e,t){var n;n=(e.Bb&cv)!=0,t?e.Bb|=cv:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&_r(e,new rf(e,1,12,n,t))}function I5(e,t){var n;n=(e.Bb&zc)!=0,t?e.Bb|=zc:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&_r(e,new rf(e,1,15,n,t))}function P5(e,t){var n;n=(e.Bb&gv)!=0,t?e.Bb|=gv:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&_r(e,new rf(e,1,11,n,t))}function tVt(e){var t;e.g&&(t=e.c.kg()?e.f:e.a,mpe(t.a,e.o,!0),mpe(t.a,e.o,!1),Ee(e.o,(Ue(),yi),(fo(),ob)))}function nVt(e){var t;if(!e.a)throw B(new ks("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,Gqe(e,t),Uqe(e,t)}function rVt(e,t){var n;if(n=pn(e.k,t),n==null)throw B(new Ld("Port did not exist in input."));return Xfe(t,n),null}function iVt(e){var t,n;for(n=Hst(ju(e)).Kc();n.Ob();)if(t=Jn(n.Pb()),JS(e,t))return oHt((CHe(),U4t),t);return null}function Snt(e){var t,n;for(n=e.p.a.ec().Kc();n.Ob();)if(t=u(n.Pb(),218),t.f&&e.b[t.c]<-1e-10)return t;return null}function oVt(e){var t,n;for(n=h0(new Hp,91),t=!0;e.Ob();)t||(n.a+=Xo),t=!1,Al(n,e.Pb());return(n.a+="]",n).a}function sVt(e){var t,n,i;for(t=new Le,i=new N(e.b);i.at?1:e==t?e==0?Kr(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function cVt(e){var t;return t=e.a[e.c-1&e.a.length-1],t==null?null:(e.c=e.c-1&e.a.length-1,pi(e.a,e.c,null),t)}function uVt(e){var t,n,i;for(i=0,n=e.length,t=0;t=1?Bs:vd):n}function hVt(e){switch(u(A(e,(Ue(),x1)),223).g){case 1:return new APe;case 3:return new NPe;default:return new RPe}}function lg(e){if(e.c)lg(e.c);else if(e.d)throw B(new ks("Stream already terminated, can't be modified or used"))}function ow(e,t,n){var i;return i=e.a.get(t),e.a.set(t,n===void 0?null:n),i===void 0?(++e.c,++e.b.g):++e.d,i}function pVt(e,t,n){var i,s;for(s=e.a.ec().Kc();s.Ob();)if(i=u(s.Pb(),10),HI(n,u(Ye(t,i.p),16)))return i;return null}function Nde(e,t,n){var i;return i=0,t&&(Py(e.a)?i+=t.f.a/2:i+=t.f.b/2),n&&(Py(e.a)?i+=n.f.a/2:i+=n.f.b/2),i}function gVt(e,t,n){var i;i=n,!i&&(i=oue(new H3,0)),i.Ug($ft,2),Prt(e.b,t,i.eh(1)),Oln(e,t,i.eh(1)),Aun(t,i.eh(1)),i.Vg()}function Bde(e,t,n){var i,s;return i=(Up(),s=new J_,s),HL(i,t),zL(i,n),e&&Dn((!e.a&&(e.a=new Ai(Yu,e,5)),e.a),i),i}function fV(e){var t;return e.Db&64?lf(e):(t=new Ma(lf(e)),t.a+=" (identifier: ",ps(t,e.k),t.a+=")",t.a)}function dV(e,t){var n;n=(e.Bb&wl)!=0,t?e.Bb|=wl:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&_r(e,new rf(e,1,18,n,t))}function Fde(e,t){var n;n=(e.Bb&wl)!=0,t?e.Bb|=wl:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&_r(e,new rf(e,1,18,n,t))}function M5(e,t){var n;n=(e.Bb&Xd)!=0,t?e.Bb|=Xd:e.Bb&=-16385,e.Db&4&&!(e.Db&1)&&_r(e,new rf(e,1,16,n,t))}function zde(e,t){var n;n=(e.Bb&es)!=0,t?e.Bb|=es:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&_r(e,new rf(e,1,20,n,t))}function Hde(e){var t;return t=be(Ea,Yd,28,2,15,1),e-=es,t[0]=(e>>10)+GP&Di,t[1]=(e&1023)+56320&Di,Ud(t,0,t.length)}function bVt(e){var t;return t=Jm(e),t>34028234663852886e22?ii:t<-34028234663852886e22?Hi:t}function Ho(e,t){var n;return Hs(e)&&Hs(t)&&(n=e+t,UP"+w0(t.c):"e_"+Vr(t),e.b&&e.c?w0(e.b)+"->"+w0(e.c):"e_"+Vr(e))}function vVt(e,t){return Et(t.b&&t.c?w0(t.b)+"->"+w0(t.c):"e_"+Vr(t),e.b&&e.c?w0(e.b)+"->"+w0(e.c):"e_"+Vr(e))}function sw(e,t){return Yf(),of(pg),w.Math.abs(e-t)<=pg||e==t||isNaN(e)&&isNaN(t)?0:et?1:Rb(isNaN(e),isNaN(t))}function d1(){d1=U,gte=new YR(a9,0),gO=new YR("POLYLINE",1),nC=new YR("ORTHOGONAL",2),v6=new YR("SPLINES",3)}function w$(){w$=U,m6e=new aU("ASPECT_RATIO_DRIVEN",0),$ee=new aU("MAX_SCALE_DRIVEN",1),w6e=new aU("AREA_DRIVEN",2)}function yVt(e,t,n){var i;try{KGt(e,t,n)}catch(s){throw s=li(s),te(s,606)?(i=s,B(new Hae(i))):B(s)}return t}function kVt(e){var t,n,i;for(n=0,i=e.length;nt&&i.Ne(e[c-1],e[c])>0;--c)d=e[c],pi(e,c,e[c-1]),pi(e,c-1,d)}function at(e,t){var n,i,s,c,d;if(n=t.f,op(e.c.d,n,t),t.g!=null)for(s=t.g,c=0,d=s.length;ct){vYe(n);break}}sI(n,t)}function EVt(e,t){var n,i,s;i=Ny(t),s=le(pe(Vm(i,(Ue(),pf)))),n=w.Math.max(0,s/2-.5),DS(t,n,1),$e(e,new NHe(t,n))}function TVt(e,t,n){var i;n.Ug("Straight Line Edge Routing",1),n.dh(t,Kbe),i=u(Ie(t,($y(),z2)),27),uut(e,i),n.dh(t,cD)}function Kde(e,t){e.n.c.length==0&&$e(e.n,new aL(e.s,e.t,e.i)),$e(e.b,t),She(u(Ye(e.n,e.n.c.length-1),209),t),Gct(e,t)}function MS(e){var t;this.a=(t=u(e.e&&e.e(),9),new ra(t,u(ef(t,t.length),9),0)),this.b=be(Ji,Bt,1,this.a.a.length,5,1)}function Us(e){var t;return Array.isArray(e)&&e.Tm===xe?l0(Tu(e))+"@"+(t=Vr(e)>>>0,t.toString(16)):e.toString()}function IVt(e,t){return e.h==KP&&e.m==0&&e.l==0?(t&&(yg=nc(0,0,0)),iUe((t5(),mme))):(t&&(yg=nc(e.l,e.m,e.h)),nc(0,0,0))}function PVt(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function Int(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function Ude(e,t,n,i){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return jde(e,t,n,i)}function m$(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw B(new Qt("Node "+t+" not part of edge "+e))}function MVt(e,t){var n;if(n=xP(e.Dh(),t),te(n,102))return u(n,19);throw B(new Qt(vg+t+"' is not a valid reference"))}function da(e,t,n,i){if(t<0)upe(e,n,i);else{if(!n.rk())throw B(new Qt(vg+n.xe()+x9));u(n,69).wk().Ck(e,e.hi(),t,i)}}function au(e){var t;if(e.b){if(au(e.b),e.b.d!=e.c)throw B(new ea)}else e.d.dc()&&(t=u(e.f.c.xc(e.e),16),t&&(e.d=t))}function OVt(e){Im();var t,n,i,s;for(t=e.o.b,i=u(u($r(e.r,(ze(),Pn)),21),87).Kc();i.Ob();)n=u(i.Pb(),117),s=n.e,s.b+=t}function _Vt(e){var t,n,i;for(this.a=new Dd,i=new N(e);i.a=s)return t.c+n;return t.c+t.b.gc()}function AVt(e,t){Lk();var n,i,s,c;for(i=DQe(e),s=t,Zk(i,0,i.length,s),n=0;n0&&(i+=s,++n);return n>1&&(i+=e.d*(n-1)),i}function $Vt(e){var t,n,i,s,c;return c=c1e(e),n=mT(e.c),i=!n,i&&(s=new t0,$f(c,"knownLayouters",s),t=new gBe(s),Po(e.c,t)),c}function Vde(e){var t,n,i;for(i=new B1,i.a+="[",t=0,n=e.gc();t0&&(Zt(t-1,e.length),e.charCodeAt(t-1)==58)&&!gV(e,zx,Hx))}function qde(e,t){var n;return fe(e)===fe(t)?!0:te(t,92)?(n=u(t,92),e.e==n.e&&e.d==n.d&&cHt(e,n.a)):!1}function P4(e){switch(ze(),e.g){case 4:return en;case 1:return fn;case 3:return Pn;case 2:return rn;default:return nl}}function BVt(e){var t,n;if(e.b)return e.b;for(n=pd?null:e.d;n;){if(t=pd?null:n.b,t)return t;n=pd?null:n.d}return Pk(),Hme}function Xde(e){var t,n,i;for(i=le(pe(e.a.of((gr(),AB)))),n=new N(e.a.Sf());n.a>5,t=e&31,i=be(Bn,ur,28,n+1,15,1),i[n]=1<3;)s*=10,--c;e=(e+(s>>1))/s|0}return i.i=e,!0}function ci(e,t){var n,i,s;if(n=(e.i==null&&qd(e),e.i),i=t.Lj(),i!=-1){for(s=n.length;i=0;--i)for(t=n[i],s=0;s>1,this.k=t-1>>1}function eqt(e){PL(),u(e.of((gr(),_g)),181).Hc((du(),FB))&&(u(e.of(Nv),181).Fc((Qc(),y6)),u(e.of(_g),181).Mc(FB))}function Lnt(e){var t,n;t=e.d==(L4(),M8),n=Qhe(e),t&&!n||!t&&n?Ee(e.a,(Ue(),sh),(Ch(),lO)):Ee(e.a,(Ue(),sh),(Ch(),sO))}function mV(){mV=U,OR(),ZN=(Ue(),Fw),rvt=td(H(F(Jee,1),Obe,149,0,[KM,pf,$2,Bw,Rv,LZ,K8,U8,$Z,rx,L2,Z0,j2]))}function tqt(e,t){var n;return n=u(Ks(e,Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[(Jc(),Ws)]))),15),n.Qc(ZWe(n.gc()))}function $nt(e,t){var n,i;if(i=new pk(e.a.ad(t,!0)),i.a.gc()<=1)throw B(new B3);return n=i.a.ec().Kc(),n.Pb(),u(n.Pb(),40)}function nqt(e,t,n){var i,s;return i=le(e.p[t.i.p])+le(e.d[t.i.p])+t.n.b+t.a.b,s=le(e.p[n.i.p])+le(e.d[n.i.p])+n.n.b+n.a.b,s-i}function nhe(e,t){var n;return e.i>0&&(t.lengthe.i&&pi(t,e.i,null),t}function y$(e){var t;return e.Db&64?ES(e):(t=new Ma(ES(e)),t.a+=" (instanceClassName: ",ps(t,e.D),t.a+=")",t.a)}function k$(e){var t,n,i,s;for(s=0,n=0,i=e.length;n0?(e._j(),i=t==null?0:Vr(t),s=(i&Mr)%e.d.length,n=Gst(e,s,i,t),n!=-1):!1}function jnt(e,t){var n,i;e.a=Ho(e.a,1),e.c=w.Math.min(e.c,t),e.b=w.Math.max(e.b,t),e.d+=t,n=t-e.f,i=e.e+n,e.f=i-e.e-n,e.e=i}function rhe(e,t){switch(t){case 3:Zb(e,0);return;case 4:ew(e,0);return;case 5:oc(e,0);return;case 6:sc(e,0);return}Ide(e,t)}function lw(e,t){switch(t.g){case 1:return s4(e.j,(Dc(),Uve));case 2:return s4(e.j,(Dc(),Wve));default:return Ot(),Ot(),Jo}}function ihe(e){Hb();var t;switch(t=e.Pc(),t.length){case 0:return VJ;case 1:return new QU(qn(t[0]));default:return new AG(kVt(t))}}function Dnt(e,t){e.Xj();try{e.d.bd(e.e++,t),e.f=e.d.j,e.g=-1}catch(n){throw n=li(n),te(n,77)?B(new ea):B(n)}}function yV(){yV=U,Ote=new ORe,Z5e=new _Re,e8e=new RRe,t8e=new ARe,n8e=new LRe,r8e=new $Re,i8e=new jRe,o8e=new DRe,s8e=new NRe}function C$(e,t){Ile();var n,i;return n=XT((bR(),bR(),j9)),i=null,t==n&&(i=u($l(bme,e),624)),i||(i=new eqe(e),t==n&&Cs(bme,e,i)),i}function Nnt(e){qm();var t;return(e.q?e.q:(Ot(),Ot(),Rh))._b((Ue(),Dw))?t=u(A(e,Dw),203):t=u(A(Io(e),nx),203),t}function Vm(e,t){var n,i;return i=null,Xr(e,(Ue(),JN))&&(n=u(A(e,JN),96),n.pf(t)&&(i=n.of(t))),i==null&&(i=A(Io(e),t)),i}function Bnt(e,t){var n,i,s;return te(t,44)?(n=u(t,44),i=n.ld(),s=Gm(e.Rc(),i),zd(s,n.md())&&(s!=null||e.Rc()._b(i))):!1}function Df(e,t){var n,i,s;return e.f>0&&(e._j(),i=t==null?0:Vr(t),s=(i&Mr)%e.d.length,n=K1e(e,s,i,t),n)?n.md():null}function Yl(e,t,n){var i,s,c;return e.Pj()?(i=e.i,c=e.Qj(),JI(e,i,t),s=e.Ij(3,null,t,i,c),n?n.nj(s):n=s):JI(e,e.i,t),n}function iqt(e,t,n){var i,s;return i=new l1(e.e,4,10,(s=t.c,te(s,90)?u(s,29):(Mt(),Va)),null,sp(e,t),!1),n?n.nj(i):n=i,n}function oqt(e,t,n){var i,s;return i=new l1(e.e,3,10,null,(s=t.c,te(s,90)?u(s,29):(Mt(),Va)),sp(e,t),!1),n?n.nj(i):n=i,n}function Fnt(e){Im();var t;return t=new Vo(u(e.e.of((gr(),Y2)),8)),e.B.Hc((du(),iC))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function cg(e){Vd();var t,n;return n=Vn(e),t=Vn(Yp(e,32)),t!=0?new WXe(n,t):n>10||n<0?new o1(1,n):Tpt[n]}function rP(e,t){var n;return Hs(e)&&Hs(t)&&(n=e%t,UP=0?c=c.a[1]:(s=c,c=c.a[0])}return s}function oP(e,t,n){var i,s,c;for(s=null,c=e.b;c;){if(i=e.a.Ne(t,c.d),n&&i==0)return c;i<=0?c=c.a[0]:(s=c,c=c.a[1])}return s}function fqt(e,t,n,i){var s,c,d;return s=!1,pcn(e.f,n,i)&&(Aqt(e.f,e.a[t][n],e.a[t][i]),c=e.a[t],d=c[i],c[i]=c[n],c[n]=d,s=!0),s}function Unt(e,t,n){var i,s,c,d;for(s=u(pn(e.b,n),183),i=0,d=new N(t.j);d.a>5,t&=31,s=e.d+n+(t==0?0:1),i=be(Bn,ur,28,s,15,1),uQt(i,e.a,n,t),c=new d0(e.e,s,i),iS(c),c}function dqt(e,t){var n,i,s;for(i=new gn(wn(Pi(e).a.Kc(),new j));$n(i);)if(n=u(xn(i),18),s=n.d.i,s.c==t)return!1;return!0}function lhe(e,t,n){var i,s,c,d,h;return d=e.k,h=t.k,i=n[d.g][h.g],s=pe(Vm(e,i)),c=pe(Vm(t,i)),w.Math.max((sn(s),s),(sn(c),c))}function hqt(){return Error.stackTraceLimit>0?(w.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function pqt(e,t){return Yf(),Yf(),of(pg),(w.Math.abs(e-t)<=pg||e==t||isNaN(e)&&isNaN(t)?0:et?1:Rb(isNaN(e),isNaN(t)))>0}function che(e,t){return Yf(),Yf(),of(pg),(w.Math.abs(e-t)<=pg||e==t||isNaN(e)&&isNaN(t)?0:et?1:Rb(isNaN(e),isNaN(t)))<0}function Wnt(e,t){return Yf(),Yf(),of(pg),(w.Math.abs(e-t)<=pg||e==t||isNaN(e)&&isNaN(t)?0:et?1:Rb(isNaN(e),isNaN(t)))<=0}function CV(e,t){for(var n=0;!t[n]||t[n]=="";)n++;for(var i=t[n++];n0&&this.b>0&&(this.g=$A(this.c,this.b,this.a))}function gqt(e,t){var n=e.a,i;t=String(t),n.hasOwnProperty(t)&&(i=n[t]);var s=(UW(),ZJ)[typeof i],c=s?s(i):Cde(typeof i);return c}function _5(e){var t,n,i;if(i=null,t=rh in e.a,n=!t,n)throw B(new Ld("Every element must have an id."));return i=$4(n1(e,rh)),i}function cw(e){var t,n;for(n=mot(e),t=null;e.c==2;)Er(e),t||(t=(Ir(),Ir(),new j7(2)),R0(t,n),n=t),n.Jm(mot(e));return n}function x$(e,t){var n,i,s;return e._j(),i=t==null?0:Vr(t),s=(i&Mr)%e.d.length,n=K1e(e,s,i,t),n?(QZe(e,n),n.md()):null}function Znt(e,t){return e.e>t.e?1:e.et.d?e.e:e.d=48&&e<48+w.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function bqt(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw B(new Qt("Input edge is not connected to the input port."))}function wqt(e){if(T$(b8,e))return Gt(),S8;if(T$(uJ,e))return Gt(),kg;throw B(new Qt("Expecting true or false"))}function fhe(e){switch(typeof e){case iX:return Z1(e);case yge:return Z3(e);case B4:return RGe(e);default:return e==null?0:$b(e)}}function Wd(e,t){if(e.a<0)throw B(new ks("Did not call before(...) or after(...) before calling add(...)."));return oce(e,e.a,t),e}function dhe(e){return fL(),te(e,162)?u(pn(IO,_pt),295).Rg(e):rc(IO,Tu(e))?u(pn(IO,Tu(e)),295).Rg(e):null}function lc(e){var t,n;return e.Db&32||(n=(t=u(Yt(e,16),29),Sn(t||e.ii())-Sn(e.ii())),n!=0&&M4(e,32,be(Ji,Bt,1,n,5,1))),e}function M4(e,t,n){var i;e.Db&t?n==null?etn(e,t):(i=KV(e,t),i==-1?e.Eb=n:pi(y0(e.Eb),i,n)):n!=null&&Srn(e,t,n)}function mqt(e,t,n,i){var s,c;t.c.length!=0&&(s=hnn(n,i),c=pen(t),Ci(BL(new xt(null,new Pt(c,1)),new DMe),new Mqe(e,n,s,i)))}function vqt(e,t){var n,i,s,c;return i=e.a.length-1,n=t-e.b&i,c=e.c-t&i,s=e.c-e.b&i,IGe(n=c?(wWt(e,t),-1):(bWt(e,t),1)}function E$(e){var t,n,i;if(i=e.Jh(),!i)for(t=0,n=e.Ph();n;n=n.Ph()){if(++t>AX)return n.Qh();if(i=n.Jh(),i||n==e)break}return i}function trt(e,t){var n;return fe(t)===fe(e)?!0:!te(t,21)||(n=u(t,21),n.gc()!=e.gc())?!1:e.Ic(n)}function yqt(e,t){return e.et.e?1:e.ft.f?1:Vr(e)-Vr(t)}function T$(e,t){return sn(e),t==null?!1:Et(e,t)?!0:e.length==t.length&&Et(e.toLowerCase(),t.toLowerCase())}function p1(e){var t,n;return kl(e,-129)>0&&kl(e,128)<0?(rVe(),t=Vn(e)+128,n=Eme[t],!n&&(n=Eme[t]=new Ioe(e)),n):new Ioe(e)}function P0(){P0=U,yv=new HR(eh,0),Bve=new HR("INSIDE_PORT_SIDE_GROUPS",1),AQ=new HR("GROUP_MODEL_ORDER",2),LQ=new HR(u0e,3)}function kqt(e){var t;return e.b||p_t(e,(t=hLt(e.e,e.a),!t||!Et(uJ,Df((!t.b&&(t.b=new Su((Mt(),ns),dl,t)),t.b),"qualified")))),e.c}function Cqt(e,t){var n,i;for(n=(Zt(t,e.length),e.charCodeAt(t)),i=t+1;i2e3&&(bpt=e,jD=w.setTimeout(v_t,10))),$D++==0?($Kt((vse(),gme)),!0):!1}function jqt(e,t,n){var i;(Npt?(BVt(e),!0):Bpt||zpt?(Pk(),!0):Fpt&&(Pk(),!1))&&(i=new bWe(t),i.b=n,UQt(e,i))}function xV(e,t){var n;n=!e.A.Hc((Iu(),sb))||e.q==(fo(),Ul),e.u.Hc((Qc(),T1))?n?Eun(e,t):Yut(e,t):e.u.Hc($g)&&(n?Gcn(e,t):fat(e,t))}function lrt(e){var t;fe(Ie(e,(gr(),q2)))===fe((f1(),jB))&&(ri(e)?(t=u(Ie(ri(e),q2),346),Br(e,q2,t)):Br(e,q2,Rx))}function Dqt(e){var t,n;return Xr(e.d.i,(Ue(),F8))?(t=u(A(e.c.i,F8),17),n=u(A(e.d.i,F8),17),yl(t.a,n.a)>0):!1}function crt(e,t,n){return new ia(w.Math.min(e.a,t.a)-n/2,w.Math.min(e.b,t.b)-n/2,w.Math.abs(e.a-t.a)+n,w.Math.abs(e.b-t.b)+n)}function urt(e){var t;this.d=new Le,this.j=new po,this.g=new po,t=e.g.b,this.f=u(A(Io(t),(Ue(),Wu)),88),this.e=le(pe(O$(t,Rv)))}function art(e){this.d=new Le,this.e=new q1,this.c=be(Bn,ur,28,(ze(),H(F(ts,1),Sl,64,0,[nl,en,fn,Pn,rn])).length,15,1),this.b=e}function ghe(e,t,n){var i;switch(i=n[e.g][t],e.g){case 1:case 3:return new Me(0,i);case 2:case 4:return new Me(i,0);default:return null}}function frt(e,t,n){var i,s;s=u(fI(t.f),205);try{s.rf(e,n),pqe(t.f,s)}catch(c){throw c=li(c),te(c,103)?(i=c,B(i)):B(c)}}function drt(e,t,n){var i,s,c,d,h,b;return i=null,h=sge(c5(),t),c=null,h&&(s=null,b=ige(h,n),d=null,b!=null&&(d=e.qf(h,b)),s=d,c=s),i=c,i}function EV(e,t,n,i){var s;if(s=e.length,t>=s)return s;for(t=t>0?t:0;ti&&pi(t,i,null),t}function hrt(e,t){var n,i;for(i=e.a.length,t.lengthi&&pi(t,i,null),t}function R5(e,t){var n,i;if(++e.j,t!=null&&(n=(i=e.a.Cb,te(i,99)?u(i,99).th():null),Hen(t,n))){M4(e.a,4,n);return}M4(e.a,4,u(t,129))}function Nqt(e){var t;if(e==null)return null;if(t=Ktn(Nl(e,!0)),t==null)throw B(new xK("Invalid hexBinary value: '"+e+"'"));return t}function I$(e,t,n){var i;t.a.length>0&&($e(e.b,new RWe(t.a,n)),i=t.a.length,0i&&(t.a+=LUe(be(Ea,Yd,28,-i,15,1))))}function prt(e,t,n){var i,s,c;if(!n[t.d])for(n[t.d]=!0,s=new N(Gy(t));s.a=e.b>>1)for(i=e.c,n=e.b;n>t;--n)i=i.b;else for(i=e.a.a,n=0;n=0?e.Wh(s):pq(e,i)):n<0?pq(e,i):u(i,69).wk().Bk(e,e.hi(),n)}function mrt(e){var t,n,i;for(i=(!e.o&&(e.o=new jc((Cl(),Fh),Sp,e,0)),e.o),n=i.c.Kc();n.e!=n.i.gc();)t=u(n.Yj(),44),t.md();return SI(i)}function Ke(e){var t;if(te(e.a,4)){if(t=dhe(e.a),t==null)throw B(new ks(Fdt+e.b+"'. "+Bdt+(e1(PO),PO.k)+kwe));return t}else return e.a}function Wqt(e,t){var n,i;if(e.j.length!=t.j.length)return!1;for(n=0,i=e.j.length;n=64&&t<128&&(s=Rf(s,nf(1,t-64)));return s}function O$(e,t){var n,i;return i=null,Xr(e,(gr(),w6))&&(n=u(A(e,w6),96),n.pf(t)&&(i=n.of(t))),i==null&&Io(e)&&(i=A(Io(e),t)),i}function Vqt(e,t){var n;return n=u(A(e,(Ue(),Is)),75),EU(t,B0t)?n?Au(n):(n=new _c,Ee(e,Is,n)):n&&Ee(e,Is,null),n}function RS(){RS=U,vve=(gr(),Yke),yQ=Oke,Ngt=G2,mve=kp,Hgt=(H$(),Jme),zgt=Xme,Kgt=Zme,Fgt=qme,Bgt=(tV(),gve),vQ=$gt,wve=jgt,VD=Dgt}function _$(e){switch(Hse(),this.c=new Le,this.d=e,e.g){case 0:case 2:this.a=Yue(Nve),this.b=ii;break;case 3:case 1:this.a=Nve,this.b=Hi}}function qqt(e){var t;o4(u(A(e,(Ue(),yi)),101))&&(t=e.b,sst((_t(0,t.c.length),u(t.c[0],30))),sst(u(Ye(t,t.c.length-1),30)))}function Xqt(e,t){t.Ug("Self-Loop post-processing",1),Ci(Ar(Ar(Qs(new xt(null,new Pt(e.b,16)),new dIe),new hIe),new pIe),new gIe),t.Vg()}function vrt(e,t,n){var i,s;if(e.c)oc(e.c,e.c.i+t),sc(e.c,e.c.j+n);else for(s=new N(e.b);s.a=0&&(n.d=e.t);break;case 3:e.t>=0&&(n.a=e.t)}e.C&&(n.b=e.C.b,n.c=e.C.c)}function AS(){AS=U,z3e=new OT(_be,0),UZ=new OT(dY,1),GZ=new OT("LINEAR_SEGMENTS",2),ox=new OT("BRANDES_KOEPF",3),sx=new OT(pdt,4)}function LS(){LS=U,TM=new FR(_j,0),GD=new FR(WX,1),WD=new FR(VX,2),IM=new FR(qX,3),TM.a=!1,GD.a=!0,WD.a=!1,IM.a=!0}function O4(){O4=U,SM=new BR(_j,0),CM=new BR(WX,1),xM=new BR(VX,2),EM=new BR(qX,3),SM.a=!1,CM.a=!0,xM.a=!1,EM.a=!0}function _4(e,t,n,i){var s;return n>=0?e.Sh(t,n,i):(e.Ph()&&(i=(s=e.Fh(),s>=0?e.Ah(i):e.Ph().Th(e,-1-s,null,i))),e.Ch(t,n,i))}function bhe(e,t){switch(t){case 7:!e.e&&(e.e=new jt(Ti,e,7,4)),jn(e.e);return;case 8:!e.d&&(e.d=new jt(Ti,e,8,5)),jn(e.d);return}rhe(e,t)}function Br(e,t,n){return n==null?(!e.o&&(e.o=new jc((Cl(),Fh),Sp,e,0)),x$(e.o,t)):(!e.o&&(e.o=new jc((Cl(),Fh),Sp,e,0)),fP(e.o,t,n)),e}function Srt(e,t){Ot();var n,i,s,c;for(n=e,c=t,te(e,21)&&!te(t,21)&&(n=t,c=e),s=n.Kc();s.Ob();)if(i=s.Pb(),c.Hc(i))return!1;return!0}function eXt(e,t,n,i){if(t.an.b)return!0}return!1}function OV(e,t){return lo(e)?!!upt[t]:e.Sm?!!e.Sm[t]:xm(e)?!!cpt[t]:Sm(e)?!!lpt[t]:!1}function tXt(e){var t;t=e.a;do t=u(xn(new gn(wn(eo(t).a.Kc(),new j))),18).c.i,t.k==(nn(),io)&&e.b.Fc(t);while(t.k==(nn(),io));e.b=ha(e.b)}function xrt(e,t){var n,i,s;for(s=e,i=new gn(wn(eo(t).a.Kc(),new j));$n(i);)n=u(xn(i),18),n.c.i.c&&(s=w.Math.max(s,n.c.i.c.p));return s}function nXt(e,t){var n,i,s;for(s=0,i=u(u($r(e.r,t),21),87).Kc();i.Ob();)n=u(i.Pb(),117),s+=n.d.d+n.b.Mf().b+n.d.a,i.Ob()&&(s+=e.w);return s}function rXt(e,t){var n,i,s;for(s=0,i=u(u($r(e.r,t),21),87).Kc();i.Ob();)n=u(i.Pb(),117),s+=n.d.b+n.b.Mf().a+n.d.c,i.Ob()&&(s+=e.w);return s}function Ert(e){var t,n,i,s;if(i=0,s=tv(e),s.c.length==0)return 1;for(n=new N(s);n.a=0?e.Lh(d,n,!0):dw(e,c,n)):u(c,69).wk().yk(e,e.hi(),s,n,i)}function lXt(e,t,n,i){var s,c;c=t.pf((gr(),X2))?u(t.of(X2),21):e.j,s=GWt(c),s!=(xj(),gQ)&&(n&&!uhe(s)||k1e(Utn(e,s,i),t))}function cXt(e){switch(e.g){case 1:return iw(),kM;case 3:return iw(),yM;case 2:return iw(),wQ;case 4:return iw(),bQ;default:return null}}function uXt(e,t,n){if(e.e)switch(e.b){case 1:ZNt(e.c,t,n);break;case 0:eBt(e.c,t,n)}else UYe(e.c,t,n);e.a[t.p][n.p]=e.c.i,e.a[n.p][t.p]=e.c.e}function Trt(e){var t,n;if(e==null)return null;for(n=be(Lh,_e,199,e.length,0,2),t=0;t=0)return s;if(e.ol()){for(i=0;i=s)throw B(new Mm(t,s));if(e.Si()&&(i=e.dd(n),i>=0&&i!=t))throw B(new Qt(fM));return e.Xi(t,n)}function whe(e,t){if(this.a=u(qn(e),253),this.b=u(qn(t),253),e.Ed(t)>0||e==(wK(),GJ)||t==(mK(),WJ))throw B(new Qt("Invalid range: "+VYe(e,t)))}function Irt(e){var t,n;for(this.b=new Le,this.c=e,this.a=!1,n=new N(e.a);n.a0),(t&-t)==t)return Wi(t*fu(e,31)*4656612873077393e-25);do n=fu(e,31),i=n%t;while(n-i+(t-1)<0);return Wi(i)}function gXt(e,t,n){switch(n.g){case 1:e.a=t.a/2,e.b=0;break;case 2:e.a=t.a,e.b=t.b/2;break;case 3:e.a=t.a/2,e.b=t.b;break;case 4:e.a=0,e.b=t.b/2}}function sP(e,t,n,i){var s,c;for(s=t;s1&&(c=fXt(e,t)),c}function Ort(e){var t;return t=le(pe(Ie(e,(gr(),pO))))*w.Math.sqrt((!e.a&&(e.a=new Se(xr,e,10,11)),e.a).i),new Me(t,t/le(pe(Ie(e,LB))))}function RV(e){var t;return e.f&&e.f.Vh()&&(t=u(e.f,54),e.f=u(sg(e,t),84),e.f!=t&&e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,9,8,t,e.f))),e.f}function AV(e){var t;return e.i&&e.i.Vh()&&(t=u(e.i,54),e.i=u(sg(e,t),84),e.i!=t&&e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,9,7,t,e.i))),e.i}function is(e){var t;return e.b&&e.b.Db&64&&(t=e.b,e.b=u(sg(e,t),19),e.b!=t&&e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,9,21,t,e.b))),e.b}function j$(e,t){var n,i,s;e.d==null?(++e.e,++e.f):(i=t.Bi(),Nnn(e,e.f+1),s=(i&Mr)%e.d.length,n=e.d[s],!n&&(n=e.d[s]=e.dk()),n.Fc(t),++e.f)}function yhe(e,t,n){var i;return t.tk()?!1:t.Ik()!=-2?(i=t.ik(),i==null?n==null:Rr(i,n)):t.qk()==e.e.Dh()&&n==null}function D$(){var e;Nu(16,zat),e=het(16),this.b=be(qJ,zP,303,e,0,1),this.c=be(qJ,zP,303,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function g1(e){Tce.call(this),this.k=(nn(),Ei),this.j=(Nu(6,lv),new ql(6)),this.b=(Nu(2,lv),new ql(2)),this.d=new dK,this.f=new lse,this.a=e}function wXt(e){var t,n;e.c.length<=1||(t=Llt(e,(ze(),Pn)),kot(e,u(t.a,17).a,u(t.b,17).a),n=Llt(e,rn),kot(e,u(n.a,17).a,u(n.b,17).a))}function mXt(e,t,n){var i,s;for(s=e.a.b,i=s.c.length;i102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function NV(e,t){if(e==null)throw B(new U3("null key in entry: null="+t));if(t==null)throw B(new U3("null value in entry: "+e+"=null"))}function kXt(e,t){for(var n,i;e.Ob();)if(!t.Ob()||(n=e.Pb(),i=t.Pb(),!(fe(n)===fe(i)||n!=null&&Rr(n,i))))return!1;return!t.Ob()}function Art(e,t){var n;return n=H(F(uo,1),ws,28,15,[rV(e.a[0],t),rV(e.a[1],t),rV(e.a[2],t)]),e.d&&(n[0]=w.Math.max(n[0],n[2]),n[2]=n[0]),n}function Lrt(e,t){var n;return n=H(F(uo,1),ws,28,15,[f$(e.a[0],t),f$(e.a[1],t),f$(e.a[2],t)]),e.d&&(n[0]=w.Math.max(n[0],n[2]),n[2]=n[0]),n}function Che(e,t,n){o4(u(A(t,(Ue(),yi)),101))||(jae(e,t,lp(t,n)),jae(e,t,lp(t,(ze(),Pn))),jae(e,t,lp(t,en)),Ot(),Mi(t.j,new NDe(e)))}function $rt(e){var t,n;for(e.c||Fln(e),n=new _c,t=new N(e.a),D(t);t.a0&&(Zt(0,t.length),t.charCodeAt(0)==43)?(Zt(1,t.length+1),t.substr(1)):t))}function $Xt(e){var t;return e==null?null:new qp((t=Nl(e,!0),t.length>0&&(Zt(0,t.length),t.charCodeAt(0)==43)?(Zt(1,t.length+1),t.substr(1)):t))}function xhe(e,t,n,i,s,c,d,h){var b,m;i&&(b=i.a[0],b&&xhe(e,t,n,b,s,c,d,h),VV(e,n,i.d,s,c,d,h)&&t.Fc(i),m=i.a[1],m&&xhe(e,t,n,m,s,c,d,h))}function Xy(e,t,n){try{return _b(PW(e,t,n),1)}catch(i){throw i=li(i),te(i,333)?B(new ys(XX+e.o+"*"+e.p+YX+t+Xo+n+JX)):B(i)}}function Frt(e,t,n){try{return _b(PW(e,t,n),0)}catch(i){throw i=li(i),te(i,333)?B(new ys(XX+e.o+"*"+e.p+YX+t+Xo+n+JX)):B(i)}}function zrt(e,t,n){try{return _b(PW(e,t,n),2)}catch(i){throw i=li(i),te(i,333)?B(new ys(XX+e.o+"*"+e.p+YX+t+Xo+n+JX)):B(i)}}function Hrt(e,t){if(e.g==-1)throw B(new Oc);e.Xj();try{e.d.hd(e.g,t),e.f=e.d.j}catch(n){throw n=li(n),te(n,77)?B(new ea):B(n)}}function jXt(e){var t,n,i,s,c;for(i=new N(e.b);i.ac&&pi(t,c,null),t}function DXt(e,t){var n,i;if(i=e.gc(),t==null){for(n=0;n0&&(b+=s),m[v]=d,d+=h*(b+i)}function Urt(e){var t,n,i;for(i=e.f,e.n=be(uo,ws,28,i,15,1),e.d=be(uo,ws,28,i,15,1),t=0;t0?e.c:0),++s;e.b=i,e.d=c}function Xrt(e,t){var n;return n=H(F(uo,1),ws,28,15,[vhe(e,(jf(),ul),t),vhe(e,Ql,t),vhe(e,al,t)]),e.f&&(n[0]=w.Math.max(n[0],n[2]),n[2]=n[0]),n}function GXt(e,t,n){var i;try{dj(e,t+e.j,n+e.k,!1,!0)}catch(s){throw s=li(s),te(s,77)?(i=s,B(new ys(i.g+Aj+t+Xo+n+")."))):B(s)}}function WXt(e,t,n){var i;try{dj(e,t+e.j,n+e.k,!0,!1)}catch(s){throw s=li(s),te(s,77)?(i=s,B(new ys(i.g+Aj+t+Xo+n+")."))):B(s)}}function Yrt(e){var t;Xr(e,(Ue(),jw))&&(t=u(A(e,jw),21),t.Hc((ev(),bf))?(t.Mc(bf),t.Fc(wf)):t.Hc(wf)&&(t.Mc(wf),t.Fc(bf)))}function Jrt(e){var t;Xr(e,(Ue(),jw))&&(t=u(A(e,jw),21),t.Hc((ev(),vf))?(t.Mc(vf),t.Fc(Ha)):t.Hc(Ha)&&(t.Mc(Ha),t.Fc(vf)))}function UV(e,t,n,i){var s,c,d,h;return e.a==null&&qQt(e,t),d=t.b.j.c.length,c=n.d.p,h=i.d.p,s=h-1,s<0&&(s=d-1),c<=s?e.a[s]-e.a[c]:e.a[d-1]-e.a[c]+e.a[s]}function VXt(e){var t,n;if(!e.b)for(e.b=gL(u(e.f,27).kh().i),n=new hn(u(e.f,27).kh());n.e!=n.i.gc();)t=u(mn(n),135),$e(e.b,new kK(t));return e.b}function qXt(e){var t,n;if(!e.e)for(e.e=gL(CG(u(e.f,27)).i),n=new hn(CG(u(e.f,27)));n.e!=n.i.gc();)t=u(mn(n),123),$e(e.e,new HNe(t));return e.e}function Qrt(e){var t,n;if(!e.a)for(e.a=gL(rL(u(e.f,27)).i),n=new hn(rL(u(e.f,27)));n.e!=n.i.gc();)t=u(mn(n),27),$e(e.a,new MU(e,t));return e.a}function aw(e){var t;if(!e.C&&(e.D!=null||e.B!=null))if(t=$cn(e),t)e.hl(t);else try{e.hl(null)}catch(n){if(n=li(n),!te(n,63))throw B(n)}return e.C}function XXt(e){switch(e.q.g){case 5:Cit(e,(ze(),en)),Cit(e,Pn);break;case 4:xut(e,(ze(),en)),xut(e,Pn);break;default:Iot(e,(ze(),en)),Iot(e,Pn)}}function YXt(e){switch(e.q.g){case 5:Sit(e,(ze(),fn)),Sit(e,rn);break;case 4:Eut(e,(ze(),fn)),Eut(e,rn);break;default:Pot(e,(ze(),fn)),Pot(e,rn)}}function Yy(e,t){var n,i,s;for(s=new po,i=e.Kc();i.Ob();)n=u(i.Pb(),36),U5(n,s.a,0),s.a+=n.f.a+t,s.b=w.Math.max(s.b,n.f.b);return s.b>0&&(s.b+=t),s}function F$(e,t){var n,i,s;for(s=new po,i=e.Kc();i.Ob();)n=u(i.Pb(),36),U5(n,0,s.b),s.b+=n.f.b+t,s.a=w.Math.max(s.a,n.f.a);return s.a>0&&(s.a+=t),s}function Zrt(e){var t,n,i;for(i=Mr,n=new N(e.a);n.a>16==6?e.Cb.Th(e,5,Uf,t):(i=is(u(Dt((n=u(Yt(e,16),29),n||e.ii()),e.Db>>16),19)),e.Cb.Th(e,i.n,i.f,t))}function JXt(e){Vk();var t=e.e;if(t&&t.stack){var n=t.stack,i=t+` -`;return n.substring(0,i.length)==i&&(n=n.substring(i.length)),n.split(` -`)}return[]}function QXt(e){var t;return t=(tet(),kpt),t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function nit(e){var t,n,i;e.b==e.c&&(i=e.a.length,n=ide(w.Math.max(8,i))<<1,e.b!=0?(t=ef(e.a,n),wet(e,t,i),e.a=t,e.b=0):mm(e.a,n),e.c=i)}function ZXt(e,t){var n;return n=e.b,n.pf((gr(),bu))?n.ag()==(ze(),rn)?-n.Mf().a-le(pe(n.of(bu))):t+le(pe(n.of(bu))):n.ag()==(ze(),rn)?-n.Mf().a:t}function cP(e){var t;return e.b.c.length!=0&&u(Ye(e.b,0),72).a?u(Ye(e.b,0),72).a:(t=SG(e),t??""+(e.c?$s(e.c.a,e,0):-1))}function z$(e){var t;return e.f.c.length!=0&&u(Ye(e.f,0),72).a?u(Ye(e.f,0),72).a:(t=SG(e),t??""+(e.i?$s(e.i.j,e,0):-1))}function eYt(e,t){var n,i;if(t<0||t>=e.gc())return null;for(n=t;n0?e.c:0),s=w.Math.max(s,t.d),++i;e.e=c,e.b=s}function nYt(e){var t,n;if(!e.b)for(e.b=gL(u(e.f,123).kh().i),n=new hn(u(e.f,123).kh());n.e!=n.i.gc();)t=u(mn(n),135),$e(e.b,new kK(t));return e.b}function rYt(e,t){var n,i,s;if(t.dc())return Lk(),Lk(),MO;for(n=new DGe(e,t.gc()),s=new hn(e);s.e!=s.i.gc();)i=mn(s),t.Hc(i)&&Dn(n,i);return n}function Phe(e,t,n,i){return t==0?i?(!e.o&&(e.o=new jc((Cl(),Fh),Sp,e,0)),e.o):(!e.o&&(e.o=new jc((Cl(),Fh),Sp,e,0)),SI(e.o)):R$(e,t,n,i)}function WV(e){var t,n;if(e.rb)for(t=0,n=e.rb.i;t>22),s+=i>>22,s<0)?!1:(e.l=n&hu,e.m=i&hu,e.h=s&v1,!0)}function VV(e,t,n,i,s,c,d){var h,b;return!(t.Te()&&(b=e.a.Ne(n,i),b<0||!s&&b==0)||t.Ue()&&(h=e.a.Ne(n,c),h>0||!d&&h==0))}function lYt(e,t){k5();var n;if(n=e.j.g-t.j.g,n!=0)return 0;switch(e.j.g){case 2:return hV(t,_ye)-hV(e,_ye);case 4:return hV(e,Oye)-hV(t,Oye)}return 0}function cYt(e){switch(e.g){case 0:return rZ;case 1:return iZ;case 2:return oZ;case 3:return sZ;case 4:return TN;case 5:return lZ;default:return null}}function Es(e,t,n){var i,s;return i=(s=new gK,I0(s,t),Xl(s,n),Dn((!e.c&&(e.c=new Se(Gw,e,12,10)),e.c),s),s),Q1(i,0),Hm(i,1),rp(i,!0),np(i,!0),i}function R4(e,t){var n,i;if(t>=e.i)throw B(new bU(t,e.i));return++e.j,n=e.g[t],i=e.i-t-1,i>0&&Ol(e.g,t+1,e.g,t,i),pi(e.g,--e.i,null),e.Qi(t,n),e.Ni(),n}function rit(e,t){var n,i;return e.Db>>16==17?e.Cb.Th(e,21,Ua,t):(i=is(u(Dt((n=u(Yt(e,16),29),n||e.ii()),e.Db>>16),19)),e.Cb.Th(e,i.n,i.f,t))}function uYt(e){var t,n,i,s;for(Ot(),Mi(e.c,e.a),s=new N(e.c);s.an.a.c.length))throw B(new Qt("index must be >= 0 and <= layer node count"));e.c&&vc(e.c.a,e),e.c=n,n&&Nb(n.a,t,e)}function cit(e,t){var n,i,s;for(i=new gn(wn(h1(e).a.Kc(),new j));$n(i);)return n=u(xn(i),18),s=u(t.Kb(n),10),new nR(qn(s.n.b+s.o.b/2));return l7(),l7(),UJ}function uit(e,t){this.c=new On,this.a=e,this.b=t,this.d=u(A(e,(Oe(),R2)),312),fe(A(e,(Ue(),g3e)))===fe((II(),IN))?this.e=new nFe:this.e=new tFe}function jS(e,t){var n,i;return i=null,e.pf((gr(),w6))&&(n=u(e.of(w6),96),n.pf(t)&&(i=n.of(t))),i==null&&e.Tf()&&(i=e.Tf().of(t)),i==null&&(i=Ke(t)),i}function qV(e,t){var n,i;n=e.fd(t);try{return i=n.Pb(),n.Qb(),i}catch(s){throw s=li(s),te(s,112)?B(new ys("Can't remove element "+t)):B(s)}}function wYt(e,t){var n,i,s;if(i=new TR,s=new lde(i.q.getFullYear()-gg,i.q.getMonth(),i.q.getDate()),n=Psn(e,t,s),n==0||n0?t:0),++n;return new Me(i,s)}function Ahe(e,t){var n,i;return e.Db>>16==6?e.Cb.Th(e,6,Ti,t):(i=is(u(Dt((n=u(Yt(e,16),29),n||(Cl(),UB)),e.Db>>16),19)),e.Cb.Th(e,i.n,i.f,t))}function Lhe(e,t){var n,i;return e.Db>>16==7?e.Cb.Th(e,1,xO,t):(i=is(u(Dt((n=u(Yt(e,16),29),n||(Cl(),j5e)),e.Db>>16),19)),e.Cb.Th(e,i.n,i.f,t))}function $he(e,t){var n,i;return e.Db>>16==9?e.Cb.Th(e,9,xr,t):(i=is(u(Dt((n=u(Yt(e,16),29),n||(Cl(),N5e)),e.Db>>16),19)),e.Cb.Th(e,i.n,i.f,t))}function dit(e,t){var n,i;return e.Db>>16==5?e.Cb.Th(e,9,ZB,t):(i=is(u(Dt((n=u(Yt(e,16),29),n||(Mt(),Ep)),e.Db>>16),19)),e.Cb.Th(e,i.n,i.f,t))}function hit(e,t){var n,i;return e.Db>>16==7?e.Cb.Th(e,6,Uf,t):(i=is(u(Dt((n=u(Yt(e,16),29),n||(Mt(),Ip)),e.Db>>16),19)),e.Cb.Th(e,i.n,i.f,t))}function jhe(e,t){var n,i;return e.Db>>16==3?e.Cb.Th(e,0,TO,t):(i=is(u(Dt((n=u(Yt(e,16),29),n||(Mt(),xp)),e.Db>>16),19)),e.Cb.Th(e,i.n,i.f,t))}function pit(){this.a=new wRe,this.g=new D$,this.j=new D$,this.b=new On,this.d=new D$,this.i=new D$,this.k=new On,this.c=new On,this.e=new On,this.f=new On}function yYt(e,t,n){var i,s,c;for(n<0&&(n=0),c=e.i,s=n;sAX)return L5(e,i);if(i==e)return!0}}return!1}function CYt(e){switch(bA(),e.q.g){case 5:Yot(e,(ze(),en)),Yot(e,Pn);break;case 4:Jst(e,(ze(),en)),Jst(e,Pn);break;default:eat(e,(ze(),en)),eat(e,Pn)}}function SYt(e){switch(bA(),e.q.g){case 5:gst(e,(ze(),fn)),gst(e,rn);break;case 4:yrt(e,(ze(),fn)),yrt(e,rn);break;default:tat(e,(ze(),fn)),tat(e,rn)}}function xYt(e){var t,n;t=u(A(e,(uf(),s0t)),17),t?(n=t.a,n==0?Ee(e,(ng(),QD),new wV):Ee(e,(ng(),QD),new vL(n))):Ee(e,(ng(),QD),new vL(1))}function EYt(e,t){var n;switch(n=e.i,t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-n.o.a;case 3:return e.n.b-n.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function TYt(e,t){switch(e.g){case 0:return t==(pa(),Tg)?mN:vN;case 1:return t==(pa(),Tg)?mN:RM;case 2:return t==(pa(),Tg)?RM:vN;default:return RM}}function aP(e,t){var n,i,s;for(vc(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),s=Ube,i=new N(e.a);i.a>16==3?e.Cb.Th(e,12,xr,t):(i=is(u(Dt((n=u(Yt(e,16),29),n||(Cl(),$5e)),e.Db>>16),19)),e.Cb.Th(e,i.n,i.f,t))}function Nhe(e,t){var n,i;return e.Db>>16==11?e.Cb.Th(e,10,xr,t):(i=is(u(Dt((n=u(Yt(e,16),29),n||(Cl(),D5e)),e.Db>>16),19)),e.Cb.Th(e,i.n,i.f,t))}function git(e,t){var n,i;return e.Db>>16==10?e.Cb.Th(e,11,Ua,t):(i=is(u(Dt((n=u(Yt(e,16),29),n||(Mt(),Tp)),e.Db>>16),19)),e.Cb.Th(e,i.n,i.f,t))}function bit(e,t){var n,i;return e.Db>>16==10?e.Cb.Th(e,12,Ga,t):(i=is(u(Dt((n=u(Yt(e,16),29),n||(Mt(),Wv)),e.Db>>16),19)),e.Cb.Th(e,i.n,i.f,t))}function Aa(e){var t;return!(e.Bb&1)&&e.r&&e.r.Vh()&&(t=u(e.r,54),e.r=u(sg(e,t),142),e.r!=t&&e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,9,8,t,e.r))),e.r}function XV(e,t,n){var i;return i=H(F(uo,1),ws,28,15,[a1e(e,(jf(),ul),t,n),a1e(e,Ql,t,n),a1e(e,al,t,n)]),e.f&&(i[0]=w.Math.max(i[0],i[2]),i[2]=i[0]),i}function IYt(e,t){var n,i,s;if(s=Jqt(e,t),s.c.length!=0)for(Mi(s,new ATe),n=s.c.length,i=0;i>19,m=t.h>>19,b!=m?m-b:(s=e.h,h=t.h,s!=h?s-h:(i=e.m,d=t.m,i!=d?i-d:(n=e.l,c=t.l,n-c)))}function H$(){H$=U,eve=(aj(),hQ),Zme=new St(Nge,eve),Qme=($L(),dQ),Jme=new St(Bge,Qme),Yme=(P$(),fQ),Xme=new St(Fge,Yme),qme=new St(zge,(Gt(),!0))}function DS(e,t,n){var i,s;i=t*n,te(e.g,154)?(s=m4(e),s.f.d?s.f.a||(e.d.a+=i+fd):(e.d.d-=i+fd,e.d.a+=i+fd)):te(e.g,10)&&(e.d.d-=i,e.d.a+=2*i)}function wit(e,t,n){var i,s,c,d,h;for(s=e[n.g],h=new N(t.d);h.a0?e.b:0),++n;t.b=i,t.e=s}function mit(e){var t,n,i;if(i=e.b,lHe(e.i,i.length)){for(n=i.length*2,e.b=be(qJ,zP,303,n,0,1),e.c=be(qJ,zP,303,n,0,1),e.f=n-1,e.i=0,t=e.a;t;t=t.c)vP(e,t,t);++e.g}}function LYt(e,t,n,i){var s,c,d,h;for(s=0;sd&&(h=d/i),s>c&&(b=c/s),Nd(e,w.Math.min(h,b)),e}function jYt(){bj();var e,t;try{if(t=u(Xhe((Gp(),Wa),m8),2113),t)return t}catch(n){if(n=li(n),te(n,103))e=n,Nue((Yn(),e));else throw B(n)}return new hRe}function DYt(){bj();var e,t;try{if(t=u(Xhe((Gp(),Wa),Da),2040),t)return t}catch(n){if(n=li(n),te(n,103))e=n,Nue((Yn(),e));else throw B(n)}return new BRe}function NYt(){TQe();var e,t;try{if(t=u(Xhe((Gp(),Wa),K0),2122),t)return t}catch(n){if(n=li(n),te(n,103))e=n,Nue((Yn(),e));else throw B(n)}return new RAe}function BYt(e,t,n){var i,s;return s=e.e,e.e=t,e.Db&4&&!(e.Db&1)&&(i=new ro(e,1,4,s,t),n?n.nj(i):n=i),s!=t&&(t?n=Y5(e,tj(e,t),n):n=Y5(e,e.a,n)),n}function vit(){TR.call(this),this.e=-1,this.a=!1,this.p=jo,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=jo}function FYt(e,t){var n,i,s;if(i=e.b.d.d,e.a||(i+=e.b.d.a),s=t.b.d.d,t.a||(s+=t.b.d.a),n=Kr(i,s),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function zYt(e,t){var n,i,s;if(i=e.b.b.d,e.a||(i+=e.b.b.a),s=t.b.b.d,t.a||(s+=t.b.b.a),n=Kr(i,s),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function HYt(e,t){var n,i,s;if(i=e.b.g.d,e.a||(i+=e.b.g.a),s=t.b.g.d,t.a||(s+=t.b.g.a),n=Kr(i,s),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function Fhe(){Fhe=U,x0t=$c(cr(cr(cr(new Li,($o(),zl),(Uo(),bye)),zl,wye),Ns,mye),Ns,oye),T0t=cr(cr(new Li,zl,Qve),zl,sye),E0t=$c(new Li,Ns,cye)}function KYt(e){var t,n,i,s,c;for(t=u(A(e,(Oe(),X9)),85),c=e.n,i=t.Cc().Kc();i.Ob();)n=u(i.Pb(),314),s=n.i,s.c+=c.a,s.d+=c.b,n.c?Nlt(n):Blt(n);Ee(e,X9,null)}function UYt(e,t,n){var i,s;switch(s=e.b,i=s.d,t.g){case 1:return-i.d-n;case 2:return s.o.a+i.c+n;case 3:return s.o.b+i.a+n;case 4:return-i.b-n;default:return-1}}function GYt(e,t,n){var i,s;for(n.Ug("Interactive node placement",1),e.a=u(A(t,(Oe(),R2)),312),s=new N(t.b);s.a0&&(d=(c&Mr)%e.d.length,s=K1e(e,d,c,t),s)?(h=s.nd(n),h):(i=e.ck(c,t,n),e.c.Fc(i),null)}function Khe(e,t){var n,i,s,c;switch(tp(e,t).Kl()){case 3:case 2:{for(n=o2(t),s=0,c=n.i;s=0;i--)if(Et(e[i].d,t)||Et(e[i].d,n)){e.length>=i+1&&e.splice(0,i+1);break}return e}function dP(e,t){var n;return Hs(e)&&Hs(t)&&(n=e/t,UP0&&(e.b+=2,e.a+=i):(e.b+=1,e.a+=w.Math.min(i,s))}function Tit(e){var t;t=u(A(u(ga(e.b,0),40),(sl(),D4e)),107),Ee(e,(Wr(),q8),new Me(0,0)),wct(new kI,e,t.b+t.c-le(pe(A(e,cee))),t.d+t.a-le(pe(A(e,uee))))}function Iit(e,t){var n,i;if(i=!1,lo(t)&&(i=!0,d4(e,new Rm(Jn(t)))),i||te(t,242)&&(i=!0,d4(e,(n=Dce(u(t,242)),new rR(n)))),!i)throw B(new SK(Fwe))}function cJt(e,t,n,i){var s,c,d;return s=new l1(e.e,1,10,(d=t.c,te(d,90)?u(d,29):(Mt(),Va)),(c=n.c,te(c,90)?u(c,29):(Mt(),Va)),sp(e,t),!1),i?i.nj(s):i=s,i}function Whe(e){var t,n;switch(u(A(Io(e),(Ue(),c3e)),429).g){case 0:return t=e.n,n=e.o,new Me(t.a+n.a/2,t.b+n.b/2);case 1:return new Vo(e.n);default:return null}}function hP(){hP=U,PN=new E7(eh,0),Vye=new E7("LEFTUP",1),Xye=new E7("RIGHTUP",2),Wye=new E7("LEFTDOWN",3),qye=new E7("RIGHTDOWN",4),cZ=new E7("BALANCED",5)}function uJt(e,t,n){var i,s,c;if(i=Kr(e.a[t.p],e.a[n.p]),i==0){if(s=u(A(t,(Oe(),c6)),15),c=u(A(n,c6),15),s.Hc(n))return-1;if(c.Hc(t))return 1}return i}function aJt(e){switch(e.g){case 1:return new qOe;case 2:return new XOe;case 3:return new VOe;case 0:return null;default:throw B(new Qt(XY+(e.f!=null?e.f:""+e.g)))}}function Vhe(e,t,n){switch(t){case 1:!e.n&&(e.n=new Se(ms,e,1,7)),jn(e.n),!e.n&&(e.n=new Se(ms,e,1,7)),mi(e.n,u(n,16));return;case 2:u5(e,Jn(n));return}hde(e,t,n)}function qhe(e,t,n){switch(t){case 3:Zb(e,le(pe(n)));return;case 4:ew(e,le(pe(n)));return;case 5:oc(e,le(pe(n)));return;case 6:sc(e,le(pe(n)));return}Vhe(e,t,n)}function K$(e,t,n){var i,s,c;c=(i=new gK,i),s=cd(c,t,null),s&&s.oj(),Xl(c,n),Dn((!e.c&&(e.c=new Se(Gw,e,12,10)),e.c),c),Q1(c,0),Hm(c,1),rp(c,!0),np(c,!0)}function Xhe(e,t){var n,i,s;return n=y7(e.i,t),te(n,241)?(s=u(n,241),s.zi()==null,s.wi()):te(n,507)?(i=u(n,2037),s=i.b,s):null}function fJt(e,t,n,i){var s,c;return qn(t),qn(n),c=u(K7(e.d,t),17),QQe(!!c,"Row %s not in %s",t,e.e),s=u(K7(e.b,n),17),QQe(!!s,"Column %s not in %s",n,e.c),ftt(e,c.a,s.a,i)}function Pit(e,t,n,i,s,c,d){var h,b,m,v,k;if(v=s[c],m=c==d-1,h=m?i:0,k=Vrt(h,v),i!=10&&H(F(e,d-c),t[c],n[c],h,k),!m)for(++c,b=0;b1||h==-1?(c=u(b,15),s.Wb(qVt(e,c))):s.Wb(Lq(e,u(b,58)))))}function mJt(e,t,n,i){jze();var s=KJ;function c(){for(var d=0;d0)return!1;return!0}function kJt(e){var t,n,i,s,c;for(i=new S0(new i0(e.b).a);i.b;)n=rw(i),t=u(n.ld(),10),c=u(u(n.md(),42).a,10),s=u(u(n.md(),42).b,8),Or(Of(t.n),Or(Eo(c.n),s))}function CJt(e){switch(u(A(e.b,(Ue(),t3e)),387).g){case 1:Ci(As(Qs(new xt(null,new Pt(e.d,16)),new EPe),new TPe),new IPe);break;case 2:win(e);break;case 0:XZt(e)}}function SJt(e,t,n){var i,s,c;for(i=n,!i&&(i=new H3),i.Ug("Layout",e.a.c.length),c=new N(e.a);c.aGY)return n;s>-1e-6&&++n}return n}function Jhe(e,t){var n;t!=e.b?(n=null,e.b&&(n=lL(e.b,e,-4,n)),t&&(n=_4(t,e,-4,n)),n=int(e,t,n),n&&n.oj()):e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,3,t,t))}function _it(e,t){var n;t!=e.f?(n=null,e.f&&(n=lL(e.f,e,-1,n)),t&&(n=_4(t,e,-1,n)),n=rnt(e,t,n),n&&n.oj()):e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,0,t,t))}function IJt(e,t,n,i){var s,c,d,h;return ku(e.e)&&(s=t.Lk(),h=t.md(),c=n.md(),d=Zp(e,1,s,h,c,s.Jk()?V5(e,s,c,te(s,102)&&(u(s,19).Bb&es)!=0):-1,!0),i?i.nj(d):i=d),i}function Rit(e){var t,n,i;if(e==null)return null;if(n=u(e,15),n.dc())return"";for(i=new B1,t=n.Kc();t.Ob();)ps(i,(zr(),Jn(t.Pb()))),i.a+=" ";return mU(i,i.a.length-1)}function Ait(e){var t,n,i;if(e==null)return null;if(n=u(e,15),n.dc())return"";for(i=new B1,t=n.Kc();t.Ob();)ps(i,(zr(),Jn(t.Pb()))),i.a+=" ";return mU(i,i.a.length-1)}function PJt(e,t,n){var i,s;return i=e.c[t.c.p][t.p],s=e.c[n.c.p][n.p],i.a!=null&&s.a!=null?sG(i.a,s.a):i.a!=null?-1:s.a!=null?1:0}function MJt(e,t,n){return n.Ug("Tree layout",1),lI(e.b),_f(e.b,(A4(),uB),uB),_f(e.b,dx,dx),_f(e.b,hx,hx),_f(e.b,px,px),e.a=AP(e.b,t),SJt(e,t,n.eh(1)),n.Vg(),t}function OJt(e,t){var n,i,s,c,d,h;if(t)for(c=t.a.length,n=new f0(c),h=(n.b-n.a)*n.c<0?(Wp(),zg):new Xp(n);h.Ob();)d=u(h.Pb(),17),s=Xk(t,d.a),i=new QNe(e),NNt(i.a,s)}function _Jt(e,t){var n,i,s,c,d,h;if(t)for(c=t.a.length,n=new f0(c),h=(n.b-n.a)*n.c<0?(Wp(),zg):new Xp(n);h.Ob();)d=u(h.Pb(),17),s=Xk(t,d.a),i=new KNe(e),DNt(i.a,s)}function RJt(e){var t;if(e!=null&&e.length>0&&Lo(e,e.length-1)==33)try{return t=zst(oa(e,0,e.length-1)),t.e==null}catch(n){if(n=li(n),!te(n,33))throw B(n)}return!1}function AJt(e,t,n){var i,s,c;switch(i=Io(t),s=b$(i),c=new Ml,Js(c,t),n.g){case 1:Vi(c,tP(P4(s)));break;case 2:Vi(c,P4(s))}return Ee(c,(Ue(),Mv),pe(A(e,Mv))),c}function Qhe(e){var t,n;return t=u(xn(new gn(wn(eo(e.a).a.Kc(),new j))),18),n=u(xn(new gn(wn(Pi(e.a).a.Kc(),new j))),18),qe(Ve(A(t,(Oe(),bd))))||qe(Ve(A(n,bd)))}function Ym(){Ym=U,AM=new IT("ONE_SIDE",0),CN=new IT("TWO_SIDES_CORNER",1),SN=new IT("TWO_SIDES_OPPOSING",2),kN=new IT("THREE_SIDES",3),yN=new IT("FOUR_SIDES",4)}function Lit(e,t){var n,i,s,c;for(c=new Le,s=0,i=t.Kc();i.Ob();){for(n=Ae(u(i.Pb(),17).a+s);n.a=e.f)break;Ft(c.c,n)}return c}function LJt(e,t){var n,i,s,c,d;for(c=new N(t.a);c.a0&&iit(this,this.c-1,(ze(),fn)),this.c0&&e[0].length>0&&(this.c=qe(Ve(A(Io(e[0][0]),(Oe(),a2e))))),this.a=be(Pvt,_e,2117,e.length,0,2),this.b=be(Mvt,_e,2118,e.length,0,2),this.d=new Qtt}function BJt(e){return e.c.length==0?!1:(_t(0,e.c.length),u(e.c[0],18)).c.i.k==(nn(),io)?!0:Fy(As(new xt(null,new Pt(e,16)),new sMe),new lMe)}function Dit(e,t){var n,i,s,c,d,h,b;for(h=tv(t),c=t.f,b=t.g,d=w.Math.sqrt(c*c+b*b),s=0,i=new N(h);i.a=0?(n=dP(e,Ij),i=rP(e,Ij)):(t=Yp(e,1),n=dP(t,5e8),i=rP(t,5e8),i=Ho(nf(i,1),Yi(e,1))),Rf(nf(i,32),Yi(n,us))}function Fit(e,t,n){var i,s;switch(i=(yn(t.b!=0),u(ua(t,t.a.a),8)),n.g){case 0:i.b=0;break;case 2:i.b=e.f;break;case 3:i.a=0;break;default:i.a=e.g}return s=Ln(t,0),sI(s,i),t}function zit(e,t,n,i){var s,c,d,h,b;switch(b=e.b,c=t.d,d=c.j,h=ghe(d,b.d[d.g],n),s=Or(Eo(c.n),c.a),c.j.g){case 1:case 3:h.a+=s.a;break;case 2:case 4:h.b+=s.b}gi(i,h,i.c.b,i.c)}function JJt(e,t,n){var i,s,c,d;for(d=$s(e.e,t,0),c=new ise,c.b=n,i=new wo(e.e,d);i.b1;t>>=1)t&1&&(i=By(i,n)),n.d==1?n=By(n,n):n=new rrt(Sct(n.a,n.d,be(Bn,ur,28,n.d<<1,15,1)));return i=By(i,n),i}function l1e(){l1e=U;var e,t,n,i;for(Fme=be(uo,ws,28,25,15,1),zme=be(uo,ws,28,33,15,1),i=152587890625e-16,t=32;t>=0;t--)zme[t]=i,i*=.5;for(n=1,e=24;e>=0;e--)Fme[e]=n,n*=.5}function rQt(e){var t,n;if(qe(Ve(Ie(e,(Ue(),Pv))))){for(n=new gn(wn(b1(e).a.Kc(),new j));$n(n);)if(t=u(xn(n),74),fw(t)&&qe(Ve(Ie(t,X0))))return!0}return!1}function Hit(e,t){var n,i,s;Fi(e.f,t)&&(t.b=e,i=t.c,$s(e.j,i,0)!=-1||$e(e.j,i),s=t.d,$s(e.j,s,0)!=-1||$e(e.j,s),n=t.a.b,n.c.length!=0&&(!e.i&&(e.i=new urt(e)),cGt(e.i,n)))}function iQt(e){var t,n,i,s,c;return n=e.c.d,i=n.j,s=e.d.d,c=s.j,i==c?n.p=0&&Et(e.substr(t,3),"GMT")||t>=0&&Et(e.substr(t,3),"UTC"))&&(n[0]=t+3),Fpe(e,n,i)}function sQt(e,t){var n,i,s,c,d;for(c=e.g.a,d=e.g.b,i=new N(e.d);i.an;c--)e[c]|=t[c-n-1]>>>d,e[c-1]=t[c-n-1]<0&&Ol(e.g,t,e.g,t+i,h),d=n.Kc(),e.i+=i,s=0;s>4&15,c=e[i]&15,d[s++]=B5e[n],d[s++]=B5e[c];return Ud(d,0,d.length)}function kc(e){var t,n;return e>=es?(t=GP+(e-es>>10&1023)&Di,n=56320+(e-es&1023)&Di,String.fromCharCode(t)+(""+String.fromCharCode(n))):String.fromCharCode(e&Di)}function wQt(e,t){Im();var n,i,s,c;return s=u(u($r(e.r,t),21),87),s.gc()>=2?(i=u(s.Kc().Pb(),117),n=e.u.Hc((Qc(),jx)),c=e.u.Hc(y6),!i.a&&!n&&(s.gc()==2||c)):!1}function Git(e,t,n,i,s){var c,d,h;for(c=Olt(e,t,n,i,s),h=!1;!c;)Z$(e,s,!0),h=!0,c=Olt(e,t,n,i,s);h&&Z$(e,s,!1),d=HW(s),d.c.length!=0&&(e.d&&e.d.Gg(d),Git(e,s,n,i,d))}function V$(){V$=U,wte=new M7(eh,0),u5e=new M7("DIRECTED",1),f5e=new M7("UNDIRECTED",2),l5e=new M7("ASSOCIATION",3),a5e=new M7("GENERALIZATION",4),c5e=new M7("DEPENDENCY",5)}function mQt(e,t){var n;if(!Qf(e))throw B(new ks(lht));switch(n=Qf(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-n.g;case 3:return e.j-n.f;case 4:return-(e.i+e.g)}return 0}function vQt(e,t,n){var i,s,c;return i=t.Lk(),c=t.md(),s=i.Jk()?Zp(e,4,i,c,null,V5(e,i,c,te(i,102)&&(u(i,19).Bb&es)!=0),!0):Zp(e,i.tk()?2:1,i,c,i.ik(),-1,!0),n?n.nj(s):n=s,n}function D5(e,t){var n,i;for(sn(t),i=e.b.c.length,$e(e.b,t);i>0;){if(n=i,i=(i-1)/2|0,e.a.Ne(Ye(e.b,i),t)<=0)return la(e.b,n,t),!0;la(e.b,n,Ye(e.b,i))}return la(e.b,i,t),!0}function a1e(e,t,n,i){var s,c;if(s=0,n)s=f$(e.a[n.g][t.g],i);else for(c=0;c=h)}function Wit(e){switch(e.g){case 0:return new u_e;case 1:return new a_e;default:throw B(new Qt("No implementation is available for the width approximator "+(e.f!=null?e.f:""+e.g)))}}function f1e(e,t,n,i){var s;if(s=!1,lo(i)&&(s=!0,Nk(t,n,Jn(i))),s||Sm(i)&&(s=!0,f1e(e,t,n,i)),s||te(i,242)&&(s=!0,g0(t,n,u(i,242))),!s)throw B(new SK(Fwe))}function kQt(e,t){var n,i,s;if(n=t.qi(e.a),n&&(s=Df((!n.b&&(n.b=new Su((Mt(),ns),dl,n)),n.b),ja),s!=null)){for(i=1;i<(Nc(),u8e).length;++i)if(Et(u8e[i],s))return i}return 0}function CQt(e,t){var n,i,s;if(n=t.qi(e.a),n&&(s=Df((!n.b&&(n.b=new Su((Mt(),ns),dl,n)),n.b),ja),s!=null)){for(i=1;i<(Nc(),a8e).length;++i)if(Et(a8e[i],s))return i}return 0}function Vit(e,t){var n,i,s,c;if(sn(t),c=e.a.gc(),c0?1:0;c.a[s]!=n;)c=c.a[s],s=e.a.Ne(n.d,c.d)>0?1:0;c.a[s]=i,i.b=n.b,i.a[0]=n.a[0],i.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}function EQt(e){var t,n,i,s;for(t=new Le,n=be(wu,Oh,28,e.a.c.length,16,1),Aue(n,n.length),s=new N(e.a);s.a0&&vct((_t(0,n.c.length),u(n.c[0],30)),e),n.c.length>1&&vct(u(Ye(n,n.c.length-1),30),e),t.Vg()}function IQt(e){Qc();var t,n;return t=Yr(T1,H(F(DB,1),Te,279,0,[$g])),!(BI(uL(t,e))>1||(n=Yr(jx,H(F(DB,1),Te,279,0,[$x,y6])),BI(uL(n,e))>1))}function h1e(e,t){var n;n=$l((Gp(),Wa),e),te(n,507)?Cs(Wa,e,new DKe(this,t)):Cs(Wa,e,this),sq(this,t),t==(Sk(),J5e)?(this.wb=u(this,2038),u(t,2040)):this.wb=(Jp(),Wt)}function PQt(e){var t,n,i;if(e==null)return null;for(t=null,n=0;n=ap?"error":i>=900?"warn":i>=800?"info":"log"),iqe(n,e.a),e.b&&gpe(t,n,e.b,"Exception: ",!0))}function A(e,t){var n,i;return i=(!e.q&&(e.q=new On),pn(e.q,t)),i??(n=t.Sg(),te(n,4)&&(n==null?(!e.q&&(e.q=new On),y4(e.q,t)):(!e.q&&(e.q=new On),vr(e.q,t,n))),n)}function $o(){$o=U,hf=new TT("P1_CYCLE_BREAKING",0),Ah=new TT("P2_LAYERING",1),_l=new TT("P3_NODE_ORDERING",2),zl=new TT("P4_NODE_PLACEMENT",3),Ns=new TT("P5_EDGE_ROUTING",4)}function MQt(e,t){fS();var n;if(e.c==t.c){if(e.b==t.b||jUt(e.b,t.b)){if(n=lRt(e.b)?1:-1,e.a&&!t.a)return n;if(!e.a&&t.a)return-n}return yl(e.b.g,t.b.g)}else return Kr(e.c,t.c)}function Qit(e,t){var n,i,s;if(g1e(e,t))return!0;for(i=new N(t);i.a=s||t<0)throw B(new ys(SJ+t+z0+s));if(n>=s||n<0)throw B(new ys(xJ+n+z0+s));return t!=n?i=(c=e.Cj(n),e.qj(t,c),c):i=e.xj(n),i}function tot(e){var t,n,i;if(i=e,e)for(t=0,n=e.Eh();n;n=n.Eh()){if(++t>AX)return tot(n);if(i=n,n==e)throw B(new ks("There is a cycle in the containment hierarchy of "+e))}return i}function ag(e){var t,n,i;for(i=new x0(Xo,"[","]"),n=e.Kc();n.Ob();)t=n.Pb(),s1(i,fe(t)===fe(e)?"(this Collection)":t==null?Cc:Us(t));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function g1e(e,t){var n,i;if(i=!1,t.gc()<2)return!1;for(n=0;n1&&(e.j.b+=e.e)):(e.j.a+=n.a,e.j.b=w.Math.max(e.j.b,n.b),e.d.c.length>1&&(e.j.a+=e.e))}function fg(){fg=U,dbt=H(F(ts,1),Sl,64,0,[(ze(),en),fn,Pn]),fbt=H(F(ts,1),Sl,64,0,[fn,Pn,rn]),hbt=H(F(ts,1),Sl,64,0,[Pn,rn,en]),pbt=H(F(ts,1),Sl,64,0,[rn,en,fn])}function _Qt(e,t,n,i){var s,c,d,h,b,m,v;if(d=e.c.d,h=e.d.d,d.j!=h.j)for(v=e.b,s=d.j,b=null;s!=h.j;)b=t==0?g$(s):$de(s),c=ghe(s,v.d[s.g],n),m=ghe(b,v.d[b.g],n),or(i,Or(c,m)),s=b}function RQt(e,t,n,i){var s,c,d,h,b;return d=oit(e.a,t,n),h=u(d.a,17).a,c=u(d.b,17).a,i&&(b=u(A(t,(Oe(),Zc)),10),s=u(A(n,Zc),10),b&&s&&(UYe(e.b,b,s),h+=e.b.i,c+=e.b.e)),h>c}function rot(e){var t,n,i,s,c,d,h,b,m;for(this.a=Trt(e),this.b=new Le,n=e,i=0,s=n.length;i$U(e.d).c?(e.i+=e.g.c,kV(e.d)):$U(e.d).c>$U(e.g).c?(e.e+=e.d.c,kV(e.g)):(e.i+=dVe(e.g),e.e+=dVe(e.d),kV(e.g),kV(e.d))}function jQt(e,t,n){var i,s,c,d;for(c=t.q,d=t.r,new b0((Af(),Pg),t,c,1),new b0(Pg,c,d,1),s=new N(n);s.ah&&(b=h/i),s>c&&(m=c/s),d=w.Math.min(b,m),e.a+=d*(t.a-e.a),e.b+=d*(t.b-e.b)}function FQt(e,t,n,i,s){var c,d;for(d=!1,c=u(Ye(n.b,0),27);gsn(e,t,c,i,s)&&(d=!0,bJt(n,c),n.b.c.length!=0);)c=u(Ye(n.b,0),27);return n.b.c.length==0&&aP(n.j,n),d&&B$(t.q),d}function zQt(e,t){r2();var n,i,s,c;if(t.b<2)return!1;for(c=Ln(t,0),n=u(_n(c),8),i=n;c.b!=c.d.c;){if(s=u(_n(c),8),Cq(e,i,s))return!0;i=s}return!!Cq(e,i,n)}function w1e(e,t,n,i){var s,c;return n==0?(!e.o&&(e.o=new jc((Cl(),Fh),Sp,e,0)),yA(e.o,t,i)):(c=u(Dt((s=u(Yt(e,16),29),s||e.ii()),n),69),c.wk().Ak(e,lc(e),n-Sn(e.ii()),t,i))}function sq(e,t){var n;t!=e.sb?(n=null,e.sb&&(n=u(e.sb,54).Th(e,1,Bx,n)),t&&(n=u(t,54).Rh(e,1,Bx,n)),n=Mde(e,t,n),n&&n.oj()):e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,4,t,t))}function HQt(e,t){var n,i,s,c;if(t)s=a1(t,"x"),n=new XNe(e),r5(n.a,(sn(s),s)),c=a1(t,"y"),i=new YNe(e),o5(i.a,(sn(c),c));else throw B(new Ld("All edge sections need an end point."))}function KQt(e,t){var n,i,s,c;if(t)s=a1(t,"x"),n=new WNe(e),i5(n.a,(sn(s),s)),c=a1(t,"y"),i=new VNe(e),s5(i.a,(sn(c),c));else throw B(new Ld("All edge sections need a start point."))}function UQt(e,t){var n,i,s,c,d,h,b;for(i=Att(e),c=0,h=i.length;c>22-t,s=e.h<>22-t):t<44?(n=0,i=e.l<>44-t):(n=0,i=0,s=e.l<e)throw B(new Qt("k must be smaller than n"));return t==0||t==e?1:e==0?0:Uhe(e)/(Uhe(t)*Uhe(e-t))}function m1e(e,t){var n,i,s,c;for(n=new Lle(e);n.g==null&&!n.c?dae(n):n.g==null||n.i!=0&&u(n.g[n.i-1],51).Ob();)if(c=u(ej(n),58),te(c,167))for(i=u(c,167),s=0;s>4],t[n*2+1]=iF[c&15];return Ud(t,0,t.length)}function sZt(e){JA();var t,n,i;switch(i=e.c.length,i){case 0:return apt;case 1:return t=u(Uot(new N(e)),44),Zjt(t.ld(),t.md());default:return n=u(ld(e,be(U0,Ej,44,e.c.length,0,1)),173),new wse(n)}}function lZt(e){var t,n,i,s,c,d;for(t=new Ay,n=new Ay,eg(t,e),eg(n,e);n.b!=n.c;)for(s=u(a4(n),36),d=new N(s.a);d.a0&&IP(e,n,t),s):Xen(e,t,n)}function dg(){dg=U,g2t=(gr(),b6),b2t=ib,f2t=rb,d2t=Y2,h2t=_g,a2t=X2,r6e=dO,p2t=Nv,xee=(Rpe(),Zyt),Eee=e2t,o6e=i2t,Tee=l2t,s6e=o2t,l6e=s2t,i6e=t2t,wB=n2t,mB=r2t,eO=c2t,c6e=u2t,n6e=Qyt}function fot(e,t){var n,i,s,c,d;if(e.e<=t||_Ft(e,e.g,t))return e.g;for(c=e.r,i=e.g,d=e.r,s=(c-i)/2+i;i+11&&(e.e.b+=e.a)):(e.e.a+=n.a,e.e.b=w.Math.max(e.e.b,n.b),e.d.c.length>1&&(e.e.a+=e.a))}function dZt(e){var t,n,i,s;switch(s=e.i,t=s.b,i=s.j,n=s.g,s.a.g){case 0:n.a=(e.g.b.o.a-i.a)/2;break;case 1:n.a=t.d.n.a+t.d.a.a;break;case 2:n.a=t.d.n.a+t.d.a.a-i.a;break;case 3:n.b=t.d.n.b+t.d.a.b}}function hZt(e,t,n){var i,s,c;for(s=new gn(wn(h1(n).a.Kc(),new j));$n(s);)i=u(xn(s),18),!Zo(i)&&!(!Zo(i)&&i.c.i.c==i.d.i.c)&&(c=tlt(e,i,n,new rFe),c.c.length>1&&Ft(t.c,c))}function hot(e,t,n,i,s){if(ii&&(e.a=i),e.bs&&(e.b=s),e}function pZt(e){if(te(e,143))return Gnn(u(e,143));if(te(e,233))return $Vt(u(e,233));if(te(e,23))return WQt(u(e,23));throw B(new Qt(zwe+ag(new Wc(H(F(Ji,1),Bt,1,5,[e])))))}function gZt(e,t,n,i,s){var c,d,h;for(c=!0,d=0;d>>s|n[d+i+1]<>>s,++d}return c}function C1e(e,t,n,i){var s,c,d;if(t.k==(nn(),io)){for(c=new gn(wn(eo(t).a.Kc(),new j));$n(c);)if(s=u(xn(c),18),d=s.c.i.k,d==io&&e.c.a[s.c.i.c.p]==i&&e.c.a[t.c.p]==n)return!0}return!1}function bZt(e,t){var n,i,s,c;return t&=63,n=e.h&v1,t<22?(c=n>>>t,s=e.m>>t|n<<22-t,i=e.l>>t|e.m<<22-t):t<44?(c=0,s=n>>>t-22,i=e.m>>t-22|e.h<<44-t):(c=0,s=0,i=n>>>t-44),nc(i&hu,s&hu,c&v1)}function pot(e,t,n,i){var s;this.b=i,this.e=e==(tw(),ux),s=t[n],this.d=u0(wu,[_e,Oh],[183,28],16,[s.length,s.length],2),this.a=u0(Bn,[_e,ur],[53,28],15,[s.length,s.length],2),this.c=new r1e(t,n)}function wZt(e){var t,n,i;for(e.k=new gae((ze(),H(F(ts,1),Sl,64,0,[nl,en,fn,Pn,rn])).length,e.j.c.length),i=new N(e.j);i.a=n)return B5(e,t,i.p),!0;return!1}function Zy(e,t,n,i){var s,c,d,h,b,m;for(d=n.length,c=0,s=-1,m=oZe((Zt(t,e.length+1),e.substr(t)),(FU(),Nme)),h=0;hc&&UDt(m,oZe(n[h],Nme))&&(s=h,c=b);return s>=0&&(i[0]=t+c),s}function bot(e){var t;return e.Db&64?lq(e):(t=new Ru(Owe),!e.a||lr(lr((t.a+=' "',t),e.a),'"'),lr(Tb(lr(Tb(lr(Tb(lr(Tb((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function wot(e,t,n){var i,s,c,d,h;for(h=cc(e.e.Dh(),t),s=u(e.g,124),i=0,d=0;dn?R1e(e,n,"start index"):t<0||t>n?R1e(t,n,"end index"):XS("end index (%s) must not be less than start index (%s)",H(F(Ji,1),Bt,1,5,[Ae(t),Ae(e)]))}function vot(e,t){var n,i,s,c;for(i=0,s=e.length;i0&&yot(e,c,n));t.p=0}function nt(e){var t;this.c=new Zr,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,e.i?this.j=e.i:this.j=(t=u(Pf(jh),9),new ra(t,u(ef(t,t.length),9),0)),this.g=e.f}function SZt(e){var t,n,i,s;for(t=h0(lr(new Ru("Predicates."),"and"),40),n=!0,s=new e7(e);s.b0?h[d-1]:be(Lh,fp,10,0,0,1),s=h[d],m=d=0?e.ki(s):j1e(e,i);else throw B(new Qt(vg+i.xe()+x9));else throw B(new Qt(mht+t+vht));else fa(e,n,i)}function S1e(e){var t,n;if(n=null,t=!1,te(e,211)&&(t=!0,n=u(e,211).a),t||te(e,263)&&(t=!0,n=""+u(e,263).a),t||te(e,493)&&(t=!0,n=""+u(e,493).a),!t)throw B(new SK(Fwe));return n}function x1e(e,t,n){var i,s,c,d,h,b;for(b=cc(e.e.Dh(),t),i=0,h=e.i,s=u(e.g,124),d=0;d=e.d.b.c.length&&(t=new Ll(e.d),t.p=i.p-1,$e(e.d.b,t),n=new Ll(e.d),n.p=i.p,$e(e.d.b,n)),bo(i,u(Ye(e.d.b,i.p),30))}function I1e(e,t,n){var i,s,c;if(!e.b[t.g]){for(e.b[t.g]=!0,i=n,!i&&(i=new kI),or(i.b,t),c=e.a[t.g].Kc();c.Ob();)s=u(c.Pb(),65),s.b!=t&&I1e(e,s.b,i),s.c!=t&&I1e(e,s.c,i),or(i.a,s);return i}return null}function IZt(e){switch(e.g){case 0:case 1:case 2:return ze(),en;case 3:case 4:case 5:return ze(),Pn;case 6:case 7:case 8:return ze(),rn;case 9:case 10:case 11:return ze(),fn;default:return ze(),nl}}function PZt(e,t){var n;return e.c.length==0?!1:(n=Nnt((_t(0,e.c.length),u(e.c[0],18)).c.i),Lu(),n==(qm(),N2)||n==D2?!0:Fy(As(new xt(null,new Pt(e,16)),new cMe),new nNe(t)))}function fq(e,t){if(te(t,207))return CRt(e,u(t,27));if(te(t,193))return SRt(e,u(t,123));if(te(t,452))return kRt(e,u(t,166));throw B(new Qt(zwe+ag(new Wc(H(F(Ji,1),Bt,1,5,[t])))))}function Tot(e,t,n){var i,s;if(this.f=e,i=u(pn(e.b,t),260),s=i?i.a:0,Gae(n,s),n>=(s/2|0))for(this.e=i?i.c:null,this.d=s;n++0;)gfe(this);this.b=t,this.a=null}function MZt(e,t){var n,i;t.a?urn(e,t):(n=u(LK(e.b,t.b),60),n&&n==e.a[t.b.f]&&n.a&&n.a!=t.b.a&&n.c.Fc(t.b),i=u(AK(e.b,t.b),60),i&&e.a[i.f]==t.b&&i.a&&i.a!=t.b.a&&t.b.c.Fc(i),IU(e.b,t.b))}function Iot(e,t){var n,i;if(n=u(gs(e.b,t),127),u(u($r(e.r,t),21),87).dc()){n.n.b=0,n.n.c=0;return}n.n.b=e.C.b,n.n.c=e.C.c,e.A.Hc((Iu(),sb))&&Zlt(e,t),i=rXt(e,t),xq(e,t)==(Vy(),Ag)&&(i+=2*e.w),n.a.a=i}function Pot(e,t){var n,i;if(n=u(gs(e.b,t),127),u(u($r(e.r,t),21),87).dc()){n.n.d=0,n.n.a=0;return}n.n.d=e.C.d,n.n.a=e.C.a,e.A.Hc((Iu(),sb))&&ect(e,t),i=nXt(e,t),xq(e,t)==(Vy(),Ag)&&(i+=2*e.w),n.a.b=i}function OZt(e,t){var n,i,s,c;for(c=new Le,i=new N(t);i.ai&&(Zt(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return i>0||tn.a&&(i.Hc((O0(),Ex))?s=(t.a-n.a)/2:i.Hc(Tx)&&(s=t.a-n.a)),t.b>n.b&&(i.Hc((O0(),Px))?c=(t.b-n.b)/2:i.Hc(Ix)&&(c=t.b-n.b)),d1e(e,s,c)}function $ot(e,t,n,i,s,c,d,h,b,m,v,k,T){te(e.Cb,90)&&Zm(cu(u(e.Cb,90)),4),Xl(e,n),e.f=d,T5(e,h),P5(e,b),E5(e,m),I5(e,v),rp(e,k),M5(e,T),np(e,!0),Q1(e,s),e.Zk(c),I0(e,t),i!=null&&(e.i=null,YL(e,i))}function R1e(e,t,n){if(e<0)return XS(Rat,H(F(Ji,1),Bt,1,5,[n,Ae(e)]));if(t<0)throw B(new Qt(Aat+t));return XS("%s (%s) must not be greater than size (%s)",H(F(Ji,1),Bt,1,5,[n,Ae(e),Ae(t)]))}function A1e(e,t,n,i,s,c){var d,h,b,m;if(d=i-n,d<7){xVt(t,n,i,c);return}if(b=n+s,h=i+s,m=b+(h-b>>1),A1e(t,e,b,m,-s,c),A1e(t,e,m,h,-s,c),c.Ne(e[m-1],e[m])<=0){for(;n=0?e.bi(c,n):upe(e,s,n);else throw B(new Qt(vg+s.xe()+x9));else throw B(new Qt(mht+t+vht));else da(e,i,s,n)}function jot(e){var t,n;if(e.f){for(;e.n>0;){if(t=u(e.k.Xb(e.n-1),76),n=t.Lk(),te(n,102)&&u(n,19).Bb&wl&&(!e.e||n.pk()!=oC||n.Lj()!=0)&&t.md()!=null)return!0;--e.n}return!1}else return e.n>0}function Dot(e){var t,n,i,s;if(n=u(e,54)._h(),n)try{if(i=null,t=z5((Gp(),Wa),Cct(jVt(n))),t&&(s=t.ai(),s&&(i=s.Fl(DOt(n.e)))),i&&i!=e)return Dot(i)}catch(c){if(c=li(c),!te(c,63))throw B(c)}return e}function WZt(e,t,n){var i,s,c;n.Ug("Remove overlaps",1),n.dh(t,Kbe),i=u(Ie(t,($y(),z2)),27),e.f=i,e.a=_V(u(Ie(t,(dg(),eO)),300)),s=pe(Ie(t,(gr(),ib))),Eoe(e,(sn(s),s)),c=tv(i),Uut(e,t,c,n),n.dh(t,cD)}function VZt(e){var t,n,i;if(qe(Ve(Ie(e,(gr(),aO))))){for(i=new Le,n=new gn(wn(b1(e).a.Kc(),new j));$n(n);)t=u(xn(n),74),fw(t)&&qe(Ve(Ie(t,ote)))&&Ft(i.c,t);return i}else return Ot(),Ot(),Jo}function Not(e){if(!e)return jFe(),vpt;var t=e.valueOf?e.valueOf():e;if(t!==e){var n=ZJ[typeof t];return n?n(t):Cde(typeof t)}else return e instanceof Array||e instanceof w.Array?new voe(e):new uT(e)}function Bot(e,t,n){var i,s,c;switch(c=e.o,i=u(gs(e.p,n),252),s=i.i,s.b=HS(i),s.a=zS(i),s.b=w.Math.max(s.b,c.a),s.b>c.a&&!t&&(s.b=c.a),s.c=-(s.b-c.a)/2,n.g){case 1:s.d=-s.a;break;case 3:s.d=c.b}Dq(i),Nq(i)}function Fot(e,t,n){var i,s,c;switch(c=e.o,i=u(gs(e.p,n),252),s=i.i,s.b=HS(i),s.a=zS(i),s.a=w.Math.max(s.a,c.b),s.a>c.b&&!t&&(s.a=c.b),s.d=-(s.a-c.b)/2,n.g){case 4:s.c=-s.b;break;case 2:s.c=c.a}Dq(i),Nq(i)}function qZt(e,t){var n,i,s,c,d;if(!t.dc()){if(s=u(t.Xb(0),131),t.gc()==1){wlt(e,s,s,1,0,t);return}for(n=1;n0)try{s=zu(t,jo,Mr)}catch(c){throw c=li(c),te(c,130)?(i=c,B(new _L(i))):B(c)}return n=(!e.a&&(e.a=new lK(e)),e.a),s=0?u(re(n,s),58):null}function QZt(e,t){if(e<0)return XS(Rat,H(F(Ji,1),Bt,1,5,["index",Ae(e)]));if(t<0)throw B(new Qt(Aat+t));return XS("%s (%s) must be less than size (%s)",H(F(Ji,1),Bt,1,5,["index",Ae(e),Ae(t)]))}function ZZt(e){var t,n,i,s,c;if(e==null)return Cc;for(c=new x0(Xo,"[","]"),n=e,i=0,s=n.length;i=0?e.Lh(n,!0,!0):dw(e,s,!0),160)),u(i,220).Zl(t);else throw B(new Qt(vg+t.xe()+x9))}function D1e(e){var t,n;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),n=Wi(w.Math.floor(w.Math.log(e)/.6931471805599453)),(!t||e!=w.Math.pow(2,n))&&++n,n):rtt(bl(e))}function pen(e){var t,n,i,s,c,d,h;for(c=new Dd,n=new N(e);n.a2&&h.e.b+h.j.b<=2&&(s=h,i=d),c.a.zc(s,c),s.q=i);return c}function gen(e,t,n){n.Ug("Eades radial",1),n.dh(t,cD),e.d=u(Ie(t,($y(),z2)),27),e.c=le(pe(Ie(t,(dg(),mB)))),e.e=_V(u(Ie(t,eO),300)),e.a=UVt(u(Ie(t,c6e),434)),e.b=aJt(u(Ie(t,i6e),354)),WYt(e),n.dh(t,cD)}function ben(e,t){if(t.Ug("Target Width Setter",1),rd(e,(ud(),Nee)))Br(e,(xh(),jv),pe(Ie(e,Nee)));else throw B(new N1("A target width has to be set if the TargetWidthWidthApproximator should be used."));t.Vg()}function Got(e,t){var n,i,s;return i=new g1(e),js(i,t),Ee(i,(Oe(),$N),t),Ee(i,(Ue(),yi),(fo(),Ul)),Ee(i,sh,(Ch(),OB)),n0(i,(nn(),Oi)),n=new Ml,Js(n,i),Vi(n,(ze(),rn)),s=new Ml,Js(s,i),Vi(s,fn),i}function Wot(e){switch(e.g){case 0:return new yK((tw(),qM));case 1:return new l$e;case 2:return new c$e;default:throw B(new Qt("No implementation is available for the crossing minimizer "+(e.f!=null?e.f:""+e.g)))}}function Vot(e,t){var n,i,s,c,d;for(e.c[t.p]=!0,$e(e.a,t),d=new N(t.j);d.a=c)d.$b();else for(s=d.Kc(),i=0;i0?Cse():d<0&&Jot(e,t,-d),!0):!1}function zS(e){var t,n,i,s,c,d,h;if(h=0,e.b==0){for(d=Art(e,!0),t=0,i=d,s=0,c=i.length;s0&&(h+=n,++t);t>1&&(h+=e.c*(t-1))}else h=qFe(LW(Am(Ar(_ue(e.a),new $1),new JC)));return h>0?h+e.n.d+e.n.a:0}function HS(e){var t,n,i,s,c,d,h;if(h=0,e.b==0)h=qFe(LW(Am(Ar(_ue(e.a),new YC),new sT)));else{for(d=Lrt(e,!0),t=0,i=d,s=0,c=i.length;s0&&(h+=n,++t);t>1&&(h+=e.c*(t-1))}return h>0?h+e.n.b+e.n.c:0}function Sen(e){var t,n;if(e.c.length!=2)throw B(new ks("Order only allowed for two paths."));t=(_t(0,e.c.length),u(e.c[0],18)),n=(_t(1,e.c.length),u(e.c[1],18)),t.d.i!=n.c.i&&(e.c.length=0,Ft(e.c,n),Ft(e.c,t))}function Qot(e,t,n){var i;for(My(n,t.g,t.f),ta(n,t.i,t.j),i=0;i<(!t.a&&(t.a=new Se(xr,t,10,11)),t.a).i;i++)Qot(e,u(re((!t.a&&(t.a=new Se(xr,t,10,11)),t.a),i),27),u(re((!n.a&&(n.a=new Se(xr,n,10,11)),n.a),i),27))}function xen(e,t){var n,i,s,c;for(c=u(gs(e.b,t),127),n=c.a,s=u(u($r(e.r,t),21),87).Kc();s.Ob();)i=u(s.Pb(),117),i.c&&(n.a=w.Math.max(n.a,cue(i.c)));if(n.a>0)switch(t.g){case 2:c.n.c=e.s;break;case 4:c.n.b=e.s}}function Een(e,t){var n,i,s;return n=u(A(t,(uf(),n6)),17).a-u(A(e,n6),17).a,n==0?(i=Xi(Eo(u(A(e,(ng(),PM)),8)),u(A(e,H9),8)),s=Xi(Eo(u(A(t,PM),8)),u(A(t,H9),8)),Kr(i.a*i.b,s.a*s.b)):n}function Ten(e,t){var n,i,s;return n=u(A(t,(sl(),hB)),17).a-u(A(e,hB),17).a,n==0?(i=Xi(Eo(u(A(e,(Wr(),JM)),8)),u(A(e,q8),8)),s=Xi(Eo(u(A(t,JM),8)),u(A(t,q8),8)),Kr(i.a*i.b,s.a*s.b)):n}function Zot(e){var t,n;return n=new Hp,n.a+="e_",t=vGt(e),t!=null&&(n.a+=""+t),e.c&&e.d&&(lr((n.a+=" ",n),z$(e.c)),lr(Al((n.a+="[",n),e.c.i),"]"),lr((n.a+=lY,n),z$(e.d)),lr(Al((n.a+="[",n),e.d.i),"]")),n.a}function est(e){switch(e.g){case 0:return new w$e;case 1:return new m$e;case 2:return new g$e;case 3:return new p$e;default:throw B(new Qt("No implementation is available for the layout phase "+(e.f!=null?e.f:""+e.g)))}}function F1e(e,t,n,i,s){var c;switch(c=0,s.g){case 1:c=w.Math.max(0,t.b+e.b-(n.b+i));break;case 3:c=w.Math.max(0,-e.b-i);break;case 2:c=w.Math.max(0,-e.a-i);break;case 4:c=w.Math.max(0,t.a+e.a-(n.a+i))}return c}function Ien(e,t,n){var i,s,c,d,h;if(n)for(s=n.a.length,i=new f0(s),h=(i.b-i.a)*i.c<0?(Wp(),zg):new Xp(i);h.Ob();)d=u(h.Pb(),17),c=Xk(n,d.a),Lwe in c.a||kJ in c.a?zin(e,c,t):san(e,c,t),oAt(u(pn(e.b,_5(c)),74))}function z1e(e){var t,n;switch(e.b){case-1:return!0;case 0:return n=e.t,n>1||n==-1?(e.b=-1,!0):(t=Aa(e),t&&(rs(),t.lk()==y1t)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function H1e(e,t){var n,i,s,c;if(Er(e),e.c!=0||e.a!=123)throw B(new er(ir((Yn(),Hht))));if(c=t==112,i=e.d,n=_k(e.i,125,i),n<0)throw B(new er(ir((Yn(),Kht))));return s=oa(e.i,i,n),e.d=n+1,CQe(s,c,(e.e&512)==512)}function tst(e){var t,n,i,s,c,d,h;if(i=e.a.c.length,i>0)for(d=e.c.d,h=e.d.d,s=Nd(Xi(new Me(h.a,h.b),d),1/(i+1)),c=new Me(d.a,d.b),n=new N(e.a);n.a=0&&i=0?e.Lh(n,!0,!0):dw(e,s,!0),160)),u(i,220).Wl(t);throw B(new Qt(vg+t.xe()+dJ))}function _en(){Use();var e;return i6t?u(z5((Gp(),Wa),Da),2038):(wr(U0,new xAe),Tcn(),e=u(te($l((Gp(),Wa),Da),560)?$l(Wa,Da):new bqe,560),i6t=!0,Ian(e),Lan(e),vr((Kse(),Y5e),e,new FRe),Cs(Wa,Da,e),e)}function Ren(e,t){var n,i,s,c;e.j=-1,ku(e.e)?(n=e.i,c=e.i!=0,yI(e,t),i=new l1(e.e,3,e.c,null,t,n,c),s=t.zl(e.e,e.c,null),s=$it(e,t,s),s?(s.nj(i),s.oj()):_r(e.e,i)):(yI(e,t),s=t.zl(e.e,e.c,null),s&&s.oj())}function J$(e,t){var n,i,s;if(s=0,i=t[0],i>=e.length)return-1;for(n=(Zt(i,e.length),e.charCodeAt(i));n>=48&&n<=57&&(s=s*10+(n-48),++i,!(i>=e.length));)n=(Zt(i,e.length),e.charCodeAt(i));return i>t[0]?t[0]=i:s=-1,s}function Aen(e){var t,n,i,s,c;return s=u(e.a,17).a,c=u(e.b,17).a,n=s,i=c,t=w.Math.max(w.Math.abs(s),w.Math.abs(c)),s<=0&&s==c?(n=0,i=c-1):s==-t&&c!=t?(n=c,i=s,c>=0&&++n):(n=-c,i=s),new Gi(Ae(n),Ae(i))}function Len(e,t,n,i){var s,c,d,h,b,m;for(s=0;s=0&&m>=0&&b=e.i)throw B(new ys(SJ+t+z0+e.i));if(n>=e.i)throw B(new ys(xJ+n+z0+e.i));return i=e.g[n],t!=n&&(t>16),t=i>>16&16,n=16-t,e=e>>t,i=e-256,t=i>>16&8,n+=t,e<<=t,i=e-cv,t=i>>16&4,n+=t,e<<=t,i=e-Xd,t=i>>16&2,n+=t,e<<=t,i=e>>14,t=i&~(i>>1),n+2-t)}function jen(e){g4();var t,n,i,s;for(qD=new Le,CQ=new On,kQ=new Le,t=(!e.a&&(e.a=new Se(xr,e,10,11)),e.a),Tun(t),s=new hn(t);s.e!=s.i.gc();)i=u(mn(s),27),$s(qD,i,0)==-1&&(n=new Le,$e(kQ,n),ort(i,n));return kQ}function Den(e,t,n){var i,s,c,d;e.a=n.b.d,te(t,326)?(s=n2(u(t,74),!1,!1),c=bP(s),i=new zje(e),Po(c,i),OP(c,s),t.of((gr(),Uw))!=null&&Po(u(t.of(Uw),75),i)):(d=u(t,422),d.rh(d.nh()+e.a.a),d.sh(d.oh()+e.a.b))}function Nen(e,t){var n,i,s;for(s=new Le,i=Ln(t.a,0);i.b!=i.d.c;)n=u(_n(i),65),n.c.g==e.g&&fe(A(n.b,(sl(),ch)))!==fe(A(n.c,ch))&&!Fy(new xt(null,new Pt(s,16)),new pNe(n))&&Ft(s.c,n);return Mi(s,new qMe),s}function rst(e,t,n){var i,s,c,d;return te(t,153)&&te(n,153)?(c=u(t,153),d=u(n,153),e.a[c.a][d.a]+e.a[d.a][c.a]):te(t,250)&&te(n,250)&&(i=u(t,250),s=u(n,250),i.a==s.a)?u(A(s.a,(uf(),n6)),17).a:0}function ist(e,t){var n,i,s,c,d,h,b,m;for(m=le(pe(A(t,(Ue(),rx)))),b=e[0].n.a+e[0].o.a+e[0].d.c+m,h=1;h=0?n:(h=eS(Xi(new Me(d.c+d.b/2,d.d+d.a/2),new Me(c.c+c.b/2,c.d+c.a/2))),-(Oct(c,d)-1)*h)}function Fen(e,t,n){var i;Ci(new xt(null,(!n.a&&(n.a=new Se(ei,n,6,6)),new Pt(n.a,16))),new wKe(e,t)),Ci(new xt(null,(!n.n&&(n.n=new Se(ms,n,1,7)),new Pt(n.n,16))),new mKe(e,t)),i=u(Ie(n,(gr(),Uw)),75),i&&Gfe(i,e,t)}function dw(e,t,n){var i,s,c;if(c=s2((Nc(),_o),e.Dh(),t),c)return rs(),u(c,69).xk()||(c=w4(Ss(_o,c))),s=(i=e.Ih(c),u(i>=0?e.Lh(i,!0,!0):dw(e,c,!0),160)),u(s,220).Sl(t,n);throw B(new Qt(vg+t.xe()+dJ))}function K1e(e,t,n,i){var s,c,d,h,b;if(s=e.d[t],s){if(c=s.g,b=s.i,i!=null){for(h=0;h=n&&(i=t,m=(b.c+b.a)/2,d=m-n,b.c<=m-n&&(s=new UU(b.c,d),Nb(e,i++,s)),h=m+n,h<=b.a&&(c=new UU(h,b.a),$m(i,e.c.length),k7(e.c,i,c)))}function lst(e,t,n){var i,s,c,d,h,b;if(!t.dc()){for(s=new Zr,b=t.Kc();b.Ob();)for(h=u(b.Pb(),40),vr(e.a,Ae(h.g),Ae(n)),d=(i=Ln(new Jh(h).a.d,0),new my(i));bT(d.a);)c=u(_n(d.a),65).c,gi(s,c,s.c.b,s.c);lst(e,s,n+1)}}function U1e(e){var t;if(!e.c&&e.g==null)e.d=e.bj(e.f),Dn(e,e.d),t=e.d;else{if(e.g==null)return!0;if(e.i==0)return!1;t=u(e.g[e.i-1],51)}return t==e.b&&null.Vm>=null.Um()?(ej(e),U1e(e)):t.Ob()}function cst(e){if(this.a=e,e.c.i.k==(nn(),Oi))this.c=e.c,this.d=u(A(e.c.i,(Oe(),fl)),64);else if(e.d.i.k==Oi)this.c=e.d,this.d=u(A(e.d.i,(Oe(),fl)),64);else throw B(new Qt("Edge "+e+" is not an external edge."))}function ust(e,t){var n,i,s;s=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,3,s,e.b)),t?t!=e&&(Xl(e,t.zb),SW(e,t.d),n=(i=t.c,i??t.zb),EW(e,n==null||Et(n,t.zb)?null:n)):(Xl(e,null),SW(e,0),EW(e,null))}function ast(e,t){var n;this.e=(Hb(),qn(e),Hb(),ihe(e)),this.c=(qn(t),ihe(t)),Vle(this.e.Rd().dc()==this.c.Rd().dc()),this.d=Ent(this.e),this.b=Ent(this.c),n=u0(Ji,[_e,Bt],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=n,gUt(this)}function fst(e){!JJ&&(JJ=Nun());var t=e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(n){return HBt(n)});return'"'+t+'"'}function G1e(e,t,n,i,s,c){var d,h,b,m,v;if(s!=0)for(fe(e)===fe(n)&&(e=e.slice(t,t+s),t=0),b=n,h=t,m=t+s;h=d)throw B(new Mm(t,d));return s=n[t],d==1?i=null:(i=be(Tte,MJ,424,d-1,0,1),Ol(n,0,i,0,t),c=d-t-1,c>0&&Ol(n,t+1,i,t,c)),R5(e,i),Lot(e,t,s),s}function hst(e){var t,n;if(e.f){for(;e.n0?c=P4(n):c=tP(P4(n))),Br(t,z8,c)}function Ven(e,t){var n;t.Ug("Partition preprocessing",1),n=u(Ks(Ar(Qs(Ar(new xt(null,new Pt(e.a,16)),new YTe),new JTe),new QTe),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[(Jc(),Ws)]))),15),Ci(n.Oc(),new ZTe),t.Vg()}function qen(e,t){var n,i,s,c,d;for(d=e.j,t.a!=t.b&&Mi(d,new MPe),s=d.c.length/2|0,i=0;i0&&IP(e,n,t),c):i.a!=null?(IP(e,t,n),-1):s.a!=null?(IP(e,n,t),1):0}function Yen(e,t){var n,i,s,c,d;for(s=t.b.b,e.a=be(ya,uv,15,s,0,1),e.b=be(wu,Oh,28,s,16,1),d=Ln(t.b,0);d.b!=d.d.c;)c=u(_n(d),40),e.a[c.g]=new Zr;for(i=Ln(t.a,0);i.b!=i.d.c;)n=u(_n(i),65),e.a[n.b.g].Fc(n),e.a[n.c.g].Fc(n)}function wst(e,t){var n,i,s,c;e.Pj()?(n=e.Ej(),c=e.Qj(),++e.j,e.qj(n,e.Zi(n,t)),i=e.Ij(3,null,t,n,c),e.Mj()?(s=e.Nj(t,null),s?(s.nj(i),s.oj()):e.Jj(i)):e.Jj(i)):(oqe(e,t),e.Mj()&&(s=e.Nj(t,null),s&&s.oj()))}function W1e(e,t,n){var i,s,c;e.Pj()?(c=e.Qj(),JI(e,t,n),i=e.Ij(3,null,n,t,c),e.Mj()?(s=e.Nj(n,null),e.Tj()&&(s=e.Uj(n,s)),s?(s.nj(i),s.oj()):e.Jj(i)):e.Jj(i)):(JI(e,t,n),e.Mj()&&(s=e.Nj(n,null),s&&s.oj()))}function Q$(e,t){var n,i,s,c,d;for(d=cc(e.e.Dh(),t),s=new Z_,n=u(e.g,124),c=e.i;--c>=0;)i=n[c],d.am(i.Lk())&&Dn(s,i);!dat(e,s)&&ku(e.e)&&mk(e,t.Jk()?Zp(e,6,t,(Ot(),Jo),null,-1,!1):Zp(e,t.tk()?2:1,t,null,null,-1,!1))}function Jen(e,t){var n,i,s,c,d;return e.a==(N5(),W9)?!0:(c=t.a.c,n=t.a.c+t.a.b,!(t.j&&(i=t.A,d=i.c.c.a-i.o.a/2,s=c-(i.n.a+i.o.a),s>d)||t.q&&(i=t.C,d=i.c.c.a-i.o.a/2,s=i.n.a-n,s>d)))}function mst(e){NG();var t,n,i,s,c,d,h;for(n=new q1,s=new N(e.e.b);s.a1?e.e*=le(e.a):e.f/=le(e.a),vWt(e),Eqt(e),Cin(e),Ee(e.b,(RS(),VD),e.g)}function Cst(e,t,n){var i,s,c,d,h,b;for(i=0,b=n,t||(i=n*(e.c.length-1),b*=-1),c=new N(e);c.a=0?e.Ah(null):e.Ph().Th(e,-1-t,null,null)),e.Bh(u(s,54),n),i&&i.oj(),e.vh()&&e.wh()&&n>-1&&_r(e,new ro(e,9,n,c,s)),s):c}function X1e(e,t){var n,i,s,c,d;for(c=e.b.Ce(t),i=(n=e.a.get(c),n??be(Ji,Bt,1,0,5,1)),d=0;d>5,s>=e.d)return e.e<0;if(n=e.a[s],t=1<<(t&31),e.e<0){if(i=jet(e),s>16)),15).dd(c),h0&&(!(Zh(e.a.c)&&t.n.d)&&!(Py(e.a.c)&&t.n.b)&&(t.g.d+=w.Math.max(0,i/2-.5)),!(Zh(e.a.c)&&t.n.a)&&!(Py(e.a.c)&&t.n.c)&&(t.g.a-=i-1))}function _st(e){var t,n,i,s,c;if(s=new Le,c=Tct(e,s),t=u(A(e,(Oe(),Zc)),10),t)for(i=new N(t.j);i.a>t,c=e.m>>t|n<<22-t,s=e.l>>t|e.m<<22-t):t<44?(d=i?v1:0,c=n>>t-22,s=e.m>>t-22|n<<44-t):(d=i?v1:0,c=i?hu:0,s=n>>t-44),nc(s&hu,c&hu,d&v1)}function mq(e){var t,n,i,s,c,d;for(this.c=new Le,this.d=e,i=ii,s=ii,t=Hi,n=Hi,d=Ln(e,0);d.b!=d.d.c;)c=u(_n(d),8),i=w.Math.min(i,c.a),s=w.Math.min(s,c.b),t=w.Math.max(t,c.a),n=w.Math.max(n,c.b);this.a=new ia(i,s,t-i,n-s)}function Ast(e,t){var n,i,s,c,d,h;for(c=new N(e.b);c.a0&&te(t,44)&&(e.a._j(),m=u(t,44),b=m.ld(),c=b==null?0:Vr(b),d=yce(e.a,c),n=e.a.d[d],n)){for(i=u(n.g,379),v=n.i,h=0;h=2)for(n=s.Kc(),t=pe(n.Pb());n.Ob();)c=t,t=pe(n.Pb()),i=w.Math.min(i,(sn(t),t-(sn(c),c)));return i}function vtn(e,t){var n,i,s;for(s=new Le,i=Ln(t.a,0);i.b!=i.d.c;)n=u(_n(i),65),n.b.g==e.g&&!Et(n.b.c,sD)&&fe(A(n.b,(sl(),ch)))!==fe(A(n.c,ch))&&!Fy(new xt(null,new Pt(s,16)),new gNe(n))&&Ft(s.c,n);return Mi(s,new QMe),s}function ytn(e,t){var n,i,s;if(fe(t)===fe(qn(e)))return!0;if(!te(t,15)||(i=u(t,15),s=e.gc(),s!=i.gc()))return!1;if(te(i,59)){for(n=0;n0&&(s=n),d=new N(e.f.e);d.a0?(t-=1,n-=1):i>=0&&s<0?(t+=1,n+=1):i>0&&s>=0?(t-=1,n+=1):(t+=1,n-=1),new Gi(Ae(t),Ae(n))}function Ltn(e,t){return e.ct.c?1:e.bt.b?1:e.a!=t.a?Vr(e.a)-Vr(t.a):e.d==(lS(),fx)&&t.d==ax?-1:e.d==ax&&t.d==fx?1:0}function Fst(e,t){var n,i,s,c,d;return c=t.a,c.c.i==t.b?d=c.d:d=c.c,c.c.i==t.b?i=c.c:i=c.d,s=nqt(e.a,d,i),s>0&&s0):s<0&&-s0):!1}function $tn(e,t,n,i){var s,c,d,h,b,m,v,k;for(s=(t-e.d)/e.c.c.length,c=0,e.a+=n,e.d=t,k=new N(e.c);k.a>24;return d}function Dtn(e){if(e.ze()){var t=e.c;t.Ae()?e.o="["+t.n:t.ze()?e.o="["+t.xe():e.o="[L"+t.xe()+";",e.b=t.we()+"[]",e.k=t.ye()+"[]";return}var n=e.j,i=e.d;i=i.split("/"),e.o=CV(".",[n,CV("$",i)]),e.b=CV(".",[n,CV(".",i)]),e.k=i[i.length-1]}function Ntn(e,t){var n,i,s,c,d;for(d=null,c=new N(e.e.a);c.a=0;t-=2)for(n=0;n<=t;n+=2)(e.b[n]>e.b[n+2]||e.b[n]===e.b[n+2]&&e.b[n+1]>e.b[n+3])&&(i=e.b[n+2],e.b[n+2]=e.b[n],e.b[n]=i,i=e.b[n+3],e.b[n+3]=e.b[n+1],e.b[n+1]=i);e.c=!0}}function ztn(e,t){var n,i,s,c,d,h,b,m,v;for(m=-1,v=0,d=e,h=0,b=d.length;h0&&++v;++m}return v}function lf(e){var t,n;return n=new Ru(l0(e.Rm)),n.a+="@",lr(n,(t=Vr(e)>>>0,t.toString(16))),e.Vh()?(n.a+=" (eProxyURI: ",Al(n,e._h()),e.Kh()&&(n.a+=" eClass: ",Al(n,e.Kh())),n.a+=")"):e.Kh()&&(n.a+=" (eClass: ",Al(n,e.Kh()),n.a+=")"),n.a}function GS(e){var t,n,i,s;if(e.e)throw B(new ks((e1(aQ),zX+aQ.k+HX)));for(e.d==(ji(),yd)&&yj(e,Ps),n=new N(e.a.a);n.a>24}return n}function Utn(e,t,n){var i,s,c;if(s=u(gs(e.i,t),314),!s)if(s=new xZe(e.d,t,n),f4(e.i,t,s),uhe(t))qRt(e.a,t.c,t.b,s);else switch(c=IZt(t),i=u(gs(e.p,c),252),c.g){case 1:case 3:s.j=!0,CK(i,t.b,s);break;case 4:case 2:s.k=!0,CK(i,t.c,s)}return s}function Gtn(e,t){var n,i,s,c,d,h,b,m,v;for(b=gh(e.c-e.b&e.a.length-1),m=null,v=null,c=new nS(e);c.a!=c.b;)s=u(d$(c),10),n=(h=u(A(s,(Oe(),Hf)),12),h?h.i:null),i=(d=u(A(s,Fa),12),d?d.i:null),(m!=n||v!=i)&&(Sst(b,t),m=n,v=i),Ft(b.c,s);Sst(b,t)}function Wtn(e,t,n,i){var s,c,d,h,b,m;if(h=new Z_,b=cc(e.e.Dh(),t),s=u(e.g,124),rs(),u(t,69).xk())for(d=0;d=0)return s;for(c=1,h=new N(t.j);h.a=0)return s;for(c=1,h=new N(t.j);h.a0&&t.Ne((_t(s-1,e.c.length),u(e.c[s-1],10)),c)>0;)la(e,s,(_t(s-1,e.c.length),u(e.c[s-1],10))),--s;_t(s,e.c.length),e.c[s]=c}n.a=new On,n.b=new On}function Vtn(e,t,n){var i,s,c,d,h,b,m,v;for(v=(i=u(t.e&&t.e(),9),new ra(i,u(ef(i,i.length),9),0)),b=iv(n,"[\\[\\]\\s,]+"),c=b,d=0,h=c.length;d=0?(t||(t=new f7,i>0&&ps(t,(mo(0,i,e.length),e.substr(0,i)))),t.a+="\\",Hk(t,n&Di)):t&&Hk(t,n&Di);return t?t.a:e}function Xtn(e){var t,n,i;for(n=new N(e.a.a.b);n.a0&&(!(Zh(e.a.c)&&t.n.d)&&!(Py(e.a.c)&&t.n.b)&&(t.g.d-=w.Math.max(0,i/2-.5)),!(Zh(e.a.c)&&t.n.a)&&!(Py(e.a.c)&&t.n.c)&&(t.g.a+=w.Math.max(0,i-1)))}function Xst(e,t,n){var i,s;if((e.c-e.b&e.a.length-1)==2)t==(ze(),en)||t==fn?(NL(u(vS(e),15),(Fu(),Dh)),NL(u(vS(e),15),Rg)):(NL(u(vS(e),15),(Fu(),Rg)),NL(u(vS(e),15),Dh));else for(s=new nS(e);s.a!=s.b;)i=u(d$(s),15),NL(i,n)}function Ytn(e,t){var n,i,s,c,d,h,b;for(s=Dk(new Koe(e)),h=new wo(s,s.c.length),c=Dk(new Koe(t)),b=new wo(c,c.c.length),d=null;h.b>0&&b.b>0&&(n=(yn(h.b>0),u(h.a.Xb(h.c=--h.b),27)),i=(yn(b.b>0),u(b.a.Xb(b.c=--b.b),27)),n==i);)d=n;return d}function Yst(e,t,n){var i,s,c,d;XXe(e,t)>XXe(e,n)?(i=el(n,(ze(),fn)),e.d=i.dc()?0:YU(u(i.Xb(0),12)),d=el(t,rn),e.b=d.dc()?0:YU(u(d.Xb(0),12))):(s=el(n,(ze(),rn)),e.d=s.dc()?0:YU(u(s.Xb(0),12)),c=el(t,fn),e.b=c.dc()?0:YU(u(c.Xb(0),12)))}function Jst(e,t){var n,i,s,c;for(n=e.o.a,c=u(u($r(e.r,t),21),87).Kc();c.Ob();)s=u(c.Pb(),117),s.e.a=n*le(pe(s.b.of(UD))),s.e.b=(i=s.b,i.pf((gr(),bu))?i.ag()==(ze(),en)?-i.Mf().b-le(pe(i.of(bu))):le(pe(i.of(bu))):i.ag()==(ze(),en)?-i.Mf().b:0)}function Jtn(e,t){var n,i,s,c;for(t.Ug("Self-Loop pre-processing",1),i=new N(e.a);i.ae.c));d++)s.a>=e.s&&(c<0&&(c=d),h=d);return b=(e.s+e.c)/2,c>=0&&(i=Bin(e,t,c,h),b=D_t((_t(i,t.c.length),u(t.c[i],339))),Uen(t,i,n)),b}function Un(e,t,n){var i,s,c,d,h,b,m;for(d=(c=new uoe,c),Dfe(d,(sn(t),t)),m=(!d.b&&(d.b=new Su((Mt(),ns),dl,d)),d.b),b=1;b0&&$ln(this,s)}function spe(e,t,n,i,s,c){var d,h,b;if(!s[t.a]){for(s[t.a]=!0,d=i,!d&&(d=new CL),$e(d.e,t),b=c[t.a].Kc();b.Ob();)h=u(b.Pb(),290),!(h.d==n||h.c==n)&&(h.c!=t&&spe(e,h.c,t,d,s,c),h.d!=t&&spe(e,h.d,t,d,s,c),$e(d.c,h),zi(d.d,h.b));return d}return null}function enn(e){var t,n,i,s,c,d,h;for(t=0,s=new N(e.e);s.a=2}function tnn(e,t,n,i,s){var c,d,h,b,m,v;for(c=e.c.d.j,d=u(ga(n,0),8),v=1;v1||(t=Yr(bf,H(F(ds,1),Te,95,0,[E1,wf])),BI(uL(t,e))>1)||(i=Yr(vf,H(F(ds,1),Te,95,0,[Nh,Ha])),BI(uL(i,e))>1))}function lpe(e,t,n){var i,s,c;for(c=new N(e.t);c.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&or(t,i.b));for(s=new N(e.i);s.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&or(n,i.a))}function ej(e){var t,n,i,s,c;if(e.g==null&&(e.d=e.bj(e.f),Dn(e,e.d),e.c))return c=e.f,c;if(t=u(e.g[e.i-1],51),s=t.Pb(),e.e=t,n=e.bj(s),n.Ob())e.d=n,Dn(e,n);else for(e.d=null;!t.Ob()&&(pi(e.g,--e.i,null),e.i!=0);)i=u(e.g[e.i-1],51),t=i;return s}function rnn(e,t){var n,i,s,c,d,h;if(i=t,s=i.Lk(),w1(e.e,s)){if(s.Si()&&wL(e,s,i.md()))return!1}else for(h=cc(e.e.Dh(),s),n=u(e.g,124),c=0;c1||n>1)return 2;return t+n==1?2:0}function fu(e,t){var n,i,s,c,d,h;return c=e.a*DX+e.b*1502,h=e.b*DX+11,n=w.Math.floor(h*VP),c+=n,h-=n*_ge,c%=_ge,e.a=c,e.b=h,t<=24?w.Math.floor(e.a*Fme[t]):(s=e.a*(1<=2147483648&&(i-=4294967296),i)}function nlt(e,t,n){var i,s,c,d,h,b,m;for(c=new Le,m=new Zr,d=new Zr,Esn(e,m,d,t),rcn(e,m,d,t,n),b=new N(e);b.ai.b.g&&Ft(c.c,i);return c}function unn(e,t,n){var i,s,c,d,h,b;for(h=e.c,d=(n.q?n.q:(Ot(),Ot(),Rh)).vc().Kc();d.Ob();)c=u(d.Pb(),44),i=!xk(Ar(new xt(null,new Pt(h,16)),new gk(new aKe(t,c)))).Bd((c0(),t6)),i&&(b=c.md(),te(b,4)&&(s=dhe(b),s!=null&&(b=s)),t.qf(u(c.ld(),149),b))}function ann(e,t,n){var i,s;if(lI(e.b),_f(e.b,(eP(),SB),(b7(),oO)),_f(e.b,xB,t.g),_f(e.b,EB,t.a),e.a=AP(e.b,t),n.Ug("Compaction by shrinking a tree",e.a.c.length),t.i.c.length>1)for(s=new N(e.a);s.a=0?e.Lh(i,!0,!0):dw(e,c,!0),160)),u(s,220).Xl(t,n)}else throw B(new Qt(vg+t.xe()+x9))}function tj(e,t){var n,i,s,c,d;if(t){for(c=te(e.Cb,90)||te(e.Cb,102),d=!c&&te(e.Cb,331),i=new hn((!t.a&&(t.a=new W7(t,hs,t)),t.a));i.e!=i.i.gc();)if(n=u(mn(i),89),s=pj(n),c?te(s,90):d?te(s,156):s)return s;return c?(Mt(),Va):(Mt(),Sd)}else return null}function fnn(e,t){var n,i,s,c;for(t.Ug("Resize child graph to fit parent.",1),i=new N(e.b);i.a=2*t&&$e(n,new UU(d[i-1]+t,d[i]-t));return n}function pnn(e,t,n){var i,s,c,d,h,b,m,v;if(n)for(c=n.a.length,i=new f0(c),h=(i.b-i.a)*i.c<0?(Wp(),zg):new Xp(i);h.Ob();)d=u(h.Pb(),17),s=Xk(n,d.a),s&&(b=Uzt(e,(m=(Up(),v=new cse,v),t&&ape(m,t),m),s),u5(b,r1(s,rh)),W$(s,b),L1e(s,b),GW(e,s,b))}function nj(e){var t,n,i,s,c,d;if(!e.j){if(d=new PRe,t=Kx,c=t.a.zc(e,t),c==null){for(i=new hn(Ls(e));i.e!=i.i.gc();)n=u(mn(i),29),s=nj(n),mi(d,s),Dn(d,n);t.a.Bc(e)!=null}Um(d),e.j=new Ty((u(re(me((Jp(),Wt).o),11),19),d.i),d.g),cu(e).b&=-33}return e.j}function gnn(e){var t,n,i,s;if(e==null)return null;if(i=Nl(e,!0),s=wM.length,Et(i.substr(i.length-s,s),wM)){if(n=i.length,n==4){if(t=(Zt(0,i.length),i.charCodeAt(0)),t==43)return b8e;if(t==45)return E6t}else if(n==3)return b8e}return new Joe(i)}function bnn(e){var t,n,i;return n=e.l,n&n-1||(i=e.m,i&i-1)||(t=e.h,t&t-1)||t==0&&i==0&&n==0?-1:t==0&&i==0&&n!=0?Ife(n):t==0&&i!=0&&n==0?Ife(i)+22:t!=0&&i==0&&n==0?Ife(t)+44:-1}function t2(e,t){var n,i,s,c,d;for(s=t.a&e.f,c=null,i=e.b[s];;i=i.b){if(i==t){c?c.b=t.b:e.b[s]=t.b;break}c=i}for(d=t.f&e.f,c=null,n=e.c[d];;n=n.d){if(n==t){c?c.d=t.d:e.c[d]=t.d;break}c=n}t.e?t.e.c=t.c:e.a=t.c,t.c?t.c.e=t.e:e.e=t.e,--e.i,++e.g}function wnn(e,t){var n;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,!t.e&&!t.c?(n=u(Oa(u(y4(e.b,t.a),260)),260),n.a=0,++e.c):(n=u(Oa(u(pn(e.b,t.a),260)),260),--n.a,t.e?t.e.c=t.c:n.b=u(Oa(t.c),511),t.c?t.c.e=t.e:n.c=u(Oa(t.e),511)),--e.d}function mnn(e){var t,n,i,s,c,d,h,b,m,v;for(n=e.o,t=e.p,d=Mr,s=jo,h=Mr,c=jo,m=0;m0),c.a.Xb(c.c=--c.b),Pm(c,s),yn(c.b3&&kh(e,0,t-3))}function ynn(e){var t,n,i,s;return fe(A(e,(Ue(),Iv)))===fe((f1(),Cp))?!e.e&&fe(A(e,zM))!==fe((g5(),$M)):(i=u(A(e,EZ),299),s=qe(Ve(A(e,TZ)))||fe(A(e,ex))===fe((hS(),LM)),t=u(A(e,X2e),17).a,n=e.a.c.length,!s&&i!=(g5(),$M)&&(t==0||t>n))}function knn(e){var t,n;for(n=0;n0);n++);if(n>0&&n0);t++);return t>0&&n>16!=6&&t){if(L5(e,t))throw B(new Qt(E9+vst(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?Ahe(e,i):e.Cb.Th(e,-1-n,null,i))),t&&(i=_4(t,e,6,i)),i=wce(e,t,i),i&&i.oj()}else e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,6,t,t))}function rj(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=3&&t){if(L5(e,t))throw B(new Qt(E9+sut(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?Dhe(e,i):e.Cb.Th(e,-1-n,null,i))),t&&(i=_4(t,e,12,i)),i=mce(e,t,i),i&&i.oj()}else e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,3,t,t))}function ape(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=9&&t){if(L5(e,t))throw B(new Qt(E9+ict(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?$he(e,i):e.Cb.Th(e,-1-n,null,i))),t&&(i=_4(t,e,9,i)),i=vce(e,t,i),i&&i.oj()}else e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,9,t,t))}function H5(e){var t,n,i,s,c;if(i=Aa(e),c=e.j,c==null&&i)return e.Jk()?null:i.ik();if(te(i,156)){if(n=i.jk(),n&&(s=n.wi(),s!=e.i)){if(t=u(i,156),t.nk())try{e.g=s.ti(t,c)}catch(d){if(d=li(d),te(d,82))e.g=null;else throw B(d)}e.i=s}return e.g}return null}function slt(e){var t;return t=new Le,$e(t,new Y3(new Me(e.c,e.d),new Me(e.c+e.b,e.d))),$e(t,new Y3(new Me(e.c,e.d),new Me(e.c,e.d+e.a))),$e(t,new Y3(new Me(e.c+e.b,e.d+e.a),new Me(e.c+e.b,e.d))),$e(t,new Y3(new Me(e.c+e.b,e.d+e.a),new Me(e.c,e.d+e.a))),t}function Cnn(e){var t,n,i;if(e==null)return Cc;try{return Us(e)}catch(s){if(s=li(s),te(s,103))return t=s,i=l0(Tu(e))+"@"+(n=(Qh(),fhe(e)>>>0),n.toString(16)),jqt(kGt(),(Pk(),"Exception during lenientFormat for "+i),t),"<"+i+" threw "+l0(t.Rm)+">";throw B(s)}}function Snn(e,t,n){var i,s,c;for(c=t.a.ec().Kc();c.Ob();)s=u(c.Pb(),74),i=u(pn(e.b,s),272),!i&&(ri(Sh(s))==ri(ug(s))?arn(e,s,n):Sh(s)==ri(ug(s))?pn(e.c,s)==null&&pn(e.b,ug(s))!=null&&Nut(e,s,n,!1):pn(e.d,s)==null&&pn(e.b,Sh(s))!=null&&Nut(e,s,n,!0))}function xnn(e,t){var n,i,s,c,d,h,b;for(s=e.Kc();s.Ob();)for(i=u(s.Pb(),10),h=new Ml,Js(h,i),Vi(h,(ze(),fn)),Ee(h,(Oe(),jN),(Gt(),!0)),d=t.Kc();d.Ob();)c=u(d.Pb(),10),b=new Ml,Js(b,c),Vi(b,rn),Ee(b,jN,!0),n=new Vb,Ee(n,jN,!0),zo(n,h),ao(n,b)}function Enn(e,t,n,i){var s,c,d,h;s=Unt(e,t,n),c=Unt(e,n,t),d=u(pn(e.c,t),118),h=u(pn(e.c,n),118),s1)for(t=Lb((n=new s0,++e.b,n),e.d),h=Ln(c,0);h.b!=h.d.c;)d=u(_n(h),125),cf(Ja(Ya(Qa(Xa(new Pa,1),0),t),d))}function Pnn(e,t,n){var i,s,c,d,h;for(n.Ug("Breaking Point Removing",1),e.a=u(A(t,(Ue(),x1)),223),c=new N(t.b);c.a>16!=11&&t){if(L5(e,t))throw B(new Qt(E9+Ope(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?Nhe(e,i):e.Cb.Th(e,-1-n,null,i))),t&&(i=_4(t,e,10,i)),i=Pce(e,t,i),i&&i.oj()}else e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,11,t,t))}function Mnn(e){var t,n,i,s;for(i=new S0(new i0(e.b).a);i.b;)n=rw(i),s=u(n.ld(),12),t=u(n.md(),10),Ee(t,(Oe(),jr),s),Ee(s,Zc,t),Ee(s,NM,(Gt(),!0)),Vi(s,u(A(t,fl),64)),A(t,fl),Ee(s.i,(Ue(),yi),(fo(),rC)),u(A(Io(s.i),Kl),21).Fc((cs(),D8))}function Onn(e,t,n){var i,s,c,d,h,b;if(c=0,d=0,e.c)for(b=new N(e.d.i.j);b.ac.a?-1:s.ab){for(v=e.d,e.d=be(z5e,Ywe,66,2*b+4,0,1),c=0;c=9223372036854776e3?(t5(),wme):(s=!1,e<0&&(s=!0,e=-e),i=0,e>=L0&&(i=Wi(e/L0),e-=i*L0),n=0,e>=K4&&(n=Wi(e/K4),e-=n*K4),t=Wi(e),c=nc(t,n,i),s&&WW(c),c)}function znn(e){var t,n,i,s,c;if(c=new Le,ic(e.b,new Rje(c)),e.b.c.length=0,c.c.length!=0){for(t=(_t(0,c.c.length),u(c.c[0],82)),n=1,i=c.c.length;n=-t&&i==t?new Gi(Ae(n-1),Ae(i)):new Gi(Ae(n),Ae(i-1))}function ult(){return Uo(),H(F(Zan,1),Te,81,0,[iye,tye,S2,NQ,Sye,sN,bN,Cv,kye,dye,vye,kv,Cye,uye,xye,Xve,aN,BQ,iN,hN,Tye,dN,Yve,yye,Iye,pN,Eye,oN,sye,wye,bye,wN,Zve,rN,cN,Qve,T8,pye,aye,mye,K9,nye,eye,gye,fye,uN,gN,Jve,fN,hye,lN,lye,oye,_M,nN,cye,rye])}function Unn(e,t,n){e.d=0,e.b=0,t.k==(nn(),Hl)&&n.k==Hl&&u(A(t,(Oe(),jr)),10)==u(A(n,jr),10)&&(dW(t).j==(ze(),en)?Yst(e,t,n):Yst(e,n,t)),t.k==Hl&&n.k==io?dW(t).j==(ze(),en)?e.d=1:e.b=1:n.k==Hl&&t.k==io&&(dW(n).j==(ze(),en)?e.b=1:e.d=1),PXt(e,t,n)}function Gnn(e){var t,n,i,s,c,d,h,b,m,v,k;return k=c1e(e),t=e.a,b=t!=null,b&&Nk(k,"category",e.a),s=mT(new r0(e.d)),d=!s,d&&(m=new t0,$f(k,"knownOptions",m),n=new hBe(m),Po(new r0(e.d),n)),c=mT(e.g),h=!c,h&&(v=new t0,$f(k,"supportedFeatures",v),i=new pBe(v),Po(e.g,i)),k}function Wnn(e){var t,n,i,s,c,d,h,b,m;for(i=!1,t=336,n=0,c=new YGe(e.length),h=e,b=0,m=h.length;b>16!=7&&t){if(L5(e,t))throw B(new Qt(E9+bot(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?Lhe(e,i):e.Cb.Th(e,-1-n,null,i))),t&&(i=u(t,54).Rh(e,1,xO,i)),i=kue(e,t,i),i&&i.oj()}else e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,7,t,t))}function alt(e,t){var n,i;if(t!=e.Cb||e.Db>>16!=3&&t){if(L5(e,t))throw B(new Qt(E9+pnt(e)));i=null,e.Cb&&(i=(n=e.Db>>16,n>=0?jhe(e,i):e.Cb.Th(e,-1-n,null,i))),t&&(i=u(t,54).Rh(e,0,TO,i)),i=Cue(e,t,i),i&&i.oj()}else e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,3,t,t))}function Sq(e,t){K5();var n,i,s,c,d,h,b,m,v;return t.d>e.d&&(h=e,e=t,t=h),t.d<63?Lrn(e,t):(d=(e.d&-2)<<4,m=zae(e,d),v=zae(t,d),i=Kq(e,v4(m,d)),s=Kq(t,v4(v,d)),b=Sq(m,v),n=Sq(i,s),c=Sq(Kq(m,i),Kq(s,v)),c=Yq(Yq(c,b),n),c=v4(c,d),b=v4(b,d<<1),Yq(Yq(b,c),n))}function up(){up=U,FZ=new Cy(pdt,0),$3e=new Cy("LONGEST_PATH",1),j3e=new Cy("LONGEST_PATH_SOURCE",2),BZ=new Cy("COFFMAN_GRAHAM",3),L3e=new Cy(dY,4),D3e=new Cy("STRETCH_WIDTH",5),eB=new Cy("MIN_WIDTH",6),G8=new Cy("BF_MODEL_ORDER",7),W8=new Cy("DF_MODEL_ORDER",8)}function qnn(e,t,n){var i,s,c,d,h;for(d=xS(e,n),h=be(Lh,fp,10,t.length,0,1),i=0,c=d.Kc();c.Ob();)s=u(c.Pb(),12),qe(Ve(A(s,(Oe(),NM))))&&(h[i++]=u(A(s,Zc),10));if(i=0;c+=n?1:-1)d=d|t.c.lg(b,c,n,i&&!qe(Ve(A(t.j,(Oe(),Eg))))&&!qe(Ve(A(t.j,(Oe(),_2))))),d=d|t.q.ug(b,c,n),d=d|Jlt(e,b[c],n,i);return Fi(e.c,t),d}function sj(e,t,n){var i,s,c,d,h,b,m,v,k,T;for(v=PYe(e.j),k=0,T=v.length;k1&&(e.a=!0),IDt(u(n.b,68),Or(Eo(u(t.b,68).c),Nd(Xi(Eo(u(n.b,68).a),u(t.b,68).a),s))),$Xe(e,t),flt(e,n)}function dlt(e){var t,n,i,s,c,d,h;for(c=new N(e.a.a);c.a0&&c>0?d.p=t++:i>0?d.p=n++:c>0?d.p=s++:d.p=n++}Ot(),Mi(e.j,new GTe)}function Znn(e){var t,n;n=null,t=u(Ye(e.g,0),18);do{if(n=t.d.i,Xr(n,(Oe(),Fa)))return u(A(n,Fa),12).i;if(n.k!=(nn(),Ei)&&$n(new gn(wn(Pi(n).a.Kc(),new j))))t=u(xn(new gn(wn(Pi(n).a.Kc(),new j))),18);else if(n.k!=Ei)return null}while(n&&n.k!=(nn(),Ei));return n}function ern(e,t){var n,i,s,c,d,h,b,m,v;for(h=t.j,d=t.g,b=u(Ye(h,h.c.length-1),113),v=(_t(0,h.c.length),u(h.c[0],113)),m=UV(e,d,b,v),c=1;cm&&(b=n,v=s,m=i);t.a=v,t.c=b}function trn(e,t,n){var i,s,c,d,h,b,m;for(m=new z1(new JDe(e)),d=H(F(K0t,1),Nft,12,0,[t,n]),h=0,b=d.length;hb-e.b&&hb-e.a&&h0?c.a?(h=c.b.Mf().a,n>h&&(s=(n-h)/2,c.d.b=s,c.d.c=s)):c.d.c=e.s+n:q7(e.u)&&(i=u1e(c.b),i.c<0&&(c.d.b=-i.c),i.c+i.b>c.b.Mf().a&&(c.d.c=i.c+i.b-c.b.Mf().a))}function mrn(e,t){var n,i,s,c,d;d=new Le,n=t;do c=u(pn(e.b,n),131),c.B=n.c,c.D=n.d,Ft(d.c,c),n=u(pn(e.k,n),18);while(n);return i=(_t(0,d.c.length),u(d.c[0],131)),i.j=!0,i.A=u(i.d.a.ec().Kc().Pb(),18).c.i,s=u(Ye(d,d.c.length-1),131),s.q=!0,s.C=u(s.d.a.ec().Kc().Pb(),18).d.i,d}function vrn(e){var t,n;if(t=u(e.a,17).a,n=u(e.b,17).a,t>=0){if(t==n)return new Gi(Ae(-t-1),Ae(-t-1));if(t==-n)return new Gi(Ae(-t),Ae(n+1))}return w.Math.abs(t)>w.Math.abs(n)?t<0?new Gi(Ae(-t),Ae(n)):new Gi(Ae(-t),Ae(n+1)):new Gi(Ae(t+1),Ae(n))}function yrn(e){var t,n;n=u(A(e,(Ue(),fc)),171),t=u(A(e,(Oe(),W0)),311),n==(pa(),Tg)?(Ee(e,fc,FM),Ee(e,W0,(c1(),M2))):n==Ev?(Ee(e,fc,FM),Ee(e,W0,(c1(),o6))):t==(c1(),M2)?(Ee(e,fc,Tg),Ee(e,W0,jM)):t==o6&&(Ee(e,fc,Ev),Ee(e,W0,jM))}function lj(){lj=U,XM=new _Me,nyt=cr(new Li,($o(),_l),(Uo(),iN)),oyt=$c(cr(new Li,_l,dN),Ns,fN),syt=Wd(Wd(m7($c(cr(new Li,hf,bN),Ns,gN),zl),pN),wN),ryt=$c(cr(cr(cr(new Li,Ah,sN),zl,cN),zl,T8),Ns,lN),iyt=$c(cr(cr(new Li,zl,T8),zl,rN),Ns,nN)}function qS(){qS=U,uyt=cr($c(new Li,($o(),Ns),(Uo(),lye)),_l,iN),hyt=Wd(Wd(m7($c(cr(new Li,hf,bN),Ns,gN),zl),pN),wN),ayt=$c(cr(cr(cr(new Li,Ah,sN),zl,cN),zl,T8),Ns,lN),dyt=cr(cr(new Li,_l,dN),Ns,fN),fyt=$c(cr(cr(new Li,zl,T8),zl,rN),Ns,nN)}function krn(e,t,n,i,s){var c,d;(!Zo(t)&&t.c.i.c==t.d.i.c||!pet(Zs(H(F(to,1),_e,8,0,[s.i.n,s.n,s.a])),n))&&!Zo(t)&&(t.c==s?Rk(t.a,0,new Vo(n)):or(t.a,new Vo(n)),i&&!Mf(e.a,n)&&(d=u(A(t,(Ue(),Is)),75),d||(d=new _c,Ee(t,Is,d)),c=new Vo(n),gi(d,c,d.c.b,d.c),Fi(e.a,c)))}function glt(e,t){var n,i,s,c;for(c=Vn(Ko(Ih,vh(Vn(Ko(t==null?0:Vr(t),Ph)),15))),n=c&e.b.length-1,s=null,i=e.b[n];i;s=i,i=i.a)if(i.d==c&&zd(i.i,t))return s?s.a=i.a:e.b[n]=i.a,UFe(u(Oa(i.c),604),u(Oa(i.f),604)),hT(u(Oa(i.b),227),u(Oa(i.e),227)),--e.f,++e.e,!0;return!1}function Crn(e){var t,n;for(n=new gn(wn(eo(e).a.Kc(),new j));$n(n);)if(t=u(xn(n),18),t.c.i.k!=(nn(),El))throw B(new N1(fY+cP(e)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function Srn(e,t,n){var i,s,c,d,h,b,m;if(s=vnt(e.Db&254),s==0)e.Eb=n;else{if(s==1)h=be(Ji,Bt,1,2,5,1),c=KV(e,t),c==0?(h[0]=n,h[1]=e.Eb):(h[0]=e.Eb,h[1]=n);else for(h=be(Ji,Bt,1,s+1,5,1),d=y0(e.Eb),i=2,b=0,m=0;i<=128;i<<=1)i==t?h[m++]=n:e.Db&i&&(h[m++]=d[b++]);e.Eb=h}e.Db|=t}function blt(e,t,n){var i,s,c,d;for(this.b=new Le,s=0,i=0,d=new N(e);d.a0&&(c=u(Ye(this.b,0),176),s+=c.o,i+=c.p),s*=2,i*=2,t>1?s=Wi(w.Math.ceil(s*t)):i=Wi(w.Math.ceil(i/t)),this.a=new the(s,i)}function wlt(e,t,n,i,s,c){var d,h,b,m,v,k,T,P,O,L,$,z;for(v=i,t.j&&t.o?(P=u(pn(e.f,t.A),60),L=P.d.c+P.d.b,--v):L=t.a.c+t.a.b,k=s,n.q&&n.o?(P=u(pn(e.f,n.C),60),m=P.d.c,++k):m=n.a.c,$=m-L,b=w.Math.max(2,k-v),h=$/b,O=L+h,T=v;T=0;d+=s?1:-1){for(h=t[d],b=i==(ze(),fn)?s?el(h,i):ha(el(h,i)):s?ha(el(h,i)):el(h,i),c&&(e.c[h.p]=b.gc()),k=b.Kc();k.Ob();)v=u(k.Pb(),12),e.d[v.p]=m++;zi(n,b)}}function vlt(e,t,n){var i,s,c,d,h,b,m,v;for(c=le(pe(e.b.Kc().Pb())),m=le(pe(yGt(t.b))),i=Nd(Eo(e.a),m-n),s=Nd(Eo(t.a),n-c),v=Or(i,s),Nd(v,1/(m-c)),this.a=v,this.b=new Le,h=!0,d=e.b.Kc(),d.Pb();d.Ob();)b=le(pe(d.Pb())),h&&b-n>GY&&(this.b.Fc(n),h=!1),this.b.Fc(b);h&&this.b.Fc(n)}function xrn(e){var t,n,i,s;if(Hin(e,e.n),e.d.c.length>0){for(u7(e.c);Q1e(e,u(D(new N(e.e.a)),125))>5,t&=31,i>=e.d)return e.e<0?(Vd(),Ept):(Vd(),N9);if(c=e.d-i,s=be(Bn,ur,28,c+1,15,1),gZt(s,c,e.a,i,t),e.e<0){for(n=0;n0&&e.a[n]<<32-t){for(n=0;n=0?!1:(n=s2((Nc(),_o),s,t),n?(i=n.Ik(),(i>1||i==-1)&&Gb(Ss(_o,n))!=3):!0)):!1}function Prn(e,t,n,i){var s,c,d,h,b;return h=Ds(u(re((!t.b&&(t.b=new jt(Tn,t,4,7)),t.b),0),84)),b=Ds(u(re((!t.c&&(t.c=new jt(Tn,t,5,8)),t.c),0),84)),ri(h)==ri(b)||zm(b,h)?null:(d=hI(t),d==n?i:(c=u(pn(e.a,d),10),c&&(s=c.e,s)?s:null))}function Mrn(e,t,n){var i,s,c,d,h;for(n.Ug("Longest path to source layering",1),e.a=t,h=e.a.a,e.b=be(Bn,ur,28,h.c.length,15,1),i=0,d=new N(h);d.a0&&(n[0]+=e.d,d-=n[0]),n[2]>0&&(n[2]+=e.d,d-=n[2]),c=w.Math.max(0,d),n[1]=w.Math.max(n[1],d),Kae(e,Ql,s.c+i.b+n[0]-(n[1]-d)/2,n),t==Ql&&(e.c.b=c,e.c.c=s.c+i.b+(c-d)/2)}function Mlt(){this.c=be(uo,ws,28,(ze(),H(F(ts,1),Sl,64,0,[nl,en,fn,Pn,rn])).length,15,1),this.b=be(uo,ws,28,H(F(ts,1),Sl,64,0,[nl,en,fn,Pn,rn]).length,15,1),this.a=be(uo,ws,28,H(F(ts,1),Sl,64,0,[nl,en,fn,Pn,rn]).length,15,1),Wse(this.c,ii),Wse(this.b,Hi),Wse(this.a,Hi)}function Dl(e,t,n){var i,s,c,d;if(t<=n?(s=t,c=n):(s=n,c=t),i=0,e.b==null)e.b=be(Bn,ur,28,2,15,1),e.b[0]=s,e.b[1]=c,e.c=!0;else{if(i=e.b.length,e.b[i-1]+1==s){e.b[i-1]=c;return}d=be(Bn,ur,28,i+2,15,1),Ol(e.b,0,d,0,i),e.b=d,e.b[i-1]>=s&&(e.c=!1,e.a=!1),e.b[i++]=s,e.b[i]=c,e.c||e2(e)}}function $rn(e,t,n){var i,s,c,d,h,b,m;for(m=t.d,e.a=new ql(m.c.length),e.c=new On,h=new N(m);h.a=0?e.Lh(m,!1,!0):dw(e,n,!1),61));e:for(c=k.Kc();c.Ob();){for(s=u(c.Pb(),58),v=0;v1;)nv(s,s.i-1);return i}function _lt(e,t){var n,i,s,c,d,h,b;for(n=new Ay,c=new N(e.b);c.ae.d[d.p]&&(n+=$ae(e.b,c),eg(e.a,Ae(c)));for(;!a7(e.a);)pfe(e.b,u(a4(e.a),17).a)}return n}function zrn(e){var t,n,i,s,c,d,h,b,m;for(e.a=new Ice,m=0,s=0,i=new N(e.i.b);i.ah.d&&(v=h.d+h.a+m));n.c.d=v,t.a.zc(n,t),b=w.Math.max(b,n.c.d+n.c.a)}return b}function cs(){cs=U,MN=new km("COMMENTS",0),ka=new km("EXTERNAL_PORTS",1),V9=new km("HYPEREDGES",2),ON=new km("HYPERNODES",3),D8=new km("NON_FREE_PORTS",4),P2=new km("NORTH_SOUTH_PORTS",5),q9=new km(ndt,6),$8=new km("CENTER_LABELS",7),j8=new km("END_LABELS",8),_N=new km("PARTITIONS",9)}function Krn(e,t,n,i,s){return i<0?(i=Zy(e,s,H(F(Je,1),_e,2,6,[dX,hX,pX,gX,z4,bX,wX,mX,vX,yX,kX,CX]),t),i<0&&(i=Zy(e,s,H(F(Je,1),_e,2,6,["Jan","Feb","Mar","Apr",z4,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),i<0?!1:(n.k=i,!0)):i>0?(n.k=i-1,!0):!1}function Urn(e,t,n,i,s){return i<0?(i=Zy(e,s,H(F(Je,1),_e,2,6,[dX,hX,pX,gX,z4,bX,wX,mX,vX,yX,kX,CX]),t),i<0&&(i=Zy(e,s,H(F(Je,1),_e,2,6,["Jan","Feb","Mar","Apr",z4,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),i<0?!1:(n.k=i,!0)):i>0?(n.k=i-1,!0):!1}function Grn(e,t,n,i,s,c){var d,h,b,m;if(h=32,i<0){if(t[0]>=e.length||(h=Lo(e,t[0]),h!=43&&h!=45)||(++t[0],i=J$(e,t),i<0))return!1;h==45&&(i=-i)}return h==32&&t[0]-n==2&&s.b==2&&(b=new TR,m=b.q.getFullYear()-gg+gg-80,d=m%100,c.a=i==d,i+=(m/100|0)*100+(i=0?cg(e):Q7(cg(J1(e)))),B9[t]=rA(nf(e,t),0)?cg(nf(e,t)):Q7(cg(J1(nf(e,t)))),e=Ko(e,5);for(;t=m&&(b=i);b&&(v=w.Math.max(v,b.a.o.a)),v>T&&(k=m,T=v)}return k}function Jrn(e){var t,n,i,s,c,d,h;for(c=new z1(u(qn(new ck),50)),h=Hi,n=new N(e.d);n.aPdt?Mi(b,e.b):i<=Pdt&&i>Mdt?Mi(b,e.d):i<=Mdt&&i>Odt?Mi(b,e.c):i<=Odt&&Mi(b,e.a),c=jlt(e,b,c);return s}function Dlt(e,t,n,i){var s,c,d,h,b,m;for(s=(i.c+i.a)/2,Au(t.j),or(t.j,s),Au(n.e),or(n.e,s),m=new rze,h=new N(e.f);h.a1,h&&(i=new Me(s,n.b),or(t.a,i)),dS(t.a,H(F(to,1),_e,8,0,[T,k]))}function kpe(e,t,n){var i,s;for(t=48;n--)Vx[n]=n-48<<24>>24;for(i=70;i>=65;i--)Vx[i]=i-65+10<<24>>24;for(s=102;s>=97;s--)Vx[s]=s-97+10<<24>>24;for(c=0;c<10;c++)iF[c]=48+c&Di;for(e=10;e<=15;e++)iF[e]=65+e-10&Di}function tin(e,t){t.Ug("Process graph bounds",1),Ee(e,(Wr(),cee),_T($W(Am(new xt(null,new Pt(e.b,16)),new cOe)))),Ee(e,uee,_T($W(Am(new xt(null,new Pt(e.b,16)),new uOe)))),Ee(e,T4e,_T(LW(Am(new xt(null,new Pt(e.b,16)),new aOe)))),Ee(e,I4e,_T(LW(Am(new xt(null,new Pt(e.b,16)),new fOe)))),t.Vg()}function nin(e){var t,n,i,s,c;s=u(A(e,(Ue(),J0)),21),c=u(A(e,YN),21),n=new Me(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new Vo(n),s.Hc((Iu(),Fv))&&(i=u(A(e,B8),8),c.Hc((du(),iC))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),t.a=w.Math.max(n.a,i.a),t.b=w.Math.max(n.b,i.b)),qe(Ve(A(e,RZ)))||Rsn(e,n,t)}function rin(e,t){var n,i,s,c;for(c=el(t,(ze(),Pn)).Kc();c.Ob();)i=u(c.Pb(),12),n=u(A(i,(Oe(),Zc)),10),n&&cf(Ja(Ya(Qa(Xa(new Pa,0),.1),e.i[t.p].d),e.i[n.p].a));for(s=el(t,en).Kc();s.Ob();)i=u(s.Pb(),12),n=u(A(i,(Oe(),Zc)),10),n&&cf(Ja(Ya(Qa(Xa(new Pa,0),.1),e.i[n.p].d),e.i[t.p].a))}function Eq(e){var t,n,i,s,c,d;if(!e.c){if(d=new xRe,t=Kx,c=t.a.zc(e,t),c==null){for(i=new hn(Pl(e));i.e!=i.i.gc();)n=u(mn(i),89),s=pj(n),te(s,90)&&mi(d,Eq(u(s,29))),Dn(d,n);t.a.Bc(e)!=null,t.a.gc()==0}QVt(d),Um(d),e.c=new Ty((u(re(me((Jp(),Wt).o),15),19),d.i),d.g),cu(e).b&=-33}return e.c}function Spe(e){var t;if(e.c!=10)throw B(new er(ir((Yn(),vD))));switch(t=e.a,t){case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw B(new er(ir((Yn(),va))))}return t}function zlt(e){var t,n,i,s,c;if(e.l==0&&e.m==0&&e.h==0)return"0";if(e.h==KP&&e.m==0&&e.l==0)return"-9223372036854775808";if(e.h>>19)return"-"+zlt(m5(e));for(n=e,i="";!(n.l==0&&n.m==0&&n.h==0);){if(s=tW(Ij),n=rge(n,s,!0),t=""+uze(yg),!(n.l==0&&n.m==0&&n.h==0))for(c=9-t.length;c>0;c--)t="0"+t;i=t+i}return i}function iin(e){var t,n,i,s,c,d,h;for(t=!1,n=0,s=new N(e.d.b);s.a=e.a||!o1e(t,n))return-1;if(Yk(u(i.Kb(t),20)))return 1;for(s=0,d=u(i.Kb(t),20).Kc();d.Ob();)if(c=u(d.Pb(),18),b=c.c.i==t?c.d.i:c.c.i,h=xpe(e,b,n,i),h==-1||(s=w.Math.max(s,h),s>e.c-1))return-1;return s+1}function Hlt(e,t){var n,i,s,c,d,h;if(fe(t)===fe(e))return!0;if(!te(t,15)||(i=u(t,15),h=e.gc(),i.gc()!=h))return!1;if(d=i.Kc(),e.Yi()){for(n=0;n0){if(e._j(),t!=null){for(c=0;c>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw B(new $d("Invalid hexadecimal"))}}function aj(){aj=U,cve=new ky("SPIRAL",0),ive=new ky("LINE_BY_LINE",1),ove=new ky("MANHATTAN",2),rve=new ky("JITTER",3),hQ=new ky("QUADRANTS_LINE_BY_LINE",4),lve=new ky("QUADRANTS_MANHATTAN",5),sve=new ky("QUADRANTS_JITTER",6),nve=new ky("COMBINE_LINE_BY_LINE_MANHATTAN",7),tve=new ky("COMBINE_JITTER_MANHATTAN",8)}function Ult(e,t,n,i){var s,c,d,h,b,m;for(b=YV(e,n),m=YV(t,n),s=!1;b&&m&&(i||tYt(b,m,n));)d=YV(b,n),h=YV(m,n),PI(t),PI(e),c=b.c,Jq(b,!1),Jq(m,!1),n?(Xm(t,m.p,c),t.p=m.p,Xm(e,b.p+1,c),e.p=b.p):(Xm(e,b.p,c),e.p=b.p,Xm(t,m.p+1,c),t.p=m.p),bo(b,null),bo(m,null),b=d,m=h,s=!0;return s}function Glt(e){switch(e.g){case 0:return new n$e;case 1:return new e$e;case 3:return new wHe;case 4:return new JPe;case 5:return new GGe;case 6:return new t$e;case 2:return new ZLe;case 7:return new VLe;case 8:return new XLe;default:throw B(new Qt("No implementation is available for the layerer "+(e.f!=null?e.f:""+e.g)))}}function ain(e,t,n,i){var s,c,d,h,b;for(s=!1,c=!1,h=new N(i.j);h.a=t.length)throw B(new ys("Greedy SwitchDecider: Free layer not in graph."));this.c=t[e],this.e=new JT(i),OW(this.e,this.c,(ze(),rn)),this.i=new JT(i),OW(this.i,this.c,fn),this.f=new cVe(this.c),this.a=!c&&s.i&&!s.s&&this.c[0].k==(nn(),Oi),this.a&&xZt(this,e,t.length)}function Vlt(e,t){var n,i,s,c,d,h;c=!e.B.Hc((du(),CO)),d=e.B.Hc(mte),e.a=new Ant(d,c,e.c),e.n&&nae(e.a.n,e.n),CK(e.g,(jf(),Ql),e.a),t||(i=new _S(1,c,e.c),i.n.a=e.k,f4(e.p,(ze(),en),i),s=new _S(1,c,e.c),s.n.d=e.k,f4(e.p,Pn,s),h=new _S(0,c,e.c),h.n.c=e.k,f4(e.p,rn,h),n=new _S(0,c,e.c),n.n.b=e.k,f4(e.p,fn,n))}function din(e){var t,n,i;switch(t=u(A(e.d,(Ue(),x1)),223),t.g){case 2:n=ean(e);break;case 3:n=(i=new Le,Ci(Ar(As(Qs(Qs(new xt(null,new Pt(e.d.b,16)),new lPe),new cPe),new uPe),new qIe),new IDe(i)),i);break;default:throw B(new ks("Compaction not supported for "+t+" edges."))}Cln(e,n),Po(new r0(e.g),new EDe(e))}function hin(e,t){var n,i,s,c,d,h,b;if(t.Ug("Process directions",1),n=u(A(e,(sl(),Kw)),88),n!=(ji(),vd))for(s=Ln(e.b,0);s.b!=s.d.c;){switch(i=u(_n(s),40),h=u(A(i,(Wr(),QM)),17).a,b=u(A(i,ZM),17).a,n.g){case 4:b*=-1;break;case 1:c=h,h=b,b=c;break;case 2:d=h,h=-b,b=d}Ee(i,QM,Ae(h)),Ee(i,ZM,Ae(b))}t.Vg()}function pin(e,t){var n;return n=new We,t&&js(n,u(pn(e.a,xO),96)),te(t,422)&&js(n,u(pn(e.a,EO),96)),te(t,366)?(js(n,u(pn(e.a,ms),96)),n):(te(t,84)&&js(n,u(pn(e.a,Tn),96)),te(t,207)?(js(n,u(pn(e.a,xr),96)),n):te(t,193)?(js(n,u(pn(e.a,ru),96)),n):(te(t,326)&&js(n,u(pn(e.a,Ti),96)),n))}function gin(e){var t,n,i,s,c,d,h,b;for(b=new EJe,h=new N(e.a);h.a0&&t=0)return!1;if(t.p=n.b,$e(n.e,t),s==(nn(),io)||s==Hl){for(d=new N(t.j);d.ae.d[h.p]&&(n+=$ae(e.b,c),eg(e.a,Ae(c)))):++d;for(n+=e.b.d*d;!a7(e.a);)pfe(e.b,u(a4(e.a),17).a)}return n}function rct(e){var t,n,i,s,c,d;return c=0,t=Aa(e),t.kk()&&(c|=4),e.Bb&zc&&(c|=2),te(e,102)?(n=u(e,19),s=is(n),n.Bb&wl&&(c|=32),s&&(Sn(Lm(s)),c|=8,d=s.t,(d>1||d==-1)&&(c|=16),s.Bb&wl&&(c|=64)),n.Bb&es&&(c|=gv),c|=af):te(t,469)?c|=512:(i=t.kk(),i&&i.i&1&&(c|=256)),e.Bb&512&&(c|=128),c}function Iin(e,t){var n;return e.f==_te?(n=Gb(Ss((Nc(),_o),t)),e.e?n==4&&t!=(j4(),S6)&&t!=(j4(),C6)&&t!=(j4(),Rte)&&t!=(j4(),Ate):n==2):e.d&&(e.d.Hc(t)||e.d.Hc(w4(Ss((Nc(),_o),t)))||e.d.Hc(s2((Nc(),_o),e.b,t)))?!0:e.f&&fpe((Nc(),e.f),cI(Ss(_o,t)))?(n=Gb(Ss(_o,t)),e.e?n==4:n==2):!1}function Pin(e){var t,n,i,s,c,d,h,b,m,v,k,T,P;for(T=-1,P=0,m=e,v=0,k=m.length;v0&&++P;++T}return P}function Min(e,t,n,i){var s,c,d,h,b,m,v,k;return d=u(Ie(n,(gr(),b6)),8),b=d.a,v=d.b+e,s=w.Math.atan2(v,b),s<0&&(s+=B0),s+=t,s>B0&&(s-=B0),h=u(Ie(i,b6),8),m=h.a,k=h.b+e,c=w.Math.atan2(k,m),c<0&&(c+=B0),c+=t,c>B0&&(c-=B0),Yf(),of(1e-10),w.Math.abs(s-c)<=1e-10||s==c||isNaN(s)&&isNaN(c)?0:sc?1:Rb(isNaN(s),isNaN(c))}function Pq(e){var t,n,i,s,c,d,h;for(h=new On,i=new N(e.a.b);i.a=e.o)throw B(new ose);h=t>>5,d=t&31,c=nf(1,Vn(nf(d,1))),s?e.n[n][h]=Rf(e.n[n][h],c):e.n[n][h]=Yi(e.n[n][h],nue(c)),c=nf(c,1),i?e.n[n][h]=Rf(e.n[n][h],c):e.n[n][h]=Yi(e.n[n][h],nue(c))}catch(b){throw b=li(b),te(b,333)?B(new ys(XX+e.o+"*"+e.p+YX+t+Xo+n+JX)):B(b)}}function Rin(e,t,n,i){var s,c,d,h,b,m,v,k,T;for(T=new z1(new YDe(e)),h=H(F(Lh,1),fp,10,0,[t,n]),b=0,m=h.length;b0&&(i=(!e.n&&(e.n=new Se(ms,e,1,7)),u(re(e.n,0),135)).a,!i||lr(lr((t.a+=' "',t),i),'"'))),lr(Tb(lr(Tb(lr(Tb(lr(Tb((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function ict(e){var t,n,i;return e.Db&64?lq(e):(t=new Ru(Rwe),n=e.k,n?lr(lr((t.a+=' "',t),n),'"'):(!e.n&&(e.n=new Se(ms,e,1,7)),e.n.i>0&&(i=(!e.n&&(e.n=new Se(ms,e,1,7)),u(re(e.n,0),135)).a,!i||lr(lr((t.a+=' "',t),i),'"'))),lr(Tb(lr(Tb(lr(Tb(lr(Tb((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function $in(e,t){var n,i,s,c,d;for(t==(yS(),JZ)&&wP(u($r(e.a,(Ym(),AM)),15)),s=u($r(e.a,(Ym(),AM)),15).Kc();s.Ob();)switch(i=u(s.Pb(),105),n=u(Ye(i.j,0),113).d.j,c=new Vc(i.j),Mi(c,new bPe),t.g){case 2:tq(e,c,n,(nw(),xg),1);break;case 1:case 0:d=knn(c),tq(e,new V1(c,0,d),n,(nw(),xg),0),tq(e,new V1(c,d,c.c.length),n,xg,1)}}function Oq(e,t){var n,i,s,c,d,h,b;if(t==null||t.length==0)return null;if(s=u($l(e.a,t),143),!s){for(i=(h=new Yh(e.b).a.vc().Kc(),new wm(h));i.a.Ob();)if(n=(c=u(i.a.Pb(),44),u(c.md(),143)),d=n.c,b=t.length,Et(d.substr(d.length-b,b),t)&&(t.length==d.length||Lo(d,d.length-t.length-1)==46)){if(s)return null;s=n}s&&Cs(e.a,t,s)}return s}function jin(e,t){var n,i,s,c;return n=new ak,i=u(Ks(As(new xt(null,new Pt(e.f,16)),n),Nm(new ge,new Ge,new Rn,new br,H(F(Ts,1),Te,108,0,[(Jc(),bv),Ws]))),21),s=i.gc(),i=u(Ks(As(new xt(null,new Pt(t.f,16)),n),Nm(new ge,new Ge,new Rn,new br,H(F(Ts,1),Te,108,0,[bv,Ws]))),21),c=i.gc(),ss.p?(Vi(c,Pn),c.d&&(h=c.o.b,t=c.a.b,c.a.b=h-t)):c.j==Pn&&s.p>e.p&&(Vi(c,en),c.d&&(h=c.o.b,t=c.a.b,c.a.b=-(h-t)));break}return s}function TP(e,t,n,i,s){var c,d,h,b,m,v,k;if(!(te(t,207)||te(t,366)||te(t,193)))throw B(new Qt("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return d=e.a/2,b=t.i+i-d,v=t.j+s-d,m=b+t.g+e.a,k=v+t.f+e.a,c=new _c,or(c,new Me(b,v)),or(c,new Me(b,k)),or(c,new Me(m,k)),or(c,new Me(m,v)),h=new mq(c),js(h,t),n&&vr(e.b,t,h),h}function U5(e,t,n){var i,s,c,d,h,b,m,v,k,T;for(c=new Me(t,n),v=new N(e.a);v.a1,h&&(i=new Me(s,n.b),or(t.a,i)),dS(t.a,H(F(to,1),_e,8,0,[T,k]))}function La(){La=U,rB=new Cm(eh,0),GM=new Cm("NIKOLOV",1),WM=new Cm("NIKOLOV_PIXEL",2),U3e=new Cm("NIKOLOV_IMPROVED",3),G3e=new Cm("NIKOLOV_IMPROVED_PIXEL",4),K3e=new Cm("DUMMYNODE_PERCENTAGE",5),W3e=new Cm("NODECOUNT_PERCENTAGE",6),iB=new Cm("NO_BOUNDARY",7),zw=new Cm("MODEL_ORDER_LEFT_TO_RIGHT",8),Av=new Cm("MODEL_ORDER_RIGHT_TO_LEFT",9)}function Win(e){var t,n,i,s,c;for(i=e.length,t=new f7,c=0;c=40,d&&Von(e),tln(e),xrn(e),n=Snt(e),i=0;n&&i0&&or(e.f,c)):(e.c[d]-=m+1,e.c[d]<=0&&e.a[d]>0&&or(e.e,c))))}function wct(e,t,n,i){var s,c,d,h,b,m,v;for(b=new Me(n,i),Xi(b,u(A(t,(Wr(),q8)),8)),v=Ln(t.b,0);v.b!=v.d.c;)m=u(_n(v),40),Or(m.e,b),or(e.b,m);for(h=u(Ks(hae(new xt(null,new Pt(t.a,16))),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[(Jc(),Ws)]))),15).Kc();h.Ob();){for(d=u(h.Pb(),65),c=Ln(d.a,0);c.b!=c.d.c;)s=u(_n(c),8),s.a+=b.a,s.b+=b.b;or(e.a,d)}}function Bpe(e,t){var n,i,s,c;if(0<(te(e,16)?u(e,16).gc():i1(e.Kc()))){if(s=t,1=0&&bc*2?(v=new FL(k),m=Lc(d)/xu(d),b=tX(v,t,new z3,n,i,s,m),Or(Of(v.e),b),k.c.length=0,c=0,Ft(k.c,v),Ft(k.c,d),c=Lc(v)*xu(v)+Lc(d)*xu(d)):(Ft(k.c,d),c+=Lc(d)*xu(d));return k}function vct(e,t){var n,i,s,c,d,h;if(h=u(A(t,(Ue(),yi)),101),h==(fo(),Bh)||h==Ul)for(s=new Me(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a).b,d=new N(e.a);d.an?t:n;m<=k;++m)m==n?h=i++:(c=s[m],v=O.am(c.Lk()),m==t&&(b=m==k&&!v?i-1:i),v&&++i);return T=u(PS(e,t,n),76),h!=b&&mk(e,new xI(e.e,7,d,Ae(h),P.md(),b)),T}}else return u(gq(e,t,n),76);return u(PS(e,t,n),76)}function fon(e,t){var n,i,s,c,d,h,b;for(t.Ug("Port order processing",1),b=u(A(e,(Ue(),C3e)),430),i=new N(e.b);i.a=0&&(h=sYt(e,d),!(h&&(m<22?b.l|=1<>>1,d.m=v>>>1|(k&1)<<21,d.l=T>>>1|(v&1)<<21,--m;return n&&WW(b),c&&(i?(yg=m5(e),s&&(yg=itt(yg,(t5(),mme)))):yg=nc(e.l,e.m,e.h)),b}function pon(e,t){var n,i,s,c,d,h,b,m,v,k;for(m=e.e[t.c.p][t.p]+1,b=t.c.a.c.length+1,h=new N(e.a);h.a0&&(Zt(0,e.length),e.charCodeAt(0)==45||(Zt(0,e.length),e.charCodeAt(0)==43))?1:0,i=d;in)throw B(new $d(mw+e+'"'));return h}function gon(e){var t,n,i,s,c,d,h;for(d=new Zr,c=new N(e.a);c.a1)&&t==1&&u(e.a[e.b],10).k==(nn(),El)?N4(u(e.a[e.b],10),(Fu(),Dh)):i&&(!n||(e.c-e.b&e.a.length-1)>1)&&t==1&&u(e.a[e.c-1&e.a.length-1],10).k==(nn(),El)?N4(u(e.a[e.c-1&e.a.length-1],10),(Fu(),Rg)):(e.c-e.b&e.a.length-1)==2?(N4(u(vS(e),10),(Fu(),Dh)),N4(u(vS(e),10),Rg)):Gtn(e,s),Aae(e)}function mon(e,t,n){var i,s,c,d,h;for(c=0,s=new hn((!e.a&&(e.a=new Se(xr,e,10,11)),e.a));s.e!=s.i.gc();)i=u(mn(s),27),d="",(!i.n&&(i.n=new Se(ms,i,1,7)),i.n).i==0||(d=u(re((!i.n&&(i.n=new Se(ms,i,1,7)),i.n),0),135).a),h=new VW(c++,t,d),js(h,i),Ee(h,(Wr(),bx),i),h.e.b=i.j+i.f/2,h.f.a=w.Math.max(i.g,1),h.e.a=i.i+i.g/2,h.f.b=w.Math.max(i.f,1),or(t.b,h),Jl(n.f,i,h)}function von(e){var t,n,i,s,c;i=u(A(e,(Oe(),jr)),27),c=u(Ie(i,(Ue(),J0)),181).Hc((Iu(),sb)),e.e||(s=u(A(e,Kl),21),t=new Me(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),s.Hc((cs(),ka))?(Br(i,yi,(fo(),Ul)),gw(i,t.a,t.b,!1,!0)):qe(Ve(Ie(i,RZ)))||gw(i,t.a,t.b,!0,!0)),c?Br(i,J0,ht(sb)):Br(i,J0,(n=u(Pf(Dx),9),new ra(n,u(ef(n,n.length),9),0)))}function Fpe(e,t,n){var i,s,c,d;if(t[0]>=e.length)return n.o=0,!0;switch(Lo(e,t[0])){case 43:s=1;break;case 45:s=-1;break;default:return n.o=0,!0}if(++t[0],c=t[0],d=J$(e,t),d==0&&t[0]==c)return!1;if(t[0]h&&(h=s,v.c.length=0),s==h&&$e(v,new Gi(n.c.i,n)));Ot(),Mi(v,e.c),Nb(e.b,b.p,v)}}function Son(e,t){var n,i,s,c,d,h,b,m,v;for(d=new N(t.b);d.ah&&(h=s,v.c.length=0),s==h&&$e(v,new Gi(n.d.i,n)));Ot(),Mi(v,e.c),Nb(e.f,b.p,v)}}function xon(e,t){var n,i,s,c,d,h,b,m;if(m=Ve(A(t,(sl(),jyt))),m==null||(sn(m),m)){for(Yen(e,t),s=new Le,b=Ln(t.b,0);b.b!=b.d.c;)d=u(_n(b),40),n=I1e(e,d,null),n&&(js(n,t),Ft(s.c,n));if(e.a=null,e.b=null,s.c.length>1)for(i=new N(s);i.a=0&&h!=n&&(c=new ro(e,1,h,d,null),i?i.nj(c):i=c),n>=0&&(c=new ro(e,1,n,h==n?d:null,t),i?i.nj(c):i=c)),i}function Cct(e){var t,n,i;if(e.b==null){if(i=new B1,e.i!=null&&(ps(i,e.i),i.a+=":"),e.f&256){for(e.f&256&&e.a!=null&&(KNt(e.i)||(i.a+="//"),ps(i,e.a)),e.d!=null&&(i.a+="/",ps(i,e.d)),e.f&16&&(i.a+="/"),t=0,n=e.j.length;tT?!1:(k=(b=t9(i,T,!1),b.a),v+h+k<=t.b&&(EI(n,c-n.s),n.c=!0,EI(i,c-n.s),lP(i,n.s,n.t+n.d+h),i.k=!0,qfe(n.q,i),P=!0,s&&(GL(t,i),i.j=t,e.c.length>d&&(aP((_t(d,e.c.length),u(e.c[d],186)),i),(_t(d,e.c.length),u(e.c[d],186)).a.c.length==0&&X1(e,d)))),P)}function _on(e,t){var n,i,s,c,d,h;if(t.Ug("Partition midprocessing",1),s=new qb,Ci(Ar(new xt(null,new Pt(e.a,16)),new VTe),new pDe(s)),s.d!=0){for(h=u(Ks(bae((c=s.i,new xt(null,(c||(s.i=new Ly(s,s.c))).Nc()))),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[(Jc(),Ws)]))),15),i=h.Kc(),n=u(i.Pb(),17);i.Ob();)d=u(i.Pb(),17),xnn(u($r(s,n),21),u($r(s,d),21)),n=d;t.Vg()}}function Ect(e,t,n){var i,s,c,d,h,b,m,v;if(t.p==0){for(t.p=1,d=n,d||(s=new Le,c=(i=u(Pf(ts),9),new ra(i,u(ef(i,i.length),9),0)),d=new Gi(s,c)),u(d.a,15).Fc(t),t.k==(nn(),Oi)&&u(d.b,21).Fc(u(A(t,(Oe(),fl)),64)),b=new N(t.j);b.a0){if(s=u(e.Ab.g,2033),t==null){for(c=0;cn.s&&hd)return ze(),fn;break;case 4:case 3:if(v<0)return ze(),en;if(v+n>c)return ze(),Pn}return b=(m+h/2)/d,i=(v+n/2)/c,b+i<=1&&b-i<=0?(ze(),rn):b+i>=1&&b-i>=0?(ze(),fn):i<.5?(ze(),en):(ze(),Pn)}function jon(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L;for(n=!1,v=le(pe(A(t,(Ue(),Fw)))),O=pg*v,s=new N(t.b);s.ab+O&&(L=k.g+T.g,T.a=(T.g*T.a+k.g*k.a)/L,T.g=L,k.f=T,n=!0)),c=h,k=T;return n}function Mct(e,t,n,i,s,c,d){var h,b,m,v,k,T;for(T=new e4,m=t.Kc();m.Ob();)for(h=u(m.Pb(),853),k=new N(h.Rf());k.a0?h.a?(m=h.b.Mf().b,s>m&&(e.v||h.c.d.c.length==1?(d=(s-m)/2,h.d.d=d,h.d.a=d):(n=u(Ye(h.c.d,0),187).Mf().b,i=(n-m)/2,h.d.d=w.Math.max(0,i),h.d.a=s-i-m))):h.d.a=e.t+s:q7(e.u)&&(c=u1e(h.b),c.d<0&&(h.d.d=-c.d),c.d+c.a>h.b.Mf().b&&(h.d.a=c.d+c.a-h.b.Mf().b))}function uf(){uf=U,n6=new go((gr(),hO),Ae(1)),JD=new go(ib,80),c0t=new go(Jke,5),Qgt=new go(G2,l8),s0t=new go(hte,Ae(1)),l0t=new go(pte,(Gt(),!0)),Eve=new Ab(50),i0t=new go(kp,Eve),Cve=fO,Tve=Mx,Zgt=new go(rte,!1),xve=dO,n0t=Dv,r0t=_g,t0t=rb,e0t=X2,o0t=Nv,Sve=(v1e(),Ggt),EQ=Xgt,YD=Ugt,xQ=Wgt,Ive=qgt,f0t=Z8,d0t=$B,a0t=pO,u0t=LB,Pve=(I4(),zv),new go(m6,Pve)}function Bon(e,t){var n;switch(AI(e)){case 6:return lo(t);case 7:return xm(t);case 8:return Sm(t);case 3:return Array.isArray(t)&&(n=AI(t),!(n>=14&&n<=16));case 11:return t!=null&&typeof t===oX;case 12:return t!=null&&(typeof t===jP||typeof t==oX);case 0:return OV(t,e.__elementTypeId$);case 2:return aG(t)&&t.Tm!==xe;case 1:return aG(t)&&t.Tm!==xe||OV(t,e.__elementTypeId$);default:return!0}}function Fon(e){var t,n,i,s;i=e.o,Im(),e.A.dc()||Rr(e.A,fve)?s=i.a:(e.D?s=w.Math.max(i.a,HS(e.f)):s=HS(e.f),e.A.Hc((Iu(),yO))&&!e.B.Hc((du(),Nx))&&(s=w.Math.max(s,HS(u(gs(e.p,(ze(),en)),252))),s=w.Math.max(s,HS(u(gs(e.p,Pn),252)))),t=Uet(e),t&&(s=w.Math.max(s,t.a))),qe(Ve(e.e.Tf().of((gr(),Dv))))?i.a=w.Math.max(i.a,s):i.a=s,n=e.f.i,n.c=0,n.b=s,Dq(e.f)}function Oct(e,t){var n,i,s,c;return i=w.Math.min(w.Math.abs(e.c-(t.c+t.b)),w.Math.abs(e.c+e.b-t.c)),c=w.Math.min(w.Math.abs(e.d-(t.d+t.a)),w.Math.abs(e.d+e.a-t.d)),n=w.Math.abs(e.c+e.b/2-(t.c+t.b/2)),n>e.b/2+t.b/2||(s=w.Math.abs(e.d+e.a/2-(t.d+t.a/2)),s>e.a/2+t.a/2)?1:n==0&&s==0?0:n==0?c/s+1:s==0?i/n+1:w.Math.min(i/n,c/s)+1}function zon(e,t){var n,i,s,c,d,h,b;for(c=0,h=0,b=0,s=new N(e.f.e);s.a0&&e.d!=(aS(),PQ)&&(h+=d*(i.d.a+e.a[t.a][i.a]*(t.d.a-i.d.a)/n)),n>0&&e.d!=(aS(),TQ)&&(b+=d*(i.d.b+e.a[t.a][i.a]*(t.d.b-i.d.b)/n)));switch(e.d.g){case 1:return new Me(h/c,t.d.b);case 2:return new Me(t.d.a,b/c);default:return new Me(h/c,b/c)}}function _ct(e){var t,n,i,s,c,d;for(n=(!e.a&&(e.a=new Ai(Yu,e,5)),e.a).i+2,d=new ql(n),$e(d,new Me(e.j,e.k)),Ci(new xt(null,(!e.a&&(e.a=new Ai(Yu,e,5)),new Pt(e.a,16))),new FNe(d)),$e(d,new Me(e.b,e.c)),t=1;t0&&(GI(b,!1,(ji(),Ps)),GI(b,!0,Bs)),ic(t.g,new KHe(e,n)),vr(e.g,t,n)}function Lct(){Lct=U;var e;for(Tme=H(F(Bn,1),ur,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),eQ=be(Bn,ur,28,37,15,1),Cpt=H(F(Bn,1),ur,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),Ime=be(Hg,RX,28,37,14,1),e=2;e<=36;e++)eQ[e]=Wi(w.Math.pow(e,Tme[e])),Ime[e]=dP(FP,eQ[e])}function Hon(e){var t;if((!e.a&&(e.a=new Se(ei,e,6,6)),e.a).i!=1)throw B(new Qt(cht+(!e.a&&(e.a=new Se(ei,e,6,6)),e.a).i));return t=new _c,KI(u(re((!e.b&&(e.b=new jt(Tn,e,4,7)),e.b),0),84))&&vo(t,Cat(e,KI(u(re((!e.b&&(e.b=new jt(Tn,e,4,7)),e.b),0),84)),!1)),KI(u(re((!e.c&&(e.c=new jt(Tn,e,5,8)),e.c),0),84))&&vo(t,Cat(e,KI(u(re((!e.c&&(e.c=new jt(Tn,e,5,8)),e.c),0),84)),!0)),t}function $ct(e,t){var n,i,s,c,d;for(t.d?s=e.a.c==(Hd(),Hw)?eo(t.b):Pi(t.b):s=e.a.c==(Hd(),mp)?eo(t.b):Pi(t.b),c=!1,i=new gn(wn(s.a.Kc(),new j));$n(i);)if(n=u(xn(i),18),d=qe(e.a.f[e.a.g[t.b.p].p]),!(!d&&!Zo(n)&&n.c.i.c==n.d.i.c)&&!(qe(e.a.n[e.a.g[t.b.p].p])||qe(e.a.n[e.a.g[t.b.p].p]))&&(c=!0,Mf(e.b,e.a.g[HXt(n,t.b).p])))return t.c=!0,t.a=n,t;return t.c=c,t.a=null,t}function Hpe(e,t,n){var i,s,c,d,h,b,m;if(i=n.gc(),i==0)return!1;if(e.Pj())if(b=e.Qj(),Jde(e,t,n),d=i==1?e.Ij(3,null,n.Kc().Pb(),t,b):e.Ij(5,null,n,t,b),e.Mj()){for(h=i<100?null:new Kp(i),c=t+i,s=t;s0){for(d=0;d>16==-15&&e.Cb.Yh()&&pW(new uW(e.Cb,9,13,n,e.c,sp(uu(u(e.Cb,62)),e))):te(e.Cb,90)&&e.Db>>16==-23&&e.Cb.Yh()&&(t=e.c,te(t,90)||(t=(Mt(),Va)),te(n,90)||(n=(Mt(),Va)),pW(new uW(e.Cb,9,10,n,t,sp(Pl(u(e.Cb,29)),e)))))),e.c}function Gon(e,t,n){var i,s,c,d,h,b,m,v,k;for(n.Ug("Hyperedge merging",1),gtn(e,t),b=new wo(t.b,0);b.b0,h=m$(t,c),tce(n?h.b:h.g,t),Gy(h).c.length==1&&gi(i,h,i.c.b,i.c),s=new Gi(c,t),eg(e.o,s),vc(e.e.a,c))}function Hct(e,t){var n,i,s,c,d,h,b;return i=w.Math.abs(WA(e.b).a-WA(t.b).a),h=w.Math.abs(WA(e.b).b-WA(t.b).b),s=0,b=0,n=1,d=1,i>e.b.b/2+t.b.b/2&&(s=w.Math.min(w.Math.abs(e.b.c-(t.b.c+t.b.b)),w.Math.abs(e.b.c+e.b.b-t.b.c)),n=1-s/i),h>e.b.a/2+t.b.a/2&&(b=w.Math.min(w.Math.abs(e.b.d-(t.b.d+t.b.a)),w.Math.abs(e.b.d+e.b.a-t.b.d)),d=1-b/h),c=w.Math.min(n,d),(1-c)*w.Math.sqrt(i*i+h*h)}function qon(e){var t,n,i,s;for(eX(e,e.e,e.f,(Xb(),Mg),!0,e.c,e.i),eX(e,e.e,e.f,Mg,!1,e.c,e.i),eX(e,e.e,e.f,B2,!0,e.c,e.i),eX(e,e.e,e.f,B2,!1,e.c,e.i),Uon(e,e.c,e.e,e.f,e.i),i=new wo(e.i,0);i.b=65;n--)xd[n]=n-65<<24>>24;for(i=122;i>=97;i--)xd[i]=i-97+26<<24>>24;for(s=57;s>=48;s--)xd[s]=s-48+52<<24>>24;for(xd[43]=62,xd[47]=63,c=0;c<=25;c++)Pp[c]=65+c&Di;for(d=26,b=0;d<=51;++d,b++)Pp[d]=97+b&Di;for(e=52,h=0;e<=61;++e,h++)Pp[e]=48+h&Di;Pp[62]=43,Pp[63]=47}function Kct(e,t){var n,i,s,c,d,h;return s=Kfe(e),h=Kfe(t),s==h?e.e==t.e&&e.a<54&&t.a<54?e.ft.f?1:0:(i=e.e-t.e,n=(e.d>0?e.d:w.Math.floor((e.a-1)*Yat)+1)-(t.d>0?t.d:w.Math.floor((t.a-1)*Yat)+1),n>i+1?s:n0&&(d=By(d,eut(i))),Znt(c,d))):sm&&(T=0,P+=b+t,b=0),U5(d,T,P),n=w.Math.max(n,T+v.a),b=w.Math.max(b,v.b),T+=v.a+t;return new Me(n+t,P+b+t)}function Wpe(e,t){var n,i,s,c,d,h,b;if(!Qf(e))throw B(new ks(lht));if(i=Qf(e),c=i.g,s=i.f,c<=0&&s<=0)return ze(),nl;switch(h=e.i,b=e.j,t.g){case 2:case 1:if(h<0)return ze(),rn;if(h+e.g>c)return ze(),fn;break;case 4:case 3:if(b<0)return ze(),en;if(b+e.f>s)return ze(),Pn}return d=(h+e.g/2)/c,n=(b+e.f/2)/s,d+n<=1&&d-n<=0?(ze(),rn):d+n>=1&&d-n>=0?(ze(),fn):n<.5?(ze(),en):(ze(),Pn)}function Jon(e,t,n,i,s){var c,d;if(c=Ho(Yi(t[0],us),Yi(i[0],us)),e[0]=Vn(c),c=Bb(c,32),n>=s){for(d=1;d0&&(s.b[d++]=0,s.b[d++]=c.b[0]-1),t=1;t0&&(eK(b,b.d-s.d),s.c==(Af(),Pg)&&$Mt(b,b.a-s.d),b.d<=0&&b.i>0&&gi(t,b,t.c.b,t.c)));for(c=new N(e.f);c.a0&&(iR(h,h.i-s.d),s.c==(Af(),Pg)&&jMt(h,h.b-s.d),h.i<=0&&h.d>0&&gi(n,h,n.c.b,n.c)))}function esn(e,t,n,i,s){var c,d,h,b,m,v,k,T,P;for(Ot(),Mi(e,new eRe),d=eI(e),P=new Le,T=new Le,h=null,b=0;d.b!=0;)c=u(d.b==0?null:(yn(d.b!=0),ua(d,d.a.a)),163),!h||Lc(h)*xu(h)/21&&(b>Lc(h)*xu(h)/2||d.b==0)&&(k=new FL(T),v=Lc(h)/xu(h),m=tX(k,t,new z3,n,i,s,v),Or(Of(k.e),m),h=k,Ft(P.c,k),b=0,T.c.length=0));return zi(P,T),P}function Ol(e,t,n,i,s){Qh();var c,d,h,b,m,v,k;if(jue(e,"src"),jue(n,"dest"),k=Tu(e),b=Tu(n),tue((k.i&4)!=0,"srcType is not an array"),tue((b.i&4)!=0,"destType is not an array"),v=k.c,d=b.c,tue(v.i&1?v==d:(d.i&1)==0,"Array types don't match"),FGt(e,t,n,i,s),!(v.i&1)&&k!=b)if(m=y0(e),c=y0(n),fe(e)===fe(n)&&ti;)pi(c,h,m[--t]);else for(h=i+s;i0),i.a.Xb(i.c=--i.b),k>T+b&&Eu(i);for(d=new N(P);d.a0),i.a.Xb(i.c=--i.b)}}function nsn(){Ir();var e,t,n,i,s,c;if($te)return $te;for(e=new $u(4),ov(e,hg(zJ,!0)),i9(e,hg("M",!0)),i9(e,hg("C",!0)),c=new $u(4),i=0;i<11;i++)Dl(c,i,i);return t=new $u(4),ov(t,hg("M",!0)),Dl(t,4448,4607),Dl(t,65438,65439),s=new j7(2),R0(s,e),R0(s,Xx),n=new j7(2),n.Jm(jA(c,hg("L",!0))),n.Jm(t),n=new jm(3,n),n=new $ue(s,n),$te=n,$te}function iv(e,t){var n,i,s,c,d,h,b,m;for(n=new RegExp(t,"g"),b=be(Je,_e,2,0,6,1),i=0,m=e,c=null;;)if(h=n.exec(m),h==null||m==""){b[i]=m;break}else d=h.index,b[i]=(mo(0,d,m.length),m.substr(0,d)),m=oa(m,d+h[0].length,m.length),n.lastIndex=0,c==m&&(b[i]=(mo(0,1,m.length),m.substr(0,1)),m=(Zt(1,m.length+1),m.substr(1))),c=m,++i;if(e.length>0){for(s=b.length;s>0&&b[s-1]=="";)--s;s0&&(k-=i[0]+e.c,i[0]+=e.c),i[2]>0&&(k-=i[2]+e.c),i[1]=w.Math.max(i[1],k),FA(e.a[1],n.c+t.b+i[0]-(i[1]-k)/2,i[1]);for(c=e.a,h=0,m=c.length;h0?(e.n.c.length-1)*e.i:0,i=new N(e.n);i.a1)for(i=Ln(s,0);i.b!=i.d.c;)for(n=u(_n(i),235),c=0,b=new N(n.e);b.a0&&(t[0]+=e.c,k-=t[0]),t[2]>0&&(k-=t[2]+e.c),t[1]=w.Math.max(t[1],k),zA(e.a[1],i.d+n.d+t[0]-(t[1]-k)/2,t[1]);else for(O=i.d+n.d,P=i.a-n.d-n.a,d=e.a,b=0,v=d.length;b0||sw(s.b.d,e.b.d+e.b.a)==0&&i.b<0||sw(s.b.d+s.b.a,e.b.d)==0&&i.b>0){h=0;break}}else h=w.Math.min(h,Hot(e,s,i));h=w.Math.min(h,Vct(e,c,h,i))}return h}function OP(e,t){var n,i,s,c,d,h,b;if(e.b<2)throw B(new Qt("The vector chain must contain at least a source and a target point."));for(s=(yn(e.b!=0),u(e.a.a.c,8)),zT(t,s.a,s.b),b=new n4((!t.a&&(t.a=new Ai(Yu,t,5)),t.a)),d=Ln(e,1);d.a=0&&c!=n))throw B(new Qt(fM));for(s=0,b=0;ble(Jf(d.g,d.d[0]).a)?(yn(b.b>0),b.a.Xb(b.c=--b.b),Pm(b,d),s=!0):h.e&&h.e.gc()>0&&(c=(!h.e&&(h.e=new Le),h.e).Mc(t),m=(!h.e&&(h.e=new Le),h.e).Mc(n),(c||m)&&((!h.e&&(h.e=new Le),h.e).Fc(d),++d.c));s||Ft(i.c,d)}function usn(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z;return k=e.a.i+e.a.g/2,T=e.a.i+e.a.g/2,O=t.i+t.g/2,$=t.j+t.f/2,h=new Me(O,$),m=u(Ie(t,(gr(),b6)),8),m.a=m.a+k,m.b=m.b+T,c=(h.b-m.b)/(h.a-m.a),i=h.b-c*h.a,L=n.i+n.g/2,z=n.j+n.f/2,b=new Me(L,z),v=u(Ie(n,b6),8),v.a=v.a+k,v.b=v.b+T,d=(b.b-v.b)/(b.a-v.a),s=b.b-d*b.a,P=(i-s)/(d-c),m.a>>0,"0"+t.toString(16)),i="\\x"+oa(n,n.length-2,n.length)):e>=es?(n=(t=e>>>0,"0"+t.toString(16)),i="\\v"+oa(n,n.length-6,n.length)):i=""+String.fromCharCode(e&Di)}return i}function Jct(e){var t,n,i;if(Iy(u(A(e,(Ue(),yi)),101)))for(n=new N(e.j);n.a=t.o&&n.f<=t.f||t.a*.5<=n.f&&t.a*1.5>=n.f){if(d=u(Ye(t.n,t.n.c.length-1),209),d.e+d.d+n.g+s<=i&&(c=u(Ye(t.n,t.n.c.length-1),209),c.f-e.f+n.f<=e.b||e.a.c.length==1))return Kde(t,n),!0;if(t.s+n.g<=i&&(t.t+t.d+n.f+s<=e.b||e.a.c.length==1))return $e(t.b,n),h=u(Ye(t.n,t.n.c.length-1),209),$e(t.n,new aL(t.s,h.f+h.a+t.i,t.i)),She(u(Ye(t.n,t.n.c.length-1),209),n),Gct(t,n),!0}return!1}function Zct(e,t,n){var i,s,c,d;return e.Pj()?(s=null,c=e.Qj(),i=e.Ij(1,d=wW(e,t,n),n,t,c),e.Mj()&&!(e.Yi()&&d!=null?Rr(d,n):fe(d)===fe(n))?(d!=null&&(s=e.Oj(d,s)),s=e.Nj(n,s),e.Tj()&&(s=e.Wj(d,n,s)),s?(s.nj(i),s.oj()):e.Jj(i)):(e.Tj()&&(s=e.Wj(d,n,s)),s?(s.nj(i),s.oj()):e.Jj(i)),d):(d=wW(e,t,n),e.Mj()&&!(e.Yi()&&d!=null?Rr(d,n):fe(d)===fe(n))&&(s=null,d!=null&&(s=e.Oj(d,null)),s=e.Nj(n,s),s&&s.oj()),d)}function bsn(e,t){var n,i,s,c,d;if(t.Ug("Path-Like Graph Wrapping",1),e.b.c.length==0){t.Vg();return}if(s=new Z1e(e),d=(s.i==null&&(s.i=Ufe(s,new toe)),le(s.i)*s.f),n=d/(s.i==null&&(s.i=Ufe(s,new toe)),le(s.i)),s.b>n){t.Vg();return}switch(u(A(e,(Ue(),DZ)),351).g){case 2:c=new roe;break;case 0:c=new eoe;break;default:c=new ioe}if(i=c.og(e,s),!c.pg())switch(u(A(e,QN),352).g){case 2:i=Kot(s,i);break;case 1:i=Lit(s,i)}fln(e,s,i),t.Vg()}function QS(e,t){var n,i,s,c,d,h,b,m;t%=24,e.q.getHours()!=t&&(i=new w.Date(e.q.getTime()),i.setDate(i.getDate()+1),h=e.q.getTimezoneOffset()-i.getTimezoneOffset(),h>0&&(b=h/60|0,m=h%60,s=e.q.getDate(),n=e.q.getHours(),n+b>=24&&++s,c=new w.Date(e.q.getFullYear(),e.q.getMonth(),s,t+b,e.q.getMinutes()+m,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(c.getTime()))),d=e.q.getTime(),e.q.setTime(d+36e5),e.q.getHours()!=t&&e.q.setTime(d)}function wsn(e,t){var n,i,s,c;if(OFt(e.d,e.e),e.c.a.$b(),le(pe(A(t.j,(Ue(),FN))))!=0||le(pe(A(t.j,FN)))!=0)for(n=d2,fe(A(t.j,$h))!==fe((Gd(),wp))&&Ee(t.j,(Oe(),Eg),(Gt(),!0)),c=u(A(t.j,ix),17).a,s=0;ss&&++m,$e(d,(_t(h+m,t.c.length),u(t.c[h+m],17))),b+=(_t(h+m,t.c.length),u(t.c[h+m],17)).a-i,++n;n=$&&e.e[b.p]>O*e.b||ne>=n*$)&&(Ft(T.c,h),h=new Le,vo(d,c),c.a.$b(),m-=v,P=w.Math.max(P,m*e.b+L),m+=ne,J=ne,ne=0,v=0,L=0);return new Gi(P,T)}function Bq(e){var t,n,i,s,c,d,h;if(!e.d){if(h=new TRe,t=Kx,c=t.a.zc(e,t),c==null){for(i=new hn(Ls(e));i.e!=i.i.gc();)n=u(mn(i),29),mi(h,Bq(n));t.a.Bc(e)!=null,t.a.gc()==0}for(d=h.i,s=(!e.q&&(e.q=new Se(Ga,e,11,10)),new hn(e.q));s.e!=s.i.gc();++d)u(mn(s),411);mi(h,(!e.q&&(e.q=new Se(Ga,e,11,10)),e.q)),Um(h),e.d=new Ty((u(re(me((Jp(),Wt).o),9),19),h.i),h.g),e.e=u(h.g,688),e.e==null&&(e.e=n6t),cu(e).b&=-17}return e.d}function V5(e,t,n,i){var s,c,d,h,b,m;if(m=cc(e.e.Dh(),t),b=0,s=u(e.g,124),rs(),u(t,69).xk()){for(d=0;d1||O==-1)if(k=u(L,71),T=u(v,71),k.dc())T.$b();else for(d=!!is(t),c=0,h=e.a?k.Kc():k.Ii();h.Ob();)m=u(h.Pb(),58),s=u(id(e,m),58),s?(d?(b=T.dd(s),b==-1?T.Gi(c,s):c!=b&&T.Ui(c,s)):T.Gi(c,s),++c):e.b&&!d&&(T.Gi(c,m),++c);else L==null?v.Wb(null):(s=id(e,L),s==null?e.b&&!is(t)&&v.Wb(L):v.Wb(s))}function Csn(e,t){var n,i,s,c,d,h,b,m;for(n=new fTe,s=new gn(wn(eo(t).a.Kc(),new j));$n(s);)if(i=u(xn(s),18),!Zo(i)&&(h=i.c.i,o1e(h,tN))){if(m=xpe(e,h,tN,eN),m==-1)continue;n.b=w.Math.max(n.b,m),!n.a&&(n.a=new Le),$e(n.a,h)}for(d=new gn(wn(Pi(t).a.Kc(),new j));$n(d);)if(c=u(xn(d),18),!Zo(c)&&(b=c.d.i,o1e(b,eN))){if(m=xpe(e,b,eN,tN),m==-1)continue;n.d=w.Math.max(n.d,m),!n.c&&(n.c=new Le),$e(n.c,b)}return n}function Ssn(e,t,n,i){var s,c,d,h,b,m,v;if(n.d.i!=t.i){for(s=new g1(e),n0(s,(nn(),io)),Ee(s,(Oe(),jr),n),Ee(s,(Ue(),yi),(fo(),Ul)),Ft(i.c,s),d=new Ml,Js(d,s),Vi(d,(ze(),rn)),h=new Ml,Js(h,s),Vi(h,fn),v=n.d,ao(n,d),c=new Vb,js(c,n),Ee(c,Is,null),zo(c,h),ao(c,v),m=new wo(n.b,0);m.b1e6)throw B(new wR("power of ten too big"));if(e<=Mr)return v4(kP(e6[1],t),t);for(i=kP(e6[1],Mr),s=i,n=bl(e-Mr),t=Wi(e%Mr);kl(n,Mr)>0;)s=By(s,i),n=Ra(n,Mr);for(s=By(s,kP(e6[1],t)),s=v4(s,Mr),n=bl(e-Mr);kl(n,Mr)>0;)s=v4(s,Mr),n=Ra(n,Mr);return s=v4(s,t),s}function tut(e){var t,n,i,s,c,d,h,b,m,v;for(b=new N(e.a);b.am&&i>m)v=h,m=le(t.p[h.p])+le(t.d[h.p])+h.o.b+h.d.a;else{s=!1,n._g()&&n.bh("bk node placement breaks on "+h+" which should have been after "+v);break}if(!s)break}return n._g()&&n.bh(t+" is feasible: "+s),s}function Ype(e,t,n,i){var s,c,d,h,b,m,v,k,T;if(c=new g1(e),n0(c,(nn(),Hl)),Ee(c,(Ue(),yi),(fo(),Ul)),s=0,t){for(d=new Ml,Ee(d,(Oe(),jr),t),Ee(c,jr,t.i),Vi(d,(ze(),rn)),Js(d,c),T=Kd(t.e),m=T,v=0,k=m.length;v0){if(s<0&&v.a&&(s=b,c=m[0],i=0),s>=0){if(h=v.b,b==s&&(h-=i++,h==0))return 0;if(!oat(t,m,v,h,d)){b=s-1,m[0]=c;continue}}else if(s=-1,!oat(t,m,v,0,d))return 0}else{if(s=-1,Lo(v.c,0)==32){if(k=m[0],iZe(t,m),m[0]>k)continue}else if(fBt(t,v.c,m[0])){m[0]+=v.c.length;continue}return 0}return hun(d,n)?m[0]:0}function Msn(e,t,n){var i,s,c,d,h,b,m,v,k,T;for(v=new KA(new Hje(n)),h=be(wu,Oh,28,e.f.e.c.length,16,1),Aue(h,h.length),n[t.a]=0,m=new N(e.f.e);m.a=0&&!Xy(e,v,k);)--k;s[v]=k}for(P=0;P=0&&!Xy(e,h,O);)--h;c[O]=h}for(b=0;bt[T]&&Ti[b]&&dj(e,b,T,!1,!0)}function Jpe(e){var t,n,i,s,c,d,h,b;n=qe(Ve(A(e,(uf(),Zgt)))),c=e.a.c.d,h=e.a.d.d,n?(d=Nd(Xi(new Me(h.a,h.b),c),.5),b=Nd(Eo(e.e),.5),t=Xi(Or(new Me(c.a,c.b),d),b),sce(e.d,t)):(s=le(pe(A(e.a,c0t))),i=e.d,c.a>=h.a?c.b>=h.b?(i.a=h.a+(c.a-h.a)/2+s,i.b=h.b+(c.b-h.b)/2-s-e.e.b):(i.a=h.a+(c.a-h.a)/2+s,i.b=c.b+(h.b-c.b)/2+s):c.b>=h.b?(i.a=c.a+(h.a-c.a)/2+s,i.b=h.b+(c.b-h.b)/2+s):(i.a=c.a+(h.a-c.a)/2+s,i.b=c.b+(h.b-c.b)/2-s-e.e.b))}function e9(e){var t,n,i,s,c,d,h,b;if(!e.f){if(b=new aoe,h=new aoe,t=Kx,d=t.a.zc(e,t),d==null){for(c=new hn(Ls(e));c.e!=c.i.gc();)s=u(mn(c),29),mi(b,e9(s));t.a.Bc(e)!=null,t.a.gc()==0}for(i=(!e.s&&(e.s=new Se(Tc,e,21,17)),new hn(e.s));i.e!=i.i.gc();)n=u(mn(i),179),te(n,102)&&Dn(h,u(n,19));Um(h),e.r=new GWe(e,(u(re(me((Jp(),Wt).o),6),19),h.i),h.g),mi(b,e.r),Um(b),e.f=new Ty((u(re(me(Wt.o),5),19),b.i),b.g),cu(e).b&=-3}return e.f}function rut(e){Pb(e,new _0(Eb(Cb(xb(Sb(new e0,D0),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new Zg))),Re(e,D0,ZX,Ke(vve)),Re(e,D0,eY,Ke(yQ)),Re(e,D0,V4,Ke(Ngt)),Re(e,D0,vw,Ke(mve)),Re(e,D0,Bge,Ke(Hgt)),Re(e,D0,Fge,Ke(zgt)),Re(e,D0,Nge,Ke(Kgt)),Re(e,D0,zge,Ke(Fgt)),Re(e,D0,qge,Ke(Bgt)),Re(e,D0,Xge,Ke(vQ)),Re(e,D0,Yge,Ke(wve)),Re(e,D0,Jge,Ke(VD))}function bj(){bj=U,B5e=H(F(Ea,1),Yd,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),R4t=new RegExp(`[ -\r\f]+`);try{Fx=H(F(ffn,1),Bt,2114,0,[new dT((Ile(),C$("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",XT((bR(),bR(),j9))))),new dT(C$("yyyy-MM-dd'T'HH:mm:ss'.'SSS",XT(j9))),new dT(C$("yyyy-MM-dd'T'HH:mm:ss",XT(j9))),new dT(C$("yyyy-MM-dd'T'HH:mm",XT(j9))),new dT(C$("yyyy-MM-dd",XT(j9)))])}catch(e){if(e=li(e),!te(e,82))throw B(e)}}function _sn(e,t){var n,i,s,c;if(s=fu(e.d,1)!=0,i=_pe(e,t),i==0&&qe(Ve(A(t.j,(Oe(),Eg)))))return 0;!qe(Ve(A(t.j,(Oe(),Eg))))&&!qe(Ve(A(t.j,_2)))||fe(A(t.j,(Ue(),$h)))===fe((Gd(),wp))?t.c.mg(t.e,s):s=qe(Ve(A(t.j,Eg))),EP(e,t,s,!0),qe(Ve(A(t.j,_2)))&&Ee(t.j,_2,(Gt(),!1)),qe(Ve(A(t.j,Eg)))&&(Ee(t.j,Eg,(Gt(),!1)),Ee(t.j,_2,!0)),n=_pe(e,t);do{if(Hfe(e),n==0)return 0;s=!s,c=n,EP(e,t,s,!1),n=_pe(e,t)}while(c>n);return c}function iut(e,t){var n,i,s,c;if(s=fu(e.d,1)!=0,i=Y$(e,t),i==0&&qe(Ve(A(t.j,(Oe(),Eg)))))return 0;!qe(Ve(A(t.j,(Oe(),Eg))))&&!qe(Ve(A(t.j,_2)))||fe(A(t.j,(Ue(),$h)))===fe((Gd(),wp))?t.c.mg(t.e,s):s=qe(Ve(A(t.j,Eg))),EP(e,t,s,!0),qe(Ve(A(t.j,_2)))&&Ee(t.j,_2,(Gt(),!1)),qe(Ve(A(t.j,Eg)))&&(Ee(t.j,Eg,(Gt(),!1)),Ee(t.j,_2,!0)),n=Y$(e,t);do{if(Hfe(e),n==0)return 0;s=!s,c=n,EP(e,t,s,!1),n=Y$(e,t)}while(c>n);return c}function Qpe(e,t,n,i){var s,c,d,h,b,m,v,k,T;return b=Xi(new Me(n.a,n.b),e),m=b.a*t.b-b.b*t.a,v=t.a*i.b-t.b*i.a,k=(b.a*i.b-b.b*i.a)/v,T=m/v,v==0?m==0?(s=Or(new Me(n.a,n.b),Nd(new Me(i.a,i.b),.5)),c=tg(e,s),d=tg(Or(new Me(e.a,e.b),t),s),h=w.Math.sqrt(i.a*i.a+i.b*i.b)*.5,c=0&&k<=1&&T>=0&&T<=1?Or(new Me(e.a,e.b),Nd(new Me(t.a,t.b),k)):null}function Rsn(e,t,n){var i,s,c,d,h;if(i=u(A(e,(Ue(),xZ)),21),n.a>t.a&&(i.Hc((O0(),Ex))?e.c.a+=(n.a-t.a)/2:i.Hc(Tx)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(i.Hc((O0(),Px))?e.c.b+=(n.b-t.b)/2:i.Hc(Ix)&&(e.c.b+=n.b-t.b)),u(A(e,(Oe(),Kl)),21).Hc((cs(),ka))&&(n.a>t.a||n.b>t.b))for(h=new N(e.a);h.at.a&&(i.Hc((O0(),Ex))?e.c.a+=(n.a-t.a)/2:i.Hc(Tx)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(i.Hc((O0(),Px))?e.c.b+=(n.b-t.b)/2:i.Hc(Ix)&&(e.c.b+=n.b-t.b)),u(A(e,(Oe(),Kl)),21).Hc((cs(),ka))&&(n.a>t.a||n.b>t.b))for(d=new N(e.a);d.a0?e.i:0)>t&&b>0&&(c=0,d+=b+e.i,s=w.Math.max(s,T),i+=b+e.i,b=0,T=0,n&&(++k,$e(e.n,new aL(e.s,d,e.i))),h=0),T+=m.g+(h>0?e.i:0),b=w.Math.max(b,m.f),n&&She(u(Ye(e.n,k),209),m),c+=m.g+(h>0?e.i:0),++h;return s=w.Math.max(s,T),i+=b,n&&(e.r=s,e.d=i,Ihe(e.j)),new ia(e.s,e.t,s,i)}function Fq(e){var t,n,i,s,c,d,h,b,m,v,k,T;for(e.b=!1,k=ii,b=Hi,T=ii,m=Hi,i=e.e.a.ec().Kc();i.Ob();)for(n=u(i.Pb(),272),s=n.a,k=w.Math.min(k,s.c),b=w.Math.max(b,s.c+s.b),T=w.Math.min(T,s.d),m=w.Math.max(m,s.d+s.a),d=new N(n.c);d.ae.o.a&&(v=(b-e.o.a)/2,h.b=w.Math.max(h.b,v),h.c=w.Math.max(h.c,v))}}function jsn(e){var t,n,i,s,c,d,h,b;for(c=new JXe,hRt(c,(E4(),v3t)),i=(s=RW(e,be(Je,_e,2,0,6,1)),new e7(new Wc(new RK(e,s).b)));i.bh?1:-1:wde(e.a,t.a,c),s==-1)k=-b,v=d==b?rW(t.a,h,e.a,c):oW(t.a,h,e.a,c);else if(k=d,d==b){if(s==0)return Vd(),N9;v=rW(e.a,c,t.a,h)}else v=oW(e.a,c,t.a,h);return m=new d0(k,v.length,v),iS(m),m}function Dsn(e,t){var n,i,s,c;if(c=zct(t),!t.c&&(t.c=new Se(ru,t,9,9)),Ci(new xt(null,(!t.c&&(t.c=new Se(ru,t,9,9)),new Pt(t.c,16))),new Wje(c)),s=u(A(c,(Oe(),Kl)),21),Mcn(t,s),s.Hc((cs(),ka)))for(i=new hn((!t.c&&(t.c=new Se(ru,t,9,9)),t.c));i.e!=i.i.gc();)n=u(mn(i),123),iun(e,t,c,n);return u(Ie(t,(Ue(),J0)),181).gc()!=0&&Alt(t,c),qe(Ve(A(c,v3e)))&&s.Fc(_N),Xr(c,HM)&&FFe(new ehe(le(pe(A(c,HM)))),c),fe(Ie(t,Iv))===fe((f1(),Cp))?Pan(e,t,c):dan(e,t,c),c}function Nsn(e){var t,n,i,s,c,d,h,b;for(s=new N(e.b);s.a0?oa(n.a,0,c-1):""):(mo(0,c-1,e.length),e.substr(0,c-1)):n?n.a:e}function Bsn(e,t){var n,i,s,c,d,h,b;for(t.Ug("Sort By Input Model "+A(e,(Ue(),$h)),1),s=0,i=new N(e.b);i.a=e.b.length?(c[s++]=d.b[i++],c[s++]=d.b[i++]):i>=d.b.length?(c[s++]=e.b[n++],c[s++]=e.b[n++]):d.b[i]0?e.i:0)),++t;for(Dde(e.n,b),e.d=n,e.r=i,e.g=0,e.f=0,e.e=0,e.o=ii,e.p=ii,c=new N(e.b);c.a0&&(s=(!e.n&&(e.n=new Se(ms,e,1,7)),u(re(e.n,0),135)).a,!s||lr(lr((t.a+=' "',t),s),'"'))),n=(!e.b&&(e.b=new jt(Tn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new jt(Tn,e,5,8)),e.c.i<=1))),n?t.a+=" [":t.a+=" ",lr(t,Wle(new EK,new hn(e.b))),n&&(t.a+="]"),t.a+=lY,n&&(t.a+="["),lr(t,Wle(new EK,new hn(e.c))),n&&(t.a+="]"),t.a)}function zsn(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt,zt;for(ke=e.c,Pe=t.c,n=$s(ke.a,e,0),i=$s(Pe.a,t,0),ne=u(lw(e,(ls(),eu)).Kc().Pb(),12),dt=u(lw(e,Zl).Kc().Pb(),12),se=u(lw(t,eu).Kc().Pb(),12),zt=u(lw(t,Zl).Kc().Pb(),12),z=Kd(ne.e),Fe=Kd(dt.g),J=Kd(se.e),pt=Kd(zt.g),Xm(e,i,Pe),d=J,v=0,O=d.length;vv?new b0((Af(),$v),n,t,m-v):m>0&&v>0&&(new b0((Af(),$v),t,n,0),new b0($v,n,t,0))),d)}function Usn(e,t,n){var i,s,c;for(e.a=new Le,c=Ln(t.b,0);c.b!=c.d.c;){for(s=u(_n(c),40);u(A(s,(sl(),ch)),17).a>e.a.c.length-1;)$e(e.a,new Gi(d2,Lbe));i=u(A(s,ch),17).a,n==(ji(),Ps)||n==Bs?(s.e.ale(pe(u(Ye(e.a,i),42).b))&&nK(u(Ye(e.a,i),42),s.e.a+s.f.a)):(s.e.ble(pe(u(Ye(e.a,i),42).b))&&nK(u(Ye(e.a,i),42),s.e.b+s.f.b))}}function lut(e,t,n,i){var s,c,d,h,b,m,v;if(c=b$(i),h=qe(Ve(A(i,(Ue(),h3e)))),(h||qe(Ve(A(e,GN))))&&!Iy(u(A(e,yi),101)))s=P4(c),b=zpe(e,n,n==(ls(),Zl)?s:tP(s));else switch(b=new Ml,Js(b,e),t?(v=b.n,v.a=t.a-e.n.a,v.b=t.b-e.n.b,hot(v,0,0,e.o.a,e.o.b),Vi(b,Pct(b,c))):(s=P4(c),Vi(b,n==(ls(),Zl)?s:tP(s))),d=u(A(i,(Oe(),Kl)),21),m=b.j,c.g){case 2:case 1:(m==(ze(),en)||m==Pn)&&d.Fc((cs(),P2));break;case 4:case 3:(m==(ze(),fn)||m==rn)&&d.Fc((cs(),P2))}return b}function cut(e,t){var n,i,s,c,d,h;for(d=new S0(new i0(e.f.b).a);d.b;){if(c=rw(d),s=u(c.ld(),602),t==1){if(s.Af()!=(ji(),Ca)&&s.Af()!=vd)continue}else if(s.Af()!=(ji(),Ps)&&s.Af()!=Bs)continue;switch(i=u(u(c.md(),42).b,86),h=u(u(c.md(),42).a,194),n=h.c,s.Af().g){case 2:i.g.c=e.e.a,i.g.b=w.Math.max(1,i.g.b+n);break;case 1:i.g.c=i.g.c+n,i.g.b=w.Math.max(1,i.g.b-n);break;case 4:i.g.d=e.e.b,i.g.a=w.Math.max(1,i.g.a+n);break;case 3:i.g.d=i.g.d+n,i.g.a=w.Math.max(1,i.g.a-n)}}}function Gsn(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L;for(h=be(Bn,ur,28,t.b.c.length,15,1),m=be(jQ,Te,273,t.b.c.length,0,1),b=be(Lh,fp,10,t.b.c.length,0,1),k=e.a,T=0,P=k.length;T0&&b[i]&&(O=_y(e.b,b[i],s)),L=w.Math.max(L,s.c.c.b+O);for(c=new N(v.e);c.a1)throw B(new Qt(bM));b||(c=yh(t,i.Kc().Pb()),d.Fc(c))}return rde(e,x1e(e,t,n),d)}function mj(e,t,n){var i,s,c,d,h,b,m,v;if(w1(e.e,t))b=(rs(),u(t,69).xk()?new _A(t,e):new BT(t,e)),Q$(b.c,b.b),D7(b,u(n,16));else{for(v=cc(e.e.Dh(),t),i=u(e.g,124),d=0;d"}b!=null&&(t.a+=""+b)}else e.e?(h=e.e.zb,h!=null&&(t.a+=""+h)):(t.a+="?",e.b?(t.a+=" super ",Gq(e.b,t)):e.f&&(t.a+=" extends ",Gq(e.f,t)))}function Ysn(e){e.b=null,e.a=null,e.o=null,e.q=null,e.v=null,e.w=null,e.B=null,e.p=null,e.Q=null,e.R=null,e.S=null,e.T=null,e.U=null,e.V=null,e.W=null,e.bb=null,e.eb=null,e.ab=null,e.H=null,e.db=null,e.c=null,e.d=null,e.f=null,e.n=null,e.r=null,e.s=null,e.u=null,e.G=null,e.J=null,e.e=null,e.j=null,e.i=null,e.g=null,e.k=null,e.t=null,e.F=null,e.I=null,e.L=null,e.M=null,e.O=null,e.P=null,e.$=null,e.N=null,e.Z=null,e.cb=null,e.K=null,e.D=null,e.A=null,e.C=null,e._=null,e.fb=null,e.X=null,e.Y=null,e.gb=!1,e.hb=!1}function Jsn(e){var t,n,i,s;if(i=rX((!e.c&&(e.c=gI(bl(e.f))),e.c),0),e.e==0||e.a==0&&e.f!=-1&&e.e<0)return i;if(t=Kfe(e)<0?1:0,n=e.e,s=(i.length+1+w.Math.abs(Wi(e.e)),new V3),t==1&&(s.a+="-"),e.e>0)if(n-=i.length-t,n>=0){for(s.a+="0.";n>G0.length;n-=G0.length)tVe(s,G0);BGe(s,G0,Wi(n)),lr(s,(Zt(t,i.length+1),i.substr(t)))}else n=t-n,lr(s,oa(i,t,Wi(n))),s.a+=".",lr(s,Hue(i,Wi(n)));else{for(lr(s,(Zt(t,i.length+1),i.substr(t)));n<-G0.length;n+=G0.length)tVe(s,G0);BGe(s,G0,Wi(-n))}return s.a}function Wq(e){var t,n,i,s,c,d,h,b,m;return!(e.k!=(nn(),Ei)||e.j.c.length<=1||(c=u(A(e,(Ue(),yi)),101),c==(fo(),Ul))||(s=(qm(),(e.q?e.q:(Ot(),Ot(),Rh))._b(Dw)?i=u(A(e,Dw),203):i=u(A(Io(e),nx),203),i),s==nB)||!(s==N2||s==D2)&&(d=le(pe(Vm(e,rx))),t=u(A(e,UM),140),!t&&(t=new Ece(d,d,d,d)),m=el(e,(ze(),rn)),b=t.d+t.a+(m.gc()-1)*d,b>e.o.b||(n=el(e,fn),h=t.d+t.a+(n.gc()-1)*d,h>e.o.b)))}function Qsn(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$;t.Ug("Orthogonal edge routing",1),m=le(pe(A(e,(Ue(),j2)))),n=le(pe(A(e,L2))),i=le(pe(A(e,Z0))),T=new gG(0,n),$=0,d=new wo(e.b,0),h=null,v=null,b=null,k=null;do v=d.b0?(P=(O-1)*n,h&&(P+=i),v&&(P+=i),Pt||qe(Ve(Ie(b,(ud(),rO)))))&&(s=0,c+=v.b+n,Ft(k.c,v),v=new yae(c,n),i=new qW(0,v.f,v,n),GL(v,i),s=0),i.b.c.length==0||!qe(Ve(Ie(ri(b),(ud(),Dee))))&&(b.f>=i.o&&b.f<=i.f||i.a*.5<=b.f&&i.a*1.5>=b.f)?Kde(i,b):(d=new qW(i.s+i.r+n,v.f,v,n),GL(v,d),Kde(d,b)),s=b.i+b.g;return Ft(k.c,v),k}function n9(e){var t,n,i,s;if(!(e.b==null||e.b.length<=2)&&!e.a){for(t=0,s=0;s=e.b[s+1])s+=2;else if(n0)for(i=new Vc(u($r(e.a,c),21)),Ot(),Mi(i,new Foe(t)),s=new wo(c.b,0);s.b0&&i>=-6?i>=0?HT(c,n-Wi(e.e),"."):(DW(c,t-1,t-1,"0."),HT(c,t+1,Ud(G0,0,-Wi(i)-1))):(n-t>=1&&(HT(c,t,"."),++n),HT(c,n,"E"),i>0&&HT(c,++n,"+"),HT(c,++n,""+X7(bl(i)))),e.g=c.a,e.g))}function cln(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe;i=le(pe(A(t,(Ue(),b3e)))),ke=u(A(t,ix),17).a,T=4,s=3,Pe=20/ke,P=!1,b=0,d=Mr;do{for(c=b!=1,k=b!=0,Fe=0,$=e.a,J=0,se=$.length;Jke)?(b=2,d=Mr):b==0?(b=1,d=Fe):(b=0,d=Fe)):(P=Fe>=d||d-Fe0?1:Rb(isNaN(i),isNaN(0)))>=0^(of(nh),(w.Math.abs(h)<=nh||h==0||isNaN(h)&&isNaN(0)?0:h<0?-1:h>0?1:Rb(isNaN(h),isNaN(0)))>=0)?w.Math.max(h,i):(of(nh),(w.Math.abs(i)<=nh||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:Rb(isNaN(i),isNaN(0)))>0?w.Math.sqrt(h*h+i*i):-w.Math.sqrt(h*h+i*i))}function R0(e,t){var n,i,s,c,d,h;if(t){if(!e.a&&(e.a=new pR),e.e==2){hR(e.a,t);return}if(t.e==1){for(s=0;s=es?ps(n,Hde(i)):Hk(n,i&Di),d=new LG(10,null,0),VDt(e.a,d,h-1)):(n=(d.Mm().length+c,new f7),ps(n,d.Mm())),t.e==0?(i=t.Km(),i>=es?ps(n,Hde(i)):Hk(n,i&Di)):ps(n,t.Mm()),u(d,530).b=n.a}}function fln(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$;if(!n.dc()){for(h=0,T=0,i=n.Kc(),O=u(i.Pb(),17).a;h1&&(b=m.Hg(b,e.a,h));return b.c.length==1?u(Ye(b,b.c.length-1),238):b.c.length==2?eln((_t(0,b.c.length),u(b.c[0],238)),(_t(1,b.c.length),u(b.c[1],238)),d,c):null}function bln(e,t,n){var i,s,c,d,h,b,m;for(n.Ug("Find roots",1),e.a.c.length=0,s=Ln(t.b,0);s.b!=s.d.c;)i=u(_n(s),40),i.b.b==0&&(Ee(i,(Wr(),Og),(Gt(),!0)),$e(e.a,i));switch(e.a.c.length){case 0:c=new VW(0,t,"DUMMY_ROOT"),Ee(c,(Wr(),Og),(Gt(),!0)),Ee(c,see,!0),or(t.b,c);break;case 1:break;default:for(d=new VW(0,t,sD),b=new N(e.a);b.a=w.Math.abs(i.b)?(i.b=0,c.d+c.a>d.d&&c.dd.c&&c.c0){if(t=new Sle(e.i,e.g),n=e.i,c=n<100?null:new Kp(n),e.Tj())for(i=0;i0){for(h=e.g,m=e.i,uS(e),c=m<100?null:new Kp(m),i=0;i>13|(e.m&15)<<9,s=e.m>>4&8191,c=e.m>>17|(e.h&255)<<5,d=(e.h&1048320)>>8,h=t.l&8191,b=t.l>>13|(t.m&15)<<9,m=t.m>>4&8191,v=t.m>>17|(t.h&255)<<5,k=(t.h&1048320)>>8,pt=n*h,dt=i*h,zt=s*h,Ht=c*h,vn=d*h,b!=0&&(dt+=n*b,zt+=i*b,Ht+=s*b,vn+=c*b),m!=0&&(zt+=n*m,Ht+=i*m,vn+=s*m),v!=0&&(Ht+=n*v,vn+=i*v),k!=0&&(vn+=n*k),P=pt&hu,O=(dt&511)<<13,T=P+O,$=pt>>22,z=dt>>9,J=(zt&262143)<<4,ne=(Ht&31)<<17,L=$+z+J+ne,ke=zt>>18,Pe=Ht>>5,Fe=(vn&4095)<<8,se=ke+Pe+Fe,L+=T>>22,T&=hu,se+=L>>22,L&=hu,se&=v1,nc(T,L,se)}function vut(e){var t,n,i,s,c,d,h;if(h=u(Ye(e.j,0),12),h.g.c.length!=0&&h.e.c.length!=0)throw B(new ks("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(h.g.c.length!=0){for(c=ii,n=new N(h.g);n.a4)if(e.fk(t)){if(e.al()){if(s=u(t,54),i=s.Eh(),b=i==e.e&&(e.ml()?s.yh(s.Fh(),e.il())==e.jl():-1-s.Fh()==e.Lj()),e.nl()&&!b&&!i&&s.Jh()){for(c=0;c0&&yot(e,h,k);for(s=new N(k);s.ae.d[d.p]&&(n+=$ae(e.b,c)*u(b.b,17).a,eg(e.a,Ae(c)));for(;!a7(e.a);)pfe(e.b,u(a4(e.a),17).a)}return n}function kln(e,t){var n,i,s,c,d,h,b,m,v,k;if(v=u(A(e,(Oe(),fl)),64),i=u(Ye(e.j,0),12),v==(ze(),en)?Vi(i,Pn):v==Pn&&Vi(i,en),u(A(t,(Ue(),J0)),181).Hc((Iu(),sb))){if(b=le(pe(A(e,K8))),m=le(pe(A(e,U8))),d=le(pe(A(e,Rv))),h=u(A(t,Ov),21),h.Hc((Qc(),T1)))for(n=m,k=e.o.a/2-i.n.a,c=new N(i.f);c.a0&&(m=e.n.a/c);break;case 2:case 4:s=e.i.o.b,s>0&&(m=e.n.b/s)}Ee(e,(Oe(),Aw),m)}if(b=e.o,d=e.a,i)d.a=i.a,d.b=i.b,e.d=!0;else if(t!=kd&&t!=Lg&&h!=nl)switch(h.g){case 1:d.a=b.a/2;break;case 2:d.a=b.a,d.b=b.b/2;break;case 3:d.a=b.a/2,d.b=b.b;break;case 4:d.b=b.b/2}else d.a=b.a/2,d.b=b.b/2}function r9(e){var t,n,i,s,c,d,h,b,m,v;if(e.Pj())if(v=e.Ej(),b=e.Qj(),v>0)if(t=new Vfe(e.pj()),n=v,c=n<100?null:new Kp(n),VT(e,n,t.g),s=n==1?e.Ij(4,re(t,0),null,0,b):e.Ij(6,t,null,-1,b),e.Mj()){for(i=new hn(t);i.e!=i.i.gc();)c=e.Oj(mn(i),c);c?(c.nj(s),c.oj()):e.Jj(s)}else c?(c.nj(s),c.oj()):e.Jj(s);else VT(e,e.Ej(),e.Fj()),e.Jj(e.Ij(6,(Ot(),Jo),null,-1,b));else if(e.Mj())if(v=e.Ej(),v>0){for(h=e.Fj(),m=v,VT(e,v,h),c=m<100?null:new Kp(m),i=0;i1&&Lc(d)*xu(d)/2>h[0]){for(c=0;ch[c];)++c;O=new V1(L,0,c+1),k=new FL(O),v=Lc(d)/xu(d),b=tX(k,t,new z3,n,i,s,v),Or(Of(k.e),b),l4(D5(T,k),r8),P=new V1(L,c+1,L.c.length),_he(T,P),L.c.length=0,m=0,mVe(h,h.length,0)}else $=T.b.c.length==0?null:Ye(T.b,0),$!=null&&MW(T,0),m>0&&(h[m]=h[m-1]),h[m]+=Lc(d)*xu(d),++m,Ft(L.c,d);return L}function Iln(e,t){var n,i,s,c;n=t.b,c=new Vc(n.j),s=0,i=n.j,i.c.length=0,Fb(u(C0(e.b,(ze(),en),(nw(),Ow)),15),n),s=sP(c,s,new mPe,i),Fb(u(C0(e.b,en,xg),15),n),s=sP(c,s,new fPe,i),Fb(u(C0(e.b,en,Mw),15),n),Fb(u(C0(e.b,fn,Ow),15),n),Fb(u(C0(e.b,fn,xg),15),n),s=sP(c,s,new vPe,i),Fb(u(C0(e.b,fn,Mw),15),n),Fb(u(C0(e.b,Pn,Ow),15),n),s=sP(c,s,new yPe,i),Fb(u(C0(e.b,Pn,xg),15),n),s=sP(c,s,new kPe,i),Fb(u(C0(e.b,Pn,Mw),15),n),Fb(u(C0(e.b,rn,Ow),15),n),s=sP(c,s,new pPe,i),Fb(u(C0(e.b,rn,xg),15),n),Fb(u(C0(e.b,rn,Mw),15),n)}function Pln(e,t,n){var i,s,c,d,h,b,m,v,k,T,P;for(h=new N(t);h.a.5?z-=d*2*(O-.5):O<.5&&(z+=c*2*(.5-O)),s=h.d.b,z$.a-L-v&&(z=$.a-L-v),h.n.a=t+z}}function Rln(e){var t,n,i,s,c;if(i=u(A(e,(Ue(),fc)),171),i==(pa(),Tg)){for(n=new gn(wn(eo(e).a.Kc(),new j));$n(n);)if(t=u(xn(n),18),!RJe(t))throw B(new N1(fY+cP(e)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(i==Ev){for(c=new gn(wn(Pi(e).a.Kc(),new j));$n(c);)if(s=u(xn(c),18),!RJe(s))throw B(new N1(fY+cP(e)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function AP(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O;if(e.e&&e.c.c>19&&(t=m5(t),b=!b),d=bnn(t),c=!1,s=!1,i=!1,e.h==KP&&e.m==0&&e.l==0)if(s=!0,c=!0,d==-1)e=iUe((t5(),wme)),i=!0,b=!b;else return h=epe(e,d),b&&WW(h),n&&(yg=nc(0,0,0)),h;else e.h>>19&&(c=!0,e=m5(e),i=!0,b=!b);return d!=-1?GGt(e,d,b,c,n):Bhe(e,t)<0?(n&&(c?yg=m5(e):yg=nc(e.l,e.m,e.h)),nc(0,0,0)):hon(i?e:nc(e.l,e.m,e.h),t,b,c,s,n)}function Yq(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O;if(d=e.e,b=t.e,d==0)return t;if(b==0)return e;if(c=e.d,h=t.d,c+h==2)return n=Yi(e.a[0],us),i=Yi(t.a[0],us),d==b?(v=Ho(n,i),O=Vn(v),P=Vn(Yp(v,32)),P==0?new o1(d,O):new d0(d,2,H(F(Bn,1),ur,28,15,[O,P]))):(Vd(),rA(d<0?Ra(i,n):Ra(n,i),0)?cg(d<0?Ra(i,n):Ra(n,i)):Q7(cg(J1(d<0?Ra(i,n):Ra(n,i)))));if(d==b)T=d,k=c>=h?oW(e.a,c,t.a,h):oW(t.a,h,e.a,c);else{if(s=c!=h?c>h?1:-1:wde(e.a,t.a,c),s==0)return Vd(),N9;s==1?(T=d,k=rW(e.a,c,t.a,h)):(T=b,k=rW(t.a,h,e.a,c))}return m=new d0(T,k.length,k),iS(m),m}function Lln(e,t){var n,i,s,c,d,h,b;if(!(e.g>t.f||t.g>e.f)){for(n=0,i=0,d=e.w.a.ec().Kc();d.Ob();)s=u(d.Pb(),12),iV(Zs(H(F(to,1),_e,8,0,[s.i.n,s.n,s.a])).b,t.g,t.f)&&++n;for(h=e.r.a.ec().Kc();h.Ob();)s=u(h.Pb(),12),iV(Zs(H(F(to,1),_e,8,0,[s.i.n,s.n,s.a])).b,t.g,t.f)&&--n;for(b=t.w.a.ec().Kc();b.Ob();)s=u(b.Pb(),12),iV(Zs(H(F(to,1),_e,8,0,[s.i.n,s.n,s.a])).b,e.g,e.f)&&++i;for(c=t.r.a.ec().Kc();c.Ob();)s=u(c.Pb(),12),iV(Zs(H(F(to,1),_e,8,0,[s.i.n,s.n,s.a])).b,e.g,e.f)&&--i;n=0)return n;switch(Gb(Ss(e,n))){case 2:{if(Et("",tp(e,n.qk()).xe())){if(b=cI(Ss(e,n)),h=Gk(Ss(e,n)),v=ipe(e,t,b,h),v)return v;for(s=Lpe(e,t),d=0,k=s.gc();d1)throw B(new Qt(bM));for(v=cc(e.e.Dh(),t),i=u(e.g,124),d=0;d1,m=new nd(T.b);Ys(m.a)||Ys(m.b);)b=u(Ys(m.a)?D(m.a):D(m.b),18),k=b.c==T?b.d:b.c,w.Math.abs(Zs(H(F(to,1),_e,8,0,[k.i.n,k.n,k.a])).b-d.b)>1&&krn(e,b,d,c,T)}}function Fln(e){var t,n,i,s,c,d;if(s=new wo(e.e,0),i=new wo(e.a,0),e.d)for(n=0;nGY;){for(c=t,d=0;w.Math.abs(t-c)0),s.a.Xb(s.c=--s.b),tsn(e,e.b-d,c,i,s),yn(s.b0),i.a.Xb(i.c=--i.b)}if(!e.d)for(n=0;n0?(e.f[v.p]=P/(v.e.c.length+v.g.c.length),e.c=w.Math.min(e.c,e.f[v.p]),e.b=w.Math.max(e.b,e.f[v.p])):h&&(e.f[v.p]=P)}}function Hln(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function Kln(e,t,n){var i,s,c,d;for(n.Ug("Graph transformation ("+e.a+")",1),d=Yb(t.a),c=new N(t.b);c.a=h.b.c)&&(h.b=t),(!h.c||t.c<=h.c.c)&&(h.d=h.c,h.c=t),(!h.e||t.d>=h.e.d)&&(h.e=t),(!h.f||t.d<=h.f.d)&&(h.f=t);return i=new _$((b5(),Pw)),bI(e,j0t,new Wc(H(F(MM,1),Bt,382,0,[i]))),d=new _$(vv),bI(e,$0t,new Wc(H(F(MM,1),Bt,382,0,[d]))),s=new _$(mv),bI(e,L0t,new Wc(H(F(MM,1),Bt,382,0,[s]))),c=new _$(C2),bI(e,A0t,new Wc(H(F(MM,1),Bt,382,0,[c]))),kq(i.c,Pw),kq(s.c,mv),kq(c.c,C2),kq(d.c,vv),h.a.c.length=0,zi(h.a,i.c),zi(h.a,ha(s.c)),zi(h.a,c.c),zi(h.a,ha(d.c)),h}function Wln(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O;for(t.Ug(Ldt,1),P=le(pe(Ie(e,(xh(),jv)))),d=le(pe(Ie(e,(ud(),kx)))),h=u(Ie(e,yx),107),zfe((!e.a&&(e.a=new Se(xr,e,10,11)),e.a)),v=gut((!e.a&&(e.a=new Se(xr,e,10,11)),e.a),P,d),!e.a&&(e.a=new Se(xr,e,10,11)),m=new N(v);m.a0&&(e.a=b+(P-1)*c,t.c.b+=e.a,t.f.b+=e.a)),O.a.gc()!=0&&(T=new gG(1,c),P=lge(T,t,O,L,t.f.b+b-t.c.b),P>0&&(t.f.b+=b+(P-1)*c))}function Cut(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se;for(v=le(pe(A(e,(Ue(),Bw)))),i=le(pe(A(e,T3e))),T=new GH,Ee(T,Bw,v+i),m=t,z=m.d,L=m.c.i,J=m.d.i,$=Ole(L.c),ne=Ole(J.c),s=new Le,k=$;k<=ne;k++)h=new g1(e),n0(h,(nn(),io)),Ee(h,(Oe(),jr),m),Ee(h,yi,(fo(),Ul)),Ee(h,JN,T),P=u(Ye(e.b,k),30),k==$?Xm(h,P.a.c.length-n,P):bo(h,P),se=le(pe(A(m,gp))),se<0&&(se=0,Ee(m,gp,se)),h.o.b=se,O=w.Math.floor(se/2),d=new Ml,Vi(d,(ze(),rn)),Js(d,h),d.n.b=O,b=new Ml,Vi(b,fn),Js(b,h),b.n.b=O,ao(m,d),c=new Vb,js(c,m),Ee(c,Is,null),zo(c,b),ao(c,z),$Yt(h,m,c),Ft(s.c,c),m=c;return s}function Jq(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne;for(b=u(lp(e,(ze(),rn)).Kc().Pb(),12).e,P=u(lp(e,fn).Kc().Pb(),12).g,h=b.c.length,ne=ed(u(Ye(e.j,0),12));h-- >0;){for(L=(_t(0,b.c.length),u(b.c[0],18)),s=(_t(0,P.c.length),u(P.c[0],18)),J=s.d.e,c=$s(J,s,0),bzt(L,s.d,c),zo(s,null),ao(s,null),O=L.a,t&&or(O,new Vo(ne)),i=Ln(s.a,0);i.b!=i.d.c;)n=u(_n(i),8),or(O,new Vo(n));for(z=L.b,T=new N(s.b);T.ad)&&Fi(e.b,u($.b,18));++h}c=d}}}function ige(e,t){var n;if(t==null||Et(t,Cc)||t.length==0&&e.k!=(cp(),g6))return null;switch(e.k.g){case 1:return T$(t,b8)?(Gt(),S8):T$(t,uJ)?(Gt(),kg):null;case 2:try{return Ae(zu(t,jo,Mr))}catch(i){if(i=li(i),te(i,130))return null;throw B(i)}case 4:try{return Jm(t)}catch(i){if(i=li(i),te(i,130))return null;throw B(i)}case 3:return t;case 5:return Ktt(e),nst(e,t);case 6:return Ktt(e),Vtn(e,e.a,t);case 7:try{return n=itn(e),n.cg(t),n}catch(i){if(i=li(i),te(i,33))return null;throw B(i)}default:throw B(new ks("Invalid type set for this layout option."))}}function oge(e){var t;switch(e.d){case 1:{if(e.Sj())return e.o!=-2;break}case 2:{if(e.Sj())return e.o==-2;break}case 3:case 5:case 4:case 6:case 7:return e.o>-2;default:return!1}switch(t=e.Rj(),e.p){case 0:return t!=null&&qe(Ve(t))!=R7(e.k,0);case 1:return t!=null&&u(t,222).a!=Vn(e.k)<<24>>24;case 2:return t!=null&&u(t,180).a!=(Vn(e.k)&Di);case 6:return t!=null&&R7(u(t,168).a,e.k);case 5:return t!=null&&u(t,17).a!=Vn(e.k);case 7:return t!=null&&u(t,191).a!=Vn(e.k)<<16>>16;case 3:return t!=null&&le(pe(t))!=e.j;case 4:return t!=null&&u(t,161).a!=e.j;default:return t==null?e.n!=null:!Rr(t,e.n)}}function LP(e,t,n){var i,s,c,d;return e.ol()&&e.nl()&&(d=uG(e,u(n,58)),fe(d)!==fe(n))?(e.xj(t),e.Dj(t,xQe(e,t,d)),e.al()&&(c=(s=u(n,54),e.ml()?e.kl()?s.Th(e.b,is(u(Dt(mc(e.b),e.Lj()),19)).n,u(Dt(mc(e.b),e.Lj()).Hk(),29).kk(),null):s.Th(e.b,ci(s.Dh(),is(u(Dt(mc(e.b),e.Lj()),19))),null,null):s.Th(e.b,-1-e.Lj(),null,null)),!u(d,54).Ph()&&(c=(i=u(d,54),e.ml()?e.kl()?i.Rh(e.b,is(u(Dt(mc(e.b),e.Lj()),19)).n,u(Dt(mc(e.b),e.Lj()).Hk(),29).kk(),c):i.Rh(e.b,ci(i.Dh(),is(u(Dt(mc(e.b),e.Lj()),19))),null,c):i.Rh(e.b,-1-e.Lj(),null,c))),c&&c.oj()),ku(e.b)&&e.Jj(e.Ij(9,n,d,t,!1)),d):n}function Sut(e){var t,n,i,s,c,d,h,b,m,v;for(i=new Le,d=new N(e.e.a);d.a0&&(d=w.Math.max(d,Pet(e.C.b+i.d.b,s))),v=i,k=s,T=c;e.C&&e.C.c>0&&(P=T+e.C.c,m&&(P+=v.d.c),d=w.Math.max(d,(Yf(),of(fd),w.Math.abs(k-1)<=fd||k==1||isNaN(k)&&isNaN(1)?0:P/(1-k)))),n.n.b=0,n.a.a=d}function Eut(e,t){var n,i,s,c,d,h,b,m,v,k,T,P;if(n=u(gs(e.b,t),127),b=u(u($r(e.r,t),21),87),b.dc()){n.n.d=0,n.n.a=0;return}for(m=e.u.Hc((Qc(),T1)),d=0,e.A.Hc((Iu(),sb))&&ect(e,t),h=b.Kc(),v=null,T=0,k=0;h.Ob();)i=u(h.Pb(),117),c=le(pe(i.b.of((bA(),UD)))),s=i.b.Mf().b,v?(P=k+v.d.a+e.w+i.d.d,d=w.Math.max(d,(Yf(),of(fd),w.Math.abs(T-c)<=fd||T==c||isNaN(T)&&isNaN(c)?0:P/(c-T)))):e.C&&e.C.d>0&&(d=w.Math.max(d,Pet(e.C.d+i.d.d,c))),v=i,T=c,k=s;e.C&&e.C.a>0&&(P=k+e.C.a,m&&(P+=v.d.a),d=w.Math.max(d,(Yf(),of(fd),w.Math.abs(T-1)<=fd||T==1||isNaN(T)&&isNaN(1)?0:P/(1-T)))),n.n.d=0,n.a.b=d}function Xln(e,t,n,i,s,c,d,h){var b,m,v,k,T,P,O,L,$,z;if(O=!1,m=dpe(n.q,t.f+t.b-n.q.f),P=i.f>t.b&&h,z=s-(n.q.e+m-d),k=(b=t9(i,z,!1),b.a),P&&k>i.f)return!1;if(P){for(T=0,$=new N(t.d);$.a<$.c.c.length;)L=u(D($),315),T+=dpe(L,i.f)+d;z=s-T}return z=(_t(c,e.c.length),u(e.c[c],186)).e,!P&&k>t.b&&!v)?!1:((v||P||k<=t.b)&&(v&&k>t.b?(n.d=k,EI(n,fot(n,k))):(Mit(n.q,m),n.c=!0),EI(i,s-(n.s+n.r)),lP(i,n.q.e+n.q.d,t.f),GL(t,i),e.c.length>c&&(aP((_t(c,e.c.length),u(e.c[c],186)),i),(_t(c,e.c.length),u(e.c[c],186)).a.c.length==0&&X1(e,c)),O=!0),O)}function Tut(e,t,n){var i,s,c,d,h,b;for(this.g=e,h=t.d.length,b=n.d.length,this.d=be(Lh,fp,10,h+b,0,1),d=0;d0?CW(this,this.f/this.a):Jf(t.g,t.d[0]).a!=null&&Jf(n.g,n.d[0]).a!=null?CW(this,(le(Jf(t.g,t.d[0]).a)+le(Jf(n.g,n.d[0]).a))/2):Jf(t.g,t.d[0]).a!=null?CW(this,Jf(t.g,t.d[0]).a):Jf(n.g,n.d[0]).a!=null&&CW(this,Jf(n.g,n.d[0]).a)}function Yln(e,t){var n,i,s,c,d,h,b,m,v,k;for(e.a=new rqe(RGt(Ox)),i=new N(t.a);i.a=1&&($-d>0&&k>=0?(b.n.a+=L,b.n.b+=c*d):$-d<0&&v>=0&&(b.n.a+=L*$,b.n.b+=c));e.o.a=t.a,e.o.b=t.b,Ee(e,(Ue(),J0),(Iu(),i=u(Pf(Dx),9),new ra(i,u(ef(i,i.length),9),0)))}function Zln(e,t,n,i,s,c){var d;if(!(t==null||!gV(t,V5e,q5e)))throw B(new Qt("invalid scheme: "+t));if(!e&&!(n!=null&&jd(n,kc(35))==-1&&n.length>0&&(Zt(0,n.length),n.charCodeAt(0)!=47)))throw B(new Qt("invalid opaquePart: "+n));if(e&&!(t!=null&&kT(QB,t.toLowerCase()))&&!(n==null||!gV(n,zx,Hx)))throw B(new Qt(c1t+n));if(e&&t!=null&&kT(QB,t.toLowerCase())&&!RJt(n))throw B(new Qt(c1t+n));if(!NVt(i))throw B(new Qt("invalid device: "+i));if(!CWt(s))throw d=s==null?"invalid segments: null":"invalid segment: "+mWt(s),B(new Qt(d));if(!(c==null||jd(c,kc(35))==-1))throw B(new Qt("invalid query: "+c))}function ecn(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z;if(n.Ug("Network simplex layering",1),e.b=t,z=u(A(t,(Ue(),ix)),17).a*4,$=e.b.a,$.c.length<1){n.Vg();return}for(c=Jin(e,$),L=null,s=Ln(c,0);s.b!=s.d.c;){for(i=u(_n(s),15),h=z*Wi(w.Math.sqrt(i.gc())),d=don(i),Aq(Ese(e_t(Tse(HU(d),h),L),!0),n.eh(1)),T=e.b.b,O=new N(d.a);O.a1)for(L=be(Bn,ur,28,e.b.b.c.length,15,1),k=0,m=new N(e.b.b);m.a0){I$(e,n,0),n.a+=String.fromCharCode(i),s=Cqt(t,c),I$(e,n,s),c+=s-1;continue}i==39?c+10&&O.a<=0){b.c.length=0,Ft(b.c,O);break}P=O.i-O.d,P>=h&&(P>h&&(b.c.length=0,h=P),Ft(b.c,O))}b.c.length!=0&&(d=u(Ye(b,$$(s,b.c.length)),118),ne.a.Bc(d)!=null,d.g=v++,Vpe(d,t,n,i),b.c.length=0)}for($=e.c.length+1,T=new N(e);T.aHi||t.o==eb&&v=h&&s<=b)h<=s&&c<=b?(n[v++]=s,n[v++]=c,i+=2):h<=s?(n[v++]=s,n[v++]=b,e.b[i]=b+1,d+=2):c<=b?(n[v++]=h,n[v++]=c,i+=2):(n[v++]=h,n[v++]=b,e.b[i]=b+1);else if(bpg)&&h<10);Pse(e.c,new nEe),Out(e),XDt(e.c),Uln(e.f)}function ucn(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L;for(n=u(A(e,(Ue(),yi)),101),d=e.f,c=e.d,h=d.a+c.b+c.c,b=0-c.d-e.c.b,v=d.b+c.d+c.a-e.c.b,m=new Le,k=new Le,s=new N(t);s.a=2){for(b=Ln(n,0),d=u(_n(b),8),h=u(_n(b),8);h.a0&&GI(m,!0,(ji(),Bs)),h.k==(nn(),Oi)&&dqe(m),vr(e.f,h,t)}}function dcn(e){var t,n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se;for(s=u(A(e,(Wr(),bx)),27),m=Mr,v=Mr,h=jo,b=jo,ne=Ln(e.b,0);ne.b!=ne.d.c;)z=u(_n(ne),40),P=z.e,O=z.f,m=w.Math.min(m,P.a-O.a/2),v=w.Math.min(v,P.b-O.b/2),h=w.Math.max(h,P.a+O.a/2),b=w.Math.max(b,P.b+O.b/2);for(T=u(Ie(s,(sl(),D4e)),107),J=Ln(e.b,0);J.b!=J.d.c;)z=u(_n(J),40),k=A(z,bx),te(k,207)&&(c=u(k,27),ta(c,z.e.a,z.e.b),SP(c,z));for($=Ln(e.a,0);$.b!=$.d.c;)L=u(_n($),65),i=u(A(L,bx),74),i&&(t=L.a,n=n2(i,!0,!0),OP(t,n));se=h-m+(T.b+T.c),d=b-v+(T.d+T.a),qe(Ve(Ie(s,(gr(),Dv))))||gw(s,se,d,!1,!1),Br(s,V2,se-(T.b+T.c)),Br(s,W2,d-(T.d+T.a))}function Rut(e,t){var n,i,s,c,d,h,b,m,v,k;for(b=!0,s=0,m=e.g[t.p],v=t.o.b+e.o,n=e.d[t.p][2],la(e.b,m,Ae(u(Ye(e.b,m),17).a-1+n)),la(e.c,m,le(pe(Ye(e.c,m)))-v+n*e.f),++m,m>=e.j?(++e.j,$e(e.b,Ae(1)),$e(e.c,v)):(i=e.d[t.p][1],la(e.b,m,Ae(u(Ye(e.b,m),17).a+1-i)),la(e.c,m,le(pe(Ye(e.c,m)))+v-i*e.f)),(e.r==(La(),GM)&&(u(Ye(e.b,m),17).a>e.k||u(Ye(e.b,m-1),17).a>e.k)||e.r==WM&&(le(pe(Ye(e.c,m)))>e.n||le(pe(Ye(e.c,m-1)))>e.n))&&(b=!1),d=new gn(wn(eo(t).a.Kc(),new j));$n(d);)c=u(xn(d),18),h=c.c.i,e.g[h.p]==m&&(k=Rut(e,h),s=s+u(k.a,17).a,b=b&&qe(Ve(k.b)));return e.g[t.p]=m,s=s+e.d[t.p][0],new Gi(Ae(s),(Gt(),!!b))}function Aut(e,t){var n,i,s,c,d;n=le(pe(A(t,(Ue(),pf)))),n<2&&Ee(t,pf,2),i=u(A(t,Wu),88),i==(ji(),yd)&&Ee(t,Wu,b$(t)),s=u(A(t,Ymt),17),s.a==0?Ee(t,(Oe(),a6),new wV):Ee(t,(Oe(),a6),new vL(s.a)),c=Ve(A(t,tx)),c==null&&Ee(t,tx,(Gt(),fe(A(t,x1))===fe((d1(),nC)))),Ci(new xt(null,new Pt(t.a,16)),new Noe(e)),Ci(Qs(new xt(null,new Pt(t.b,16)),new Xie),new Boe(e)),d=new Iut(t),Ee(t,(Oe(),R2),d),lI(e.a),_f(e.a,($o(),hf),u(A(t,q0),188)),_f(e.a,Ah,u(A(t,Y0),188)),_f(e.a,_l,u(A(t,ex),188)),_f(e.a,zl,u(A(t,XN),188)),_f(e.a,Ns,dGt(u(A(t,x1),223))),Rle(e.a,lan(t)),Ee(t,vZ,AP(e.a,t))}function lge(e,t,n,i,s){var c,d,h,b,m,v,k,T,P,O,L,$,z;for(k=new On,d=new Le,Rot(e,n,e.d.Ag(),d,k),Rot(e,i,e.d.Bg(),d,k),e.b=.2*(L=Dst(Qs(new xt(null,new Pt(d,16)),new zMe)),$=Dst(Qs(new xt(null,new Pt(d,16)),new HMe)),w.Math.min(L,$)),c=0,h=0;h=2&&(z=nlt(d,!0,T),!e.e&&(e.e=new fNe(e)),mqt(e.e,z,d,e.b)),Bit(d,T),mcn(d),P=-1,v=new N(d);v.ah)}function Lut(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J;for(m=ii,v=ii,h=Hi,b=Hi,T=new N(t.i);T.a-1){for(s=Ln(h,0);s.b!=s.d.c;)i=u(_n(s),131),i.v=d;for(;h.b!=0;)for(i=u(qV(h,0),131),n=new N(i.i);n.a-1){for(c=new N(h);c.a0)&&(xoe(b,w.Math.min(b.o,s.o-1)),iR(b,b.i-1),b.i==0&&Ft(h.c,b))}}function jut(e,t,n,i,s){var c,d,h,b;return b=ii,d=!1,h=Qpe(e,Xi(new Me(t.a,t.b),e),Or(new Me(n.a,n.b),s),Xi(new Me(i.a,i.b),n)),c=!!h&&!(w.Math.abs(h.a-e.a)<=Cw&&w.Math.abs(h.b-e.b)<=Cw||w.Math.abs(h.a-t.a)<=Cw&&w.Math.abs(h.b-t.b)<=Cw),h=Qpe(e,Xi(new Me(t.a,t.b),e),n,s),h&&((w.Math.abs(h.a-e.a)<=Cw&&w.Math.abs(h.b-e.b)<=Cw)==(w.Math.abs(h.a-t.a)<=Cw&&w.Math.abs(h.b-t.b)<=Cw)||c?b=w.Math.min(b,eS(Xi(h,n))):d=!0),h=Qpe(e,Xi(new Me(t.a,t.b),e),i,s),h&&(d||(w.Math.abs(h.a-e.a)<=Cw&&w.Math.abs(h.b-e.b)<=Cw)==(w.Math.abs(h.a-t.a)<=Cw&&w.Math.abs(h.b-t.b)<=Cw)||c)&&(b=w.Math.min(b,eS(Xi(h,i)))),b}function Dut(e){Pb(e,new _0(yR(Eb(Cb(xb(Sb(new e0,bg),Lft),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new Jxe),uc))),Re(e,bg,h9,Ke(Ave)),Re(e,bg,Dj,(Gt(),!0)),Re(e,bg,h2,Ke(v0t)),Re(e,bg,X4,Ke(y0t)),Re(e,bg,q4,Ke(k0t)),Re(e,bg,u8,Ke(m0t)),Re(e,bg,p9,Ke($ve)),Re(e,bg,a8,Ke(C0t)),Re(e,bg,i0e,Ke(Rve)),Re(e,bg,s0e,Ke(Ove)),Re(e,bg,l0e,Ke(_ve)),Re(e,bg,c0e,Ke(Lve)),Re(e,bg,o0e,Ke(ZD))}function vcn(e){var t,n,i,s,c,d,h,b;for(t=null,i=new N(e);i.a0&&n.c==0&&(!t&&(t=new Le),Ft(t.c,n));if(t)for(;t.c.length!=0;){if(n=u(X1(t,0),239),n.b&&n.b.c.length>0){for(c=(!n.b&&(n.b=new Le),new N(n.b));c.a$s(e,n,0))return new Gi(s,n)}else if(le(Jf(s.g,s.d[0]).a)>le(Jf(n.g,n.d[0]).a))return new Gi(s,n)}for(h=(!n.e&&(n.e=new Le),n.e).Kc();h.Ob();)d=u(h.Pb(),239),b=(!d.b&&(d.b=new Le),d.b),$m(0,b.c.length),k7(b.c,0,n),d.c==b.c.length&&Ft(t.c,d)}return null}function ycn(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z;for(t.Ug("Interactive crossing minimization",1),d=0,c=new N(e.b);c.a0&&(n+=b.n.a+b.o.a/2,++k),O=new N(b.j);O.a0&&(n/=k),z=be(uo,ws,28,i.a.c.length,15,1),h=0,m=new N(i.a);m.a=h&&s<=b)h<=s&&c<=b?i+=2:h<=s?(e.b[i]=b+1,d+=2):c<=b?(n[v++]=s,n[v++]=h-1,i+=2):(n[v++]=s,n[v++]=h-1,e.b[i]=b+1,d+=2);else if(b2?(v=new Le,zi(v,new V1(z,1,z.b)),c=xat(v,ne+e.a),J=new mq(c),js(J,t),Ft(n.c,J)):i?J=u(pn(e.b,Sh(t)),272):J=u(pn(e.b,ug(t)),272),b=Sh(t),i&&(b=ug(t)),d=vZt($,b),m=ne+e.a,d.a?(m+=w.Math.abs($.b-k.b),L=new Me(k.a,(k.b+$.b)/2)):(m+=w.Math.abs($.a-k.a),L=new Me((k.a+$.a)/2,k.b)),i?vr(e.d,t,new Ehe(J,d,L,m)):vr(e.c,t,new Ehe(J,d,L,m)),vr(e.b,t,J),O=(!t.n&&(t.n=new Se(ms,t,1,7)),t.n),P=new hn(O);P.e!=P.i.gc();)T=u(mn(P),135),s=TP(e,T,!0,0,0),Ft(n.c,s)}function kcn(e){var t,n,i,s,c,d,h;if(!e.A.dc()){if(e.A.Hc((Iu(),kO))&&(u(gs(e.b,(ze(),en)),127).k=!0,u(gs(e.b,Pn),127).k=!0,t=e.q!=(fo(),Bh)&&e.q!=Ul,koe(u(gs(e.b,fn),127),t),koe(u(gs(e.b,rn),127),t),koe(e.g,t),e.A.Hc(sb)&&(u(gs(e.b,en),127).j=!0,u(gs(e.b,Pn),127).j=!0,u(gs(e.b,fn),127).k=!0,u(gs(e.b,rn),127).k=!0,e.g.k=!0)),e.A.Hc(yO))for(e.a.j=!0,e.a.k=!0,e.g.j=!0,e.g.k=!0,h=e.B.Hc((du(),Nx)),s=TV(),c=0,d=s.length;c0),u(v.a.Xb(v.c=--v.b),18));c!=i&&v.b>0;)e.a[c.p]=!0,e.a[i.p]=!0,c=(yn(v.b>0),u(v.a.Xb(v.c=--v.b),18));v.b>0&&Eu(v)}}function But(e,t,n){var i,s,c,d,h,b,m,v,k,T,P;if(!e.b)return!1;for(d=null,T=null,b=new cW(null,null),s=1,b.a[1]=e.b,k=b;k.a[s];)m=s,h=T,T=k,k=k.a[s],i=e.a.Ne(t,k.d),s=i<0?0:1,i==0&&(!n.c||gl(k.e,n.d))&&(d=k),!(k&&k.b)&&!vm(k.a[s])&&(vm(k.a[1-s])?T=T.a[m]=QL(k,s):vm(k.a[1-s])||(P=T.a[1-m],P&&(!vm(P.a[1-m])&&!vm(P.a[m])?(T.b=!1,P.b=!0,k.b=!0):(c=h.a[1]==T?1:0,vm(P.a[m])?h.a[c]=hYe(T,m):vm(P.a[1-m])&&(h.a[c]=QL(T,m)),k.b=h.a[c].b=!0,h.a[c].a[0].b=!1,h.a[c].a[1].b=!1))));return d&&(n.b=!0,n.d=d.e,k!=d&&(v=new cW(k.d,k.e),xQt(e,b,d,v),T==d&&(T=v)),T.a[T.a[1]==k?1:0]=k.a[k.a[0]?0:1],--e.c),e.b=b.a[1],e.b&&(e.b.b=!1),n.b}function xcn(e){var t,n,i,s,c,d,h,b,m,v,k,T;for(s=new N(e.a.a.b);s.a0?s-=864e5:s+=864e5,b=new bce(Ho(bl(t.q.getTime()),s))),v=new V3,m=e.a.length,c=0;c=97&&i<=122||i>=65&&i<=90){for(d=c+1;d=m)throw B(new Qt("Missing trailing '"));d+1=14&&v<=16))?t.a._b(i)?(n.a?lr(n.a,n.b):n.a=new Ru(n.d),L7(n.a,"[...]")):(h=y0(i),m=new G7(t),s1(n,zut(h,m))):te(i,183)?s1(n,nen(u(i,183))):te(i,195)?s1(n,zJt(u(i,195))):te(i,201)?s1(n,JQt(u(i,201))):te(i,2111)?s1(n,HJt(u(i,2111))):te(i,53)?s1(n,ten(u(i,53))):te(i,376)?s1(n,ven(u(i,376))):te(i,846)?s1(n,een(u(i,846))):te(i,109)&&s1(n,ZZt(u(i,109))):s1(n,i==null?Cc:Us(i));return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function X5(e,t){var n,i,s,c;c=e.F,t==null?(e.F=null,C5(e,null)):(e.F=(sn(t),t),i=jd(t,kc(60)),i!=-1?(s=(mo(0,i,t.length),t.substr(0,i)),jd(t,kc(46))==-1&&!Et(s,B4)&&!Et(s,P9)&&!Et(s,kD)&&!Et(s,M9)&&!Et(s,O9)&&!Et(s,_9)&&!Et(s,R9)&&!Et(s,A9)&&(s=k1t),n=hA(t,kc(62)),n!=-1&&(s+=""+(Zt(n+1,t.length+1),t.substr(n+1))),C5(e,s)):(s=t,jd(t,kc(46))==-1&&(i=jd(t,kc(91)),i!=-1&&(s=(mo(0,i,t.length),t.substr(0,i))),!Et(s,B4)&&!Et(s,P9)&&!Et(s,kD)&&!Et(s,M9)&&!Et(s,O9)&&!Et(s,_9)&&!Et(s,R9)&&!Et(s,A9)?(s=k1t,i!=-1&&(s+=""+(Zt(i,t.length+1),t.substr(i)))):s=t),C5(e,s),s==t&&(e.F=e.D))),e.Db&4&&!(e.Db&1)&&_r(e,new ro(e,1,5,c,t))}function Hut(e,t){var n,i,s,c,d,h,b,m,v,k;if(b=t.length-1,h=(Zt(b,t.length),t.charCodeAt(b)),h==93){if(d=jd(t,kc(91)),d>=0)return s=MVt(e,(mo(1,d,t.length),t.substr(1,d-1))),v=(mo(d+1,b,t.length),t.substr(d+1,b-(d+1))),tan(e,v,s)}else{if(n=-1,Cme==null&&(Cme=new RegExp("\\d")),Cme.test(String.fromCharCode(h))&&(n=Lce(t,kc(46),b-1),n>=0)){i=u(nW(e,PZe(e,(mo(1,n,t.length),t.substr(1,n-1))),!1),61),m=0;try{m=zu((Zt(n+1,t.length+1),t.substr(n+1)),jo,Mr)}catch(T){throw T=li(T),te(T,130)?(c=T,B(new _L(c))):B(T)}if(m>16==-10?n=u(e.Cb,292).Yk(t,n):e.Db>>16==-15&&(!t&&(t=(Mt(),Sd)),!m&&(m=(Mt(),Sd)),e.Cb.Yh()&&(b=new l1(e.Cb,1,13,m,t,sp(uu(u(e.Cb,62)),e),!1),n?n.nj(b):n=b));else if(te(e.Cb,90))e.Db>>16==-23&&(te(t,90)||(t=(Mt(),Va)),te(m,90)||(m=(Mt(),Va)),e.Cb.Yh()&&(b=new l1(e.Cb,1,10,m,t,sp(Pl(u(e.Cb,29)),e),!1),n?n.nj(b):n=b));else if(te(e.Cb,457))for(h=u(e.Cb,850),d=(!h.b&&(h.b=new aR(new bK)),h.b),c=(i=new S0(new i0(d.a).a),new fR(i));c.a.b;)s=u(rw(c.a).ld(),89),n=Y5(s,tj(s,h),n)}return n}function Mcn(e,t){var n,i,s,c,d,h,b,m,v,k,T;for(d=qe(Ve(Ie(e,(Ue(),Pv)))),T=u(Ie(e,Ov),21),b=!1,m=!1,k=new hn((!e.c&&(e.c=new Se(ru,e,9,9)),e.c));k.e!=k.i.gc()&&(!b||!m);){for(c=u(mn(k),123),h=0,s=mh(Du(H(F(Gu,1),Bt,20,0,[(!c.d&&(c.d=new jt(Ti,c,8,5)),c.d),(!c.e&&(c.e=new jt(Ti,c,7,4)),c.e)])));$n(s)&&(i=u(xn(s),74),v=d&&fw(i)&&qe(Ve(Ie(i,X0))),n=yut((!i.b&&(i.b=new jt(Tn,i,4,7)),i.b),c)?e==ri(Ds(u(re((!i.c&&(i.c=new jt(Tn,i,5,8)),i.c),0),84))):e==ri(Ds(u(re((!i.b&&(i.b=new jt(Tn,i,4,7)),i.b),0),84))),!((v||n)&&(++h,h>1))););(h>0||T.Hc((Qc(),T1))&&(!c.n&&(c.n=new Se(ms,c,1,7)),c.n).i>0)&&(b=!0),h>1&&(m=!0)}b&&t.Fc((cs(),ka)),m&&t.Fc((cs(),V9))}function Kut(e){var t,n,i,s,c,d,h,b,m,v,k,T;if(T=u(Ie(e,(gr(),rb)),21),T.dc())return null;if(h=0,d=0,T.Hc((Iu(),kO))){for(v=u(Ie(e,Mx),101),i=2,n=2,s=2,c=2,t=ri(e)?u(Ie(ri(e),nb),88):u(Ie(e,nb),88),m=new hn((!e.c&&(e.c=new Se(ru,e,9,9)),e.c));m.e!=m.i.gc();)if(b=u(mn(m),123),k=u(Ie(b,J2),64),k==(ze(),nl)&&(k=Wpe(b,t),Br(b,J2,k)),v==(fo(),Ul))switch(k.g){case 1:i=w.Math.max(i,b.i+b.g);break;case 2:n=w.Math.max(n,b.j+b.f);break;case 3:s=w.Math.max(s,b.i+b.g);break;case 4:c=w.Math.max(c,b.j+b.f)}else switch(k.g){case 1:i+=b.g+2;break;case 2:n+=b.f+2;break;case 3:s+=b.g+2;break;case 4:c+=b.f+2}h=w.Math.max(i,s),d=w.Math.max(n,c)}return gw(e,h,d,!0,!0)}function Qq(e,t,n,i,s){var c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se;for(J=u(Ks(BL(Ar(new xt(null,new Pt(t.d,16)),new _De(n)),new RDe(n)),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[(Jc(),Ws)]))),15),k=Mr,v=jo,b=new N(t.b.j);b.a0,m?m&&(T=z.p,d?++T:--T,k=u(Ye(z.c.a,T),10),i=htt(k),P=!(Cq(i,Pe,n[0])||$Ve(i,Pe,n[0]))):P=!0),O=!1,ke=t.D.i,ke&&ke.c&&h.e&&(v=d&&ke.p>0||!d&&ke.p=0){for(b=null,h=new wo(v.a,m+1);h.bd?1:Rb(isNaN(0),isNaN(d)))<0&&(of(nh),(w.Math.abs(d-1)<=nh||d==1||isNaN(d)&&isNaN(1)?0:d<1?-1:d>1?1:Rb(isNaN(d),isNaN(1)))<0)&&(of(nh),(w.Math.abs(0-h)<=nh||h==0||isNaN(0)&&isNaN(h)?0:0h?1:Rb(isNaN(0),isNaN(h)))<0)&&(of(nh),(w.Math.abs(h-1)<=nh||h==1||isNaN(h)&&isNaN(1)?0:h<1?-1:h>1?1:Rb(isNaN(h),isNaN(1)))<0)),c)}function $cn(e){var t,n,i,s;if(n=e.D!=null?e.D:e.B,t=jd(n,kc(91)),t!=-1){i=(mo(0,t,n.length),n.substr(0,t)),s=new B1;do s.a+="[";while((t=_k(n,91,++t))!=-1);Et(i,B4)?s.a+="Z":Et(i,P9)?s.a+="B":Et(i,kD)?s.a+="C":Et(i,M9)?s.a+="D":Et(i,O9)?s.a+="F":Et(i,_9)?s.a+="I":Et(i,R9)?s.a+="J":Et(i,A9)?s.a+="S":(s.a+="L",s.a+=""+i,s.a+=";");try{return null}catch(c){if(c=li(c),!te(c,63))throw B(c)}}else if(jd(n,kc(46))==-1){if(Et(n,B4))return wu;if(Et(n,P9))return Kc;if(Et(n,kD))return Ea;if(Et(n,M9))return uo;if(Et(n,O9))return qv;if(Et(n,_9))return Bn;if(Et(n,R9))return Hg;if(Et(n,A9))return r3}return null}function jcn(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe;for(e.e=t,h=jen(t),Pe=new Le,i=new N(h);i.a=0&&L=m.c.c.length?v=Rae((nn(),Ei),io):v=Rae((nn(),io),io),v*=2,c=n.a.g,n.a.g=w.Math.max(c,c+(v-c)),d=n.b.g,n.b.g=w.Math.max(d,d+(v-d)),s=t}}function Fcn(e){var t,n,i,s;for(Ci(Ar(new xt(null,new Pt(e.a.b,16)),new JIe),new QIe),kJt(e),Ci(Ar(new xt(null,new Pt(e.a.b,16)),new ZIe),new ePe),e.c==(d1(),v6)&&(Ci(Ar(Qs(new xt(null,new Pt(new r0(e.f),1)),new tPe),new nPe),new xDe(e)),Ci(Ar(As(Qs(Qs(new xt(null,new Pt(e.d.b,16)),new rPe),new iPe),new oPe),new sPe),new TDe(e))),s=new Me(ii,ii),t=new Me(Hi,Hi),i=new N(e.a.b);i.a0&&(t.a+=Xo),kj(u(mn(h),167),t);for(t.a+=lY,b=new n4((!i.c&&(i.c=new jt(Tn,i,5,8)),i.c));b.e!=b.i.gc();)b.e>0&&(t.a+=Xo),kj(u(mn(b),167),t);t.a+=")"}}function zcn(e,t,n){var i,s,c,d,h,b,m,v;for(b=new hn((!e.a&&(e.a=new Se(xr,e,10,11)),e.a));b.e!=b.i.gc();)for(h=u(mn(b),27),s=new gn(wn(b1(h).a.Kc(),new j));$n(s);){if(i=u(xn(s),74),!i.b&&(i.b=new jt(Tn,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new jt(Tn,i,5,8)),i.c.i<=1)))throw B(new G3("Graph must not contain hyperedges."));if(!US(i)&&h!=Ds(u(re((!i.c&&(i.c=new jt(Tn,i,5,8)),i.c),0),84)))for(m=new KGe,js(m,i),Ee(m,(ng(),r6),i),PMt(m,u(Rs(ss(n.f,h)),153)),_Mt(m,u(pn(n,Ds(u(re((!i.c&&(i.c=new jt(Tn,i,5,8)),i.c),0),84))),153)),$e(t.c,m),d=new hn((!i.n&&(i.n=new Se(ms,i,1,7)),i.n));d.e!=d.i.gc();)c=u(mn(d),135),v=new GYe(m,c.a),js(v,c),Ee(v,r6,c),v.e.a=w.Math.max(c.g,1),v.e.b=w.Math.max(c.f,1),Jpe(v),$e(t.d,v)}}function Hcn(e,t,n){var i,s,c,d,h,b,m,v,k,T;switch(n.Ug("Node promotion heuristic",1),e.i=t,e.r=u(A(t,(Ue(),Ig)),243),e.r!=(La(),zw)&&e.r!=Av?gun(e):zrn(e),v=u(A(e.i,d3e),17).a,c=new HTe,e.r.g){case 2:case 1:q5(e,c);break;case 3:for(e.r=iB,q5(e,c),b=0,h=new N(e.b);h.ae.k&&(e.r=GM,q5(e,c));break;case 4:for(e.r=iB,q5(e,c),m=0,s=new N(e.c);s.ae.n&&(e.r=WM,q5(e,c));break;case 6:T=Wi(w.Math.ceil(e.g.length*v/100)),q5(e,new dDe(T));break;case 5:k=Wi(w.Math.ceil(e.e*v/100)),q5(e,new hDe(k));break;case 8:Iat(e,!0);break;case 9:Iat(e,!1);break;default:q5(e,c)}e.r!=zw&&e.r!=Av?frn(e,t):_in(e,t),n.Vg()}function Kcn(e){var t,n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne;for(k=e.b,v=new wo(k,0),Pm(v,new Ll(e)),J=!1,d=1;v.b0&&(T.d+=v.n.d,T.d+=v.d),T.a>0&&(T.a+=v.n.a,T.a+=v.d),T.b>0&&(T.b+=v.n.b,T.b+=v.d),T.c>0&&(T.c+=v.n.c,T.c+=v.d),T}function Gut(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O;for(T=n.d,k=n.c,c=new Me(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),d=c.b,m=new N(e.a);m.a0&&(e.c[t.c.p][t.p].d+=fu(e.i,24)*VP*.07000000029802322-.03500000014901161,e.c[t.c.p][t.p].a=e.c[t.c.p][t.p].d/e.c[t.c.p][t.p].b)}}function Wcn(e){var t,n,i,s,c,d,h,b,m,v,k,T,P,O,L,$;for(O=new N(e);O.ai.d,i.d=w.Math.max(i.d,t),h&&n&&(i.d=w.Math.max(i.d,i.a),i.a=i.d+s);break;case 3:n=t>i.a,i.a=w.Math.max(i.a,t),h&&n&&(i.a=w.Math.max(i.a,i.d),i.d=i.a+s);break;case 2:n=t>i.c,i.c=w.Math.max(i.c,t),h&&n&&(i.c=w.Math.max(i.b,i.c),i.b=i.c+s);break;case 4:n=t>i.b,i.b=w.Math.max(i.b,t),h&&n&&(i.b=w.Math.max(i.b,i.c),i.c=i.b+s)}}}function Vut(e,t){var n,i,s,c,d,h,b,m,v;return m="",t.length==0?e.ne(Ige,aX,-1,-1):(v=Qm(t),Et(v.substr(0,3),"at ")&&(v=(Zt(3,v.length+1),v.substr(3))),v=v.replace(/\[.*?\]/g,""),d=v.indexOf("("),d==-1?(d=v.indexOf("@"),d==-1?(m=v,v=""):(m=Qm((Zt(d+1,v.length+1),v.substr(d+1))),v=Qm((mo(0,d,v.length),v.substr(0,d))))):(n=v.indexOf(")",d),m=(mo(d+1,n,v.length),v.substr(d+1,n-(d+1))),v=Qm((mo(0,d,v.length),v.substr(0,d)))),d=jd(v,kc(46)),d!=-1&&(v=(Zt(d+1,v.length+1),v.substr(d+1))),(v.length==0||Et(v,"Anonymous function"))&&(v=aX),h=hA(m,kc(58)),s=Lce(m,kc(58),h-1),b=-1,i=-1,c=Ige,h!=-1&&s!=-1&&(c=(mo(0,s,m.length),m.substr(0,s)),b=cGe((mo(s+1,h,m.length),m.substr(s+1,h-(s+1)))),i=cGe((Zt(h+1,m.length+1),m.substr(h+1)))),e.ne(c,v,b,i))}function Xcn(e){var t,n,i,s,c,d,h,b,m,v,k;for(m=new N(e);m.a0||v.j==rn&&v.e.c.length-v.g.c.length<0)){t=!1;break}for(s=new N(v.g);s.a=m&&ke>=$&&(T+=O.n.b+L.n.b+L.a.b-se,++h));if(n)for(d=new N(J.e);d.a=m&&ke>=$&&(T+=O.n.b+L.n.b+L.a.b-se,++h))}h>0&&(Pe+=T/h,++P)}P>0?(t.a=s*Pe/P,t.g=P):(t.a=0,t.g=0)}function Jcn(e){var t,n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe;for(c=e.f.b,T=c.a,v=c.b,O=e.e.g,P=e.e.f,My(e.e,c.a,c.b),Pe=T/O,Fe=v/P,m=new hn(QA(e.e));m.e!=m.i.gc();)b=u(mn(m),135),oc(b,b.i*Pe),sc(b,b.j*Fe);for(J=new hn(CG(e.e));J.e!=J.i.gc();)z=u(mn(J),123),se=z.i,ke=z.j,se>0&&oc(z,se*Pe),ke>0&&sc(z,ke*Fe);for(wS(e.b,new qxe),t=new Le,h=new S0(new i0(e.c).a);h.b;)d=rw(h),i=u(d.ld(),74),n=u(d.md(),407).a,s=n2(i,!1,!1),k=Fit(Sh(i),bP(s),n),OP(k,s),ne=Zit(i),ne&&$s(t,ne,0)==-1&&(Ft(t.c,ne),Tqe(ne,(yn(k.b!=0),u(k.a.a.c,8)),n));for($=new S0(new i0(e.d).a);$.b;)L=rw($),i=u(L.ld(),74),n=u(L.md(),407).a,s=n2(i,!1,!1),k=Fit(ug(i),VI(bP(s)),n),k=VI(k),OP(k,s),ne=eot(i),ne&&$s(t,ne,0)==-1&&(Ft(t.c,ne),Tqe(ne,(yn(k.b!=0),u(k.c.b.c,8)),n))}function qut(e,t,n,i){var s,c,d,h,b;return h=new fge(t),Hnn(h,i),s=!0,e&&e.pf((gr(),nb))&&(c=u(e.of((gr(),nb)),88),s=c==(ji(),yd)||c==Ps||c==Bs),Vlt(h,!1),ic(h.e.Rf(),new zce(h,!1,s)),$G(h,h.f,(jf(),ul),(ze(),en)),$G(h,h.f,al,Pn),$G(h,h.g,ul,rn),$G(h,h.g,al,fn),Crt(h,en),Crt(h,Pn),Sqe(h,fn),Sqe(h,rn),Im(),d=h.A.Hc((Iu(),Fv))&&h.B.Hc((du(),SO))?Fnt(h):null,d&&JOt(h.a,d),qcn(h),XXt(h),YXt(h),kcn(h),Fon(h),CYt(h),xV(h,en),xV(h,Pn),Tin(h),pln(h),n&&(OVt(h),SYt(h),xV(h,fn),xV(h,rn),b=h.B.Hc((du(),Nx)),Bot(h,b,en),Bot(h,b,Pn),Fot(h,b,fn),Fot(h,b,rn),Ci(new xt(null,new Pt(new Yh(h.i),0)),new Pr),Ci(Ar(new xt(null,Bue(h.r).a.oc()),new Cr),new Gr),DJt(h),h.e.Pf(h.o),Ci(new xt(null,Bue(h.r).a.oc()),new lu)),h.o}function Qcn(e){var t,n,i,s,c,d,h,b,m,v,k,T,P,O,L;for(m=ii,i=new N(e.a.b);i.a1)for(P=new tge(O,ne,i),Po(ne,new nKe(e,P)),Ft(d.c,P),k=ne.a.ec().Kc();k.Ob();)v=u(k.Pb(),42),vc(c,v.b);if(h.a.gc()>1)for(P=new tge(O,h,i),Po(h,new rKe(e,P)),Ft(d.c,P),k=h.a.ec().Kc();k.Ob();)v=u(k.Pb(),42),vc(c,v.b)}}function nun(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z;if(L=e.n,$=e.o,T=e.d,k=le(pe(Vm(e,(Ue(),AZ)))),t){for(v=k*(t.gc()-1),P=0,b=t.Kc();b.Ob();)d=u(b.Pb(),10),v+=d.o.a,P=w.Math.max(P,d.o.b);for(z=L.a-(v-$.a)/2,c=L.b-T.d+P,i=$.a/(t.gc()+1),s=i,h=t.Kc();h.Ob();)d=u(h.Pb(),10),d.n.a=z,d.n.b=c-d.o.b,z+=d.o.a+k,m=rlt(d),m.n.a=d.o.a/2-m.a.a,m.n.b=d.o.b,O=u(A(d,(Oe(),RN)),12),O.e.c.length+O.g.c.length==1&&(O.n.a=s-O.a.a,O.n.b=0,Js(O,e)),s+=i}if(n){for(v=k*(n.gc()-1),P=0,b=n.Kc();b.Ob();)d=u(b.Pb(),10),v+=d.o.a,P=w.Math.max(P,d.o.b);for(z=L.a-(v-$.a)/2,c=L.b+$.b+T.a-P,i=$.a/(n.gc()+1),s=i,h=n.Kc();h.Ob();)d=u(h.Pb(),10),d.n.a=z,d.n.b=c,z+=d.o.a+k,m=rlt(d),m.n.a=d.o.a/2-m.a.a,m.n.b=0,O=u(A(d,(Oe(),RN)),12),O.e.c.length+O.g.c.length==1&&(O.n.a=s-O.a.a,O.n.b=$.b,Js(O,e)),s+=i}}function run(e,t){var n,i,s,c,d,h;if(u(A(t,(Oe(),Kl)),21).Hc((cs(),ka))){for(h=new N(t.a);h.a=0&&d0&&(u(gs(e.b,t),127).a.b=n)}function cun(e,t,n,i){var s,c,d,h,b,m,v,k,T,P,O,L;if(T=le(pe(A(e,(Ue(),K8)))),P=le(pe(A(e,U8))),k=le(pe(A(e,Rv))),h=e.o,c=u(Ye(e.j,0),12),d=c.n,L=EZt(c,k),!!L){if(t.Hc((Qc(),T1)))switch(u(A(e,(Oe(),fl)),64).g){case 1:L.c=(h.a-L.b)/2-d.a,L.d=P;break;case 3:L.c=(h.a-L.b)/2-d.a,L.d=-P-L.a;break;case 2:n&&c.e.c.length==0&&c.g.c.length==0?(v=i?L.a:u(Ye(c.f,0),72).o.b,L.d=(h.b-v)/2-d.b):L.d=h.b+P-d.b,L.c=-T-L.b;break;case 4:n&&c.e.c.length==0&&c.g.c.length==0?(v=i?L.a:u(Ye(c.f,0),72).o.b,L.d=(h.b-v)/2-d.b):L.d=h.b+P-d.b,L.c=T}else if(t.Hc($g))switch(u(A(e,(Oe(),fl)),64).g){case 1:case 3:L.c=d.a+T;break;case 2:case 4:n&&!c.c?(v=i?L.a:u(Ye(c.f,0),72).o.b,L.d=(h.b-v)/2-d.b):L.d=d.b+P}for(s=L.d,m=new N(c.f);m.a=t.length)return{done:!0};var s=t[i++];return{value:[s,n.get(s)],done:!1}}}},oin()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(t){return this.obj[":"+t]},e.prototype.set=function(t,n){this.obj[":"+t]=n},e.prototype[jX]=function(t){delete this.obj[":"+t]},e.prototype.keys=function(){var t=[];for(var n in this.obj)n.charCodeAt(0)==58&&t.push(n.substring(1));return t}),e}function Wr(){Wr=U,bx=new Fr(r0e),new fi("DEPTH",Ae(0)),lee=new fi("FAN",Ae(0)),E4e=new fi(ydt,Ae(0)),Og=new fi("ROOT",(Gt(),!1)),aee=new fi("LEFTNEIGHBOR",null),vyt=new fi("RIGHTNEIGHBOR",null),fB=new fi("LEFTSIBLING",null),fee=new fi("RIGHTSIBLING",null),see=new fi("DUMMY",!1),new fi("LEVEL",Ae(0)),P4e=new fi("REMOVABLE_EDGES",new Zr),QM=new fi("XCOOR",Ae(0)),ZM=new fi("YCOOR",Ae(0)),dB=new fi("LEVELHEIGHT",0),Kf=new fi("LEVELMIN",0),gf=new fi("LEVELMAX",0),cee=new fi("GRAPH_XMIN",0),uee=new fi("GRAPH_YMIN",0),T4e=new fi("GRAPH_XMAX",0),I4e=new fi("GRAPH_YMAX",0),x4e=new fi("COMPACT_LEVEL_ASCENSION",!1),oee=new fi("COMPACT_CONSTRAINTS",new Le),gx=new fi("ID",""),wx=new fi("POSITION",Ae(0)),vp=new fi("PRELIM",0),X8=new fi("MODIFIER",0),q8=new Fr(Rft),JM=new Fr(Aft)}function dun(e){Gpe();var t,n,i,s,c,d,h,b,m,v,k,T,P,O,L,$;if(e==null)return null;if(k=e.length*8,k==0)return"";for(h=k%24,P=k/24|0,T=h!=0?P+1:P,c=null,c=be(Ea,Yd,28,T*4,15,1),m=0,v=0,t=0,n=0,i=0,d=0,s=0,b=0;b>24,m=(t&3)<<24>>24,O=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,L=n&-128?(n>>4^240)<<24>>24:n>>4<<24>>24,$=i&-128?(i>>6^252)<<24>>24:i>>6<<24>>24,c[d++]=Pp[O],c[d++]=Pp[L|m<<4],c[d++]=Pp[v<<2|$],c[d++]=Pp[i&63];return h==8?(t=e[s],m=(t&3)<<24>>24,O=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,c[d++]=Pp[O],c[d++]=Pp[m<<4],c[d++]=61,c[d++]=61):h==16&&(t=e[s],n=e[s+1],v=(n&15)<<24>>24,m=(t&3)<<24>>24,O=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,L=n&-128?(n>>4^240)<<24>>24:n>>4<<24>>24,c[d++]=Pp[O],c[d++]=Pp[L|m<<4],c[d++]=Pp[v<<2],c[d++]=61),Ud(c,0,c.length)}function hun(e,t){var n,i,s,c,d,h,b;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>jo&&_ae(t,e.p-gg),d=t.q.getDate(),pI(t,1),e.k>=0&&tFt(t,e.k),e.c>=0?pI(t,e.c):e.k>=0?(b=new lde(t.q.getFullYear()-gg,t.q.getMonth(),35),i=35-b.q.getDate(),pI(t,w.Math.min(i,d))):pI(t,d),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),WRt(t,e.f==24&&e.g?0:e.f),e.j>=0&&DHt(t,e.j),e.n>=0&&XHt(t,e.n),e.i>=0&&tUe(t,Ho(Ko(dP(bl(t.q.getTime()),ap),ap),e.i)),e.a&&(s=new TR,_ae(s,s.q.getFullYear()-gg-80),NK(bl(t.q.getTime()),bl(s.q.getTime()))&&_ae(t,s.q.getFullYear()-gg+100)),e.d>=0){if(e.c==-1)n=(7+e.d-t.q.getDay())%7,n>3&&(n-=7),h=t.q.getMonth(),pI(t,t.q.getDate()+n),t.q.getMonth()!=h&&pI(t,t.q.getDate()+(n>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>jo&&(c=t.q.getTimezoneOffset(),tUe(t,Ho(bl(t.q.getTime()),(e.o-c)*60*ap))),!0}function Zut(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se;if(s=A(t,(Oe(),jr)),!!te(s,207)){for(O=u(s,27),L=t.e,T=new Vo(t.c),c=t.d,T.a+=c.b,T.b+=c.d,se=u(Ie(O,(Ue(),YN)),181),Ac(se,(du(),NB))&&(P=u(Ie(O,w3e),107),CMt(P,c.a),OMt(P,c.d),SMt(P,c.b),MMt(P,c.c)),n=new Le,v=new N(t.a);v.ai.c.length-1;)$e(i,new Gi(d2,Lbe));n=u(A(s,ch),17).a,Zh(u(A(e,Kw),88))?(s.e.ale(pe((_t(n,i.c.length),u(i.c[n],42)).b))&&nK((_t(n,i.c.length),u(i.c[n],42)),s.e.a+s.f.a)):(s.e.ble(pe((_t(n,i.c.length),u(i.c[n],42)).b))&&nK((_t(n,i.c.length),u(i.c[n],42)),s.e.b+s.f.b))}for(c=Ln(e.b,0);c.b!=c.d.c;)s=u(_n(c),40),n=u(A(s,(sl(),ch)),17).a,Ee(s,(Wr(),Kf),pe((_t(n,i.c.length),u(i.c[n],42)).a)),Ee(s,gf,pe((_t(n,i.c.length),u(i.c[n],42)).b));t.Vg()}function gun(e){var t,n,i,s,c,d,h,b,m,v,k,T,P,O,L;for(e.o=le(pe(A(e.i,(Ue(),Fw)))),e.f=le(pe(A(e.i,Z0))),e.j=e.i.b.c.length,h=e.j-1,T=0,e.k=0,e.n=0,e.b=td(be(Oo,_e,17,e.j,0,1)),e.c=td(be(Bi,_e,345,e.j,7,1)),d=new N(e.i.b);d.a0&&$e(e.q,v),$e(e.p,v);t-=i,P=b+t,m+=t*e.f,la(e.b,h,Ae(P)),la(e.c,h,m),e.k=w.Math.max(e.k,P),e.n=w.Math.max(e.n,m),e.e+=t,t+=L}}function ze(){ze=U;var e;nl=new NT(a9,0),en=new NT(_j,1),fn=new NT(WX,2),Pn=new NT(VX,3),rn=new NT(qX,4),Cd=(Ot(),new yk((e=u(Pf(ts),9),new ra(e,u(ef(e,e.length),9),0)))),yf=ep(Yr(en,H(F(ts,1),Sl,64,0,[]))),Sa=ep(Yr(fn,H(F(ts,1),Sl,64,0,[]))),qu=ep(Yr(Pn,H(F(ts,1),Sl,64,0,[]))),Ka=ep(Yr(rn,H(F(ts,1),Sl,64,0,[]))),xc=ep(Yr(en,H(F(ts,1),Sl,64,0,[Pn]))),dc=ep(Yr(fn,H(F(ts,1),Sl,64,0,[rn]))),kf=ep(Yr(en,H(F(ts,1),Sl,64,0,[rn]))),tu=ep(Yr(en,H(F(ts,1),Sl,64,0,[fn]))),Xu=ep(Yr(Pn,H(F(ts,1),Sl,64,0,[rn]))),xa=ep(Yr(fn,H(F(ts,1),Sl,64,0,[Pn]))),nu=ep(Yr(en,H(F(ts,1),Sl,64,0,[fn,rn]))),Sc=ep(Yr(fn,H(F(ts,1),Sl,64,0,[Pn,rn]))),Ec=ep(Yr(en,H(F(ts,1),Sl,64,0,[Pn,rn]))),Hc=ep(Yr(en,H(F(ts,1),Sl,64,0,[fn,Pn]))),Gl=ep(Yr(en,H(F(ts,1),Sl,64,0,[fn,Pn,rn])))}function bun(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe;for(t.Ug(Zft,1),L=new Le,Pe=new Le,m=new N(e.b);m.a0&&(ne-=P),nge(d,ne),v=0,T=new N(d.a);T.a0),h.a.Xb(h.c=--h.b)),b=.4*i*v,!c&&h.b0&&(b=(Zt(0,t.length),t.charCodeAt(0)),b!=64)){if(b==37&&(k=t.lastIndexOf("%"),m=!1,k!=0&&(k==T-1||(m=(Zt(k+1,t.length),t.charCodeAt(k+1)==46))))){if(d=(mo(1,k,t.length),t.substr(1,k-1)),ne=Et("%",d)?null:hge(d),i=0,m)try{i=zu((Zt(k+2,t.length+1),t.substr(k+2)),jo,Mr)}catch(se){throw se=li(se),te(se,130)?(h=se,B(new _L(h))):B(se)}for($=Ffe(e.Gh());$.Ob();)if(O=o$($),te(O,519)&&(s=u(O,598),J=s.d,(ne==null?J==null:Et(ne,J))&&i--==0))return s;return null}if(v=t.lastIndexOf("."),P=v==-1?t:(mo(0,v,t.length),t.substr(0,v)),n=0,v!=-1)try{n=zu((Zt(v+1,t.length+1),t.substr(v+1)),jo,Mr)}catch(se){if(se=li(se),te(se,130))P=t;else throw B(se)}for(P=Et("%",P)?null:hge(P),L=Ffe(e.Gh());L.Ob();)if(O=o$(L),te(O,197)&&(c=u(O,197),z=c.xe(),(P==null?z==null:Et(P,z))&&n--==0))return c;return null}return Hut(e,t)}function xun(e){var t,n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J;for(v=new On,b=new qb,i=new N(e.a.a.b);i.at.d.c){if(P=e.c[t.a.d],$=e.c[k.a.d],P==$)continue;cf(Ja(Ya(Qa(Xa(new Pa,1),100),P),$))}}}}}function Eun(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe;if(T=u(u($r(e.r,t),21),87),t==(ze(),fn)||t==rn){Yut(e,t);return}for(c=t==en?(iw(),yM):(iw(),kM),se=t==en?(yc(),zf):(yc(),df),n=u(gs(e.b,t),127),i=n.i,s=i.c+zy(H(F(uo,1),ws,28,15,[n.n.b,e.C.b,e.k])),z=i.c+i.b-zy(H(F(uo,1),ws,28,15,[n.n.c,e.C.c,e.k])),d=Ise(Kce(c),e.t),J=t==en?Hi:ii,k=T.Kc();k.Ob();)m=u(k.Pb(),117),!(!m.c||m.c.d.c.length<=0)&&($=m.b.Mf(),L=m.e,P=m.c,O=P.i,O.b=(b=P.n,P.e.a+b.b+b.c),O.a=(h=P.n,P.e.b+h.d+h.a),aI(se,Kge),P.f=se,Lf(P,(Yc(),ff)),O.c=L.a-(O.b-$.a)/2,ke=w.Math.min(s,L.a),Pe=w.Math.max(z,L.a+$.a),O.cPe&&(O.c=Pe-O.b),$e(d.d,new rG(O,Lde(d,O))),J=t==en?w.Math.max(J,L.b+m.b.Mf().b):w.Math.min(J,L.b));for(J+=t==en?e.t:-e.t,ne=Zde((d.e=J,d)),ne>0&&(u(gs(e.b,t),127).a.b=ne),v=T.Kc();v.Ob();)m=u(v.Pb(),117),!(!m.c||m.c.d.c.length<=0)&&(O=m.c.i,O.c-=m.e.a,O.d-=m.e.b)}function Tun(e){var t,n,i,s,c,d,h,b,m,v,k,T,P;for(t=new On,b=new hn(e);b.e!=b.i.gc();){for(h=u(mn(b),27),n=new _i,vr(CQ,h,n),P=new FH,s=u(Ks(new xt(null,new zb(new gn(wn(CP(h).a.Kc(),new j)))),wVe(P,Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[(Jc(),Ws)])))),85),JZe(n,u(s.xc((Gt(),!0)),16),new Uxe),i=u(Ks(Ar(u(s.xc(!1),15).Lc(),new Gxe),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[Ws]))),15),d=i.Kc();d.Ob();)c=u(d.Pb(),74),T=Zit(c),T&&(m=u(Rs(ss(t.f,T)),21),m||(m=Clt(T),Jl(t.f,T,m)),vo(n,m));for(s=u(Ks(new xt(null,new zb(new gn(wn(b1(h).a.Kc(),new j)))),wVe(P,Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[Ws])))),85),JZe(n,u(s.xc(!0),16),new Wxe),i=u(Ks(Ar(u(s.xc(!1),15).Lc(),new Vxe),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[Ws]))),15),k=i.Kc();k.Ob();)v=u(k.Pb(),74),T=eot(v),T&&(m=u(Rs(ss(t.f,T)),21),m||(m=Clt(T),Jl(t.f,T,m)),vo(n,m))}}function Iun(e,t){Hq();var n,i,s,c,d,h,b,m,v,k,T,P,O,L;if(b=kl(e,0)<0,b&&(e=J1(e)),kl(e,0)==0)switch(t){case 0:return"0";case 1:return n8;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return P=new Hp,t<0?P.a+="0E+":P.a+="0E",P.a+=t==jo?"2147483648":""+-t,P.a}v=18,k=be(Ea,Yd,28,v+1,15,1),n=v,L=e;do m=L,L=dP(L,10),k[--n]=Vn(Ho(48,Ra(m,Ko(L,10))))&Di;while(kl(L,0)!=0);if(s=Ra(Ra(Ra(v,n),t),1),t==0)return b&&(k[--n]=45),Ud(k,n,v-n);if(t>0&&kl(s,-6)>=0){if(kl(s,0)>=0){for(c=n+Vn(s),h=v-1;h>=c;h--)k[h+1]=k[h];return k[++c]=46,b&&(k[--n]=45),Ud(k,n,v-n+1)}for(d=2;NK(d,Ho(J1(s),1));d++)k[--n]=48;return k[--n]=46,k[--n]=48,b&&(k[--n]=45),Ud(k,n,v-n)}return O=n+1,i=v,T=new V3,b&&(T.a+="-"),i-O>=1?(h0(T,k[n]),T.a+=".",T.a+=Ud(k,n+1,v-n-1)):T.a+=Ud(k,n,v-n),T.a+="E",kl(s,0)>0&&(T.a+="+"),T.a+=""+X7(s),T.a}function gw(e,t,n,i,s){var c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe;if($=new Me(e.g,e.f),L=M1e(e),L.a=w.Math.max(L.a,t),L.b=w.Math.max(L.b,n),Pe=L.a/$.a,v=L.b/$.b,se=L.a-$.a,b=L.b-$.b,i)for(d=ri(e)?u(Ie(ri(e),(gr(),nb)),88):u(Ie(e,(gr(),nb)),88),h=fe(Ie(e,(gr(),Mx)))===fe((fo(),Ul)),J=new hn((!e.c&&(e.c=new Se(ru,e,9,9)),e.c));J.e!=J.i.gc();)switch(z=u(mn(J),123),ne=u(Ie(z,J2),64),ne==(ze(),nl)&&(ne=Wpe(z,d),Br(z,J2,ne)),ne.g){case 1:h||oc(z,z.i*Pe);break;case 2:oc(z,z.i+se),h||sc(z,z.j*v);break;case 3:h||oc(z,z.i*Pe),sc(z,z.j+b);break;case 4:h||sc(z,z.j*v)}if(My(e,L.a,L.b),s)for(T=new hn((!e.n&&(e.n=new Se(ms,e,1,7)),e.n));T.e!=T.i.gc();)k=u(mn(T),135),P=k.i+k.g/2,O=k.j+k.f/2,ke=P/$.a,m=O/$.b,ke+m>=1&&(ke-m>0&&O>=0?(oc(k,k.i+se),sc(k,k.j+b*m)):ke-m<0&&P>=0&&(oc(k,k.i+se*ke),sc(k,k.j+b)));return Br(e,(gr(),rb),(Iu(),c=u(Pf(Dx),9),new ra(c,u(ef(c,c.length),9),0))),new Me(Pe,v)}function rat(e){Pb(e,new _0(yR(Eb(Cb(xb(Sb(new e0,wa),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new QOe),wa))),Re(e,wa,nD,Ke(g2t)),Re(e,wa,av,Ke(b2t)),Re(e,wa,h2,Ke(f2t)),Re(e,wa,X4,Ke(d2t)),Re(e,wa,q4,Ke(h2t)),Re(e,wa,u8,Ke(a2t)),Re(e,wa,p9,Ke(r6e)),Re(e,wa,a8,Ke(p2t)),Re(e,wa,JY,Ke(xee)),Re(e,wa,YY,Ke(Eee)),Re(e,wa,uD,Ke(o6e)),Re(e,wa,QY,Ke(Tee)),Re(e,wa,ZY,Ke(s6e)),Re(e,wa,Zbe,Ke(l6e)),Re(e,wa,Qbe,Ke(i6e)),Re(e,wa,qbe,Ke(wB)),Re(e,wa,Xbe,Ke(mB)),Re(e,wa,Ybe,Ke(eO)),Re(e,wa,Jbe,Ke(c6e)),Re(e,wa,Vbe,Ke(n6e))}function Cj(e){var t,n,i,s,c,d,h,b,m,v,k;if(e==null)throw B(new $d(Cc));if(m=e,c=e.length,b=!1,c>0&&(t=(Zt(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(Zt(1,e.length+1),e.substr(1)),--c,b=t==45)),c==0)throw B(new $d(mw+m+'"'));for(;e.length>0&&(Zt(0,e.length),e.charCodeAt(0)==48);)e=(Zt(1,e.length+1),e.substr(1)),--c;if(c>(Lct(),Cpt)[10])throw B(new $d(mw+m+'"'));for(s=0;s0&&(k=-parseInt((mo(0,i,e.length),e.substr(0,i)),10),e=(Zt(i,e.length+1),e.substr(i)),c-=i,n=!1);c>=d;){if(i=parseInt((mo(0,d,e.length),e.substr(0,d)),10),e=(Zt(d,e.length+1),e.substr(d)),c-=d,n)n=!1;else{if(kl(k,h)<0)throw B(new $d(mw+m+'"'));k=Ko(k,v)}k=Ra(k,i)}if(kl(k,0)>0)throw B(new $d(mw+m+'"'));if(!b&&(k=J1(k),kl(k,0)<0))throw B(new $d(mw+m+'"'));return k}function hge(e){qq();var t,n,i,s,c,d,h,b;if(e==null)return null;if(s=jd(e,kc(37)),s<0)return e;for(b=new Ru((mo(0,s,e.length),e.substr(0,s))),t=be(Kc,w2,28,4,15,1),h=0,i=0,d=e.length;ss+2&&KW((Zt(s+1,e.length),e.charCodeAt(s+1)),G5e,W5e)&&KW((Zt(s+2,e.length),e.charCodeAt(s+2)),G5e,W5e))if(n=qjt((Zt(s+1,e.length),e.charCodeAt(s+1)),(Zt(s+2,e.length),e.charCodeAt(s+2))),s+=2,i>0?(n&192)==128?t[h++]=n<<24>>24:i=0:n>=128&&((n&224)==192?(t[h++]=n<<24>>24,i=2):(n&240)==224?(t[h++]=n<<24>>24,i=3):(n&248)==240&&(t[h++]=n<<24>>24,i=4)),i>0){if(h==i){switch(h){case 2:{h0(b,((t[0]&31)<<6|t[1]&63)&Di);break}case 3:{h0(b,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&Di);break}}h=0,i=0}}else{for(c=0;c=2){if((!e.a&&(e.a=new Se(ei,e,6,6)),e.a).i==0)n=(Up(),s=new Q_,s),Dn((!e.a&&(e.a=new Se(ei,e,6,6)),e.a),n);else if((!e.a&&(e.a=new Se(ei,e,6,6)),e.a).i>1)for(T=new n4((!e.a&&(e.a=new Se(ei,e,6,6)),e.a));T.e!=T.i.gc();)BS(T);OP(t,u(re((!e.a&&(e.a=new Se(ei,e,6,6)),e.a),0),166))}if(k)for(i=new hn((!e.a&&(e.a=new Se(ei,e,6,6)),e.a));i.e!=i.i.gc();)for(n=u(mn(i),166),m=new hn((!n.a&&(n.a=new Ai(Yu,n,5)),n.a));m.e!=m.i.gc();)b=u(mn(m),377),h.a=w.Math.max(h.a,b.a),h.b=w.Math.max(h.b,b.b);for(d=new hn((!e.n&&(e.n=new Se(ms,e,1,7)),e.n));d.e!=d.i.gc();)c=u(mn(d),135),v=u(Ie(c,_x),8),v&&ta(c,v.a,v.b),k&&(h.a=w.Math.max(h.a,c.i+c.g),h.b=w.Math.max(h.b,c.j+c.f));return h}function oat(e,t,n,i,s){var c,d,h;if(iZe(e,t),d=t[0],c=Lo(n.c,0),h=-1,ade(n))if(i>0){if(d+i>e.length)return!1;h=J$((mo(0,d+i,e.length),e.substr(0,d+i)),t)}else h=J$(e,t);switch(c){case 71:return h=Zy(e,d,H(F(Je,1),_e,2,6,[Uat,Gat]),t),s.e=h,!0;case 77:return Krn(e,t,s,h,d);case 76:return Urn(e,t,s,h,d);case 69:return $Zt(e,t,d,s);case 99:return jZt(e,t,d,s);case 97:return h=Zy(e,d,H(F(Je,1),_e,2,6,["AM","PM"]),t),s.b=h,!0;case 121:return Grn(e,t,d,h,n,s);case 100:return h<=0?!1:(s.c=h,!0);case 83:return h<0?!1:JVt(h,d,t[0],s);case 104:h==12&&(h=0);case 75:case 72:return h<0?!1:(s.f=h,s.g=!1,!0);case 107:return h<0?!1:(s.f=h,s.g=!0,!0);case 109:return h<0?!1:(s.j=h,!0);case 115:return h<0?!1:(s.n=h,!0);case 90:if(dpt[b]&&($=b),k=new N(e.a.b);k.a1;){if(s=jnn(t),k=c.g,O=u(Ie(t,yx),107),L=le(pe(Ie(t,CB))),(!t.a&&(t.a=new Se(xr,t,10,11)),t.a).i>1&&le(pe(Ie(t,(xh(),Lee))))!=ii&&(c.c+(O.b+O.c))/(c.b+(O.d+O.a))1&&le(pe(Ie(t,(xh(),Aee))))!=ii&&(c.c+(O.b+O.c))/(c.b+(O.d+O.a))>L&&Br(s,(xh(),jv),w.Math.max(le(pe(Ie(t,vx))),le(pe(Ie(s,jv)))-le(pe(Ie(t,Aee))))),P=new yle(i,v),b=Eat(P,s,T),m=b.g,m>=k&&m==m){for(d=0;d<(!s.a&&(s.a=new Se(xr,s,10,11)),s.a).i;d++)Qot(e,u(re((!s.a&&(s.a=new Se(xr,s,10,11)),s.a),d),27),u(re((!t.a&&(t.a=new Se(xr,t,10,11)),t.a),d),27));OZe(t,P),FBt(c,b.c),BBt(c,b.b)}--h}Br(t,(xh(),Y8),c.b),Br(t,h6,c.c),n.Vg()}function _un(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J;for(t.Ug("Interactive node layering",1),n=new Le,T=new N(e.a);T.a=h){yn(J.b>0),J.a.Xb(J.c=--J.b);break}else $.a>b&&(i?(zi(i.b,$.b),i.a=w.Math.max(i.a,$.a),Eu(J)):($e($.b,v),$.c=w.Math.min($.c,b),$.a=w.Math.max($.a,h),i=$));i||(i=new QBe,i.c=b,i.a=h,Pm(J,i),$e(i.b,v))}for(d=e.b,m=0,z=new N(n);z.aP&&(c&&(Wo(Pe,T),Wo(pt,Ae(m.b-1))),Tr=n.b,di+=T+t,T=0,v=w.Math.max(v,n.b+n.c+vn)),oc(h,Tr),sc(h,di),v=w.Math.max(v,Tr+vn+n.c),T=w.Math.max(T,k),Tr+=vn+t;if(v=w.Math.max(v,i),Ht=di+T+n.a,HtZd,dt=w.Math.abs(T.b-O.b)>Zd,(!n&&pt&&dt||n&&(pt||dt))&&or($.a,se)),vo($.a,i),i.b==0?T=se:T=(yn(i.b!=0),u(i.c.b.c,8)),wGt(P,k,L),_et(s)==Fe&&(Io(Fe.i)!=s.a&&(L=new po,E1e(L,Io(Fe.i),J)),Ee($,kZ,L)),ZQt(P,$,J),v.a.zc(P,v);zo($,ke),ao($,Fe)}for(m=v.a.ec().Kc();m.Ob();)b=u(m.Pb(),18),zo(b,null),ao(b,null);t.Vg()}function Lun(e,t){var n,i,s,c,d,h,b,m,v,k,T;for(s=u(A(e,(sl(),Kw)),88),v=s==(ji(),Ps)||s==Bs?vd:Bs,n=u(Ks(Ar(new xt(null,new Pt(e.b,16)),new iOe),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[(Jc(),Ws)]))),15),b=u(Ks(As(n.Oc(),new vNe(t)),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[Ws]))),15),b.Gc(u(Ks(As(n.Oc(),new yNe(t)),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[Ws]))),16)),b.jd(new kNe(v)),T=new z1(new CNe(s)),i=new On,h=b.Kc();h.Ob();)d=u(h.Pb(),240),m=u(d.a,40),qe(Ve(d.c))?(T.a.zc(m,(Gt(),kg))==null,new pk(T.a.Zc(m,!1)).a.gc()>0&&vr(i,m,u(new pk(T.a.Zc(m,!1)).a.Vc(),40)),new pk(T.a.ad(m,!0)).a.gc()>1&&vr(i,$nt(T,m),m)):(new pk(T.a.Zc(m,!1)).a.gc()>0&&(c=u(new pk(T.a.Zc(m,!1)).a.Vc(),40),fe(c)===fe(Rs(ss(i.f,m)))&&u(A(m,(Wr(),oee)),15).Fc(c)),new pk(T.a.ad(m,!0)).a.gc()>1&&(k=$nt(T,m),fe(Rs(ss(i.f,k)))===fe(m)&&u(A(k,(Wr(),oee)),15).Fc(m)),T.a.Bc(m)!=null)}function sat(e){var t,n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se;if(e.gc()==1)return u(e.Xb(0),235);if(e.gc()<=0)return new CL;for(s=e.Kc();s.Ob();){for(n=u(s.Pb(),235),O=0,v=Mr,k=Mr,b=jo,m=jo,P=new N(n.e);P.ah&&(ne=0,se+=d+z,d=0),son(L,n,ne,se),t=w.Math.max(t,ne+$.a),d=w.Math.max(d,$.b),ne+=$.a+z;return L}function $un(e){Gpe();var t,n,i,s,c,d,h,b,m,v,k,T,P,O,L,$;if(e==null||(c=AL(e),O=uVt(c),O%4!=0))return null;if(L=O/4|0,L==0)return be(Kc,w2,28,0,15,1);for(k=null,t=0,n=0,i=0,s=0,d=0,h=0,b=0,m=0,P=0,T=0,v=0,k=be(Kc,w2,28,L*3,15,1);P>4)<<24>>24,k[T++]=((n&15)<<4|i>>2&15)<<24>>24,k[T++]=(i<<6|s)<<24>>24}return!vT(d=c[v++])||!vT(h=c[v++])?null:(t=xd[d],n=xd[h],b=c[v++],m=c[v++],xd[b]==-1||xd[m]==-1?b==61&&m==61?n&15?null:($=be(Kc,w2,28,P*3+1,15,1),Ol(k,0,$,0,P*3),$[T]=(t<<2|n>>4)<<24>>24,$):b!=61&&m==61?(i=xd[b],i&3?null:($=be(Kc,w2,28,P*3+2,15,1),Ol(k,0,$,0,P*3),$[T++]=(t<<2|n>>4)<<24>>24,$[T]=((n&15)<<4|i>>2&15)<<24>>24,$)):null:(i=xd[b],s=xd[m],k[T++]=(t<<2|n>>4)<<24>>24,k[T++]=((n&15)<<4|i>>2&15)<<24>>24,k[T++]=(i<<6|s)<<24>>24,k))}function jun(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke;for(t.Ug(Zft,1),O=u(A(e,(Ue(),x1)),223),s=new N(e.b);s.a=2){for(L=!0,T=new N(c.j),n=u(D(T),12),P=null;T.a0)if(i=k.gc(),m=Wi(w.Math.floor((i+1)/2))-1,s=Wi(w.Math.ceil((i+1)/2))-1,t.o==wd)for(v=s;v>=m;v--)t.a[se.p]==se&&(L=u(k.Xb(v),42),O=u(L.a,10),!Mf(n,L.b)&&P>e.b.e[O.p]&&(t.a[O.p]=se,t.g[se.p]=t.g[O.p],t.a[se.p]=t.g[se.p],t.f[t.g[se.p].p]=(Gt(),!!(qe(t.f[t.g[se.p].p])&se.k==(nn(),io))),P=e.b.e[O.p]));else for(v=m;v<=s;v++)t.a[se.p]==se&&(z=u(k.Xb(v),42),$=u(z.a,10),!Mf(n,z.b)&&P0&&(s=u(Ye($.c.a,Pe-1),10),d=e.i[s.p],pt=w.Math.ceil(_y(e.n,s,$)),c=ke.a.e-$.d.d-(d.a.e+s.o.b+s.d.a)-pt),m=ii,Pe<$.c.a.c.length-1&&(b=u(Ye($.c.a,Pe+1),10),v=e.i[b.p],pt=w.Math.ceil(_y(e.n,b,$)),m=v.a.e-b.d.d-(ke.a.e+$.o.b+$.d.a)-pt),n&&(Yf(),of(nh),w.Math.abs(c-m)<=nh||c==m||isNaN(c)&&isNaN(m))?!0:(i=hG(ne.a),h=-hG(ne.b),k=-hG(Fe.a),J=hG(Fe.b),L=ne.a.e.e-ne.a.a-(ne.b.e.e-ne.b.a)>0&&Fe.a.e.e-Fe.a.a-(Fe.b.e.e-Fe.b.a)<0,O=ne.a.e.e-ne.a.a-(ne.b.e.e-ne.b.a)<0&&Fe.a.e.e-Fe.a.a-(Fe.b.e.e-Fe.b.a)>0,P=ne.a.e.e+ne.b.aFe.b.e.e+Fe.a.a,se=0,!L&&!O&&(T?c+k>0?se=k:m-i>0&&(se=i):P&&(c+h>0?se=h:m-J>0&&(se=J))),ke.a.e+=se,ke.b&&(ke.d.e+=se),!1))}function cat(e,t,n){var i,s,c,d,h,b,m,v,k,T;if(i=new ia(t.Lf().a,t.Lf().b,t.Mf().a,t.Mf().b),s=new e4,e.c)for(d=new N(t.Rf());d.am&&(i.a+=LUe(be(Ea,Yd,28,-m,15,1))),i.a+="Is",jd(b,kc(32))>=0)for(s=0;s=i.o.b/2}else J=!k;J?(z=u(A(i,(Oe(),f6)),15),z?T?c=z:(s=u(A(i,s6),15),s?z.gc()<=s.gc()?c=z:c=s:(c=new Le,Ee(i,s6,c))):(c=new Le,Ee(i,f6,c))):(s=u(A(i,(Oe(),s6)),15),s?k?c=s:(z=u(A(i,f6),15),z?s.gc()<=z.gc()?c=s:c=z:(c=new Le,Ee(i,f6,c))):(c=new Le,Ee(i,s6,c))),c.Fc(e),Ee(e,(Oe(),RN),n),t.d==n?(ao(t,null),n.e.c.length+n.g.c.length==0&&Js(n,null),eWt(n)):(zo(t,null),n.e.c.length+n.g.c.length==0&&Js(n,null)),Au(t.a)}function Fun(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt,zt,Ht,vn,Tr,di;for(n.Ug("MinWidth layering",1),P=t.b,Fe=t.a,di=u(A(t,(Ue(),a3e)),17).a,h=u(A(t,f3e),17).a,e.b=le(pe(A(t,pf))),e.d=ii,se=new N(Fe);se.a0?(m=0,$&&(m+=h),m+=(dt-1)*d,ne&&(m+=h),pt&&ne&&(m=w.Math.max(m,srn(ne,d,J,Fe))),m=e.a&&(i=Csn(e,J),v=w.Math.max(v,i.b),se=w.Math.max(se,i.d),$e(h,new Gi(J,i)));for(pt=new Le,m=0;m0),$.a.Xb($.c=--$.b),dt=new Ll(e.b),Pm($,dt),yn($.b<$.d.gc()),$.d.Xb($.c=$.b++),dt));for(d=new N(h);d.a0){for(T=v<100?null:new Kp(v),m=new Vfe(t),O=m.g,z=be(Bn,ur,28,v,15,1),i=0,se=new Qb(v),s=0;s=0;)if(P!=null?Rr(P,O[b]):fe(P)===fe(O[b])){z.length<=i&&($=z,z=be(Bn,ur,28,2*z.length,15,1),Ol($,0,z,0,i)),z[i++]=s,Dn(se,O[b]);break e}if(P=P,fe(P)===fe(h))break}}if(m=se,O=se.g,v=i,i>z.length&&($=z,z=be(Bn,ur,28,i,15,1),Ol($,0,z,0,i)),i>0){for(ne=!0,c=0;c=0;)R4(e,z[d]);if(i!=v){for(s=v;--s>=i;)R4(m,s);$=z,z=be(Bn,ur,28,i,15,1),Ol($,0,z,0,i)}t=m}}}else for(t=rYt(e,t),s=e.i;--s>=0;)t.Hc(e.g[s])&&(R4(e,s),ne=!0);if(ne){if(z!=null){for(n=t.gc(),k=n==1?rS(e,4,t.Kc().Pb(),null,z[0],L):rS(e,6,t,z,z[0],L),T=n<100?null:new Kp(n),s=t.Kc();s.Ob();)P=s.Pb(),T=jce(e,u(P,76),T);T?(T.nj(k),T.oj()):_r(e.e,k)}else{for(T=uLt(t.gc()),s=t.Kc();s.Ob();)P=s.Pb(),T=jce(e,u(P,76),T);T&&T.oj()}return!0}else return!1}function Kun(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne;for(n=new Irt(t),n.a||won(t),m=gin(t),b=new qb,$=new Mlt,L=new N(t.a);L.a0||n.o==wd&&s=n}function Gun(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt,zt,Ht,vn;for(ne=t,J=new qb,se=new qb,v=Jb(ne,$we),i=new Lqe(e,n,J,se),fZt(i.a,i.b,i.c,i.d,v),b=(Fe=J.i,Fe||(J.i=new Ly(J,J.c))),dt=b.Kc();dt.Ob();)for(pt=u(dt.Pb(),166),s=u($r(J,pt),21),L=s.Kc();L.Ob();)if(O=L.Pb(),ke=u(Hy(e.d,O),166),ke)h=(!pt.e&&(pt.e=new jt(ei,pt,10,9)),pt.e),Dn(h,ke);else throw d=r1(ne,rh),T=Tht+O+Iht+d,P=T+v8,B(new Ld(P));for(m=(Pe=se.i,Pe||(se.i=new Ly(se,se.c))),Ht=m.Kc();Ht.Ob();)for(zt=u(Ht.Pb(),166),c=u($r(se,zt),21),z=c.Kc();z.Ob();)if($=z.Pb(),ke=u(Hy(e.d,$),166),ke)k=(!zt.g&&(zt.g=new jt(ei,zt,9,10)),zt.g),Dn(k,ke);else throw d=r1(ne,rh),T=Tht+$+Iht+d,P=T+v8,B(new Ld(P));!n.b&&(n.b=new jt(Tn,n,4,7)),n.b.i!=0&&(!n.c&&(n.c=new jt(Tn,n,5,8)),n.c.i!=0)&&(!n.b&&(n.b=new jt(Tn,n,4,7)),n.b.i<=1&&(!n.c&&(n.c=new jt(Tn,n,5,8)),n.c.i<=1))&&(!n.a&&(n.a=new Se(ei,n,6,6)),n.a).i==1&&(vn=u(re((!n.a&&(n.a=new Se(ei,n,6,6)),n.a),0),166),!RV(vn)&&!AV(vn)&&(qL(vn,u(re((!n.b&&(n.b=new jt(Tn,n,4,7)),n.b),0),84)),XL(vn,u(re((!n.c&&(n.c=new jt(Tn,n,5,8)),n.c),0),84))))}function Wun(e){var t,n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt,zt;for(ne=e.a,se=0,ke=ne.length;se0?(k=u(Ye(T.c.a,d-1),10),pt=_y(e.b,T,k),$=T.n.b-T.d.d-(k.n.b+k.o.b+k.d.a+pt)):$=T.n.b-T.d.d,m=w.Math.min($,m),d1&&(d=w.Math.min(d,w.Math.abs(u(ga(h.a,1),8).b-v.b)))));else for(L=new N(t.j);L.as&&(c=T.a-s,d=Mr,i.c.length=0,s=T.a),T.a>=s&&(Ft(i.c,h),h.a.b>1&&(d=w.Math.min(d,w.Math.abs(u(ga(h.a,h.a.b-2),8).b-T.b)))));if(i.c.length!=0&&c>t.o.a/2&&d>t.o.b/2){for(P=new Ml,Js(P,t),Vi(P,(ze(),en)),P.n.a=t.o.a/2,z=new Ml,Js(z,t),Vi(z,Pn),z.n.a=t.o.a/2,z.n.b=t.o.b,b=new N(i);b.a=m.b?zo(h,z):zo(h,P)):(m=u(Djt(h.a),8),$=h.a.b==0?ed(h.c):u(Za(h.a),8),$.b>=m.b?ao(h,z):ao(h,P)),k=u(A(h,(Ue(),Is)),75),k&&Wm(k,m,!0);t.n.a=s-t.o.a/2}}function qun(e,t,n){var i,s,c,d,h,b,m,v,k,T;for(h=Ln(e.b,0);h.b!=h.d.c;)if(d=u(_n(h),40),!Et(d.c,sD))for(m=vtn(d,e),t==(ji(),Ps)||t==Bs?Mi(m,new MOe):Mi(m,new OOe),b=m.c.length,i=0;i=0?P=P4(h):P=tP(P4(h)),e.qf(z8,P)),m=new po,T=!1,e.pf(Nw)?(sce(m,u(e.of(Nw),8)),T=!0):iAt(m,d.a/2,d.b/2),P.g){case 4:Ee(v,fc,(pa(),Tg)),Ee(v,LN,(E0(),I2)),v.o.b=d.b,L<0&&(v.o.a=-L),Vi(k,(ze(),fn)),T||(m.a=d.a),m.a-=d.a;break;case 2:Ee(v,fc,(pa(),Ev)),Ee(v,LN,(E0(),L8)),v.o.b=d.b,L<0&&(v.o.a=-L),Vi(k,(ze(),rn)),T||(m.a=0);break;case 1:Ee(v,W0,(c1(),M2)),v.o.a=d.a,L<0&&(v.o.b=-L),Vi(k,(ze(),Pn)),T||(m.b=d.b),m.b-=d.b;break;case 3:Ee(v,W0,(c1(),o6)),v.o.a=d.a,L<0&&(v.o.b=-L),Vi(k,(ze(),en)),T||(m.b=0)}if(sce(k.n,m),Ee(v,Nw,m),t==ob||t==Bh||t==Ul){if(O=0,t==ob&&e.pf(bp))switch(P.g){case 1:case 2:O=u(e.of(bp),17).a;break;case 3:case 4:O=-u(e.of(bp),17).a}else switch(P.g){case 4:case 2:O=c.b,t==Bh&&(O/=s.b);break;case 1:case 3:O=c.a,t==Bh&&(O/=s.a)}Ee(v,Aw,O)}return Ee(v,fl,P),v}function Xun(){_se();function e(i){var s=this;this.dispatch=function(c){var d=c.data;switch(d.cmd){case"algorithms":var h=Qde((Ot(),new hk(new Yh(Dg.b))));i.postMessage({id:d.id,data:h});break;case"categories":var b=Qde((Ot(),new hk(new Yh(Dg.c))));i.postMessage({id:d.id,data:b});break;case"options":var m=Qde((Ot(),new hk(new Yh(Dg.d))));i.postMessage({id:d.id,data:m});break;case"register":Qln(d.algorithms),i.postMessage({id:d.id});break;case"layout":Isn(d.graph,d.layoutOptions||{},d.options||{}),i.postMessage({id:d.id,data:d.graph});break}},this.saveDispatch=function(c){try{s.dispatch(c)}catch(d){i.postMessage({id:c.data.id,error:d})}}}function t(i){var s=this;this.dispatcher=new e({postMessage:function(c){s.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){s.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===FX&&typeof self!==FX){var n=new e(self);self.onmessage=n.saveDispatch}else typeof a!==FX&&a.exports&&(Object.defineProperty(p,"__esModule",{value:!0}),a.exports={default:t,Worker:t})}function pat(e,t,n){var i,s,c,d,h,b,m,v,k,T;for(v=new g1(n),js(v,t),Ee(v,(Oe(),jr),t),v.o.a=t.g,v.o.b=t.f,v.n.a=t.i,v.n.b=t.j,$e(n.a,v),vr(e.a,t,v),((!t.a&&(t.a=new Se(xr,t,10,11)),t.a).i!=0||qe(Ve(Ie(t,(Ue(),Pv)))))&&Ee(v,s2e,(Gt(),!0)),m=u(A(n,Kl),21),k=u(A(v,(Ue(),yi)),101),k==(fo(),Lg)?Ee(v,yi,kd):k!=kd&&m.Fc((cs(),D8)),T=0,i=u(A(n,Wu),88),b=new hn((!t.c&&(t.c=new Se(ru,t,9,9)),t.c));b.e!=b.i.gc();)h=u(mn(b),123),s=ri(t),(fe(Ie(s,$h))!==fe((Gd(),wp))||fe(Ie(s,q0))===fe((ip(),A8))||fe(Ie(s,q0))===fe((ip(),R8))||qe(Ve(Ie(s,$w)))||fe(Ie(s,Tv))!==fe((P0(),yv))||fe(Ie(s,Ig))===fe((La(),zw))||fe(Ie(s,Ig))===fe((La(),Av))||fe(Ie(s,Y0))===fe((up(),G8))||fe(Ie(s,Y0))===fe((up(),W8)))&&!qe(Ve(Ie(t,zN)))&&Br(h,Hr,Ae(T++)),qe(Ve(Ie(h,Q0)))||oun(e,h,v,m,i,k);for(d=new hn((!t.n&&(t.n=new Se(ms,t,1,7)),t.n));d.e!=d.i.gc();)c=u(mn(d),135),!qe(Ve(Ie(c,Q0)))&&c.a&&$e(v.b,oV(c));return qe(Ve(A(v,Z9)))&&m.Fc((cs(),MN)),qe(Ve(A(v,GN)))&&(m.Fc((cs(),ON)),m.Fc(V9),Ee(v,yi,kd)),v}function tX(e,t,n,i,s,c,d){var h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt,zt,Ht,vn,Tr,di;for(L=0,zt=0,m=new N(e.b);m.aL&&(c&&(Wo(Pe,P),Wo(pt,Ae(v.b-1)),$e(e.d,O),h.c.length=0),Tr=n.b,di+=P+t,P=0,k=w.Math.max(k,n.b+n.c+vn)),Ft(h.c,b),vrt(b,Tr,di),k=w.Math.max(k,Tr+vn+n.c),P=w.Math.max(P,T),Tr+=vn+t,O=b;if(zi(e.a,h),$e(e.d,u(Ye(h,h.c.length-1),163)),k=w.Math.max(k,i),Ht=di+P+n.a,Hts.d.d+s.d.a?v.f.d=!0:(v.f.d=!0,v.f.a=!0))),i.b!=i.d.c&&(t=n);v&&(c=u(pn(e.f,d.d.i),60),t.bc.d.d+c.d.a?v.f.d=!0:(v.f.d=!0,v.f.a=!0))}for(h=new gn(wn(eo(P).a.Kc(),new j));$n(h);)d=u(xn(h),18),d.a.b!=0&&(t=u(Za(d.a),8),d.d.j==(ze(),en)&&($=new ZS(t,new Me(t.a,s.d.d),s,d),$.f.a=!0,$.a=d.d,Ft(L.c,$)),d.d.j==Pn&&($=new ZS(t,new Me(t.a,s.d.d+s.d.a),s,d),$.f.d=!0,$.a=d.d,Ft(L.c,$)))}return L}function tan(e,t,n){var i,s,c,d,h,b,m,v,k,T;for(b=new Le,k=t.length,d=ude(n),m=0;m=O&&(J>O&&(P.c.length=0,O=J),Ft(P.c,d));P.c.length!=0&&(T=u(Ye(P,$$(t,P.c.length)),131),Ht.a.Bc(T)!=null,T.s=L++,lpe(T,dt,Pe),P.c.length=0)}for(se=e.c.length+1,h=new N(e);h.azt.s&&(Eu(n),vc(zt.i,i),i.c>0&&(i.a=zt,$e(zt.t,i),i.b=Fe,$e(Fe.i,i)))}function gat(e,t,n,i,s){var c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt,zt,Ht;for(L=new ql(t.b),se=new ql(t.b),T=new ql(t.b),pt=new ql(t.b),$=new ql(t.b),Fe=Ln(t,0);Fe.b!=Fe.d.c;)for(ke=u(_n(Fe),12),h=new N(ke.g);h.a0,z=ke.g.c.length>0,m&&z?Ft(T.c,ke):m?Ft(L.c,ke):z&&Ft(se.c,ke);for(O=new N(L);O.aJ.nh()-m.b&&(T=J.nh()-m.b),P>J.oh()-m.d&&(P=J.oh()-m.d),v0){for(ne=Ln(e.f,0);ne.b!=ne.d.c;)J=u(_n(ne),10),J.p+=T-e.e;T1e(e),Au(e.f),kpe(e,i,P)}else{for(or(e.f,P),P.p=i,e.e=w.Math.max(e.e,i),c=new gn(wn(eo(P).a.Kc(),new j));$n(c);)s=u(xn(c),18),!s.c.i.c&&s.c.i.k==(nn(),El)&&(or(e.f,s.c.i),s.c.i.p=i-1);e.c=i}else T1e(e),Au(e.f),i=0,$n(new gn(wn(eo(P).a.Kc(),new j)))?(T=0,T=xrt(T,P),i=T+2,kpe(e,i,P)):(or(e.f,P),P.p=0,e.e=w.Math.max(e.e,0),e.b=u(Ye(e.d.b,0),30),e.c=0);for(e.f.b==0||T1e(e),e.d.a.c.length=0,z=new Le,m=new N(e.d.b);m.a=48&&t<=57){for(i=t-48;s=48&&t<=57;)if(i=i*10+t-48,i<0)throw B(new er(ir((Yn(),qwe))))}else throw B(new er(ir((Yn(),Zht))));if(n=i,t==44){if(s>=e.j)throw B(new er(ir((Yn(),t1t))));if((t=Lo(e.i,s++))>=48&&t<=57){for(n=t-48;s=48&&t<=57;)if(n=n*10+t-48,n<0)throw B(new er(ir((Yn(),qwe))));if(i>n)throw B(new er(ir((Yn(),n1t))))}else n=-1}if(t!=125)throw B(new er(ir((Yn(),e1t))));e.bm(s)?(c=(Ir(),Ir(),new jm(9,c)),e.d=s+1):(c=(Ir(),Ir(),new jm(3,c)),e.d=s),c.Om(i),c.Nm(n),Er(e)}}return c}function lan(e){var t,n,i,s,c;switch(n=u(A(e,(Oe(),Kl)),21),t=cA(x0t),s=u(A(e,(Ue(),Iv)),346),s==(f1(),Cp)&&Bu(t,E0t),qe(Ve(A(e,OZ)))?cr(t,($o(),hf),(Uo(),BQ)):cr(t,($o(),_l),(Uo(),BQ)),A(e,(TL(),xx))!=null&&Bu(t,T0t),(qe(Ve(A(e,l3e)))||qe(Ve(A(e,r3e))))&&$c(t,($o(),Ns),(Uo(),nye)),u(A(e,Wu),88).g){case 2:case 3:case 4:$c(cr(t,($o(),hf),(Uo(),iye)),Ns,rye)}switch(n.Hc((cs(),MN))&&$c(cr(cr(t,($o(),hf),(Uo(),tye)),zl,Zve),Ns,eye),fe(A(e,Ig))!==fe((La(),rB))&&cr(t,($o(),_l),(Uo(),vye)),n.Hc(_N)&&(cr(t,($o(),hf),(Uo(),Sye)),cr(t,Ah,kye),cr(t,_l,Cye)),fe(A(e,BN))!==fe((N5(),W9))&&fe(A(e,x1))!==fe((d1(),gO))&&$c(t,($o(),Ns),(Uo(),hye)),qe(Ve(A(e,o3e)))&&cr(t,($o(),_l),(Uo(),dye)),qe(Ve(A(e,TZ)))&&cr(t,($o(),_l),(Uo(),xye)),ynn(e)&&(fe(A(e,Iv))===fe(Cp)?i=u(A(e,zM),299):i=u(A(e,EZ),299),c=i==(g5(),aZ)?(Uo(),yye):(Uo(),Iye),cr(t,($o(),zl),c)),u(A(e,A3e),388).g){case 1:cr(t,($o(),zl),(Uo(),Eye));break;case 2:$c(cr(cr(t,($o(),_l),(Uo(),Xve)),zl,Yve),Ns,Jve)}return fe(A(e,$h))!==fe((Gd(),wp))&&cr(t,($o(),_l),(Uo(),Tye)),t}function vat(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne;if(rc(e.a,t)){if(Mf(u(pn(e.a,t),49),n))return 1}else vr(e.a,t,new _i);if(rc(e.a,n)){if(Mf(u(pn(e.a,n),49),t))return-1}else vr(e.a,n,new _i);if(rc(e.e,t)){if(Mf(u(pn(e.e,t),49),n))return-1}else vr(e.e,t,new _i);if(rc(e.e,n)){if(Mf(u(pn(e.a,n),49),t))return 1}else vr(e.e,n,new _i);if(e.c==(Gd(),WZ)||!Xr(t,(Oe(),Hr))||!Xr(n,(Oe(),Hr))){for(k=null,m=new N(t.j);m.ad?G5(e,t,n):G5(e,n,t),sd?1:0}return i=u(A(t,(Oe(),Hr)),17).a,c=u(A(n,Hr),17).a,i>c?G5(e,t,n):G5(e,n,t),ic?1:0}function bw(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$;if(n==null)return null;if(e.a!=t.jk())throw B(new Qt(w8+t.xe()+xw));if(te(t,469)){if($=Qrn(u(t,685),n),!$)throw B(new Qt(hJ+n+"' is not a valid enumerator of '"+t.xe()+"'"));return $}switch(tp((Nc(),_o),t).Nl()){case 2:{n=Nl(n,!1);break}case 3:{n=Nl(n,!0);break}}if(i=tp(_o,t).Jl(),i)return i.jk().wi().ti(i,n);if(T=tp(_o,t).Ll(),T){for($=new Le,m=YW(n),v=0,k=m.length;v1)for(O=new n4((!e.a&&(e.a=new Se(ei,e,6,6)),e.a));O.e!=O.i.gc();)BS(O);for(d=u(re((!e.a&&(e.a=new Se(ei,e,6,6)),e.a),0),166),$=Tr,Tr>ke+se?$=ke+se:TrPe+L?z=Pe+L:dike-se&&$Pe-L&&zTr+vn?pt=Tr+vn:kedi+Fe?dt=di+Fe:PeTr-vn&&ptdi-Fe&&dtn&&(T=n-1),P=Mp+fu(t,24)*VP*k-k/2,P<0?P=1:P>i&&(P=i-1),s=(Up(),b=new J_,b),HL(s,T),zL(s,P),Dn((!d.a&&(d.a=new Ai(Yu,d,5)),d.a),s)}function yat(e){Pb(e,new _0(Eb(Cb(xb(Sb(new e0,pu),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new c_e))),Re(e,pu,V4,1.3),Re(e,pu,c8,(Gt(),!1)),Re(e,pu,vw,I6e),Re(e,pu,av,15),Re(e,pu,tD,Ke(D2t)),Re(e,pu,h2,Ke(F2t)),Re(e,pu,X4,Ke(H2t)),Re(e,pu,q4,Ke(K2t)),Re(e,pu,u8,Ke(B2t)),Re(e,pu,p9,Ke(jee)),Re(e,pu,a8,Ke(U2t)),Re(e,pu,cwe,Ke(_6e)),Re(e,pu,uwe,Ke(O6e)),Re(e,pu,lwe,Ke(Nee)),Re(e,pu,swe,Ke(R6e)),Re(e,pu,awe,Ke(T6e)),Re(e,pu,fwe,Ke(Dee)),Re(e,pu,dwe,Ke(E6e)),Re(e,pu,hwe,Ke(M6e)),Re(e,pu,h9,Ke(x6e)),Re(e,pu,rD,Ke(N2t)),Re(e,pu,iwe,Ke(nO)),Re(e,pu,rwe,Ke(S6e)),Re(e,pu,owe,Ke(rO)),Re(e,pu,nwe,Ke(P6e))}function rX(e,t){Hq();var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe;if(ne=e.e,v=e.d,s=e.a,ne==0)switch(t){case 0:return"0";case 1:return n8;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return z=new Hp,z.a+="0E",z.a+=-t,z.a}if(L=v*10+1+7,$=be(Ea,Yd,28,L+1,15,1),n=L,v==1)if(c=s[0],c<0){Fe=Yi(c,us);do k=Fe,Fe=dP(Fe,10),$[--n]=48+Vn(Ra(k,Ko(Fe,10)))&Di;while(kl(Fe,0)!=0)}else{Fe=c;do k=Fe,Fe=Fe/10|0,$[--n]=48+(k-Fe*10)&Di;while(Fe!=0)}else{se=be(Bn,ur,28,v,15,1),Pe=v,Ol(s,0,se,0,Pe);e:for(;;){for(J=0,h=Pe-1;h>=0;h--)ke=Ho(nf(J,32),Yi(se[h],us)),P=YJt(ke),se[h]=Vn(P),J=Vn(Bb(P,32));O=Vn(J),T=n;do $[--n]=48+O%10&Di;while((O=O/10|0)!=0&&n!=0);for(i=9-T+n,d=0;d0;d++)$[--n]=48;for(b=Pe-1;se[b]==0;b--)if(b==0)break e;Pe=b+1}for(;$[n]==48;)++n}return m=ne<0,m&&($[--n]=45),Ud($,n,L-n)}function kat(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe;switch(e.c=t,e.g=new On,n=(Mb(),new kb(e.c)),i=new sR(n),Xde(i),ne=Jn(Ie(e.c,(pP(),J6e))),b=u(Ie(e.c,qee),324),ke=u(Ie(e.c,Xee),437),d=u(Ie(e.c,q6e),490),se=u(Ie(e.c,Vee),438),e.j=le(pe(Ie(e.c,i3t))),h=e.a,b.g){case 0:h=e.a;break;case 1:h=e.b;break;case 2:h=e.i;break;case 3:h=e.e;break;case 4:h=e.f;break;default:throw B(new Qt(dD+(b.f!=null?b.f:""+b.g)))}if(e.d=new dXe(h,ke,d),Ee(e.d,(d5(),z9),Ve(Ie(e.c,n3t))),e.d.c=qe(Ve(Ie(e.c,X6e))),rL(e.c).i==0)return e.d;for(k=new hn(rL(e.c));k.e!=k.i.gc();){for(v=u(mn(k),27),P=v.g/2,T=v.f/2,Pe=new Me(v.i+P,v.j+T);rc(e.g,Pe);)jb(Pe,(w.Math.random()-.5)*Zd,(w.Math.random()-.5)*Zd);L=u(Ie(v,(gr(),Q8)),140),$=new TXe(Pe,new ia(Pe.a-P-e.j/2-L.b,Pe.b-T-e.j/2-L.d,v.g+e.j+(L.b+L.c),v.f+e.j+(L.d+L.a))),$e(e.d.i,$),vr(e.g,Pe,new Gi($,v))}switch(se.g){case 0:if(ne==null)e.d.d=u(Ye(e.d.i,0),68);else for(J=new N(e.d.i);J.a0?vn+1:1);for(d=new N(Pe.g);d.a0?vn+1:1)}e.c[m]==0?or(e.e,L):e.a[m]==0&&or(e.f,L),++m}for(O=-1,P=1,k=new Le,e.d=u(A(t,(Oe(),a6)),234);Ju>0;){for(;e.e.b!=0;)di=u(qU(e.e),10),e.b[di.p]=O--,Npe(e,di),--Ju;for(;e.f.b!=0;)iu=u(qU(e.f),10),e.b[iu.p]=P++,Npe(e,iu),--Ju;if(Ju>0){for(T=jo,J=new N(ne);J.a=T&&(se>T&&(k.c.length=0,T=se),Ft(k.c,L)));v=e.sg(k),e.b[v.p]=P++,Npe(e,v),--Ju}}for(Tr=ne.c.length+1,m=0;me.b[Ms]&&(pw(i,!0),Ee(t,DM,(Gt(),!0)));e.a=null,e.c=null,e.b=null,Au(e.f),Au(e.e),n.Vg()}function Cat(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe;for(ke=u(re((!e.a&&(e.a=new Se(ei,e,6,6)),e.a),0),166),v=new _c,se=new On,Pe=_ct(ke),Jl(se.f,ke,Pe),T=new On,i=new Zr,O=mh(Du(H(F(Gu,1),Bt,20,0,[(!t.d&&(t.d=new jt(Ti,t,8,5)),t.d),(!t.e&&(t.e=new jt(Ti,t,7,4)),t.e)])));$n(O);){if(P=u(xn(O),74),(!e.a&&(e.a=new Se(ei,e,6,6)),e.a).i!=1)throw B(new Qt(cht+(!e.a&&(e.a=new Se(ei,e,6,6)),e.a).i));P!=e&&($=u(re((!P.a&&(P.a=new Se(ei,P,6,6)),P.a),0),166),gi(i,$,i.c.b,i.c),L=u(Rs(ss(se.f,$)),13),L||(L=_ct($),Jl(se.f,$,L)),k=n?Xi(new Vo(u(Ye(Pe,Pe.c.length-1),8)),u(Ye(L,L.c.length-1),8)):Xi(new Vo((_t(0,Pe.c.length),u(Pe.c[0],8))),(_t(0,L.c.length),u(L.c[0],8))),Jl(T.f,$,k))}if(i.b!=0)for(z=u(Ye(Pe,n?Pe.c.length-1:0),8),m=1;m1&&gi(v,z,v.c.b,v.c),kW(s)));z=J}return v}function Sat(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt,zt;for(n.Ug(Sdt,1),zt=u(Ks(Ar(new xt(null,new Pt(t,16)),new DOe),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[(Jc(),Ws)]))),15),v=u(Ks(Ar(new xt(null,new Pt(t,16)),new xNe(t)),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[Ws]))),15),O=u(Ks(Ar(new xt(null,new Pt(t,16)),new SNe(t)),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[Ws]))),15),L=be(aB,lD,40,t.gc(),0,1),d=0;d=0&&dt=0&&!L[P]){L[P]=s,v.gd(h),--h;break}if(P=dt-T,P=0&&!L[P]){L[P]=s,v.gd(h),--h;break}}for(O.jd(new NOe),b=L.length-1;b>=0;b--)!L[b]&&!O.dc()&&(L[b]=u(O.Xb(0),40),O.gd(0));for(m=0;m=0;b--)or(n,(_t(b,d.c.length),u(d.c[b],8)));return n}function Eat(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se;for(ne=le(pe(Ie(t,(xh(),jv)))),P=le(pe(Ie(t,vx))),T=le(pe(Ie(t,yB))),zfe((!t.a&&(t.a=new Se(xr,t,10,11)),t.a)),z=gut((!t.a&&(t.a=new Se(xr,t,10,11)),t.a),ne,e.b),$=0;$T&&aP((_t(T,t.c.length),u(t.c[T],186)),v),v=null;t.c.length>T&&(_t(T,t.c.length),u(t.c[T],186)).a.c.length==0;)vc(t,(_t(T,t.c.length),t.c[T]));if(!v){--d;continue}if(!qe(Ve(u(Ye(v.b,0),27).of((ud(),rO))))&&Oon(t,O,c,v,$,n,T,i)){L=!0;continue}if($){if(P=O.b,k=v.f,!qe(Ve(u(Ye(v.b,0),27).of(rO)))&&Xln(t,O,c,v,n,T,i,s)){if(L=!0,P=e.j){e.a=-1,e.c=1;return}if(t=Lo(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(i=10,e.d>=e.j)throw B(new er(ir((Yn(),vD))));e.a=Lo(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||Lo(e.i,e.d)!=63)break;if(++e.d>=e.j)throw B(new er(ir((Yn(),TJ))));switch(t=Lo(e.i,e.d++),t){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(e.d>=e.j)throw B(new er(ir((Yn(),TJ))));if(t=Lo(e.i,e.d++),t==61)i=16;else if(t==33)i=17;else throw B(new er(ir((Yn(),$ht))));break;case 35:for(;e.d=e.j)throw B(new er(ir((Yn(),vD))));e.a=Lo(e.i,e.d++);break;default:i=0}e.c=i}function wan(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$;if(n.Ug("Process compaction",1),!!qe(Ve(A(t,(sl(),R4e))))){for(s=u(A(t,Kw),88),P=le(pe(A(t,hee))),Usn(e,t,s),Lun(t,P/2/2),O=t.b,k0(O,new bNe(s)),m=Ln(O,0);m.b!=m.d.c;)if(b=u(_n(m),40),!qe(Ve(A(b,(Wr(),Og))))){if(i=bin(b,s),L=fsn(b,t),k=0,T=0,i)switch($=i.e,s.g){case 2:k=$.a-P-b.f.a,L.e.a-P-b.f.ak&&(k=L.e.a+L.f.a+P),T=k+b.f.a;break;case 4:k=$.b-P-b.f.b,L.e.b-P-b.f.bk&&(k=L.e.b+L.f.b+P),T=k+b.f.b}else if(L)switch(s.g){case 2:k=L.e.a-P-b.f.a,T=k+b.f.a;break;case 1:k=L.e.a+L.f.a+P,T=k+b.f.a;break;case 4:k=L.e.b-P-b.f.b,T=k+b.f.b;break;case 3:k=L.e.b+L.f.b+P,T=k+b.f.b}fe(A(t,dee))===fe((kS(),YM))?(c=k,d=T,h=v5(Ar(new xt(null,new Pt(e.a,16)),new oKe(c,d))),h.a!=null?s==(ji(),Ps)||s==Bs?b.e.a=k:b.e.b=k:(s==(ji(),Ps)||s==Ca?h=v5(Ar($Ze(new xt(null,new Pt(e.a,16))),new wNe(c))):h=v5(Ar($Ze(new xt(null,new Pt(e.a,16))),new mNe(c))),h.a!=null&&(s==Ps||s==Bs?b.e.a=le(pe((yn(h.a!=null),u(h.a,42)).a)):b.e.b=le(pe((yn(h.a!=null),u(h.a,42)).a)))),h.a!=null&&(v=$s(e.a,(yn(h.a!=null),h.a),0),v>0&&v!=u(A(b,ch),17).a&&(Ee(b,x4e,(Gt(),!0)),Ee(b,ch,Ae(v))))):s==(ji(),Ps)||s==Bs?b.e.a=k:b.e.b=k}n.Vg()}}function Tat(e){var t,n,i,s,c,d,h,b,m;for(e.b=1,Er(e),t=null,e.c==0&&e.a==94?(Er(e),t=(Ir(),Ir(),new $u(4)),Dl(t,0,k8),h=new $u(4)):h=(Ir(),Ir(),new $u(4)),s=!0;(m=e.c)!=1;){if(m==0&&e.a==93&&!s){t&&(i9(t,h),h=t);break}if(n=e.a,i=!1,m==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:ov(h,W5(n)),i=!0;break;case 105:case 73:case 99:case 67:n=(ov(h,W5(n)),-1),n<0&&(i=!0);break;case 112:case 80:if(b=H1e(e,n),!b)throw B(new er(ir((Yn(),IJ))));ov(h,b),i=!0;break;default:n=Spe(e)}else if(m==24&&!s){if(t&&(i9(t,h),h=t),c=Tat(e),i9(h,c),e.c!=0||e.a!=93)throw B(new er(ir((Yn(),Ght))));break}if(Er(e),!i){if(m==0){if(n==91)throw B(new er(ir((Yn(),Wwe))));if(n==93)throw B(new er(ir((Yn(),Vwe))));if(n==45&&!s&&e.a!=93)throw B(new er(ir((Yn(),PJ))))}if(e.c!=0||e.a!=45||n==45&&s)Dl(h,n,n);else{if(Er(e),(m=e.c)==1)throw B(new er(ir((Yn(),yD))));if(m==0&&e.a==93)Dl(h,n,n),Dl(h,45,45);else{if(m==0&&e.a==93||m==24)throw B(new er(ir((Yn(),PJ))));if(d=e.a,m==0){if(d==91)throw B(new er(ir((Yn(),Wwe))));if(d==93)throw B(new er(ir((Yn(),Vwe))));if(d==45)throw B(new er(ir((Yn(),PJ))))}else m==10&&(d=Spe(e));if(Er(e),n>d)throw B(new er(ir((Yn(),qht))));Dl(h,n,d)}}}s=!1}if(e.c==1)throw B(new er(ir((Yn(),yD))));return e2(h),n9(h),e.b=0,Er(e),h}function man(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke;if(n.Ug("Coffman-Graham Layering",1),t.a.c.length==0){n.Vg();return}for(ke=u(A(t,(Ue(),u3e)),17).a,b=0,d=0,T=new N(t.a);T.a=ke||!dqt(z,i))&&(i=Cqe(t,v)),bo(z,i),c=new gn(wn(eo(z).a.Kc(),new j));$n(c);)s=u(xn(c),18),!e.a[s.p]&&(L=s.c.i,--e.e[L.p],e.e[L.p]==0&&l4(D5(P,L),r8));for(m=v.c.length-1;m>=0;--m)$e(t.b,(_t(m,v.c.length),u(v.c[m],30)));t.a.c.length=0,n.Vg()}function Iat(e,t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se;se=!1;do for(se=!1,c=t?new r0(e.a.b).a.gc()-2:1;t?c>=0:cu(A($,Hr),17).a)&&(ne=!1);if(ne){for(b=t?c+1:c-1,h=Pae(e.a,Ae(b)),d=!1,J=!0,i=!1,v=Ln(h,0);v.b!=v.d.c;)m=u(_n(v),10),Xr(m,Hr)?m.p!=k.p&&(d=d|(t?u(A(m,Hr),17).au(A(k,Hr),17).a),J=!1):!d&&J&&m.k==(nn(),El)&&(i=!0,t?T=u(xn(new gn(wn(eo(m).a.Kc(),new j))),18).c.i:T=u(xn(new gn(wn(Pi(m).a.Kc(),new j))),18).d.i,T==k&&(t?n=u(xn(new gn(wn(Pi(m).a.Kc(),new j))),18).d.i:n=u(xn(new gn(wn(eo(m).a.Kc(),new j))),18).c.i,(t?u(Em(e.a,n),17).a-u(Em(e.a,T),17).a:u(Em(e.a,T),17).a-u(Em(e.a,n),17).a)<=2&&(J=!1)));if(i&&J&&(t?n=u(xn(new gn(wn(Pi(k).a.Kc(),new j))),18).d.i:n=u(xn(new gn(wn(eo(k).a.Kc(),new j))),18).c.i,(t?u(Em(e.a,n),17).a-u(Em(e.a,k),17).a:u(Em(e.a,k),17).a-u(Em(e.a,n),17).a)<=2&&n.k==(nn(),Ei)&&(J=!1)),d||J){for(L=ilt(e,k,t);L.a.gc()!=0;)O=u(L.a.ec().Kc().Pb(),10),L.a.Bc(O)!=null,vo(L,ilt(e,O,t));--P,se=!0}}}while(se)}function van(e){Un(e.c,sr,H(F(Je,1),_e,2,6,[Do,"http://www.w3.org/2001/XMLSchema#decimal"])),Un(e.d,sr,H(F(Je,1),_e,2,6,[Do,"http://www.w3.org/2001/XMLSchema#integer"])),Un(e.e,sr,H(F(Je,1),_e,2,6,[Do,"http://www.w3.org/2001/XMLSchema#boolean"])),Un(e.f,sr,H(F(Je,1),_e,2,6,[Do,"EBoolean",Sr,"EBoolean:Object"])),Un(e.i,sr,H(F(Je,1),_e,2,6,[Do,"http://www.w3.org/2001/XMLSchema#byte"])),Un(e.g,sr,H(F(Je,1),_e,2,6,[Do,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Un(e.j,sr,H(F(Je,1),_e,2,6,[Do,"EByte",Sr,"EByte:Object"])),Un(e.n,sr,H(F(Je,1),_e,2,6,[Do,"EChar",Sr,"EChar:Object"])),Un(e.t,sr,H(F(Je,1),_e,2,6,[Do,"http://www.w3.org/2001/XMLSchema#double"])),Un(e.u,sr,H(F(Je,1),_e,2,6,[Do,"EDouble",Sr,"EDouble:Object"])),Un(e.F,sr,H(F(Je,1),_e,2,6,[Do,"http://www.w3.org/2001/XMLSchema#float"])),Un(e.G,sr,H(F(Je,1),_e,2,6,[Do,"EFloat",Sr,"EFloat:Object"])),Un(e.I,sr,H(F(Je,1),_e,2,6,[Do,"http://www.w3.org/2001/XMLSchema#int"])),Un(e.J,sr,H(F(Je,1),_e,2,6,[Do,"EInt",Sr,"EInt:Object"])),Un(e.N,sr,H(F(Je,1),_e,2,6,[Do,"http://www.w3.org/2001/XMLSchema#long"])),Un(e.O,sr,H(F(Je,1),_e,2,6,[Do,"ELong",Sr,"ELong:Object"])),Un(e.Z,sr,H(F(Je,1),_e,2,6,[Do,"http://www.w3.org/2001/XMLSchema#short"])),Un(e.$,sr,H(F(Je,1),_e,2,6,[Do,"EShort",Sr,"EShort:Object"])),Un(e._,sr,H(F(Je,1),_e,2,6,[Do,"http://www.w3.org/2001/XMLSchema#string"]))}function yan(e,t,n,i,s,c,d){var h,b,m,v,k,T,P,O;return T=u(i.a,17).a,P=u(i.b,17).a,k=e.b,O=e.c,h=0,v=0,t==(ji(),Ps)||t==Bs?(v=_T(wnt(Am(As(new xt(null,new Pt(n.b,16)),new FOe),new COe))),k.e.b+k.f.b/2>v?(m=++P,h=le(pe(Cu(Om(As(new xt(null,new Pt(n.b,16)),new cKe(s,m)),new SOe))))):(b=++T,h=le(pe(Cu(u4(As(new xt(null,new Pt(n.b,16)),new uKe(s,b)),new xOe)))))):(v=_T(wnt(Am(As(new xt(null,new Pt(n.b,16)),new POe),new kOe))),k.e.a+k.f.a/2>v?(m=++P,h=le(pe(Cu(Om(As(new xt(null,new Pt(n.b,16)),new sKe(s,m)),new EOe))))):(b=++T,h=le(pe(Cu(u4(As(new xt(null,new Pt(n.b,16)),new lKe(s,b)),new TOe)))))),t==Ps?(Wo(e.a,new Me(le(pe(A(k,(Wr(),Kf))))-s,h)),Wo(e.a,new Me(O.e.a+O.f.a+s+c,h)),Wo(e.a,new Me(O.e.a+O.f.a+s+c,O.e.b+O.f.b/2)),Wo(e.a,new Me(O.e.a+O.f.a,O.e.b+O.f.b/2))):t==Bs?(Wo(e.a,new Me(le(pe(A(k,(Wr(),gf))))+s,k.e.b+k.f.b/2)),Wo(e.a,new Me(k.e.a+k.f.a+s,h)),Wo(e.a,new Me(O.e.a-s-c,h)),Wo(e.a,new Me(O.e.a-s-c,O.e.b+O.f.b/2)),Wo(e.a,new Me(O.e.a,O.e.b+O.f.b/2))):t==Ca?(Wo(e.a,new Me(h,le(pe(A(k,(Wr(),Kf))))-s)),Wo(e.a,new Me(h,O.e.b+O.f.b+s+c)),Wo(e.a,new Me(O.e.a+O.f.a/2,O.e.b+O.f.b+s+c)),Wo(e.a,new Me(O.e.a+O.f.a/2,O.e.b+O.f.b+s))):(e.a.b==0||(u(Za(e.a),8).b=le(pe(A(k,(Wr(),gf))))+s*u(d.b,17).a),Wo(e.a,new Me(h,le(pe(A(k,(Wr(),gf))))+s*u(d.b,17).a)),Wo(e.a,new Me(h,O.e.b-s*u(d.a,17).a-c))),new Gi(Ae(T),Ae(P))}function kan(e){var t,n,i,s,c,d,h,b,m,v,k,T,P;if(d=!0,k=null,i=null,s=null,t=!1,P=z4t,m=null,c=null,h=0,b=EV(e,h,V5e,q5e),b=0&&Et(e.substr(h,2),"//")?(h+=2,b=EV(e,h,zx,Hx),i=(mo(h,b,e.length),e.substr(h,b-h)),h=b):k!=null&&(h==e.length||(Zt(h,e.length),e.charCodeAt(h)!=47))&&(d=!1,b=Qle(e,kc(35),h),b==-1&&(b=e.length),i=(mo(h,b,e.length),e.substr(h,b-h)),h=b);if(!n&&h0&&Lo(v,v.length-1)==58&&(s=v,h=b)),hyq(c))&&(k=c);for(!k&&(k=(_t(0,$.c.length),u($.c[0],185))),L=new N(t.b);L.ak&&(Ht=0,vn+=v+Fe,v=0),wct(ke,d,Ht,vn),t=w.Math.max(t,Ht+Pe.a),v=w.Math.max(v,Pe.b),Ht+=Pe.a+Fe;for(se=new On,n=new On,dt=new N(e);dt.a=-1900?1:0,n>=4?lr(e,H(F(Je,1),_e,2,6,[Uat,Gat])[h]):lr(e,H(F(Je,1),_e,2,6,["BC","AD"])[h]);break;case 121:zqt(e,n,i);break;case 77:oon(e,n,i);break;case 107:b=s.q.getHours(),b==0?kh(e,24,n):kh(e,b,n);break;case 83:vnn(e,n,s);break;case 69:v=i.q.getDay(),n==5?lr(e,H(F(Je,1),_e,2,6,["S","M","T","W","T","F","S"])[v]):n==4?lr(e,H(F(Je,1),_e,2,6,[SX,xX,EX,TX,IX,PX,MX])[v]):lr(e,H(F(Je,1),_e,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[v]);break;case 97:s.q.getHours()>=12&&s.q.getHours()<24?lr(e,H(F(Je,1),_e,2,6,["AM","PM"])[1]):lr(e,H(F(Je,1),_e,2,6,["AM","PM"])[0]);break;case 104:k=s.q.getHours()%12,k==0?kh(e,12,n):kh(e,k,n);break;case 75:T=s.q.getHours()%12,kh(e,T,n);break;case 72:P=s.q.getHours(),kh(e,P,n);break;case 99:O=i.q.getDay(),n==5?lr(e,H(F(Je,1),_e,2,6,["S","M","T","W","T","F","S"])[O]):n==4?lr(e,H(F(Je,1),_e,2,6,[SX,xX,EX,TX,IX,PX,MX])[O]):n==3?lr(e,H(F(Je,1),_e,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[O]):kh(e,O,1);break;case 76:L=i.q.getMonth(),n==5?lr(e,H(F(Je,1),_e,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[L]):n==4?lr(e,H(F(Je,1),_e,2,6,[dX,hX,pX,gX,z4,bX,wX,mX,vX,yX,kX,CX])[L]):n==3?lr(e,H(F(Je,1),_e,2,6,["Jan","Feb","Mar","Apr",z4,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[L]):kh(e,L+1,n);break;case 81:$=i.q.getMonth()/3|0,n<4?lr(e,H(F(Je,1),_e,2,6,["Q1","Q2","Q3","Q4"])[$]):lr(e,H(F(Je,1),_e,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[$]);break;case 100:z=i.q.getDate(),kh(e,z,n);break;case 109:m=s.q.getMinutes(),kh(e,m,n);break;case 115:d=s.q.getSeconds(),kh(e,d,n);break;case 122:n<4?lr(e,c.c[0]):lr(e,c.c[1]);break;case 118:lr(e,c.b);break;case 90:n<3?lr(e,den(c)):n==3?lr(e,wen(c)):lr(e,men(c.a));break;default:return!1}return!0}function wge(e,t,n,i){var s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt,zt,Ht,vn,Tr;if(sct(t),b=u(re((!t.b&&(t.b=new jt(Tn,t,4,7)),t.b),0),84),v=u(re((!t.c&&(t.c=new jt(Tn,t,5,8)),t.c),0),84),h=Ds(b),m=Ds(v),d=(!t.a&&(t.a=new Se(ei,t,6,6)),t.a).i==0?null:u(re((!t.a&&(t.a=new Se(ei,t,6,6)),t.a),0),166),Fe=u(pn(e.a,h),10),Ht=u(pn(e.a,m),10),pt=null,vn=null,te(b,193)&&(Pe=u(pn(e.a,b),305),te(Pe,12)?pt=u(Pe,12):te(Pe,10)&&(Fe=u(Pe,10),pt=u(Ye(Fe.j,0),12))),te(v,193)&&(zt=u(pn(e.a,v),305),te(zt,12)?vn=u(zt,12):te(zt,10)&&(Ht=u(zt,10),vn=u(Ye(Ht.j,0),12))),!Fe||!Ht)throw B(new G3("The source or the target of edge "+t+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(L=new Vb,js(L,t),Ee(L,(Oe(),jr),t),Ee(L,(Ue(),Is),null),P=u(A(i,Kl),21),Fe==Ht&&P.Fc((cs(),q9)),pt||(ke=(ls(),Zl),dt=null,d&&Iy(u(A(Fe,yi),101))&&(dt=new Me(d.j,d.k),qYe(dt,hI(t)),CJe(dt,n),zm(m,h)&&(ke=eu,Or(dt,Fe.n))),pt=lut(Fe,dt,ke,i)),vn||(ke=(ls(),eu),Tr=null,d&&Iy(u(A(Ht,yi),101))&&(Tr=new Me(d.b,d.c),qYe(Tr,hI(t)),CJe(Tr,n)),vn=lut(Ht,Tr,ke,Io(Ht))),zo(L,pt),ao(L,vn),(pt.e.c.length>1||pt.g.c.length>1||vn.e.c.length>1||vn.g.c.length>1)&&P.Fc((cs(),V9)),T=new hn((!t.n&&(t.n=new Se(ms,t,1,7)),t.n));T.e!=T.i.gc();)if(k=u(mn(T),135),!qe(Ve(Ie(k,Q0)))&&k.a)switch($=oV(k),$e(L.b,$),u(A($,lh),278).g){case 1:case 2:P.Fc((cs(),j8));break;case 0:P.Fc((cs(),$8)),Ee($,lh,(od(),eC))}if(c=u(A(i,ex),322),z=u(A(i,XN),323),s=c==(hS(),LM)||z==(AS(),UZ),d&&(!d.a&&(d.a=new Ai(Yu,d,5)),d.a).i!=0&&s){for(J=bP(d),O=new _c,se=Ln(J,0);se.b!=se.d.c;)ne=u(_n(se),8),or(O,new Vo(ne));Ee(L,f2e,O)}return L}function Ean(e,t,n,i){var s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt,zt,Ht,vn,Tr,di;for(dt=0,zt=0,Fe=new On,ke=u(Cu(Om(As(new xt(null,new Pt(e.b,16)),new IOe),new $Oe)),17).a+1,pt=be(Bn,ur,28,ke,15,1),$=be(Bn,ur,28,ke,15,1),L=0;L1)for(h=vn+1;hm.b.e.b*(1-z)+m.c.e.b*z));O++);if(Pe.gc()>0&&(Tr=m.a.b==0?Eo(m.b.e):u(Za(m.a),8),ne=Or(Eo(u(Pe.Xb(Pe.gc()-1),40).e),u(Pe.Xb(Pe.gc()-1),40).f),T=Or(Eo(u(Pe.Xb(0),40).e),u(Pe.Xb(0),40).f),O>=Pe.gc()-1&&Tr.b>ne.b&&m.c.e.b>ne.b||O<=0&&Tr.bm.b.e.a*(1-z)+m.c.e.a*z));O++);if(Pe.gc()>0&&(Tr=m.a.b==0?Eo(m.b.e):u(Za(m.a),8),ne=Or(Eo(u(Pe.Xb(Pe.gc()-1),40).e),u(Pe.Xb(Pe.gc()-1),40).f),T=Or(Eo(u(Pe.Xb(0),40).e),u(Pe.Xb(0),40).f),O>=Pe.gc()-1&&Tr.a>ne.a&&m.c.e.a>ne.a||O<=0&&Tr.a=le(pe(A(e,(Wr(),I4e))))&&++zt):(P.f&&P.d.e.a<=le(pe(A(e,(Wr(),cee))))&&++dt,P.g&&P.c.e.a+P.c.f.a>=le(pe(A(e,(Wr(),T4e))))&&++zt)}else se==0?B1e(m):se<0&&(++pt[vn],++$[di],Ht=yan(m,t,e,new Gi(Ae(dt),Ae(zt)),n,i,new Gi(Ae($[di]),Ae(pt[vn]))),dt=u(Ht.a,17).a,zt=u(Ht.b,17).a)}function Tan(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J;if(i=t,b=n,e.b&&i.j==(ze(),rn)&&b.j==(ze(),rn)&&(J=i,i=b,b=J),rc(e.a,i)){if(Mf(u(pn(e.a,i),49),b))return 1}else vr(e.a,i,new _i);if(rc(e.a,b)){if(Mf(u(pn(e.a,b),49),i))return-1}else vr(e.a,b,new _i);if(rc(e.d,i)){if(Mf(u(pn(e.d,i),49),b))return-1}else vr(e.d,i,new _i);if(rc(e.d,b)){if(Mf(u(pn(e.a,b),49),i))return 1}else vr(e.d,b,new _i);if(i.j!=b.j)return z=pRt(i.j,b.j),z==-1?ba(e,b,i):ba(e,i,b),z;if(i.e.c.length!=0&&b.e.c.length!=0){if(e.b&&(z=Gtt(i,b),z!=0))return z==-1?ba(e,b,i):z==1&&ba(e,i,b),z;if(c=u(Ye(i.e,0),18).c.i,v=u(Ye(b.e,0),18).c.i,c==v)return s=u(A(u(Ye(i.e,0),18),(Oe(),Hr)),17).a,m=u(A(u(Ye(b.e,0),18),Hr),17).a,s>m?ba(e,i,b):ba(e,b,i),sm?1:0;for(O=e.c,L=0,$=O.length;L<$;++L){if(P=O[L],P==c)return ba(e,i,b),1;if(P==v)return ba(e,b,i),-1}}return i.g.c.length!=0&&b.g.c.length!=0?(h=u(A(i,(Oe(),wZ)),10),T=u(A(b,wZ),10),e.e==(Gd(),VZ)&&h&&T&&Xr(h,Hr)&&Xr(T,Hr)?(s=u(A(h,Hr),17).a,m=u(A(T,Hr),17).a,s>m?ba(e,i,b):ba(e,b,i),sm?1:0):e.b&&(z=Gtt(i,b),z!=0)?(z==-1?ba(e,b,i):z==1&&ba(e,i,b),z):(d=0,k=0,Xr(u(Ye(i.g,0),18),Hr)&&(d=u(A(u(Ye(i.g,0),18),Hr),17).a),Xr(u(Ye(b.g,0),18),Hr)&&(k=u(A(u(Ye(i.g,0),18),Hr),17).a),h&&h==T?qe(Ve(A(u(Ye(i.g,0),18),bd)))&&!qe(Ve(A(u(Ye(b.g,0),18),bd)))?(ba(e,i,b),1):!qe(Ve(A(u(Ye(i.g,0),18),bd)))&&qe(Ve(A(u(Ye(b.g,0),18),bd)))?(ba(e,b,i),-1):(d>k?ba(e,i,b):ba(e,b,i),dk?1:0):(e.f&&(e.f._b(h)&&(d=u(e.f.xc(h),17).a),e.f._b(T)&&(k=u(e.f.xc(T),17).a)),d>k?ba(e,i,b):ba(e,b,i),dk?1:0))):i.e.c.length!=0&&b.g.c.length!=0?(ba(e,i,b),1):i.g.c.length!=0&&b.e.c.length!=0?(ba(e,b,i),-1):Xr(i,(Oe(),Hr))&&Xr(b,Hr)?(s=u(A(i,Hr),17).a,m=u(A(b,Hr),17).a,s>m?ba(e,i,b):ba(e,b,i),sm?1:0):(ba(e,b,i),-1)}function Ian(e){e.gb||(e.gb=!0,e.b=ol(e,0),bi(e.b,18),Jr(e.b,19),e.a=ol(e,1),bi(e.a,1),Jr(e.a,2),Jr(e.a,3),Jr(e.a,4),Jr(e.a,5),e.o=ol(e,2),bi(e.o,8),bi(e.o,9),Jr(e.o,10),Jr(e.o,11),Jr(e.o,12),Jr(e.o,13),Jr(e.o,14),Jr(e.o,15),Jr(e.o,16),Jr(e.o,17),Jr(e.o,18),Jr(e.o,19),Jr(e.o,20),Jr(e.o,21),Jr(e.o,22),Jr(e.o,23),xs(e.o),xs(e.o),xs(e.o),xs(e.o),xs(e.o),xs(e.o),xs(e.o),xs(e.o),xs(e.o),xs(e.o),e.p=ol(e,3),bi(e.p,2),bi(e.p,3),bi(e.p,4),bi(e.p,5),Jr(e.p,6),Jr(e.p,7),xs(e.p),xs(e.p),e.q=ol(e,4),bi(e.q,8),e.v=ol(e,5),Jr(e.v,9),xs(e.v),xs(e.v),xs(e.v),e.w=ol(e,6),bi(e.w,2),bi(e.w,3),bi(e.w,4),Jr(e.w,5),e.B=ol(e,7),Jr(e.B,1),xs(e.B),xs(e.B),xs(e.B),e.Q=ol(e,8),Jr(e.Q,0),xs(e.Q),e.R=ol(e,9),bi(e.R,1),e.S=ol(e,10),xs(e.S),xs(e.S),xs(e.S),xs(e.S),xs(e.S),xs(e.S),xs(e.S),xs(e.S),xs(e.S),xs(e.S),xs(e.S),xs(e.S),xs(e.S),xs(e.S),xs(e.S),e.T=ol(e,11),Jr(e.T,10),Jr(e.T,11),Jr(e.T,12),Jr(e.T,13),Jr(e.T,14),xs(e.T),xs(e.T),e.U=ol(e,12),bi(e.U,2),bi(e.U,3),Jr(e.U,4),Jr(e.U,5),Jr(e.U,6),Jr(e.U,7),xs(e.U),e.V=ol(e,13),Jr(e.V,10),e.W=ol(e,14),bi(e.W,18),bi(e.W,19),bi(e.W,20),Jr(e.W,21),Jr(e.W,22),Jr(e.W,23),e.bb=ol(e,15),bi(e.bb,10),bi(e.bb,11),bi(e.bb,12),bi(e.bb,13),bi(e.bb,14),bi(e.bb,15),bi(e.bb,16),Jr(e.bb,17),xs(e.bb),xs(e.bb),e.eb=ol(e,16),bi(e.eb,2),bi(e.eb,3),bi(e.eb,4),bi(e.eb,5),bi(e.eb,6),bi(e.eb,7),Jr(e.eb,8),Jr(e.eb,9),e.ab=ol(e,17),bi(e.ab,0),bi(e.ab,1),e.H=ol(e,18),Jr(e.H,0),Jr(e.H,1),Jr(e.H,2),Jr(e.H,3),Jr(e.H,4),Jr(e.H,5),xs(e.H),e.db=ol(e,19),Jr(e.db,2),e.c=kr(e,20),e.d=kr(e,21),e.e=kr(e,22),e.f=kr(e,23),e.i=kr(e,24),e.g=kr(e,25),e.j=kr(e,26),e.k=kr(e,27),e.n=kr(e,28),e.r=kr(e,29),e.s=kr(e,30),e.t=kr(e,31),e.u=kr(e,32),e.fb=kr(e,33),e.A=kr(e,34),e.C=kr(e,35),e.D=kr(e,36),e.F=kr(e,37),e.G=kr(e,38),e.I=kr(e,39),e.J=kr(e,40),e.L=kr(e,41),e.M=kr(e,42),e.N=kr(e,43),e.O=kr(e,44),e.P=kr(e,45),e.X=kr(e,46),e.Y=kr(e,47),e.Z=kr(e,48),e.$=kr(e,49),e._=kr(e,50),e.cb=kr(e,51),e.K=kr(e,52))}function Pan(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt,zt,Ht,vn;for(d=new Zr,Pe=u(A(n,(Ue(),Wu)),88),L=0,vo(d,(!t.a&&(t.a=new Se(xr,t,10,11)),t.a));d.b!=0;)v=u(d.b==0?null:(yn(d.b!=0),ua(d,d.a.a)),27),m=ri(v),(fe(Ie(m,$h))!==fe((Gd(),wp))||fe(Ie(m,q0))===fe((ip(),A8))||fe(Ie(m,q0))===fe((ip(),R8))||qe(Ve(Ie(m,$w)))||fe(Ie(m,Tv))!==fe((P0(),yv))||fe(Ie(m,Ig))===fe((La(),zw))||fe(Ie(m,Ig))===fe((La(),Av))||fe(Ie(m,Y0))===fe((up(),G8))||fe(Ie(m,Y0))===fe((up(),W8)))&&!qe(Ve(Ie(v,zN)))&&Br(v,(Oe(),Hr),Ae(L++)),z=!qe(Ve(Ie(v,Q0))),z&&(T=(!v.a&&(v.a=new Se(xr,v,10,11)),v.a).i!=0,O=rQt(v),P=fe(Ie(v,Iv))===fe((f1(),Cp)),vn=!rd(v,(gr(),J8))||OJe(Jn(Ie(v,J8))),se=null,vn&&P&&(T||O)&&(se=zct(v),Ee(se,Wu,Pe),Xr(se,HM)&&FFe(new ehe(le(pe(A(se,HM)))),se),u(Ie(v,J0),181).gc()!=0&&(k=se,Ci(new xt(null,(!v.c&&(v.c=new Se(ru,v,9,9)),new Pt(v.c,16))),new Vje(k)),Alt(v,se))),Fe=n,pt=u(pn(e.a,ri(v)),10),pt&&(Fe=pt.e),ne=pat(e,v,Fe),se&&(ne.e=se,se.e=ne,vo(d,(!v.a&&(v.a=new Se(xr,v,10,11)),v.a))));for(L=0,gi(d,t,d.c.b,d.c);d.b!=0;){for(c=u(d.b==0?null:(yn(d.b!=0),ua(d,d.a.a)),27),b=new hn((!c.b&&(c.b=new Se(Ti,c,12,3)),c.b));b.e!=b.i.gc();)h=u(mn(b),74),sct(h),(fe(Ie(t,$h))!==fe((Gd(),wp))||fe(Ie(t,q0))===fe((ip(),A8))||fe(Ie(t,q0))===fe((ip(),R8))||qe(Ve(Ie(t,$w)))||fe(Ie(t,Tv))!==fe((P0(),yv))||fe(Ie(t,Ig))===fe((La(),zw))||fe(Ie(t,Ig))===fe((La(),Av))||fe(Ie(t,Y0))===fe((up(),G8))||fe(Ie(t,Y0))===fe((up(),W8)))&&Br(h,(Oe(),Hr),Ae(L++)),zt=Ds(u(re((!h.b&&(h.b=new jt(Tn,h,4,7)),h.b),0),84)),Ht=Ds(u(re((!h.c&&(h.c=new jt(Tn,h,5,8)),h.c),0),84)),!(qe(Ve(Ie(h,Q0)))||qe(Ve(Ie(zt,Q0)))||qe(Ve(Ie(Ht,Q0))))&&($=fw(h)&&qe(Ve(Ie(zt,Pv)))&&qe(Ve(Ie(h,X0))),ke=c,$||zm(Ht,zt)?ke=zt:zm(zt,Ht)&&(ke=Ht),Fe=n,pt=u(pn(e.a,ke),10),pt&&(Fe=pt.e),J=wge(e,h,ke,Fe),Ee(J,(Oe(),l2e),Prn(e,h,t,n)));if(P=fe(Ie(c,Iv))===fe((f1(),Cp)),P)for(s=new hn((!c.a&&(c.a=new Se(xr,c,10,11)),c.a));s.e!=s.i.gc();)i=u(mn(s),27),vn=!rd(i,(gr(),J8))||OJe(Jn(Ie(i,J8))),dt=fe(Ie(i,Iv))===fe(Cp),vn&&dt&&gi(d,i,d.c.b,d.c)}}function Oe(){Oe=U;var e,t;jr=new Fr(r0e),l2e=new Fr("coordinateOrigin"),vZ=new Fr("processors"),s2e=new fi("compoundNode",(Gt(),!1)),NM=new fi("insideConnections",!1),f2e=new Fr("originalBendpoints"),d2e=new Fr("originalDummyNodePosition"),h2e=new Fr("originalLabelEdge"),Y9=new Fr("representedLabels"),X9=new Fr("endLabels"),l6=new Fr("endLabel.origin"),u6=new fi("labelSide",(Fu(),wO)),O2=new fi("maxEdgeThickness",0),bd=new fi("reversed",!1),a6=new Fr(_ft),Hf=new fi("longEdgeSource",null),Fa=new fi("longEdgeTarget",null),xv=new fi("longEdgeHasLabelDummies",!1),BM=new fi("longEdgeBeforeLabelDummy",!1),LN=new fi("edgeConstraint",(E0(),nZ)),Rw=new Fr("inLayerLayoutUnit"),W0=new fi("inLayerConstraint",(c1(),jM)),c6=new fi("inLayerSuccessorConstraint",new Le),a2e=new fi("inLayerSuccessorConstraintBetweenNonDummies",!1),Zc=new Fr("portDummy"),AN=new fi("crossingHint",Ae(0)),Kl=new fi("graphProperties",(t=u(Pf(uZ),9),new ra(t,u(ef(t,t.length),9),0))),fl=new fi("externalPortSide",(ze(),nl)),u2e=new fi("externalPortSize",new po),pZ=new Fr("externalPortReplacedDummies"),$N=new Fr("externalPortReplacedDummy"),S1=new fi("externalPortConnections",(e=u(Pf(ts),9),new ra(e,u(ef(e,e.length),9),0))),Aw=new fi(Cft,0),o2e=new Fr("barycenterAssociates"),f6=new Fr("TopSideComments"),s6=new Fr("BottomSideComments"),RN=new Fr("CommentConnectionPort"),bZ=new fi("inputCollect",!1),mZ=new fi("outputCollect",!1),DM=new fi("cyclic",!1),c2e=new Fr("crossHierarchyMap"),kZ=new Fr("targetOffset"),new fi("splineLabelSize",new po),R2=new Fr("spacings"),jN=new fi("partitionConstraint",!1),_w=new Fr("breakingPoint.info"),b2e=new Fr("splines.survivingEdge"),V0=new Fr("splines.route.start"),A2=new Fr("splines.edgeChain"),g2e=new Fr("originalPortConstraints"),Lw=new Fr("selfLoopHolder"),N8=new Fr("splines.nsPortY"),Hr=new Fr("modelOrder"),wZ=new Fr("longEdgeTargetNode"),Eg=new fi(rdt,!1),_2=new fi(rdt,!1),gZ=new Fr("layerConstraints.hiddenNodes"),p2e=new Fr("layerConstraints.opposidePort"),yZ=new Fr("targetNode.modelOrder")}function Man(e,t,n,i){var s,c,d,h,b,m,v,k,T,P,O;for(k=Ln(e.b,0);k.b!=k.d.c;)if(v=u(_n(k),40),!Et(v.c,sD))for(c=u(Ks(new xt(null,new Pt(Nen(v,e),16)),Xc(new ue,new oe,new dn,H(F(Ts,1),Te,108,0,[(Jc(),Ws)]))),15),t==(ji(),Ps)||t==Bs?c.jd(new _Oe):c.jd(new ROe),O=c.gc(),s=0;s0&&(h=u(Za(u(c.Xb(s),65).a),8).a,T=v.e.a+v.f.a/2,b=u(Za(u(c.Xb(s),65).a),8).b,P=v.e.b+v.f.b/2,i>0&&w.Math.abs(b-P)/(w.Math.abs(h-T)/40)>50&&(P>b?Wo(u(c.Xb(s),65).a,new Me(v.e.a+v.f.a+i/5.3,v.e.b+v.f.b*d-i/2)):Wo(u(c.Xb(s),65).a,new Me(v.e.a+v.f.a+i/5.3,v.e.b+v.f.b*d+i/2)))),Wo(u(c.Xb(s),65).a,new Me(v.e.a+v.f.a,v.e.b+v.f.b*d))):t==Bs?(m=le(pe(A(v,(Wr(),Kf)))),v.e.a-i>m?Wo(u(c.Xb(s),65).a,new Me(m-n,v.e.b+v.f.b*d)):u(c.Xb(s),65).a.b>0&&(h=u(Za(u(c.Xb(s),65).a),8).a,T=v.e.a+v.f.a/2,b=u(Za(u(c.Xb(s),65).a),8).b,P=v.e.b+v.f.b/2,i>0&&w.Math.abs(b-P)/(w.Math.abs(h-T)/40)>50&&(P>b?Wo(u(c.Xb(s),65).a,new Me(v.e.a-i/5.3,v.e.b+v.f.b*d-i/2)):Wo(u(c.Xb(s),65).a,new Me(v.e.a-i/5.3,v.e.b+v.f.b*d+i/2)))),Wo(u(c.Xb(s),65).a,new Me(v.e.a,v.e.b+v.f.b*d))):t==Ca?(m=le(pe(A(v,(Wr(),gf)))),v.e.b+v.f.b+i0&&(h=u(Za(u(c.Xb(s),65).a),8).a,T=v.e.a+v.f.a/2,b=u(Za(u(c.Xb(s),65).a),8).b,P=v.e.b+v.f.b/2,i>0&&w.Math.abs(h-T)/(w.Math.abs(b-P)/40)>50&&(T>h?Wo(u(c.Xb(s),65).a,new Me(v.e.a+v.f.a*d-i/2,v.e.b+i/5.3+v.f.b)):Wo(u(c.Xb(s),65).a,new Me(v.e.a+v.f.a*d+i/2,v.e.b+i/5.3+v.f.b)))),Wo(u(c.Xb(s),65).a,new Me(v.e.a+v.f.a*d,v.e.b+v.f.b))):(m=le(pe(A(v,(Wr(),Kf)))),_tt(u(c.Xb(s),65),e)?Wo(u(c.Xb(s),65).a,new Me(v.e.a+v.f.a*d,u(Za(u(c.Xb(s),65).a),8).b)):v.e.b-i>m?Wo(u(c.Xb(s),65).a,new Me(v.e.a+v.f.a*d,m-n)):u(c.Xb(s),65).a.b>0&&(h=u(Za(u(c.Xb(s),65).a),8).a,T=v.e.a+v.f.a/2,b=u(Za(u(c.Xb(s),65).a),8).b,P=v.e.b+v.f.b/2,i>0&&w.Math.abs(h-T)/(w.Math.abs(b-P)/40)>50&&(T>h?Wo(u(c.Xb(s),65).a,new Me(v.e.a+v.f.a*d-i/2,v.e.b-i/5.3)):Wo(u(c.Xb(s),65).a,new Me(v.e.a+v.f.a*d+i/2,v.e.b-i/5.3)))),Wo(u(c.Xb(s),65).a,new Me(v.e.a+v.f.a*d,v.e.b)))}function gr(){gr=U;var e,t;J8=new Fr(Hdt),Q2=new Fr(Kdt),Ske=(Ch(),Qee),L3t=new St(fbe,Ske),G2=new St(V4,null),$3t=new Fr(xwe),Eke=(O0(),Yr(tte,H(F(nte,1),Te,298,0,[ete]))),cO=new St(tD,Eke),uO=new St(lM,(Gt(),!1)),Tke=(ji(),yd),nb=new St(FY,Tke),Mke=(d1(),gte),Pke=new St(sM,Mke),N3t=new St(Cwe,!1),Rke=(f1(),jB),q2=new St(eD,Rke),zke=new Ab(12),kp=new St(vw,zke),fO=new St(h9,!1),ste=new St(rD,!1),dO=new St(p9,!1),Wke=(fo(),Lg),Mx=new St(sY,Wke),b6=new Fr(nD),hO=new Fr(JP),hte=new Fr(jj),pte=new Fr(d9),Ake=new _c,Uw=new St(Cbe,Ake),D3t=new St(Ebe,!1),B3t=new St(Tbe,!1),Lke=new o7,Q8=new St(Pbe,Lke),RB=new St(ube,!1),K3t=new St(Udt,1),V2=new Fr(Gdt),W2=new Fr(Wdt),Z8=new St(QP,!1),new St(Vdt,!0),Ae(0),new St(qdt,Ae(100)),new St(Xdt,!1),Ae(0),new St(Ydt,Ae(4e3)),Ae(0),new St(Jdt,Ae(400)),new St(Qdt,!1),new St(Zdt,!1),new St(eht,!0),new St(tht,!1),xke=(v$(),vte),j3t=new St(Swe,xke),U3t=new St(Q0e,10),G3t=new St(Z0e,10),Yke=new St(ZX,20),W3t=new St(ebe,10),Jke=new St(oY,2),Qke=new St(BY,10),Zke=new St(tbe,0),AB=new St(ibe,5),e5e=new St(nbe,1),t5e=new St(rbe,1),ib=new St(av,20),V3t=new St(obe,10),i5e=new St(sbe,10),w6=new Fr(lbe),r5e=new sUe,n5e=new St(Mbe,r5e),z3t=new Fr(HY),Hke=!1,F3t=new St(zY,Hke),jke=new Ab(5),$ke=new St(pbe,jke),Dke=(ev(),t=u(Pf(ds),9),new ra(t,u(ef(t,t.length),9),0)),X2=new St(u8,Dke),Uke=(Vy(),Ag),Kke=new St(wbe,Uke),cte=new Fr(mbe),ute=new Fr(vbe),ate=new Fr(ybe),lte=new Fr(kbe),Nke=(e=u(Pf(Dx),9),new ra(e,u(ef(e,e.length),9),0)),rb=new St(h2,Nke),Fke=ht((du(),iC)),_g=new St(q4,Fke),Bke=new Me(0,0),Y2=new St(X4,Bke),Dv=new St(c8,!1),Ike=(od(),eC),ite=new St(Sbe,Ike),rte=new St(Dj,!1),Ae(1),new St(nht,null),Gke=new Fr(Ibe),fte=new Fr(xbe),Xke=(ze(),nl),J2=new St(abe,Xke),bu=new Fr(cbe),Vke=(Qc(),ht($g)),Nv=new St(a8,Vke),dte=new St(gbe,!1),qke=new St(bbe,!0),$B=new St(ZP,1),o5e=new St(Ewe,null),pO=new St(eM,150),LB=new St(tM,1.414),m6=new St(yw,null),q3t=new St(Twe,1),aO=new St(dbe,!1),ote=new St(hbe,!1),Oke=new St(eY,1),_ke=(V$(),wte),new St(rht,_ke),H3t=!0,Y3t=(I4(),zv),J3t=zv,X3t=zv}function Uo(){Uo=U,iye=new Ri("DIRECTION_PREPROCESSOR",0),tye=new Ri("COMMENT_PREPROCESSOR",1),S2=new Ri("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),NQ=new Ri("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),Sye=new Ri("PARTITION_PREPROCESSOR",4),sN=new Ri("LABEL_DUMMY_INSERTER",5),bN=new Ri("SELF_LOOP_PREPROCESSOR",6),Cv=new Ri("LAYER_CONSTRAINT_PREPROCESSOR",7),kye=new Ri("PARTITION_MIDPROCESSOR",8),dye=new Ri("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),vye=new Ri("NODE_PROMOTION",10),kv=new Ri("LAYER_CONSTRAINT_POSTPROCESSOR",11),Cye=new Ri("PARTITION_POSTPROCESSOR",12),uye=new Ri("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),xye=new Ri("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),Xve=new Ri("BREAKING_POINT_INSERTER",15),aN=new Ri("LONG_EDGE_SPLITTER",16),BQ=new Ri("PORT_SIDE_PROCESSOR",17),iN=new Ri("INVERTED_PORT_PROCESSOR",18),hN=new Ri("PORT_LIST_SORTER",19),Tye=new Ri("SORT_BY_INPUT_ORDER_OF_MODEL",20),dN=new Ri("NORTH_SOUTH_PORT_PREPROCESSOR",21),Yve=new Ri("BREAKING_POINT_PROCESSOR",22),yye=new Ri(Xft,23),Iye=new Ri(Yft,24),pN=new Ri("SELF_LOOP_PORT_RESTORER",25),Eye=new Ri("SINGLE_EDGE_GRAPH_WRAPPER",26),oN=new Ri("IN_LAYER_CONSTRAINT_PROCESSOR",27),sye=new Ri("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),wye=new Ri("LABEL_AND_NODE_SIZE_PROCESSOR",29),bye=new Ri("INNERMOST_NODE_MARGIN_CALCULATOR",30),wN=new Ri("SELF_LOOP_ROUTER",31),Zve=new Ri("COMMENT_NODE_MARGIN_CALCULATOR",32),rN=new Ri("END_LABEL_PREPROCESSOR",33),cN=new Ri("LABEL_DUMMY_SWITCHER",34),Qve=new Ri("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),T8=new Ri("LABEL_SIDE_SELECTOR",36),pye=new Ri("HYPEREDGE_DUMMY_MERGER",37),aye=new Ri("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),mye=new Ri("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),K9=new Ri("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),nye=new Ri("CONSTRAINTS_POSTPROCESSOR",41),eye=new Ri("COMMENT_POSTPROCESSOR",42),gye=new Ri("HYPERNODE_PROCESSOR",43),fye=new Ri("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),uN=new Ri("LONG_EDGE_JOINER",45),gN=new Ri("SELF_LOOP_POSTPROCESSOR",46),Jve=new Ri("BREAKING_POINT_REMOVER",47),fN=new Ri("NORTH_SOUTH_PORT_POSTPROCESSOR",48),hye=new Ri("HORIZONTAL_COMPACTOR",49),lN=new Ri("LABEL_DUMMY_REMOVER",50),lye=new Ri("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),oye=new Ri("END_LABEL_SORTER",52),_M=new Ri("REVERSED_EDGE_RESTORER",53),nN=new Ri("END_LABEL_POSTPROCESSOR",54),cye=new Ri("HIERARCHICAL_NODE_RESIZER",55),rye=new Ri("DIRECTION_POSTPROCESSOR",56)}function mge(){mge=U,I2e=(LI(),EN),uwt=new St(h0e,I2e),kwt=new St(p0e,(Gt(),!1)),A2e=(bL(),hZ),Twt=new St(zj,A2e),zwt=new St(g0e,!1),Hwt=new St(b0e,!0),$bt=new St(w0e,!1),z2e=(RI(),qZ),rmt=new St(m0e,z2e),Ae(1),fmt=new St(v0e,Ae(7)),dmt=new St(y0e,!1),Cwt=new St(k0e,!1),T2e=(ip(),eZ),cwt=new St(hY,T2e),j2e=(up(),FZ),Fwt=new St(oM,j2e),L2e=(pa(),FM),Rwt=new St(C0e,L2e),Ae(-1),_wt=new St(S0e,null),Ae(-1),Awt=new St(x0e,Ae(-1)),Ae(-1),Lwt=new St(pY,Ae(4)),Ae(-1),jwt=new St(gY,Ae(2)),$2e=(La(),rB),Bwt=new St(bY,$2e),Ae(0),Nwt=new St(wY,Ae(0)),Mwt=new St(mY,Ae(Mr)),E2e=(hS(),G9),lwt=new St(w9,E2e),Wbt=new St(E0e,!1),Zbt=new St(vY,.1),owt=new St(yY,!1),twt=new St(T0e,null),nwt=new St(I0e,null),Ae(-1),rwt=new St(P0e,null),Ae(-1),iwt=new St(M0e,Ae(-1)),Ae(0),Vbt=new St(O0e,Ae(40)),x2e=(g5(),fZ),Jbt=new St(kY,x2e),S2e=$M,qbt=new St(Hj,S2e),F2e=(AS(),ox),nmt=new St(p2,F2e),Vwt=new Fr(Kj),D2e=(II(),IN),Kwt=new St(CY,D2e),N2e=(hP(),PN),Gwt=new St(SY,N2e),Ywt=new St(xY,.3),Qwt=new Fr(EY),B2e=(qm(),nB),Zwt=new St(TY,B2e),O2e=(i$(),YZ),pwt=new St(_0e,O2e),_2e=(yS(),QZ),gwt=new St(R0e,_2e),R2e=(S5(),cx),bwt=new St(Uj,R2e),mwt=new St(Gj,.2),dwt=new St(IY,2),lmt=new St(A0e,null),umt=new St(L0e,10),cmt=new St($0e,10),amt=new St(j0e,20),Ae(0),imt=new St(D0e,Ae(0)),Ae(0),omt=new St(N0e,Ae(0)),Ae(0),smt=new St(B0e,Ae(0)),jbt=new St(PY,!1),v2e=(N5(),W9),Nbt=new St(F0e,v2e),m2e=(IL(),QQ),Dbt=new St(z0e,m2e),xwt=new St(Wj,!1),Ae(0),Swt=new St(MY,Ae(16)),Ae(0),Ewt=new St(OY,Ae(5)),U2e=(c$(),tee),Rmt=new St(y1,U2e),hmt=new St(Vj,10),bmt=new St(qj,1),K2e=(UL(),xN),Smt=new St(m9,K2e),vmt=new Fr(_Y),H2e=Ae(1),Ae(0),kmt=new St(RY,H2e),G2e=(KL(),eee),jmt=new St(Xj,G2e),Amt=new Fr(Yj),Pmt=new St(Jj,!0),Tmt=new St(Qj,2),Omt=new St(AY,!0),M2e=(X$(),TN),fwt=new St(H0e,M2e),P2e=(L4(),O8),awt=new St(K0e,P2e),C2e=(Gd(),wp),Gbt=new St(Zj,C2e),Ubt=new St(U0e,!1),Kbt=new St(G0e,!1),y2e=(P0(),yv),Bbt=new St(LY,y2e),k2e=(SS(),zZ),Hbt=new St(W0e,k2e),Fbt=new St($Y,0),zbt=new St(jY,0),Pwt=tZ,Iwt=LM,$wt=eB,Dwt=eB,Owt=BZ,ewt=(f1(),Cp),swt=G9,Qbt=G9,Xbt=G9,Ybt=Cp,qwt=sx,Xwt=ox,Uwt=ox,Wwt=ox,Jwt=GZ,tmt=sx,emt=sx,wwt=(d1(),v6),vwt=v6,ywt=cx,hwt=gO,pmt=V8,gmt=Lv,wmt=V8,mmt=Lv,xmt=V8,Emt=Lv,ymt=ZQ,Cmt=xN,Dmt=V8,Nmt=Lv,Lmt=V8,$mt=Lv,Mmt=Lv,Imt=Lv,_mt=Lv}function Oan(e,t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt,zt,Ht,vn,Tr,di,iu,Ms,Ju,i3,Mp,Cf,Sf,cb,E6,Kg,T6,ah,Hh,Xw,I6,o3,fh,ub,P1,N6t,P8e,Yw,Yx,jte,P6,Jx,Xv,Qx,Dte,B6t;for(P8e=0,Tr=t,Ms=0,Mp=Tr.length;Ms0&&(e.a[ah.p]=P8e++)}for(Jx=0,di=n,Ju=0,Cf=di.length;Ju0;){for(ah=(yn(o3.b>0),u(o3.a.Xb(o3.c=--o3.b),12)),I6=0,h=new N(ah.e);h.a0&&(ah.j==(ze(),en)?(e.a[ah.p]=Jx,++Jx):(e.a[ah.p]=Jx+Sf+E6,++E6))}Jx+=E6}for(Xw=new On,O=new Dd,vn=t,iu=0,i3=vn.length;ium.b&&(m.b=fh)):ah.i.c==N6t&&(fhm.c&&(m.c=fh));for(Zk(L,0,L.length,null),P6=be(Bn,ur,28,L.length,15,1),i=be(Bn,ur,28,Jx+1,15,1),z=0;z0;)Fe%2>0&&(s+=Dte[Fe+1]),Fe=(Fe-1)/2|0,++Dte[Fe];for(dt=be(jvt,Bt,374,L.length*2,0,1),se=0;se0&&fI(iu.f),Ie(z,o5e)!=null&&(h=u(Ie(z,o5e),347),Xw=h.Tg(z),My(z,w.Math.max(z.g,Xw.a),w.Math.max(z.f,Xw.b)));if(Cf=u(Ie(t,kp),107),P=t.g-(Cf.b+Cf.c),T=t.f-(Cf.d+Cf.a),fh.bh("Available Child Area: ("+P+"|"+T+")"),Br(t,G2,P/T),frt(t,s,i.eh(i3)),u(Ie(t,m6),280)==HB&&(pge(t),My(t,Cf.b+le(pe(Ie(t,V2)))+Cf.c,Cf.d+le(pe(Ie(t,W2)))+Cf.a)),fh.bh("Executed layout algorithm: "+Jn(Ie(t,J8))+" on node "+t.k),u(Ie(t,m6),280)==zv){if(P<0||T<0)throw B(new N1("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+t.k));for(rd(t,V2)||rd(t,W2)||pge(t),L=le(pe(Ie(t,V2))),O=le(pe(Ie(t,W2))),fh.bh("Desired Child Area: ("+L+"|"+O+")"),cb=P/L,E6=T/O,Sf=w.Math.min(cb,w.Math.min(E6,le(pe(Ie(t,q3t))))),Br(t,$B,Sf),fh.bh(t.k+" -- Local Scale Factor (X|Y): ("+cb+"|"+E6+")"),se=u(Ie(t,cO),21),c=0,d=0,Sf'?":Et($ht,e)?"'(?<' or '(? toIndex: ",$ge=", toIndex: ",jge="Index: ",Dge=", Size: ",i8="org.eclipse.elk.alg.common",tr={50:1},ift="org.eclipse.elk.alg.common.compaction",oft="Scanline/EventHandler",Mh="org.eclipse.elk.alg.common.compaction.oned",sft="CNode belongs to another CGroup.",lft="ISpacingsHandler/1",zX="The ",HX=" instance has been finished already.",cft="The direction ",uft=" is not supported by the CGraph instance.",aft="OneDimensionalCompactor",fft="OneDimensionalCompactor/lambda$0$Type",dft="Quadruplet",hft="ScanlineConstraintCalculator",pft="ScanlineConstraintCalculator/ConstraintsScanlineHandler",gft="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",bft="ScanlineConstraintCalculator/Timestamp",wft="ScanlineConstraintCalculator/lambda$0$Type",Jd={178:1,46:1},KX="org.eclipse.elk.alg.common.compaction.options",tl="org.eclipse.elk.core.data",Nge="org.eclipse.elk.polyomino.traversalStrategy",Bge="org.eclipse.elk.polyomino.lowLevelSort",Fge="org.eclipse.elk.polyomino.highLevelSort",zge="org.eclipse.elk.polyomino.fill",$a={134:1},UX="polyomino",u9="org.eclipse.elk.alg.common.networksimplex",Oh={183:1,3:1,4:1},mft="org.eclipse.elk.alg.common.nodespacing",$0="org.eclipse.elk.alg.common.nodespacing.cellsystem",o8="CENTER",vft={217:1,336:1},Hge={3:1,4:1,5:1,603:1},U4="LEFT",G4="RIGHT",Kge="Vertical alignment cannot be null",Uge="BOTTOM",Oj="org.eclipse.elk.alg.common.nodespacing.internal",a9="UNDEFINED",fd=.01,qP="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",yft="LabelPlacer/lambda$0$Type",kft="LabelPlacer/lambda$1$Type",Cft="portRatioOrPosition",s8="org.eclipse.elk.alg.common.overlaps",GX="DOWN",Qd="org.eclipse.elk.alg.common.polyomino",_j="NORTH",WX="EAST",VX="SOUTH",qX="WEST",Rj="org.eclipse.elk.alg.common.polyomino.structures",Gge="Direction",XX="Grid is only of size ",YX=". Requested point (",JX=") is out of bounds.",Aj=" Given center based coordinates were (",XP="org.eclipse.elk.graph.properties",Sft="IPropertyHolder",Wge={3:1,96:1,137:1},W4="org.eclipse.elk.alg.common.spore",xft="org.eclipse.elk.alg.common.utils",j0={205:1},a2="org.eclipse.elk.core",Eft="Connected Components Compaction",Tft="org.eclipse.elk.alg.disco",Lj="org.eclipse.elk.alg.disco.graph",QX="org.eclipse.elk.alg.disco.options",Vge="CompactionStrategy",qge="org.eclipse.elk.disco.componentCompaction.strategy",Xge="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",Yge="org.eclipse.elk.disco.debug.discoGraph",Jge="org.eclipse.elk.disco.debug.discoPolys",Ift="componentCompaction",D0="org.eclipse.elk.disco",ZX="org.eclipse.elk.spacing.componentComponent",eY="org.eclipse.elk.edge.thickness",V4="org.eclipse.elk.aspectRatio",vw="org.eclipse.elk.padding",f2="org.eclipse.elk.alg.disco.transform",tY=1.5707963267948966,d2=17976931348623157e292,uv={3:1,4:1,5:1,198:1},Pft={3:1,6:1,4:1,5:1,100:1,115:1},nY="org.eclipse.elk.alg.force",Qge="ComponentsProcessor",Mft="ComponentsProcessor/1",Zge="ElkGraphImporter/lambda$0$Type",YP="org.eclipse.elk.alg.force.graph",Oft="Component Layout",e0e="org.eclipse.elk.alg.force.model",$j="org.eclipse.elk.force.model",t0e="org.eclipse.elk.force.iterations",n0e="org.eclipse.elk.force.repulsivePower",rY="org.eclipse.elk.force.temperature",Zd=.001,iY="org.eclipse.elk.force.repulsion",f9="org.eclipse.elk.alg.force.options",l8=1.600000023841858,uc="org.eclipse.elk.force",JP="org.eclipse.elk.priority",av="org.eclipse.elk.spacing.nodeNode",oY="org.eclipse.elk.spacing.edgeLabel",jj="org.eclipse.elk.randomSeed",d9="org.eclipse.elk.separateConnectedComponents",h9="org.eclipse.elk.interactive",sY="org.eclipse.elk.portConstraints",Dj="org.eclipse.elk.edgeLabels.inline",p9="org.eclipse.elk.omitNodeMicroLayout",c8="org.eclipse.elk.nodeSize.fixedGraphSize",q4="org.eclipse.elk.nodeSize.options",h2="org.eclipse.elk.nodeSize.constraints",u8="org.eclipse.elk.nodeLabels.placement",a8="org.eclipse.elk.portLabels.placement",QP="org.eclipse.elk.topdownLayout",ZP="org.eclipse.elk.topdown.scaleFactor",eM="org.eclipse.elk.topdown.hierarchicalNodeWidth",tM="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",yw="org.eclipse.elk.topdown.nodeType",r0e="origin",_ft="random",Rft="boundingBox.upLeft",Aft="boundingBox.lowRight",i0e="org.eclipse.elk.stress.fixed",o0e="org.eclipse.elk.stress.desiredEdgeLength",s0e="org.eclipse.elk.stress.dimension",l0e="org.eclipse.elk.stress.epsilon",c0e="org.eclipse.elk.stress.iterationLimit",bg="org.eclipse.elk.stress",Lft="ELK Stress",X4="org.eclipse.elk.nodeSize.minimum",Nj="org.eclipse.elk.alg.force.stress",$ft="Layered layout",Y4="org.eclipse.elk.alg.layered",nM="org.eclipse.elk.alg.layered.compaction.components",g9="org.eclipse.elk.alg.layered.compaction.oned",Bj="org.eclipse.elk.alg.layered.compaction.oned.algs",N0="org.eclipse.elk.alg.layered.compaction.recthull",dd="org.eclipse.elk.alg.layered.components",eh="NONE",u0e="MODEL_ORDER",Sl={3:1,6:1,4:1,9:1,5:1,126:1},jft={3:1,6:1,4:1,5:1,150:1,100:1,115:1},Fj="org.eclipse.elk.alg.layered.compound",qr={47:1},Bl="org.eclipse.elk.alg.layered.graph",lY=" -> ",Dft="Not supported by LGraph",a0e="Port side is undefined",cY={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},fp={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},Nft={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},Bft=`([{"' \r -`,Fft=`)]}"' \r -`,zft="The given string contains parts that cannot be parsed as numbers.",rM="org.eclipse.elk.core.math",Hft={3:1,4:1,140:1,214:1,423:1},Kft={3:1,4:1,107:1,214:1,423:1},dp="org.eclipse.elk.alg.layered.graph.transform",Uft="ElkGraphImporter",Gft="ElkGraphImporter/lambda$1$Type",Wft="ElkGraphImporter/lambda$2$Type",Vft="ElkGraphImporter/lambda$4$Type",ln="org.eclipse.elk.alg.layered.intermediate",qft="Node margin calculation",Xft="ONE_SIDED_GREEDY_SWITCH",Yft="TWO_SIDED_GREEDY_SWITCH",uY="No implementation is available for the layout processor ",aY="IntermediateProcessorStrategy",fY="Node '",Jft="FIRST_SEPARATE",Qft="LAST_SEPARATE",Zft="Odd port side processing",Ui="org.eclipse.elk.alg.layered.intermediate.compaction",b9="org.eclipse.elk.alg.layered.intermediate.greedyswitch",_h="org.eclipse.elk.alg.layered.p3order.counting",iM={230:1},J4="org.eclipse.elk.alg.layered.intermediate.loops",Uu="org.eclipse.elk.alg.layered.intermediate.loops.ordering",wg="org.eclipse.elk.alg.layered.intermediate.loops.routing",f0e="org.eclipse.elk.alg.layered.intermediate.preserveorder",th="org.eclipse.elk.alg.layered.intermediate.wrapping",xl="org.eclipse.elk.alg.layered.options",dY="INTERACTIVE",d0e="GREEDY",edt="DEPTH_FIRST",tdt="EDGE_LENGTH",ndt="SELF_LOOPS",rdt="firstTryWithInitialOrder",h0e="org.eclipse.elk.layered.directionCongruency",p0e="org.eclipse.elk.layered.feedbackEdges",zj="org.eclipse.elk.layered.interactiveReferencePoint",g0e="org.eclipse.elk.layered.mergeEdges",b0e="org.eclipse.elk.layered.mergeHierarchyEdges",w0e="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",m0e="org.eclipse.elk.layered.portSortingStrategy",v0e="org.eclipse.elk.layered.thoroughness",y0e="org.eclipse.elk.layered.unnecessaryBendpoints",k0e="org.eclipse.elk.layered.generatePositionAndLayerIds",hY="org.eclipse.elk.layered.cycleBreaking.strategy",oM="org.eclipse.elk.layered.layering.strategy",C0e="org.eclipse.elk.layered.layering.layerConstraint",S0e="org.eclipse.elk.layered.layering.layerChoiceConstraint",x0e="org.eclipse.elk.layered.layering.layerId",pY="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",gY="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",bY="org.eclipse.elk.layered.layering.nodePromotion.strategy",wY="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",mY="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",w9="org.eclipse.elk.layered.crossingMinimization.strategy",E0e="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",vY="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",yY="org.eclipse.elk.layered.crossingMinimization.semiInteractive",T0e="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",I0e="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",P0e="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",M0e="org.eclipse.elk.layered.crossingMinimization.positionId",O0e="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",kY="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",Hj="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",p2="org.eclipse.elk.layered.nodePlacement.strategy",Kj="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",CY="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",SY="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",xY="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",EY="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",TY="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",_0e="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",R0e="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",Uj="org.eclipse.elk.layered.edgeRouting.splines.mode",Gj="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",IY="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",A0e="org.eclipse.elk.layered.spacing.baseValue",L0e="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",$0e="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",j0e="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",D0e="org.eclipse.elk.layered.priority.direction",N0e="org.eclipse.elk.layered.priority.shortness",B0e="org.eclipse.elk.layered.priority.straightness",PY="org.eclipse.elk.layered.compaction.connectedComponents",F0e="org.eclipse.elk.layered.compaction.postCompaction.strategy",z0e="org.eclipse.elk.layered.compaction.postCompaction.constraints",Wj="org.eclipse.elk.layered.highDegreeNodes.treatment",MY="org.eclipse.elk.layered.highDegreeNodes.threshold",OY="org.eclipse.elk.layered.highDegreeNodes.treeHeight",y1="org.eclipse.elk.layered.wrapping.strategy",Vj="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",qj="org.eclipse.elk.layered.wrapping.correctionFactor",m9="org.eclipse.elk.layered.wrapping.cutting.strategy",_Y="org.eclipse.elk.layered.wrapping.cutting.cuts",RY="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",Xj="org.eclipse.elk.layered.wrapping.validify.strategy",Yj="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",Jj="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",Qj="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",AY="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",H0e="org.eclipse.elk.layered.edgeLabels.sideSelection",K0e="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",Zj="org.eclipse.elk.layered.considerModelOrder.strategy",U0e="org.eclipse.elk.layered.considerModelOrder.portModelOrder",G0e="org.eclipse.elk.layered.considerModelOrder.noModelOrder",LY="org.eclipse.elk.layered.considerModelOrder.components",W0e="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",$Y="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",jY="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",DY="layering",idt="layering.minWidth",odt="layering.nodePromotion",f8="crossingMinimization",eD="org.eclipse.elk.hierarchyHandling",sdt="crossingMinimization.greedySwitch",ldt="nodePlacement",cdt="nodePlacement.bk",udt="edgeRouting",sM="org.eclipse.elk.edgeRouting",hd="spacing",V0e="priority",q0e="compaction",adt="compaction.postCompaction",fdt="Specifies whether and how post-process compaction is applied.",X0e="highDegreeNodes",Y0e="wrapping",ddt="wrapping.cutting",hdt="wrapping.validify",J0e="wrapping.multiEdge",NY="edgeLabels",v9="considerModelOrder",Q0e="org.eclipse.elk.spacing.commentComment",Z0e="org.eclipse.elk.spacing.commentNode",ebe="org.eclipse.elk.spacing.edgeEdge",BY="org.eclipse.elk.spacing.edgeNode",tbe="org.eclipse.elk.spacing.labelLabel",nbe="org.eclipse.elk.spacing.labelPortHorizontal",rbe="org.eclipse.elk.spacing.labelPortVertical",ibe="org.eclipse.elk.spacing.labelNode",obe="org.eclipse.elk.spacing.nodeSelfLoop",sbe="org.eclipse.elk.spacing.portPort",lbe="org.eclipse.elk.spacing.individual",cbe="org.eclipse.elk.port.borderOffset",ube="org.eclipse.elk.noLayout",abe="org.eclipse.elk.port.side",lM="org.eclipse.elk.debugMode",fbe="org.eclipse.elk.alignment",dbe="org.eclipse.elk.insideSelfLoops.activate",hbe="org.eclipse.elk.insideSelfLoops.yo",FY="org.eclipse.elk.direction",pbe="org.eclipse.elk.nodeLabels.padding",gbe="org.eclipse.elk.portLabels.nextToPortIfPossible",bbe="org.eclipse.elk.portLabels.treatAsGroup",wbe="org.eclipse.elk.portAlignment.default",mbe="org.eclipse.elk.portAlignment.north",vbe="org.eclipse.elk.portAlignment.south",ybe="org.eclipse.elk.portAlignment.west",kbe="org.eclipse.elk.portAlignment.east",tD="org.eclipse.elk.contentAlignment",Cbe="org.eclipse.elk.junctionPoints",Sbe="org.eclipse.elk.edgeLabels.placement",xbe="org.eclipse.elk.port.index",Ebe="org.eclipse.elk.commentBox",Tbe="org.eclipse.elk.hypernode",Ibe="org.eclipse.elk.port.anchor",zY="org.eclipse.elk.partitioning.activate",HY="org.eclipse.elk.partitioning.partition",nD="org.eclipse.elk.position",Pbe="org.eclipse.elk.margins",Mbe="org.eclipse.elk.spacing.portsSurrounding",rD="org.eclipse.elk.interactiveLayout",cl="org.eclipse.elk.core.util",Obe={3:1,4:1,5:1,601:1},pdt="NETWORK_SIMPLEX",_be="SIMPLE",as={106:1,47:1},iD="org.eclipse.elk.alg.layered.p1cycles",k1="org.eclipse.elk.alg.layered.p2layers",Rbe={413:1,230:1},gdt={846:1,3:1,4:1},Fc="org.eclipse.elk.alg.layered.p3order",fs="org.eclipse.elk.alg.layered.p4nodes",bdt={3:1,4:1,5:1,854:1},nh=1e-5,mg="org.eclipse.elk.alg.layered.p4nodes.bk",KY="org.eclipse.elk.alg.layered.p5edges",Bf="org.eclipse.elk.alg.layered.p5edges.orthogonal",UY="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",GY=1e-6,fv="org.eclipse.elk.alg.layered.p5edges.splines",WY=.09999999999999998,oD=1e-8,wdt=4.71238898038469,Abe=3.141592653589793,C1="org.eclipse.elk.alg.mrtree",VY=.10000000149011612,sD="SUPER_ROOT",y9="org.eclipse.elk.alg.mrtree.graph",Lbe=-17976931348623157e292,Fl="org.eclipse.elk.alg.mrtree.intermediate",mdt="Processor compute fanout",lD={3:1,6:1,4:1,5:1,534:1,100:1,115:1},vdt="Set neighbors in level",cM="org.eclipse.elk.alg.mrtree.options",ydt="DESCENDANTS",$be="org.eclipse.elk.mrtree.compaction",jbe="org.eclipse.elk.mrtree.edgeEndTextureLength",Dbe="org.eclipse.elk.mrtree.treeLevel",Nbe="org.eclipse.elk.mrtree.positionConstraint",Bbe="org.eclipse.elk.mrtree.weighting",Fbe="org.eclipse.elk.mrtree.edgeRoutingMode",zbe="org.eclipse.elk.mrtree.searchOrder",kdt="Position Constraint",ac="org.eclipse.elk.mrtree",Cdt="org.eclipse.elk.tree",Sdt="Processor arrange level",d8="org.eclipse.elk.alg.mrtree.p2order",Pu="org.eclipse.elk.alg.mrtree.p4route",Hbe="org.eclipse.elk.alg.radial",B0=6.283185307179586,Kbe="Before",Ube=5e-324,cD="After",Gbe="org.eclipse.elk.alg.radial.intermediate",xdt="COMPACTION",qY="org.eclipse.elk.alg.radial.intermediate.compaction",Edt={3:1,4:1,5:1,100:1},Wbe="org.eclipse.elk.alg.radial.intermediate.optimization",XY="No implementation is available for the layout option ",k9="org.eclipse.elk.alg.radial.options",Vbe="org.eclipse.elk.radial.centerOnRoot",qbe="org.eclipse.elk.radial.orderId",Xbe="org.eclipse.elk.radial.radius",uD="org.eclipse.elk.radial.rotate",YY="org.eclipse.elk.radial.compactor",JY="org.eclipse.elk.radial.compactionStepSize",Ybe="org.eclipse.elk.radial.sorter",Jbe="org.eclipse.elk.radial.wedgeCriteria",Qbe="org.eclipse.elk.radial.optimizationCriteria",QY="org.eclipse.elk.radial.rotation.targetAngle",ZY="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",Zbe="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",Tdt="Compaction",ewe="rotation",wa="org.eclipse.elk.radial",Idt="org.eclipse.elk.alg.radial.p1position.wedge",twe="org.eclipse.elk.alg.radial.sorting",Pdt=5.497787143782138,Mdt=3.9269908169872414,Odt=2.356194490192345,_dt="org.eclipse.elk.alg.rectpacking",aD="org.eclipse.elk.alg.rectpacking.intermediate",eJ="org.eclipse.elk.alg.rectpacking.options",nwe="org.eclipse.elk.rectpacking.trybox",rwe="org.eclipse.elk.rectpacking.currentPosition",iwe="org.eclipse.elk.rectpacking.desiredPosition",owe="org.eclipse.elk.rectpacking.inNewRow",swe="org.eclipse.elk.rectpacking.widthApproximation.strategy",lwe="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",cwe="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",uwe="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",awe="org.eclipse.elk.rectpacking.packing.strategy",fwe="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",dwe="org.eclipse.elk.rectpacking.packing.compaction.iterations",hwe="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",tJ="widthApproximation",Rdt="Compaction Strategy",Adt="packing.compaction",pu="org.eclipse.elk.rectpacking",h8="org.eclipse.elk.alg.rectpacking.p1widthapproximation",fD="org.eclipse.elk.alg.rectpacking.p2packing",Ldt="No Compaction",pwe="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",uM="org.eclipse.elk.alg.rectpacking.util",dD="No implementation available for ",dv="org.eclipse.elk.alg.spore",hv="org.eclipse.elk.alg.spore.options",kw="org.eclipse.elk.sporeCompaction",nJ="org.eclipse.elk.underlyingLayoutAlgorithm",gwe="org.eclipse.elk.processingOrder.treeConstruction",bwe="org.eclipse.elk.processingOrder.spanningTreeCostFunction",rJ="org.eclipse.elk.processingOrder.preferredRoot",iJ="org.eclipse.elk.processingOrder.rootSelection",oJ="org.eclipse.elk.structure.structureExtractionStrategy",wwe="org.eclipse.elk.compaction.compactionStrategy",mwe="org.eclipse.elk.compaction.orthogonal",vwe="org.eclipse.elk.overlapRemoval.maxIterations",ywe="org.eclipse.elk.overlapRemoval.runScanline",sJ="processingOrder",$dt="overlapRemoval",p8="org.eclipse.elk.sporeOverlap",jdt="org.eclipse.elk.alg.spore.p1structure",lJ="org.eclipse.elk.alg.spore.p2processingorder",cJ="org.eclipse.elk.alg.spore.p3execution",Ddt="Topdown Layout",Ndt="Invalid index: ",g8="org.eclipse.elk.core.alg",g2={341:1},pv={295:1},Bdt="Make sure its type is registered with the ",kwe=" utility class.",b8="true",uJ="false",Fdt="Couldn't clone property '",Cw=.05,gu="org.eclipse.elk.core.options",zdt=1.2999999523162842,Sw="org.eclipse.elk.box",Cwe="org.eclipse.elk.expandNodes",Swe="org.eclipse.elk.box.packingMode",Hdt="org.eclipse.elk.algorithm",Kdt="org.eclipse.elk.resolvedAlgorithm",xwe="org.eclipse.elk.bendPoints",$an="org.eclipse.elk.labelManager",Udt="org.eclipse.elk.scaleFactor",Gdt="org.eclipse.elk.childAreaWidth",Wdt="org.eclipse.elk.childAreaHeight",Vdt="org.eclipse.elk.animate",qdt="org.eclipse.elk.animTimeFactor",Xdt="org.eclipse.elk.layoutAncestors",Ydt="org.eclipse.elk.maxAnimTime",Jdt="org.eclipse.elk.minAnimTime",Qdt="org.eclipse.elk.progressBar",Zdt="org.eclipse.elk.validateGraph",eht="org.eclipse.elk.validateOptions",tht="org.eclipse.elk.zoomToFit",jan="org.eclipse.elk.font.name",nht="org.eclipse.elk.font.size",Ewe="org.eclipse.elk.topdown.sizeApproximator",Twe="org.eclipse.elk.topdown.scaleCap",rht="org.eclipse.elk.edge.type",iht="partitioning",oht="nodeLabels",hD="portAlignment",aJ="nodeSize",fJ="port",Iwe="portLabels",aM="topdown",sht="insideSelfLoops",C9="org.eclipse.elk.fixed",pD="org.eclipse.elk.random",Pwe={3:1,34:1,22:1,347:1},lht="port must have a parent node to calculate the port side",cht="The edge needs to have exactly one edge section. Found: ",S9="org.eclipse.elk.core.util.adapters",ma="org.eclipse.emf.ecore",b2="org.eclipse.elk.graph",uht="EMapPropertyHolder",aht="ElkBendPoint",fht="ElkGraphElement",dht="ElkConnectableShape",Mwe="ElkEdge",hht="ElkEdgeSection",pht="EModelElement",ght="ENamedElement",Owe="ElkLabel",_we="ElkNode",Rwe="ElkPort",bht={94:1,93:1},Q4="org.eclipse.emf.common.notify.impl",vg="The feature '",x9="' is not a valid changeable feature",wht="Expecting null",dJ="' is not a valid feature",mht="The feature ID",vht=" is not a valid feature ID",wl=32768,yht={110:1,94:1,93:1,58:1,54:1,99:1},Vt="org.eclipse.emf.ecore.impl",F0="org.eclipse.elk.graph.impl",E9="Recursive containment not allowed for ",w8="The datatype '",xw="' is not a valid classifier",hJ="The value '",w2={195:1,3:1,4:1},pJ="The class '",m8="http://www.eclipse.org/elk/ElkGraph",Awe="property",T9="value",gJ="source",kht="properties",Cht="identifier",bJ="height",wJ="width",mJ="parent",vJ="text",yJ="children",Sht="hierarchical",Lwe="sources",kJ="targets",$we="sections",gD="bendPoints",jwe="outgoingShape",Dwe="incomingShape",Nwe="outgoingSections",Bwe="incomingSections",Yo="org.eclipse.emf.common.util",Fwe="Severe implementation error in the Json to ElkGraph importer.",rh="id",Mo="org.eclipse.elk.graph.json",zwe="Unhandled parameter types: ",xht="startPoint",Eht="An edge must have at least one source and one target (edge id: '",v8="').",Tht="Referenced edge section does not exist: ",Iht=" (edge id: '",Hwe="target",Pht="sourcePoint",Mht="targetPoint",bD="group",Sr="name",Oht="connectableShape cannot be null",_ht="edge cannot be null",CJ="Passed edge is not 'simple'.",wD="org.eclipse.elk.graph.util",fM="The 'no duplicates' constraint is violated",SJ="targetIndex=",z0=", size=",xJ="sourceIndex=",ih={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},EJ={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},mD="logging",Rht="measureExecutionTime",Aht="parser.parse.1",Lht="parser.parse.2",vD="parser.next.1",TJ="parser.next.2",$ht="parser.next.3",jht="parser.next.4",H0="parser.factor.1",Kwe="parser.factor.2",Dht="parser.factor.3",Nht="parser.factor.4",Bht="parser.factor.5",Fht="parser.factor.6",zht="parser.atom.1",Hht="parser.atom.2",Kht="parser.atom.3",Uwe="parser.atom.4",IJ="parser.atom.5",Gwe="parser.cc.1",yD="parser.cc.2",Uht="parser.cc.3",Ght="parser.cc.5",Wwe="parser.cc.6",Vwe="parser.cc.7",PJ="parser.cc.8",Wht="parser.ope.1",Vht="parser.ope.2",qht="parser.ope.3",hp="parser.descape.1",Xht="parser.descape.2",Yht="parser.descape.3",Jht="parser.descape.4",Qht="parser.descape.5",va="parser.process.1",Zht="parser.quantifier.1",e1t="parser.quantifier.2",t1t="parser.quantifier.3",n1t="parser.quantifier.4",qwe="parser.quantifier.5",r1t="org.eclipse.emf.common.notify",Xwe={424:1,686:1},i1t={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},dM={378:1,152:1},I9="index=",MJ={3:1,4:1,5:1,129:1},o1t={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},Ywe={3:1,6:1,4:1,5:1,198:1},s1t={3:1,4:1,5:1,173:1,379:1},l1t=";/?:@&=+$,",c1t="invalid authority: ",u1t="EAnnotation",a1t="ETypedElement",f1t="EStructuralFeature",d1t="EAttribute",h1t="EClassifier",p1t="EEnumLiteral",g1t="EGenericType",b1t="EOperation",w1t="EParameter",m1t="EReference",v1t="ETypeParameter",ni="org.eclipse.emf.ecore.util",OJ={79:1},Jwe={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},y1t="org.eclipse.emf.ecore.util.FeatureMap$Entry",zc=8192,gv=2048,P9="byte",kD="char",M9="double",O9="float",_9="int",R9="long",A9="short",k1t="java.lang.Object",m2={3:1,4:1,5:1,254:1},Qwe={3:1,4:1,5:1,688:1},C1t={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},Gs={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},hM="mixed",sr="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",ja="kind",S1t={3:1,4:1,5:1,689:1},Zwe={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},CD={20:1,31:1,56:1,16:1,15:1,61:1,71:1},SD={51:1,128:1,287:1},xD={76:1,343:1},ED="The value of type '",TD="' must be of type '",v2=1352,Da="http://www.eclipse.org/emf/2002/Ecore",ID=-32768,Ew="constraints",Do="baseType",x1t="getEStructuralFeature",E1t="getFeatureID",L9="feature",T1t="getOperationID",eme="operation",I1t="defaultValue",P1t="eTypeParameters",M1t="isInstance",O1t="getEEnumLiteral",_1t="eContainingClass",mr={57:1},R1t={3:1,4:1,5:1,124:1},A1t="org.eclipse.emf.ecore.resource",L1t={94:1,93:1,599:1,2034:1},_J="org.eclipse.emf.ecore.resource.impl",tme="unspecified",pM="simple",PD="attribute",$1t="attributeWildcard",MD="element",RJ="elementWildcard",Ff="collapse",AJ="itemType",OD="namespace",gM="##targetNamespace",Na="whiteSpace",nme="wildcards",K0="http://www.eclipse.org/emf/2003/XMLType",LJ="##any",y8="uninitialized",bM="The multiplicity constraint is violated",_D="org.eclipse.emf.ecore.xml.type",j1t="ProcessingInstruction",D1t="SimpleAnyType",N1t="XMLTypeDocumentRoot",Ni="org.eclipse.emf.ecore.xml.type.impl",wM="INF",B1t="processing",F1t="ENTITIES_._base",rme="minLength",ime="ENTITY",RD="NCName",z1t="IDREFS_._base",ome="integer",$J="token",jJ="pattern",H1t="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",sme="\\i\\c*",K1t="[\\i-[:]][\\c-[:]]*",U1t="nonPositiveInteger",mM="maxInclusive",lme="NMTOKEN",G1t="NMTOKENS_._base",cme="nonNegativeInteger",vM="minInclusive",W1t="normalizedString",V1t="unsignedByte",q1t="unsignedInt",X1t="18446744073709551615",Y1t="unsignedShort",J1t="processingInstruction",pp="org.eclipse.emf.ecore.xml.type.internal",k8=1114111,Q1t="Internal Error: shorthands: \\u",$9="xml:isDigit",DJ="xml:isWord",NJ="xml:isSpace",BJ="xml:isNameChar",FJ="xml:isInitialNameChar",Z1t="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",ept="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",tpt="Private Use",zJ="ASSIGNED",HJ="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",ume="UNASSIGNED",C8={3:1,122:1},npt="org.eclipse.emf.ecore.xml.type.util",AD={3:1,4:1,5:1,381:1},ame="org.eclipse.xtext.xbase.lib",rpt="Cannot add elements to a Range",ipt="Cannot set elements in a Range",opt="Cannot remove elements from a Range",spt="user.agent",f,LD,KJ;w.goog=w.goog||{},w.goog.global=w.goog.global||w,LD={},C(1,null,{},S),f.Fb=function(t){return nUe(this,t)},f.Gb=function(){return this.Rm},f.Hb=function(){return $b(this)},f.Ib=function(){var t;return l0(Tu(this))+"@"+(t=Vr(this)>>>0,t.toString(16))},f.equals=function(e){return this.Fb(e)},f.hashCode=function(){return this.Hb()},f.toString=function(){return this.Ib()};var lpt,cpt,upt;C(297,1,{297:1,2124:1},ode),f.ve=function(t){var n;return n=new ode,n.i=4,t>1?n.c=xXe(this,t-1):n.c=this,n},f.we=function(){return e1(this),this.b},f.xe=function(){return l0(this)},f.ye=function(){return e1(this),this.k},f.ze=function(){return(this.i&4)!=0},f.Ae=function(){return(this.i&1)!=0},f.Ib=function(){return bfe(this)},f.i=0;var Ji=x(ll,"Object",1),fme=x(ll,"Class",297);C(2096,1,DP),x(NP,"Optional",2096),C(1191,2096,DP,E),f.Fb=function(t){return t===this},f.Hb=function(){return 2040732332},f.Ib=function(){return"Optional.absent()"},f.Jb=function(t){return qn(t),l7(),UJ};var UJ;x(NP,"Absent",1191),C(636,1,{},EK),x(NP,"Joiner",636);var Dan=hi(NP,"Predicate");C(589,1,{178:1,589:1,3:1,46:1},_$e),f.Mb=function(t){return Ttt(this,t)},f.Lb=function(t){return Ttt(this,t)},f.Fb=function(t){var n;return te(t,589)?(n=u(t,589),npe(this.a,n.a)):!1},f.Hb=function(){return fde(this.a)+306654252},f.Ib=function(){return SZt(this.a)},x(NP,"Predicates/AndPredicate",589),C(419,2096,{419:1,3:1},nR),f.Fb=function(t){var n;return te(t,419)?(n=u(t,419),Rr(this.a,n.a)):!1},f.Hb=function(){return 1502476572+Vr(this.a)},f.Ib=function(){return Lat+this.a+")"},f.Jb=function(t){return new nR(nL(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},x(NP,"Present",419),C(204,1,J5),f.Nb=function(t){To(this,t)},f.Qb=function(){GFe()},x(vt,"UnmodifiableIterator",204),C(2076,204,Q5),f.Qb=function(){GFe()},f.Rb=function(t){throw B(new Xn)},f.Wb=function(t){throw B(new Xn)},x(vt,"UnmodifiableListIterator",2076),C(399,2076,Q5),f.Ob=function(){return this.c0},f.Pb=function(){if(this.c>=this.d)throw B(new qs);return this.Xb(this.c++)},f.Tb=function(){return this.c},f.Ub=function(){if(this.c<=0)throw B(new qs);return this.Xb(--this.c)},f.Vb=function(){return this.c-1},f.c=0,f.d=0,x(vt,"AbstractIndexedListIterator",399),C(713,204,J5),f.Ob=function(){return IW(this)},f.Pb=function(){return afe(this)},f.e=1,x(vt,"AbstractIterator",713),C(2084,1,{229:1}),f.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},f.Fb=function(t){return XW(this,t)},f.Hb=function(){return Vr(this.Zb())},f.dc=function(){return this.gc()==0},f.ec=function(){return c4(this)},f.Ib=function(){return Us(this.Zb())},x(vt,"AbstractMultimap",2084),C(742,2084,A0),f.$b=function(){WL(this)},f._b=function(t){return aze(this,t)},f.ac=function(){return new Tk(this,this.c)},f.ic=function(t){return this.hc()},f.bc=function(){return new Ly(this,this.c)},f.jc=function(){return this.mc(this.hc())},f.kc=function(){return new MFe(this)},f.lc=function(){return iq(this.c.vc().Nc(),new M,64,this.d)},f.cc=function(t){return $r(this,t)},f.fc=function(t){return YI(this,t)},f.gc=function(){return this.d},f.mc=function(t){return Ot(),new hk(t)},f.nc=function(){return new PFe(this)},f.oc=function(){return iq(this.c.Cc().Nc(),new I,64,this.d)},f.pc=function(t,n){return new xL(this,t,n,null)},f.d=0,x(vt,"AbstractMapBasedMultimap",742),C(1696,742,A0),f.hc=function(){return new ql(this.a)},f.jc=function(){return Ot(),Ot(),Jo},f.cc=function(t){return u($r(this,t),15)},f.fc=function(t){return u(YI(this,t),15)},f.Zb=function(){return p4(this)},f.Fb=function(t){return XW(this,t)},f.qc=function(t){return u($r(this,t),15)},f.rc=function(t){return u(YI(this,t),15)},f.mc=function(t){return OG(u(t,15))},f.pc=function(t,n){return _Ye(this,t,u(n,15),null)},x(vt,"AbstractListMultimap",1696),C(748,1,co),f.Nb=function(t){To(this,t)},f.Ob=function(){return this.c.Ob()||this.e.Ob()},f.Pb=function(){var t;return this.e.Ob()||(t=u(this.c.Pb(),44),this.b=t.ld(),this.a=u(t.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},f.Qb=function(){this.e.Qb(),u(Oa(this.a),16).dc()&&this.c.Qb(),--this.d.d},x(vt,"AbstractMapBasedMultimap/Itr",748),C(1129,748,co,PFe),f.sc=function(t,n){return n},x(vt,"AbstractMapBasedMultimap/1",1129),C(1130,1,{},I),f.Kb=function(t){return u(t,16).Nc()},x(vt,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),C(1131,748,co,MFe),f.sc=function(t,n){return new Ib(t,n)},x(vt,"AbstractMapBasedMultimap/2",1131);var dme=hi(In,"Map");C(2065,1,ww),f.wc=function(t){wS(this,t)},f.yc=function(t,n,i){return pV(this,t,n,i)},f.$b=function(){this.vc().$b()},f.tc=function(t){return FV(this,t)},f._b=function(t){return!!e1e(this,t,!1)},f.uc=function(t){var n,i,s;for(i=this.vc().Kc();i.Ob();)if(n=u(i.Pb(),44),s=n.md(),fe(t)===fe(s)||t!=null&&Rr(t,s))return!0;return!1},f.Fb=function(t){var n,i,s;if(t===this)return!0;if(!te(t,85)||(s=u(t,85),this.gc()!=s.gc()))return!1;for(i=s.vc().Kc();i.Ob();)if(n=u(i.Pb(),44),!this.tc(n))return!1;return!0},f.xc=function(t){return Rs(e1e(this,t,!1))},f.Hb=function(){return tde(this.vc())},f.dc=function(){return this.gc()==0},f.ec=function(){return new r0(this)},f.zc=function(t,n){throw B(new D1("Put not supported on this map"))},f.Ac=function(t){bS(this,t)},f.Bc=function(t){return Rs(e1e(this,t,!0))},f.gc=function(){return this.vc().gc()},f.Ib=function(){return Nit(this)},f.Cc=function(){return new Yh(this)},x(In,"AbstractMap",2065),C(2085,2065,ww),f.bc=function(){return new xR(this)},f.vc=function(){return IVe(this)},f.ec=function(){var t;return t=this.g,t||(this.g=this.bc())},f.Cc=function(){var t;return t=this.i,t||(this.i=new eHe(this))},x(vt,"Maps/ViewCachingAbstractMap",2085),C(402,2085,ww,Tk),f.xc=function(t){return HKt(this,t)},f.Bc=function(t){return fWt(this,t)},f.$b=function(){this.d==this.e.c?this.e.$b():AA(new hue(this))},f._b=function(t){return ant(this.d,t)},f.Ec=function(){return new R$e(this)},f.Dc=function(){return this.Ec()},f.Fb=function(t){return this===t||Rr(this.d,t)},f.Hb=function(){return Vr(this.d)},f.ec=function(){return this.e.ec()},f.gc=function(){return this.d.gc()},f.Ib=function(){return Us(this.d)},x(vt,"AbstractMapBasedMultimap/AsMap",402);var Gu=hi(ll,"Iterable");C(31,1,sv),f.Jc=function(t){Po(this,t)},f.Lc=function(){return this.Oc()},f.Nc=function(){return new Pt(this,0)},f.Oc=function(){return new xt(null,this.Nc())},f.Fc=function(t){throw B(new D1("Add not supported on this collection"))},f.Gc=function(t){return vo(this,t)},f.$b=function(){Zue(this)},f.Hc=function(t){return Wm(this,t,!1)},f.Ic=function(t){return HI(this,t)},f.dc=function(){return this.gc()==0},f.Mc=function(t){return Wm(this,t,!0)},f.Pc=function(){return Sue(this)},f.Qc=function(t){return $S(this,t)},f.Ib=function(){return ag(this)},x(In,"AbstractCollection",31);var Ba=hi(In,"Set");C(ad,31,Bc),f.Nc=function(){return new Pt(this,1)},f.Fb=function(t){return trt(this,t)},f.Hb=function(){return tde(this)},x(In,"AbstractSet",ad),C(2068,ad,Bc),x(vt,"Sets/ImprovedAbstractSet",2068),C(2069,2068,Bc),f.$b=function(){this.Rc().$b()},f.Hc=function(t){return Bnt(this,t)},f.dc=function(){return this.Rc().dc()},f.Mc=function(t){var n;return this.Hc(t)&&te(t,44)?(n=u(t,44),this.Rc().ec().Mc(n.ld())):!1},f.gc=function(){return this.Rc().gc()},x(vt,"Maps/EntrySet",2069),C(1127,2069,Bc,R$e),f.Hc=function(t){return Pde(this.a.d.vc(),t)},f.Kc=function(){return new hue(this.a)},f.Rc=function(){return this.a},f.Mc=function(t){var n;return Pde(this.a.d.vc(),t)?(n=u(Oa(u(t,44)),44),OHt(this.a.e,n.ld()),!0):!1},f.Nc=function(){return ZT(this.a.d.vc().Nc(),new A$e(this.a))},x(vt,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),C(1128,1,{},A$e),f.Kb=function(t){return MJe(this.a,u(t,44))},x(vt,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),C(746,1,co,hue),f.Nb=function(t){To(this,t)},f.Pb=function(){var t;return t=u(this.b.Pb(),44),this.a=u(t.md(),16),MJe(this.c,t)},f.Ob=function(){return this.b.Ob()},f.Qb=function(){$k(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},x(vt,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),C(542,2068,Bc,xR),f.$b=function(){this.b.$b()},f.Hc=function(t){return this.b._b(t)},f.Jc=function(t){qn(t),this.b.wc(new Y$e(t))},f.dc=function(){return this.b.dc()},f.Kc=function(){return new c7(this.b.vc().Kc())},f.Mc=function(t){return this.b._b(t)?(this.b.Bc(t),!0):!1},f.gc=function(){return this.b.gc()},x(vt,"Maps/KeySet",542),C(327,542,Bc,Ly),f.$b=function(){var t;AA((t=this.b.vc().Kc(),new Dse(this,t)))},f.Ic=function(t){return this.b.ec().Ic(t)},f.Fb=function(t){return this===t||Rr(this.b.ec(),t)},f.Hb=function(){return Vr(this.b.ec())},f.Kc=function(){var t;return t=this.b.vc().Kc(),new Dse(this,t)},f.Mc=function(t){var n,i;return i=0,n=u(this.b.Bc(t),16),n&&(i=n.gc(),n.$b(),this.a.d-=i),i>0},f.Nc=function(){return this.b.ec().Nc()},x(vt,"AbstractMapBasedMultimap/KeySet",327),C(747,1,co,Dse),f.Nb=function(t){To(this,t)},f.Ob=function(){return this.c.Ob()},f.Pb=function(){return this.a=u(this.c.Pb(),44),this.a.ld()},f.Qb=function(){var t;$k(!!this.a),t=u(this.a.md(),16),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},x(vt,"AbstractMapBasedMultimap/KeySet/1",747),C(503,402,{85:1,133:1},WT),f.bc=function(){return this.Sc()},f.ec=function(){return this.Uc()},f.Sc=function(){return new yT(this.c,this.Wc())},f.Tc=function(){return this.Wc().Tc()},f.Uc=function(){var t;return t=this.b,t||(this.b=this.Sc())},f.Vc=function(){return this.Wc().Vc()},f.Wc=function(){return u(this.d,133)},x(vt,"AbstractMapBasedMultimap/SortedAsMap",503),C(446,503,Cge,H7),f.bc=function(){return new Ek(this.a,u(u(this.d,133),139))},f.Sc=function(){return new Ek(this.a,u(u(this.d,133),139))},f.ec=function(){var t;return t=this.b,u(t||(this.b=new Ek(this.a,u(u(this.d,133),139))),277)},f.Uc=function(){var t;return t=this.b,u(t||(this.b=new Ek(this.a,u(u(this.d,133),139))),277)},f.Wc=function(){return u(u(this.d,133),139)},f.Xc=function(t){return u(u(this.d,133),139).Xc(t)},f.Yc=function(t){return u(u(this.d,133),139).Yc(t)},f.Zc=function(t,n){return new H7(this.a,u(u(this.d,133),139).Zc(t,n))},f.$c=function(t){return u(u(this.d,133),139).$c(t)},f._c=function(t){return u(u(this.d,133),139)._c(t)},f.ad=function(t,n){return new H7(this.a,u(u(this.d,133),139).ad(t,n))},x(vt,"AbstractMapBasedMultimap/NavigableAsMap",446),C(502,327,$at,yT),f.Nc=function(){return this.b.ec().Nc()},x(vt,"AbstractMapBasedMultimap/SortedKeySet",502),C(401,502,Sge,Ek),x(vt,"AbstractMapBasedMultimap/NavigableKeySet",401),C(551,31,sv,xL),f.Fc=function(t){var n,i;return au(this),i=this.d.dc(),n=this.d.Fc(t),n&&(++this.f.d,i&&YT(this)),n},f.Gc=function(t){var n,i,s;return t.dc()?!1:(s=(au(this),this.d.gc()),n=this.d.Gc(t),n&&(i=this.d.gc(),this.f.d+=i-s,s==0&&YT(this)),n)},f.$b=function(){var t;t=(au(this),this.d.gc()),t!=0&&(this.d.$b(),this.f.d-=t,BA(this))},f.Hc=function(t){return au(this),this.d.Hc(t)},f.Ic=function(t){return au(this),this.d.Ic(t)},f.Fb=function(t){return t===this?!0:(au(this),Rr(this.d,t))},f.Hb=function(){return au(this),Vr(this.d)},f.Kc=function(){return au(this),new Yce(this)},f.Mc=function(t){var n;return au(this),n=this.d.Mc(t),n&&(--this.f.d,BA(this)),n},f.gc=function(){return HKe(this)},f.Nc=function(){return au(this),this.d.Nc()},f.Ib=function(){return au(this),Us(this.d)},x(vt,"AbstractMapBasedMultimap/WrappedCollection",551);var ya=hi(In,"List");C(744,551,{20:1,31:1,16:1,15:1},Tue),f.jd=function(t){k0(this,t)},f.Nc=function(){return au(this),this.d.Nc()},f.bd=function(t,n){var i;au(this),i=this.d.dc(),u(this.d,15).bd(t,n),++this.a.d,i&&YT(this)},f.cd=function(t,n){var i,s,c;return n.dc()?!1:(c=(au(this),this.d.gc()),i=u(this.d,15).cd(t,n),i&&(s=this.d.gc(),this.a.d+=s-c,c==0&&YT(this)),i)},f.Xb=function(t){return au(this),u(this.d,15).Xb(t)},f.dd=function(t){return au(this),u(this.d,15).dd(t)},f.ed=function(){return au(this),new mUe(this)},f.fd=function(t){return au(this),new zqe(this,t)},f.gd=function(t){var n;return au(this),n=u(this.d,15).gd(t),--this.a.d,BA(this),n},f.hd=function(t,n){return au(this),u(this.d,15).hd(t,n)},f.kd=function(t,n){return au(this),_Ye(this.a,this.e,u(this.d,15).kd(t,n),this.b?this.b:this)},x(vt,"AbstractMapBasedMultimap/WrappedList",744),C(1126,744,{20:1,31:1,16:1,15:1,59:1},lGe),x(vt,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),C(628,1,co,Yce),f.Nb=function(t){To(this,t)},f.Ob=function(){return Wk(this),this.b.Ob()},f.Pb=function(){return Wk(this),this.b.Pb()},f.Qb=function(){GUe(this)},x(vt,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),C(745,628,Eh,mUe,zqe),f.Qb=function(){GUe(this)},f.Rb=function(t){var n;n=HKe(this.a)==0,(Wk(this),u(this.b,128)).Rb(t),++this.a.a.d,n&&YT(this.a)},f.Sb=function(){return(Wk(this),u(this.b,128)).Sb()},f.Tb=function(){return(Wk(this),u(this.b,128)).Tb()},f.Ub=function(){return(Wk(this),u(this.b,128)).Ub()},f.Vb=function(){return(Wk(this),u(this.b,128)).Vb()},f.Wb=function(t){(Wk(this),u(this.b,128)).Wb(t)},x(vt,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),C(743,551,$at,gce),f.Nc=function(){return au(this),this.d.Nc()},x(vt,"AbstractMapBasedMultimap/WrappedSortedSet",743),C(1125,743,Sge,hUe),x(vt,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),C(1124,551,Bc,PGe),f.Nc=function(){return au(this),this.d.Nc()},x(vt,"AbstractMapBasedMultimap/WrappedSet",1124),C(1133,1,{},M),f.Kb=function(t){return FHt(u(t,44))},x(vt,"AbstractMapBasedMultimap/lambda$1$Type",1133),C(1132,1,{},D$e),f.Kb=function(t){return new Ib(this.a,t)},x(vt,"AbstractMapBasedMultimap/lambda$2$Type",1132);var U0=hi(In,"Map/Entry");C(358,1,sX),f.Fb=function(t){var n;return te(t,44)?(n=u(t,44),zd(this.ld(),n.ld())&&zd(this.md(),n.md())):!1},f.Hb=function(){var t,n;return t=this.ld(),n=this.md(),(t==null?0:Vr(t))^(n==null?0:Vr(n))},f.nd=function(t){throw B(new Xn)},f.Ib=function(){return this.ld()+"="+this.md()},x(vt,jat,358),C(2086,31,sv),f.$b=function(){this.od().$b()},f.Hc=function(t){var n;return te(t,44)?(n=u(t,44),lzt(this.od(),n.ld(),n.md())):!1},f.Mc=function(t){var n;return te(t,44)?(n=u(t,44),dYe(this.od(),n.ld(),n.md())):!1},f.gc=function(){return this.od().d},x(vt,"Multimaps/Entries",2086),C(749,2086,sv,boe),f.Kc=function(){return this.a.kc()},f.od=function(){return this.a},f.Nc=function(){return this.a.lc()},x(vt,"AbstractMultimap/Entries",749),C(750,749,Bc,pse),f.Nc=function(){return this.a.lc()},f.Fb=function(t){return y1e(this,t)},f.Hb=function(){return Eet(this)},x(vt,"AbstractMultimap/EntrySet",750),C(751,31,sv,woe),f.$b=function(){this.a.$b()},f.Hc=function(t){return oWt(this.a,t)},f.Kc=function(){return this.a.nc()},f.gc=function(){return this.a.d},f.Nc=function(){return this.a.oc()},x(vt,"AbstractMultimap/Values",751),C(2087,31,{849:1,20:1,31:1,16:1}),f.Jc=function(t){qn(t),jy(this).Jc(new nje(t))},f.Nc=function(){var t;return t=jy(this).Nc(),iq(t,new X,64|t.yd()&1296,this.a.d)},f.Fc=function(t){return Cse(),!0},f.Gc=function(t){return qn(this),qn(t),te(t,552)?azt(u(t,849)):!t.dc()&&mW(this,t.Kc())},f.Hc=function(t){var n;return n=u(Gm(p4(this.a),t),16),(n?n.gc():0)>0},f.Fb=function(t){return Rtn(this,t)},f.Hb=function(){return Vr(jy(this))},f.dc=function(){return jy(this).dc()},f.Mc=function(t){return Jot(this,t,1)>0},f.Ib=function(){return Us(jy(this))},x(vt,"AbstractMultiset",2087),C(2089,2068,Bc),f.$b=function(){WL(this.a.a)},f.Hc=function(t){var n,i;return te(t,504)?(i=u(t,425),u(i.a.md(),16).gc()<=0?!1:(n=BXe(this.a,i.a.ld()),n==u(i.a.md(),16).gc())):!1},f.Mc=function(t){var n,i,s,c;return te(t,504)&&(i=u(t,425),n=i.a.ld(),s=u(i.a.md(),16).gc(),s!=0)?(c=this.a,Cen(c,n,s)):!1},x(vt,"Multisets/EntrySet",2089),C(1139,2089,Bc,N$e),f.Kc=function(){return new LFe(IVe(p4(this.a.a)).Kc())},f.gc=function(){return p4(this.a.a).gc()},x(vt,"AbstractMultiset/EntrySet",1139),C(627,742,A0),f.hc=function(){return this.pd()},f.jc=function(){return this.qd()},f.cc=function(t){return this.rd(t)},f.fc=function(t){return this.sd(t)},f.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},f.qd=function(){return Ot(),Ot(),FD},f.Fb=function(t){return XW(this,t)},f.rd=function(t){return u($r(this,t),21)},f.sd=function(t){return u(YI(this,t),21)},f.mc=function(t){return Ot(),new yk(u(t,21))},f.pc=function(t,n){return new PGe(this,t,u(n,21))},x(vt,"AbstractSetMultimap",627),C(1723,627,A0),f.hc=function(){return new z1(this.b)},f.pd=function(){return new z1(this.b)},f.jc=function(){return Vue(new z1(this.b))},f.qd=function(){return Vue(new z1(this.b))},f.cc=function(t){return u(u($r(this,t),21),87)},f.rd=function(t){return u(u($r(this,t),21),87)},f.fc=function(t){return u(u(YI(this,t),21),87)},f.sd=function(t){return u(u(YI(this,t),21),87)},f.mc=function(t){return te(t,277)?Vue(u(t,277)):(Ot(),new ece(u(t,87)))},f.Zb=function(){var t;return t=this.f,t||(this.f=te(this.c,139)?new H7(this,u(this.c,139)):te(this.c,133)?new WT(this,u(this.c,133)):new Tk(this,this.c))},f.pc=function(t,n){return te(n,277)?new hUe(this,t,u(n,277)):new gce(this,t,u(n,87))},x(vt,"AbstractSortedSetMultimap",1723),C(1724,1723,A0),f.Zb=function(){var t;return t=this.f,u(u(t||(this.f=te(this.c,139)?new H7(this,u(this.c,139)):te(this.c,133)?new WT(this,u(this.c,133)):new Tk(this,this.c)),133),139)},f.ec=function(){var t;return t=this.i,u(u(t||(this.i=te(this.c,139)?new Ek(this,u(this.c,139)):te(this.c,133)?new yT(this,u(this.c,133)):new Ly(this,this.c)),87),277)},f.bc=function(){return te(this.c,139)?new Ek(this,u(this.c,139)):te(this.c,133)?new yT(this,u(this.c,133)):new Ly(this,this.c)},x(vt,"AbstractSortedKeySortedSetMultimap",1724),C(2109,1,{2046:1}),f.Fb=function(t){return rJt(this,t)},f.Hb=function(){var t;return tde((t=this.g,t||(this.g=new YH(this))))},f.Ib=function(){var t;return Nit((t=this.f,t||(this.f=new Yle(this))))},x(vt,"AbstractTable",2109),C(679,ad,Bc,YH),f.$b=function(){WFe()},f.Hc=function(t){var n,i;return te(t,479)?(n=u(t,697),i=u(Gm(JVe(this.a),Vp(n.c.e,n.b)),85),!!i&&Pde(i.vc(),new Ib(Vp(n.c.c,n.a),k4(n.c,n.b,n.a)))):!1},f.Kc=function(){return lBt(this.a)},f.Mc=function(t){var n,i;return te(t,479)?(n=u(t,697),i=u(Gm(JVe(this.a),Vp(n.c.e,n.b)),85),!!i&&NWt(i.vc(),new Ib(Vp(n.c.c,n.a),k4(n.c,n.b,n.a)))):!1},f.gc=function(){return eVe(this.a)},f.Nc=function(){return hzt(this.a)},x(vt,"AbstractTable/CellSet",679),C(2025,31,sv,F$e),f.$b=function(){WFe()},f.Hc=function(t){return XJt(this.a,t)},f.Kc=function(){return cBt(this.a)},f.gc=function(){return eVe(this.a)},f.Nc=function(){return fYe(this.a)},x(vt,"AbstractTable/Values",2025),C(1697,1696,A0),x(vt,"ArrayListMultimapGwtSerializationDependencies",1697),C(520,1697,A0,PK,gae),f.hc=function(){return new ql(this.a)},f.a=0,x(vt,"ArrayListMultimap",520),C(678,2109,{678:1,2046:1,3:1},ast),x(vt,"ArrayTable",678),C(2021,399,Q5,WUe),f.Xb=function(t){return new sde(this.a,t)},x(vt,"ArrayTable/1",2021),C(2022,1,{},L$e),f.td=function(t){return new sde(this.a,t)},x(vt,"ArrayTable/1methodref$getCell$Type",2022),C(2110,1,{697:1}),f.Fb=function(t){var n;return t===this?!0:te(t,479)?(n=u(t,697),zd(Vp(this.c.e,this.b),Vp(n.c.e,n.b))&&zd(Vp(this.c.c,this.a),Vp(n.c.c,n.a))&&zd(k4(this.c,this.b,this.a),k4(n.c,n.b,n.a))):!1},f.Hb=function(){return XI(H(F(Ji,1),Bt,1,5,[Vp(this.c.e,this.b),Vp(this.c.c,this.a),k4(this.c,this.b,this.a)]))},f.Ib=function(){return"("+Vp(this.c.e,this.b)+","+Vp(this.c.c,this.a)+")="+k4(this.c,this.b,this.a)},x(vt,"Tables/AbstractCell",2110),C(479,2110,{479:1,697:1},sde),f.a=0,f.b=0,f.d=0,x(vt,"ArrayTable/2",479),C(2024,1,{},$$e),f.td=function(t){return jQe(this.a,t)},x(vt,"ArrayTable/2methodref$getValue$Type",2024),C(2023,399,Q5,VUe),f.Xb=function(t){return jQe(this.a,t)},x(vt,"ArrayTable/3",2023),C(2077,2065,ww),f.$b=function(){AA(this.kc())},f.vc=function(){return new X$e(this)},f.lc=function(){return new _qe(this.kc(),this.gc())},x(vt,"Maps/IteratorBasedAbstractMap",2077),C(842,2077,ww),f.$b=function(){throw B(new Xn)},f._b=function(t){return fze(this.c,t)},f.kc=function(){return new qUe(this,this.c.b.c.gc())},f.lc=function(){return JU(this.c.b.c.gc(),16,new j$e(this))},f.xc=function(t){var n;return n=u(K7(this.c,t),17),n?this.vd(n.a):null},f.dc=function(){return this.c.b.c.dc()},f.ec=function(){return oG(this.c)},f.zc=function(t,n){var i;if(i=u(K7(this.c,t),17),!i)throw B(new Qt(this.ud()+" "+t+" not in "+oG(this.c)));return this.wd(i.a,n)},f.Bc=function(t){throw B(new Xn)},f.gc=function(){return this.c.b.c.gc()},x(vt,"ArrayTable/ArrayMap",842),C(2020,1,{},j$e),f.td=function(t){return ZVe(this.a,t)},x(vt,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),C(2018,358,sX,Dze),f.ld=function(){return kAt(this.a,this.b)},f.md=function(){return this.a.vd(this.b)},f.nd=function(t){return this.a.wd(this.b,t)},f.b=0,x(vt,"ArrayTable/ArrayMap/1",2018),C(2019,399,Q5,qUe),f.Xb=function(t){return ZVe(this.a,t)},x(vt,"ArrayTable/ArrayMap/2",2019),C(2017,842,ww,FVe),f.ud=function(){return"Column"},f.vd=function(t){return k4(this.b,this.a,t)},f.wd=function(t,n){return ftt(this.b,this.a,t,n)},f.a=0,x(vt,"ArrayTable/Row",2017),C(843,842,ww,Yle),f.vd=function(t){return new FVe(this.a,t)},f.zc=function(t,n){return u(n,85),HOt()},f.wd=function(t,n){return u(n,85),KOt()},f.ud=function(){return"Row"},x(vt,"ArrayTable/RowMap",843),C(1157,1,Ku,Nze),f.Ad=function(t){return(this.a.yd()&-262&t)!=0},f.yd=function(){return this.a.yd()&-262},f.zd=function(){return this.a.zd()},f.Nb=function(t){this.a.Nb(new Fze(t,this.b))},f.Bd=function(t){return this.a.Bd(new Bze(t,this.b))},x(vt,"CollectSpliterators/1",1157),C(1158,1,bn,Bze),f.Cd=function(t){this.a.Cd(this.b.Kb(t))},x(vt,"CollectSpliterators/1/lambda$0$Type",1158),C(1159,1,bn,Fze),f.Cd=function(t){this.a.Cd(this.b.Kb(t))},x(vt,"CollectSpliterators/1/lambda$1$Type",1159),C(1154,1,Ku,uWe),f.Ad=function(t){return((16464|this.b)&t)!=0},f.yd=function(){return 16464|this.b},f.zd=function(){return this.a.zd()},f.Nb=function(t){this.a.Qe(new Hze(t,this.c))},f.Bd=function(t){return this.a.Re(new zze(t,this.c))},f.b=0,x(vt,"CollectSpliterators/1WithCharacteristics",1154),C(1155,1,BP,zze),f.Dd=function(t){this.a.Cd(this.b.td(t))},x(vt,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),C(1156,1,BP,Hze),f.Dd=function(t){this.a.Cd(this.b.td(t))},x(vt,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),C(1150,1,Ku),f.Ad=function(t){return(this.a&t)!=0},f.yd=function(){return this.a},f.zd=function(){return this.e&&(this.b=Nle(this.b,this.e.zd())),Nle(this.b,0)},f.Nb=function(t){this.e&&(this.e.Nb(t),this.e=null),this.c.Nb(new Kze(this,t)),this.b=0},f.Bd=function(t){for(;;){if(this.e&&this.e.Bd(t))return R7(this.b,FP)&&(this.b=Ra(this.b,1)),!0;if(this.e=null,!this.c.Bd(new z$e(this)))return!1}},f.a=0,f.b=0,x(vt,"CollectSpliterators/FlatMapSpliterator",1150),C(1152,1,bn,z$e),f.Cd=function(t){vLt(this.a,t)},x(vt,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),C(1153,1,bn,Kze),f.Cd=function(t){UNt(this.a,this.b,t)},x(vt,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),C(1151,1150,Ku,MYe),x(vt,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),C(253,1,lX),f.Fd=function(t){return this.Ed(u(t,253))},f.Ed=function(t){var n;return t==(mK(),WJ)?1:t==(wK(),GJ)?-1:(n=(PA(),DI(this.a,t.a)),n!=0?n:te(this,526)==te(t,526)?0:te(this,526)?1:-1)},f.Id=function(){return this.a},f.Fb=function(t){return The(this,t)},x(vt,"Cut",253),C(1823,253,lX,IFe),f.Ed=function(t){return t==this?0:1},f.Gd=function(t){throw B(new Xoe)},f.Hd=function(t){t.a+="+∞)"},f.Id=function(){throw B(new ks(Nat))},f.Hb=function(){return Qh(),fhe(this)},f.Jd=function(t){return!1},f.Ib=function(){return"+∞"};var GJ;x(vt,"Cut/AboveAll",1823),C(526,253,{253:1,526:1,3:1,34:1},eGe),f.Gd=function(t){Al((t.a+="(",t),this.a)},f.Hd=function(t){h0(Al(t,this.a),93)},f.Hb=function(){return~Vr(this.a)},f.Jd=function(t){return PA(),DI(this.a,t)<0},f.Ib=function(){return"/"+this.a+"\\"},x(vt,"Cut/AboveValue",526),C(1822,253,lX,TFe),f.Ed=function(t){return t==this?0:-1},f.Gd=function(t){t.a+="(-∞"},f.Hd=function(t){throw B(new Xoe)},f.Id=function(){throw B(new ks(Nat))},f.Hb=function(){return Qh(),fhe(this)},f.Jd=function(t){return!0},f.Ib=function(){return"-∞"};var WJ;x(vt,"Cut/BelowAll",1822),C(1824,253,lX,tGe),f.Gd=function(t){Al((t.a+="[",t),this.a)},f.Hd=function(t){h0(Al(t,this.a),41)},f.Hb=function(){return Vr(this.a)},f.Jd=function(t){return PA(),DI(this.a,t)<=0},f.Ib=function(){return"\\"+this.a+"/"},x(vt,"Cut/BelowValue",1824),C(547,1,Th),f.Jc=function(t){Po(this,t)},f.Ib=function(){return oVt(u(nL(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},x(vt,"FluentIterable",547),C(442,547,Th,$7),f.Kc=function(){return new gn(wn(this.a.Kc(),new j))},x(vt,"FluentIterable/2",442),C(1059,547,Th,uUe),f.Kc=function(){return mh(this)},x(vt,"FluentIterable/3",1059),C(724,399,Q5,Jle),f.Xb=function(t){return this.a[t].Kc()},x(vt,"FluentIterable/3/1",724),C(2070,1,{}),f.Ib=function(){return Us(this.Kd().b)},x(vt,"ForwardingObject",2070),C(2071,2070,Bat),f.Kd=function(){return this.Ld()},f.Jc=function(t){Po(this,t)},f.Lc=function(){return this.Oc()},f.Nc=function(){return new Pt(this,0)},f.Oc=function(){return new xt(null,this.Nc())},f.Fc=function(t){return this.Ld(),hze()},f.Gc=function(t){return this.Ld(),pze()},f.$b=function(){this.Ld(),gze()},f.Hc=function(t){return this.Ld().Hc(t)},f.Ic=function(t){return this.Ld().Ic(t)},f.dc=function(){return this.Ld().b.dc()},f.Kc=function(){return this.Ld().Kc()},f.Mc=function(t){return this.Ld(),bze()},f.gc=function(){return this.Ld().b.gc()},f.Pc=function(){return this.Ld().Pc()},f.Qc=function(t){return this.Ld().Qc(t)},x(vt,"ForwardingCollection",2071),C(2078,31,xge),f.Kc=function(){return this.Od()},f.Fc=function(t){throw B(new Xn)},f.Gc=function(t){throw B(new Xn)},f.Md=function(){var t;return t=this.c,t||(this.c=this.Nd())},f.$b=function(){throw B(new Xn)},f.Hc=function(t){return t!=null&&Wm(this,t,!1)},f.Nd=function(){switch(this.gc()){case 0:return Hb(),Hb(),VJ;case 1:return Hb(),new QU(qn(this.Od().Pb()));default:return new Oue(this,this.Pc())}},f.Mc=function(t){throw B(new Xn)},x(vt,"ImmutableCollection",2078),C(727,2078,xge,Voe),f.Kc=function(){return C4(this.a.Kc())},f.Hc=function(t){return t!=null&&this.a.Hc(t)},f.Ic=function(t){return this.a.Ic(t)},f.dc=function(){return this.a.dc()},f.Od=function(){return C4(this.a.Kc())},f.gc=function(){return this.a.gc()},f.Pc=function(){return this.a.Pc()},f.Qc=function(t){return this.a.Qc(t)},f.Ib=function(){return Us(this.a)},x(vt,"ForwardingImmutableCollection",727),C(307,2078,Z5),f.Kc=function(){return this.Od()},f.ed=function(){return this.Pd(0)},f.fd=function(t){return this.Pd(t)},f.jd=function(t){k0(this,t)},f.Nc=function(){return new Pt(this,16)},f.kd=function(t,n){return this.Qd(t,n)},f.bd=function(t,n){throw B(new Xn)},f.cd=function(t,n){throw B(new Xn)},f.Md=function(){return this},f.Fb=function(t){return ytn(this,t)},f.Hb=function(){return pGt(this)},f.dd=function(t){return t==null?-1:DXt(this,t)},f.Od=function(){return this.Pd(0)},f.Pd=function(t){return OU(this,t)},f.gd=function(t){throw B(new Xn)},f.hd=function(t,n){throw B(new Xn)},f.Qd=function(t,n){var i;return h$((i=new Zze(this),new V1(i,t,n)))};var VJ;x(vt,"ImmutableList",307),C(2105,307,Z5),f.Kc=function(){return C4(this.Rd().Kc())},f.kd=function(t,n){return h$(this.Rd().kd(t,n))},f.Hc=function(t){return t!=null&&this.Rd().Hc(t)},f.Ic=function(t){return this.Rd().Ic(t)},f.Fb=function(t){return Rr(this.Rd(),t)},f.Xb=function(t){return Vp(this,t)},f.Hb=function(){return Vr(this.Rd())},f.dd=function(t){return this.Rd().dd(t)},f.dc=function(){return this.Rd().dc()},f.Od=function(){return C4(this.Rd().Kc())},f.gc=function(){return this.Rd().gc()},f.Qd=function(t,n){return h$(this.Rd().kd(t,n))},f.Pc=function(){return this.Rd().Qc(be(Ji,Bt,1,this.Rd().gc(),5,1))},f.Qc=function(t){return this.Rd().Qc(t)},f.Ib=function(){return Us(this.Rd())},x(vt,"ForwardingImmutableList",2105),C(729,1,e8),f.vc=function(){return a0(this)},f.wc=function(t){wS(this,t)},f.ec=function(){return oG(this)},f.yc=function(t,n,i){return pV(this,t,n,i)},f.Cc=function(){return this.Vd()},f.$b=function(){throw B(new Xn)},f._b=function(t){return this.xc(t)!=null},f.uc=function(t){return this.Vd().Hc(t)},f.Td=function(){return new $Be(this)},f.Ud=function(){return new jBe(this)},f.Fb=function(t){return sWt(this,t)},f.Hb=function(){return a0(this).Hb()},f.dc=function(){return this.gc()==0},f.zc=function(t,n){return zOt()},f.Bc=function(t){throw B(new Xn)},f.Ib=function(){return VQt(this)},f.Vd=function(){return this.e?this.e:this.e=this.Ud()},f.c=null,f.d=null,f.e=null;var apt;x(vt,"ImmutableMap",729),C(730,729,e8),f._b=function(t){return fze(this,t)},f.uc=function(t){return oHe(this.b,t)},f.Sd=function(){return lnt(new B$e(this))},f.Td=function(){return lnt(kqe(this.b))},f.Ud=function(){return Fd(),new Voe(yqe(this.b))},f.Fb=function(t){return sHe(this.b,t)},f.xc=function(t){return K7(this,t)},f.Hb=function(){return Vr(this.b.c)},f.dc=function(){return this.b.c.dc()},f.gc=function(){return this.b.c.gc()},f.Ib=function(){return Us(this.b.c)},x(vt,"ForwardingImmutableMap",730),C(2072,2071,cX),f.Kd=function(){return this.Wd()},f.Ld=function(){return this.Wd()},f.Nc=function(){return new Pt(this,1)},f.Fb=function(t){return t===this||this.Wd().Fb(t)},f.Hb=function(){return this.Wd().Hb()},x(vt,"ForwardingSet",2072),C(1085,2072,cX,B$e),f.Kd=function(){return Uk(this.a.b)},f.Ld=function(){return Uk(this.a.b)},f.Hc=function(t){if(te(t,44)&&u(t,44).ld()==null)return!1;try{return iHe(Uk(this.a.b),t)}catch(n){if(n=li(n),te(n,212))return!1;throw B(n)}},f.Wd=function(){return Uk(this.a.b)},f.Qc=function(t){var n;return n=oXe(Uk(this.a.b),t),Uk(this.a.b).b.gc()=0?"+":"")+(i/60|0),n=lA(w.Math.abs(i)%60),(Yit(),Mpt)[this.q.getDay()]+" "+Opt[this.q.getMonth()]+" "+lA(this.q.getDate())+" "+lA(this.q.getHours())+":"+lA(this.q.getMinutes())+":"+lA(this.q.getSeconds())+" GMT"+t+n+" "+this.q.getFullYear()};var DD=x(In,"Date",206);C(2015,206,qat,vit),f.a=!1,f.b=0,f.c=0,f.d=0,f.e=0,f.f=0,f.g=!1,f.i=0,f.j=0,f.k=0,f.n=0,f.o=0,f.p=0,x("com.google.gwt.i18n.shared.impl","DateRecord",2015),C(2064,1,{}),f.pe=function(){return null},f.qe=function(){return null},f.re=function(){return null},f.se=function(){return null},f.te=function(){return null},x(H4,"JSONValue",2064),C(221,2064,{221:1},t0,voe),f.Fb=function(t){return te(t,221)?wae(this.a,u(t,221).a):!1},f.oe=function(){return dOt},f.Hb=function(){return sae(this.a)},f.pe=function(){return this},f.Ib=function(){var t,n,i;for(i=new Ru("["),n=0,t=this.a.length;n0&&(i.a+=","),Al(i,Bm(this,n));return i.a+="]",i.a},x(H4,"JSONArray",221),C(493,2064,{493:1},yoe),f.oe=function(){return hOt},f.qe=function(){return this},f.Ib=function(){return Gt(),""+this.a},f.a=!1;var wpt,mpt;x(H4,"JSONBoolean",493),C(997,63,m1,$Fe),x(H4,"JSONException",997),C(1036,2064,{},ae),f.oe=function(){return pOt},f.Ib=function(){return Cc};var vpt;x(H4,"JSONNull",1036),C(263,2064,{263:1},rR),f.Fb=function(t){return te(t,263)?this.a==u(t,263).a:!1},f.oe=function(){return aOt},f.Hb=function(){return Z3(this.a)},f.re=function(){return this},f.Ib=function(){return this.a+""},f.a=0,x(H4,"JSONNumber",263),C(190,2064,{190:1},K3,uT),f.Fb=function(t){return te(t,190)?wae(this.a,u(t,190).a):!1},f.oe=function(){return fOt},f.Hb=function(){return sae(this.a)},f.se=function(){return this},f.Ib=function(){var t,n,i,s,c,d,h;for(h=new Ru("{"),t=!0,d=RW(this,be(Je,_e,2,0,6,1)),i=d,s=0,c=i.length;s=0?":"+this.c:"")+")"},f.c=0;var Mme=x(ll,"StackTraceElement",319);upt={3:1,484:1,34:1,2:1};var Je=x(ll,Ege,2);C(111,427,{484:1},B1,f7,Ma),x(ll,"StringBuffer",111),C(104,427,{484:1},Hp,V3,Ru),x(ll,"StringBuilder",104),C(702,77,_X,Sse),x(ll,"StringIndexOutOfBoundsException",702),C(2145,1,{});var Spt;C(48,63,{3:1,103:1,63:1,82:1,48:1},Xn,D1),x(ll,"UnsupportedOperationException",48),C(247,242,{3:1,34:1,242:1,247:1},ZI,Lse),f.Fd=function(t){return Kct(this,u(t,247))},f.ue=function(){return Jm(wut(this))},f.Fb=function(t){var n;return this===t?!0:te(t,247)?(n=u(t,247),this.e==n.e&&Kct(this,n)==0):!1},f.Hb=function(){var t;return this.b!=0?this.b:this.a<54?(t=bl(this.f),this.b=Vn(Yi(t,-1)),this.b=33*this.b+Vn(Yi(Bb(t,32),-1)),this.b=17*this.b+Wi(this.e),this.b):(this.b=17*nnt(this.c)+Wi(this.e),this.b)},f.Ib=function(){return wut(this)},f.a=0,f.b=0,f.d=0,f.e=0,f.f=0;var xpt,G0,Ome,_me,Rme,Ame,Lme,$me,tQ=x("java.math","BigDecimal",247);C(92,242,{3:1,34:1,242:1,92:1},o1,WXe,d0,rrt,qp),f.Fd=function(t){return Znt(this,u(t,92))},f.ue=function(){return Jm(rX(this,0))},f.Fb=function(t){return qde(this,t)},f.Hb=function(){return nnt(this)},f.Ib=function(){return rX(this,0)},f.b=-2,f.c=0,f.d=0,f.e=0;var Ept,ND,Tpt,nQ,BD,N9,y2=x("java.math","BigInteger",92),Ipt,Ppt,e6,B9;C(498,2065,ww),f.$b=function(){qc(this)},f._b=function(t){return rc(this,t)},f.uc=function(t){return Dtt(this,t,this.i)||Dtt(this,t,this.f)},f.vc=function(){return new i0(this)},f.xc=function(t){return pn(this,t)},f.zc=function(t,n){return vr(this,t,n)},f.Bc=function(t){return y4(this,t)},f.gc=function(){return h7(this)},f.g=0,x(In,"AbstractHashMap",498),C(267,ad,Bc,i0),f.$b=function(){this.a.$b()},f.Hc=function(t){return CYe(this,t)},f.Kc=function(){return new S0(this.a)},f.Mc=function(t){var n;return CYe(this,t)?(n=u(t,44).ld(),this.a.Bc(n),!0):!1},f.gc=function(){return this.a.gc()},x(In,"AbstractHashMap/EntrySet",267),C(268,1,co,S0),f.Nb=function(t){To(this,t)},f.Pb=function(){return rw(this)},f.Ob=function(){return this.b},f.Qb=function(){JQe(this)},f.b=!1,f.d=0,x(In,"AbstractHashMap/EntrySetIterator",268),C(426,1,co,e7),f.Nb=function(t){To(this,t)},f.Ob=function(){return jK(this)},f.Pb=function(){return tae(this)},f.Qb=function(){Eu(this)},f.b=0,f.c=-1,x(In,"AbstractList/IteratorImpl",426),C(98,426,Eh,wo),f.Qb=function(){Eu(this)},f.Rb=function(t){Pm(this,t)},f.Sb=function(){return this.b>0},f.Tb=function(){return this.b},f.Ub=function(){return yn(this.b>0),this.a.Xb(this.c=--this.b)},f.Vb=function(){return this.b-1},f.Wb=function(t){Tm(this.c!=-1),this.a.hd(this.c,t)},x(In,"AbstractList/ListIteratorImpl",98),C(244,56,t8,V1),f.bd=function(t,n){$m(t,this.b),this.c.bd(this.a+t,n),++this.b},f.Xb=function(t){return _t(t,this.b),this.c.Xb(this.a+t)},f.gd=function(t){var n;return _t(t,this.b),n=this.c.gd(this.a+t),--this.b,n},f.hd=function(t,n){return _t(t,this.b),this.c.hd(this.a+t,n)},f.gc=function(){return this.b},f.a=0,f.b=0,x(In,"AbstractList/SubList",244),C(266,ad,Bc,r0),f.$b=function(){this.a.$b()},f.Hc=function(t){return this.a._b(t)},f.Kc=function(){var t;return t=this.a.vc().Kc(),new oR(t)},f.Mc=function(t){return this.a._b(t)?(this.a.Bc(t),!0):!1},f.gc=function(){return this.a.gc()},x(In,"AbstractMap/1",266),C(541,1,co,oR),f.Nb=function(t){To(this,t)},f.Ob=function(){return this.a.Ob()},f.Pb=function(){var t;return t=u(this.a.Pb(),44),t.ld()},f.Qb=function(){this.a.Qb()},x(In,"AbstractMap/1/1",541),C(231,31,sv,Yh),f.$b=function(){this.a.$b()},f.Hc=function(t){return this.a.uc(t)},f.Kc=function(){var t;return t=this.a.vc().Kc(),new wm(t)},f.gc=function(){return this.a.gc()},x(In,"AbstractMap/2",231),C(301,1,co,wm),f.Nb=function(t){To(this,t)},f.Ob=function(){return this.a.Ob()},f.Pb=function(){var t;return t=u(this.a.Pb(),44),t.md()},f.Qb=function(){this.a.Qb()},x(In,"AbstractMap/2/1",301),C(494,1,{494:1,44:1}),f.Fb=function(t){var n;return te(t,44)?(n=u(t,44),gl(this.d,n.ld())&&gl(this.e,n.md())):!1},f.ld=function(){return this.d},f.md=function(){return this.e},f.Hb=function(){return Oy(this.d)^Oy(this.e)},f.nd=function(t){return Cce(this,t)},f.Ib=function(){return this.d+"="+this.e},x(In,"AbstractMap/AbstractEntry",494),C(397,494,{494:1,397:1,44:1},DR),x(In,"AbstractMap/SimpleEntry",397),C(2082,1,LX),f.Fb=function(t){var n;return te(t,44)?(n=u(t,44),gl(this.ld(),n.ld())&&gl(this.md(),n.md())):!1},f.Hb=function(){return Oy(this.ld())^Oy(this.md())},f.Ib=function(){return this.ld()+"="+this.md()},x(In,jat,2082),C(2090,2065,Cge),f.Xc=function(t){return MK(this.Ee(t))},f.tc=function(t){return PJe(this,t)},f._b=function(t){return Sce(this,t)},f.vc=function(){return new rK(this)},f.Tc=function(){return HVe(this.Ge())},f.Yc=function(t){return MK(this.He(t))},f.xc=function(t){var n;return n=t,Rs(this.Fe(n))},f.$c=function(t){return MK(this.Ie(t))},f.ec=function(){return new fje(this)},f.Vc=function(){return HVe(this.Je())},f._c=function(t){return MK(this.Ke(t))},x(In,"AbstractNavigableMap",2090),C(629,ad,Bc,rK),f.Hc=function(t){return te(t,44)&&PJe(this.b,u(t,44))},f.Kc=function(){return this.b.De()},f.Mc=function(t){var n;return te(t,44)?(n=u(t,44),this.b.Le(n)):!1},f.gc=function(){return this.b.gc()},x(In,"AbstractNavigableMap/EntrySet",629),C(1146,ad,Sge,fje),f.Nc=function(){return new $R(this)},f.$b=function(){this.a.$b()},f.Hc=function(t){return Sce(this.a,t)},f.Kc=function(){var t;return t=this.a.vc().b.De(),new dje(t)},f.Mc=function(t){return Sce(this.a,t)?(this.a.Bc(t),!0):!1},f.gc=function(){return this.a.gc()},x(In,"AbstractNavigableMap/NavigableKeySet",1146),C(1147,1,co,dje),f.Nb=function(t){To(this,t)},f.Ob=function(){return jK(this.a.a)},f.Pb=function(){var t;return t=fGe(this.a),t.ld()},f.Qb=function(){wWe(this.a)},x(In,"AbstractNavigableMap/NavigableKeySet/1",1147),C(2103,31,sv),f.Fc=function(t){return l4(D5(this,t),r8),!0},f.Gc=function(t){return sn(t),tI(t!=this,"Can't add a queue to itself"),vo(this,t)},f.$b=function(){for(;vW(this)!=null;);},x(In,"AbstractQueue",2103),C(310,31,{4:1,20:1,31:1,16:1},Ay,wYe),f.Fc=function(t){return Iae(this,t),!0},f.$b=function(){Aae(this)},f.Hc=function(t){return ott(new nS(this),t)},f.dc=function(){return a7(this)},f.Kc=function(){return new nS(this)},f.Mc=function(t){return XBt(new nS(this),t)},f.gc=function(){return this.c-this.b&this.a.length-1},f.Nc=function(){return new Pt(this,272)},f.Qc=function(t){var n;return n=this.c-this.b&this.a.length-1,t.lengthn&&pi(t,n,null),t},f.b=0,f.c=0,x(In,"ArrayDeque",310),C(459,1,co,nS),f.Nb=function(t){To(this,t)},f.Ob=function(){return this.a!=this.b},f.Pb=function(){return d$(this)},f.Qb=function(){ZZe(this)},f.a=0,f.b=0,f.c=-1,x(In,"ArrayDeque/IteratorImpl",459),C(13,56,Jat,Le,ql,Vc),f.bd=function(t,n){Nb(this,t,n)},f.Fc=function(t){return $e(this,t)},f.cd=function(t,n){return yde(this,t,n)},f.Gc=function(t){return zi(this,t)},f.$b=function(){mm(this.c,0)},f.Hc=function(t){return $s(this,t,0)!=-1},f.Jc=function(t){ic(this,t)},f.Xb=function(t){return Ye(this,t)},f.dd=function(t){return $s(this,t,0)},f.dc=function(){return this.c.length==0},f.Kc=function(){return new N(this)},f.gd=function(t){return X1(this,t)},f.Mc=function(t){return vc(this,t)},f.ce=function(t,n){FXe(this,t,n)},f.hd=function(t,n){return la(this,t,n)},f.gc=function(){return this.c.length},f.jd=function(t){Mi(this,t)},f.Pc=function(){return MA(this.c)},f.Qc=function(t){return ld(this,t)};var Nan=x(In,"ArrayList",13);C(7,1,co,N),f.Nb=function(t){To(this,t)},f.Ob=function(){return Ys(this)},f.Pb=function(){return D(this)},f.Qb=function(){J7(this)},f.a=0,f.b=-1,x(In,"ArrayList/1",7),C(2112,w.Function,{},yt),f.Me=function(t,n){return Kr(t,n)},C(151,56,Qat,Wc),f.Hc=function(t){return eet(this,t)!=-1},f.Jc=function(t){var n,i,s,c;for(sn(t),i=this.a,s=0,c=i.length;s0)throw B(new Qt(Age+t+" greater than "+this.e));return this.f.Te()?uXe(this.c,this.b,this.a,t,n):zXe(this.c,t,n)},f.zc=function(t,n){if(!VV(this.c,this.f,t,this.b,this.a,this.e,this.d))throw B(new Qt(t+" outside the range "+this.b+" to "+this.e));return Ctt(this.c,t,n)},f.Bc=function(t){var n;return n=t,VV(this.c,this.f,n,this.b,this.a,this.e,this.d)?aXe(this.c,n):null},f.Le=function(t){return XA(this,t.ld())&&Qae(this.c,t)},f.gc=function(){var t,n,i;if(this.f.Te()?this.a?n=O5(this.c,this.b,!0):n=O5(this.c,this.b,!1):n=cfe(this.c),!(n&&XA(this,n.d)&&n))return 0;for(t=0,i=new AW(this.c,this.f,this.b,this.a,this.e,this.d);jK(i.a);i.b=u(tae(i.a),44))++t;return t},f.ad=function(t,n){if(this.f.Te()&&this.c.a.Ne(t,this.b)<0)throw B(new Qt(Age+t+tft+this.b));return this.f.Ue()?uXe(this.c,t,n,this.e,this.d):HXe(this.c,t,n)},f.a=!1,f.d=!1,x(In,"TreeMap/SubMap",631),C(304,22,NX,jR),f.Te=function(){return!1},f.Ue=function(){return!1};var oQ,sQ,lQ,cQ,zD=An(In,"TreeMap/SubMapType",304,Nn,Czt,RLt);C(1143,304,NX,gUe),f.Ue=function(){return!0},An(In,"TreeMap/SubMapType/1",1143,zD,null,null),C(1144,304,NX,xUe),f.Te=function(){return!0},f.Ue=function(){return!0},An(In,"TreeMap/SubMapType/2",1144,zD,null,null),C(1145,304,NX,pUe),f.Te=function(){return!0},An(In,"TreeMap/SubMapType/3",1145,zD,null,null);var jpt;C(157,ad,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},Qoe,z1,pk),f.Nc=function(){return new $R(this)},f.Fc=function(t){return iI(this,t)},f.$b=function(){this.a.$b()},f.Hc=function(t){return this.a._b(t)},f.Kc=function(){return this.a.ec().Kc()},f.Mc=function(t){return IU(this,t)},f.gc=function(){return this.a.gc()};var Uan=x(In,"TreeSet",157);C(1082,1,{},bje),f.Ve=function(t,n){return XAt(this.a,t,n)},x(BX,"BinaryOperator/lambda$0$Type",1082),C(1083,1,{},wje),f.Ve=function(t,n){return YAt(this.a,t,n)},x(BX,"BinaryOperator/lambda$1$Type",1083),C(952,1,{},pr),f.Kb=function(t){return t},x(BX,"Function/lambda$0$Type",952),C(395,1,Qn,gk),f.Mb=function(t){return!this.a.Mb(t)},x(BX,"Predicate/lambda$2$Type",395),C(581,1,{581:1});var Dpt=x(c9,"Handler",581);C(2107,1,DP),f.xe=function(){return"DUMMY"},f.Ib=function(){return this.xe()};var Hme;x(c9,"Level",2107),C(1706,2107,DP,ye),f.xe=function(){return"INFO"},x(c9,"Level/LevelInfo",1706),C(1843,1,{},KBe);var uQ;x(c9,"LogManager",1843),C(1896,1,DP,bWe),f.b=null,x(c9,"LogRecord",1896),C(525,1,{525:1},QG),f.e=!1;var Npt=!1,Bpt=!1,pd=!1,Fpt=!1,zpt=!1;x(c9,"Logger",525),C(835,581,{581:1},Ce),x(c9,"SimpleConsoleLogHandler",835),C(108,22,{3:1,34:1,22:1,108:1},BK);var Kme,Ws,bv,Ts=An(Ki,"Collector/Characteristics",108,Nn,uFt,ALt),Hpt;C(758,1,{},Lue),x(Ki,"CollectorImpl",758),C(1074,1,{},ee),f.Ve=function(t,n){return KWt(u(t,213),u(n,213))},x(Ki,"Collectors/10methodref$merge$Type",1074),C(1075,1,{},V),f.Kb=function(t){return mYe(u(t,213))},x(Ki,"Collectors/11methodref$toString$Type",1075),C(1076,1,{},mje),f.Kb=function(t){return Gt(),!!Ple(t)},x(Ki,"Collectors/12methodref$test$Type",1076),C(144,1,{},oe),f.Yd=function(t,n){u(t,16).Fc(n)},x(Ki,"Collectors/20methodref$add$Type",144),C(146,1,{},ue),f.Xe=function(){return new Le},x(Ki,"Collectors/21methodref$ctor$Type",146),C(359,1,{},ge),f.Xe=function(){return new _i},x(Ki,"Collectors/23methodref$ctor$Type",359),C(360,1,{},Ge),f.Yd=function(t,n){Fi(u(t,49),n)},x(Ki,"Collectors/24methodref$add$Type",360),C(1069,1,{},$t),f.Ve=function(t,n){return uHe(u(t,15),u(n,16))},x(Ki,"Collectors/4methodref$addAll$Type",1069),C(1073,1,{},Lt),f.Yd=function(t,n){s1(u(t,213),u(n,484))},x(Ki,"Collectors/9methodref$add$Type",1073),C(1072,1,{},AWe),f.Xe=function(){return new x0(this.a,this.b,this.c)},x(Ki,"Collectors/lambda$15$Type",1072),C(1077,1,{},tn),f.Xe=function(){var t;return t=new q1,op(t,(Gt(),!1),new Le),op(t,!0,new Le),t},x(Ki,"Collectors/lambda$22$Type",1077),C(1078,1,{},vje),f.Xe=function(){return H(F(Ji,1),Bt,1,5,[this.a])},x(Ki,"Collectors/lambda$25$Type",1078),C(1079,1,{},yje),f.Yd=function(t,n){gDt(this.a,y0(t))},x(Ki,"Collectors/lambda$26$Type",1079),C(1080,1,{},kje),f.Ve=function(t,n){return KDt(this.a,y0(t),y0(n))},x(Ki,"Collectors/lambda$27$Type",1080),C(1081,1,{},Ct),f.Kb=function(t){return y0(t)[0]},x(Ki,"Collectors/lambda$28$Type",1081),C(728,1,{},Kn),f.Ve=function(t,n){return pue(t,n)},x(Ki,"Collectors/lambda$4$Type",728),C(145,1,{},dn),f.Ve=function(t,n){return x_t(u(t,16),u(n,16))},x(Ki,"Collectors/lambda$42$Type",145),C(361,1,{},Rn),f.Ve=function(t,n){return E_t(u(t,49),u(n,49))},x(Ki,"Collectors/lambda$50$Type",361),C(362,1,{},br),f.Kb=function(t){return u(t,49)},x(Ki,"Collectors/lambda$51$Type",362),C(1068,1,{},Cje),f.Yd=function(t,n){XGt(this.a,u(t,85),n)},x(Ki,"Collectors/lambda$7$Type",1068),C(1070,1,{},de),f.Ve=function(t,n){return EGt(u(t,85),u(n,85),new $t)},x(Ki,"Collectors/lambda$8$Type",1070),C(1071,1,{},Sje),f.Kb=function(t){return CVt(this.a,u(t,85))},x(Ki,"Collectors/lambda$9$Type",1071),C(550,1,{}),f.$e=function(){tS(this)},f.d=!1,x(Ki,"TerminatableStream",550),C(827,550,Lge,hce),f.$e=function(){tS(this)},x(Ki,"DoubleStreamImpl",827),C(1847,736,Ku,LWe),f.Re=function(t){return EXt(this,u(t,189))},f.a=null,x(Ki,"DoubleStreamImpl/2",1847),C(1848,1,WP,xje),f.Pe=function(t){mRt(this.a,t)},x(Ki,"DoubleStreamImpl/2/lambda$0$Type",1848),C(1845,1,WP,Eje),f.Pe=function(t){wRt(this.a,t)},x(Ki,"DoubleStreamImpl/lambda$0$Type",1845),C(1846,1,WP,Tje),f.Pe=function(t){jnt(this.a,t)},x(Ki,"DoubleStreamImpl/lambda$2$Type",1846),C(1397,735,Ku,SJe),f.Re=function(t){return fzt(this,u(t,202))},f.a=0,f.b=0,f.c=0,x(Ki,"IntStream/5",1397),C(806,550,Lge,pce),f.$e=function(){tS(this)},f._e=function(){return Qp(this),this.a},x(Ki,"IntStreamImpl",806),C(807,550,Lge,Bse),f.$e=function(){tS(this)},f._e=function(){return Qp(this),Xle(),$pt},x(Ki,"IntStreamImpl/Empty",807),C(1687,1,BP,Ije),f.Dd=function(t){Wet(this.a,t)},x(Ki,"IntStreamImpl/lambda$4$Type",1687);var Gan=hi(Ki,"Stream");C(26,550,{533:1,687:1,848:1},xt),f.$e=function(){tS(this)};var t6;x(Ki,"StreamImpl",26),C(1102,500,Ku,cWe),f.Bd=function(t){for(;pKt(this);){if(this.a.Bd(t))return!0;tS(this.b),this.b=null,this.a=null}return!1},x(Ki,"StreamImpl/1",1102),C(1103,1,bn,Pje),f.Cd=function(t){zjt(this.a,u(t,848))},x(Ki,"StreamImpl/1/lambda$0$Type",1103),C(1104,1,Qn,Mje),f.Mb=function(t){return Fi(this.a,t)},x(Ki,"StreamImpl/1methodref$add$Type",1104),C(1105,500,Ku,Hqe),f.Bd=function(t){var n;return this.a||(n=new Le,this.b.a.Nb(new Oje(n)),Ot(),Mi(n,this.c),this.a=new Pt(n,16)),EZe(this.a,t)},f.a=null,x(Ki,"StreamImpl/5",1105),C(1106,1,bn,Oje),f.Cd=function(t){$e(this.a,t)},x(Ki,"StreamImpl/5/2methodref$add$Type",1106),C(737,500,Ku,ufe),f.Bd=function(t){for(this.b=!1;!this.b&&this.c.Bd(new THe(this,t)););return this.b},f.b=!1,x(Ki,"StreamImpl/FilterSpliterator",737),C(1096,1,bn,THe),f.Cd=function(t){DDt(this.a,this.b,t)},x(Ki,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),C(1091,736,Ku,LJe),f.Re=function(t){return wLt(this,u(t,189))},x(Ki,"StreamImpl/MapToDoubleSpliterator",1091),C(1095,1,bn,IHe),f.Cd=function(t){z_t(this.a,this.b,t)},x(Ki,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),C(1090,735,Ku,$Je),f.Re=function(t){return mLt(this,u(t,202))},x(Ki,"StreamImpl/MapToIntSpliterator",1090),C(1094,1,bn,PHe),f.Cd=function(t){H_t(this.a,this.b,t)},x(Ki,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),C(734,500,Ku,qae),f.Bd=function(t){return oWe(this,t)},x(Ki,"StreamImpl/MapToObjSpliterator",734),C(1093,1,bn,MHe),f.Cd=function(t){K_t(this.a,this.b,t)},x(Ki,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),C(1092,500,Ku,fet),f.Bd=function(t){for(;DK(this.b,0);){if(!this.a.Bd(new G))return!1;this.b=Ra(this.b,1)}return this.a.Bd(t)},f.b=0,x(Ki,"StreamImpl/SkipSpliterator",1092),C(1097,1,bn,G),f.Cd=function(t){},x(Ki,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),C(626,1,bn,Y),f.Cd=function(t){sje(this,t)},x(Ki,"StreamImpl/ValueConsumer",626),C(1098,1,bn,De),f.Cd=function(t){c0()},x(Ki,"StreamImpl/lambda$0$Type",1098),C(1099,1,bn,gt),f.Cd=function(t){c0()},x(Ki,"StreamImpl/lambda$1$Type",1099),C(1100,1,{},_je),f.Ve=function(t,n){return YLt(this.a,t,n)},x(Ki,"StreamImpl/lambda$4$Type",1100),C(1101,1,bn,OHe),f.Cd=function(t){nLt(this.b,this.a,t)},x(Ki,"StreamImpl/lambda$5$Type",1101),C(1107,1,bn,Rje),f.Cd=function(t){hGt(this.a,u(t,380))},x(Ki,"TerminatableStream/lambda$0$Type",1107),C(2142,1,{}),C(2014,1,{},Kt),x("javaemul.internal","ConsoleLogger",2014);var Wan=0;C(2134,1,{}),C(1830,1,bn,Ut),f.Cd=function(t){u(t,317)},x(i8,"BowyerWatsonTriangulation/lambda$0$Type",1830),C(1831,1,bn,Aje),f.Cd=function(t){vo(this.a,u(t,317).e)},x(i8,"BowyerWatsonTriangulation/lambda$1$Type",1831),C(1832,1,bn,so),f.Cd=function(t){u(t,177)},x(i8,"BowyerWatsonTriangulation/lambda$2$Type",1832),C(1827,1,tr,Lje),f.Ne=function(t,n){return Yzt(this.a,u(t,177),u(n,177))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(i8,"NaiveMinST/lambda$0$Type",1827),C(449,1,{},t7),x(i8,"NodeMicroLayout",449),C(177,1,{177:1},Y3),f.Fb=function(t){var n;return te(t,177)?(n=u(t,177),gl(this.a,n.a)&&gl(this.b,n.b)||gl(this.a,n.b)&&gl(this.b,n.a)):!1},f.Hb=function(){return Oy(this.a)+Oy(this.b)};var Van=x(i8,"TEdge",177);C(317,1,{317:1},qpe),f.Fb=function(t){var n;return te(t,317)?(n=u(t,317),RL(this,n.a)&&RL(this,n.b)&&RL(this,n.c)):!1},f.Hb=function(){return Oy(this.a)+Oy(this.b)+Oy(this.c)},x(i8,"TTriangle",317),C(225,1,{225:1},uA),x(i8,"Tree",225),C(1218,1,{},IXe),x(ift,"Scanline",1218);var Kpt=hi(ift,oft);C(1758,1,{},CZe),x(Mh,"CGraph",1758),C(316,1,{316:1},OXe),f.b=0,f.c=0,f.d=0,f.g=0,f.i=0,f.k=Hi,x(Mh,"CGroup",316),C(830,1,{},tse),x(Mh,"CGroup/CGroupBuilder",830),C(60,1,{60:1},HGe),f.Ib=function(){var t;return this.j?Jn(this.j.Kb(this)):(e1(HD),HD.o+"@"+(t=$b(this)>>>0,t.toString(16)))},f.f=0,f.i=Hi;var HD=x(Mh,"CNode",60);C(829,1,{},nse),x(Mh,"CNode/CNodeBuilder",829);var Upt;C(1590,1,{},rl),f.ff=function(t,n){return 0},f.gf=function(t,n){return 0},x(Mh,lft,1590),C(1853,1,{},Ro),f.cf=function(t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$;for(v=ii,s=new N(t.a.b);s.as.d.c||s.d.c==d.d.c&&s.d.b0?t+this.n.d+this.n.a:0},f.kf=function(){var t,n,i,s,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].kf());else if(this.g)c=Wde(this,XV(this,null,!0));else for(n=(jf(),H(F(wv,1),Te,237,0,[ul,Ql,al])),i=0,s=n.length;i0?c+this.n.b+this.n.c:0},f.lf=function(){var t,n,i,s,c;if(this.g)for(t=XV(this,null,!1),i=(jf(),H(F(wv,1),Te,237,0,[ul,Ql,al])),s=0,c=i.length;s0&&(s[0]+=this.d,i-=s[0]),s[2]>0&&(s[2]+=this.d,i-=s[2]),this.c.a=w.Math.max(0,i),this.c.d=n.d+t.d+(this.c.a-i)/2,s[1]=w.Math.max(s[1],i),Uae(this,Ql,n.d+t.d+s[0]-(s[1]-i)/2,s)},f.b=null,f.d=0,f.e=!1,f.f=!1,f.g=!1;var pQ=0,KD=0;x($0,"GridContainerCell",1538),C(471,22,{3:1,34:1,22:1,471:1},zK);var Cg,oh,ff,egt=An($0,"HorizontalLabelAlignment",471,Nn,fFt,NLt),tgt;C(314,217,{217:1,314:1},hXe,xZe,sXe),f.jf=function(){return VWe(this)},f.kf=function(){return cue(this)},f.a=0,f.c=!1;var qan=x($0,"LabelCell",314);C(252,336,{217:1,336:1,252:1},_S),f.jf=function(){return zS(this)},f.kf=function(){return HS(this)},f.lf=function(){Dq(this)},f.mf=function(){Nq(this)},f.b=0,f.c=0,f.d=!1,x($0,"StripContainerCell",252),C(1691,1,Qn,YC),f.Mb=function(t){return NOt(u(t,217))},x($0,"StripContainerCell/lambda$0$Type",1691),C(1692,1,{},sT),f.Ye=function(t){return u(t,217).kf()},x($0,"StripContainerCell/lambda$1$Type",1692),C(1693,1,Qn,$1),f.Mb=function(t){return BOt(u(t,217))},x($0,"StripContainerCell/lambda$2$Type",1693),C(1694,1,{},JC),f.Ye=function(t){return u(t,217).jf()},x($0,"StripContainerCell/lambda$3$Type",1694),C(472,22,{3:1,34:1,22:1,472:1},HK);var df,Sg,zf,ngt=An($0,"VerticalLabelAlignment",472,Nn,aFt,BLt),rgt;C(800,1,{},fge),f.c=0,f.d=0,f.k=0,f.s=0,f.t=0,f.v=!1,f.w=0,f.D=!1,f.F=!1,x(Oj,"NodeContext",800),C(1536,1,tr,Ne),f.Ne=function(t,n){return oUe(u(t,64),u(n,64))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Oj,"NodeContext/0methodref$comparePortSides$Type",1536),C(1537,1,tr,Xe),f.Ne=function(t,n){return pQt(u(t,117),u(n,117))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Oj,"NodeContext/1methodref$comparePortContexts$Type",1537),C(164,22,{3:1,34:1,22:1,164:1},aa);var igt,ogt,sgt,lgt,cgt,ugt,agt,fgt,dgt,hgt,pgt,ggt,bgt,wgt,mgt,vgt,ygt,kgt,Cgt,Sgt,xgt,gQ,Egt=An(Oj,"NodeLabelLocation",164,Nn,TV,FLt),Tgt;C(117,1,{117:1},pst),f.a=!1,x(Oj,"PortContext",117),C(1541,1,bn,Pr),f.Cd=function(t){xze(u(t,314))},x(qP,yft,1541),C(1542,1,Qn,Cr),f.Mb=function(t){return!!u(t,117).c},x(qP,kft,1542),C(1543,1,bn,Gr),f.Cd=function(t){xze(u(t,117).c)},x(qP,"LabelPlacer/lambda$2$Type",1543);var fve;C(1540,1,bn,lu),f.Cd=function(t){Im(),wOt(u(t,117))},x(qP,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),C(801,1,bn,zce),f.Cd=function(t){__t(this.b,this.c,this.a,u(t,187))},f.a=!1,f.c=!1,x(qP,"NodeLabelCellCreator/lambda$0$Type",801),C(1539,1,bn,Dje),f.Cd=function(t){yOt(this.a,u(t,187))},x(qP,"PortContextCreator/lambda$0$Type",1539);var UD;C(1902,1,{},Rd),x(s8,"GreedyRectangleStripOverlapRemover",1902),C(1903,1,tr,Jg),f.Ne=function(t,n){return uAt(u(t,226),u(n,226))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(s8,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),C(1849,1,{},VBe),f.a=5,f.e=0,x(s8,"RectangleStripOverlapRemover",1849),C(1850,1,tr,mb),f.Ne=function(t,n){return aAt(u(t,226),u(n,226))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(s8,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),C(1852,1,tr,ck),f.Ne=function(t,n){return ZDt(u(t,226),u(n,226))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(s8,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),C(417,22,{3:1,34:1,22:1,417:1},NR);var yM,bQ,wQ,kM,Igt=An(s8,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,Nn,Ezt,zLt),Pgt;C(226,1,{226:1},rG),x(s8,"RectangleStripOverlapRemover/RectangleNode",226),C(1851,1,bn,Nje),f.Cd=function(t){FXt(this.a,u(t,226))},x(s8,"RectangleStripOverlapRemover/lambda$1$Type",1851),C(1323,1,tr,$3),f.Ne=function(t,n){return oln(u(t,176),u(n,176))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Qd,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),C(1326,1,{},j1),f.Kb=function(t){return u(t,334).a},x(Qd,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),C(1327,1,Qn,wy),f.Mb=function(t){return u(t,332).a},x(Qd,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),C(1328,1,Qn,uk),f.Mb=function(t){return u(t,332).a},x(Qd,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),C(1321,1,tr,j3),f.Ne=function(t,n){return jin(u(t,176),u(n,176))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Qd,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),C(1324,1,{},ak),f.Kb=function(t){return u(t,334).a},x(Qd,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),C(781,1,tr,Fp),f.Ne=function(t,n){return mGt(u(t,176),u(n,176))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Qd,"PolyominoCompactor/MinNumOfExtensionsComparator",781),C(1319,1,tr,Qg),f.Ne=function(t,n){return TUt(u(t,330),u(n,330))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Qd,"PolyominoCompactor/MinPerimeterComparator",1319),C(1320,1,tr,zp),f.Ne=function(t,n){return aXt(u(t,330),u(n,330))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Qd,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),C(1322,1,tr,lT),f.Ne=function(t,n){return non(u(t,176),u(n,176))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Qd,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),C(1325,1,{},BH),f.Kb=function(t){return u(t,334).a},x(Qd,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),C(782,1,{},Qse),f.Ve=function(t,n){return wzt(this,u(t,42),u(n,176))},x(Qd,"SuccessorCombination",782),C(649,1,{},QC),f.Ve=function(t,n){var i;return Aen((i=u(t,42),u(n,176),i))},x(Qd,"SuccessorJitter",649),C(648,1,{},cT),f.Ve=function(t,n){var i;return vrn((i=u(t,42),u(n,176),i))},x(Qd,"SuccessorLineByLine",648),C(573,1,{},ZC),f.Ve=function(t,n){var i;return Atn((i=u(t,42),u(n,176),i))},x(Qd,"SuccessorManhattan",573),C(1344,1,{},Y_),f.Ve=function(t,n){var i;return Knn((i=u(t,42),u(n,176),i))},x(Qd,"SuccessorMaxNormWindingInMathPosSense",1344),C(409,1,{},bk),f.Ve=function(t,n){return Rue(this,t,n)},f.c=!1,f.d=!1,f.e=!1,f.f=!1,x(Qd,"SuccessorQuadrantsGeneric",409),C(1345,1,{},we),f.Kb=function(t){return u(t,334).a},x(Qd,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),C(332,22,{3:1,34:1,22:1,332:1},BR),f.a=!1;var CM,SM,xM,EM,Mgt=An(Rj,Gge,332,Nn,Szt,HLt),Ogt;C(1317,1,{}),f.Ib=function(){var t,n,i,s,c,d;for(i=" ",t=Ae(0),c=0;c=0?"b"+t+"["+JG(this.a)+"]":"b["+JG(this.a)+"]"):"b_"+$b(this)},x(YP,"FBendpoint",250),C(290,137,{3:1,290:1,96:1,137:1},KGe),f.Ib=function(){return JG(this)},x(YP,"FEdge",290),C(235,137,{3:1,235:1,96:1,137:1},CL);var Yan=x(YP,"FGraph",235);C(454,309,{3:1,454:1,309:1,96:1,137:1},GYe),f.Ib=function(){return this.b==null||this.b.length==0?"l["+JG(this.a)+"]":"l_"+this.b},x(YP,"FLabel",454),C(153,309,{3:1,153:1,309:1,96:1,137:1},SUe),f.Ib=function(){return vae(this)},f.a=0,x(YP,"FNode",153),C(2100,1,{}),f.vf=function(t){Kpe(this,t)},f.wf=function(){qrt(this)},f.d=0,x(e0e,"AbstractForceModel",2100),C(641,2100,{641:1},Get),f.uf=function(t,n){var i,s,c,d,h;return kut(this.f,t,n),c=Xi(Eo(n.d),t.d),h=w.Math.sqrt(c.a*c.a+c.b*c.b),s=w.Math.max(0,h-eS(t.e)/2-eS(n.e)/2),i=rst(this.e,t,n),i>0?d=-YDt(s,this.c)*i:d=EAt(s,this.b)*u(A(t,(uf(),n6)),17).a,Nd(c,d/h),c},f.vf=function(t){Kpe(this,t),this.a=u(A(t,(uf(),YD)),17).a,this.c=le(pe(A(t,JD))),this.b=le(pe(A(t,xQ)))},f.xf=function(t){return t0&&(d-=LOt(s,this.a)*i),Nd(c,d*this.b/h),c},f.vf=function(t){var n,i,s,c,d,h,b;for(Kpe(this,t),this.b=le(pe(A(t,(uf(),EQ)))),this.c=this.b/u(A(t,YD),17).a,s=t.e.c.length,d=0,c=0,b=new N(t.e);b.a0},f.a=0,f.b=0,f.c=0,x(e0e,"FruchtermanReingoldModel",642),C(860,1,$a,NLe),f.hf=function(t){at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,$j),""),"Force Model"),"Determines the model for force calculation."),yve),(cp(),oi)),kve),ht((Nf(),Nt))))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,t0e),""),"Iterations"),"The number of iterations on the force model."),Ae(300)),Vs),Oo),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,n0e),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Ae(0)),Vs),Oo),ht(uh)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,rY),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Zd),No),Bi),ht(Nt)))),$i(t,rY,$j,Ygt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,iY),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),No),Bi),ht(Nt)))),$i(t,iY,$j,Vgt),uat((new BLe,t))};var Ugt,Ggt,yve,Wgt,Vgt,qgt,Xgt,Ygt;x(f9,"ForceMetaDataProvider",860),C(432,22,{3:1,34:1,22:1,432:1},ele);var SQ,XD,kve=An(f9,"ForceModelStrategy",432,Nn,wBt,GLt),Jgt;C(ap,1,$a,BLe),f.hf=function(t){uat(t)};var Qgt,Zgt,Cve,YD,Sve,e0t,t0t,n0t,r0t,xve,i0t,Eve,Tve,o0t,n6,s0t,xQ,Ive,l0t,c0t,JD,EQ,u0t,a0t,f0t,Pve,d0t;x(f9,"ForceOptions",ap),C(1001,1,{},Zxe),f.sf=function(){var t;return t=new ese,t},f.tf=function(t){},x(f9,"ForceOptions/ForceFactory",1001);var PM,H9,r6,QD;C(861,1,$a,FLe),f.hf=function(t){at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,i0e),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Gt(),!1)),(cp(),Qi)),xi),ht((Nf(),qi))))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,o0e),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),No),Bi),Yr(Nt,H(F(jh,1),Te,170,0,[uh]))))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,s0e),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),Mve),oi),jve),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,l0e),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Zd),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,c0e),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Ae(Mr)),Vs),Oo),ht(Nt)))),Dut((new zLe,t))};var h0t,p0t,Mve,g0t,b0t,w0t;x(f9,"StressMetaDataProvider",861),C(1004,1,$a,zLe),f.hf=function(t){Dut(t)};var ZD,Ove,_ve,Rve,Ave,Lve,m0t,v0t,y0t,k0t,$ve,C0t;x(f9,"StressOptions",1004),C(1005,1,{},Jxe),f.sf=function(){var t;return t=new UGe,t},f.tf=function(t){},x(f9,"StressOptions/StressFactory",1005),C(1110,205,j0,UGe),f.rf=function(t,n){var i,s,c,d,h;for(n.Ug(Lft,1),qe(Ve(Ie(t,(uP(),Ave))))?qe(Ve(Ie(t,$ve)))||dI((i=new t7((Mb(),new kb(t))),i)):elt(new ese,t,n.eh(1)),c=gtt(t),s=Wct(this.a,c),h=s.Kc();h.Ob();)d=u(h.Pb(),235),!(d.e.c.length<=1)&&(nln(this.b,d),Ptn(this.b),ic(d.d,new Qxe));c=sat(s),bat(c),n.Vg()},x(Nj,"StressLayoutProvider",1110),C(1111,1,bn,Qxe),f.Cd=function(t){Jpe(u(t,454))},x(Nj,"StressLayoutProvider/lambda$0$Type",1111),C(1002,1,{},HBe),f.c=0,f.e=0,f.g=0,x(Nj,"StressMajorization",1002),C(391,22,{3:1,34:1,22:1,391:1},KK);var TQ,IQ,PQ,jve=An(Nj,"StressMajorization/Dimension",391,Nn,hFt,WLt),S0t;C(1003,1,tr,Hje),f.Ne=function(t,n){return yLt(this.a,u(t,153),u(n,153))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Nj,"StressMajorization/lambda$0$Type",1003),C(1192,1,{},YXe),x(Y4,"ElkLayered",1192),C(1193,1,bn,Kje),f.Cd=function(t){ren(this.a,u(t,36))},x(Y4,"ElkLayered/lambda$0$Type",1193),C(1194,1,bn,Uje),f.Cd=function(t){kLt(this.a,u(t,36))},x(Y4,"ElkLayered/lambda$1$Type",1194),C(1281,1,{},AUe);var x0t,E0t,T0t;x(Y4,"GraphConfigurator",1281),C(770,1,bn,Noe),f.Cd=function(t){lot(this.a,u(t,10))},x(Y4,"GraphConfigurator/lambda$0$Type",770),C(771,1,{},Xie),f.Kb=function(t){return Fhe(),new xt(null,new Pt(u(t,30).a,16))},x(Y4,"GraphConfigurator/lambda$1$Type",771),C(772,1,bn,Boe),f.Cd=function(t){lot(this.a,u(t,10))},x(Y4,"GraphConfigurator/lambda$2$Type",772),C(1109,205,j0,qBe),f.rf=function(t,n){var i;i=Dsn(new YBe,t),fe(Ie(t,(Ue(),Iv)))===fe((f1(),Cp))?gVt(this.a,i,n):xtn(this.a,i,n),n.$g()||Zut(new HLe,i)},x(Y4,"LayeredLayoutProvider",1109),C(367,22,{3:1,34:1,22:1,367:1},TT);var hf,Ah,_l,zl,Ns,Dve=An(Y4,"LayeredPhases",367,Nn,wHt,VLt),I0t;C(1717,1,{},cet),f.i=0;var P0t;x(nM,"ComponentsToCGraphTransformer",1717);var M0t;C(1718,1,{},Yxe),f.yf=function(t,n){return w.Math.min(t.a!=null?le(t.a):t.c.i,n.a!=null?le(n.a):n.c.i)},f.zf=function(t,n){return w.Math.min(t.a!=null?le(t.a):t.c.i,n.a!=null?le(n.a):n.c.i)},x(nM,"ComponentsToCGraphTransformer/1",1718),C(86,1,{86:1}),f.i=0,f.k=!0,f.o=Hi;var MQ=x(g9,"CNode",86);C(470,86,{470:1,86:1},ice,phe),f.Ib=function(){return""},x(nM,"ComponentsToCGraphTransformer/CRectNode",470),C(1688,1,{},eEe);var OQ,_Q;x(nM,"OneDimensionalComponentsCompaction",1688),C(1689,1,{},tEe),f.Kb=function(t){return iFt(u(t,42))},f.Fb=function(t){return this===t},x(nM,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),C(1690,1,{},nEe),f.Kb=function(t){return wVt(u(t,42))},f.Fb=function(t){return this===t},x(nM,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),C(1720,1,{},rqe),x(g9,"CGraph",1720),C(194,1,{194:1},SV),f.b=0,f.c=0,f.e=0,f.g=!0,f.i=Hi,x(g9,"CGroup",194),C(1719,1,{},rEe),f.yf=function(t,n){return w.Math.max(t.a!=null?le(t.a):t.c.i,n.a!=null?le(n.a):n.c.i)},f.zf=function(t,n){return w.Math.max(t.a!=null?le(t.a):t.c.i,n.a!=null?le(n.a):n.c.i)},x(g9,lft,1719),C(1721,1,{},ost),f.d=!1;var O0t,RQ=x(g9,aft,1721);C(1722,1,{},iEe),f.Kb=function(t){return zse(),Gt(),u(u(t,42).a,86).d.e!=0},f.Fb=function(t){return this===t},x(g9,fft,1722),C(833,1,{},gue),f.a=!1,f.b=!1,f.c=!1,f.d=!1,x(g9,dft,833),C(1898,1,{},vVe),x(Bj,hft,1898);var MM=hi(N0,oft);C(1899,1,{382:1},Zqe),f.bf=function(t){Rrn(this,u(t,476))},x(Bj,pft,1899),C(gg,1,tr,oEe),f.Ne=function(t,n){return zNt(u(t,86),u(n,86))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Bj,gft,gg),C(476,1,{476:1},nle),f.a=!1,x(Bj,bft,476),C(1901,1,tr,sEe),f.Ne=function(t,n){return HYt(u(t,476),u(n,476))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Bj,wft,1901),C(148,1,{148:1},Mk,Qce),f.Fb=function(t){var n;return t==null||Jan!=Tu(t)?!1:(n=u(t,148),gl(this.c,n.c)&&gl(this.d,n.d))},f.Hb=function(){return XI(H(F(Ji,1),Bt,1,5,[this.c,this.d]))},f.Ib=function(){return"("+this.c+Xo+this.d+(this.a?"cx":"")+this.b+")"},f.a=!0,f.c=0,f.d=0;var Jan=x(N0,"Point",148);C(416,22,{3:1,34:1,22:1,416:1},zR);var Pw,mv,C2,vv,_0t=An(N0,"Point/Quadrant",416,Nn,Tzt,qLt),R0t;C(1708,1,{},WBe),f.b=null,f.c=null,f.d=null,f.e=null,f.f=null;var A0t,L0t,$0t,j0t,D0t;x(N0,"RectilinearConvexHull",1708),C(583,1,{382:1},_$),f.bf=function(t){bKt(this,u(t,148))},f.b=0;var Nve;x(N0,"RectilinearConvexHull/MaximalElementsEventHandler",583),C(1710,1,tr,lEe),f.Ne=function(t,n){return HNt(pe(t),pe(n))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(N0,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),C(1709,1,{382:1},SZe),f.bf=function(t){Vnn(this,u(t,148))},f.a=0,f.b=null,f.c=null,f.d=null,f.e=null,x(N0,"RectilinearConvexHull/RectangleEventHandler",1709),C(1711,1,tr,cEe),f.Ne=function(t,n){return YFt(u(t,148),u(n,148))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(N0,"RectilinearConvexHull/lambda$0$Type",1711),C(1712,1,tr,fEe),f.Ne=function(t,n){return JFt(u(t,148),u(n,148))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(N0,"RectilinearConvexHull/lambda$1$Type",1712),C(1713,1,tr,dEe),f.Ne=function(t,n){return XFt(u(t,148),u(n,148))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(N0,"RectilinearConvexHull/lambda$2$Type",1713),C(1714,1,tr,aEe),f.Ne=function(t,n){return QFt(u(t,148),u(n,148))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(N0,"RectilinearConvexHull/lambda$3$Type",1714),C(1715,1,tr,hEe),f.Ne=function(t,n){return MQt(u(t,148),u(n,148))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(N0,"RectilinearConvexHull/lambda$4$Type",1715),C(1716,1,{},PXe),x(N0,"Scanline",1716),C(2104,1,{}),x(dd,"AbstractGraphPlacer",2104),C(335,1,{335:1},gGe),f.Ff=function(t){return this.Gf(t)?(It(this.b,u(A(t,(Oe(),S1)),21),t),!0):!1},f.Gf=function(t){var n,i,s,c;for(n=u(A(t,(Oe(),S1)),21),c=u($r(Ur,n),21),s=c.Kc();s.Ob();)if(i=u(s.Pb(),21),!u($r(this.b,i),15).dc())return!1;return!0};var Ur;x(dd,"ComponentGroup",335),C(779,2104,{},rse),f.Hf=function(t){var n,i;for(i=new N(this.a);i.ai&&(k=0,T+=b+s,b=0),m=d.c,U5(d,k+m.a,T+m.b),Of(m),c=w.Math.max(c,k+v.a),b=w.Math.max(b,v.b),k+=v.a+s;n.f.a=c,n.f.b=T+b},f.Jf=function(t,n){var i,s,c,d,h;if(fe(A(n,(Ue(),Tv)))===fe((P0(),yv))){for(s=t.Kc();s.Ob();){for(i=u(s.Pb(),36),h=0,d=new N(i.a);d.ai&&!u(A(d,(Oe(),S1)),21).Hc((ze(),en))||m&&u(A(m,(Oe(),S1)),21).Hc((ze(),fn))||u(A(d,(Oe(),S1)),21).Hc((ze(),rn)))&&(P=T,O+=b+s,b=0),v=d.c,u(A(d,(Oe(),S1)),21).Hc((ze(),en))&&(P=c+s),U5(d,P+v.a,O+v.b),c=w.Math.max(c,P+k.a),u(A(d,S1),21).Hc(Pn)&&(T=w.Math.max(T,P+k.a+s)),Of(v),b=w.Math.max(b,k.b),P+=k.a+s,m=d;n.f.a=c,n.f.b=O+b},f.Jf=function(t,n){},x(dd,"ModelOrderRowGraphPlacer",1313),C(1311,1,tr,bEe),f.Ne=function(t,n){return gGt(u(t,36),u(n,36))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(dd,"SimpleRowGraphPlacer/1",1311);var B0t;C(1280,1,Jd,wEe),f.Lb=function(t){var n;return n=u(A(u(t,249).b,(Ue(),Is)),75),!!n&&n.b!=0},f.Fb=function(t){return this===t},f.Mb=function(t){var n;return n=u(A(u(t,249).b,(Ue(),Is)),75),!!n&&n.b!=0},x(Fj,"CompoundGraphPostprocessor/1",1280),C(1279,1,qr,JBe),f.Kf=function(t,n){Prt(this,u(t,36),n)},x(Fj,"CompoundGraphPreprocessor",1279),C(453,1,{453:1},mnt),f.c=!1,x(Fj,"CompoundGraphPreprocessor/ExternalPort",453),C(249,1,{249:1},CA),f.Ib=function(){return RU(this.c)+":"+Zot(this.b)},x(Fj,"CrossHierarchyEdge",249),C(777,1,tr,Foe),f.Ne=function(t,n){return bYt(this,u(t,249),u(n,249))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Fj,"CrossHierarchyEdgeComparator",777),C(305,137,{3:1,305:1,96:1,137:1}),f.p=0,x(Bl,"LGraphElement",305),C(18,305,{3:1,18:1,305:1,96:1,137:1},Vb),f.Ib=function(){return Zot(this)};var $Q=x(Bl,"LEdge",18);C(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},Ofe),f.Jc=function(t){Po(this,t)},f.Kc=function(){return new N(this.b)},f.Ib=function(){return this.b.c.length==0?"G-unlayered"+ag(this.a):this.a.c.length==0?"G-layered"+ag(this.b):"G[layerless"+ag(this.a)+", layers"+ag(this.b)+"]"};var F0t=x(Bl,"LGraph",36),z0t;C(666,1,{}),f.Lf=function(){return this.e.n},f.of=function(t){return A(this.e,t)},f.Mf=function(){return this.e.o},f.Nf=function(){return this.e.p},f.pf=function(t){return Xr(this.e,t)},f.Of=function(t){this.e.n.a=t.a,this.e.n.b=t.b},f.Pf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},f.Qf=function(t){this.e.p=t},x(Bl,"LGraphAdapters/AbstractLShapeAdapter",666),C(474,1,{853:1},n7),f.Rf=function(){var t,n;if(!this.b)for(this.b=gh(this.a.b.c.length),n=new N(this.a.b);n.a0&&Xtt((Zt(n-1,t.length),t.charCodeAt(n-1)),Fft);)--n;if(d> ",t),z$(i)),lr(Al((t.a+="[",t),i.i),"]")),t.a},f.c=!0,f.d=!1;var Kve,Uve,Gve,Wve,Vve,qve,K0t=x(Bl,"LPort",12);C(408,1,Th,wk),f.Jc=function(t){Po(this,t)},f.Kc=function(){var t;return t=new N(this.a.e),new Gje(t)},x(Bl,"LPort/1",408),C(1309,1,co,Gje),f.Nb=function(t){To(this,t)},f.Pb=function(){return u(D(this.a),18).c},f.Ob=function(){return Ys(this.a)},f.Qb=function(){J7(this.a)},x(Bl,"LPort/1/1",1309),C(369,1,Th,N3),f.Jc=function(t){Po(this,t)},f.Kc=function(){var t;return t=new N(this.a.g),new zoe(t)},x(Bl,"LPort/2",369),C(776,1,co,zoe),f.Nb=function(t){To(this,t)},f.Pb=function(){return u(D(this.a),18).d},f.Ob=function(){return Ys(this.a)},f.Qb=function(){J7(this.a)},x(Bl,"LPort/2/1",776),C(1302,1,Th,LHe),f.Jc=function(t){Po(this,t)},f.Kc=function(){return new nd(this)},x(Bl,"LPort/CombineIter",1302),C(208,1,co,nd),f.Nb=function(t){To(this,t)},f.Qb=function(){dze()},f.Ob=function(){return F7(this)},f.Pb=function(){return Ys(this.a)?D(this.a):D(this.b)},x(Bl,"LPort/CombineIter/1",208),C(1303,1,Jd,vEe),f.Lb=function(t){return AVe(t)},f.Fb=function(t){return this===t},f.Mb=function(t){return Dc(),u(t,12).g.c.length!=0},x(Bl,"LPort/lambda$0$Type",1303),C(1304,1,Jd,yEe),f.Lb=function(t){return LVe(t)},f.Fb=function(t){return this===t},f.Mb=function(t){return Dc(),u(t,12).e.c.length!=0},x(Bl,"LPort/lambda$1$Type",1304),C(1305,1,Jd,kEe),f.Lb=function(t){return Dc(),u(t,12).j==(ze(),en)},f.Fb=function(t){return this===t},f.Mb=function(t){return Dc(),u(t,12).j==(ze(),en)},x(Bl,"LPort/lambda$2$Type",1305),C(1306,1,Jd,CEe),f.Lb=function(t){return Dc(),u(t,12).j==(ze(),fn)},f.Fb=function(t){return this===t},f.Mb=function(t){return Dc(),u(t,12).j==(ze(),fn)},x(Bl,"LPort/lambda$3$Type",1306),C(1307,1,Jd,SEe),f.Lb=function(t){return Dc(),u(t,12).j==(ze(),Pn)},f.Fb=function(t){return this===t},f.Mb=function(t){return Dc(),u(t,12).j==(ze(),Pn)},x(Bl,"LPort/lambda$4$Type",1307),C(1308,1,Jd,xEe),f.Lb=function(t){return Dc(),u(t,12).j==(ze(),rn)},f.Fb=function(t){return this===t},f.Mb=function(t){return Dc(),u(t,12).j==(ze(),rn)},x(Bl,"LPort/lambda$5$Type",1308),C(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},Ll),f.Jc=function(t){Po(this,t)},f.Kc=function(){return new N(this.a)},f.Ib=function(){return"L_"+$s(this.b.b,this,0)+ag(this.a)},x(Bl,"Layer",30),C(1330,1,{},YBe),x(dp,Uft,1330),C(1334,1,{},EEe),f.Kb=function(t){return Ds(u(t,84))},x(dp,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),C(1337,1,{},TEe),f.Kb=function(t){return Ds(u(t,84))},x(dp,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),C(1331,1,bn,Wje),f.Cd=function(t){bst(this.a,u(t,123))},x(dp,Zge,1331),C(1332,1,bn,Vje),f.Cd=function(t){bst(this.a,u(t,123))},x(dp,Gft,1332),C(1333,1,{},IEe),f.Kb=function(t){return new xt(null,new Pt(Jue(u(t,74)),16))},x(dp,Wft,1333),C(1335,1,Qn,qje),f.Mb=function(t){return vRt(this.a,u(t,27))},x(dp,Vft,1335),C(1336,1,{},PEe),f.Kb=function(t){return new xt(null,new Pt(jNt(u(t,74)),16))},x(dp,"ElkGraphImporter/lambda$5$Type",1336),C(1338,1,Qn,Xje),f.Mb=function(t){return yRt(this.a,u(t,27))},x(dp,"ElkGraphImporter/lambda$7$Type",1338),C(1339,1,Qn,MEe),f.Mb=function(t){return YNt(u(t,74))},x(dp,"ElkGraphImporter/lambda$8$Type",1339),C(1297,1,{},HLe);var U0t;x(dp,"ElkGraphLayoutTransferrer",1297),C(1298,1,Qn,Yje),f.Mb=function(t){return cLt(this.a,u(t,18))},x(dp,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),C(1299,1,bn,Jje),f.Cd=function(t){xT(),$e(this.a,u(t,18))},x(dp,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),C(1300,1,Qn,Qje),f.Mb=function(t){return VAt(this.a,u(t,18))},x(dp,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),C(1301,1,bn,Zje),f.Cd=function(t){xT(),$e(this.a,u(t,18))},x(dp,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),C(819,1,{},Ice),x(ln,"BiLinkedHashMultiMap",819),C(1550,1,qr,OEe),f.Kf=function(t,n){$Ut(u(t,36),n)},x(ln,"CommentNodeMarginCalculator",1550),C(1551,1,{},_Ee),f.Kb=function(t){return new xt(null,new Pt(u(t,30).a,16))},x(ln,"CommentNodeMarginCalculator/lambda$0$Type",1551),C(1552,1,bn,REe),f.Cd=function(t){$sn(u(t,10))},x(ln,"CommentNodeMarginCalculator/lambda$1$Type",1552),C(1553,1,qr,AEe),f.Kf=function(t,n){Brn(u(t,36),n)},x(ln,"CommentPostprocessor",1553),C(1554,1,qr,LEe),f.Kf=function(t,n){lun(u(t,36),n)},x(ln,"CommentPreprocessor",1554),C(1555,1,qr,$Ee),f.Kf=function(t,n){nrn(u(t,36),n)},x(ln,"ConstraintsPostprocessor",1555),C(1556,1,qr,jEe),f.Kf=function(t,n){uGt(u(t,36),n)},x(ln,"EdgeAndLayerConstraintEdgeReverser",1556),C(1557,1,qr,DEe),f.Kf=function(t,n){ZVt(u(t,36),n)},x(ln,"EndLabelPostprocessor",1557),C(1558,1,{},NEe),f.Kb=function(t){return new xt(null,new Pt(u(t,30).a,16))},x(ln,"EndLabelPostprocessor/lambda$0$Type",1558),C(1559,1,Qn,BEe),f.Mb=function(t){return pHt(u(t,10))},x(ln,"EndLabelPostprocessor/lambda$1$Type",1559),C(1560,1,bn,FEe),f.Cd=function(t){KYt(u(t,10))},x(ln,"EndLabelPostprocessor/lambda$2$Type",1560),C(1561,1,qr,zEe),f.Kf=function(t,n){_Zt(u(t,36),n)},x(ln,"EndLabelPreprocessor",1561),C(1562,1,{},HEe),f.Kb=function(t){return new xt(null,new Pt(u(t,30).a,16))},x(ln,"EndLabelPreprocessor/lambda$0$Type",1562),C(1563,1,bn,kWe),f.Cd=function(t){R_t(this.a,this.b,this.c,u(t,10))},f.a=0,f.b=0,f.c=!1,x(ln,"EndLabelPreprocessor/lambda$1$Type",1563),C(1564,1,Qn,KEe),f.Mb=function(t){return fe(A(u(t,72),(Ue(),lh)))===fe((od(),tC))},x(ln,"EndLabelPreprocessor/lambda$2$Type",1564),C(1565,1,bn,eDe),f.Cd=function(t){or(this.a,u(t,72))},x(ln,"EndLabelPreprocessor/lambda$3$Type",1565),C(1566,1,Qn,UEe),f.Mb=function(t){return fe(A(u(t,72),(Ue(),lh)))===fe((od(),Bv))},x(ln,"EndLabelPreprocessor/lambda$4$Type",1566),C(1567,1,bn,tDe),f.Cd=function(t){or(this.a,u(t,72))},x(ln,"EndLabelPreprocessor/lambda$5$Type",1567),C(1615,1,qr,LLe),f.Kf=function(t,n){QWt(u(t,36),n)};var G0t;x(ln,"EndLabelSorter",1615),C(1616,1,tr,GEe),f.Ne=function(t,n){return _qt(u(t,466),u(n,466))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(ln,"EndLabelSorter/1",1616),C(466,1,{466:1},Vqe),x(ln,"EndLabelSorter/LabelGroup",466),C(1617,1,{},WEe),f.Kb=function(t){return ST(),new xt(null,new Pt(u(t,30).a,16))},x(ln,"EndLabelSorter/lambda$0$Type",1617),C(1618,1,Qn,VEe),f.Mb=function(t){return ST(),u(t,10).k==(nn(),Ei)},x(ln,"EndLabelSorter/lambda$1$Type",1618),C(1619,1,bn,qEe),f.Cd=function(t){GQt(u(t,10))},x(ln,"EndLabelSorter/lambda$2$Type",1619),C(1620,1,Qn,XEe),f.Mb=function(t){return ST(),fe(A(u(t,72),(Ue(),lh)))===fe((od(),Bv))},x(ln,"EndLabelSorter/lambda$3$Type",1620),C(1621,1,Qn,YEe),f.Mb=function(t){return ST(),fe(A(u(t,72),(Ue(),lh)))===fe((od(),tC))},x(ln,"EndLabelSorter/lambda$4$Type",1621),C(1568,1,qr,JEe),f.Kf=function(t,n){Xsn(this,u(t,36))},f.b=0,f.c=0,x(ln,"FinalSplineBendpointsCalculator",1568),C(1569,1,{},QEe),f.Kb=function(t){return new xt(null,new Pt(u(t,30).a,16))},x(ln,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),C(1570,1,{},ZEe),f.Kb=function(t){return new xt(null,new zb(new gn(wn(Pi(u(t,10)).a.Kc(),new j))))},x(ln,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),C(1571,1,Qn,eTe),f.Mb=function(t){return!Zo(u(t,18))},x(ln,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),C(1572,1,Qn,tTe),f.Mb=function(t){return Xr(u(t,18),(Oe(),V0))},x(ln,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),C(1573,1,bn,nDe),f.Cd=function(t){ion(this.a,u(t,131))},x(ln,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),C(1574,1,bn,nTe),f.Cd=function(t){wP(u(t,18).a)},x(ln,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),C(803,1,qr,Hoe),f.Kf=function(t,n){Kln(this,u(t,36),n)},x(ln,"GraphTransformer",803),C(517,22,{3:1,34:1,22:1,517:1},tle);var DQ,OM,W0t=An(ln,"GraphTransformer/Mode",517,Nn,mBt,Z$t),V0t;C(1575,1,qr,rTe),f.Kf=function(t,n){fnn(u(t,36),n)},x(ln,"HierarchicalNodeResizingProcessor",1575),C(1576,1,qr,iTe),f.Kf=function(t,n){OUt(u(t,36),n)},x(ln,"HierarchicalPortConstraintProcessor",1576),C(1577,1,tr,oTe),f.Ne=function(t,n){return Qqt(u(t,10),u(n,10))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(ln,"HierarchicalPortConstraintProcessor/NodeComparator",1577),C(1578,1,qr,sTe),f.Kf=function(t,n){Zon(u(t,36),n)},x(ln,"HierarchicalPortDummySizeProcessor",1578),C(1579,1,qr,lTe),f.Kf=function(t,n){uin(this,u(t,36),n)},f.a=0,x(ln,"HierarchicalPortOrthogonalEdgeRouter",1579),C(1580,1,tr,cTe),f.Ne=function(t,n){return fAt(u(t,10),u(n,10))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(ln,"HierarchicalPortOrthogonalEdgeRouter/1",1580),C(1581,1,tr,uTe),f.Ne=function(t,n){return wKt(u(t,10),u(n,10))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(ln,"HierarchicalPortOrthogonalEdgeRouter/2",1581),C(1582,1,qr,aTe),f.Kf=function(t,n){TQt(u(t,36),n)},x(ln,"HierarchicalPortPositionProcessor",1582),C(1583,1,qr,KLe),f.Kf=function(t,n){Hun(this,u(t,36))},f.a=0,f.c=0;var eN,tN;x(ln,"HighDegreeNodeLayeringProcessor",1583),C(580,1,{580:1},fTe),f.b=-1,f.d=-1,x(ln,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),C(1584,1,{},dTe),f.Kb=function(t){return QT(),eo(u(t,10))},f.Fb=function(t){return this===t},x(ln,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),C(1585,1,{},hTe),f.Kb=function(t){return QT(),Pi(u(t,10))},f.Fb=function(t){return this===t},x(ln,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),C(1591,1,qr,pTe),f.Kf=function(t,n){Gon(this,u(t,36),n)},x(ln,"HyperedgeDummyMerger",1591),C(804,1,{},Hce),f.a=!1,f.b=!1,f.c=!1,x(ln,"HyperedgeDummyMerger/MergeState",804),C(1592,1,{},gTe),f.Kb=function(t){return new xt(null,new Pt(u(t,30).a,16))},x(ln,"HyperedgeDummyMerger/lambda$0$Type",1592),C(1593,1,{},bTe),f.Kb=function(t){return new xt(null,new Pt(u(t,10).j,16))},x(ln,"HyperedgeDummyMerger/lambda$1$Type",1593),C(1594,1,bn,wTe),f.Cd=function(t){u(t,12).p=-1},x(ln,"HyperedgeDummyMerger/lambda$2$Type",1594),C(1595,1,qr,mTe),f.Kf=function(t,n){Kon(u(t,36),n)},x(ln,"HypernodesProcessor",1595),C(1596,1,qr,vTe),f.Kf=function(t,n){Qon(u(t,36),n)},x(ln,"InLayerConstraintProcessor",1596),C(1597,1,qr,yTe),f.Kf=function(t,n){GUt(u(t,36),n)},x(ln,"InnermostNodeMarginCalculator",1597),C(1598,1,qr,kTe),f.Kf=function(t,n){run(this,u(t,36))},f.a=Hi,f.b=Hi,f.c=ii,f.d=ii;var Qan=x(ln,"InteractiveExternalPortPositioner",1598);C(1599,1,{},CTe),f.Kb=function(t){return u(t,18).d.i},f.Fb=function(t){return this===t},x(ln,"InteractiveExternalPortPositioner/lambda$0$Type",1599),C(1600,1,{},rDe),f.Kb=function(t){return dAt(this.a,pe(t))},f.Fb=function(t){return this===t},x(ln,"InteractiveExternalPortPositioner/lambda$1$Type",1600),C(1601,1,{},STe),f.Kb=function(t){return u(t,18).c.i},f.Fb=function(t){return this===t},x(ln,"InteractiveExternalPortPositioner/lambda$2$Type",1601),C(1602,1,{},iDe),f.Kb=function(t){return hAt(this.a,pe(t))},f.Fb=function(t){return this===t},x(ln,"InteractiveExternalPortPositioner/lambda$3$Type",1602),C(1603,1,{},oDe),f.Kb=function(t){return aLt(this.a,pe(t))},f.Fb=function(t){return this===t},x(ln,"InteractiveExternalPortPositioner/lambda$4$Type",1603),C(1604,1,{},sDe),f.Kb=function(t){return fLt(this.a,pe(t))},f.Fb=function(t){return this===t},x(ln,"InteractiveExternalPortPositioner/lambda$5$Type",1604),C(81,22,{3:1,34:1,22:1,81:1,196:1},Ri),f.dg=function(){switch(this.g){case 15:return new FPe;case 22:return new zPe;case 47:return new UPe;case 28:case 35:return new LTe;case 32:return new OEe;case 42:return new AEe;case 1:return new LEe;case 41:return new $Ee;case 56:return new Hoe((a5(),OM));case 0:return new Hoe((a5(),DQ));case 2:return new jEe;case 54:return new DEe;case 33:return new zEe;case 51:return new JEe;case 55:return new rTe;case 13:return new iTe;case 38:return new sTe;case 44:return new lTe;case 40:return new aTe;case 9:return new KLe;case 49:return new sGe;case 37:return new pTe;case 43:return new mTe;case 27:return new vTe;case 30:return new yTe;case 3:return new kTe;case 18:return new ETe;case 29:return new TTe;case 5:return new ULe;case 50:return new xTe;case 34:return new GLe;case 36:return new $Te;case 52:return new LLe;case 11:return new jTe;case 7:return new WLe;case 39:return new DTe;case 45:return new NTe;case 16:return new BTe;case 10:return new QHe;case 48:return new KTe;case 21:return new UTe;case 23:return new yK((tw(),ux));case 8:return new WTe;case 12:return new qTe;case 4:return new XTe;case 19:return new QLe;case 17:return new oIe;case 53:return new sIe;case 6:return new mIe;case 25:return new ZBe;case 46:return new fIe;case 31:return new qGe;case 14:return new TIe;case 26:return new VPe;case 20:return new _Ie;case 24:return new yK((tw(),oB));default:throw B(new Qt(uY+(this.f!=null?this.f:""+this.g)))}};var Xve,Yve,Jve,Qve,Zve,eye,tye,nye,rye,iye,S2,nN,rN,oye,sye,lye,cye,uye,aye,fye,K9,dye,hye,pye,gye,bye,NQ,iN,oN,wye,sN,lN,cN,T8,kv,Cv,mye,uN,aN,vye,fN,dN,yye,kye,Cye,Sye,hN,BQ,_M,pN,gN,bN,wN,xye,Eye,Tye,Iye,Zan=An(ln,aY,81,Nn,ult,QLt),q0t;C(1605,1,qr,ETe),f.Kf=function(t,n){tun(u(t,36),n)},x(ln,"InvertedPortProcessor",1605),C(1606,1,qr,TTe),f.Kf=function(t,n){Yin(u(t,36),n)},x(ln,"LabelAndNodeSizeProcessor",1606),C(1607,1,Qn,ITe),f.Mb=function(t){return u(t,10).k==(nn(),Ei)},x(ln,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),C(1608,1,Qn,PTe),f.Mb=function(t){return u(t,10).k==(nn(),Oi)},x(ln,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),C(1609,1,bn,CWe),f.Cd=function(t){A_t(this.b,this.a,this.c,u(t,10))},f.a=!1,f.c=!1,x(ln,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),C(1610,1,qr,ULe),f.Kf=function(t,n){Icn(u(t,36),n)};var X0t;x(ln,"LabelDummyInserter",1610),C(1611,1,Jd,MTe),f.Lb=function(t){return fe(A(u(t,72),(Ue(),lh)))===fe((od(),eC))},f.Fb=function(t){return this===t},f.Mb=function(t){return fe(A(u(t,72),(Ue(),lh)))===fe((od(),eC))},x(ln,"LabelDummyInserter/1",1611),C(1612,1,qr,xTe),f.Kf=function(t,n){gcn(u(t,36),n)},x(ln,"LabelDummyRemover",1612),C(1613,1,Qn,OTe),f.Mb=function(t){return qe(Ve(A(u(t,72),(Ue(),IZ))))},x(ln,"LabelDummyRemover/lambda$0$Type",1613),C(1378,1,qr,GLe),f.Kf=function(t,n){lcn(this,u(t,36),n)},f.a=null;var FQ;x(ln,"LabelDummySwitcher",1378),C(293,1,{293:1},cct),f.c=0,f.d=null,f.f=0,x(ln,"LabelDummySwitcher/LabelDummyInfo",293),C(1379,1,{},_Te),f.Kb=function(t){return x4(),new xt(null,new Pt(u(t,30).a,16))},x(ln,"LabelDummySwitcher/lambda$0$Type",1379),C(1380,1,Qn,RTe),f.Mb=function(t){return x4(),u(t,10).k==(nn(),El)},x(ln,"LabelDummySwitcher/lambda$1$Type",1380),C(1381,1,{},lDe),f.Kb=function(t){return qAt(this.a,u(t,10))},x(ln,"LabelDummySwitcher/lambda$2$Type",1381),C(1382,1,bn,cDe),f.Cd=function(t){pNt(this.a,u(t,293))},x(ln,"LabelDummySwitcher/lambda$3$Type",1382),C(1383,1,tr,ATe),f.Ne=function(t,n){return NDt(u(t,293),u(n,293))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(ln,"LabelDummySwitcher/lambda$4$Type",1383),C(802,1,qr,LTe),f.Kf=function(t,n){YHt(u(t,36),n)},x(ln,"LabelManagementProcessor",802),C(1614,1,qr,$Te),f.Kf=function(t,n){Irn(u(t,36),n)},x(ln,"LabelSideSelector",1614),C(1622,1,qr,jTe),f.Kf=function(t,n){psn(u(t,36),n)},x(ln,"LayerConstraintPostprocessor",1622),C(1623,1,qr,WLe),f.Kf=function(t,n){utn(u(t,36),n)};var Pye;x(ln,"LayerConstraintPreprocessor",1623),C(371,22,{3:1,34:1,22:1,371:1},KR);var RM,mN,vN,zQ,Y0t=An(ln,"LayerConstraintPreprocessor/HiddenNodeConnections",371,Nn,Pzt,ZLt),J0t;C(1624,1,qr,DTe),f.Kf=function(t,n){_ln(u(t,36),n)},x(ln,"LayerSizeAndGraphHeightCalculator",1624),C(1625,1,qr,NTe),f.Kf=function(t,n){dnn(u(t,36),n)},x(ln,"LongEdgeJoiner",1625),C(1626,1,qr,BTe),f.Kf=function(t,n){sln(u(t,36),n)},x(ln,"LongEdgeSplitter",1626),C(1627,1,qr,QHe),f.Kf=function(t,n){Hcn(this,u(t,36),n)},f.e=0,f.f=0,f.j=0,f.k=0,f.n=0,f.o=0;var Q0t,Z0t;x(ln,"NodePromotion",1627),C(1628,1,tr,FTe),f.Ne=function(t,n){return tWt(u(t,10),u(n,10))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(ln,"NodePromotion/1",1628),C(1629,1,tr,zTe),f.Ne=function(t,n){return nWt(u(t,10),u(n,10))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(ln,"NodePromotion/2",1629),C(1630,1,{},HTe),f.Kb=function(t){return u(t,42),xA(),Gt(),!0},f.Fb=function(t){return this===t},x(ln,"NodePromotion/lambda$0$Type",1630),C(1631,1,{},dDe),f.Kb=function(t){return JBt(this.a,u(t,42))},f.Fb=function(t){return this===t},f.a=0,x(ln,"NodePromotion/lambda$1$Type",1631),C(1632,1,{},hDe),f.Kb=function(t){return YBt(this.a,u(t,42))},f.Fb=function(t){return this===t},f.a=0,x(ln,"NodePromotion/lambda$2$Type",1632),C(1633,1,qr,KTe),f.Kf=function(t,n){jun(u(t,36),n)},x(ln,"NorthSouthPortPostprocessor",1633),C(1634,1,qr,UTe),f.Kf=function(t,n){bun(u(t,36),n)},x(ln,"NorthSouthPortPreprocessor",1634),C(1635,1,tr,GTe),f.Ne=function(t,n){return bGt(u(t,12),u(n,12))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(ln,"NorthSouthPortPreprocessor/lambda$0$Type",1635),C(1636,1,qr,WTe),f.Kf=function(t,n){_on(u(t,36),n)},x(ln,"PartitionMidprocessor",1636),C(1637,1,Qn,VTe),f.Mb=function(t){return Xr(u(t,10),(Ue(),F8))},x(ln,"PartitionMidprocessor/lambda$0$Type",1637),C(1638,1,bn,pDe),f.Cd=function(t){JNt(this.a,u(t,10))},x(ln,"PartitionMidprocessor/lambda$1$Type",1638),C(1639,1,qr,qTe),f.Kf=function(t,n){Ann(u(t,36),n)},x(ln,"PartitionPostprocessor",1639),C(1640,1,qr,XTe),f.Kf=function(t,n){Ven(u(t,36),n)},x(ln,"PartitionPreprocessor",1640),C(1641,1,Qn,YTe),f.Mb=function(t){return Xr(u(t,10),(Ue(),F8))},x(ln,"PartitionPreprocessor/lambda$0$Type",1641),C(1642,1,{},JTe),f.Kb=function(t){return new xt(null,new zb(new gn(wn(Pi(u(t,10)).a.Kc(),new j))))},x(ln,"PartitionPreprocessor/lambda$1$Type",1642),C(1643,1,Qn,QTe),f.Mb=function(t){return Dqt(u(t,18))},x(ln,"PartitionPreprocessor/lambda$2$Type",1643),C(1644,1,bn,ZTe),f.Cd=function(t){AGt(u(t,18))},x(ln,"PartitionPreprocessor/lambda$3$Type",1644),C(1645,1,qr,QLe),f.Kf=function(t,n){fon(u(t,36),n)};var Mye,ebt,tbt,nbt,Oye,_ye;x(ln,"PortListSorter",1645),C(1648,1,tr,eIe),f.Ne=function(t,n){return JYe(u(t,12),u(n,12))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(ln,"PortListSorter/lambda$0$Type",1648),C(1650,1,tr,tIe),f.Ne=function(t,n){return Rct(u(t,12),u(n,12))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(ln,"PortListSorter/lambda$1$Type",1650),C(1646,1,{},nIe),f.Kb=function(t){return k5(),u(t,12).e},x(ln,"PortListSorter/lambda$2$Type",1646),C(1647,1,{},rIe),f.Kb=function(t){return k5(),u(t,12).g},x(ln,"PortListSorter/lambda$3$Type",1647),C(1649,1,tr,iIe),f.Ne=function(t,n){return lYt(u(t,12),u(n,12))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(ln,"PortListSorter/lambda$4$Type",1649),C(1651,1,qr,oIe),f.Kf=function(t,n){Ctn(u(t,36),n)},x(ln,"PortSideProcessor",1651),C(1652,1,qr,sIe),f.Kf=function(t,n){Sin(u(t,36),n)},x(ln,"ReversedEdgeRestorer",1652),C(1657,1,qr,ZBe),f.Kf=function(t,n){KXt(this,u(t,36),n)},x(ln,"SelfLoopPortRestorer",1657),C(1658,1,{},lIe),f.Kb=function(t){return new xt(null,new Pt(u(t,30).a,16))},x(ln,"SelfLoopPortRestorer/lambda$0$Type",1658),C(1659,1,Qn,cIe),f.Mb=function(t){return u(t,10).k==(nn(),Ei)},x(ln,"SelfLoopPortRestorer/lambda$1$Type",1659),C(1660,1,Qn,uIe),f.Mb=function(t){return Xr(u(t,10),(Oe(),Lw))},x(ln,"SelfLoopPortRestorer/lambda$2$Type",1660),C(1661,1,{},aIe),f.Kb=function(t){return u(A(u(t,10),(Oe(),Lw)),337)},x(ln,"SelfLoopPortRestorer/lambda$3$Type",1661),C(1662,1,bn,aDe),f.Cd=function(t){iZt(this.a,u(t,337))},x(ln,"SelfLoopPortRestorer/lambda$4$Type",1662),C(805,1,bn,Qie),f.Cd=function(t){wZt(u(t,105))},x(ln,"SelfLoopPortRestorer/lambda$5$Type",805),C(1663,1,qr,fIe),f.Kf=function(t,n){Xqt(u(t,36),n)},x(ln,"SelfLoopPostProcessor",1663),C(1664,1,{},dIe),f.Kb=function(t){return new xt(null,new Pt(u(t,30).a,16))},x(ln,"SelfLoopPostProcessor/lambda$0$Type",1664),C(1665,1,Qn,hIe),f.Mb=function(t){return u(t,10).k==(nn(),Ei)},x(ln,"SelfLoopPostProcessor/lambda$1$Type",1665),C(1666,1,Qn,pIe),f.Mb=function(t){return Xr(u(t,10),(Oe(),Lw))},x(ln,"SelfLoopPostProcessor/lambda$2$Type",1666),C(1667,1,bn,gIe),f.Cd=function(t){sJt(u(t,10))},x(ln,"SelfLoopPostProcessor/lambda$3$Type",1667),C(1668,1,{},bIe),f.Kb=function(t){return new xt(null,new Pt(u(t,105).f,1))},x(ln,"SelfLoopPostProcessor/lambda$4$Type",1668),C(1669,1,bn,uDe),f.Cd=function(t){Rzt(this.a,u(t,340))},x(ln,"SelfLoopPostProcessor/lambda$5$Type",1669),C(1670,1,Qn,wIe),f.Mb=function(t){return!!u(t,105).i},x(ln,"SelfLoopPostProcessor/lambda$6$Type",1670),C(1671,1,bn,fDe),f.Cd=function(t){ROt(this.a,u(t,105))},x(ln,"SelfLoopPostProcessor/lambda$7$Type",1671),C(1653,1,qr,mIe),f.Kf=function(t,n){Jtn(u(t,36),n)},x(ln,"SelfLoopPreProcessor",1653),C(1654,1,{},vIe),f.Kb=function(t){return new xt(null,new Pt(u(t,105).f,1))},x(ln,"SelfLoopPreProcessor/lambda$0$Type",1654),C(1655,1,{},yIe),f.Kb=function(t){return u(t,340).a},x(ln,"SelfLoopPreProcessor/lambda$1$Type",1655),C(1656,1,bn,kIe),f.Cd=function(t){$Rt(u(t,18))},x(ln,"SelfLoopPreProcessor/lambda$2$Type",1656),C(1672,1,qr,qGe),f.Kf=function(t,n){BQt(this,u(t,36),n)},x(ln,"SelfLoopRouter",1672),C(1673,1,{},CIe),f.Kb=function(t){return new xt(null,new Pt(u(t,30).a,16))},x(ln,"SelfLoopRouter/lambda$0$Type",1673),C(1674,1,Qn,SIe),f.Mb=function(t){return u(t,10).k==(nn(),Ei)},x(ln,"SelfLoopRouter/lambda$1$Type",1674),C(1675,1,Qn,xIe),f.Mb=function(t){return Xr(u(t,10),(Oe(),Lw))},x(ln,"SelfLoopRouter/lambda$2$Type",1675),C(1676,1,{},EIe),f.Kb=function(t){return u(A(u(t,10),(Oe(),Lw)),337)},x(ln,"SelfLoopRouter/lambda$3$Type",1676),C(1677,1,bn,RHe),f.Cd=function(t){GNt(this.a,this.b,u(t,337))},x(ln,"SelfLoopRouter/lambda$4$Type",1677),C(1678,1,qr,TIe),f.Kf=function(t,n){grn(u(t,36),n)},x(ln,"SemiInteractiveCrossMinProcessor",1678),C(1679,1,Qn,IIe),f.Mb=function(t){return u(t,10).k==(nn(),Ei)},x(ln,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),C(1680,1,Qn,PIe),f.Mb=function(t){return fVe(u(t,10))._b((Ue(),_v))},x(ln,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),C(1681,1,tr,MIe),f.Ne=function(t,n){return RUt(u(t,10),u(n,10))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(ln,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),C(1682,1,{},OIe),f.Ve=function(t,n){return QNt(u(t,10),u(n,10))},x(ln,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),C(1684,1,qr,_Ie),f.Kf=function(t,n){Bsn(u(t,36),n)},x(ln,"SortByInputModelProcessor",1684),C(1685,1,Qn,RIe),f.Mb=function(t){return u(t,12).g.c.length!=0},x(ln,"SortByInputModelProcessor/lambda$0$Type",1685),C(1686,1,bn,gDe),f.Cd=function(t){CZt(this.a,u(t,12))},x(ln,"SortByInputModelProcessor/lambda$1$Type",1686),C(1759,817,{},Cet),f.df=function(t){var n,i,s,c;switch(this.c=t,this.a.g){case 2:n=new Le,Ci(Ar(new xt(null,new Pt(this.c.a.b,16)),new WIe),new zHe(this,n)),mP(this,new LIe),ic(n,new $Ie),n.c.length=0,Ci(Ar(new xt(null,new Pt(this.c.a.b,16)),new jIe),new wDe(n)),mP(this,new DIe),ic(n,new NIe),n.c.length=0,i=CUe($W(Am(new xt(null,new Pt(this.c.a.b,16)),new mDe(this))),new BIe),Ci(new xt(null,new Pt(this.c.a.a,16)),new $He(i,n)),mP(this,new zIe),ic(n,new HIe),n.c.length=0;break;case 3:s=new Le,mP(this,new AIe),c=CUe($W(Am(new xt(null,new Pt(this.c.a.b,16)),new bDe(this))),new FIe),Ci(Ar(new xt(null,new Pt(this.c.a.b,16)),new KIe),new DHe(c,s)),mP(this,new UIe),ic(s,new GIe),s.c.length=0;break;default:throw B(new FBe)}},f.b=0,x(Ui,"EdgeAwareScanlineConstraintCalculation",1759),C(1760,1,Jd,AIe),f.Lb=function(t){return te(u(t,60).g,154)},f.Fb=function(t){return this===t},f.Mb=function(t){return te(u(t,60).g,154)},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),C(1761,1,{},bDe),f.Ye=function(t){return oen(this.a,u(t,60))},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),C(1769,1,Tj,AHe),f.de=function(){DS(this.a,this.b,-1)},f.b=0,x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),C(1771,1,Jd,LIe),f.Lb=function(t){return te(u(t,60).g,154)},f.Fb=function(t){return this===t},f.Mb=function(t){return te(u(t,60).g,154)},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),C(1772,1,bn,$Ie),f.Cd=function(t){u(t,380).de()},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),C(1773,1,Qn,jIe),f.Mb=function(t){return te(u(t,60).g,10)},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),C(1775,1,bn,wDe),f.Cd=function(t){EVt(this.a,u(t,60))},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),C(1774,1,Tj,NHe),f.de=function(){DS(this.b,this.a,-1)},f.a=0,x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),C(1776,1,Jd,DIe),f.Lb=function(t){return te(u(t,60).g,10)},f.Fb=function(t){return this===t},f.Mb=function(t){return te(u(t,60).g,10)},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),C(1777,1,bn,NIe),f.Cd=function(t){u(t,380).de()},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),C(1778,1,{},mDe),f.Ye=function(t){return sen(this.a,u(t,60))},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),C(1779,1,{},BIe),f.We=function(){return 0},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),C(1762,1,{},FIe),f.We=function(){return 0},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),C(1781,1,bn,$He),f.Cd=function(t){ODt(this.a,this.b,u(t,316))},f.a=0,x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),C(1780,1,Tj,jHe),f.de=function(){Nst(this.a,this.b,-1)},f.b=0,x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),C(1782,1,Jd,zIe),f.Lb=function(t){return u(t,60),!0},f.Fb=function(t){return this===t},f.Mb=function(t){return u(t,60),!0},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),C(1783,1,bn,HIe),f.Cd=function(t){u(t,380).de()},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),C(1763,1,Qn,KIe),f.Mb=function(t){return te(u(t,60).g,10)},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),C(1765,1,bn,DHe),f.Cd=function(t){_Dt(this.a,this.b,u(t,60))},f.a=0,x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),C(1764,1,Tj,BHe),f.de=function(){DS(this.b,this.a,-1)},f.a=0,x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),C(1766,1,Jd,UIe),f.Lb=function(t){return u(t,60),!0},f.Fb=function(t){return this===t},f.Mb=function(t){return u(t,60),!0},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),C(1767,1,bn,GIe),f.Cd=function(t){u(t,380).de()},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),C(1768,1,Qn,WIe),f.Mb=function(t){return te(u(t,60).g,154)},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),C(1770,1,bn,zHe),f.Cd=function(t){XKt(this.a,this.b,u(t,60))},x(Ui,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),C(1586,1,qr,sGe),f.Kf=function(t,n){dln(this,u(t,36),n)};var rbt;x(Ui,"HorizontalGraphCompactor",1586),C(1587,1,{},vDe),f.ff=function(t,n){var i,s,c;return ffe(t,n)||(i=Ny(t),s=Ny(n),i&&i.k==(nn(),Oi)||s&&s.k==(nn(),Oi))?0:(c=u(A(this.a.a,(Oe(),R2)),312),wAt(c,i?i.k:(nn(),io),s?s.k:(nn(),io)))},f.gf=function(t,n){var i,s,c;return ffe(t,n)?1:(i=Ny(t),s=Ny(n),c=u(A(this.a.a,(Oe(),R2)),312),nce(c,i?i.k:(nn(),io),s?s.k:(nn(),io)))},x(Ui,"HorizontalGraphCompactor/1",1587),C(1588,1,{},VIe),f.ef=function(t,n){return g7(),t.a.i==0},x(Ui,"HorizontalGraphCompactor/lambda$0$Type",1588),C(1589,1,{},yDe),f.ef=function(t,n){return tBt(this.a,t,n)},x(Ui,"HorizontalGraphCompactor/lambda$1$Type",1589),C(1730,1,{},YQe);var ibt,obt;x(Ui,"LGraphToCGraphTransformer",1730),C(1738,1,Qn,qIe),f.Mb=function(t){return t!=null},x(Ui,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),C(1731,1,{},XIe),f.Kb=function(t){return tf(),Us(A(u(u(t,60).g,10),(Oe(),jr)))},x(Ui,"LGraphToCGraphTransformer/lambda$0$Type",1731),C(1732,1,{},YIe),f.Kb=function(t){return tf(),unt(u(u(t,60).g,154))},x(Ui,"LGraphToCGraphTransformer/lambda$1$Type",1732),C(1741,1,Qn,JIe),f.Mb=function(t){return tf(),te(u(t,60).g,10)},x(Ui,"LGraphToCGraphTransformer/lambda$10$Type",1741),C(1742,1,bn,QIe),f.Cd=function(t){sBt(u(t,60))},x(Ui,"LGraphToCGraphTransformer/lambda$11$Type",1742),C(1743,1,Qn,ZIe),f.Mb=function(t){return tf(),te(u(t,60).g,154)},x(Ui,"LGraphToCGraphTransformer/lambda$12$Type",1743),C(1747,1,bn,ePe),f.Cd=function(t){DWt(u(t,60))},x(Ui,"LGraphToCGraphTransformer/lambda$13$Type",1747),C(1744,1,bn,kDe),f.Cd=function(t){aRt(this.a,u(t,8))},f.a=0,x(Ui,"LGraphToCGraphTransformer/lambda$14$Type",1744),C(1745,1,bn,CDe),f.Cd=function(t){dRt(this.a,u(t,116))},f.a=0,x(Ui,"LGraphToCGraphTransformer/lambda$15$Type",1745),C(1746,1,bn,SDe),f.Cd=function(t){fRt(this.a,u(t,8))},f.a=0,x(Ui,"LGraphToCGraphTransformer/lambda$16$Type",1746),C(1748,1,{},tPe),f.Kb=function(t){return tf(),new xt(null,new zb(new gn(wn(Pi(u(t,10)).a.Kc(),new j))))},x(Ui,"LGraphToCGraphTransformer/lambda$17$Type",1748),C(1749,1,Qn,nPe),f.Mb=function(t){return tf(),Zo(u(t,18))},x(Ui,"LGraphToCGraphTransformer/lambda$18$Type",1749),C(1750,1,bn,xDe),f.Cd=function(t){IKt(this.a,u(t,18))},x(Ui,"LGraphToCGraphTransformer/lambda$19$Type",1750),C(1734,1,bn,EDe),f.Cd=function(t){ezt(this.a,u(t,154))},x(Ui,"LGraphToCGraphTransformer/lambda$2$Type",1734),C(1751,1,{},rPe),f.Kb=function(t){return tf(),new xt(null,new Pt(u(t,30).a,16))},x(Ui,"LGraphToCGraphTransformer/lambda$20$Type",1751),C(1752,1,{},iPe),f.Kb=function(t){return tf(),new xt(null,new zb(new gn(wn(Pi(u(t,10)).a.Kc(),new j))))},x(Ui,"LGraphToCGraphTransformer/lambda$21$Type",1752),C(1753,1,{},oPe),f.Kb=function(t){return tf(),u(A(u(t,18),(Oe(),V0)),15)},x(Ui,"LGraphToCGraphTransformer/lambda$22$Type",1753),C(1754,1,Qn,sPe),f.Mb=function(t){return mAt(u(t,15))},x(Ui,"LGraphToCGraphTransformer/lambda$23$Type",1754),C(1755,1,bn,TDe),f.Cd=function(t){qZt(this.a,u(t,15))},x(Ui,"LGraphToCGraphTransformer/lambda$24$Type",1755),C(1733,1,bn,HHe),f.Cd=function(t){Jzt(this.a,this.b,u(t,154))},x(Ui,"LGraphToCGraphTransformer/lambda$3$Type",1733),C(1735,1,{},lPe),f.Kb=function(t){return tf(),new xt(null,new Pt(u(t,30).a,16))},x(Ui,"LGraphToCGraphTransformer/lambda$4$Type",1735),C(1736,1,{},cPe),f.Kb=function(t){return tf(),new xt(null,new zb(new gn(wn(Pi(u(t,10)).a.Kc(),new j))))},x(Ui,"LGraphToCGraphTransformer/lambda$5$Type",1736),C(1737,1,{},uPe),f.Kb=function(t){return tf(),u(A(u(t,18),(Oe(),V0)),15)},x(Ui,"LGraphToCGraphTransformer/lambda$6$Type",1737),C(1739,1,bn,IDe),f.Cd=function(t){len(this.a,u(t,15))},x(Ui,"LGraphToCGraphTransformer/lambda$8$Type",1739),C(1740,1,bn,KHe),f.Cd=function(t){jRt(this.a,this.b,u(t,154))},x(Ui,"LGraphToCGraphTransformer/lambda$9$Type",1740),C(1729,1,{},aPe),f.cf=function(t){var n,i,s,c,d;for(this.a=t,this.d=new fK,this.c=be(ave,Bt,125,this.a.a.a.c.length,0,1),this.b=0,i=new N(this.a.a.a);i.a=$&&($e(d,Ae(k)),ne=w.Math.max(ne,se[k-1]-T),b+=L,z+=se[k-1]-z,T=se[k-1],L=m[k]),L=w.Math.max(L,m[k]),++k;b+=L}O=w.Math.min(1/ne,1/n.b/b),O>s&&(s=O,i=d)}return i},f.pg=function(){return!1},x(th,"MSDCutIndexHeuristic",816),C(1683,1,qr,VPe),f.Kf=function(t,n){bsn(u(t,36),n)},x(th,"SingleEdgeGraphWrapper",1683),C(232,22,{3:1,34:1,22:1,232:1},S7);var E2,M8,O8,Sv,U9,T2,_8=An(xl,"CenterEdgeLabelPlacementStrategy",232,Nn,tKt,r$t),wbt;C(431,22,{3:1,34:1,22:1,431:1},rle);var Aye,QQ,Lye=An(xl,"ConstraintCalculationStrategy",431,Nn,kBt,i$t),mbt;C(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},GK),f.dg=function(){return Wot(this)},f.qg=function(){return Wot(this)};var LM,G9,$ye,jye=An(xl,"CrossingMinimizationStrategy",322,Nn,gFt,o$t),vbt;C(351,22,{3:1,34:1,22:1,351:1},WK);var Dye,ZQ,xN,Nye=An(xl,"CuttingStrategy",351,Nn,bFt,s$t),ybt;C(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},PT),f.dg=function(){return jst(this)},f.qg=function(){return jst(this)};var Bye,eZ,R8,tZ,A8,Fye=An(xl,"CycleBreakingStrategy",348,Nn,vHt,l$t),kbt;C(428,22,{3:1,34:1,22:1,428:1},ile);var EN,zye,Hye=An(xl,"DirectionCongruency",428,Nn,yBt,c$t),Cbt;C(460,22,{3:1,34:1,22:1,460:1},VK);var L8,nZ,I2,Sbt=An(xl,"EdgeConstraint",460,Nn,wFt,g$t),xbt;C(283,22,{3:1,34:1,22:1,283:1},x7);var rZ,iZ,oZ,sZ,TN,lZ,Kye=An(xl,"EdgeLabelSideSelection",283,Nn,QHt,b$t),Ebt;C(488,22,{3:1,34:1,22:1,488:1},ole);var IN,Uye,Gye=An(xl,"EdgeStraighteningStrategy",488,Nn,PBt,w$t),Tbt;C(281,22,{3:1,34:1,22:1,281:1},E7);var cZ,Wye,Vye,PN,qye,Xye,Yye=An(xl,"FixedAlignment",281,Nn,ZHt,p$t),Ibt;C(282,22,{3:1,34:1,22:1,282:1},T7);var Jye,Qye,Zye,e2e,W9,t2e,n2e=An(xl,"GraphCompactionStrategy",282,Nn,eKt,u$t),Pbt;C(259,22,{3:1,34:1,22:1,259:1},km);var $8,MN,j8,ka,V9,ON,D8,P2,_N,q9,uZ=An(xl,"GraphProperties",259,Nn,NUt,a$t),Mbt;C(299,22,{3:1,34:1,22:1,299:1},qK);var $M,aZ,fZ,dZ=An(xl,"GreedySwitchType",299,Nn,mFt,f$t),Obt;C(311,22,{3:1,34:1,22:1,311:1},XK);var o6,jM,M2,_bt=An(xl,"InLayerConstraint",311,Nn,vFt,d$t),Rbt;C(429,22,{3:1,34:1,22:1,429:1},sle);var hZ,r2e,i2e=An(xl,"InteractiveReferencePoint",429,Nn,vBt,h$t),Abt,o2e,s6,_w,RN,s2e,l2e,AN,c2e,DM,LN,X9,l6,S1,pZ,$N,fl,u2e,Eg,Kl,gZ,bZ,NM,W0,Rw,c6,a2e,u6,BM,xv,Hf,Fa,wZ,O2,Hr,jr,f2e,d2e,h2e,p2e,g2e,mZ,jN,Zc,Aw,vZ,a6,Y9,bd,_2,Lw,R2,A2,N8,V0,b2e,yZ,kZ,f6;C(171,22,{3:1,34:1,22:1,171:1},MT);var J9,Tg,Q9,Ev,FM,w2e=An(xl,"LayerConstraint",171,Nn,kHt,m$t),Lbt;C(859,1,$a,o$e),f.hf=function(t){at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,h0e),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),I2e),(cp(),oi)),Hye),ht((Nf(),Nt))))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,p0e),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Gt(),!1)),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,zj),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),A2e),oi),i2e),ht(Nt)))),$i(t,zj,hY,Pwt),$i(t,zj,w9,Iwt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,g0e),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,b0e),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),Qi),xi),ht(Nt)))),at(t,new nt(a_t(ct(lt(ut(Tt(rt(st(it(ot(new tt,w0e),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),Qi),xi),ht(tb)),H(F(Je,1),_e,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,m0e),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),z2e),oi),Y3e),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,v0e),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Ae(7)),Vs),Oo),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,y0e),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,k0e),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,hY),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),T2e),oi),Fye),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,oM),DY),"Node Layering Strategy"),"Strategy for node layering."),j2e),oi),N3e),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,C0e),DY),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),L2e),oi),w2e),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,S0e),DY),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Vs),Oo),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,x0e),DY),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Ae(-1)),Vs),Oo),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,pY),idt),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Ae(4)),Vs),Oo),ht(Nt)))),$i(t,pY,oM,$wt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,gY),idt),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Ae(2)),Vs),Oo),ht(Nt)))),$i(t,gY,oM,Dwt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,bY),odt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),$2e),oi),V3e),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,wY),odt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Ae(0)),Vs),Oo),ht(Nt)))),$i(t,wY,bY,null),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,mY),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Ae(Mr)),Vs),Oo),ht(Nt)))),$i(t,mY,oM,Owt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,w9),f8),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),E2e),oi),jye),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,E0e),f8),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,vY),f8),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),No),Bi),ht(Nt)))),$i(t,vY,eD,ewt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,yY),f8),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),Qi),xi),ht(Nt)))),$i(t,yY,w9,swt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,T0e),f8),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),U2),Je),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,I0e),f8),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),U2),Je),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,P0e),f8),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Vs),Oo),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,M0e),f8),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Ae(-1)),Vs),Oo),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,O0e),sdt),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Ae(40)),Vs),Oo),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,kY),sdt),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),x2e),oi),dZ),ht(Nt)))),$i(t,kY,w9,Qbt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Hj),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),S2e),oi),dZ),ht(Nt)))),$i(t,Hj,w9,Xbt),$i(t,Hj,eD,Ybt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,p2),ldt),"Node Placement Strategy"),"Strategy for node placement."),F2e),oi),H3e),ht(Nt)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,Kj),ldt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),Qi),xi),ht(Nt)))),$i(t,Kj,p2,qwt),$i(t,Kj,p2,Xwt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,CY),cdt),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),D2e),oi),Gye),ht(Nt)))),$i(t,CY,p2,Uwt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,SY),cdt),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),N2e),oi),Yye),ht(Nt)))),$i(t,SY,p2,Wwt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,xY),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),No),Bi),ht(Nt)))),$i(t,xY,p2,Jwt),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,EY),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),oi),KZ),ht(qi)))),$i(t,EY,p2,tmt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,TY),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),B2e),oi),KZ),ht(Nt)))),$i(t,TY,p2,emt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,_0e),udt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),O2e),oi),Z3e),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,R0e),udt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),_2e),oi),e4e),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Uj),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),R2e),oi),n4e),ht(Nt)))),$i(t,Uj,sM,wwt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Gj),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),No),Bi),ht(Nt)))),$i(t,Gj,sM,vwt),$i(t,Gj,Uj,ywt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,IY),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),No),Bi),ht(Nt)))),$i(t,IY,sM,hwt),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,A0e),hd),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,L0e),hd),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,$0e),hd),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,j0e),hd),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,D0e),V0e),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Ae(0)),Vs),Oo),ht(uh)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,N0e),V0e),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Ae(0)),Vs),Oo),ht(uh)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,B0e),V0e),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Ae(0)),Vs),Oo),ht(uh)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,PY),q0e),Eft),"Tries to further compact components (disconnected sub-graphs)."),!1),Qi),xi),ht(Nt)))),$i(t,PY,d9,!0),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,F0e),adt),"Post Compaction Strategy"),fdt),v2e),oi),n2e),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,z0e),adt),"Post Compaction Constraint Calculation"),fdt),m2e),oi),Lye),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Wj),X0e),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,MY),X0e),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Ae(16)),Vs),Oo),ht(Nt)))),$i(t,MY,Wj,!0),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,OY),X0e),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Ae(5)),Vs),Oo),ht(Nt)))),$i(t,OY,Wj,!0),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,y1),Y0e),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),U2e),oi),s4e),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Vj),Y0e),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),No),Bi),ht(Nt)))),$i(t,Vj,y1,pmt),$i(t,Vj,y1,gmt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,qj),Y0e),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),No),Bi),ht(Nt)))),$i(t,qj,y1,wmt),$i(t,qj,y1,mmt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,m9),ddt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),K2e),oi),Nye),ht(Nt)))),$i(t,m9,y1,xmt),$i(t,m9,y1,Emt),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,_Y),ddt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),md),ya),ht(Nt)))),$i(t,_Y,m9,ymt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,RY),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),H2e),Vs),Oo),ht(Nt)))),$i(t,RY,m9,Cmt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Xj),hdt),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),G2e),oi),o4e),ht(Nt)))),$i(t,Xj,y1,Dmt),$i(t,Xj,y1,Nmt),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,Yj),hdt),"Valid Indices for Wrapping"),null),md),ya),ht(Nt)))),$i(t,Yj,y1,Lmt),$i(t,Yj,y1,$mt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Jj),J0e),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),Qi),xi),ht(Nt)))),$i(t,Jj,y1,Mmt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Qj),J0e),"Distance Penalty When Improving Cuts"),null),2),No),Bi),ht(Nt)))),$i(t,Qj,y1,Imt),$i(t,Qj,Jj,!0),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,AY),J0e),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),Qi),xi),ht(Nt)))),$i(t,AY,y1,_mt),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,H0e),NY),"Edge Label Side Selection"),"Method to decide on edge label sides."),M2e),oi),Kye),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,K0e),NY),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),P2e),oi),_8),Yr(Nt,H(F(jh,1),Te,170,0,[yp]))))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Zj),v9),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),C2e),oi),X3e),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,U0e),v9),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,G0e),v9),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),Qi),xi),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,LY),v9),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),y2e),oi),Fve),ht(Nt)))),$i(t,LY,d9,null),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,W0e),v9),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),k2e),oi),F3e),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,$Y),v9),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),No),Bi),ht(Nt)))),$i(t,$Y,Zj,null),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,jY),v9),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),No),Bi),ht(Nt)))),$i(t,jY,Zj,null),Oat((new s$e,t))};var $bt,jbt,Dbt,m2e,Nbt,v2e,Bbt,y2e,Fbt,zbt,Hbt,k2e,Kbt,Ubt,Gbt,C2e,Wbt,Vbt,qbt,S2e,Xbt,Ybt,Jbt,x2e,Qbt,Zbt,ewt,twt,nwt,rwt,iwt,owt,swt,lwt,E2e,cwt,T2e,uwt,I2e,awt,P2e,fwt,M2e,dwt,hwt,pwt,O2e,gwt,_2e,bwt,R2e,wwt,mwt,vwt,ywt,kwt,Cwt,Swt,xwt,Ewt,Twt,A2e,Iwt,Pwt,Mwt,Owt,_wt,Rwt,L2e,Awt,Lwt,$wt,jwt,Dwt,Nwt,Bwt,$2e,Fwt,j2e,zwt,Hwt,Kwt,D2e,Uwt,Gwt,N2e,Wwt,Vwt,qwt,Xwt,Ywt,Jwt,Qwt,Zwt,B2e,emt,tmt,nmt,F2e,rmt,z2e,imt,omt,smt,lmt,cmt,umt,amt,fmt,dmt,hmt,pmt,gmt,bmt,wmt,mmt,vmt,ymt,kmt,H2e,Cmt,Smt,K2e,xmt,Emt,Tmt,Imt,Pmt,Mmt,Omt,_mt,Rmt,U2e,Amt,Lmt,$mt,jmt,G2e,Dmt,Nmt;x(xl,"LayeredMetaDataProvider",859),C(998,1,$a,s$e),f.hf=function(t){Oat(t)};var sh,CZ,DN,Z9,NN,W2e,BN,Tv,FN,V2e,q2e,zN,SZ,$h,xZ,$w,X2e,zM,EZ,Y2e,Bmt,Fmt,zmt,HN,TZ,ex,q0,Hmt,Wu,J2e,Q2e,KN,IZ,lh,UN,x1,Z2e,e3e,t3e,PZ,MZ,n3e,gp,OZ,r3e,Iv,i3e,o3e,s3e,GN,Pv,X0,l3e,c3e,Is,u3e,Kmt,fc,WN,a3e,f3e,d3e,Ig,Y0,VN,h3e,p3e,qN,jw,g3e,_Z,tx,b3e,Dw,nx,XN,J0,RZ,B8,YN,Q0,w3e,m3e,v3e,F8,y3e,Umt,Gmt,Wmt,Vmt,Nw,Mv,yi,bp,qmt,Ov,k3e,z8,C3e,_v,Xmt,H8,S3e,d6,Ymt,Jmt,HM,AZ,x3e,KM,pf,L2,$2,Bw,Z0,JN,Rv,LZ,K8,U8,Fw,j2,$Z,UM,rx,ix,Qmt,Zmt,evt,E3e,tvt,jZ,T3e,I3e,P3e,M3e,DZ,O3e,_3e,R3e,A3e,NZ,QN;x(xl,"LayeredOptions",998),C(999,1,{},qPe),f.sf=function(){var t;return t=new qBe,t},f.tf=function(t){},x(xl,"LayeredOptions/LayeredFactory",999),C(1391,1,{}),f.a=0;var nvt;x(cl,"ElkSpacings/AbstractSpacingsBuilder",1391),C(792,1391,{},ehe);var ZN,rvt;x(xl,"LayeredSpacings/LayeredSpacingsBuilder",792),C(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},Cy),f.dg=function(){return Glt(this)},f.qg=function(){return Glt(this)};var G8,BZ,W8,L3e,$3e,j3e,eB,FZ,D3e,N3e=An(xl,"LayeringStrategy",265,Nn,pUt,v$t),ivt;C(390,22,{3:1,34:1,22:1,390:1},YK);var zZ,B3e,tB,F3e=An(xl,"LongEdgeOrderingStrategy",390,Nn,yFt,y$t),ovt;C(203,22,{3:1,34:1,22:1,203:1},GR);var D2,N2,nB,HZ,KZ=An(xl,"NodeFlexibility",203,Nn,Mzt,k$t),svt;C(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},OT),f.dg=function(){return $st(this)},f.qg=function(){return $st(this)};var ox,UZ,GZ,sx,z3e,H3e=An(xl,"NodePlacementStrategy",323,Nn,yHt,C$t),lvt;C(243,22,{3:1,34:1,22:1,243:1},Cm);var K3e,zw,Av,GM,U3e,G3e,WM,W3e,rB,iB,V3e=An(xl,"NodePromotionStrategy",243,Nn,BUt,S$t),cvt;C(284,22,{3:1,34:1,22:1,284:1},WR);var q3e,wp,WZ,VZ,X3e=An(xl,"OrderingStrategy",284,Nn,Ozt,x$t),uvt;C(430,22,{3:1,34:1,22:1,430:1},lle);var qZ,XZ,Y3e=An(xl,"PortSortingStrategy",430,Nn,CBt,E$t),avt;C(463,22,{3:1,34:1,22:1,463:1},JK);var eu,Zl,lx,fvt=An(xl,"PortType",463,Nn,kFt,T$t),dvt;C(387,22,{3:1,34:1,22:1,387:1},QK);var J3e,YZ,Q3e,Z3e=An(xl,"SelfLoopDistributionStrategy",387,Nn,CFt,I$t),hvt;C(349,22,{3:1,34:1,22:1,349:1},ZK);var JZ,VM,QZ,e4e=An(xl,"SelfLoopOrderingStrategy",349,Nn,SFt,P$t),pvt;C(312,1,{312:1},Iut),x(xl,"Spacings",312),C(350,22,{3:1,34:1,22:1,350:1},eU);var ZZ,t4e,cx,n4e=An(xl,"SplineRoutingMode",350,Nn,xFt,M$t),gvt;C(352,22,{3:1,34:1,22:1,352:1},tU);var eee,r4e,i4e,o4e=An(xl,"ValidifyStrategy",352,Nn,EFt,O$t),bvt;C(388,22,{3:1,34:1,22:1,388:1},nU);var Lv,tee,V8,s4e=An(xl,"WrappingStrategy",388,Nn,TFt,_$t),wvt;C(1398,1,as,JLe),f.rg=function(t){return u(t,36),mvt},f.Kf=function(t,n){uln(this,u(t,36),n)};var mvt;x(iD,"DepthFirstCycleBreaker",1398),C(793,1,as,yue),f.rg=function(t){return u(t,36),vvt},f.Kf=function(t,n){han(this,u(t,36),n)},f.sg=function(t){return u(Ye(t,$$(this.d,t.c.length)),10)};var vvt;x(iD,"GreedyCycleBreaker",793),C(1401,793,as,UKe),f.sg=function(t){var n,i,s,c;for(c=null,n=Mr,s=new N(t);s.a1&&(qe(Ve(A(Io((_t(0,t.c.length),u(t.c[0],10))),(Ue(),$w))))?qst(t,this.d,u(this,669)):(Ot(),Mi(t,this.d)),Xet(this.e,t))},f.lg=function(t,n,i,s){var c,d,h,b,m,v,k;for(n!=aVe(i,t.length)&&(d=t[n-(i?1:-1)],Xae(this.f,d,i?(ls(),Zl):(ls(),eu))),c=t[n][0],k=!s||c.k==(nn(),Oi),v=td(t[n]),this.vg(v,k,!1,i),h=0,m=new N(v);m.a"),t0?jG(this.a,t[n-1],t[n]):!i&&n1&&(qe(Ve(A(Io((_t(0,t.c.length),u(t.c[0],10))),(Ue(),$w))))?qst(t,this.d,this):(Ot(),Mi(t,this.d)),qe(Ve(A(Io((_t(0,t.c.length),u(t.c[0],10))),$w)))||Xet(this.e,t))},x(Fc,"ModelOrderBarycenterHeuristic",669),C(1866,1,tr,VDe),f.Ne=function(t,n){return uZt(this.a,u(t,10),u(n,10))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Fc,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),C(1423,1,as,c$e),f.rg=function(t){var n;return u(t,36),n=cA($vt),cr(n,($o(),_l),(Uo(),hN)),n},f.Kf=function(t,n){WNt((u(t,36),n))};var $vt;x(Fc,"NoCrossingMinimizer",1423),C(809,413,Rbe,Ose),f.tg=function(t,n,i){var s,c,d,h,b,m,v,k,T,P,O;switch(T=this.g,i.g){case 1:{for(c=0,d=0,k=new N(t.j);k.a1&&(c.j==(ze(),fn)?this.b[t]=!0:c.j==rn&&t>0&&(this.b[t-1]=!0))},f.f=0,x(_h,"AllCrossingsCounter",1861),C(595,1,{},ZL),f.b=0,f.d=0,x(_h,"BinaryIndexedTree",595),C(532,1,{},JT);var u4e,sB;x(_h,"CrossingsCounter",532),C(1950,1,tr,qDe),f.Ne=function(t,n){return mDt(this.a,u(t,12),u(n,12))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(_h,"CrossingsCounter/lambda$0$Type",1950),C(1951,1,tr,XDe),f.Ne=function(t,n){return vDt(this.a,u(t,12),u(n,12))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(_h,"CrossingsCounter/lambda$1$Type",1951),C(1952,1,tr,YDe),f.Ne=function(t,n){return yDt(this.a,u(t,12),u(n,12))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(_h,"CrossingsCounter/lambda$2$Type",1952),C(1953,1,tr,JDe),f.Ne=function(t,n){return kDt(this.a,u(t,12),u(n,12))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(_h,"CrossingsCounter/lambda$3$Type",1953),C(1954,1,bn,QDe),f.Cd=function(t){kKt(this.a,u(t,12))},x(_h,"CrossingsCounter/lambda$4$Type",1954),C(1955,1,Qn,ZDe),f.Mb=function(t){return W_t(this.a,u(t,12))},x(_h,"CrossingsCounter/lambda$5$Type",1955),C(1956,1,bn,eNe),f.Cd=function(t){$Ke(this,t)},x(_h,"CrossingsCounter/lambda$6$Type",1956),C(1957,1,bn,WHe),f.Cd=function(t){var n;jk(),eg(this.b,(n=this.a,u(t,12),n))},x(_h,"CrossingsCounter/lambda$7$Type",1957),C(839,1,Jd,ooe),f.Lb=function(t){return jk(),Xr(u(t,12),(Oe(),Zc))},f.Fb=function(t){return this===t},f.Mb=function(t){return jk(),Xr(u(t,12),(Oe(),Zc))},x(_h,"CrossingsCounter/lambda$8$Type",839),C(1949,1,{},tNe),x(_h,"HyperedgeCrossingsCounter",1949),C(478,1,{34:1,478:1},XGe),f.Fd=function(t){return yqt(this,u(t,478))},f.b=0,f.c=0,f.e=0,f.f=0;var efn=x(_h,"HyperedgeCrossingsCounter/Hyperedge",478);C(374,1,{34:1,374:1},eL),f.Fd=function(t){return Ltn(this,u(t,374))},f.b=0,f.c=0;var jvt=x(_h,"HyperedgeCrossingsCounter/HyperedgeCorner",374);C(531,22,{3:1,34:1,22:1,531:1},cle);var ax,fx,Dvt=An(_h,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,Nn,SBt,A$t),Nvt;C(1425,1,as,u$e),f.rg=function(t){return u(A(u(t,36),(Oe(),Kl)),21).Hc((cs(),ka))?Bvt:null},f.Kf=function(t,n){GYt(this,u(t,36),n)};var Bvt;x(fs,"InteractiveNodePlacer",1425),C(1426,1,as,a$e),f.rg=function(t){return u(A(u(t,36),(Oe(),Kl)),21).Hc((cs(),ka))?Fvt:null},f.Kf=function(t,n){MXt(this,u(t,36),n)};var Fvt,lB,cB;x(fs,"LinearSegmentsNodePlacer",1426),C(261,1,{34:1,261:1},ise),f.Fd=function(t){return i_t(this,u(t,261))},f.Fb=function(t){var n;return te(t,261)?(n=u(t,261),this.b==n.b):!1},f.Hb=function(){return this.b},f.Ib=function(){return"ls"+ag(this.e)},f.a=0,f.b=0,f.c=-1,f.d=-1,f.g=0;var zvt=x(fs,"LinearSegmentsNodePlacer/LinearSegment",261);C(1428,1,as,yVe),f.rg=function(t){return u(A(u(t,36),(Oe(),Kl)),21).Hc((cs(),ka))?Hvt:null},f.Kf=function(t,n){ian(this,u(t,36),n)},f.b=0,f.g=0;var Hvt;x(fs,"NetworkSimplexPlacer",1428),C(1447,1,tr,iMe),f.Ne=function(t,n){return yl(u(t,17).a,u(n,17).a)},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(fs,"NetworkSimplexPlacer/0methodref$compare$Type",1447),C(1449,1,tr,oMe),f.Ne=function(t,n){return yl(u(t,17).a,u(n,17).a)},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(fs,"NetworkSimplexPlacer/1methodref$compare$Type",1449),C(655,1,{655:1},VHe);var tfn=x(fs,"NetworkSimplexPlacer/EdgeRep",655);C(412,1,{412:1},eae),f.b=!1;var nfn=x(fs,"NetworkSimplexPlacer/NodeRep",412);C(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},rFe),x(fs,"NetworkSimplexPlacer/Path",515),C(1429,1,{},sMe),f.Kb=function(t){return u(t,18).d.i.k},x(fs,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),C(1430,1,Qn,lMe),f.Mb=function(t){return u(t,273)==(nn(),io)},x(fs,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),C(1431,1,{},cMe),f.Kb=function(t){return u(t,18).d.i},x(fs,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),C(1432,1,Qn,nNe),f.Mb=function(t){return AGe(Nnt(u(t,10)))},x(fs,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),C(1433,1,Qn,uMe),f.Mb=function(t){return nDt(u(t,12))},x(fs,"NetworkSimplexPlacer/lambda$0$Type",1433),C(1434,1,bn,qHe),f.Cd=function(t){DRt(this.a,this.b,u(t,12))},x(fs,"NetworkSimplexPlacer/lambda$1$Type",1434),C(1443,1,bn,rNe),f.Cd=function(t){uen(this.a,u(t,18))},x(fs,"NetworkSimplexPlacer/lambda$10$Type",1443),C(1444,1,{},aMe),f.Kb=function(t){return Lu(),new xt(null,new Pt(u(t,30).a,16))},x(fs,"NetworkSimplexPlacer/lambda$11$Type",1444),C(1445,1,bn,iNe),f.Cd=function(t){rin(this.a,u(t,10))},x(fs,"NetworkSimplexPlacer/lambda$12$Type",1445),C(1446,1,{},fMe),f.Kb=function(t){return Lu(),Ae(u(t,125).e)},x(fs,"NetworkSimplexPlacer/lambda$13$Type",1446),C(1448,1,{},dMe),f.Kb=function(t){return Lu(),Ae(u(t,125).e)},x(fs,"NetworkSimplexPlacer/lambda$15$Type",1448),C(1450,1,Qn,hMe),f.Mb=function(t){return Lu(),u(t,412).c.k==(nn(),Ei)},x(fs,"NetworkSimplexPlacer/lambda$17$Type",1450),C(1451,1,Qn,pMe),f.Mb=function(t){return Lu(),u(t,412).c.j.c.length>1},x(fs,"NetworkSimplexPlacer/lambda$18$Type",1451),C(1452,1,bn,Pqe),f.Cd=function(t){HVt(this.c,this.b,this.d,this.a,u(t,412))},f.c=0,f.d=0,x(fs,"NetworkSimplexPlacer/lambda$19$Type",1452),C(1435,1,{},gMe),f.Kb=function(t){return Lu(),new xt(null,new Pt(u(t,30).a,16))},x(fs,"NetworkSimplexPlacer/lambda$2$Type",1435),C(1453,1,bn,oNe),f.Cd=function(t){BRt(this.a,u(t,12))},f.a=0,x(fs,"NetworkSimplexPlacer/lambda$20$Type",1453),C(1454,1,{},bMe),f.Kb=function(t){return Lu(),new xt(null,new Pt(u(t,30).a,16))},x(fs,"NetworkSimplexPlacer/lambda$21$Type",1454),C(1455,1,bn,sNe),f.Cd=function(t){JRt(this.a,u(t,10))},x(fs,"NetworkSimplexPlacer/lambda$22$Type",1455),C(1456,1,Qn,wMe),f.Mb=function(t){return AGe(t)},x(fs,"NetworkSimplexPlacer/lambda$23$Type",1456),C(1457,1,{},mMe),f.Kb=function(t){return Lu(),new xt(null,new Pt(u(t,30).a,16))},x(fs,"NetworkSimplexPlacer/lambda$24$Type",1457),C(1458,1,Qn,lNe),f.Mb=function(t){return sRt(this.a,u(t,10))},x(fs,"NetworkSimplexPlacer/lambda$25$Type",1458),C(1459,1,bn,XHe),f.Cd=function(t){hZt(this.a,this.b,u(t,10))},x(fs,"NetworkSimplexPlacer/lambda$26$Type",1459),C(1460,1,Qn,vMe),f.Mb=function(t){return Lu(),!Zo(u(t,18))},x(fs,"NetworkSimplexPlacer/lambda$27$Type",1460),C(1461,1,Qn,yMe),f.Mb=function(t){return Lu(),!Zo(u(t,18))},x(fs,"NetworkSimplexPlacer/lambda$28$Type",1461),C(1462,1,{},cNe),f.Ve=function(t,n){return NRt(this.a,u(t,30),u(n,30))},x(fs,"NetworkSimplexPlacer/lambda$29$Type",1462),C(1436,1,{},kMe),f.Kb=function(t){return Lu(),new xt(null,new zb(new gn(wn(Pi(u(t,10)).a.Kc(),new j))))},x(fs,"NetworkSimplexPlacer/lambda$3$Type",1436),C(1437,1,Qn,CMe),f.Mb=function(t){return Lu(),pzt(u(t,18))},x(fs,"NetworkSimplexPlacer/lambda$4$Type",1437),C(1438,1,bn,uNe),f.Cd=function(t){dsn(this.a,u(t,18))},x(fs,"NetworkSimplexPlacer/lambda$5$Type",1438),C(1439,1,{},SMe),f.Kb=function(t){return Lu(),new xt(null,new Pt(u(t,30).a,16))},x(fs,"NetworkSimplexPlacer/lambda$6$Type",1439),C(1440,1,Qn,xMe),f.Mb=function(t){return Lu(),u(t,10).k==(nn(),Ei)},x(fs,"NetworkSimplexPlacer/lambda$7$Type",1440),C(1441,1,{},EMe),f.Kb=function(t){return Lu(),new xt(null,new zb(new gn(wn(h1(u(t,10)).a.Kc(),new j))))},x(fs,"NetworkSimplexPlacer/lambda$8$Type",1441),C(1442,1,Qn,TMe),f.Mb=function(t){return Lu(),tDt(u(t,18))},x(fs,"NetworkSimplexPlacer/lambda$9$Type",1442),C(1424,1,as,f$e),f.rg=function(t){return u(A(u(t,36),(Oe(),Kl)),21).Hc((cs(),ka))?Kvt:null},f.Kf=function(t,n){Wsn(u(t,36),n)};var Kvt;x(fs,"SimpleNodePlacer",1424),C(185,1,{185:1},i2),f.Ib=function(){var t;return t="",this.c==(Hd(),Hw)?t+=G4:this.c==mp&&(t+=U4),this.o==(Zf(),eb)?t+=GX:this.o==wd?t+="UP":t+="BALANCED",t},x(mg,"BKAlignedLayout",185),C(523,22,{3:1,34:1,22:1,523:1},ule);var mp,Hw,Uvt=An(mg,"BKAlignedLayout/HDirection",523,Nn,EBt,L$t),Gvt;C(522,22,{3:1,34:1,22:1,522:1},ale);var eb,wd,Wvt=An(mg,"BKAlignedLayout/VDirection",522,Nn,TBt,$$t),Vvt;C(1699,1,{},YHe),x(mg,"BKAligner",1699),C(1702,1,{},uit),x(mg,"BKCompactor",1702),C(663,1,{663:1},IMe),f.a=0,x(mg,"BKCompactor/ClassEdge",663),C(467,1,{467:1},eFe),f.a=null,f.b=0,x(mg,"BKCompactor/ClassNode",467),C(1427,1,as,eKe),f.rg=function(t){return u(A(u(t,36),(Oe(),Kl)),21).Hc((cs(),ka))?qvt:null},f.Kf=function(t,n){Can(this,u(t,36),n)},f.d=!1;var qvt;x(mg,"BKNodePlacer",1427),C(1700,1,{},PMe),f.d=0,x(mg,"NeighborhoodInformation",1700),C(1701,1,tr,aNe),f.Ne=function(t,n){return YKt(this,u(t,42),u(n,42))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(mg,"NeighborhoodInformation/NeighborComparator",1701),C(823,1,{}),x(mg,"ThresholdStrategy",823),C(1825,823,{},tFe),f.wg=function(t,n,i){return this.a.o==(Zf(),wd)?ii:Hi},f.xg=function(){},x(mg,"ThresholdStrategy/NullThresholdStrategy",1825),C(587,1,{587:1},tKe),f.c=!1,f.d=!1,x(mg,"ThresholdStrategy/Postprocessable",587),C(1826,823,{},nFe),f.wg=function(t,n,i){var s,c,d;return c=n==i,s=this.a.a[i.p]==n,c||s?(d=t,this.a.c==(Hd(),Hw)?(c&&(d=Uq(this,n,!0)),!isNaN(d)&&!isFinite(d)&&s&&(d=Uq(this,i,!1))):(c&&(d=Uq(this,n,!0)),!isNaN(d)&&!isFinite(d)&&s&&(d=Uq(this,i,!1))),d):t},f.xg=function(){for(var t,n,i,s,c;this.d.b!=0;)c=u(zBt(this.d),587),s=$ct(this,c),s.a&&(t=s.a,i=qe(this.a.f[this.a.g[c.b.p].p]),!(!i&&!Zo(t)&&t.c.i.c==t.d.i.c)&&(n=Fst(this,c),n||uRt(this.e,c)));for(;this.e.a.c.length!=0;)Fst(this,u(ztt(this.e),587))},x(mg,"ThresholdStrategy/SimpleThresholdStrategy",1826),C(645,1,{645:1,188:1,196:1},MMe),f.dg=function(){return Yet(this)},f.qg=function(){return Yet(this)};var nee;x(KY,"EdgeRouterFactory",645),C(1485,1,as,d$e),f.rg=function(t){return Arn(u(t,36))},f.Kf=function(t,n){Qsn(u(t,36),n)};var Xvt,Yvt,Jvt,Qvt,Zvt,a4e,eyt,tyt;x(KY,"OrthogonalEdgeRouter",1485),C(1478,1,as,ZHe),f.rg=function(t){return tJt(u(t,36))},f.Kf=function(t,n){Cun(this,u(t,36),n)};var nyt,ryt,iyt,oyt,XM,syt;x(KY,"PolylineEdgeRouter",1478),C(1479,1,Jd,_Me),f.Lb=function(t){return Jfe(u(t,10))},f.Fb=function(t){return this===t},f.Mb=function(t){return Jfe(u(t,10))},x(KY,"PolylineEdgeRouter/1",1479),C(1872,1,Qn,RMe),f.Mb=function(t){return u(t,132).c==(Af(),Pg)},x(Bf,"HyperEdgeCycleDetector/lambda$0$Type",1872),C(1873,1,{},AMe),f.Ze=function(t){return u(t,132).d},x(Bf,"HyperEdgeCycleDetector/lambda$1$Type",1873),C(1874,1,Qn,LMe),f.Mb=function(t){return u(t,132).c==(Af(),Pg)},x(Bf,"HyperEdgeCycleDetector/lambda$2$Type",1874),C(1875,1,{},$Me),f.Ze=function(t){return u(t,132).d},x(Bf,"HyperEdgeCycleDetector/lambda$3$Type",1875),C(1876,1,{},jMe),f.Ze=function(t){return u(t,132).d},x(Bf,"HyperEdgeCycleDetector/lambda$4$Type",1876),C(1877,1,{},OMe),f.Ze=function(t){return u(t,132).d},x(Bf,"HyperEdgeCycleDetector/lambda$5$Type",1877),C(118,1,{34:1,118:1},FI),f.Fd=function(t){return o_t(this,u(t,118))},f.Fb=function(t){var n;return te(t,118)?(n=u(t,118),this.g==n.g):!1},f.Hb=function(){return this.g},f.Ib=function(){var t,n,i,s;for(t=new Ru("{"),s=new N(this.n);s.a"+this.b+" ("+xAt(this.c)+")"},f.d=0,x(Bf,"HyperEdgeSegmentDependency",132),C(528,22,{3:1,34:1,22:1,528:1},fle);var Pg,$v,lyt=An(Bf,"HyperEdgeSegmentDependency/DependencyType",528,Nn,IBt,j$t),cyt;C(1878,1,{},fNe),x(Bf,"HyperEdgeSegmentSplitter",1878),C(1879,1,{},rze),f.a=0,f.b=0,x(Bf,"HyperEdgeSegmentSplitter/AreaRating",1879),C(339,1,{339:1},UU),f.a=0,f.b=0,f.c=0,x(Bf,"HyperEdgeSegmentSplitter/FreeArea",339),C(1880,1,tr,DMe),f.Ne=function(t,n){return xLt(u(t,118),u(n,118))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Bf,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),C(1881,1,bn,Mqe),f.Cd=function(t){Qzt(this.a,this.d,this.c,this.b,u(t,118))},f.b=0,x(Bf,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),C(1882,1,{},NMe),f.Kb=function(t){return new xt(null,new Pt(u(t,118).e,16))},x(Bf,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),C(1883,1,{},BMe),f.Kb=function(t){return new xt(null,new Pt(u(t,118).j,16))},x(Bf,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),C(1884,1,{},FMe),f.Ye=function(t){return le(pe(t))},x(Bf,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),C(664,1,{},gG),f.a=0,f.b=0,f.c=0,x(Bf,"OrthogonalRoutingGenerator",664),C(1703,1,{},zMe),f.Kb=function(t){return new xt(null,new Pt(u(t,118).e,16))},x(Bf,"OrthogonalRoutingGenerator/lambda$0$Type",1703),C(1704,1,{},HMe),f.Kb=function(t){return new xt(null,new Pt(u(t,118).j,16))},x(Bf,"OrthogonalRoutingGenerator/lambda$1$Type",1704),C(670,1,{}),x(UY,"BaseRoutingDirectionStrategy",670),C(1870,670,{},sFe),f.yg=function(t,n,i){var s,c,d,h,b,m,v,k,T,P,O,L,$;if(!(t.r&&!t.q))for(k=n+t.o*i,v=new N(t.n);v.aZd&&(d=k,c=t,s=new Me(T,d),or(h.a,s),hw(this,h,c,s,!1),P=t.r,P&&(O=le(pe(ga(P.e,0))),s=new Me(O,d),or(h.a,s),hw(this,h,c,s,!1),d=n+P.o*i,c=P,s=new Me(O,d),or(h.a,s),hw(this,h,c,s,!1)),s=new Me($,d),or(h.a,s),hw(this,h,c,s,!1)))},f.zg=function(t){return t.i.n.a+t.n.a+t.a.a},f.Ag=function(){return ze(),Pn},f.Bg=function(){return ze(),en},x(UY,"NorthToSouthRoutingStrategy",1870),C(1871,670,{},lFe),f.yg=function(t,n,i){var s,c,d,h,b,m,v,k,T,P,O,L,$;if(!(t.r&&!t.q))for(k=n-t.o*i,v=new N(t.n);v.aZd&&(d=k,c=t,s=new Me(T,d),or(h.a,s),hw(this,h,c,s,!1),P=t.r,P&&(O=le(pe(ga(P.e,0))),s=new Me(O,d),or(h.a,s),hw(this,h,c,s,!1),d=n-P.o*i,c=P,s=new Me(O,d),or(h.a,s),hw(this,h,c,s,!1)),s=new Me($,d),or(h.a,s),hw(this,h,c,s,!1)))},f.zg=function(t){return t.i.n.a+t.n.a+t.a.a},f.Ag=function(){return ze(),en},f.Bg=function(){return ze(),Pn},x(UY,"SouthToNorthRoutingStrategy",1871),C(1869,670,{},cFe),f.yg=function(t,n,i){var s,c,d,h,b,m,v,k,T,P,O,L,$;if(!(t.r&&!t.q))for(k=n+t.o*i,v=new N(t.n);v.aZd&&(d=k,c=t,s=new Me(d,T),or(h.a,s),hw(this,h,c,s,!0),P=t.r,P&&(O=le(pe(ga(P.e,0))),s=new Me(d,O),or(h.a,s),hw(this,h,c,s,!0),d=n+P.o*i,c=P,s=new Me(d,O),or(h.a,s),hw(this,h,c,s,!0)),s=new Me(d,$),or(h.a,s),hw(this,h,c,s,!0)))},f.zg=function(t){return t.i.n.b+t.n.b+t.a.b},f.Ag=function(){return ze(),fn},f.Bg=function(){return ze(),rn},x(UY,"WestToEastRoutingStrategy",1869),C(828,1,{},Xpe),f.Ib=function(){return ag(this.a)},f.b=0,f.c=!1,f.d=!1,f.f=0,x(fv,"NubSpline",828),C(418,1,{418:1},vlt,lXe),x(fv,"NubSpline/PolarCP",418),C(1480,1,as,tit),f.rg=function(t){return UJt(u(t,36))},f.Kf=function(t,n){zun(this,u(t,36),n)};var uyt,ayt,fyt,dyt,hyt;x(fv,"SplineEdgeRouter",1480),C(274,1,{274:1},SL),f.Ib=function(){return this.a+" ->("+this.c+") "+this.b},f.c=0,x(fv,"SplineEdgeRouter/Dependency",274),C(465,22,{3:1,34:1,22:1,465:1},dle);var Mg,B2,pyt=An(fv,"SplineEdgeRouter/SideToProcess",465,Nn,ABt,D$t),gyt;C(1481,1,Qn,KMe),f.Mb=function(t){return qS(),!u(t,131).o},x(fv,"SplineEdgeRouter/lambda$0$Type",1481),C(1482,1,{},UMe),f.Ze=function(t){return qS(),u(t,131).v+1},x(fv,"SplineEdgeRouter/lambda$1$Type",1482),C(1483,1,bn,nKe),f.Cd=function(t){oDt(this.a,this.b,u(t,42))},x(fv,"SplineEdgeRouter/lambda$2$Type",1483),C(1484,1,bn,rKe),f.Cd=function(t){sDt(this.a,this.b,u(t,42))},x(fv,"SplineEdgeRouter/lambda$3$Type",1484),C(131,1,{34:1,131:1},Aot,tge),f.Fd=function(t){return c_t(this,u(t,131))},f.b=0,f.e=!1,f.f=0,f.g=0,f.j=!1,f.k=!1,f.n=0,f.o=!1,f.p=!1,f.q=!1,f.s=0,f.u=0,f.v=0,f.F=0,x(fv,"SplineSegment",131),C(468,1,{468:1},GMe),f.a=0,f.b=!1,f.c=!1,f.d=!1,f.e=!1,f.f=0,x(fv,"SplineSegment/EdgeInformation",468),C(1198,1,{},WMe),x(C1,Qge,1198),C(1199,1,tr,VMe),f.Ne=function(t,n){return Ten(u(t,121),u(n,121))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(C1,Mft,1199),C(1197,1,{},vze),x(C1,"MrTree",1197),C(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},VR),f.dg=function(){return est(this)},f.qg=function(){return est(this)};var uB,dx,hx,px,f4e=An(C1,"TreeLayoutPhases",405,Nn,$zt,N$t),byt;C(1112,205,j0,VGe),f.rf=function(t,n){var i,s,c,d,h,b,m,v;for(qe(Ve(Ie(t,(sl(),j4e))))||dI((i=new t7((Mb(),new kb(t))),i)),h=n.eh(VY),h.Ug("build tGraph",1),b=(m=new kI,js(m,t),Ee(m,(Wr(),bx),t),v=new On,mon(t,m,v),Don(t,m,v),m),h.Vg(),h=n.eh(VY),h.Ug("Split graph",1),d=xon(this.a,b),h.Vg(),c=new N(d);c.a"+w0(this.c):"e_"+Vr(this)},x(y9,"TEdge",65),C(121,137,{3:1,121:1,96:1,137:1},kI),f.Ib=function(){var t,n,i,s,c;for(c=null,s=Ln(this.b,0);s.b!=s.d.c;)i=u(_n(s),40),c+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+` -`;for(n=Ln(this.a,0);n.b!=n.d.c;)t=u(_n(n),65),c+=(t.b&&t.c?w0(t.b)+"->"+w0(t.c):"e_"+Vr(t))+` -`;return c};var rfn=x(y9,"TGraph",121);C(643,508,{3:1,508:1,643:1,96:1,137:1}),x(y9,"TShape",643),C(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},VW),f.Ib=function(){return w0(this)};var aB=x(y9,"TNode",40);C(236,1,Th,Jh),f.Jc=function(t){Po(this,t)},f.Kc=function(){var t;return t=Ln(this.a.d,0),new my(t)},x(y9,"TNode/2",236),C(329,1,co,my),f.Nb=function(t){To(this,t)},f.Pb=function(){return u(_n(this.a),65).c},f.Ob=function(){return bT(this.a)},f.Qb=function(){kW(this.a)},x(y9,"TNode/2/1",329),C(1923,1,qr,eOe),f.Kf=function(t,n){wan(this,u(t,121),n)},x(Fl,"CompactionProcessor",1923),C(1924,1,tr,bNe),f.Ne=function(t,n){return iGt(this.a,u(t,40),u(n,40))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Fl,"CompactionProcessor/lambda$0$Type",1924),C(1925,1,Qn,oKe),f.Mb=function(t){return aBt(this.b,this.a,u(t,42))},f.a=0,f.b=0,x(Fl,"CompactionProcessor/lambda$1$Type",1925),C(1934,1,tr,tOe),f.Ne=function(t,n){return tNt(u(t,40),u(n,40))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Fl,"CompactionProcessor/lambda$10$Type",1934),C(1935,1,tr,nOe),f.Ne=function(t,n){return gAt(u(t,40),u(n,40))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Fl,"CompactionProcessor/lambda$11$Type",1935),C(1936,1,tr,rOe),f.Ne=function(t,n){return nNt(u(t,40),u(n,40))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Fl,"CompactionProcessor/lambda$12$Type",1936),C(1926,1,Qn,wNe),f.Mb=function(t){return QRt(this.a,u(t,42))},f.a=0,x(Fl,"CompactionProcessor/lambda$2$Type",1926),C(1927,1,Qn,mNe),f.Mb=function(t){return ZRt(this.a,u(t,42))},f.a=0,x(Fl,"CompactionProcessor/lambda$3$Type",1927),C(1928,1,Qn,iOe),f.Mb=function(t){return u(t,40).c.indexOf(sD)==-1},x(Fl,"CompactionProcessor/lambda$4$Type",1928),C(1929,1,{},vNe),f.Kb=function(t){return dzt(this.a,u(t,40))},f.a=0,x(Fl,"CompactionProcessor/lambda$5$Type",1929),C(1930,1,{},yNe),f.Kb=function(t){return yKt(this.a,u(t,40))},f.a=0,x(Fl,"CompactionProcessor/lambda$6$Type",1930),C(1931,1,tr,kNe),f.Ne=function(t,n){return _Ht(this.a,u(t,240),u(n,240))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Fl,"CompactionProcessor/lambda$7$Type",1931),C(1932,1,tr,CNe),f.Ne=function(t,n){return RHt(this.a,u(t,40),u(n,40))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Fl,"CompactionProcessor/lambda$8$Type",1932),C(1933,1,tr,oOe),f.Ne=function(t,n){return bAt(u(t,40),u(n,40))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Fl,"CompactionProcessor/lambda$9$Type",1933),C(1921,1,qr,sOe),f.Kf=function(t,n){hin(u(t,121),n)},x(Fl,"DirectionProcessor",1921),C(1913,1,qr,WGe),f.Kf=function(t,n){$on(this,u(t,121),n)},x(Fl,"FanProcessor",1913),C(1937,1,qr,lOe),f.Kf=function(t,n){tin(u(t,121),n)},x(Fl,"GraphBoundsProcessor",1937),C(1938,1,{},cOe),f.Ye=function(t){return u(t,40).e.a},x(Fl,"GraphBoundsProcessor/lambda$0$Type",1938),C(1939,1,{},uOe),f.Ye=function(t){return u(t,40).e.b},x(Fl,"GraphBoundsProcessor/lambda$1$Type",1939),C(1940,1,{},aOe),f.Ye=function(t){return $_t(u(t,40))},x(Fl,"GraphBoundsProcessor/lambda$2$Type",1940),C(1941,1,{},fOe),f.Ye=function(t){return L_t(u(t,40))},x(Fl,"GraphBoundsProcessor/lambda$3$Type",1941),C(262,22,{3:1,34:1,22:1,262:1,196:1},Ob),f.dg=function(){switch(this.g){case 0:return new CFe;case 1:return new WGe;case 2:return new kFe;case 3:return new bOe;case 4:return new hOe;case 8:return new dOe;case 5:return new sOe;case 6:return new mOe;case 7:return new eOe;case 9:return new lOe;case 10:return new vOe;default:throw B(new Qt(uY+(this.f!=null?this.f:""+this.g)))}};var d4e,h4e,p4e,g4e,b4e,w4e,m4e,v4e,y4e,k4e,ree,ifn=An(Fl,aY,262,Nn,Het,B$t),wyt;C(1920,1,qr,dOe),f.Kf=function(t,n){pun(u(t,121),n)},x(Fl,"LevelCoordinatesProcessor",1920),C(1918,1,qr,hOe),f.Kf=function(t,n){$nn(this,u(t,121),n)},f.a=0,x(Fl,"LevelHeightProcessor",1918),C(1919,1,Th,pOe),f.Jc=function(t){Po(this,t)},f.Kc=function(){return Ot(),Ik(),E8},x(Fl,"LevelHeightProcessor/1",1919),C(1914,1,qr,kFe),f.Kf=function(t,n){Xrn(this,u(t,121),n)},x(Fl,"LevelProcessor",1914),C(1915,1,Qn,gOe),f.Mb=function(t){return qe(Ve(A(u(t,40),(Wr(),Og))))},x(Fl,"LevelProcessor/lambda$0$Type",1915),C(1916,1,qr,bOe),f.Kf=function(t,n){RZt(this,u(t,121),n)},f.a=0,x(Fl,"NeighborsProcessor",1916),C(1917,1,Th,wOe),f.Jc=function(t){Po(this,t)},f.Kc=function(){return Ot(),Ik(),E8},x(Fl,"NeighborsProcessor/1",1917),C(1922,1,qr,mOe),f.Kf=function(t,n){Lon(this,u(t,121),n)},f.a=0,x(Fl,"NodePositionProcessor",1922),C(1912,1,qr,CFe),f.Kf=function(t,n){bln(this,u(t,121),n)},x(Fl,"RootProcessor",1912),C(1942,1,qr,vOe),f.Kf=function(t,n){dXt(u(t,121),n)},x(Fl,"Untreeifyer",1942),C(392,22,{3:1,34:1,22:1,392:1},oU);var YM,iee,C4e,S4e=An(cM,"EdgeRoutingMode",392,Nn,PFt,F$t),myt,JM,q8,oee,x4e,E4e,see,lee,T4e,cee,I4e,uee,gx,aee,fB,dB,gf,Kf,X8,bx,wx,vp,P4e,vyt,fee,Og,QM,ZM;C(862,1,$a,h$e),f.hf=function(t){at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,$be),""),kdt),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(Gt(),!1)),(cp(),Qi)),xi),ht((Nf(),Nt))))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,jbe),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Dbe),""),"Tree Level"),"The index for the tree level the node is in"),Ae(0)),Vs),Oo),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Nbe),""),kdt),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Ae(-1)),Vs),Oo),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Bbe),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),_4e),oi),K4e),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Fbe),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),M4e),oi),S4e),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,zbe),""),"Search Order"),"Which search order to use when computing a spanning tree."),O4e),oi),G4e),ht(Nt)))),aat((new b$e,t))};var yyt,kyt,Cyt,M4e,Syt,xyt,O4e,Eyt,Tyt,_4e;x(cM,"MrTreeMetaDataProvider",862),C(1006,1,$a,b$e),f.hf=function(t){aat(t)};var Iyt,R4e,A4e,Kw,L4e,$4e,dee,Pyt,Myt,Oyt,_yt,Ryt,Ayt,Lyt,j4e,D4e,N4e,$yt,F2,hB,B4e,jyt,F4e,hee,Dyt,Nyt,Byt,z4e,Fyt,ch,H4e;x(cM,"MrTreeOptions",1006),C(1007,1,{},yOe),f.sf=function(){var t;return t=new VGe,t},f.tf=function(t){},x(cM,"MrTreeOptions/MrtreeFactory",1007),C(353,22,{3:1,34:1,22:1,353:1},qR);var pee,pB,gee,bee,K4e=An(cM,"OrderWeighting",353,Nn,jzt,z$t),zyt;C(433,22,{3:1,34:1,22:1,433:1},hle);var U4e,wee,G4e=An(cM,"TreeifyingOrder",433,Nn,_Bt,H$t),Hyt;C(1486,1,as,w$e),f.rg=function(t){return u(t,121),Kyt},f.Kf=function(t,n){WUt(this,u(t,121),n)};var Kyt;x("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),C(1487,1,as,m$e),f.rg=function(t){return u(t,121),Uyt},f.Kf=function(t,n){Zrn(this,u(t,121),n)};var Uyt;x(d8,"NodeOrderer",1487),C(1494,1,{},vMt),f.td=function(t){return ZWe(t)},x(d8,"NodeOrderer/0methodref$lambda$6$Type",1494),C(1488,1,Qn,jOe),f.Mb=function(t){return S4(),qe(Ve(A(u(t,40),(Wr(),Og))))},x(d8,"NodeOrderer/lambda$0$Type",1488),C(1489,1,Qn,DOe),f.Mb=function(t){return S4(),u(A(u(t,40),(sl(),F2)),17).a<0},x(d8,"NodeOrderer/lambda$1$Type",1489),C(1490,1,Qn,xNe),f.Mb=function(t){return kUt(this.a,u(t,40))},x(d8,"NodeOrderer/lambda$2$Type",1490),C(1491,1,Qn,SNe),f.Mb=function(t){return gzt(this.a,u(t,40))},x(d8,"NodeOrderer/lambda$3$Type",1491),C(1492,1,tr,NOe),f.Ne=function(t,n){return UKt(u(t,40),u(n,40))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(d8,"NodeOrderer/lambda$4$Type",1492),C(1493,1,Qn,BOe),f.Mb=function(t){return S4(),u(A(u(t,40),(Wr(),lee)),17).a!=0},x(d8,"NodeOrderer/lambda$5$Type",1493),C(1495,1,as,g$e),f.rg=function(t){return u(t,121),Gyt},f.Kf=function(t,n){lon(this,u(t,121),n)},f.b=0;var Gyt;x("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),C(1496,1,as,p$e),f.rg=function(t){return u(t,121),Wyt},f.Kf=function(t,n){Kin(u(t,121),n)};var Wyt,ofn=x(Pu,"EdgeRouter",1496);C(1498,1,tr,$Oe),f.Ne=function(t,n){return yl(u(t,17).a,u(n,17).a)},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"EdgeRouter/0methodref$compare$Type",1498),C(1503,1,{},COe),f.Ye=function(t){return le(pe(t))},x(Pu,"EdgeRouter/1methodref$doubleValue$Type",1503),C(1505,1,tr,SOe),f.Ne=function(t,n){return Kr(le(pe(t)),le(pe(n)))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"EdgeRouter/2methodref$compare$Type",1505),C(1507,1,tr,xOe),f.Ne=function(t,n){return Kr(le(pe(t)),le(pe(n)))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"EdgeRouter/3methodref$compare$Type",1507),C(1509,1,{},kOe),f.Ye=function(t){return le(pe(t))},x(Pu,"EdgeRouter/4methodref$doubleValue$Type",1509),C(1511,1,tr,EOe),f.Ne=function(t,n){return Kr(le(pe(t)),le(pe(n)))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"EdgeRouter/5methodref$compare$Type",1511),C(1513,1,tr,TOe),f.Ne=function(t,n){return Kr(le(pe(t)),le(pe(n)))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"EdgeRouter/6methodref$compare$Type",1513),C(1497,1,{},IOe),f.Kb=function(t){return u1(),u(A(u(t,40),(sl(),ch)),17)},x(Pu,"EdgeRouter/lambda$0$Type",1497),C(1508,1,{},POe),f.Kb=function(t){return MAt(u(t,40))},x(Pu,"EdgeRouter/lambda$11$Type",1508),C(1510,1,{},sKe),f.Kb=function(t){return rDt(this.b,this.a,u(t,40))},f.a=0,f.b=0,x(Pu,"EdgeRouter/lambda$13$Type",1510),C(1512,1,{},lKe),f.Kb=function(t){return OAt(this.b,this.a,u(t,40))},f.a=0,f.b=0,x(Pu,"EdgeRouter/lambda$15$Type",1512),C(1514,1,tr,MOe),f.Ne=function(t,n){return Hqt(u(t,65),u(n,65))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"EdgeRouter/lambda$17$Type",1514),C(1515,1,tr,OOe),f.Ne=function(t,n){return Kqt(u(t,65),u(n,65))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"EdgeRouter/lambda$18$Type",1515),C(1516,1,tr,_Oe),f.Ne=function(t,n){return Gqt(u(t,65),u(n,65))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"EdgeRouter/lambda$19$Type",1516),C(1499,1,Qn,ENe),f.Mb=function(t){return WBt(this.a,u(t,40))},f.a=0,x(Pu,"EdgeRouter/lambda$2$Type",1499),C(1517,1,tr,ROe),f.Ne=function(t,n){return Uqt(u(t,65),u(n,65))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"EdgeRouter/lambda$20$Type",1517),C(1500,1,tr,AOe),f.Ne=function(t,n){return Kjt(u(t,40),u(n,40))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"EdgeRouter/lambda$3$Type",1500),C(1501,1,tr,LOe),f.Ne=function(t,n){return Ujt(u(t,40),u(n,40))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"EdgeRouter/lambda$4$Type",1501),C(1502,1,{},FOe),f.Kb=function(t){return _At(u(t,40))},x(Pu,"EdgeRouter/lambda$5$Type",1502),C(1504,1,{},cKe),f.Kb=function(t){return iDt(this.b,this.a,u(t,40))},f.a=0,f.b=0,x(Pu,"EdgeRouter/lambda$7$Type",1504),C(1506,1,{},uKe),f.Kb=function(t){return RAt(this.b,this.a,u(t,40))},f.a=0,f.b=0,x(Pu,"EdgeRouter/lambda$9$Type",1506),C(675,1,{675:1},Krt),f.e=0,f.f=!1,f.g=!1,x(Pu,"MultiLevelEdgeNodeNodeGap",675),C(1943,1,tr,zOe),f.Ne=function(t,n){return nFt(u(t,240),u(n,240))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),C(1944,1,tr,HOe),f.Ne=function(t,n){return rFt(u(t,240),u(n,240))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(Pu,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var z2;C(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},ple),f.dg=function(){return Mnt(this)},f.qg=function(){return Mnt(this)};var gB,H2,W4e=An(Hbe,"RadialLayoutPhases",501,Nn,xBt,K$t),Vyt;C(1113,205,j0,mze),f.rf=function(t,n){var i,s,c,d,h,b;if(i=plt(this,t),n.Ug("Radial layout",i.c.length),qe(Ve(Ie(t,(dg(),r6e))))||dI((s=new t7((Mb(),new kb(t))),s)),b=VJt(t),Br(t,($y(),z2),b),!b)throw B(new Qt("The given graph is not a tree!"));for(c=le(pe(Ie(t,mB))),c==0&&(c=qot(t)),Br(t,mB,c),h=new N(plt(this,t));h.a=3)for(Pe=u(re(se,0),27),Fe=u(re(se,1),27),d=0;d+2=Pe.f+Fe.f+k||Fe.f>=ke.f+Pe.f+k){pt=!0;break}else++d;else pt=!0;if(!pt){for(P=se.i,b=new hn(se);b.e!=b.i.gc();)h=u(mn(b),27),Br(h,(gr(),hO),Ae(P)),--P;Uct(t,new H3),n.Vg();return}for(i=(lI(this.a),_f(this.a,(S$(),tO),u(Ie(t,R6e),188)),_f(this.a,vB,u(Ie(t,T6e),188)),_f(this.a,Mee,u(Ie(t,M6e),188)),Rle(this.a,(zt=new Li,cr(zt,tO,(L$(),Ree)),cr(zt,vB,_ee),qe(Ve(Ie(t,x6e)))&&cr(zt,tO,Oee),zt)),AP(this.a,t)),v=1/i.c.length,L=new N(i);L.a0&&Ztt((Zt(n-1,t.length),t.charCodeAt(n-1)),Fft);)--n;if(s>=n)throw B(new Qt("The given string does not contain any numbers."));if(c=iv((mo(s,n,t.length),t.substr(s,n-s)),`,|;|\r| -`),c.length!=2)throw B(new Qt("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=Jm(Qm(c[0])),this.b=Jm(Qm(c[1]))}catch(d){throw d=li(d),te(d,130)?(i=d,B(new Qt(zft+i))):B(d)}},f.Ib=function(){return"("+this.a+","+this.b+")"},f.a=0,f.b=0;var to=x(rM,"KVector",8);C(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},_c,kR,bGe),f.Pc=function(){return uWt(this)},f.cg=function(t){var n,i,s,c,d,h;s=iv(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | -`),Au(this);try{for(i=0,d=0,c=0,h=0;i0&&(d%2==0?c=Jm(s[i]):h=Jm(s[i]),d>0&&d%2!=0&&or(this,new Me(c,h)),++d),++i}catch(b){throw b=li(b),te(b,130)?(n=b,B(new Qt("The given string does not match the expected format for vectors."+n))):B(b)}},f.Ib=function(){var t,n,i;for(t=new Ru("("),n=Ln(this,0);n.b!=n.d.c;)i=u(_n(n),8),lr(t,i.a+","+i.b),n.b!=n.d.c&&(t.a+="; ");return(t.a+=")",t).a};var gke=x(rM,"KVectorChain",75);C(255,22,{3:1,34:1,22:1,255:1},I7);var Qee,MB,OB,sO,lO,_B,bke=An(gu,"Alignment",255,Nn,sKt,hjt),I3t;C(991,1,$a,I$e),f.hf=function(t){Ict(t)};var wke,Zee,P3t,mke,vke,M3t,yke,O3t,_3t,kke,Cke,R3t;x(gu,"BoxLayouterOptions",991),C(992,1,{},Y_e),f.sf=function(){var t;return t=new Z_e,t},f.tf=function(t){},x(gu,"BoxLayouterOptions/BoxFactory",992),C(298,22,{3:1,34:1,22:1,298:1},P7);var Ex,ete,Tx,Ix,Px,tte,nte=An(gu,"ContentAlignment",298,Nn,lKt,pjt),A3t;C(699,1,$a,doe),f.hf=function(t){at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,Hdt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(cp(),U2)),Je),ht((Nf(),Nt))))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,Kdt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),md),cfn),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,fbe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Ske),oi),bke),ht(qi)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,V4),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,xwe),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),md),gke),ht(uh)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,tD),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Eke),g6),nte),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,lM),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Gt(),!1)),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,FY),""),Gge),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Tke),oi),Ox),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,sM),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),Mke),oi),bte),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Cwe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,eD),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),Rke),oi),m5e),Yr(Nt,H(F(jh,1),Te,170,0,[qi]))))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,vw),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),zke),md),Hve),Yr(Nt,H(F(jh,1),Te,170,0,[qi]))))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,h9),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,rD),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,p9),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,sY),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),Wke),oi),k5e),ht(qi)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,nD),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),md),to),Yr(qi,H(F(jh,1),Te,170,0,[tb,yp]))))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,JP),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Vs),Oo),Yr(qi,H(F(jh,1),Te,170,0,[uh]))))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,jj),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),Vs),Oo),ht(Nt)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,d9),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Cbe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),Ake),md),gke),ht(uh)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Ebe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),Qi),xi),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Tbe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Qi),xi),ht(qi)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,$an),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),md),hfn),Yr(Nt,H(F(jh,1),Te,170,0,[yp]))))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Pbe),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),Lke),md),zve),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,ube),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),Qi),xi),Yr(qi,H(F(jh,1),Te,170,0,[uh,tb,yp]))))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Udt),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),No),Bi),ht(qi)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,Gdt),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,Wdt),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,QP),""),Ddt),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),Qi),xi),ht(Nt)))),$i(t,QP,yw,null),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Vdt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,qdt),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Ae(100)),Vs),Oo),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Xdt),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Ydt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Ae(4e3)),Vs),Oo),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Jdt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Ae(400)),Vs),Oo),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Qdt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Zdt),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,eht),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,tht),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Swe),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),xke),oi),_5e),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Q0e),hd),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Z0e),hd),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,ZX),hd),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,ebe),hd),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,oY),hd),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,BY),hd),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,tbe),hd),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,ibe),hd),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,nbe),hd),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,rbe),hd),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,av),hd),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,obe),hd),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),No),Bi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,sbe),hd),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),No),Bi),Yr(Nt,H(F(jh,1),Te,170,0,[qi]))))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,lbe),hd),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),md),y4t),Yr(qi,H(F(jh,1),Te,170,0,[uh,tb,yp]))))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Mbe),hd),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),r5e),md),zve),ht(Nt)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,HY),iht),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),Vs),Oo),Yr(Nt,H(F(jh,1),Te,170,0,[qi]))))),$i(t,HY,zY,H3t),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,zY),iht),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),Hke),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,pbe),oht),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),jke),md),Hve),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,u8),oht),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Dke),g6),ds),Yr(qi,H(F(jh,1),Te,170,0,[yp]))))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,wbe),hD),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),Uke),oi),Lx),ht(qi)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,mbe),hD),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),oi),Lx),ht(qi)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,vbe),hD),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),oi),Lx),ht(qi)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,ybe),hD),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),oi),Lx),ht(qi)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,kbe),hD),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),oi),Lx),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,h2),aJ),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),Nke),g6),Dx),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,q4),aJ),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),Fke),g6),S5e),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,X4),aJ),"Node Size Minimum"),"The minimal size to which a node can be reduced."),Bke),md),to),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,c8),aJ),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),Qi),xi),ht(Nt)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Sbe),NY),"Edge Label Placement"),"Gives a hint on where to put edge labels."),Ike),oi),s5e),ht(yp)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Dj),NY),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),Qi),xi),ht(yp)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,jan),"font"),"Font Name"),"Font name used for a label."),U2),Je),ht(yp)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,nht),"font"),"Font Size"),"Font size used for a label."),Vs),Oo),ht(yp)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,Ibe),fJ),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),md),to),ht(tb)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,xbe),fJ),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),Vs),Oo),ht(tb)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,abe),fJ),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),Xke),oi),ts),ht(tb)))),at(t,new nt(ct(lt(ut(rt(st(it(ot(new tt,cbe),fJ),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),No),Bi),ht(tb)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,a8),Iwe),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),Vke),g6),DB),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,gbe),Iwe),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Qi),xi),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,bbe),Iwe),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),Qi),xi),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,ZP),aM),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),No),Bi),ht(Nt)))),$i(t,ZP,yw,Y3t),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Ewe),aM),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),oi),KB),ht(qi)))),$i(t,Ewe,yw,J3t),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,eM),aM),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),No),Bi),Yr(Nt,H(F(jh,1),Te,170,0,[qi]))))),$i(t,eM,yw,null),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,tM),aM),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),No),Bi),Yr(Nt,H(F(jh,1),Te,170,0,[qi]))))),$i(t,tM,yw,null),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,yw),aM),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),oi),E5e),ht(qi)))),$i(t,yw,c8,null),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,Twe),aM),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),No),Bi),ht(Nt)))),$i(t,Twe,yw,X3t),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,dbe),sht),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),Qi),xi),ht(qi)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,hbe),sht),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Qi),xi),ht(uh)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,eY),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),No),Bi),ht(uh)))),at(t,new nt(ct(lt(ut(Tt(rt(st(it(ot(new tt,rht),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),_ke),oi),d5e),ht(uh)))),w7(t,new b4(d7(Ck(kk(new D3,cn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),w7(t,new b4(d7(Ck(kk(new D3,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),w7(t,new b4(d7(Ck(kk(new D3,uc),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),w7(t,new b4(d7(Ck(kk(new D3,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),w7(t,new b4(d7(Ck(kk(new D3,Cdt),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),w7(t,new b4(d7(Ck(kk(new D3,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),w7(t,new b4(d7(Ck(kk(new D3,wa),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),dct((new P$e,t)),Ict((new I$e,t)),Flt((new M$e,t))};var J8,L3t,Ske,G2,$3t,j3t,xke,W2,V2,D3t,cO,Eke,uO,nb,Tke,rte,ite,Ike,Pke,Mke,Oke,_ke,N3t,q2,Rke,B3t,aO,ote,fO,ste,Uw,Ake,Q8,Lke,$ke,jke,X2,Dke,rb,Nke,Dv,Y2,Bke,_g,Fke,RB,dO,kp,zke,F3t,Hke,z3t,H3t,Kke,Uke,lte,cte,ute,ate,Gke,bu,Mx,Wke,fte,dte,Nv,Vke,qke,J2,Xke,b6,hO,hte,Q2,K3t,pte,U3t,G3t,Yke,W3t,Jke,Qke,w6,Zke,AB,e5e,t5e,ib,V3t,n5e,r5e,i5e,LB,pO,Z8,m6,q3t,X3t,$B,Y3t,o5e,J3t;x(gu,"CoreOptions",699),C(88,22,{3:1,34:1,22:1,88:1},jT);var vd,Ps,Bs,yd,Ca,Ox=An(gu,Gge,88,Nn,fHt,gjt),Q3t;C(278,22,{3:1,34:1,22:1,278:1},hU);var eC,Bv,tC,s5e=An(gu,"EdgeLabelPlacement",278,Nn,FFt,bjt),Z3t;C(223,22,{3:1,34:1,22:1,223:1},YR);var nC,gO,v6,gte,bte=An(gu,"EdgeRouting",223,Nn,Fzt,wjt),e4t;C(321,22,{3:1,34:1,22:1,321:1},M7);var l5e,c5e,u5e,a5e,wte,f5e,d5e=An(gu,"EdgeType",321,Nn,oKt,mjt),t4t;C(989,1,$a,P$e),f.hf=function(t){dct(t)};var h5e,p5e,g5e,b5e,n4t,w5e,_x;x(gu,"FixedLayouterOptions",989),C(990,1,{},J_e),f.sf=function(){var t;return t=new cRe,t},f.tf=function(t){},x(gu,"FixedLayouterOptions/FixedFactory",990),C(346,22,{3:1,34:1,22:1,346:1},pU);var Cp,jB,Rx,m5e=An(gu,"HierarchyHandling",346,Nn,NFt,vjt),r4t;C(291,22,{3:1,34:1,22:1,291:1},JR);var Dh,Rg,bO,wO,i4t=An(gu,"LabelSide",291,Nn,Bzt,yjt),o4t;C(95,22,{3:1,34:1,22:1,95:1},Sy);var E1,bf,za,wf,Vu,mf,Ha,Nh,vf,ds=An(gu,"NodeLabelPlacement",95,Nn,sUt,kjt),s4t;C(256,22,{3:1,34:1,22:1,256:1},DT);var v5e,Ax,Ag,y5e,mO,Lx=An(gu,"PortAlignment",256,Nn,THt,Cjt),l4t;C(101,22,{3:1,34:1,22:1,101:1},O7);var ob,Ul,Bh,rC,kd,Lg,k5e=An(gu,"PortConstraints",101,Nn,iKt,Sjt),c4t;C(279,22,{3:1,34:1,22:1,279:1},_7);var $x,jx,T1,vO,$g,y6,DB=An(gu,"PortLabelPlacement",279,Nn,rKt,xjt),u4t;C(64,22,{3:1,34:1,22:1,64:1},NT);var fn,en,Sa,xa,Sc,dc,Cd,yf,tu,Hc,Gl,nu,xc,Ec,kf,qu,Xu,Ka,Pn,nl,rn,ts=An(gu,"PortSide",64,Nn,dHt,Ejt),a4t;C(993,1,$a,M$e),f.hf=function(t){Flt(t)};var f4t,d4t,C5e,h4t,p4t;x(gu,"RandomLayouterOptions",993),C(994,1,{},Q_e),f.sf=function(){var t;return t=new oRe,t},f.tf=function(t){},x(gu,"RandomLayouterOptions/RandomFactory",994),C(386,22,{3:1,34:1,22:1,386:1},QR);var Fv,yO,kO,sb,Dx=An(gu,"SizeConstraint",386,Nn,Nzt,Tjt),g4t;C(264,22,{3:1,34:1,22:1,264:1},xy);var CO,NB,iC,mte,SO,Nx,BB,FB,zB,S5e=An(gu,"SizeOptions",264,Nn,mUt,Ijt),b4t;C(280,22,{3:1,34:1,22:1,280:1},gU);var zv,x5e,HB,E5e=An(gu,"TopdownNodeTypes",280,Nn,zFt,Pjt),w4t;C(347,22,Pwe);var T5e,I5e,KB=An(gu,"TopdownSizeApproximator",347,Nn,jBt,Ojt);C(987,347,Pwe,QWe),f.Tg=function(t){return Ort(t)},An(gu,"TopdownSizeApproximator/1",987,KB,null,null),C(988,347,Pwe,DVe),f.Tg=function(t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt,zt;for(n=u(Ie(t,(gr(),Q2)),143),Fe=(Up(),O=new s7,O),SP(Fe,t),pt=new On,d=new hn((!t.a&&(t.a=new Se(xr,t,10,11)),t.a));d.e!=d.i.gc();)s=u(mn(d),27),ne=(P=new s7,P),ij(ne,Fe),SP(ne,s),zt=Ort(s),My(ne,w.Math.max(s.g,zt.a),w.Math.max(s.f,zt.b)),Jl(pt.f,s,ne);for(c=new hn((!t.a&&(t.a=new Se(xr,t,10,11)),t.a));c.e!=c.i.gc();)for(s=u(mn(c),27),k=new hn((!s.e&&(s.e=new jt(Ti,s,7,4)),s.e));k.e!=k.i.gc();)v=u(mn(k),74),ke=u(Rs(ss(pt.f,s)),27),Pe=u(pn(pt,re((!v.c&&(v.c=new jt(Tn,v,5,8)),v.c),0)),27),se=(T=new WH,T),Dn((!se.b&&(se.b=new jt(Tn,se,4,7)),se.b),ke),Dn((!se.c&&(se.c=new jt(Tn,se,5,8)),se.c),Pe),rj(se,ri(ke)),SP(se,v);$=u(fI(n.f),205);try{$.rf(Fe,new fRe),pqe(n.f,$)}catch(Ht){throw Ht=li(Ht),te(Ht,103)?(L=Ht,B(L)):B(Ht)}return rd(Fe,V2)||rd(Fe,W2)||pge(Fe),m=le(pe(Ie(Fe,V2))),b=le(pe(Ie(Fe,W2))),h=m/b,i=le(pe(Ie(Fe,pO)))*w.Math.sqrt((!Fe.a&&(Fe.a=new Se(xr,Fe,10,11)),Fe.a).i),dt=u(Ie(Fe,kp),107),J=dt.b+dt.c+1,z=dt.d+dt.a+1,new Me(w.Math.max(J,i),w.Math.max(z,i/h))},An(gu,"TopdownSizeApproximator/2",988,KB,null,null);var m4t;C(344,1,{871:1},H3),f.Ug=function(t,n){return Kit(this,t,n)},f.Vg=function(){dot(this)},f.Wg=function(){return this.q},f.Xg=function(){return this.f?OG(this.f):null},f.Yg=function(){return OG(this.a)},f.Zg=function(){return this.p},f.$g=function(){return!1},f._g=function(){return this.n},f.ah=function(){return this.p!=null&&!this.b},f.bh=function(t){var n;this.n&&(n=t,$e(this.f,n))},f.dh=function(t,n){var i,s;this.n&&t&&nzt(this,(i=new XVe,s=Lq(i,t),Dcn(i),s),(u$(),yte))},f.eh=function(t){var n;return this.b?null:(n=zKt(this,this.g),or(this.a,n),n.i=this,this.d=t,n)},f.fh=function(t){t>0&&!this.b&&_fe(this,t)},f.b=!1,f.c=0,f.d=-1,f.e=null,f.f=null,f.g=-1,f.j=!1,f.k=!1,f.n=!1,f.o=0,f.q=0,f.r=0,x(cl,"BasicProgressMonitor",344),C(717,205,j0,Z_e),f.rf=function(t,n){Uct(t,n)},x(cl,"BoxLayoutProvider",717),C(983,1,tr,DNe),f.Ne=function(t,n){return Dnn(this,u(t,27),u(n,27))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},f.a=!1,x(cl,"BoxLayoutProvider/1",983),C(163,1,{163:1},FL,CGe),f.Ib=function(){return this.c?Ope(this.c):ag(this.b)},x(cl,"BoxLayoutProvider/Group",163),C(320,22,{3:1,34:1,22:1,320:1},ZR);var P5e,M5e,O5e,vte,_5e=An(cl,"BoxLayoutProvider/PackingMode",320,Nn,zzt,_jt),v4t;C(984,1,tr,eRe),f.Ne=function(t,n){return nBt(u(t,163),u(n,163))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(cl,"BoxLayoutProvider/lambda$0$Type",984),C(985,1,tr,tRe),f.Ne=function(t,n){return qNt(u(t,163),u(n,163))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(cl,"BoxLayoutProvider/lambda$1$Type",985),C(986,1,tr,nRe),f.Ne=function(t,n){return XNt(u(t,163),u(n,163))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(cl,"BoxLayoutProvider/lambda$2$Type",986),C(1384,1,{845:1},rRe),f.Mg=function(t,n){return OR(),!te(n,167)||Sze((E4(),u(t,167)),n)},x(cl,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),C(1385,1,bn,NNe),f.Cd=function(t){dWt(this.a,u(t,149))},x(cl,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),C(1386,1,bn,sRe),f.Cd=function(t){u(t,96),OR()},x(cl,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),C(1390,1,bn,BNe),f.Cd=function(t){LUt(this.a,u(t,96))},x(cl,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),C(1388,1,Qn,hKe),f.Mb=function(t){return VGt(this.a,this.b,u(t,149))},x(cl,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),C(1387,1,Qn,pKe),f.Mb=function(t){return PAt(this.a,this.b,u(t,845))},x(cl,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),C(1389,1,bn,gKe),f.Cd=function(t){zDt(this.a,this.b,u(t,149))},x(cl,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),C(947,1,{},lRe),f.Kb=function(t){return aUe(t)},f.Fb=function(t){return this===t},x(cl,"ElkUtil/lambda$0$Type",947),C(948,1,bn,bKe),f.Cd=function(t){Fen(this.a,this.b,u(t,74))},f.a=0,f.b=0,x(cl,"ElkUtil/lambda$1$Type",948),C(949,1,bn,wKe),f.Cd=function(t){_Ot(this.a,this.b,u(t,166))},f.a=0,f.b=0,x(cl,"ElkUtil/lambda$2$Type",949),C(950,1,bn,mKe),f.Cd=function(t){TRt(this.a,this.b,u(t,135))},f.a=0,f.b=0,x(cl,"ElkUtil/lambda$3$Type",950),C(951,1,bn,FNe),f.Cd=function(t){cDt(this.a,u(t,377))},x(cl,"ElkUtil/lambda$4$Type",951),C(325,1,{34:1,325:1},lOt),f.Fd=function(t){return tAt(this,u(t,242))},f.Fb=function(t){var n;return te(t,325)?(n=u(t,325),this.a==n.a):!1},f.Hb=function(){return Wi(this.a)},f.Ib=function(){return this.a+" (exclusive)"},f.a=0,x(cl,"ExclusiveBounds/ExclusiveLowerBound",325),C(1119,205,j0,cRe),f.rf=function(t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J,ne,se,ke,Pe,Fe,pt,dt;for(n.Ug("Fixed Layout",1),d=u(Ie(t,(gr(),Pke)),223),T=0,P=0,ne=new hn((!t.a&&(t.a=new Se(xr,t,10,11)),t.a));ne.e!=ne.i.gc();){for(z=u(mn(ne),27),dt=u(Ie(z,(a$(),_x)),8),dt&&(ta(z,dt.a,dt.b),u(Ie(z,p5e),181).Hc((Iu(),Fv))&&(O=u(Ie(z,b5e),8),O.a>0&&O.b>0&&gw(z,O.a,O.b,!0,!0))),T=w.Math.max(T,z.i+z.g),P=w.Math.max(P,z.j+z.f),v=new hn((!z.n&&(z.n=new Se(ms,z,1,7)),z.n));v.e!=v.i.gc();)b=u(mn(v),135),dt=u(Ie(b,_x),8),dt&&ta(b,dt.a,dt.b),T=w.Math.max(T,z.i+b.i+b.g),P=w.Math.max(P,z.j+b.j+b.f);for(Pe=new hn((!z.c&&(z.c=new Se(ru,z,9,9)),z.c));Pe.e!=Pe.i.gc();)for(ke=u(mn(Pe),123),dt=u(Ie(ke,_x),8),dt&&ta(ke,dt.a,dt.b),Fe=z.i+ke.i,pt=z.j+ke.j,T=w.Math.max(T,Fe+ke.g),P=w.Math.max(P,pt+ke.f),m=new hn((!ke.n&&(ke.n=new Se(ms,ke,1,7)),ke.n));m.e!=m.i.gc();)b=u(mn(m),135),dt=u(Ie(b,_x),8),dt&&ta(b,dt.a,dt.b),T=w.Math.max(T,Fe+b.i+b.g),P=w.Math.max(P,pt+b.j+b.f);for(c=new gn(wn(b1(z).a.Kc(),new j));$n(c);)i=u(xn(c),74),k=iat(i),T=w.Math.max(T,k.a),P=w.Math.max(P,k.b);for(s=new gn(wn(CP(z).a.Kc(),new j));$n(s);)i=u(xn(s),74),ri(Sh(i))!=t&&(k=iat(i),T=w.Math.max(T,k.a),P=w.Math.max(P,k.b))}if(d==(d1(),nC))for(J=new hn((!t.a&&(t.a=new Se(xr,t,10,11)),t.a));J.e!=J.i.gc();)for(z=u(mn(J),27),s=new gn(wn(b1(z).a.Kc(),new j));$n(s);)i=u(xn(s),74),h=Hon(i),h.b==0?Br(i,Uw,null):Br(i,Uw,h);qe(Ve(Ie(t,(a$(),g5e))))||(se=u(Ie(t,n4t),107),$=T+se.b+se.c,L=P+se.d+se.a,gw(t,$,L,!0,!0)),n.Vg()},x(cl,"FixedLayoutProvider",1119),C(385,137,{3:1,423:1,385:1,96:1,137:1},GH,eZe),f.cg=function(t){var n,i,s,c,d,h,b,m,v;if(t)try{for(m=iv(t,";,;"),d=m,h=0,b=d.length;h>16&Di|n^s<<16},f.Kc=function(){return new zNe(this)},f.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Us(this.b)+")":this.b==null?"pair("+Us(this.a)+",null)":"pair("+Us(this.a)+","+Us(this.b)+")"},x(cl,"Pair",42),C(995,1,co,zNe),f.Nb=function(t){To(this,t)},f.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},f.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw B(new qs)},f.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),B(new Oc)},f.b=!1,f.c=!1,x(cl,"Pair/1",995),C(455,1,{455:1},Oqe),f.Fb=function(t){return gl(this.a,u(t,455).a)&&gl(this.c,u(t,455).c)&&gl(this.d,u(t,455).d)&&gl(this.b,u(t,455).b)},f.Hb=function(){return XI(H(F(Ji,1),Bt,1,5,[this.a,this.c,this.d,this.b]))},f.Ib=function(){return"("+this.a+Xo+this.c+Xo+this.d+Xo+this.b+")"},x(cl,"Quadruple",455),C(1108,205,j0,oRe),f.rf=function(t,n){var i,s,c,d,h;if(n.Ug("Random Layout",1),(!t.a&&(t.a=new Se(xr,t,10,11)),t.a).i==0){n.Vg();return}d=u(Ie(t,(ohe(),h4t)),17),d&&d.a!=0?c=new vL(d.a):c=new wV,i=gT(pe(Ie(t,f4t))),h=gT(pe(Ie(t,p4t))),s=u(Ie(t,d4t),107),sun(t,c,i,h,s),n.Vg()},x(cl,"RandomLayoutProvider",1108),C(240,1,{240:1},GU),f.Fb=function(t){return gl(this.a,u(t,240).a)&&gl(this.b,u(t,240).b)&&gl(this.c,u(t,240).c)},f.Hb=function(){return XI(H(F(Ji,1),Bt,1,5,[this.a,this.b,this.c]))},f.Ib=function(){return"("+this.a+Xo+this.b+Xo+this.c+")"},x(cl,"Triple",240);var S4t;C(562,1,{}),f.Lf=function(){return new Me(this.f.i,this.f.j)},f.of=function(t){return iXe(t,(gr(),bu))?Ie(this.f,x4t):Ie(this.f,t)},f.Mf=function(){return new Me(this.f.g,this.f.f)},f.Nf=function(){return this.g},f.pf=function(t){return rd(this.f,t)},f.Of=function(t){oc(this.f,t.a),sc(this.f,t.b)},f.Pf=function(t){ew(this.f,t.a),Zb(this.f,t.b)},f.Qf=function(t){this.g=t},f.g=0;var x4t;x(S9,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),C(563,1,{853:1},cR),f.Rf=function(){var t,n;if(!this.b)for(this.b=gL(QA(this.a).i),n=new hn(QA(this.a));n.e!=n.i.gc();)t=u(mn(n),135),$e(this.b,new kK(t));return this.b},f.b=null,x(S9,"ElkGraphAdapters/ElkEdgeAdapter",563),C(289,562,{},kb),f.Sf=function(){return Qrt(this)},f.a=null,x(S9,"ElkGraphAdapters/ElkGraphAdapter",289),C(640,562,{187:1},kK),x(S9,"ElkGraphAdapters/ElkLabelAdapter",640),C(639,562,{695:1},MU),f.Rf=function(){return VXt(this)},f.Vf=function(){var t;return t=u(Ie(this.f,(gr(),Q8)),140),!t&&(t=new o7),t},f.Xf=function(){return qXt(this)},f.Zf=function(t){var n;n=new VU(t),Br(this.f,(gr(),Q8),n)},f.$f=function(t){Br(this.f,(gr(),kp),new Xce(t))},f.Tf=function(){return this.d},f.Uf=function(){var t,n;if(!this.a)for(this.a=new Le,n=new gn(wn(CP(u(this.f,27)).a.Kc(),new j));$n(n);)t=u(xn(n),74),$e(this.a,new cR(t));return this.a},f.Wf=function(){var t,n;if(!this.c)for(this.c=new Le,n=new gn(wn(b1(u(this.f,27)).a.Kc(),new j));$n(n);)t=u(xn(n),74),$e(this.c,new cR(t));return this.c},f.Yf=function(){return rL(u(this.f,27)).i!=0||qe(Ve(u(this.f,27).of((gr(),aO))))},f._f=function(){TKt(this,(Mb(),S4t))},f.a=null,f.b=null,f.c=null,f.d=null,f.e=null,x(S9,"ElkGraphAdapters/ElkNodeAdapter",639),C(1284,562,{852:1},HNe),f.Rf=function(){return nYt(this)},f.Uf=function(){var t,n;if(!this.a)for(this.a=gh(u(this.f,123).hh().i),n=new hn(u(this.f,123).hh());n.e!=n.i.gc();)t=u(mn(n),74),$e(this.a,new cR(t));return this.a},f.Wf=function(){var t,n;if(!this.c)for(this.c=gh(u(this.f,123).ih().i),n=new hn(u(this.f,123).ih());n.e!=n.i.gc();)t=u(mn(n),74),$e(this.c,new cR(t));return this.c},f.ag=function(){return u(u(this.f,123).of((gr(),J2)),64)},f.bg=function(){var t,n,i,s,c,d,h,b;for(s=Qf(u(this.f,123)),i=new hn(u(this.f,123).ih());i.e!=i.i.gc();)for(t=u(mn(i),74),b=new hn((!t.c&&(t.c=new jt(Tn,t,5,8)),t.c));b.e!=b.i.gc();){if(h=u(mn(b),84),zm(Ds(h),s))return!0;if(Ds(h)==s&&qe(Ve(Ie(t,(gr(),ote)))))return!0}for(n=new hn(u(this.f,123).hh());n.e!=n.i.gc();)for(t=u(mn(n),74),d=new hn((!t.b&&(t.b=new jt(Tn,t,4,7)),t.b));d.e!=d.i.gc();)if(c=u(mn(d),84),zm(Ds(c),s))return!0;return!1},f.a=null,f.b=null,f.c=null,x(S9,"ElkGraphAdapters/ElkPortAdapter",1284),C(1285,1,tr,iRe),f.Ne=function(t,n){return Lin(u(t,123),u(n,123))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(S9,"ElkGraphAdapters/PortComparator",1285);var jg=hi(ma,"EObject"),oC=hi(b2,uht),Yu=hi(b2,aht),xO=hi(b2,fht),EO=hi(b2,"ElkShape"),Tn=hi(b2,dht),Ti=hi(b2,Mwe),ei=hi(b2,hht),TO=hi(ma,pht),Bx=hi(ma,"EFactory"),E4t,kte=hi(ma,ght),Uf=hi(ma,"EPackage"),oo,T4t,I4t,$5e,UB,P4t,j5e,D5e,N5e,Fh,M4t,O4t,ms=hi(b2,Owe),xr=hi(b2,_we),ru=hi(b2,Rwe);C(93,1,bht),f.th=function(){return this.uh(),null},f.uh=function(){return null},f.vh=function(){return this.uh(),!1},f.wh=function(){return!1},f.xh=function(t){_r(this,t)},x(Q4,"BasicNotifierImpl",93),C(99,93,yht),f.Yh=function(){return ku(this)},f.yh=function(t,n){return t},f.zh=function(){throw B(new Xn)},f.Ah=function(t){var n;return n=is(u(Dt(this.Dh(),this.Fh()),19)),this.Ph().Th(this,n.n,n.f,t)},f.Bh=function(t,n){throw B(new Xn)},f.Ch=function(t,n,i){return Hu(this,t,n,i)},f.Dh=function(){var t;return this.zh()&&(t=this.zh().Nk(),t)?t:this.ii()},f.Eh=function(){return wq(this)},f.Fh=function(){throw B(new Xn)},f.Gh=function(){var t,n;return n=this.$h().Ok(),!n&&this.zh().Tk(n=(v7(),t=cae(qd(this.Dh())),t==null?Mte:new KT(this,t))),n},f.Hh=function(t,n){return t},f.Ih=function(t){var n;return n=t.pk(),n?t.Lj():ci(this.Dh(),t)},f.Jh=function(){var t;return t=this.zh(),t?t.Qk():null},f.Kh=function(){return this.zh()?this.zh().Nk():null},f.Lh=function(t,n,i){return R$(this,t,n,i)},f.Mh=function(t){return Qk(this,t)},f.Nh=function(t,n){return nW(this,t,n)},f.Oh=function(){var t;return t=this.zh(),!!t&&t.Rk()},f.Ph=function(){throw B(new Xn)},f.Qh=function(){return E$(this)},f.Rh=function(t,n,i,s){return _4(this,t,n,s)},f.Sh=function(t,n,i){var s;return s=u(Dt(this.Dh(),n),69),s.wk().zk(this,this.hi(),n-this.ji(),t,i)},f.Th=function(t,n,i,s){return lL(this,t,n,s)},f.Uh=function(t,n,i){var s;return s=u(Dt(this.Dh(),n),69),s.wk().Ak(this,this.hi(),n-this.ji(),t,i)},f.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},f.Wh=function(t){return PV(this,t)},f.Xh=function(t){return mXe(this,t)},f.Zh=function(t){return Hut(this,t)},f.$h=function(){throw B(new Xn)},f._h=function(){return this.zh()?this.zh().Pk():null},f.ai=function(){return E$(this)},f.bi=function(t,n){dq(this,t,n)},f.ci=function(t){this.$h().Sk(t)},f.di=function(t){this.$h().Vk(t)},f.ei=function(t){this.$h().Uk(t)},f.fi=function(t,n){var i,s,c,d;return d=this.Jh(),d&&t&&(n=qo(d.El(),this,n),d.Il(this)),s=this.Ph(),s&&(_q(this,this.Ph(),this.Fh()).Bb&es?(c=s.Qh(),c&&(t?!d&&c.Il(this):c.Hl(this))):(n=(i=this.Fh(),i>=0?this.Ah(n):this.Ph().Th(this,-1-i,null,n)),n=this.Ch(null,-1,n))),this.di(t),n},f.gi=function(t){var n,i,s,c,d,h,b,m;if(i=this.Dh(),d=ci(i,t),n=this.ji(),d>=n)return u(t,69).wk().Dk(this,this.hi(),d-n);if(d<=-1)if(h=s2((Nc(),_o),i,t),h){if(rs(),u(h,69).xk()||(h=w4(Ss(_o,h))),c=(s=this.Ih(h),u(s>=0?this.Lh(s,!0,!0):dw(this,h,!0),160)),m=h.Ik(),m>1||m==-1)return u(u(c,220).Sl(t,!1),79)}else throw B(new Qt(vg+t.xe()+dJ));else if(t.Jk())return s=this.Ih(t),u(s>=0?this.Lh(s,!1,!0):dw(this,t,!1),79);return b=new jKe(this,t),b},f.hi=function(){return hfe(this)},f.ii=function(){return(Jp(),Wt).S},f.ji=function(){return Sn(this.ii())},f.ki=function(t){uq(this,t)},f.Ib=function(){return lf(this)},x(Vt,"BasicEObjectImpl",99);var _4t;C(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),f.li=function(t){var n;return n=dfe(this),n[t]},f.mi=function(t,n){var i;i=dfe(this),pi(i,t,n)},f.ni=function(t){var n;n=dfe(this),pi(n,t,null)},f.th=function(){return u(Yt(this,4),129)},f.uh=function(){throw B(new Xn)},f.vh=function(){return(this.Db&4)!=0},f.zh=function(){throw B(new Xn)},f.oi=function(t){M4(this,2,t)},f.Bh=function(t,n){this.Db=n<<16|this.Db&255,this.oi(t)},f.Dh=function(){return mc(this)},f.Fh=function(){return this.Db>>16},f.Gh=function(){var t,n;return v7(),n=cae(qd((t=u(Yt(this,16),29),t||this.ii()))),n==null?Mte:new KT(this,n)},f.wh=function(){return(this.Db&1)==0},f.Jh=function(){return u(Yt(this,128),2034)},f.Kh=function(){return u(Yt(this,16),29)},f.Oh=function(){return(this.Db&32)!=0},f.Ph=function(){return u(Yt(this,2),54)},f.Vh=function(){return(this.Db&64)!=0},f.$h=function(){throw B(new Xn)},f._h=function(){return u(Yt(this,64),288)},f.ci=function(t){M4(this,16,t)},f.di=function(t){M4(this,128,t)},f.ei=function(t){M4(this,64,t)},f.hi=function(){return lc(this)},f.Db=0,x(Vt,"MinimalEObjectImpl",119),C(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),f.oi=function(t){this.Cb=t},f.Ph=function(){return this.Cb},x(Vt,"MinimalEObjectImpl/Container",120),C(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),f.Lh=function(t,n,i){return Phe(this,t,n,i)},f.Uh=function(t,n,i){return w1e(this,t,n,i)},f.Wh=function(t){return Cae(this,t)},f.bi=function(t,n){hde(this,t,n)},f.ii=function(){return Cl(),O4t},f.ki=function(t){nde(this,t)},f.nf=function(){return mrt(this)},f.gh=function(){return!this.o&&(this.o=new jc((Cl(),Fh),Sp,this,0)),this.o},f.of=function(t){return Ie(this,t)},f.pf=function(t){return rd(this,t)},f.qf=function(t,n){return Br(this,t,n)},x(F0,"EMapPropertyHolderImpl",2083),C(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},J_),f.Lh=function(t,n,i){switch(t){case 0:return this.a;case 1:return this.b}return R$(this,t,n,i)},f.Wh=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return PV(this,t)},f.bi=function(t,n){switch(t){case 0:HL(this,le(pe(n)));return;case 1:zL(this,le(pe(n)));return}dq(this,t,n)},f.ii=function(){return Cl(),T4t},f.ki=function(t){switch(t){case 0:HL(this,0);return;case 1:zL(this,0);return}uq(this,t)},f.Ib=function(){var t;return this.Db&64?lf(this):(t=new Ma(lf(this)),t.a+=" (x: ",vy(t,this.a),t.a+=", y: ",vy(t,this.b),t.a+=")",t.a)},f.a=0,f.b=0,x(F0,"ElkBendPointImpl",572),C(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),f.Lh=function(t,n,i){return jde(this,t,n,i)},f.Sh=function(t,n,i){return nq(this,t,n,i)},f.Uh=function(t,n,i){return BW(this,t,n,i)},f.Wh=function(t){return Yfe(this,t)},f.bi=function(t,n){Vhe(this,t,n)},f.ii=function(){return Cl(),P4t},f.ki=function(t){Ide(this,t)},f.jh=function(){return this.k},f.kh=function(){return QA(this)},f.Ib=function(){return fV(this)},f.k=null,x(F0,"ElkGraphElementImpl",739),C(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),f.Lh=function(t,n,i){return Ude(this,t,n,i)},f.Wh=function(t){return Yde(this,t)},f.bi=function(t,n){qhe(this,t,n)},f.ii=function(){return Cl(),M4t},f.ki=function(t){rhe(this,t)},f.lh=function(){return this.f},f.mh=function(){return this.g},f.nh=function(){return this.i},f.oh=function(){return this.j},f.ph=function(t,n){My(this,t,n)},f.qh=function(t,n){ta(this,t,n)},f.rh=function(t){oc(this,t)},f.sh=function(t){sc(this,t)},f.Ib=function(){return lq(this)},f.f=0,f.g=0,f.i=0,f.j=0,x(F0,"ElkShapeImpl",740),C(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),f.Lh=function(t,n,i){return khe(this,t,n,i)},f.Sh=function(t,n,i){return zhe(this,t,n,i)},f.Uh=function(t,n,i){return Hhe(this,t,n,i)},f.Wh=function(t){return dde(this,t)},f.bi=function(t,n){tpe(this,t,n)},f.ii=function(){return Cl(),I4t},f.ki=function(t){bhe(this,t)},f.hh=function(){return!this.d&&(this.d=new jt(Ti,this,8,5)),this.d},f.ih=function(){return!this.e&&(this.e=new jt(Ti,this,7,4)),this.e},x(F0,"ElkConnectableShapeImpl",741),C(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},WH),f.Ah=function(t){return Dhe(this,t)},f.Lh=function(t,n,i){switch(t){case 3:return hI(this);case 4:return!this.b&&(this.b=new jt(Tn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new jt(Tn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new Se(ei,this,6,6)),this.a;case 7:return Gt(),!this.b&&(this.b=new jt(Tn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new jt(Tn,this,5,8)),this.c.i<=1));case 8:return Gt(),!!US(this);case 9:return Gt(),!!fw(this);case 10:return Gt(),!this.b&&(this.b=new jt(Tn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new jt(Tn,this,5,8)),this.c.i!=0)}return jde(this,t,n,i)},f.Sh=function(t,n,i){var s;switch(n){case 3:return this.Cb&&(i=(s=this.Db>>16,s>=0?Dhe(this,i):this.Cb.Th(this,-1-s,null,i))),mce(this,u(t,27),i);case 4:return!this.b&&(this.b=new jt(Tn,this,4,7)),Yl(this.b,t,i);case 5:return!this.c&&(this.c=new jt(Tn,this,5,8)),Yl(this.c,t,i);case 6:return!this.a&&(this.a=new Se(ei,this,6,6)),Yl(this.a,t,i)}return nq(this,t,n,i)},f.Uh=function(t,n,i){switch(n){case 3:return mce(this,null,i);case 4:return!this.b&&(this.b=new jt(Tn,this,4,7)),qo(this.b,t,i);case 5:return!this.c&&(this.c=new jt(Tn,this,5,8)),qo(this.c,t,i);case 6:return!this.a&&(this.a=new Se(ei,this,6,6)),qo(this.a,t,i)}return BW(this,t,n,i)},f.Wh=function(t){switch(t){case 3:return!!hI(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new jt(Tn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new jt(Tn,this,5,8)),this.c.i<=1));case 8:return US(this);case 9:return fw(this);case 10:return!this.b&&(this.b=new jt(Tn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new jt(Tn,this,5,8)),this.c.i!=0)}return Yfe(this,t)},f.bi=function(t,n){switch(t){case 3:rj(this,u(n,27));return;case 4:!this.b&&(this.b=new jt(Tn,this,4,7)),jn(this.b),!this.b&&(this.b=new jt(Tn,this,4,7)),mi(this.b,u(n,16));return;case 5:!this.c&&(this.c=new jt(Tn,this,5,8)),jn(this.c),!this.c&&(this.c=new jt(Tn,this,5,8)),mi(this.c,u(n,16));return;case 6:!this.a&&(this.a=new Se(ei,this,6,6)),jn(this.a),!this.a&&(this.a=new Se(ei,this,6,6)),mi(this.a,u(n,16));return}Vhe(this,t,n)},f.ii=function(){return Cl(),$5e},f.ki=function(t){switch(t){case 3:rj(this,null);return;case 4:!this.b&&(this.b=new jt(Tn,this,4,7)),jn(this.b);return;case 5:!this.c&&(this.c=new jt(Tn,this,5,8)),jn(this.c);return;case 6:!this.a&&(this.a=new Se(ei,this,6,6)),jn(this.a);return}Ide(this,t)},f.Ib=function(){return sut(this)},x(F0,"ElkEdgeImpl",326),C(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Q_),f.Ah=function(t){return Ahe(this,t)},f.Lh=function(t,n,i){switch(t){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Ai(Yu,this,5)),this.a;case 6:return pXe(this);case 7:return n?AV(this):this.i;case 8:return n?RV(this):this.f;case 9:return!this.g&&(this.g=new jt(ei,this,9,10)),this.g;case 10:return!this.e&&(this.e=new jt(ei,this,10,9)),this.e;case 11:return this.d}return Phe(this,t,n,i)},f.Sh=function(t,n,i){var s,c,d;switch(n){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?Ahe(this,i):this.Cb.Th(this,-1-c,null,i))),wce(this,u(t,74),i);case 9:return!this.g&&(this.g=new jt(ei,this,9,10)),Yl(this.g,t,i);case 10:return!this.e&&(this.e=new jt(ei,this,10,9)),Yl(this.e,t,i)}return d=u(Dt((s=u(Yt(this,16),29),s||(Cl(),UB)),n),69),d.wk().zk(this,lc(this),n-Sn((Cl(),UB)),t,i)},f.Uh=function(t,n,i){switch(n){case 5:return!this.a&&(this.a=new Ai(Yu,this,5)),qo(this.a,t,i);case 6:return wce(this,null,i);case 9:return!this.g&&(this.g=new jt(ei,this,9,10)),qo(this.g,t,i);case 10:return!this.e&&(this.e=new jt(ei,this,10,9)),qo(this.e,t,i)}return w1e(this,t,n,i)},f.Wh=function(t){switch(t){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!pXe(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return Cae(this,t)},f.bi=function(t,n){switch(t){case 1:i5(this,le(pe(n)));return;case 2:s5(this,le(pe(n)));return;case 3:r5(this,le(pe(n)));return;case 4:o5(this,le(pe(n)));return;case 5:!this.a&&(this.a=new Ai(Yu,this,5)),jn(this.a),!this.a&&(this.a=new Ai(Yu,this,5)),mi(this.a,u(n,16));return;case 6:olt(this,u(n,74));return;case 7:XL(this,u(n,84));return;case 8:qL(this,u(n,84));return;case 9:!this.g&&(this.g=new jt(ei,this,9,10)),jn(this.g),!this.g&&(this.g=new jt(ei,this,9,10)),mi(this.g,u(n,16));return;case 10:!this.e&&(this.e=new jt(ei,this,10,9)),jn(this.e),!this.e&&(this.e=new jt(ei,this,10,9)),mi(this.e,u(n,16));return;case 11:Nfe(this,Jn(n));return}hde(this,t,n)},f.ii=function(){return Cl(),UB},f.ki=function(t){switch(t){case 1:i5(this,0);return;case 2:s5(this,0);return;case 3:r5(this,0);return;case 4:o5(this,0);return;case 5:!this.a&&(this.a=new Ai(Yu,this,5)),jn(this.a);return;case 6:olt(this,null);return;case 7:XL(this,null);return;case 8:qL(this,null);return;case 9:!this.g&&(this.g=new jt(ei,this,9,10)),jn(this.g);return;case 10:!this.e&&(this.e=new jt(ei,this,10,9)),jn(this.e);return;case 11:Nfe(this,null);return}nde(this,t)},f.Ib=function(){return vst(this)},f.b=0,f.c=0,f.d=null,f.j=0,f.k=0,x(F0,"ElkEdgeSectionImpl",452),C(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),f.Lh=function(t,n,i){var s;return t==0?(!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab):ca(this,t-Sn(this.ii()),Dt((s=u(Yt(this,16),29),s||this.ii()),t),n,i)},f.Sh=function(t,n,i){var s,c;return n==0?(!this.Ab&&(this.Ab=new Se(hr,this,0,3)),Yl(this.Ab,t,i)):(c=u(Dt((s=u(Yt(this,16),29),s||this.ii()),n),69),c.wk().zk(this,lc(this),n-Sn(this.ii()),t,i))},f.Uh=function(t,n,i){var s,c;return n==0?(!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i)):(c=u(Dt((s=u(Yt(this,16),29),s||this.ii()),n),69),c.wk().Ak(this,lc(this),n-Sn(this.ii()),t,i))},f.Wh=function(t){var n;return t==0?!!this.Ab&&this.Ab.i!=0:sa(this,t-Sn(this.ii()),Dt((n=u(Yt(this,16),29),n||this.ii()),t))},f.Zh=function(t){return dge(this,t)},f.bi=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return}da(this,t-Sn(this.ii()),Dt((i=u(Yt(this,16),29),i||this.ii()),t),n)},f.di=function(t){M4(this,128,t)},f.ii=function(){return Mt(),X4t},f.ki=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return}fa(this,t-Sn(this.ii()),Dt((n=u(Yt(this,16),29),n||this.ii()),t))},f.pi=function(){this.Bb|=1},f.qi=function(t){return JS(this,t)},f.Bb=0,x(Vt,"EModelElementImpl",158),C(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},poe),f.ri=function(t,n){return $ut(this,t,n)},f.si=function(t){var n,i,s,c,d;if(this.a!=ju(t)||t.Bb&256)throw B(new Qt(pJ+t.zb+xw));for(s=Ls(t);Pl(s.a).i!=0;){if(i=u(LP(s,0,(n=u(re(Pl(s.a),0),89),d=n.c,te(d,90)?u(d,29):(Mt(),Va))),29),aw(i))return c=ju(i).wi().si(i),u(c,54).ci(t),c;s=Ls(i)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new YWe(t):new sue(t)},f.ti=function(t,n){return bw(this,t,n)},f.Lh=function(t,n,i){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.a}return ca(this,t-Sn((Mt(),Fg)),Dt((s=u(Yt(this,16),29),s||Fg),t),n,i)},f.Sh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),Yl(this.Ab,t,i);case 1:return this.a&&(i=u(this.a,54).Th(this,4,Uf,i)),Tde(this,u(t,241),i)}return c=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Fg)),n),69),c.wk().zk(this,lc(this),n-Sn((Mt(),Fg)),t,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i);case 1:return Tde(this,null,i)}return c=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Fg)),n),69),c.wk().Ak(this,lc(this),n-Sn((Mt(),Fg)),t,i)},f.Wh=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return sa(this,t-Sn((Mt(),Fg)),Dt((n=u(Yt(this,16),29),n||Fg),t))},f.bi=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:not(this,u(n,241));return}da(this,t-Sn((Mt(),Fg)),Dt((i=u(Yt(this,16),29),i||Fg),t),n)},f.ii=function(){return Mt(),Fg},f.ki=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:not(this,null);return}fa(this,t-Sn((Mt(),Fg)),Dt((n=u(Yt(this,16),29),n||Fg),t))};var Fx,B5e,R4t;x(Vt,"EFactoryImpl",720),C(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},hRe),f.ri=function(t,n){switch(t.hk()){case 12:return u(n,149).Pg();case 13:return Us(n);default:throw B(new Qt(w8+t.xe()+xw))}},f.si=function(t){var n,i,s,c,d,h,b,m;switch(t.G==-1&&(t.G=(n=ju(t),n?sp(n.vi(),t):-1)),t.G){case 4:return d=new coe,d;case 6:return h=new s7,h;case 7:return b=new cse,b;case 8:return s=new WH,s;case 9:return i=new J_,i;case 10:return c=new Q_,c;case 11:return m=new pRe,m;default:throw B(new Qt(pJ+t.zb+xw))}},f.ti=function(t,n){switch(t.hk()){case 13:case 12:return null;default:throw B(new Qt(w8+t.xe()+xw))}},x(F0,"ElkGraphFactoryImpl",1037),C(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),f.Gh=function(){var t,n;return n=(t=u(Yt(this,16),29),cae(qd(t||this.ii()))),n==null?(v7(),v7(),Mte):new vGe(this,n)},f.Lh=function(t,n,i){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.xe()}return ca(this,t-Sn(this.ii()),Dt((s=u(Yt(this,16),29),s||this.ii()),t),n,i)},f.Wh=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return sa(this,t-Sn(this.ii()),Dt((n=u(Yt(this,16),29),n||this.ii()),t))},f.bi=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:this.ui(Jn(n));return}da(this,t-Sn(this.ii()),Dt((i=u(Yt(this,16),29),i||this.ii()),t),n)},f.ii=function(){return Mt(),Y4t},f.ki=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:this.ui(null);return}fa(this,t-Sn(this.ii()),Dt((n=u(Yt(this,16),29),n||this.ii()),t))},f.xe=function(){return this.zb},f.ui=function(t){Xl(this,t)},f.Ib=function(){return ES(this)},f.zb=null,x(Vt,"ENamedElementImpl",448),C(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},Wqe),f.Ah=function(t){return hit(this,t)},f.Lh=function(t,n,i){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new _m(this,Gf,this)),this.rb;case 6:return!this.vb&&(this.vb=new i4(Uf,this,6,7)),this.vb;case 7:return n?this.Db>>16==7?u(this.Cb,241):null:kXe(this)}return ca(this,t-Sn((Mt(),Ip)),Dt((s=u(Yt(this,16),29),s||Ip),t),n,i)},f.Sh=function(t,n,i){var s,c,d;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),Yl(this.Ab,t,i);case 4:return this.sb&&(i=u(this.sb,54).Th(this,1,Bx,i)),Mde(this,u(t,480),i);case 5:return!this.rb&&(this.rb=new _m(this,Gf,this)),Yl(this.rb,t,i);case 6:return!this.vb&&(this.vb=new i4(Uf,this,6,7)),Yl(this.vb,t,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?hit(this,i):this.Cb.Th(this,-1-c,null,i))),Hu(this,t,7,i)}return d=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Ip)),n),69),d.wk().zk(this,lc(this),n-Sn((Mt(),Ip)),t,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i);case 4:return Mde(this,null,i);case 5:return!this.rb&&(this.rb=new _m(this,Gf,this)),qo(this.rb,t,i);case 6:return!this.vb&&(this.vb=new i4(Uf,this,6,7)),qo(this.vb,t,i);case 7:return Hu(this,null,7,i)}return c=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Ip)),n),69),c.wk().Ak(this,lc(this),n-Sn((Mt(),Ip)),t,i)},f.Wh=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!kXe(this)}return sa(this,t-Sn((Mt(),Ip)),Dt((n=u(Yt(this,16),29),n||Ip),t))},f.Zh=function(t){var n;return n=Xnn(this,t),n||dge(this,t)},f.bi=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:Xl(this,Jn(n));return;case 2:t$(this,Jn(n));return;case 3:e$(this,Jn(n));return;case 4:sq(this,u(n,480));return;case 5:!this.rb&&(this.rb=new _m(this,Gf,this)),jn(this.rb),!this.rb&&(this.rb=new _m(this,Gf,this)),mi(this.rb,u(n,16));return;case 6:!this.vb&&(this.vb=new i4(Uf,this,6,7)),jn(this.vb),!this.vb&&(this.vb=new i4(Uf,this,6,7)),mi(this.vb,u(n,16));return}da(this,t-Sn((Mt(),Ip)),Dt((i=u(Yt(this,16),29),i||Ip),t),n)},f.ei=function(t){var n,i;if(t&&this.rb)for(i=new hn(this.rb);i.e!=i.i.gc();)n=mn(i),te(n,364)&&(u(n,364).w=null);M4(this,64,t)},f.ii=function(){return Mt(),Ip},f.ki=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:Xl(this,null);return;case 2:t$(this,null);return;case 3:e$(this,null);return;case 4:sq(this,null);return;case 5:!this.rb&&(this.rb=new _m(this,Gf,this)),jn(this.rb);return;case 6:!this.vb&&(this.vb=new i4(Uf,this,6,7)),jn(this.vb);return}fa(this,t-Sn((Mt(),Ip)),Dt((n=u(Yt(this,16),29),n||Ip),t))},f.pi=function(){WV(this)},f.vi=function(){return!this.rb&&(this.rb=new _m(this,Gf,this)),this.rb},f.wi=function(){return this.sb},f.xi=function(){return this.ub},f.yi=function(){return this.xb},f.zi=function(){return this.yb},f.Ai=function(t){this.ub=t},f.Ib=function(){var t;return this.Db&64?ES(this):(t=new Ma(ES(this)),t.a+=" (nsURI: ",ps(t,this.yb),t.a+=", nsPrefix: ",ps(t,this.xb),t.a+=")",t.a)},f.xb=null,f.yb=null,x(Vt,"EPackageImpl",184),C(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},Pst),f.q=!1,f.r=!1;var A4t=!1;x(F0,"ElkGraphPackageImpl",569),C(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},coe),f.Ah=function(t){return Lhe(this,t)},f.Lh=function(t,n,i){switch(t){case 7:return CXe(this);case 8:return this.a}return Ude(this,t,n,i)},f.Sh=function(t,n,i){var s;switch(n){case 7:return this.Cb&&(i=(s=this.Db>>16,s>=0?Lhe(this,i):this.Cb.Th(this,-1-s,null,i))),kue(this,u(t,167),i)}return nq(this,t,n,i)},f.Uh=function(t,n,i){return n==7?kue(this,null,i):BW(this,t,n,i)},f.Wh=function(t){switch(t){case 7:return!!CXe(this);case 8:return!Et("",this.a)}return Yde(this,t)},f.bi=function(t,n){switch(t){case 7:ppe(this,u(n,167));return;case 8:Afe(this,Jn(n));return}qhe(this,t,n)},f.ii=function(){return Cl(),j5e},f.ki=function(t){switch(t){case 7:ppe(this,null);return;case 8:Afe(this,"");return}rhe(this,t)},f.Ib=function(){return bot(this)},f.a="",x(F0,"ElkLabelImpl",366),C(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},s7),f.Ah=function(t){return Nhe(this,t)},f.Lh=function(t,n,i){switch(t){case 9:return!this.c&&(this.c=new Se(ru,this,9,9)),this.c;case 10:return!this.a&&(this.a=new Se(xr,this,10,11)),this.a;case 11:return ri(this);case 12:return!this.b&&(this.b=new Se(Ti,this,12,3)),this.b;case 13:return Gt(),!this.a&&(this.a=new Se(xr,this,10,11)),this.a.i>0}return khe(this,t,n,i)},f.Sh=function(t,n,i){var s;switch(n){case 9:return!this.c&&(this.c=new Se(ru,this,9,9)),Yl(this.c,t,i);case 10:return!this.a&&(this.a=new Se(xr,this,10,11)),Yl(this.a,t,i);case 11:return this.Cb&&(i=(s=this.Db>>16,s>=0?Nhe(this,i):this.Cb.Th(this,-1-s,null,i))),Pce(this,u(t,27),i);case 12:return!this.b&&(this.b=new Se(Ti,this,12,3)),Yl(this.b,t,i)}return zhe(this,t,n,i)},f.Uh=function(t,n,i){switch(n){case 9:return!this.c&&(this.c=new Se(ru,this,9,9)),qo(this.c,t,i);case 10:return!this.a&&(this.a=new Se(xr,this,10,11)),qo(this.a,t,i);case 11:return Pce(this,null,i);case 12:return!this.b&&(this.b=new Se(Ti,this,12,3)),qo(this.b,t,i)}return Hhe(this,t,n,i)},f.Wh=function(t){switch(t){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!ri(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new Se(xr,this,10,11)),this.a.i>0}return dde(this,t)},f.bi=function(t,n){switch(t){case 9:!this.c&&(this.c=new Se(ru,this,9,9)),jn(this.c),!this.c&&(this.c=new Se(ru,this,9,9)),mi(this.c,u(n,16));return;case 10:!this.a&&(this.a=new Se(xr,this,10,11)),jn(this.a),!this.a&&(this.a=new Se(xr,this,10,11)),mi(this.a,u(n,16));return;case 11:ij(this,u(n,27));return;case 12:!this.b&&(this.b=new Se(Ti,this,12,3)),jn(this.b),!this.b&&(this.b=new Se(Ti,this,12,3)),mi(this.b,u(n,16));return}tpe(this,t,n)},f.ii=function(){return Cl(),D5e},f.ki=function(t){switch(t){case 9:!this.c&&(this.c=new Se(ru,this,9,9)),jn(this.c);return;case 10:!this.a&&(this.a=new Se(xr,this,10,11)),jn(this.a);return;case 11:ij(this,null);return;case 12:!this.b&&(this.b=new Se(Ti,this,12,3)),jn(this.b);return}bhe(this,t)},f.Ib=function(){return Ope(this)},x(F0,"ElkNodeImpl",207),C(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},cse),f.Ah=function(t){return $he(this,t)},f.Lh=function(t,n,i){return t==9?Qf(this):khe(this,t,n,i)},f.Sh=function(t,n,i){var s;switch(n){case 9:return this.Cb&&(i=(s=this.Db>>16,s>=0?$he(this,i):this.Cb.Th(this,-1-s,null,i))),vce(this,u(t,27),i)}return zhe(this,t,n,i)},f.Uh=function(t,n,i){return n==9?vce(this,null,i):Hhe(this,t,n,i)},f.Wh=function(t){return t==9?!!Qf(this):dde(this,t)},f.bi=function(t,n){switch(t){case 9:ape(this,u(n,27));return}tpe(this,t,n)},f.ii=function(){return Cl(),N5e},f.ki=function(t){switch(t){case 9:ape(this,null);return}bhe(this,t)},f.Ib=function(){return ict(this)},x(F0,"ElkPortImpl",193);var L4t=hi(Yo,"BasicEMap/Entry");C(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},pRe),f.Fb=function(t){return this===t},f.ld=function(){return this.b},f.Hb=function(){return $b(this)},f.Di=function(t){Lfe(this,u(t,149))},f.Lh=function(t,n,i){switch(t){case 0:return this.b;case 1:return this.c}return R$(this,t,n,i)},f.Wh=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return PV(this,t)},f.bi=function(t,n){switch(t){case 0:Lfe(this,u(n,149));return;case 1:Rfe(this,n);return}dq(this,t,n)},f.ii=function(){return Cl(),Fh},f.ki=function(t){switch(t){case 0:Lfe(this,null);return;case 1:Rfe(this,null);return}uq(this,t)},f.Bi=function(){var t;return this.a==-1&&(t=this.b,this.a=t?Vr(t):0),this.a},f.md=function(){return this.c},f.Ci=function(t){this.a=t},f.nd=function(t){var n;return n=this.c,Rfe(this,t),n},f.Ib=function(){var t;return this.Db&64?lf(this):(t=new Hp,lr(lr(lr(t,this.b?this.b.Pg():Cc),lY),B7(this.c)),t.a)},f.a=-1,f.c=null;var Sp=x(F0,"ElkPropertyToValueMapEntryImpl",1122);C(996,1,{},wRe),x(Mo,"JsonAdapter",996),C(216,63,m1,Ld),x(Mo,"JsonImportException",216),C(868,1,{},pit),x(Mo,"JsonImporter",868),C(903,1,{},vKe),x(Mo,"JsonImporter/lambda$0$Type",903),C(904,1,{},yKe),x(Mo,"JsonImporter/lambda$1$Type",904),C(912,1,{},KNe),x(Mo,"JsonImporter/lambda$10$Type",912),C(914,1,{},kKe),x(Mo,"JsonImporter/lambda$11$Type",914),C(915,1,{},CKe),x(Mo,"JsonImporter/lambda$12$Type",915),C(921,1,{},Lqe),x(Mo,"JsonImporter/lambda$13$Type",921),C(920,1,{},$qe),x(Mo,"JsonImporter/lambda$14$Type",920),C(916,1,{},SKe),x(Mo,"JsonImporter/lambda$15$Type",916),C(917,1,{},xKe),x(Mo,"JsonImporter/lambda$16$Type",917),C(918,1,{},EKe),x(Mo,"JsonImporter/lambda$17$Type",918),C(919,1,{},TKe),x(Mo,"JsonImporter/lambda$18$Type",919),C(924,1,{},UNe),x(Mo,"JsonImporter/lambda$19$Type",924),C(905,1,{},GNe),x(Mo,"JsonImporter/lambda$2$Type",905),C(922,1,{},WNe),x(Mo,"JsonImporter/lambda$20$Type",922),C(923,1,{},VNe),x(Mo,"JsonImporter/lambda$21$Type",923),C(927,1,{},qNe),x(Mo,"JsonImporter/lambda$22$Type",927),C(925,1,{},XNe),x(Mo,"JsonImporter/lambda$23$Type",925),C(926,1,{},YNe),x(Mo,"JsonImporter/lambda$24$Type",926),C(929,1,{},JNe),x(Mo,"JsonImporter/lambda$25$Type",929),C(928,1,{},QNe),x(Mo,"JsonImporter/lambda$26$Type",928),C(930,1,bn,IKe),f.Cd=function(t){uKt(this.b,this.a,Jn(t))},x(Mo,"JsonImporter/lambda$27$Type",930),C(931,1,bn,PKe),f.Cd=function(t){aKt(this.b,this.a,Jn(t))},x(Mo,"JsonImporter/lambda$28$Type",931),C(932,1,{},MKe),x(Mo,"JsonImporter/lambda$29$Type",932),C(908,1,{},ZNe),x(Mo,"JsonImporter/lambda$3$Type",908),C(933,1,{},OKe),x(Mo,"JsonImporter/lambda$30$Type",933),C(934,1,{},eBe),x(Mo,"JsonImporter/lambda$31$Type",934),C(935,1,{},tBe),x(Mo,"JsonImporter/lambda$32$Type",935),C(936,1,{},nBe),x(Mo,"JsonImporter/lambda$33$Type",936),C(937,1,{},rBe),x(Mo,"JsonImporter/lambda$34$Type",937),C(870,1,{},iBe),x(Mo,"JsonImporter/lambda$35$Type",870),C(941,1,{},xWe),x(Mo,"JsonImporter/lambda$36$Type",941),C(938,1,bn,oBe),f.Cd=function(t){gHt(this.a,u(t,377))},x(Mo,"JsonImporter/lambda$37$Type",938),C(939,1,bn,_Ke),f.Cd=function(t){Y_t(this.a,this.b,u(t,166))},x(Mo,"JsonImporter/lambda$38$Type",939),C(940,1,bn,RKe),f.Cd=function(t){J_t(this.a,this.b,u(t,166))},x(Mo,"JsonImporter/lambda$39$Type",940),C(906,1,{},sBe),x(Mo,"JsonImporter/lambda$4$Type",906),C(942,1,bn,lBe),f.Cd=function(t){bHt(this.a,u(t,8))},x(Mo,"JsonImporter/lambda$40$Type",942),C(907,1,{},cBe),x(Mo,"JsonImporter/lambda$5$Type",907),C(911,1,{},uBe),x(Mo,"JsonImporter/lambda$6$Type",911),C(909,1,{},aBe),x(Mo,"JsonImporter/lambda$7$Type",909),C(910,1,{},fBe),x(Mo,"JsonImporter/lambda$8$Type",910),C(913,1,{},dBe),x(Mo,"JsonImporter/lambda$9$Type",913),C(961,1,bn,hBe),f.Cd=function(t){d4(this.a,new Rm(Jn(t)))},x(Mo,"JsonMetaDataConverter/lambda$0$Type",961),C(962,1,bn,pBe),f.Cd=function(t){lNt(this.a,u(t,245))},x(Mo,"JsonMetaDataConverter/lambda$1$Type",962),C(963,1,bn,gBe),f.Cd=function(t){sFt(this.a,u(t,143))},x(Mo,"JsonMetaDataConverter/lambda$2$Type",963),C(964,1,bn,bBe),f.Cd=function(t){cNt(this.a,u(t,170))},x(Mo,"JsonMetaDataConverter/lambda$3$Type",964),C(245,22,{3:1,34:1,22:1,245:1},Q3);var GB,WB,Cte,VB,qB,XB,Ste,xte,YB=An(XP,"GraphFeature",245,Nn,GKt,Ljt),$4t;C(11,1,{34:1,149:1},Fr,fi,St,go),f.Fd=function(t){return nAt(this,u(t,149))},f.Fb=function(t){return iXe(this,t)},f.Sg=function(){return Ke(this)},f.Pg=function(){return this.b},f.Hb=function(){return Z1(this.b)},f.Ib=function(){return this.b},x(XP,"Property",11),C(671,1,tr,sK),f.Ne=function(t,n){return dVt(this,u(t,96),u(n,96))},f.Fb=function(t){return this===t},f.Oe=function(){return new Wn(this)},x(XP,"PropertyHolderComparator",671),C(709,1,co,Koe),f.Nb=function(t){To(this,t)},f.Pb=function(){return hKt(this)},f.Qb=function(){dze()},f.Ob=function(){return!!this.a},x(wD,"ElkGraphUtil/AncestorIterator",709);var F5e=hi(Yo,"EList");C(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),f.bd=function(t,n){IS(this,t,n)},f.Fc=function(t){return Dn(this,t)},f.cd=function(t,n){return rde(this,t,n)},f.Gc=function(t){return mi(this,t)},f.Ii=function(){return new r4(this)},f.Ji=function(){return new UT(this)},f.Ki=function(t){return jI(this,t)},f.Li=function(){return!0},f.Mi=function(t,n){},f.Ni=function(){},f.Oi=function(t,n){sW(this,t,n)},f.Pi=function(t,n,i){},f.Qi=function(t,n){},f.Ri=function(t,n,i){},f.Fb=function(t){return Hlt(this,t)},f.Hb=function(){return Zfe(this)},f.Si=function(){return!1},f.Kc=function(){return new hn(this)},f.ed=function(){return new n4(this)},f.fd=function(t){var n;if(n=this.gc(),t<0||t>n)throw B(new Mm(t,n));return new fG(this,t)},f.Ui=function(t,n){this.Ti(t,this.dd(n))},f.Mc=function(t){return LL(this,t)},f.Wi=function(t,n){return n},f.hd=function(t,n){return qy(this,t,n)},f.Ib=function(){return Vde(this)},f.Yi=function(){return!0},f.Zi=function(t,n){return y5(this,n)},x(Yo,"AbstractEList",70),C(66,70,ih,Z_,Qb,Vfe),f.Ei=function(t,n){return rq(this,t,n)},f.Fi=function(t){return Brt(this,t)},f.Gi=function(t,n){JI(this,t,n)},f.Hi=function(t){yI(this,t)},f.$i=function(t){return lfe(this,t)},f.$b=function(){uS(this)},f.Hc=function(t){return j5(this,t)},f.Xb=function(t){return re(this,t)},f._i=function(t){var n,i,s;++this.j,i=this.g==null?0:this.g.length,t>i&&(s=this.g,n=i+(i/2|0)+4,n=0?(this.gd(n),!0):!1},f.Xi=function(t,n){return this.Dj(t,this.Zi(t,n))},f.gc=function(){return this.Ej()},f.Pc=function(){return this.Fj()},f.Qc=function(t){return this.Gj(t)},f.Ib=function(){return this.Hj()},x(Yo,"DelegatingEList",2093),C(2094,2093,i1t),f.Ei=function(t,n){return Hpe(this,t,n)},f.Fi=function(t){return this.Ei(this.Ej(),t)},f.Gi=function(t,n){Mst(this,t,n)},f.Hi=function(t){wst(this,t)},f.Li=function(){return!this.Mj()},f.$b=function(){r9(this)},f.Ij=function(t,n,i,s,c){return new rXe(this,t,n,i,s,c)},f.Jj=function(t){_r(this.jj(),t)},f.Kj=function(){return null},f.Lj=function(){return-1},f.jj=function(){return null},f.Mj=function(){return!1},f.Nj=function(t,n){return n},f.Oj=function(t,n){return n},f.Pj=function(){return!1},f.Qj=function(){return!this.Aj()},f.Ti=function(t,n){var i,s;return this.Pj()?(s=this.Qj(),i=p1e(this,t,n),this.Jj(this.Ij(7,Ae(n),i,t,s)),i):p1e(this,t,n)},f.gd=function(t){var n,i,s,c;return this.Pj()?(i=null,s=this.Qj(),n=this.Ij(4,c=RA(this,t),null,t,s),this.Mj()&&c?(i=this.Oj(c,i),i?(i.nj(n),i.oj()):this.Jj(n)):i?(i.nj(n),i.oj()):this.Jj(n),c):(c=RA(this,t),this.Mj()&&c&&(i=this.Oj(c,null),i&&i.oj()),c)},f.Xi=function(t,n){return jct(this,t,n)},x(Q4,"DelegatingNotifyingListImpl",2094),C(152,1,dM),f.nj=function(t){return Zhe(this,t)},f.oj=function(){pW(this)},f.gj=function(){return this.d},f.Kj=function(){return null},f.Rj=function(){return null},f.hj=function(t){return-1},f.ij=function(){return Slt(this)},f.jj=function(){return null},f.kj=function(){return vpe(this)},f.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},f.Sj=function(){return!1},f.mj=function(t){var n,i,s,c,d,h,b,m,v,k,T;switch(this.d){case 1:case 2:switch(c=t.gj(),c){case 1:case 2:if(d=t.jj(),fe(d)===fe(this.jj())&&this.hj(null)==t.hj(null))return this.g=t.ij(),t.gj()==1&&(this.d=1),!0}case 4:{switch(c=t.gj(),c){case 4:{if(d=t.jj(),fe(d)===fe(this.jj())&&this.hj(null)==t.hj(null))return v=oge(this),m=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,h=t.lj(),this.d=6,T=new Qb(2),m<=h?(Dn(T,this.n),Dn(T,t.kj()),this.g=H(F(Bn,1),ur,28,15,[this.o=m,h+1])):(Dn(T,t.kj()),Dn(T,this.n),this.g=H(F(Bn,1),ur,28,15,[this.o=h,m])),this.n=T,v||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=t.gj(),c){case 4:{if(d=t.jj(),fe(d)===fe(this.jj())&&this.hj(null)==t.hj(null)){for(v=oge(this),h=t.lj(),k=u(this.g,53),s=be(Bn,ur,28,k.length+1,15,1),n=0;n>>0,n.toString(16))),s.a+=" (eventType: ",this.d){case 1:{s.a+="SET";break}case 2:{s.a+="UNSET";break}case 3:{s.a+="ADD";break}case 5:{s.a+="ADD_MANY";break}case 4:{s.a+="REMOVE";break}case 6:{s.a+="REMOVE_MANY";break}case 7:{s.a+="MOVE";break}case 8:{s.a+="REMOVING_ADAPTER";break}case 9:{s.a+="RESOLVE";break}default:{OK(s,this.d);break}}if(act(this)&&(s.a+=", touch: true"),s.a+=", position: ",OK(s,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),s.a+=", notifier: ",A7(s,this.jj()),s.a+=", feature: ",A7(s,this.Kj()),s.a+=", oldValue: ",A7(s,vpe(this)),s.a+=", newValue: ",this.d==6&&te(this.g,53)){for(i=u(this.g,53),s.a+="[",t=0;t10?((!this.b||this.c.j!=this.a)&&(this.b=new G7(this),this.a=this.j),Mf(this.b,t)):j5(this,t)},f.Yi=function(){return!0},f.a=0,x(Yo,"AbstractEList/1",966),C(302,77,_X,Mm),x(Yo,"AbstractEList/BasicIndexOutOfBoundsException",302),C(37,1,co,hn),f.Nb=function(t){To(this,t)},f.Xj=function(){if(this.i.j!=this.f)throw B(new ea)},f.Yj=function(){return mn(this)},f.Ob=function(){return this.e!=this.i.gc()},f.Pb=function(){return this.Yj()},f.Qb=function(){BS(this)},f.e=0,f.f=0,f.g=-1,x(Yo,"AbstractEList/EIterator",37),C(286,37,Eh,n4,fG),f.Qb=function(){BS(this)},f.Rb=function(t){Dnt(this,t)},f.Zj=function(){var t;try{return t=this.d.Xb(--this.e),this.Xj(),this.g=this.e,t}catch(n){throw n=li(n),te(n,77)?(this.Xj(),B(new qs)):B(n)}},f.$j=function(t){Hrt(this,t)},f.Sb=function(){return this.e!=0},f.Tb=function(){return this.e},f.Ub=function(){return this.Zj()},f.Vb=function(){return this.e-1},f.Wb=function(t){this.$j(t)},x(Yo,"AbstractEList/EListIterator",286),C(355,37,co,r4),f.Yj=function(){return MV(this)},f.Qb=function(){throw B(new Xn)},x(Yo,"AbstractEList/NonResolvingEIterator",355),C(398,286,Eh,UT,$ce),f.Rb=function(t){throw B(new Xn)},f.Yj=function(){var t;try{return t=this.c.Vi(this.e),this.Xj(),this.g=this.e++,t}catch(n){throw n=li(n),te(n,77)?(this.Xj(),B(new qs)):B(n)}},f.Zj=function(){var t;try{return t=this.c.Vi(--this.e),this.Xj(),this.g=this.e,t}catch(n){throw n=li(n),te(n,77)?(this.Xj(),B(new qs)):B(n)}},f.Qb=function(){throw B(new Xn)},f.Wb=function(t){throw B(new Xn)},x(Yo,"AbstractEList/NonResolvingEListIterator",398),C(2080,70,o1t),f.Ei=function(t,n){var i,s,c,d,h,b,m,v,k,T,P;if(c=n.gc(),c!=0){for(v=u(Yt(this.a,4),129),k=v==null?0:v.length,P=k+c,s=QW(this,P),T=k-t,T>0&&Ol(v,t,s,t+c,T),m=n.Kc(),h=0;hi)throw B(new Mm(t,i));return new Eqe(this,t)},f.$b=function(){var t,n;++this.j,t=u(Yt(this.a,4),129),n=t==null?0:t.length,R5(this,null),sW(this,n,t)},f.Hc=function(t){var n,i,s,c,d;if(n=u(Yt(this.a,4),129),n!=null){if(t!=null){for(s=n,c=0,d=s.length;c=i)throw B(new Mm(t,i));return n[t]},f.dd=function(t){var n,i,s;if(n=u(Yt(this.a,4),129),n!=null){if(t!=null){for(i=0,s=n.length;ii)throw B(new Mm(t,i));return new xqe(this,t)},f.Ti=function(t,n){var i,s,c;if(i=Vnt(this),c=i==null?0:i.length,t>=c)throw B(new ys(SJ+t+z0+c));if(n>=c)throw B(new ys(xJ+n+z0+c));return s=i[n],t!=n&&(t0&&Ol(t,0,n,0,i),n},f.Qc=function(t){var n,i,s;return n=u(Yt(this.a,4),129),s=n==null?0:n.length,s>0&&(t.lengths&&pi(t,s,null),t};var j4t;x(Yo,"ArrayDelegatingEList",2080),C(1051,37,co,TJe),f.Xj=function(){if(this.b.j!=this.f||fe(u(Yt(this.b.a,4),129))!==fe(this.a))throw B(new ea)},f.Qb=function(){BS(this),this.a=u(Yt(this.b.a,4),129)},x(Yo,"ArrayDelegatingEList/EIterator",1051),C(722,286,Eh,NVe,xqe),f.Xj=function(){if(this.b.j!=this.f||fe(u(Yt(this.b.a,4),129))!==fe(this.a))throw B(new ea)},f.$j=function(t){Hrt(this,t),this.a=u(Yt(this.b.a,4),129)},f.Qb=function(){BS(this),this.a=u(Yt(this.b.a,4),129)},x(Yo,"ArrayDelegatingEList/EListIterator",722),C(1052,355,co,IJe),f.Xj=function(){if(this.b.j!=this.f||fe(u(Yt(this.b.a,4),129))!==fe(this.a))throw B(new ea)},x(Yo,"ArrayDelegatingEList/NonResolvingEIterator",1052),C(723,398,Eh,BVe,Eqe),f.Xj=function(){if(this.b.j!=this.f||fe(u(Yt(this.b.a,4),129))!==fe(this.a))throw B(new ea)},x(Yo,"ArrayDelegatingEList/NonResolvingEListIterator",723),C(615,302,_X,bU),x(Yo,"BasicEList/BasicIndexOutOfBoundsException",615),C(710,66,ih,Sle),f.bd=function(t,n){throw B(new Xn)},f.Fc=function(t){throw B(new Xn)},f.cd=function(t,n){throw B(new Xn)},f.Gc=function(t){throw B(new Xn)},f.$b=function(){throw B(new Xn)},f._i=function(t){throw B(new Xn)},f.Kc=function(){return this.Ii()},f.ed=function(){return this.Ji()},f.fd=function(t){return this.Ki(t)},f.Ti=function(t,n){throw B(new Xn)},f.Ui=function(t,n){throw B(new Xn)},f.gd=function(t){throw B(new Xn)},f.Mc=function(t){throw B(new Xn)},f.hd=function(t,n){throw B(new Xn)},x(Yo,"BasicEList/UnmodifiableEList",710),C(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),f.bd=function(t,n){URt(this,t,u(n,44))},f.Fc=function(t){return DAt(this,u(t,44))},f.Jc=function(t){Po(this,t)},f.Xb=function(t){return u(re(this.c,t),136)},f.Ti=function(t,n){return u(this.c.Ti(t,n),44)},f.Ui=function(t,n){GRt(this,t,u(n,44))},f.Lc=function(){return new xt(null,new Pt(this,16))},f.gd=function(t){return u(this.c.gd(t),44)},f.hd=function(t,n){return sNt(this,t,u(n,44))},f.jd=function(t){k0(this,t)},f.Nc=function(){return new Pt(this,16)},f.Oc=function(){return new xt(null,new Pt(this,16))},f.cd=function(t,n){return this.c.cd(t,n)},f.Gc=function(t){return this.c.Gc(t)},f.$b=function(){this.c.$b()},f.Hc=function(t){return this.c.Hc(t)},f.Ic=function(t){return HI(this.c,t)},f._j=function(){var t,n,i;if(this.d==null){for(this.d=be(z5e,Ywe,66,2*this.f+1,0,1),i=this.e,this.f=0,n=this.c.Kc();n.e!=n.i.gc();)t=u(n.Yj(),136),j$(this,t);this.e=i}},f.Fb=function(t){return dWe(this,t)},f.Hb=function(){return Zfe(this.c)},f.dd=function(t){return this.c.dd(t)},f.ak=function(){this.c=new wBe(this)},f.dc=function(){return this.f==0},f.Kc=function(){return this.c.Kc()},f.ed=function(){return this.c.ed()},f.fd=function(t){return this.c.fd(t)},f.bk=function(){return SI(this)},f.ck=function(t,n,i){return new EWe(t,n,i)},f.dk=function(){return new kRe},f.Mc=function(t){return QZe(this,t)},f.gc=function(){return this.f},f.kd=function(t,n){return new V1(this.c,t,n)},f.Pc=function(){return this.c.Pc()},f.Qc=function(t){return this.c.Qc(t)},f.Ib=function(){return Vde(this.c)},f.e=0,f.f=0,x(Yo,"BasicEMap",721),C(1046,66,ih,wBe),f.Mi=function(t,n){COt(this,u(n,136))},f.Pi=function(t,n,i){var s;++(s=this,u(n,136),s).a.e},f.Qi=function(t,n){SOt(this,u(n,136))},f.Ri=function(t,n,i){CAt(this,u(n,136),u(i,136))},f.Oi=function(t,n){Vet(this.a)},x(Yo,"BasicEMap/1",1046),C(1047,66,ih,kRe),f.aj=function(t){return be(afn,s1t,621,t,0,1)},x(Yo,"BasicEMap/2",1047),C(1048,ad,Bc,mBe),f.$b=function(){this.a.c.$b()},f.Hc=function(t){return vV(this.a,t)},f.Kc=function(){return this.a.f==0?(Lk(),MO.a):new eze(this.a)},f.Mc=function(t){var n;return n=this.a.f,x$(this.a,t),this.a.f!=n},f.gc=function(){return this.a.f},x(Yo,"BasicEMap/3",1048),C(1049,31,sv,vBe),f.$b=function(){this.a.c.$b()},f.Hc=function(t){return Klt(this.a,t)},f.Kc=function(){return this.a.f==0?(Lk(),MO.a):new tze(this.a)},f.gc=function(){return this.a.f},x(Yo,"BasicEMap/4",1049),C(1050,ad,Bc,yBe),f.$b=function(){this.a.c.$b()},f.Hc=function(t){var n,i,s,c,d,h,b,m,v;if(this.a.f>0&&te(t,44)&&(this.a._j(),m=u(t,44),b=m.ld(),c=b==null?0:Vr(b),d=yce(this.a,c),n=this.a.d[d],n)){for(i=u(n.g,379),v=n.i,h=0;h"+this.c},f.a=0;var afn=x(Yo,"BasicEMap/EntryImpl",621);C(546,1,{},eR),x(Yo,"BasicEMap/View",546);var MO;C(783,1,{}),f.Fb=function(t){return npe((Ot(),Jo),t)},f.Hb=function(){return fde((Ot(),Jo))},f.Ib=function(){return ag((Ot(),Jo))},x(Yo,"ECollections/BasicEmptyUnmodifiableEList",783),C(1348,1,Eh,CRe),f.Nb=function(t){To(this,t)},f.Rb=function(t){throw B(new Xn)},f.Ob=function(){return!1},f.Sb=function(){return!1},f.Pb=function(){throw B(new qs)},f.Tb=function(){return 0},f.Ub=function(){throw B(new qs)},f.Vb=function(){return-1},f.Qb=function(){throw B(new Xn)},f.Wb=function(t){throw B(new Xn)},x(Yo,"ECollections/BasicEmptyUnmodifiableEList/1",1348),C(1346,783,{20:1,16:1,15:1,61:1},aFe),f.bd=function(t,n){Eze()},f.Fc=function(t){return Tze()},f.cd=function(t,n){return Ize()},f.Gc=function(t){return Pze()},f.$b=function(){Mze()},f.Hc=function(t){return!1},f.Ic=function(t){return!1},f.Jc=function(t){Po(this,t)},f.Xb=function(t){return Tle((Ot(),t)),null},f.dd=function(t){return-1},f.dc=function(){return!0},f.Kc=function(){return this.a},f.ed=function(){return this.a},f.fd=function(t){return this.a},f.Ti=function(t,n){return Oze()},f.Ui=function(t,n){_ze()},f.Lc=function(){return new xt(null,new Pt(this,16))},f.gd=function(t){return Rze()},f.Mc=function(t){return Aze()},f.hd=function(t,n){return Lze()},f.gc=function(){return 0},f.jd=function(t){k0(this,t)},f.Nc=function(){return new Pt(this,16)},f.Oc=function(){return new xt(null,new Pt(this,16))},f.kd=function(t,n){return Ot(),new V1(Jo,t,n)},f.Pc=function(){return Sue((Ot(),Jo))},f.Qc=function(t){return Ot(),$S(Jo,t)},x(Yo,"ECollections/EmptyUnmodifiableEList",1346),C(1347,783,{20:1,16:1,15:1,61:1,597:1},fFe),f.bd=function(t,n){Eze()},f.Fc=function(t){return Tze()},f.cd=function(t,n){return Ize()},f.Gc=function(t){return Pze()},f.$b=function(){Mze()},f.Hc=function(t){return!1},f.Ic=function(t){return!1},f.Jc=function(t){Po(this,t)},f.Xb=function(t){return Tle((Ot(),t)),null},f.dd=function(t){return-1},f.dc=function(){return!0},f.Kc=function(){return this.a},f.ed=function(){return this.a},f.fd=function(t){return this.a},f.Ti=function(t,n){return Oze()},f.Ui=function(t,n){_ze()},f.Lc=function(){return new xt(null,new Pt(this,16))},f.gd=function(t){return Rze()},f.Mc=function(t){return Aze()},f.hd=function(t,n){return Lze()},f.gc=function(){return 0},f.jd=function(t){k0(this,t)},f.Nc=function(){return new Pt(this,16)},f.Oc=function(){return new xt(null,new Pt(this,16))},f.kd=function(t,n){return Ot(),new V1(Jo,t,n)},f.Pc=function(){return Sue((Ot(),Jo))},f.Qc=function(t){return Ot(),$S(Jo,t)},f.bk=function(){return Ot(),Ot(),Rh},x(Yo,"ECollections/EmptyUnmodifiableEMap",1347);var K5e=hi(Yo,"Enumerator"),JB;C(288,1,{288:1},Tq),f.Fb=function(t){var n;return this===t?!0:te(t,288)?(n=u(t,288),this.f==n.f&&CDt(this.i,n.i)&&ZU(this.a,this.f&256?n.f&256?n.a:null:n.f&256?null:n.a)&&ZU(this.d,n.d)&&ZU(this.g,n.g)&&ZU(this.e,n.e)&&Wqt(this,n)):!1},f.Hb=function(){return this.f},f.Ib=function(){return Cct(this)},f.f=0;var D4t=0,N4t=0,B4t=0,F4t=0,U5e=0,G5e=0,W5e=0,V5e=0,q5e=0,z4t,zx=0,Hx=0,H4t=0,K4t=0,QB,X5e;x(Yo,"URI",288),C(1121,45,u2,dFe),f.zc=function(t,n){return u(Cs(this,Jn(t),u(n,288)),288)},x(Yo,"URI/URICache",1121),C(506,66,ih,bRe,NA),f.Si=function(){return!0},x(Yo,"UniqueEList",506),C(590,63,m1,_L),x(Yo,"WrappedException",590);var hr=hi(ma,u1t),Hv=hi(ma,a1t),Tc=hi(ma,f1t),Kv=hi(ma,d1t),Gf=hi(ma,h1t),Ua=hi(ma,"EClass"),Ite=hi(ma,"EDataType"),U4t;C(1233,45,u2,hFe),f.xc=function(t){return lo(t)?$l(this,t):Rs(ss(this.f,t))},x(ma,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var ZB=hi(ma,"EEnum"),I1=hi(ma,p1t),hs=hi(ma,g1t),Ga=hi(ma,b1t),Wa,Gw=hi(ma,w1t),Uv=hi(ma,m1t);C(1042,1,{},gRe),f.Ib=function(){return"NIL"},x(ma,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var G4t;C(1041,45,u2,pFe),f.xc=function(t){return lo(t)?$l(this,t):Rs(ss(this.f,t))},x(ma,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var hc=hi(ma,v1t),k6=hi(ma,"EValidator/PatternMatcher"),Y5e,J5e,Wt,xp,Gv,Ng,W4t,V4t,q4t,Bg,Ep,Fg,Ww,Sd,X4t,Y4t,Va,Tp,J4t,Ip,Wv,Z2,ns,Q4t,Z4t,Vw,eF=hi(ni,"FeatureMap/Entry");C(545,1,{76:1},tA),f.Lk=function(){return this.a},f.md=function(){return this.b},x(Vt,"BasicEObjectImpl/1",545),C(1040,1,OJ,jKe),f.Fk=function(t){return nW(this.a,this.b,t)},f.Qj=function(){return mXe(this.a,this.b)},f.Wb=function(t){fae(this.a,this.b,t)},f.Gk=function(){vNt(this.a,this.b)},x(Vt,"BasicEObjectImpl/4",1040),C(2081,1,{114:1}),f.Mk=function(t){this.e=t==0?e6t:be(Ji,Bt,1,t,5,1)},f.li=function(t){return this.e[t]},f.mi=function(t,n){this.e[t]=n},f.ni=function(t){this.e[t]=null},f.Nk=function(){return this.c},f.Ok=function(){throw B(new Xn)},f.Pk=function(){throw B(new Xn)},f.Qk=function(){return this.d},f.Rk=function(){return this.e!=null},f.Sk=function(t){this.c=t},f.Tk=function(t){throw B(new Xn)},f.Uk=function(t){throw B(new Xn)},f.Vk=function(t){this.d=t};var e6t;x(Vt,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),C(192,2081,{114:1},If),f.Ok=function(){return this.a},f.Pk=function(){return this.b},f.Tk=function(t){this.a=t},f.Uk=function(t){this.b=t},x(Vt,"BasicEObjectImpl/EPropertiesHolderImpl",192),C(516,99,yht,tR),f.uh=function(){return this.f},f.zh=function(){return this.k},f.Bh=function(t,n){this.g=t,this.i=n},f.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},f.Fh=function(){return this.i},f.wh=function(){return(this.j&1)!=0},f.Ph=function(){return this.g},f.Vh=function(){return(this.j&4)!=0},f.$h=function(){return!this.k&&(this.k=new If),this.k},f.ci=function(t){this.$h().Sk(t),t?this.j|=2:this.j&=-3},f.ei=function(t){this.$h().Uk(t),t?this.j|=4:this.j&=-5},f.ii=function(){return(Jp(),Wt).S},f.i=0,f.j=1,x(Vt,"EObjectImpl",516),C(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},sue),f.li=function(t){return this.e[t]},f.mi=function(t,n){this.e[t]=n},f.ni=function(t){this.e[t]=null},f.Dh=function(){return this.d},f.Ih=function(t){return ci(this.d,t)},f.Kh=function(){return this.d},f.Oh=function(){return this.e!=null},f.$h=function(){return!this.k&&(this.k=new SRe),this.k},f.ci=function(t){this.d=t},f.hi=function(){var t;return this.e==null&&(t=Sn(this.d),this.e=t==0?t6t:be(Ji,Bt,1,t,5,1)),this},f.ji=function(){return 0};var t6t;x(Vt,"DynamicEObjectImpl",798),C(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},YWe),f.Fb=function(t){return this===t},f.Hb=function(){return $b(this)},f.ci=function(t){this.d=t,this.b=xP(t,"key"),this.c=xP(t,T9)},f.Bi=function(){var t;return this.a==-1&&(t=gW(this,this.b),this.a=t==null?0:Vr(t)),this.a},f.ld=function(){return gW(this,this.b)},f.md=function(){return gW(this,this.c)},f.Ci=function(t){this.a=t},f.Di=function(t){fae(this,this.b,t)},f.nd=function(t){var n;return n=gW(this,this.c),fae(this,this.c,t),n},f.a=0,x(Vt,"DynamicEObjectImpl/BasicEMapEntry",1522),C(1523,1,{114:1},SRe),f.Mk=function(t){throw B(new Xn)},f.li=function(t){throw B(new Xn)},f.mi=function(t,n){throw B(new Xn)},f.ni=function(t){throw B(new Xn)},f.Nk=function(){throw B(new Xn)},f.Ok=function(){return this.a},f.Pk=function(){return this.b},f.Qk=function(){return this.c},f.Rk=function(){throw B(new Xn)},f.Sk=function(t){throw B(new Xn)},f.Tk=function(t){this.a=t},f.Uk=function(t){this.b=t},f.Vk=function(t){this.c=t},x(Vt,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),C(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},uoe),f.Ah=function(t){return jhe(this,t)},f.Lh=function(t,n,i){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new Su((Mt(),ns),dl,this)),this.b):(!this.b&&(this.b=new Su((Mt(),ns),dl,this)),SI(this.b));case 3:return SXe(this);case 4:return!this.a&&(this.a=new Ai(jg,this,4)),this.a;case 5:return!this.c&&(this.c=new Ry(jg,this,5)),this.c}return ca(this,t-Sn((Mt(),xp)),Dt((s=u(Yt(this,16),29),s||xp),t),n,i)},f.Sh=function(t,n,i){var s,c,d;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),Yl(this.Ab,t,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?jhe(this,i):this.Cb.Th(this,-1-c,null,i))),Cue(this,u(t,155),i)}return d=u(Dt((s=u(Yt(this,16),29),s||(Mt(),xp)),n),69),d.wk().zk(this,lc(this),n-Sn((Mt(),xp)),t,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i);case 2:return!this.b&&(this.b=new Su((Mt(),ns),dl,this)),yA(this.b,t,i);case 3:return Cue(this,null,i);case 4:return!this.a&&(this.a=new Ai(jg,this,4)),qo(this.a,t,i)}return c=u(Dt((s=u(Yt(this,16),29),s||(Mt(),xp)),n),69),c.wk().Ak(this,lc(this),n-Sn((Mt(),xp)),t,i)},f.Wh=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!SXe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return sa(this,t-Sn((Mt(),xp)),Dt((n=u(Yt(this,16),29),n||xp),t))},f.bi=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:uDt(this,Jn(n));return;case 2:!this.b&&(this.b=new Su((Mt(),ns),dl,this)),n$(this.b,n);return;case 3:alt(this,u(n,155));return;case 4:!this.a&&(this.a=new Ai(jg,this,4)),jn(this.a),!this.a&&(this.a=new Ai(jg,this,4)),mi(this.a,u(n,16));return;case 5:!this.c&&(this.c=new Ry(jg,this,5)),jn(this.c),!this.c&&(this.c=new Ry(jg,this,5)),mi(this.c,u(n,16));return}da(this,t-Sn((Mt(),xp)),Dt((i=u(Yt(this,16),29),i||xp),t),n)},f.ii=function(){return Mt(),xp},f.ki=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:Dfe(this,null);return;case 2:!this.b&&(this.b=new Su((Mt(),ns),dl,this)),this.b.c.$b();return;case 3:alt(this,null);return;case 4:!this.a&&(this.a=new Ai(jg,this,4)),jn(this.a);return;case 5:!this.c&&(this.c=new Ry(jg,this,5)),jn(this.c);return}fa(this,t-Sn((Mt(),xp)),Dt((n=u(Yt(this,16),29),n||xp),t))},f.Ib=function(){return pnt(this)},f.d=null,x(Vt,"EAnnotationImpl",519),C(141,721,Jwe,jc),f.Gi=function(t,n){IRt(this,t,u(n,44))},f.Wk=function(t,n){return MLt(this,u(t,44),n)},f.$i=function(t){return u(u(this.c,71).$i(t),136)},f.Ii=function(){return u(this.c,71).Ii()},f.Ji=function(){return u(this.c,71).Ji()},f.Ki=function(t){return u(this.c,71).Ki(t)},f.Xk=function(t,n){return yA(this,t,n)},f.Fk=function(t){return u(this.c,79).Fk(t)},f.ak=function(){},f.Qj=function(){return u(this.c,79).Qj()},f.ck=function(t,n,i){var s;return s=u(ju(this.b).wi().si(this.b),136),s.Ci(t),s.Di(n),s.nd(i),s},f.dk=function(){return new Goe(this)},f.Wb=function(t){n$(this,t)},f.Gk=function(){u(this.c,79).Gk()},x(ni,"EcoreEMap",141),C(165,141,Jwe,Su),f._j=function(){var t,n,i,s,c,d;if(this.d==null){for(d=be(z5e,Ywe,66,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)n=u(i.Yj(),136),s=n.Bi(),c=(s&Mr)%d.length,t=d[c],!t&&(t=d[c]=new Goe(this)),t.Fc(n);this.d=d}},x(Vt,"EAnnotationImpl/1",165),C(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),f.Lh=function(t,n,i){var s,c;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Gt(),!!(this.Bb&256);case 3:return Gt(),!!(this.Bb&512);case 4:return Ae(this.s);case 5:return Ae(this.t);case 6:return Gt(),!!this.Jk();case 7:return Gt(),c=this.s,c>=1;case 8:return n?Aa(this):this.r;case 9:return this.q}return ca(this,t-Sn(this.ii()),Dt((s=u(Yt(this,16),29),s||this.ii()),t),n,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i);case 9:return pG(this,i)}return c=u(Dt((s=u(Yt(this,16),29),s||this.ii()),n),69),c.wk().Ak(this,lc(this),n-Sn(this.ii()),t,i)},f.Wh=function(t){var n,i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Kb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Kb(this.q).i==0)}return sa(this,t-Sn(this.ii()),Dt((n=u(Yt(this,16),29),n||this.ii()),t))},f.bi=function(t,n){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:this.ui(Jn(n));return;case 2:np(this,qe(Ve(n)));return;case 3:rp(this,qe(Ve(n)));return;case 4:Q1(this,u(n,17).a);return;case 5:this.Zk(u(n,17).a);return;case 8:I0(this,u(n,142));return;case 9:s=cd(this,u(n,89),null),s&&s.oj();return}da(this,t-Sn(this.ii()),Dt((i=u(Yt(this,16),29),i||this.ii()),t),n)},f.ii=function(){return Mt(),Z4t},f.ki=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:this.ui(null);return;case 2:np(this,!0);return;case 3:rp(this,!0);return;case 4:Q1(this,0);return;case 5:this.Zk(1);return;case 8:I0(this,null);return;case 9:i=cd(this,null,null),i&&i.oj();return}fa(this,t-Sn(this.ii()),Dt((n=u(Yt(this,16),29),n||this.ii()),t))},f.pi=function(){Aa(this),this.Bb|=1},f.Hk=function(){return Aa(this)},f.Ik=function(){return this.t},f.Jk=function(){var t;return t=this.t,t>1||t==-1},f.Si=function(){return(this.Bb&512)!=0},f.Yk=function(t,n){return Ode(this,t,n)},f.Zk=function(t){Hm(this,t)},f.Ib=function(){return V1e(this)},f.s=0,f.t=1,x(Vt,"ETypedElementImpl",292),C(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),f.Ah=function(t){return rit(this,t)},f.Lh=function(t,n,i){var s,c;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Gt(),!!(this.Bb&256);case 3:return Gt(),!!(this.Bb&512);case 4:return Ae(this.s);case 5:return Ae(this.t);case 6:return Gt(),!!this.Jk();case 7:return Gt(),c=this.s,c>=1;case 8:return n?Aa(this):this.r;case 9:return this.q;case 10:return Gt(),!!(this.Bb&af);case 11:return Gt(),!!(this.Bb&gv);case 12:return Gt(),!!(this.Bb&cv);case 13:return this.j;case 14:return H5(this);case 15:return Gt(),!!(this.Bb&zc);case 16:return Gt(),!!(this.Bb&Xd);case 17:return Lm(this)}return ca(this,t-Sn(this.ii()),Dt((s=u(Yt(this,16),29),s||this.ii()),t),n,i)},f.Sh=function(t,n,i){var s,c,d;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),Yl(this.Ab,t,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?rit(this,i):this.Cb.Th(this,-1-c,null,i))),Hu(this,t,17,i)}return d=u(Dt((s=u(Yt(this,16),29),s||this.ii()),n),69),d.wk().zk(this,lc(this),n-Sn(this.ii()),t,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i);case 9:return pG(this,i);case 17:return Hu(this,null,17,i)}return c=u(Dt((s=u(Yt(this,16),29),s||this.ii()),n),69),c.wk().Ak(this,lc(this),n-Sn(this.ii()),t,i)},f.Wh=function(t){var n,i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Kb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Kb(this.q).i==0);case 10:return(this.Bb&af)==0;case 11:return(this.Bb&gv)!=0;case 12:return(this.Bb&cv)!=0;case 13:return this.j!=null;case 14:return H5(this)!=null;case 15:return(this.Bb&zc)!=0;case 16:return(this.Bb&Xd)!=0;case 17:return!!Lm(this)}return sa(this,t-Sn(this.ii()),Dt((n=u(Yt(this,16),29),n||this.ii()),t))},f.bi=function(t,n){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:zG(this,Jn(n));return;case 2:np(this,qe(Ve(n)));return;case 3:rp(this,qe(Ve(n)));return;case 4:Q1(this,u(n,17).a);return;case 5:this.Zk(u(n,17).a);return;case 8:I0(this,u(n,142));return;case 9:s=cd(this,u(n,89),null),s&&s.oj();return;case 10:E5(this,qe(Ve(n)));return;case 11:P5(this,qe(Ve(n)));return;case 12:T5(this,qe(Ve(n)));return;case 13:Cle(this,Jn(n));return;case 15:I5(this,qe(Ve(n)));return;case 16:M5(this,qe(Ve(n)));return}da(this,t-Sn(this.ii()),Dt((i=u(Yt(this,16),29),i||this.ii()),t),n)},f.ii=function(){return Mt(),Q4t},f.ki=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:te(this.Cb,90)&&Zm(cu(u(this.Cb,90)),4),Xl(this,null);return;case 2:np(this,!0);return;case 3:rp(this,!0);return;case 4:Q1(this,0);return;case 5:this.Zk(1);return;case 8:I0(this,null);return;case 9:i=cd(this,null,null),i&&i.oj();return;case 10:E5(this,!0);return;case 11:P5(this,!1);return;case 12:T5(this,!1);return;case 13:this.i=null,YL(this,null);return;case 15:I5(this,!1);return;case 16:M5(this,!1);return}fa(this,t-Sn(this.ii()),Dt((n=u(Yt(this,16),29),n||this.ii()),t))},f.pi=function(){Gk(Ss((Nc(),_o),this)),Aa(this),this.Bb|=1},f.pk=function(){return this.f},f.ik=function(){return H5(this)},f.qk=function(){return Lm(this)},f.uk=function(){return null},f.$k=function(){return this.k},f.Lj=function(){return this.n},f.vk=function(){return U$(this)},f.wk=function(){var t,n,i,s,c,d,h,b,m;return this.p||(i=Lm(this),(i.i==null&&qd(i),i.i).length,s=this.uk(),s&&Sn(Lm(s)),c=Aa(this),h=c.kk(),t=h?h.i&1?h==wu?xi:h==Bn?Oo:h==qv?x8:h==uo?Bi:h==Hg?Tw:h==r3?Iw:h==Kc?Z4:D9:h:null,n=H5(this),b=c.ik(),SVt(this),this.Bb&Xd&&((d=Khe((Nc(),_o),i))&&d!=this||(d=w4(Ss(_o,this))))?this.p=new NKe(this,d):this.Jk()?this.al()?s?this.Bb&zc?t?this.bl()?this.p=new p0(47,t,this,s):this.p=new p0(5,t,this,s):this.bl()?this.p=new v0(46,this,s):this.p=new v0(4,this,s):t?this.bl()?this.p=new p0(49,t,this,s):this.p=new p0(7,t,this,s):this.bl()?this.p=new v0(48,this,s):this.p=new v0(6,this,s):this.Bb&zc?t?t==U0?this.p=new U1(50,L4t,this):this.bl()?this.p=new U1(43,t,this):this.p=new U1(1,t,this):this.bl()?this.p=new W1(42,this):this.p=new W1(0,this):t?t==U0?this.p=new U1(41,L4t,this):this.bl()?this.p=new U1(45,t,this):this.p=new U1(3,t,this):this.bl()?this.p=new W1(44,this):this.p=new W1(2,this):te(c,156)?t==eF?this.p=new W1(40,this):this.Bb&512?this.Bb&zc?t?this.p=new U1(9,t,this):this.p=new W1(8,this):t?this.p=new U1(11,t,this):this.p=new W1(10,this):this.Bb&zc?t?this.p=new U1(13,t,this):this.p=new W1(12,this):t?this.p=new U1(15,t,this):this.p=new W1(14,this):s?(m=s.t,m>1||m==-1?this.bl()?this.Bb&zc?t?this.p=new p0(25,t,this,s):this.p=new v0(24,this,s):t?this.p=new p0(27,t,this,s):this.p=new v0(26,this,s):this.Bb&zc?t?this.p=new p0(29,t,this,s):this.p=new v0(28,this,s):t?this.p=new p0(31,t,this,s):this.p=new v0(30,this,s):this.bl()?this.Bb&zc?t?this.p=new p0(33,t,this,s):this.p=new v0(32,this,s):t?this.p=new p0(35,t,this,s):this.p=new v0(34,this,s):this.Bb&zc?t?this.p=new p0(37,t,this,s):this.p=new v0(36,this,s):t?this.p=new p0(39,t,this,s):this.p=new v0(38,this,s)):this.bl()?this.Bb&zc?t?this.p=new U1(17,t,this):this.p=new W1(16,this):t?this.p=new U1(19,t,this):this.p=new W1(18,this):this.Bb&zc?t?this.p=new U1(21,t,this):this.p=new W1(20,this):t?this.p=new U1(23,t,this):this.p=new W1(22,this):this._k()?this.bl()?this.p=new TWe(u(c,29),this,s):this.p=new uae(u(c,29),this,s):te(c,156)?t==eF?this.p=new W1(40,this):this.Bb&zc?t?this.p=new EVe(n,b,this,(yV(),h==Bn?i8e:h==wu?Z5e:h==Hg?o8e:h==qv?r8e:h==uo?n8e:h==r3?s8e:h==Kc?e8e:h==Ea?t8e:Ote)):this.p=new Nqe(u(c,156),n,b,this):t?this.p=new xVe(n,b,this,(yV(),h==Bn?i8e:h==wu?Z5e:h==Hg?o8e:h==qv?r8e:h==uo?n8e:h==r3?s8e:h==Kc?e8e:h==Ea?t8e:Ote)):this.p=new Dqe(u(c,156),n,b,this):this.al()?s?this.Bb&zc?this.bl()?this.p=new PWe(u(c,29),this,s):this.p=new qce(u(c,29),this,s):this.bl()?this.p=new IWe(u(c,29),this,s):this.p=new WU(u(c,29),this,s):this.Bb&zc?this.bl()?this.p=new xGe(u(c,29),this):this.p=new cce(u(c,29),this):this.bl()?this.p=new SGe(u(c,29),this):this.p=new AU(u(c,29),this):this.bl()?s?this.Bb&zc?this.p=new MWe(u(c,29),this,s):this.p=new Wce(u(c,29),this,s):this.Bb&zc?this.p=new EGe(u(c,29),this):this.p=new uce(u(c,29),this):s?this.Bb&zc?this.p=new OWe(u(c,29),this,s):this.p=new Vce(u(c,29),this,s):this.Bb&zc?this.p=new TGe(u(c,29),this):this.p=new DA(u(c,29),this)),this.p},f.rk=function(){return(this.Bb&af)!=0},f._k=function(){return!1},f.al=function(){return!1},f.sk=function(){return(this.Bb&Xd)!=0},f.xk=function(){return bW(this)},f.bl=function(){return!1},f.tk=function(){return(this.Bb&zc)!=0},f.cl=function(t){this.k=t},f.ui=function(t){zG(this,t)},f.Ib=function(){return fj(this)},f.e=!1,f.n=0,x(Vt,"EStructuralFeatureImpl",462),C(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},hK),f.Lh=function(t,n,i){var s,c;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Gt(),!!(this.Bb&256);case 3:return Gt(),!!(this.Bb&512);case 4:return Ae(this.s);case 5:return Ae(this.t);case 6:return Gt(),!!z1e(this);case 7:return Gt(),c=this.s,c>=1;case 8:return n?Aa(this):this.r;case 9:return this.q;case 10:return Gt(),!!(this.Bb&af);case 11:return Gt(),!!(this.Bb&gv);case 12:return Gt(),!!(this.Bb&cv);case 13:return this.j;case 14:return H5(this);case 15:return Gt(),!!(this.Bb&zc);case 16:return Gt(),!!(this.Bb&Xd);case 17:return Lm(this);case 18:return Gt(),!!(this.Bb&wl);case 19:return n?FW(this):zJe(this)}return ca(this,t-Sn((Mt(),Gv)),Dt((s=u(Yt(this,16),29),s||Gv),t),n,i)},f.Wh=function(t){var n,i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return z1e(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Kb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Kb(this.q).i==0);case 10:return(this.Bb&af)==0;case 11:return(this.Bb&gv)!=0;case 12:return(this.Bb&cv)!=0;case 13:return this.j!=null;case 14:return H5(this)!=null;case 15:return(this.Bb&zc)!=0;case 16:return(this.Bb&Xd)!=0;case 17:return!!Lm(this);case 18:return(this.Bb&wl)!=0;case 19:return!!zJe(this)}return sa(this,t-Sn((Mt(),Gv)),Dt((n=u(Yt(this,16),29),n||Gv),t))},f.bi=function(t,n){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:zG(this,Jn(n));return;case 2:np(this,qe(Ve(n)));return;case 3:rp(this,qe(Ve(n)));return;case 4:Q1(this,u(n,17).a);return;case 5:ize(this,u(n,17).a);return;case 8:I0(this,u(n,142));return;case 9:s=cd(this,u(n,89),null),s&&s.oj();return;case 10:E5(this,qe(Ve(n)));return;case 11:P5(this,qe(Ve(n)));return;case 12:T5(this,qe(Ve(n)));return;case 13:Cle(this,Jn(n));return;case 15:I5(this,qe(Ve(n)));return;case 16:M5(this,qe(Ve(n)));return;case 18:dV(this,qe(Ve(n)));return}da(this,t-Sn((Mt(),Gv)),Dt((i=u(Yt(this,16),29),i||Gv),t),n)},f.ii=function(){return Mt(),Gv},f.ki=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:te(this.Cb,90)&&Zm(cu(u(this.Cb,90)),4),Xl(this,null);return;case 2:np(this,!0);return;case 3:rp(this,!0);return;case 4:Q1(this,0);return;case 5:this.b=0,Hm(this,1);return;case 8:I0(this,null);return;case 9:i=cd(this,null,null),i&&i.oj();return;case 10:E5(this,!0);return;case 11:P5(this,!1);return;case 12:T5(this,!1);return;case 13:this.i=null,YL(this,null);return;case 15:I5(this,!1);return;case 16:M5(this,!1);return;case 18:dV(this,!1);return}fa(this,t-Sn((Mt(),Gv)),Dt((n=u(Yt(this,16),29),n||Gv),t))},f.pi=function(){FW(this),Gk(Ss((Nc(),_o),this)),Aa(this),this.Bb|=1},f.Jk=function(){return z1e(this)},f.Yk=function(t,n){return this.b=0,this.a=null,Ode(this,t,n)},f.Zk=function(t){ize(this,t)},f.Ib=function(){var t;return this.Db&64?fj(this):(t=new Ma(fj(this)),t.a+=" (iD: ",F1(t,(this.Bb&wl)!=0),t.a+=")",t.a)},f.b=0,x(Vt,"EAttributeImpl",331),C(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),f.dl=function(t){return t.Dh()==this},f.Ah=function(t){return GV(this,t)},f.Bh=function(t,n){this.w=null,this.Db=n<<16|this.Db&255,this.Cb=t},f.Lh=function(t,n,i){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return aw(this);case 4:return this.ik();case 5:return this.F;case 6:return n?ju(this):qk(this);case 7:return!this.A&&(this.A=new Rc(hc,this,7)),this.A}return ca(this,t-Sn(this.ii()),Dt((s=u(Yt(this,16),29),s||this.ii()),t),n,i)},f.Sh=function(t,n,i){var s,c,d;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),Yl(this.Ab,t,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?GV(this,i):this.Cb.Th(this,-1-c,null,i))),Hu(this,t,6,i)}return d=u(Dt((s=u(Yt(this,16),29),s||this.ii()),n),69),d.wk().zk(this,lc(this),n-Sn(this.ii()),t,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i);case 6:return Hu(this,null,6,i);case 7:return!this.A&&(this.A=new Rc(hc,this,7)),qo(this.A,t,i)}return c=u(Dt((s=u(Yt(this,16),29),s||this.ii()),n),69),c.wk().Ak(this,lc(this),n-Sn(this.ii()),t,i)},f.Wh=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!aw(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!qk(this);case 7:return!!this.A&&this.A.i!=0}return sa(this,t-Sn(this.ii()),Dt((n=u(Yt(this,16),29),n||this.ii()),t))},f.bi=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:dL(this,Jn(n));return;case 2:vU(this,Jn(n));return;case 5:X5(this,Jn(n));return;case 7:!this.A&&(this.A=new Rc(hc,this,7)),jn(this.A),!this.A&&(this.A=new Rc(hc,this,7)),mi(this.A,u(n,16));return}da(this,t-Sn(this.ii()),Dt((i=u(Yt(this,16),29),i||this.ii()),t),n)},f.ii=function(){return Mt(),W4t},f.ki=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:te(this.Cb,184)&&(u(this.Cb,184).tb=null),Xl(this,null);return;case 2:C5(this,null),l5(this,this.D);return;case 5:X5(this,null);return;case 7:!this.A&&(this.A=new Rc(hc,this,7)),jn(this.A);return}fa(this,t-Sn(this.ii()),Dt((n=u(Yt(this,16),29),n||this.ii()),t))},f.hk=function(){var t;return this.G==-1&&(this.G=(t=ju(this),t?sp(t.vi(),this):-1)),this.G},f.ik=function(){return null},f.jk=function(){return ju(this)},f.el=function(){return this.v},f.kk=function(){return aw(this)},f.lk=function(){return this.D!=null?this.D:this.B},f.mk=function(){return this.F},f.fk=function(t){return $q(this,t)},f.fl=function(t){this.v=t},f.gl=function(t){Iet(this,t)},f.hl=function(t){this.C=t},f.ui=function(t){dL(this,t)},f.Ib=function(){return y$(this)},f.C=null,f.D=null,f.G=-1,x(Vt,"EClassifierImpl",364),C(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},hoe),f.dl=function(t){return dLt(this,t.Dh())},f.Lh=function(t,n,i){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return aw(this);case 4:return null;case 5:return this.F;case 6:return n?ju(this):qk(this);case 7:return!this.A&&(this.A=new Rc(hc,this,7)),this.A;case 8:return Gt(),!!(this.Bb&256);case 9:return Gt(),!!(this.Bb&512);case 10:return Ls(this);case 11:return!this.q&&(this.q=new Se(Ga,this,11,10)),this.q;case 12:return o2(this);case 13:return e9(this);case 14:return e9(this),this.r;case 15:return o2(this),this.k;case 16:return O1e(this);case 17:return Bq(this);case 18:return qd(this);case 19:return nj(this);case 20:return o2(this),this.o;case 21:return!this.s&&(this.s=new Se(Tc,this,21,17)),this.s;case 22:return Pl(this);case 23:return Eq(this)}return ca(this,t-Sn((Mt(),Ng)),Dt((s=u(Yt(this,16),29),s||Ng),t),n,i)},f.Sh=function(t,n,i){var s,c,d;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),Yl(this.Ab,t,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?GV(this,i):this.Cb.Th(this,-1-c,null,i))),Hu(this,t,6,i);case 11:return!this.q&&(this.q=new Se(Ga,this,11,10)),Yl(this.q,t,i);case 21:return!this.s&&(this.s=new Se(Tc,this,21,17)),Yl(this.s,t,i)}return d=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Ng)),n),69),d.wk().zk(this,lc(this),n-Sn((Mt(),Ng)),t,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i);case 6:return Hu(this,null,6,i);case 7:return!this.A&&(this.A=new Rc(hc,this,7)),qo(this.A,t,i);case 11:return!this.q&&(this.q=new Se(Ga,this,11,10)),qo(this.q,t,i);case 21:return!this.s&&(this.s=new Se(Tc,this,21,17)),qo(this.s,t,i);case 22:return qo(Pl(this),t,i)}return c=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Ng)),n),69),c.wk().Ak(this,lc(this),n-Sn((Mt(),Ng)),t,i)},f.Wh=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!aw(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!qk(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Pl(this.u.a).i!=0&&!(this.n&&LV(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return o2(this).i!=0;case 13:return e9(this).i!=0;case 14:return e9(this),this.r.i!=0;case 15:return o2(this),this.k.i!=0;case 16:return O1e(this).i!=0;case 17:return Bq(this).i!=0;case 18:return qd(this).i!=0;case 19:return nj(this).i!=0;case 20:return o2(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&LV(this.n);case 23:return Eq(this).i!=0}return sa(this,t-Sn((Mt(),Ng)),Dt((n=u(Yt(this,16),29),n||Ng),t))},f.Zh=function(t){var n;return n=this.i==null||this.q&&this.q.i!=0?null:xP(this,t),n||dge(this,t)},f.bi=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:dL(this,Jn(n));return;case 2:vU(this,Jn(n));return;case 5:X5(this,Jn(n));return;case 7:!this.A&&(this.A=new Rc(hc,this,7)),jn(this.A),!this.A&&(this.A=new Rc(hc,this,7)),mi(this.A,u(n,16));return;case 8:_de(this,qe(Ve(n)));return;case 9:Rde(this,qe(Ve(n)));return;case 10:r9(Ls(this)),mi(Ls(this),u(n,16));return;case 11:!this.q&&(this.q=new Se(Ga,this,11,10)),jn(this.q),!this.q&&(this.q=new Se(Ga,this,11,10)),mi(this.q,u(n,16));return;case 21:!this.s&&(this.s=new Se(Tc,this,21,17)),jn(this.s),!this.s&&(this.s=new Se(Tc,this,21,17)),mi(this.s,u(n,16));return;case 22:jn(Pl(this)),mi(Pl(this),u(n,16));return}da(this,t-Sn((Mt(),Ng)),Dt((i=u(Yt(this,16),29),i||Ng),t),n)},f.ii=function(){return Mt(),Ng},f.ki=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:te(this.Cb,184)&&(u(this.Cb,184).tb=null),Xl(this,null);return;case 2:C5(this,null),l5(this,this.D);return;case 5:X5(this,null);return;case 7:!this.A&&(this.A=new Rc(hc,this,7)),jn(this.A);return;case 8:_de(this,!1);return;case 9:Rde(this,!1);return;case 10:this.u&&r9(this.u);return;case 11:!this.q&&(this.q=new Se(Ga,this,11,10)),jn(this.q);return;case 21:!this.s&&(this.s=new Se(Tc,this,21,17)),jn(this.s);return;case 22:this.n&&jn(this.n);return}fa(this,t-Sn((Mt(),Ng)),Dt((n=u(Yt(this,16),29),n||Ng),t))},f.pi=function(){var t,n;if(o2(this),e9(this),O1e(this),Bq(this),qd(this),nj(this),Eq(this),uS(Njt(cu(this))),this.s)for(t=0,n=this.s.i;t=0;--n)re(this,n);return nhe(this,t)},f.Gk=function(){jn(this)},f.Zi=function(t,n){return VZe(this,t,n)},x(ni,"EcoreEList",632),C(505,632,Gs,nI),f.Li=function(){return!1},f.Lj=function(){return this.c},f.Mj=function(){return!1},f.ol=function(){return!0},f.Si=function(){return!0},f.Wi=function(t,n){return n},f.Yi=function(){return!1},f.c=0,x(ni,"EObjectEList",505),C(83,505,Gs,Ai),f.Mj=function(){return!0},f.ml=function(){return!1},f.al=function(){return!0},x(ni,"EObjectContainmentEList",83),C(555,83,Gs,fA),f.Ni=function(){this.b=!0},f.Qj=function(){return this.b},f.Gk=function(){var t;jn(this),ku(this.e)?(t=this.b,this.b=!1,_r(this.e,new rf(this.e,2,this.c,t,!1))):this.b=!1},f.b=!1,x(ni,"EObjectContainmentEList/Unsettable",555),C(1161,555,Gs,CVe),f.Ti=function(t,n){var i,s;return i=u(PS(this,t,n),89),ku(this.e)&&mk(this,new xI(this.a,7,(Mt(),V4t),Ae(n),(s=i.c,te(s,90)?u(s,29):Va),t)),i},f.Uj=function(t,n){return oqt(this,u(t,89),n)},f.Vj=function(t,n){return iqt(this,u(t,89),n)},f.Wj=function(t,n,i){return cJt(this,u(t,89),u(n,89),i)},f.Ij=function(t,n,i,s,c){switch(t){case 3:return rS(this,t,n,i,s,this.i>1);case 5:return rS(this,t,n,i,s,this.i-u(i,15).gc()>0);default:return new l1(this.e,t,this.c,n,i,s,!0)}},f.Tj=function(){return!0},f.Qj=function(){return LV(this)},f.Gk=function(){jn(this)},x(Vt,"EClassImpl/1",1161),C(1175,1174,Xwe),f.dj=function(t){var n,i,s,c,d,h,b;if(i=t.gj(),i!=8){if(s=Fqt(t),s==0)switch(i){case 1:case 9:{b=t.kj(),b!=null&&(n=cu(u(b,482)),!n.c&&(n.c=new fk),LL(n.c,t.jj())),h=t.ij(),h!=null&&(c=u(h,482),c.Bb&1||(n=cu(c),!n.c&&(n.c=new fk),Dn(n.c,u(t.jj(),29))));break}case 3:{h=t.ij(),h!=null&&(c=u(h,482),c.Bb&1||(n=cu(c),!n.c&&(n.c=new fk),Dn(n.c,u(t.jj(),29))));break}case 5:{if(h=t.ij(),h!=null)for(d=u(h,16).Kc();d.Ob();)c=u(d.Pb(),482),c.Bb&1||(n=cu(c),!n.c&&(n.c=new fk),Dn(n.c,u(t.jj(),29)));break}case 4:{b=t.kj(),b!=null&&(c=u(b,482),c.Bb&1||(n=cu(c),!n.c&&(n.c=new fk),LL(n.c,t.jj())));break}case 6:{if(b=t.kj(),b!=null)for(d=u(b,16).Kc();d.Ob();)c=u(d.Pb(),482),c.Bb&1||(n=cu(c),!n.c&&(n.c=new fk),LL(n.c,t.jj()));break}}this.ql(s)}},f.ql=function(t){Ylt(this,t)},f.b=63,x(Vt,"ESuperAdapter",1175),C(1176,1175,Xwe,CBe),f.ql=function(t){Zm(this,t)},x(Vt,"EClassImpl/10",1176),C(1165,710,Gs),f.Ei=function(t,n){return rq(this,t,n)},f.Fi=function(t){return Brt(this,t)},f.Gi=function(t,n){JI(this,t,n)},f.Hi=function(t){yI(this,t)},f.$i=function(t){return lfe(this,t)},f.Xi=function(t,n){return wW(this,t,n)},f.Wk=function(t,n){throw B(new Xn)},f.Ii=function(){return new r4(this)},f.Ji=function(){return new UT(this)},f.Ki=function(t){return jI(this,t)},f.Xk=function(t,n){throw B(new Xn)},f.Fk=function(t){return this},f.Qj=function(){return this.i!=0},f.Wb=function(t){throw B(new Xn)},f.Gk=function(){throw B(new Xn)},x(ni,"EcoreEList/UnmodifiableEList",1165),C(328,1165,Gs,Ty),f.Yi=function(){return!1},x(ni,"EcoreEList/UnmodifiableEList/FastCompare",328),C(1168,328,Gs,ytt),f.dd=function(t){var n,i,s;if(te(t,179)&&(n=u(t,179),i=n.Lj(),i!=-1)){for(s=this.i;i4)if(this.fk(t)){if(this.al()){if(s=u(t,54),i=s.Eh(),b=i==this.b&&(this.ml()?s.yh(s.Fh(),u(Dt(mc(this.b),this.Lj()).Hk(),29).kk())==is(u(Dt(mc(this.b),this.Lj()),19)).n:-1-s.Fh()==this.Lj()),this.nl()&&!b&&!i&&s.Jh()){for(c=0;c1||s==-1)):!1},f.ml=function(){var t,n,i;return n=Dt(mc(this.b),this.Lj()),te(n,102)?(t=u(n,19),i=is(t),!!i):!1},f.nl=function(){var t,n;return n=Dt(mc(this.b),this.Lj()),te(n,102)?(t=u(n,19),(t.Bb&es)!=0):!1},f.dd=function(t){var n,i,s,c;if(s=this.zj(t),s>=0)return s;if(this.ol()){for(i=0,c=this.Ej();i=0;--t)LP(this,t,this.xj(t));return this.Fj()},f.Qc=function(t){var n;if(this.nl())for(n=this.Ej()-1;n>=0;--n)LP(this,n,this.xj(n));return this.Gj(t)},f.Gk=function(){r9(this)},f.Zi=function(t,n){return xQe(this,t,n)},x(ni,"DelegatingEcoreEList",756),C(1171,756,Zwe,NGe),f.qj=function(t,n){jAt(this,t,u(n,29))},f.rj=function(t){xRt(this,u(t,29))},f.xj=function(t){var n,i;return n=u(re(Pl(this.a),t),89),i=n.c,te(i,90)?u(i,29):(Mt(),Va)},f.Cj=function(t){var n,i;return n=u(nv(Pl(this.a),t),89),i=n.c,te(i,90)?u(i,29):(Mt(),Va)},f.Dj=function(t,n){return AXt(this,t,u(n,29))},f.Li=function(){return!1},f.Ij=function(t,n,i,s,c){return null},f.sj=function(){return new EBe(this)},f.tj=function(){jn(Pl(this.a))},f.uj=function(t){return bnt(this,t)},f.vj=function(t){var n,i;for(i=t.Kc();i.Ob();)if(n=i.Pb(),!bnt(this,n))return!1;return!0},f.wj=function(t){var n,i,s;if(te(t,15)&&(s=u(t,15),s.gc()==Pl(this.a).i)){for(n=s.Kc(),i=new hn(this);n.Ob();)if(fe(n.Pb())!==fe(mn(i)))return!1;return!0}return!1},f.yj=function(){var t,n,i,s,c;for(i=1,n=new hn(Pl(this.a));n.e!=n.i.gc();)t=u(mn(n),89),s=(c=t.c,te(c,90)?u(c,29):(Mt(),Va)),i=31*i+(s?$b(s):0);return i},f.zj=function(t){var n,i,s,c;for(s=0,i=new hn(Pl(this.a));i.e!=i.i.gc();){if(n=u(mn(i),89),fe(t)===fe((c=n.c,te(c,90)?u(c,29):(Mt(),Va))))return s;++s}return-1},f.Aj=function(){return Pl(this.a).i==0},f.Bj=function(){return null},f.Ej=function(){return Pl(this.a).i},f.Fj=function(){var t,n,i,s,c,d;for(d=Pl(this.a).i,c=be(Ji,Bt,1,d,5,1),i=0,n=new hn(Pl(this.a));n.e!=n.i.gc();)t=u(mn(n),89),c[i++]=(s=t.c,te(s,90)?u(s,29):(Mt(),Va));return c},f.Gj=function(t){var n,i,s,c,d,h,b;for(b=Pl(this.a).i,t.lengthb&&pi(t,b,null),s=0,i=new hn(Pl(this.a));i.e!=i.i.gc();)n=u(mn(i),89),d=(h=n.c,te(h,90)?u(h,29):(Mt(),Va)),pi(t,s++,d);return t},f.Hj=function(){var t,n,i,s,c;for(c=new B1,c.a+="[",t=Pl(this.a),n=0,s=Pl(this.a).i;n>16,c>=0?GV(this,i):this.Cb.Th(this,-1-c,null,i))),Hu(this,t,6,i);case 9:return!this.a&&(this.a=new Se(I1,this,9,5)),Yl(this.a,t,i)}return d=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Bg)),n),69),d.wk().zk(this,lc(this),n-Sn((Mt(),Bg)),t,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i);case 6:return Hu(this,null,6,i);case 7:return!this.A&&(this.A=new Rc(hc,this,7)),qo(this.A,t,i);case 9:return!this.a&&(this.a=new Se(I1,this,9,5)),qo(this.a,t,i)}return c=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Bg)),n),69),c.wk().Ak(this,lc(this),n-Sn((Mt(),Bg)),t,i)},f.Wh=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!aw(this);case 4:return!!vde(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!qk(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return sa(this,t-Sn((Mt(),Bg)),Dt((n=u(Yt(this,16),29),n||Bg),t))},f.bi=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:dL(this,Jn(n));return;case 2:vU(this,Jn(n));return;case 5:X5(this,Jn(n));return;case 7:!this.A&&(this.A=new Rc(hc,this,7)),jn(this.A),!this.A&&(this.A=new Rc(hc,this,7)),mi(this.A,u(n,16));return;case 8:p$(this,qe(Ve(n)));return;case 9:!this.a&&(this.a=new Se(I1,this,9,5)),jn(this.a),!this.a&&(this.a=new Se(I1,this,9,5)),mi(this.a,u(n,16));return}da(this,t-Sn((Mt(),Bg)),Dt((i=u(Yt(this,16),29),i||Bg),t),n)},f.ii=function(){return Mt(),Bg},f.ki=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:te(this.Cb,184)&&(u(this.Cb,184).tb=null),Xl(this,null);return;case 2:C5(this,null),l5(this,this.D);return;case 5:X5(this,null);return;case 7:!this.A&&(this.A=new Rc(hc,this,7)),jn(this.A);return;case 8:p$(this,!0);return;case 9:!this.a&&(this.a=new Se(I1,this,9,5)),jn(this.a);return}fa(this,t-Sn((Mt(),Bg)),Dt((n=u(Yt(this,16),29),n||Bg),t))},f.pi=function(){var t,n;if(this.a)for(t=0,n=this.a.i;t>16==5?u(this.Cb,685):null}return ca(this,t-Sn((Mt(),Ep)),Dt((s=u(Yt(this,16),29),s||Ep),t),n,i)},f.Sh=function(t,n,i){var s,c,d;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),Yl(this.Ab,t,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?dit(this,i):this.Cb.Th(this,-1-c,null,i))),Hu(this,t,5,i)}return d=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Ep)),n),69),d.wk().zk(this,lc(this),n-Sn((Mt(),Ep)),t,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i);case 5:return Hu(this,null,5,i)}return c=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Ep)),n),69),c.wk().Ak(this,lc(this),n-Sn((Mt(),Ep)),t,i)},f.Wh=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,685))}return sa(this,t-Sn((Mt(),Ep)),Dt((n=u(Yt(this,16),29),n||Ep),t))},f.bi=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:Xl(this,Jn(n));return;case 2:SW(this,u(n,17).a);return;case 3:ust(this,u(n,2039));return;case 4:EW(this,Jn(n));return}da(this,t-Sn((Mt(),Ep)),Dt((i=u(Yt(this,16),29),i||Ep),t),n)},f.ii=function(){return Mt(),Ep},f.ki=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:Xl(this,null);return;case 2:SW(this,0);return;case 3:ust(this,null);return;case 4:EW(this,null);return}fa(this,t-Sn((Mt(),Ep)),Dt((n=u(Yt(this,16),29),n||Ep),t))},f.Ib=function(){var t;return t=this.c,t??this.zb},f.b=null,f.c=null,f.d=0,x(Vt,"EEnumLiteralImpl",582);var ffn=hi(Vt,"EFactoryImpl/InternalEDateTimeFormat");C(499,1,{2114:1},dT),x(Vt,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),C(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},yb),f.Ch=function(t,n,i){var s;return i=Hu(this,t,n,i),this.e&&te(t,179)&&(s=tj(this,this.e),s!=this.c&&(i=Y5(this,s,i))),i},f.Lh=function(t,n,i){var s;switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new Ai(hs,this,1)),this.d;case 2:return n?pj(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return n?DV(this):this.a}return ca(this,t-Sn((Mt(),Ww)),Dt((s=u(Yt(this,16),29),s||Ww),t),n,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return rnt(this,null,i);case 1:return!this.d&&(this.d=new Ai(hs,this,1)),qo(this.d,t,i);case 3:return int(this,null,i)}return c=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Ww)),n),69),c.wk().Ak(this,lc(this),n-Sn((Mt(),Ww)),t,i)},f.Wh=function(t){var n;switch(t){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return sa(this,t-Sn((Mt(),Ww)),Dt((n=u(Yt(this,16),29),n||Ww),t))},f.bi=function(t,n){var i;switch(t){case 0:_it(this,u(n,89));return;case 1:!this.d&&(this.d=new Ai(hs,this,1)),jn(this.d),!this.d&&(this.d=new Ai(hs,this,1)),mi(this.d,u(n,16));return;case 3:Jhe(this,u(n,89));return;case 4:b1e(this,u(n,850));return;case 5:n5(this,u(n,142));return}da(this,t-Sn((Mt(),Ww)),Dt((i=u(Yt(this,16),29),i||Ww),t),n)},f.ii=function(){return Mt(),Ww},f.ki=function(t){var n;switch(t){case 0:_it(this,null);return;case 1:!this.d&&(this.d=new Ai(hs,this,1)),jn(this.d);return;case 3:Jhe(this,null);return;case 4:b1e(this,null);return;case 5:n5(this,null);return}fa(this,t-Sn((Mt(),Ww)),Dt((n=u(Yt(this,16),29),n||Ww),t))},f.Ib=function(){var t;return t=new Ru(lf(this)),t.a+=" (expression: ",Gq(this,t),t.a+=")",t.a};var Q5e;x(Vt,"EGenericTypeImpl",248),C(2067,2062,CD),f.Gi=function(t,n){$Ge(this,t,n)},f.Wk=function(t,n){return $Ge(this,this.gc(),t),n},f.$i=function(t){return ga(this.pj(),t)},f.Ii=function(){return this.Ji()},f.pj=function(){return new MBe(this)},f.Ji=function(){return this.Ki(0)},f.Ki=function(t){return this.pj().fd(t)},f.Xk=function(t,n){return Wm(this,t,!0),n},f.Ti=function(t,n){var i,s;return s=qV(this,n),i=this.fd(t),i.Rb(s),s},f.Ui=function(t,n){var i;Wm(this,n,!0),i=this.fd(t),i.Rb(n)},x(ni,"AbstractSequentialInternalEList",2067),C(496,2067,CD,KT),f.$i=function(t){return ga(this.pj(),t)},f.Ii=function(){return this.b==null?(H1(),H1(),OO):this.sl()},f.pj=function(){return new eUe(this.a,this.b)},f.Ji=function(){return this.b==null?(H1(),H1(),OO):this.sl()},f.Ki=function(t){var n,i;if(this.b==null){if(t<0||t>1)throw B(new ys(I9+t+", size=0"));return H1(),H1(),OO}for(i=this.sl(),n=0;n0;)if(n=this.c[--this.d],(!this.e||n.pk()!=oC||n.Lj()!=0)&&(!this.vl()||this.b.Xh(n))){if(d=this.b.Nh(n,this.ul()),this.f=(rs(),u(n,69).xk()),this.f||n.Jk()){if(this.ul()?(s=u(d,15),this.k=s):(s=u(d,71),this.k=this.j=s),te(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?Eot(this,this.p):jot(this))return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(t=u(c,76),t.Lk(),i=t.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(d!=null)return this.k=null,this.p=null,i=d,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(t=u(c,76),t.Lk(),i=t.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},f.Pb=function(){return o$(this)},f.Tb=function(){return this.a},f.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw B(new qs)},f.Vb=function(){return this.a-1},f.Qb=function(){throw B(new Xn)},f.ul=function(){return!1},f.Wb=function(t){throw B(new Xn)},f.vl=function(){return!0},f.a=0,f.d=0,f.f=!1,f.g=0,f.n=0,f.o=0;var OO;x(ni,"EContentsEList/FeatureIteratorImpl",287),C(711,287,SD,lce),f.ul=function(){return!0},x(ni,"EContentsEList/ResolvingFeatureIteratorImpl",711),C(1178,711,SD,yGe),f.vl=function(){return!1},x(Vt,"ENamedElementImpl/1/1",1178),C(1179,287,SD,kGe),f.vl=function(){return!1},x(Vt,"ENamedElementImpl/1/2",1179),C(39,152,dM,Dm,qG,ro,uW,l1,rf,yfe,eYe,kfe,tYe,Nae,nYe,xfe,rYe,Bae,iYe,Cfe,oYe,Y7,xI,MG,Sfe,sYe,Fae,lYe),f.Kj=function(){return rfe(this)},f.Rj=function(){var t;return t=rfe(this),t?t.ik():null},f.hj=function(t){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,t)},f.jj=function(){return this.c},f.Sj=function(){var t;return t=rfe(this),t?t.tk():!1},f.b=-1,x(Vt,"ENotificationImpl",39),C(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},pK),f.Ah=function(t){return git(this,t)},f.Lh=function(t,n,i){var s,c,d;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Gt(),!!(this.Bb&256);case 3:return Gt(),!!(this.Bb&512);case 4:return Ae(this.s);case 5:return Ae(this.t);case 6:return Gt(),d=this.t,d>1||d==-1;case 7:return Gt(),c=this.s,c>=1;case 8:return n?Aa(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new Rc(hc,this,11)),this.d;case 12:return!this.c&&(this.c=new Se(Gw,this,12,10)),this.c;case 13:return!this.a&&(this.a=new qT(this,this)),this.a;case 14:return uu(this)}return ca(this,t-Sn((Mt(),Tp)),Dt((s=u(Yt(this,16),29),s||Tp),t),n,i)},f.Sh=function(t,n,i){var s,c,d;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),Yl(this.Ab,t,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?git(this,i):this.Cb.Th(this,-1-c,null,i))),Hu(this,t,10,i);case 12:return!this.c&&(this.c=new Se(Gw,this,12,10)),Yl(this.c,t,i)}return d=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Tp)),n),69),d.wk().zk(this,lc(this),n-Sn((Mt(),Tp)),t,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i);case 9:return pG(this,i);case 10:return Hu(this,null,10,i);case 11:return!this.d&&(this.d=new Rc(hc,this,11)),qo(this.d,t,i);case 12:return!this.c&&(this.c=new Se(Gw,this,12,10)),qo(this.c,t,i);case 14:return qo(uu(this),t,i)}return c=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Tp)),n),69),c.wk().Ak(this,lc(this),n-Sn((Mt(),Tp)),t,i)},f.Wh=function(t){var n,i,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return s=this.t,s>1||s==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Kb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Kb(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&uu(this.a.a).i!=0&&!(this.b&&$V(this.b));case 14:return!!this.b&&$V(this.b)}return sa(this,t-Sn((Mt(),Tp)),Dt((n=u(Yt(this,16),29),n||Tp),t))},f.bi=function(t,n){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:Xl(this,Jn(n));return;case 2:np(this,qe(Ve(n)));return;case 3:rp(this,qe(Ve(n)));return;case 4:Q1(this,u(n,17).a);return;case 5:Hm(this,u(n,17).a);return;case 8:I0(this,u(n,142));return;case 9:s=cd(this,u(n,89),null),s&&s.oj();return;case 11:!this.d&&(this.d=new Rc(hc,this,11)),jn(this.d),!this.d&&(this.d=new Rc(hc,this,11)),mi(this.d,u(n,16));return;case 12:!this.c&&(this.c=new Se(Gw,this,12,10)),jn(this.c),!this.c&&(this.c=new Se(Gw,this,12,10)),mi(this.c,u(n,16));return;case 13:!this.a&&(this.a=new qT(this,this)),r9(this.a),!this.a&&(this.a=new qT(this,this)),mi(this.a,u(n,16));return;case 14:jn(uu(this)),mi(uu(this),u(n,16));return}da(this,t-Sn((Mt(),Tp)),Dt((i=u(Yt(this,16),29),i||Tp),t),n)},f.ii=function(){return Mt(),Tp},f.ki=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:Xl(this,null);return;case 2:np(this,!0);return;case 3:rp(this,!0);return;case 4:Q1(this,0);return;case 5:Hm(this,1);return;case 8:I0(this,null);return;case 9:i=cd(this,null,null),i&&i.oj();return;case 11:!this.d&&(this.d=new Rc(hc,this,11)),jn(this.d);return;case 12:!this.c&&(this.c=new Se(Gw,this,12,10)),jn(this.c);return;case 13:this.a&&r9(this.a);return;case 14:this.b&&jn(this.b);return}fa(this,t-Sn((Mt(),Tp)),Dt((n=u(Yt(this,16),29),n||Tp),t))},f.pi=function(){var t,n;if(this.c)for(t=0,n=this.c.i;tb&&pi(t,b,null),s=0,i=new hn(uu(this.a));i.e!=i.i.gc();)n=u(mn(i),89),d=(h=n.c,h||(Mt(),Sd)),pi(t,s++,d);return t},f.Hj=function(){var t,n,i,s,c;for(c=new B1,c.a+="[",t=uu(this.a),n=0,s=uu(this.a).i;n1);case 5:return rS(this,t,n,i,s,this.i-u(i,15).gc()>0);default:return new l1(this.e,t,this.c,n,i,s,!0)}},f.Tj=function(){return!0},f.Qj=function(){return $V(this)},f.Gk=function(){jn(this)},x(Vt,"EOperationImpl/2",1377),C(507,1,{2037:1,507:1},DKe),x(Vt,"EPackageImpl/1",507),C(14,83,Gs,Se),f.il=function(){return this.d},f.jl=function(){return this.b},f.ml=function(){return!0},f.b=0,x(ni,"EObjectContainmentWithInverseEList",14),C(365,14,Gs,i4),f.nl=function(){return!0},f.Wi=function(t,n){return D4(this,t,u(n,58))},x(ni,"EObjectContainmentWithInverseEList/Resolving",365),C(308,365,Gs,_m),f.Ni=function(){this.a.tb=null},x(Vt,"EPackageImpl/2",308),C(1278,1,{},kMt),x(Vt,"EPackageImpl/3",1278),C(733,45,u2,use),f._b=function(t){return lo(t)?_G(this,t):!!ss(this.f,t)},x(Vt,"EPackageRegistryImpl",733),C(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},gK),f.Ah=function(t){return bit(this,t)},f.Lh=function(t,n,i){var s,c,d;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Gt(),!!(this.Bb&256);case 3:return Gt(),!!(this.Bb&512);case 4:return Ae(this.s);case 5:return Ae(this.t);case 6:return Gt(),d=this.t,d>1||d==-1;case 7:return Gt(),c=this.s,c>=1;case 8:return n?Aa(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return ca(this,t-Sn((Mt(),Wv)),Dt((s=u(Yt(this,16),29),s||Wv),t),n,i)},f.Sh=function(t,n,i){var s,c,d;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),Yl(this.Ab,t,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?bit(this,i):this.Cb.Th(this,-1-c,null,i))),Hu(this,t,10,i)}return d=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Wv)),n),69),d.wk().zk(this,lc(this),n-Sn((Mt(),Wv)),t,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i);case 9:return pG(this,i);case 10:return Hu(this,null,10,i)}return c=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Wv)),n),69),c.wk().Ak(this,lc(this),n-Sn((Mt(),Wv)),t,i)},f.Wh=function(t){var n,i,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return s=this.t,s>1||s==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Kb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Kb(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,62))}return sa(this,t-Sn((Mt(),Wv)),Dt((n=u(Yt(this,16),29),n||Wv),t))},f.ii=function(){return Mt(),Wv},x(Vt,"EParameterImpl",518),C(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},dce),f.Lh=function(t,n,i){var s,c,d,h;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Gt(),!!(this.Bb&256);case 3:return Gt(),!!(this.Bb&512);case 4:return Ae(this.s);case 5:return Ae(this.t);case 6:return Gt(),h=this.t,h>1||h==-1;case 7:return Gt(),c=this.s,c>=1;case 8:return n?Aa(this):this.r;case 9:return this.q;case 10:return Gt(),!!(this.Bb&af);case 11:return Gt(),!!(this.Bb&gv);case 12:return Gt(),!!(this.Bb&cv);case 13:return this.j;case 14:return H5(this);case 15:return Gt(),!!(this.Bb&zc);case 16:return Gt(),!!(this.Bb&Xd);case 17:return Lm(this);case 18:return Gt(),!!(this.Bb&wl);case 19:return Gt(),d=is(this),!!(d&&d.Bb&wl);case 20:return Gt(),!!(this.Bb&es);case 21:return n?is(this):this.b;case 22:return n?ude(this):_Je(this);case 23:return!this.a&&(this.a=new Ry(Kv,this,23)),this.a}return ca(this,t-Sn((Mt(),Z2)),Dt((s=u(Yt(this,16),29),s||Z2),t),n,i)},f.Wh=function(t){var n,i,s,c;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&Kb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Kb(this.q).i==0);case 10:return(this.Bb&af)==0;case 11:return(this.Bb&gv)!=0;case 12:return(this.Bb&cv)!=0;case 13:return this.j!=null;case 14:return H5(this)!=null;case 15:return(this.Bb&zc)!=0;case 16:return(this.Bb&Xd)!=0;case 17:return!!Lm(this);case 18:return(this.Bb&wl)!=0;case 19:return s=is(this),!!s&&(s.Bb&wl)!=0;case 20:return(this.Bb&es)==0;case 21:return!!this.b;case 22:return!!_Je(this);case 23:return!!this.a&&this.a.i!=0}return sa(this,t-Sn((Mt(),Z2)),Dt((n=u(Yt(this,16),29),n||Z2),t))},f.bi=function(t,n){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:zG(this,Jn(n));return;case 2:np(this,qe(Ve(n)));return;case 3:rp(this,qe(Ve(n)));return;case 4:Q1(this,u(n,17).a);return;case 5:Hm(this,u(n,17).a);return;case 8:I0(this,u(n,142));return;case 9:s=cd(this,u(n,89),null),s&&s.oj();return;case 10:E5(this,qe(Ve(n)));return;case 11:P5(this,qe(Ve(n)));return;case 12:T5(this,qe(Ve(n)));return;case 13:Cle(this,Jn(n));return;case 15:I5(this,qe(Ve(n)));return;case 16:M5(this,qe(Ve(n)));return;case 18:oFt(this,qe(Ve(n)));return;case 20:zde(this,qe(Ve(n)));return;case 21:Bfe(this,u(n,19));return;case 23:!this.a&&(this.a=new Ry(Kv,this,23)),jn(this.a),!this.a&&(this.a=new Ry(Kv,this,23)),mi(this.a,u(n,16));return}da(this,t-Sn((Mt(),Z2)),Dt((i=u(Yt(this,16),29),i||Z2),t),n)},f.ii=function(){return Mt(),Z2},f.ki=function(t){var n,i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:te(this.Cb,90)&&Zm(cu(u(this.Cb,90)),4),Xl(this,null);return;case 2:np(this,!0);return;case 3:rp(this,!0);return;case 4:Q1(this,0);return;case 5:Hm(this,1);return;case 8:I0(this,null);return;case 9:i=cd(this,null,null),i&&i.oj();return;case 10:E5(this,!0);return;case 11:P5(this,!1);return;case 12:T5(this,!1);return;case 13:this.i=null,YL(this,null);return;case 15:I5(this,!1);return;case 16:M5(this,!1);return;case 18:Fde(this,!1),te(this.Cb,90)&&Zm(cu(u(this.Cb,90)),2);return;case 20:zde(this,!0);return;case 21:Bfe(this,null);return;case 23:!this.a&&(this.a=new Ry(Kv,this,23)),jn(this.a);return}fa(this,t-Sn((Mt(),Z2)),Dt((n=u(Yt(this,16),29),n||Z2),t))},f.pi=function(){ude(this),Gk(Ss((Nc(),_o),this)),Aa(this),this.Bb|=1},f.uk=function(){return is(this)},f._k=function(){var t;return t=is(this),!!t&&(t.Bb&wl)!=0},f.al=function(){return(this.Bb&wl)!=0},f.bl=function(){return(this.Bb&es)!=0},f.Yk=function(t,n){return this.c=null,Ode(this,t,n)},f.Ib=function(){var t;return this.Db&64?fj(this):(t=new Ma(fj(this)),t.a+=" (containment: ",F1(t,(this.Bb&wl)!=0),t.a+=", resolveProxies: ",F1(t,(this.Bb&es)!=0),t.a+=")",t.a)},x(Vt,"EReferenceImpl",102),C(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},MRe),f.Fb=function(t){return this===t},f.ld=function(){return this.b},f.md=function(){return this.c},f.Hb=function(){return $b(this)},f.Di=function(t){aDt(this,Jn(t))},f.nd=function(t){return Xjt(this,Jn(t))},f.Lh=function(t,n,i){var s;switch(t){case 0:return this.b;case 1:return this.c}return ca(this,t-Sn((Mt(),ns)),Dt((s=u(Yt(this,16),29),s||ns),t),n,i)},f.Wh=function(t){var n;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return sa(this,t-Sn((Mt(),ns)),Dt((n=u(Yt(this,16),29),n||ns),t))},f.bi=function(t,n){var i;switch(t){case 0:fDt(this,Jn(n));return;case 1:jfe(this,Jn(n));return}da(this,t-Sn((Mt(),ns)),Dt((i=u(Yt(this,16),29),i||ns),t),n)},f.ii=function(){return Mt(),ns},f.ki=function(t){var n;switch(t){case 0:$fe(this,null);return;case 1:jfe(this,null);return}fa(this,t-Sn((Mt(),ns)),Dt((n=u(Yt(this,16),29),n||ns),t))},f.Bi=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:Z1(t)),this.a},f.Ci=function(t){this.a=t},f.Ib=function(){var t;return this.Db&64?lf(this):(t=new Ma(lf(this)),t.a+=" (key: ",ps(t,this.b),t.a+=", value: ",ps(t,this.c),t.a+=")",t.a)},f.a=-1,f.b=null,f.c=null;var dl=x(Vt,"EStringToStringMapEntryImpl",561),r6t=hi(ni,"FeatureMap/Entry/Internal");C(576,1,xD),f.xl=function(t){return this.yl(u(t,54))},f.yl=function(t){return this.xl(t)},f.Fb=function(t){var n,i;return this===t?!0:te(t,76)?(n=u(t,76),n.Lk()==this.c?(i=this.md(),i==null?n.md()==null:Rr(i,n.md())):!1):!1},f.Lk=function(){return this.c},f.Hb=function(){var t;return t=this.md(),Vr(this.c)^(t==null?0:Vr(t))},f.Ib=function(){var t,n;return t=this.c,n=ju(t.qk()).yi(),t.xe(),(n!=null&&n.length!=0?n+":"+t.xe():t.xe())+"="+this.md()},x(Vt,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),C(791,576,xD,kce),f.yl=function(t){return new kce(this.c,t)},f.md=function(){return this.a},f.zl=function(t,n,i){return qUt(this,t,this.a,n,i)},f.Al=function(t,n,i){return XUt(this,t,this.a,n,i)},x(Vt,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),C(1350,1,{},NKe),f.yk=function(t,n,i,s,c){var d;return d=u(Qk(t,this.b),220),d.Yl(this.a).Fk(s)},f.zk=function(t,n,i,s,c){var d;return d=u(Qk(t,this.b),220),d.Pl(this.a,s,c)},f.Ak=function(t,n,i,s,c){var d;return d=u(Qk(t,this.b),220),d.Ql(this.a,s,c)},f.Bk=function(t,n,i){var s;return s=u(Qk(t,this.b),220),s.Yl(this.a).Qj()},f.Ck=function(t,n,i,s){var c;c=u(Qk(t,this.b),220),c.Yl(this.a).Wb(s)},f.Dk=function(t,n,i){return u(Qk(t,this.b),220).Yl(this.a)},f.Ek=function(t,n,i){var s;s=u(Qk(t,this.b),220),s.Yl(this.a).Gk()},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),C(91,1,{},U1,p0,W1,v0),f.yk=function(t,n,i,s,c){var d;if(d=n.li(i),d==null&&n.mi(i,d=Sj(this,t)),!c)switch(this.e){case 50:case 41:return u(d,597).bk();case 40:return u(d,220).Vl()}return d},f.zk=function(t,n,i,s,c){var d,h;return h=n.li(i),h==null&&n.mi(i,h=Sj(this,t)),d=u(h,71).Wk(s,c),d},f.Ak=function(t,n,i,s,c){var d;return d=n.li(i),d!=null&&(c=u(d,71).Xk(s,c)),c},f.Bk=function(t,n,i){var s;return s=n.li(i),s!=null&&u(s,79).Qj()},f.Ck=function(t,n,i,s){var c;c=u(n.li(i),79),!c&&n.mi(i,c=Sj(this,t)),c.Wb(s)},f.Dk=function(t,n,i){var s,c;return c=n.li(i),c==null&&n.mi(i,c=Sj(this,t)),te(c,79)?u(c,79):(s=u(n.li(i),15),new IBe(s))},f.Ek=function(t,n,i){var s;s=u(n.li(i),79),!s&&n.mi(i,s=Sj(this,t)),s.Gk()},f.b=0,f.e=0,x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),C(512,1,{}),f.zk=function(t,n,i,s,c){throw B(new Xn)},f.Ak=function(t,n,i,s,c){throw B(new Xn)},f.Dk=function(t,n,i){return new jqe(this,t,n,i)};var zh;x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),C(1367,1,OJ,jqe),f.Fk=function(t){return this.a.yk(this.c,this.d,this.b,t,!0)},f.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},f.Wb=function(t){this.a.Ck(this.c,this.d,this.b,t)},f.Gk=function(){this.a.Ek(this.c,this.d,this.b)},f.b=0,x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),C(784,512,{},uae),f.yk=function(t,n,i,s,c){return _q(t,t.Ph(),t.Fh())==this.b?this.bl()&&s?wq(t):t.Ph():null},f.zk=function(t,n,i,s,c){var d,h;return t.Ph()&&(c=(d=t.Fh(),d>=0?t.Ah(c):t.Ph().Th(t,-1-d,null,c))),h=ci(t.Dh(),this.e),t.Ch(s,h,c)},f.Ak=function(t,n,i,s,c){var d;return d=ci(t.Dh(),this.e),t.Ch(null,d,c)},f.Bk=function(t,n,i){var s;return s=ci(t.Dh(),this.e),!!t.Ph()&&t.Fh()==s},f.Ck=function(t,n,i,s){var c,d,h,b,m;if(s!=null&&!$q(this.a,s))throw B(new vk(ED+(te(s,58)?Yhe(u(s,58).Dh()):bfe(Tu(s)))+TD+this.a+"'"));if(c=t.Ph(),h=ci(t.Dh(),this.e),fe(s)!==fe(c)||t.Fh()!=h&&s!=null){if(L5(t,u(s,58)))throw B(new Qt(E9+t.Ib()));m=null,c&&(m=(d=t.Fh(),d>=0?t.Ah(m):t.Ph().Th(t,-1-d,null,m))),b=u(s,54),b&&(m=b.Rh(t,ci(b.Dh(),this.b),null,m)),m=t.Ch(b,h,m),m&&m.oj()}else t.vh()&&t.wh()&&_r(t,new ro(t,1,h,s,s))},f.Ek=function(t,n,i){var s,c,d,h;s=t.Ph(),s?(h=(c=t.Fh(),c>=0?t.Ah(null):t.Ph().Th(t,-1-c,null,null)),d=ci(t.Dh(),this.e),h=t.Ch(null,d,h),h&&h.oj()):t.vh()&&t.wh()&&_r(t,new Y7(t,1,this.e,null,null))},f.bl=function(){return!1},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),C(1351,784,{},TWe),f.bl=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),C(574,512,{}),f.yk=function(t,n,i,s,c){var d;return d=n.li(i),d==null?this.b:fe(d)===fe(zh)?null:d},f.Bk=function(t,n,i){var s;return s=n.li(i),s!=null&&(fe(s)===fe(zh)||!Rr(s,this.b))},f.Ck=function(t,n,i,s){var c,d;t.vh()&&t.wh()?(c=(d=n.li(i),d==null?this.b:fe(d)===fe(zh)?null:d),s==null?this.c!=null?(n.mi(i,null),s=this.b):this.b!=null?n.mi(i,zh):n.mi(i,null):(this.Bl(s),n.mi(i,s)),_r(t,this.d.Cl(t,1,this.e,c,s))):s==null?this.c!=null?n.mi(i,null):this.b!=null?n.mi(i,zh):n.mi(i,null):(this.Bl(s),n.mi(i,s))},f.Ek=function(t,n,i){var s,c;t.vh()&&t.wh()?(s=(c=n.li(i),c==null?this.b:fe(c)===fe(zh)?null:c),n.ni(i),_r(t,this.d.Cl(t,1,this.e,s,this.b))):n.ni(i)},f.Bl=function(t){throw B(new NBe)},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),C(v2,1,{},ORe),f.Cl=function(t,n,i,s,c){return new Y7(t,n,i,s,c)},f.Dl=function(t,n,i,s,c,d){return new MG(t,n,i,s,c,d)};var Z5e,e8e,t8e,n8e,r8e,i8e,o8e,Ote,s8e;x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",v2),C(1368,v2,{},_Re),f.Cl=function(t,n,i,s,c){return new Fae(t,n,i,qe(Ve(s)),qe(Ve(c)))},f.Dl=function(t,n,i,s,c,d){return new lYe(t,n,i,qe(Ve(s)),qe(Ve(c)),d)},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),C(1369,v2,{},RRe),f.Cl=function(t,n,i,s,c){return new yfe(t,n,i,u(s,222).a,u(c,222).a)},f.Dl=function(t,n,i,s,c,d){return new eYe(t,n,i,u(s,222).a,u(c,222).a,d)},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),C(1370,v2,{},ARe),f.Cl=function(t,n,i,s,c){return new kfe(t,n,i,u(s,180).a,u(c,180).a)},f.Dl=function(t,n,i,s,c,d){return new tYe(t,n,i,u(s,180).a,u(c,180).a,d)},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),C(1371,v2,{},LRe),f.Cl=function(t,n,i,s,c){return new Nae(t,n,i,le(pe(s)),le(pe(c)))},f.Dl=function(t,n,i,s,c,d){return new nYe(t,n,i,le(pe(s)),le(pe(c)),d)},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),C(1372,v2,{},$Re),f.Cl=function(t,n,i,s,c){return new xfe(t,n,i,u(s,161).a,u(c,161).a)},f.Dl=function(t,n,i,s,c,d){return new rYe(t,n,i,u(s,161).a,u(c,161).a,d)},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),C(1373,v2,{},jRe),f.Cl=function(t,n,i,s,c){return new Bae(t,n,i,u(s,17).a,u(c,17).a)},f.Dl=function(t,n,i,s,c,d){return new iYe(t,n,i,u(s,17).a,u(c,17).a,d)},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),C(1374,v2,{},DRe),f.Cl=function(t,n,i,s,c){return new Cfe(t,n,i,u(s,168).a,u(c,168).a)},f.Dl=function(t,n,i,s,c,d){return new oYe(t,n,i,u(s,168).a,u(c,168).a,d)},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),C(1375,v2,{},NRe),f.Cl=function(t,n,i,s,c){return new Sfe(t,n,i,u(s,191).a,u(c,191).a)},f.Dl=function(t,n,i,s,c,d){return new sYe(t,n,i,u(s,191).a,u(c,191).a,d)},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),C(1353,574,{},Dqe),f.Bl=function(t){if(!this.a.fk(t))throw B(new vk(ED+Tu(t)+TD+this.a+"'"))},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),C(1354,574,{},xVe),f.Bl=function(t){},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),C(785,574,{}),f.Bk=function(t,n,i){var s;return s=n.li(i),s!=null},f.Ck=function(t,n,i,s){var c,d;t.vh()&&t.wh()?(c=!0,d=n.li(i),d==null?(c=!1,d=this.b):fe(d)===fe(zh)&&(d=null),s==null?this.c!=null?(n.mi(i,null),s=this.b):n.mi(i,zh):(this.Bl(s),n.mi(i,s)),_r(t,this.d.Dl(t,1,this.e,d,s,!c))):s==null?this.c!=null?n.mi(i,null):n.mi(i,zh):(this.Bl(s),n.mi(i,s))},f.Ek=function(t,n,i){var s,c;t.vh()&&t.wh()?(s=!0,c=n.li(i),c==null?(s=!1,c=this.b):fe(c)===fe(zh)&&(c=null),n.ni(i),_r(t,this.d.Dl(t,2,this.e,c,this.b,s))):n.ni(i)},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),C(1355,785,{},Nqe),f.Bl=function(t){if(!this.a.fk(t))throw B(new vk(ED+Tu(t)+TD+this.a+"'"))},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),C(1356,785,{},EVe),f.Bl=function(t){},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),C(410,512,{},DA),f.yk=function(t,n,i,s,c){var d,h,b,m,v;if(v=n.li(i),this.tk()&&fe(v)===fe(zh))return null;if(this.bl()&&s&&v!=null){if(b=u(v,54),b.Vh()&&(m=sg(t,b),b!=m)){if(!$q(this.a,m))throw B(new vk(ED+Tu(m)+TD+this.a+"'"));n.mi(i,v=m),this.al()&&(d=u(m,54),h=b.Th(t,this.b?ci(b.Dh(),this.b):-1-ci(t.Dh(),this.e),null,null),!d.Ph()&&(h=d.Rh(t,this.b?ci(d.Dh(),this.b):-1-ci(t.Dh(),this.e),null,h)),h&&h.oj()),t.vh()&&t.wh()&&_r(t,new Y7(t,9,this.e,b,m))}return v}else return v},f.zk=function(t,n,i,s,c){var d,h;return h=n.li(i),fe(h)===fe(zh)&&(h=null),n.mi(i,s),this.Mj()?fe(h)!==fe(s)&&h!=null&&(d=u(h,54),c=d.Th(t,ci(d.Dh(),this.b),null,c)):this.al()&&h!=null&&(c=u(h,54).Th(t,-1-ci(t.Dh(),this.e),null,c)),t.vh()&&t.wh()&&(!c&&(c=new Kp(4)),c.nj(new Y7(t,1,this.e,h,s))),c},f.Ak=function(t,n,i,s,c){var d;return d=n.li(i),fe(d)===fe(zh)&&(d=null),n.ni(i),t.vh()&&t.wh()&&(!c&&(c=new Kp(4)),this.tk()?c.nj(new Y7(t,2,this.e,d,null)):c.nj(new Y7(t,1,this.e,d,null))),c},f.Bk=function(t,n,i){var s;return s=n.li(i),s!=null},f.Ck=function(t,n,i,s){var c,d,h,b,m;if(s!=null&&!$q(this.a,s))throw B(new vk(ED+(te(s,58)?Yhe(u(s,58).Dh()):bfe(Tu(s)))+TD+this.a+"'"));m=n.li(i),b=m!=null,this.tk()&&fe(m)===fe(zh)&&(m=null),h=null,this.Mj()?fe(m)!==fe(s)&&(m!=null&&(c=u(m,54),h=c.Th(t,ci(c.Dh(),this.b),null,h)),s!=null&&(c=u(s,54),h=c.Rh(t,ci(c.Dh(),this.b),null,h))):this.al()&&fe(m)!==fe(s)&&(m!=null&&(h=u(m,54).Th(t,-1-ci(t.Dh(),this.e),null,h)),s!=null&&(h=u(s,54).Rh(t,-1-ci(t.Dh(),this.e),null,h))),s==null&&this.tk()?n.mi(i,zh):n.mi(i,s),t.vh()&&t.wh()?(d=new MG(t,1,this.e,m,s,this.tk()&&!b),h?(h.nj(d),h.oj()):_r(t,d)):h&&h.oj()},f.Ek=function(t,n,i){var s,c,d,h,b;b=n.li(i),h=b!=null,this.tk()&&fe(b)===fe(zh)&&(b=null),d=null,b!=null&&(this.Mj()?(s=u(b,54),d=s.Th(t,ci(s.Dh(),this.b),null,d)):this.al()&&(d=u(b,54).Th(t,-1-ci(t.Dh(),this.e),null,d))),n.ni(i),t.vh()&&t.wh()?(c=new MG(t,this.tk()?2:1,this.e,b,null,h),d?(d.nj(c),d.oj()):_r(t,c)):d&&d.oj()},f.Mj=function(){return!1},f.al=function(){return!1},f.bl=function(){return!1},f.tk=function(){return!1},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),C(575,410,{},AU),f.al=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),C(1359,575,{},SGe),f.bl=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),C(787,575,{},cce),f.tk=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),C(1361,787,{},xGe),f.bl=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),C(650,575,{},WU),f.Mj=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),C(1360,650,{},IWe),f.bl=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),C(788,650,{},qce),f.tk=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),C(1362,788,{},PWe),f.bl=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),C(651,410,{},uce),f.bl=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),C(1363,651,{},EGe),f.tk=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),C(789,651,{},Wce),f.Mj=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),C(1364,789,{},MWe),f.tk=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),C(1357,410,{},TGe),f.tk=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),C(786,410,{},Vce),f.Mj=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),C(1358,786,{},OWe),f.tk=function(){return!0},x(Vt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),C(790,576,xD,Uue),f.yl=function(t){return new Uue(this.a,this.c,t)},f.md=function(){return this.b},f.zl=function(t,n,i){return WHt(this,t,this.b,i)},f.Al=function(t,n,i){return VHt(this,t,this.b,i)},x(Vt,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),C(1365,1,OJ,IBe),f.Fk=function(t){return this.a},f.Qj=function(){return te(this.a,97)?u(this.a,97).Qj():!this.a.dc()},f.Wb=function(t){this.a.$b(),this.a.Gc(u(t,15))},f.Gk=function(){te(this.a,97)?u(this.a,97).Gk():this.a.$b()},x(Vt,"EStructuralFeatureImpl/SettingMany",1365),C(1366,576,xD,QYe),f.xl=function(t){return new jU((zr(),Wx),this.b.ri(this.a,t))},f.md=function(){return null},f.zl=function(t,n,i){return i},f.Al=function(t,n,i){return i},x(Vt,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),C(652,576,xD,jU),f.xl=function(t){return new jU(this.c,t)},f.md=function(){return this.a},f.zl=function(t,n,i){return i},f.Al=function(t,n,i){return i},x(Vt,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),C(403,506,ih,fk),f.aj=function(t){return be(Ua,Bt,29,t,0,1)},f.Yi=function(){return!1},x(Vt,"ESuperAdapter/1",403),C(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},qH),f.Lh=function(t,n,i){var s;switch(t){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new W7(this,hs,this)),this.a}return ca(this,t-Sn((Mt(),Vw)),Dt((s=u(Yt(this,16),29),s||Vw),t),n,i)},f.Uh=function(t,n,i){var s,c;switch(n){case 0:return!this.Ab&&(this.Ab=new Se(hr,this,0,3)),qo(this.Ab,t,i);case 2:return!this.a&&(this.a=new W7(this,hs,this)),qo(this.a,t,i)}return c=u(Dt((s=u(Yt(this,16),29),s||(Mt(),Vw)),n),69),c.wk().Ak(this,lc(this),n-Sn((Mt(),Vw)),t,i)},f.Wh=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return sa(this,t-Sn((Mt(),Vw)),Dt((n=u(Yt(this,16),29),n||Vw),t))},f.bi=function(t,n){var i;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab),!this.Ab&&(this.Ab=new Se(hr,this,0,3)),mi(this.Ab,u(n,16));return;case 1:Xl(this,Jn(n));return;case 2:!this.a&&(this.a=new W7(this,hs,this)),jn(this.a),!this.a&&(this.a=new W7(this,hs,this)),mi(this.a,u(n,16));return}da(this,t-Sn((Mt(),Vw)),Dt((i=u(Yt(this,16),29),i||Vw),t),n)},f.ii=function(){return Mt(),Vw},f.ki=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Se(hr,this,0,3)),jn(this.Ab);return;case 1:Xl(this,null);return;case 2:!this.a&&(this.a=new W7(this,hs,this)),jn(this.a);return}fa(this,t-Sn((Mt(),Vw)),Dt((n=u(Yt(this,16),29),n||Vw),t))},x(Vt,"ETypeParameterImpl",457),C(458,83,Gs,W7),f.Nj=function(t,n){return lQt(this,u(t,89),n)},f.Oj=function(t,n){return cQt(this,u(t,89),n)},x(Vt,"ETypeParameterImpl/1",458),C(647,45,u2,bK),f.ec=function(){return new aR(this)},x(Vt,"ETypeParameterImpl/2",647),C(570,ad,Bc,aR),f.Fc=function(t){return QGe(this,u(t,89))},f.Gc=function(t){var n,i,s;for(s=!1,i=t.Kc();i.Ob();)n=u(i.Pb(),89),vr(this.a,n,"")==null&&(s=!0);return s},f.$b=function(){qc(this.a)},f.Hc=function(t){return rc(this.a,t)},f.Kc=function(){var t;return t=new S0(new i0(this.a).a),new fR(t)},f.Mc=function(t){return HJe(this,t)},f.gc=function(){return h7(this.a)},x(Vt,"ETypeParameterImpl/2/1",570),C(571,1,co,fR),f.Nb=function(t){To(this,t)},f.Pb=function(){return u(rw(this.a).ld(),89)},f.Ob=function(){return this.a.b},f.Qb=function(){JQe(this.a)},x(Vt,"ETypeParameterImpl/2/1/1",571),C(1329,45,u2,wFe),f._b=function(t){return lo(t)?_G(this,t):!!ss(this.f,t)},f.xc=function(t){var n,i;return n=lo(t)?$l(this,t):Rs(ss(this.f,t)),te(n,851)?(i=u(n,851),n=i.Kk(),vr(this,u(t,241),n),n):n??(t==null?($K(),o6t):null)},x(Vt,"EValidatorRegistryImpl",1329),C(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},BRe),f.ri=function(t,n){switch(t.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return n==null?null:Us(n);case 25:return iUt(n);case 27:return mKt(n);case 28:return vKt(n);case 29:return n==null?null:MUe(Fx[0],u(n,206));case 41:return n==null?"":l0(u(n,297));case 42:return Us(n);case 50:return Jn(n);default:throw B(new Qt(w8+t.xe()+xw))}},f.si=function(t){var n,i,s,c,d,h,b,m,v,k,T,P,O,L,$,z;switch(t.G==-1&&(t.G=(P=ju(t),P?sp(P.vi(),t):-1)),t.G){case 0:return i=new hK,i;case 1:return n=new uoe,n;case 2:return s=new hoe,s;case 4:return c=new dR,c;case 5:return d=new bFe,d;case 6:return h=new zBe,h;case 7:return b=new poe,b;case 10:return v=new tR,v;case 11:return k=new pK,k;case 12:return T=new Wqe,T;case 13:return O=new gK,O;case 14:return L=new dce,L;case 17:return $=new MRe,$;case 18:return m=new yb,m;case 19:return z=new qH,z;default:throw B(new Qt(pJ+t.zb+xw))}},f.ti=function(t,n){switch(t.hk()){case 20:return n==null?null:new Lse(n);case 21:return n==null?null:new qp(n);case 23:case 22:return n==null?null:wqt(n);case 26:case 24:return n==null?null:_I(zu(n,-128,127)<<24>>24);case 25:return jtn(n);case 27:return iYt(n);case 28:return oYt(n);case 29:return PQt(n);case 32:case 31:return n==null?null:Jm(n);case 38:case 37:return n==null?null:new Joe(n);case 40:case 39:return n==null?null:Ae(zu(n,jo,Mr));case 41:return null;case 42:return n==null,null;case 44:case 43:return n==null?null:p1(Cj(n));case 49:case 48:return n==null?null:x5(zu(n,ID,32767)<<16>>16);case 50:return n;default:throw B(new Qt(w8+t.xe()+xw))}},x(Vt,"EcoreFactoryImpl",1349),C(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},bqe),f.gb=!1,f.hb=!1;var l8e,i6t=!1;x(Vt,"EcorePackageImpl",560),C(1234,1,{851:1},FRe),f.Kk=function(){return HUe(),s6t},x(Vt,"EcorePackageImpl/1",1234),C(1243,1,mr,zRe),f.fk=function(t){return te(t,155)},f.gk=function(t){return be(TO,Bt,155,t,0,1)},x(Vt,"EcorePackageImpl/10",1243),C(1244,1,mr,HRe),f.fk=function(t){return te(t,197)},f.gk=function(t){return be(kte,Bt,197,t,0,1)},x(Vt,"EcorePackageImpl/11",1244),C(1245,1,mr,KRe),f.fk=function(t){return te(t,58)},f.gk=function(t){return be(jg,Bt,58,t,0,1)},x(Vt,"EcorePackageImpl/12",1245),C(1246,1,mr,URe),f.fk=function(t){return te(t,411)},f.gk=function(t){return be(Ga,Qwe,62,t,0,1)},x(Vt,"EcorePackageImpl/13",1246),C(1247,1,mr,GRe),f.fk=function(t){return te(t,241)},f.gk=function(t){return be(Uf,Bt,241,t,0,1)},x(Vt,"EcorePackageImpl/14",1247),C(1248,1,mr,WRe),f.fk=function(t){return te(t,518)},f.gk=function(t){return be(Gw,Bt,2116,t,0,1)},x(Vt,"EcorePackageImpl/15",1248),C(1249,1,mr,VRe),f.fk=function(t){return te(t,102)},f.gk=function(t){return be(Uv,m2,19,t,0,1)},x(Vt,"EcorePackageImpl/16",1249),C(1250,1,mr,qRe),f.fk=function(t){return te(t,179)},f.gk=function(t){return be(Tc,m2,179,t,0,1)},x(Vt,"EcorePackageImpl/17",1250),C(1251,1,mr,XRe),f.fk=function(t){return te(t,481)},f.gk=function(t){return be(Hv,Bt,481,t,0,1)},x(Vt,"EcorePackageImpl/18",1251),C(1252,1,mr,YRe),f.fk=function(t){return te(t,561)},f.gk=function(t){return be(dl,s1t,561,t,0,1)},x(Vt,"EcorePackageImpl/19",1252),C(1235,1,mr,JRe),f.fk=function(t){return te(t,331)},f.gk=function(t){return be(Kv,m2,35,t,0,1)},x(Vt,"EcorePackageImpl/2",1235),C(1253,1,mr,QRe),f.fk=function(t){return te(t,248)},f.gk=function(t){return be(hs,S1t,89,t,0,1)},x(Vt,"EcorePackageImpl/20",1253),C(1254,1,mr,ZRe),f.fk=function(t){return te(t,457)},f.gk=function(t){return be(hc,Bt,850,t,0,1)},x(Vt,"EcorePackageImpl/21",1254),C(1255,1,mr,eAe),f.fk=function(t){return Sm(t)},f.gk=function(t){return be(xi,_e,485,t,8,1)},x(Vt,"EcorePackageImpl/22",1255),C(1256,1,mr,tAe),f.fk=function(t){return te(t,195)},f.gk=function(t){return be(Kc,_e,195,t,0,2)},x(Vt,"EcorePackageImpl/23",1256),C(1257,1,mr,nAe),f.fk=function(t){return te(t,222)},f.gk=function(t){return be(Z4,_e,222,t,0,1)},x(Vt,"EcorePackageImpl/24",1257),C(1258,1,mr,rAe),f.fk=function(t){return te(t,180)},f.gk=function(t){return be(D9,_e,180,t,0,1)},x(Vt,"EcorePackageImpl/25",1258),C(1259,1,mr,iAe),f.fk=function(t){return te(t,206)},f.gk=function(t){return be(DD,_e,206,t,0,1)},x(Vt,"EcorePackageImpl/26",1259),C(1260,1,mr,oAe),f.fk=function(t){return!1},f.gk=function(t){return be(E8e,Bt,2215,t,0,1)},x(Vt,"EcorePackageImpl/27",1260),C(1261,1,mr,sAe),f.fk=function(t){return xm(t)},f.gk=function(t){return be(Bi,_e,345,t,7,1)},x(Vt,"EcorePackageImpl/28",1261),C(1262,1,mr,lAe),f.fk=function(t){return te(t,61)},f.gk=function(t){return be(F5e,uv,61,t,0,1)},x(Vt,"EcorePackageImpl/29",1262),C(1236,1,mr,cAe),f.fk=function(t){return te(t,519)},f.gk=function(t){return be(hr,{3:1,4:1,5:1,2033:1},598,t,0,1)},x(Vt,"EcorePackageImpl/3",1236),C(1263,1,mr,uAe),f.fk=function(t){return te(t,582)},f.gk=function(t){return be(K5e,Bt,2039,t,0,1)},x(Vt,"EcorePackageImpl/30",1263),C(1264,1,mr,aAe),f.fk=function(t){return te(t,160)},f.gk=function(t){return be(d8e,uv,160,t,0,1)},x(Vt,"EcorePackageImpl/31",1264),C(1265,1,mr,fAe),f.fk=function(t){return te(t,76)},f.gk=function(t){return be(eF,R1t,76,t,0,1)},x(Vt,"EcorePackageImpl/32",1265),C(1266,1,mr,dAe),f.fk=function(t){return te(t,161)},f.gk=function(t){return be(x8,_e,161,t,0,1)},x(Vt,"EcorePackageImpl/33",1266),C(1267,1,mr,hAe),f.fk=function(t){return te(t,17)},f.gk=function(t){return be(Oo,_e,17,t,0,1)},x(Vt,"EcorePackageImpl/34",1267),C(1268,1,mr,pAe),f.fk=function(t){return te(t,297)},f.gk=function(t){return be(fme,Bt,297,t,0,1)},x(Vt,"EcorePackageImpl/35",1268),C(1269,1,mr,gAe),f.fk=function(t){return te(t,168)},f.gk=function(t){return be(Tw,_e,168,t,0,1)},x(Vt,"EcorePackageImpl/36",1269),C(1270,1,mr,bAe),f.fk=function(t){return te(t,85)},f.gk=function(t){return be(dme,Bt,85,t,0,1)},x(Vt,"EcorePackageImpl/37",1270),C(1271,1,mr,wAe),f.fk=function(t){return te(t,599)},f.gk=function(t){return be(c8e,Bt,599,t,0,1)},x(Vt,"EcorePackageImpl/38",1271),C(1272,1,mr,mAe),f.fk=function(t){return!1},f.gk=function(t){return be(T8e,Bt,2216,t,0,1)},x(Vt,"EcorePackageImpl/39",1272),C(1237,1,mr,vAe),f.fk=function(t){return te(t,90)},f.gk=function(t){return be(Ua,Bt,29,t,0,1)},x(Vt,"EcorePackageImpl/4",1237),C(1273,1,mr,yAe),f.fk=function(t){return te(t,191)},f.gk=function(t){return be(Iw,_e,191,t,0,1)},x(Vt,"EcorePackageImpl/40",1273),C(1274,1,mr,kAe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Vt,"EcorePackageImpl/41",1274),C(1275,1,mr,CAe),f.fk=function(t){return te(t,596)},f.gk=function(t){return be(H5e,Bt,596,t,0,1)},x(Vt,"EcorePackageImpl/42",1275),C(1276,1,mr,SAe),f.fk=function(t){return!1},f.gk=function(t){return be(I8e,_e,2217,t,0,1)},x(Vt,"EcorePackageImpl/43",1276),C(1277,1,mr,xAe),f.fk=function(t){return te(t,44)},f.gk=function(t){return be(U0,Ej,44,t,0,1)},x(Vt,"EcorePackageImpl/44",1277),C(1238,1,mr,EAe),f.fk=function(t){return te(t,142)},f.gk=function(t){return be(Gf,Bt,142,t,0,1)},x(Vt,"EcorePackageImpl/5",1238),C(1239,1,mr,TAe),f.fk=function(t){return te(t,156)},f.gk=function(t){return be(Ite,Bt,156,t,0,1)},x(Vt,"EcorePackageImpl/6",1239),C(1240,1,mr,IAe),f.fk=function(t){return te(t,469)},f.gk=function(t){return be(ZB,Bt,685,t,0,1)},x(Vt,"EcorePackageImpl/7",1240),C(1241,1,mr,PAe),f.fk=function(t){return te(t,582)},f.gk=function(t){return be(I1,Bt,694,t,0,1)},x(Vt,"EcorePackageImpl/8",1241),C(1242,1,mr,MAe),f.fk=function(t){return te(t,480)},f.gk=function(t){return be(Bx,Bt,480,t,0,1)},x(Vt,"EcorePackageImpl/9",1242),C(1038,2080,o1t,NFe),f.Mi=function(t,n){WWt(this,u(n,424))},f.Qi=function(t,n){Lot(this,t,u(n,424))},x(Vt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),C(1039,152,dM,sqe),f.jj=function(){return this.a.a},x(Vt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),C(1067,1066,{},yUe),x("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var c8e=hi(A1t,"Resource");C(799,1524,L1t),f.Hl=function(t){},f.Il=function(t){},f.El=function(){return!this.a&&(this.a=new lK(this)),this.a},f.Fl=function(t){var n,i,s,c,d;if(s=t.length,s>0)if(Zt(0,t.length),t.charCodeAt(0)==47){for(d=new ql(4),c=1,n=1;n0&&(t=(mo(0,i,t.length),t.substr(0,i))));return ken(this,t)},f.Gl=function(){return this.c},f.Ib=function(){var t;return l0(this.Rm)+"@"+(t=Vr(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},f.b=!1,x(_J,"ResourceImpl",799),C(1525,799,L1t,PBe),x(_J,"BinaryResourceImpl",1525),C(1190,708,EJ),f.bj=function(t){return te(t,58)?dBt(this,u(t,58)):te(t,599)?new hn(u(t,599).El()):fe(t)===fe(this.f)?u(t,16).Kc():(Lk(),MO.a)},f.Ob=function(){return U1e(this)},f.a=!1,x(ni,"EcoreUtil/ContentTreeIterator",1190),C(1526,1190,EJ,jVe),f.bj=function(t){return fe(t)===fe(this.f)?u(t,15).Kc():new AYe(u(t,58))},x(_J,"ResourceImpl/5",1526),C(658,2092,C1t,lK),f.Hc=function(t){return this.i<=4?j5(this,t):te(t,54)&&u(t,54).Jh()==this.a},f.Mi=function(t,n){t==this.i-1&&(this.a.b||(this.a.b=!0))},f.Oi=function(t,n){t==0?this.a.b||(this.a.b=!0):sW(this,t,n)},f.Qi=function(t,n){},f.Ri=function(t,n,i){},f.Lj=function(){return 2},f.jj=function(){return this.a},f.Mj=function(){return!0},f.Nj=function(t,n){var i;return i=u(t,54),n=i.fi(this.a,n),n},f.Oj=function(t,n){var i;return i=u(t,54),i.fi(null,n)},f.Pj=function(){return!1},f.Si=function(){return!0},f.aj=function(t){return be(jg,Bt,58,t,0,1)},f.Yi=function(){return!1},x(_J,"ResourceImpl/ContentsEList",658),C(970,2062,t8,MBe),f.fd=function(t){return this.a.Ki(t)},f.gc=function(){return this.a.gc()},x(ni,"AbstractSequentialInternalEList/1",970);var u8e,a8e,_o,f8e;C(634,1,{},NWe);var tF,nF;x(ni,"BasicExtendedMetaData",634),C(1181,1,{},FKe),f.Jl=function(){return null},f.Kl=function(){return this.a==-2&&GMt(this,kQt(this.d,this.b)),this.a},f.Ll=function(){return null},f.Ml=function(){return Ot(),Ot(),Jo},f.xe=function(){return this.c==y8&&WMt(this,irt(this.d,this.b)),this.c},f.Nl=function(){return 0},f.a=-2,f.c=y8,x(ni,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),C(1182,1,{},uYe),f.Jl=function(){return this.a==(Jk(),tF)&&XMt(this,yin(this.f,this.b)),this.a},f.Kl=function(){return 0},f.Ll=function(){return this.c==(Jk(),tF)&&VMt(this,kin(this.f,this.b)),this.c},f.Ml=function(){return!this.d&&JMt(this,osn(this.f,this.b)),this.d},f.xe=function(){return this.e==y8&&ZMt(this,irt(this.f,this.b)),this.e},f.Nl=function(){return this.g==-2&&tOt(this,FJt(this.f,this.b)),this.g},f.e=y8,f.g=-2,x(ni,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),C(1180,1,{},zKe),f.b=!1,f.c=!1,x(ni,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),C(1183,1,{},aYe),f.c=-2,f.e=y8,f.f=y8,x(ni,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),C(593,632,Gs,IA),f.Lj=function(){return this.c},f.ol=function(){return!1},f.Wi=function(t,n){return n},f.c=0,x(ni,"EDataTypeEList",593);var d8e=hi(ni,"FeatureMap");C(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},vi),f.bd=function(t,n){Bnn(this,t,u(n,76))},f.Fc=function(t){return rnn(this,u(t,76))},f.Hi=function(t){uNt(this,u(t,76))},f.Nj=function(t,n){return OLt(this,u(t,76),n)},f.Oj=function(t,n){return jce(this,u(t,76),n)},f.Ti=function(t,n){return aon(this,t,n)},f.Wi=function(t,n){return Jln(this,t,u(n,76))},f.hd=function(t,n){return Trn(this,t,u(n,76))},f.Uj=function(t,n){return _Lt(this,u(t,76),n)},f.Vj=function(t,n){return hWe(this,u(t,76),n)},f.Wj=function(t,n,i){return IJt(this,u(t,76),u(n,76),i)},f.Zi=function(t,n){return eq(this,t,u(n,76))},f.Ol=function(t,n){return $pe(this,t,n)},f.cd=function(t,n){var i,s,c,d,h,b,m,v,k;for(v=new Qb(n.gc()),c=n.Kc();c.Ob();)if(s=u(c.Pb(),76),d=s.Lk(),w1(this.e,d))(!d.Si()||!wL(this,d,s.md())&&!j5(v,s))&&Dn(v,s);else{for(k=cc(this.e.Dh(),d),i=u(this.g,124),h=!0,b=0;b=0;)if(n=t[this.c],this.k.am(n.Lk()))return this.j=this.f?n:n.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},x(ni,"BasicFeatureMap/FeatureEIterator",420),C(676,420,Eh,wU),f.ul=function(){return!0},x(ni,"BasicFeatureMap/ResolvingFeatureEIterator",676),C(968,496,CD,OUe),f.pj=function(){return this},x(ni,"EContentsEList/1",968),C(969,496,CD,eUe),f.ul=function(){return!1},x(ni,"EContentsEList/2",969),C(967,287,SD,_Ue),f.wl=function(t){},f.Ob=function(){return!1},f.Sb=function(){return!1},x(ni,"EContentsEList/FeatureIteratorImpl/1",967),C(840,593,Gs,Kle),f.Ni=function(){this.a=!0},f.Qj=function(){return this.a},f.Gk=function(){var t;jn(this),ku(this.e)?(t=this.a,this.a=!1,_r(this.e,new rf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,x(ni,"EDataTypeEList/Unsettable",840),C(1958,593,Gs,NUe),f.Si=function(){return!0},x(ni,"EDataTypeUniqueEList",1958),C(1959,840,Gs,BUe),f.Si=function(){return!0},x(ni,"EDataTypeUniqueEList/Unsettable",1959),C(147,83,Gs,Rc),f.nl=function(){return!0},f.Wi=function(t,n){return D4(this,t,u(n,58))},x(ni,"EObjectContainmentEList/Resolving",147),C(1184,555,Gs,FUe),f.nl=function(){return!0},f.Wi=function(t,n){return D4(this,t,u(n,58))},x(ni,"EObjectContainmentEList/Unsettable/Resolving",1184),C(766,14,Gs,Mce),f.Ni=function(){this.a=!0},f.Qj=function(){return this.a},f.Gk=function(){var t;jn(this),ku(this.e)?(t=this.a,this.a=!1,_r(this.e,new rf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,x(ni,"EObjectContainmentWithInverseEList/Unsettable",766),C(1222,766,Gs,ZGe),f.nl=function(){return!0},f.Wi=function(t,n){return D4(this,t,u(n,58))},x(ni,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),C(757,505,Gs,Ule),f.Ni=function(){this.a=!0},f.Qj=function(){return this.a},f.Gk=function(){var t;jn(this),ku(this.e)?(t=this.a,this.a=!1,_r(this.e,new rf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,x(ni,"EObjectEList/Unsettable",757),C(338,505,Gs,Ry),f.nl=function(){return!0},f.Wi=function(t,n){return D4(this,t,u(n,58))},x(ni,"EObjectResolvingEList",338),C(1844,757,Gs,zUe),f.nl=function(){return!0},f.Wi=function(t,n){return D4(this,t,u(n,58))},x(ni,"EObjectResolvingEList/Unsettable",1844),C(1527,1,{},OAe);var o6t;x(ni,"EObjectValidator",1527),C(559,505,Gs,UA),f.il=function(){return this.d},f.jl=function(){return this.b},f.Mj=function(){return!0},f.ml=function(){return!0},f.b=0,x(ni,"EObjectWithInverseEList",559),C(1225,559,Gs,eWe),f.ll=function(){return!0},x(ni,"EObjectWithInverseEList/ManyInverse",1225),C(635,559,Gs,NU),f.Ni=function(){this.a=!0},f.Qj=function(){return this.a},f.Gk=function(){var t;jn(this),ku(this.e)?(t=this.a,this.a=!1,_r(this.e,new rf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,x(ni,"EObjectWithInverseEList/Unsettable",635),C(1224,635,Gs,tWe),f.ll=function(){return!0},x(ni,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),C(767,559,Gs,Oce),f.nl=function(){return!0},f.Wi=function(t,n){return D4(this,t,u(n,58))},x(ni,"EObjectWithInverseResolvingEList",767),C(32,767,Gs,jt),f.ll=function(){return!0},x(ni,"EObjectWithInverseResolvingEList/ManyInverse",32),C(768,635,Gs,_ce),f.nl=function(){return!0},f.Wi=function(t,n){return D4(this,t,u(n,58))},x(ni,"EObjectWithInverseResolvingEList/Unsettable",768),C(1223,768,Gs,nWe),f.ll=function(){return!0},x(ni,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),C(1185,632,Gs),f.Li=function(){return(this.b&1792)==0},f.Ni=function(){this.b|=1},f.kl=function(){return(this.b&4)!=0},f.Mj=function(){return(this.b&40)!=0},f.ll=function(){return(this.b&16)!=0},f.ml=function(){return(this.b&8)!=0},f.nl=function(){return(this.b&gv)!=0},f.al=function(){return(this.b&32)!=0},f.ol=function(){return(this.b&af)!=0},f.fk=function(t){return this.d?HYe(this.d,t):this.Lk().Hk().fk(t)},f.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},f.Si=function(){return(this.b&128)!=0},f.Gk=function(){var t;jn(this),this.b&2&&(ku(this.e)?(t=(this.b&1)!=0,this.b&=-2,mk(this,new rf(this.e,2,ci(this.e.Dh(),this.Lk()),t,!1))):this.b&=-2)},f.Yi=function(){return(this.b&1536)==0},f.b=0,x(ni,"EcoreEList/Generic",1185),C(1186,1185,Gs,qqe),f.Lk=function(){return this.a},x(ni,"EcoreEList/Dynamic",1186),C(765,66,ih,Goe),f.aj=function(t){return $I(this.a.a,t)},x(ni,"EcoreEMap/1",765),C(764,83,Gs,Mue),f.Mi=function(t,n){j$(this.b,u(n,136))},f.Oi=function(t,n){Vet(this.b)},f.Pi=function(t,n,i){var s;++(s=this.b,u(n,136),s).e},f.Qi=function(t,n){uV(this.b,u(n,136))},f.Ri=function(t,n,i){uV(this.b,u(i,136)),fe(i)===fe(n)&&u(i,136).Ci(PRt(u(n,136).ld())),j$(this.b,u(n,136))},x(ni,"EcoreEMap/DelegateEObjectContainmentEList",764),C(1220,141,Jwe,uet),x(ni,"EcoreEMap/Unsettable",1220),C(1221,764,Gs,rWe),f.Ni=function(){this.a=!0},f.Qj=function(){return this.a},f.Gk=function(){var t;jn(this),ku(this.e)?(t=this.a,this.a=!1,_r(this.e,new rf(this.e,2,this.c,t,!1))):this.a=!1},f.a=!1,x(ni,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),C(1189,215,u2,XVe),f.a=!1,f.b=!1,x(ni,"EcoreUtil/Copier",1189),C(759,1,co,AYe),f.Nb=function(t){To(this,t)},f.Ob=function(){return Knt(this)},f.Pb=function(){var t;return Knt(this),t=this.b,this.b=null,t},f.Qb=function(){this.a.Qb()},x(ni,"EcoreUtil/ProperContentIterator",759),C(1528,1527,{},O$e);var s6t;x(ni,"EcoreValidator",1528);var l6t;hi(ni,"FeatureMapUtil/Validator"),C(1295,1,{2041:1},_Ae),f.am=function(t){return!0},x(ni,"FeatureMapUtil/1",1295),C(773,1,{2041:1},age),f.am=function(t){var n;return this.c==t?!0:(n=Ve(pn(this.a,t)),n==null?Iin(this,t)?(AJe(this.a,t,(Gt(),S8)),!0):(AJe(this.a,t,(Gt(),kg)),!1):n==(Gt(),S8))},f.e=!1;var _te;x(ni,"FeatureMapUtil/BasicValidator",773),C(774,45,u2,zle),x(ni,"FeatureMapUtil/BasicValidator/Cache",774),C(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},BT),f.bd=function(t,n){xlt(this.c,this.b,t,n)},f.Fc=function(t){return $pe(this.c,this.b,t)},f.cd=function(t,n){return qsn(this.c,this.b,t,n)},f.Gc=function(t){return D7(this,t)},f.Gi=function(t,n){KKt(this.c,this.b,t,n)},f.Wk=function(t,n){return Ipe(this.c,this.b,t,n)},f.$i=function(t){return wj(this.c,this.b,t,!1)},f.Ii=function(){return dUe(this.c,this.b)},f.Ji=function(){return gRt(this.c,this.b)},f.Ki=function(t){return qHt(this.c,this.b,t)},f.Xk=function(t,n){return jGe(this,t,n)},f.$b=function(){F3(this)},f.Hc=function(t){return wL(this.c,this.b,t)},f.Ic=function(t){return VUt(this.c,this.b,t)},f.Xb=function(t){return wj(this.c,this.b,t,!0)},f.Fk=function(t){return this},f.dd=function(t){return tHt(this.c,this.b,t)},f.dc=function(){return nA(this)},f.Qj=function(){return!nP(this.c,this.b)},f.Kc=function(){return AKt(this.c,this.b)},f.ed=function(){return LKt(this.c,this.b)},f.fd=function(t){return fVt(this.c,this.b,t)},f.Ti=function(t,n){return Bct(this.c,this.b,t,n)},f.Ui=function(t,n){JHt(this.c,this.b,t,n)},f.gd=function(t){return wot(this.c,this.b,t)},f.Mc=function(t){return Xin(this.c,this.b,t)},f.hd=function(t,n){return qct(this.c,this.b,t,n)},f.Wb=function(t){Q$(this.c,this.b),D7(this,u(t,15))},f.gc=function(){return aVt(this.c,this.b)},f.Pc=function(){return rzt(this.c,this.b)},f.Qc=function(t){return nHt(this.c,this.b,t)},f.Ib=function(){var t,n;for(n=new B1,n.a+="[",t=dUe(this.c,this.b);ZW(t);)ps(n,B7(A$(t))),ZW(t)&&(n.a+=Xo);return n.a+="]",n.a},f.Gk=function(){Q$(this.c,this.b)},x(ni,"FeatureMapUtil/FeatureEList",509),C(644,39,dM,XG),f.hj=function(t){return TS(this,t)},f.mj=function(t){var n,i,s,c,d,h,b;switch(this.d){case 1:case 2:{if(d=t.jj(),fe(d)===fe(this.c)&&TS(this,null)==t.hj(null))return this.g=t.ij(),t.gj()==1&&(this.d=1),!0;break}case 3:{switch(c=t.gj(),c){case 3:{if(d=t.jj(),fe(d)===fe(this.c)&&TS(this,null)==t.hj(null))return this.d=5,n=new Qb(2),Dn(n,this.g),Dn(n,t.ij()),this.g=n,!0;break}}break}case 5:{switch(c=t.gj(),c){case 3:{if(d=t.jj(),fe(d)===fe(this.c)&&TS(this,null)==t.hj(null))return i=u(this.g,16),i.Fc(t.ij()),!0;break}}break}case 4:{switch(c=t.gj(),c){case 3:{if(d=t.jj(),fe(d)===fe(this.c)&&TS(this,null)==t.hj(null))return this.d=1,this.g=t.ij(),!0;break}case 4:{if(d=t.jj(),fe(d)===fe(this.c)&&TS(this,null)==t.hj(null))return this.d=6,b=new Qb(2),Dn(b,this.n),Dn(b,t.kj()),this.n=b,h=H(F(Bn,1),ur,28,15,[this.o,t.lj()]),this.g=h,!0;break}}break}case 6:{switch(c=t.gj(),c){case 4:{if(d=t.jj(),fe(d)===fe(this.c)&&TS(this,null)==t.hj(null))return i=u(this.n,16),i.Fc(t.kj()),h=u(this.g,53),s=be(Bn,ur,28,h.length+1,15,1),Ol(h,0,s,0,h.length),s[h.length]=t.lj(),this.g=s,!0;break}}break}}return!1},x(ni,"FeatureMapUtil/FeatureENotificationImpl",644),C(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},_A),f.Ol=function(t,n){return $pe(this.c,t,n)},f.Pl=function(t,n,i){return Ipe(this.c,t,n,i)},f.Ql=function(t,n,i){return Zpe(this.c,t,n,i)},f.Rl=function(){return this},f.Sl=function(t,n){return RP(this.c,t,n)},f.Tl=function(t){return u(wj(this.c,this.b,t,!1),76).Lk()},f.Ul=function(t){return u(wj(this.c,this.b,t,!1),76).md()},f.Vl=function(){return this.a},f.Wl=function(t){return!nP(this.c,t)},f.Xl=function(t,n){mj(this.c,t,n)},f.Yl=function(t){return det(this.c,t)},f.Zl=function(t){Grt(this.c,t)},x(ni,"FeatureMapUtil/FeatureFeatureMap",564),C(1294,1,OJ,BKe),f.Fk=function(t){return wj(this.b,this.a,-1,t)},f.Qj=function(){return!nP(this.b,this.a)},f.Wb=function(t){mj(this.b,this.a,t)},f.Gk=function(){Q$(this.b,this.a)},x(ni,"FeatureMapUtil/FeatureValue",1294);var C6,Rte,Ate,S6,c6t,_O=hi(_D,"AnyType");C(680,63,m1,xK),x(_D,"InvalidDatatypeValueException",680);var rF=hi(_D,j1t),RO=hi(_D,D1t),h8e=hi(_D,N1t),u6t,ml,p8e,lb,a6t,f6t,d6t,h6t,p6t,g6t,b6t,w6t,m6t,v6t,y6t,e3,k6t,t3,Ux,C6t,qw,AO,LO,S6t,Gx,Wx;C(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},ase),f.Lh=function(t,n,i){switch(t){case 0:return i?(!this.c&&(this.c=new vi(this,0)),this.c):(!this.c&&(this.c=new vi(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new vi(this,0)),u(jl(this.c,(zr(),lb)),160)):(!this.c&&(this.c=new vi(this,0)),u(u(jl(this.c,(zr(),lb)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new vi(this,2)),this.b):(!this.b&&(this.b=new vi(this,2)),this.b.b)}return ca(this,t-Sn(this.ii()),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():this.ii(),t),n,i)},f.Uh=function(t,n,i){var s;switch(n){case 0:return!this.c&&(this.c=new vi(this,0)),PP(this.c,t,i);case 1:return(!this.c&&(this.c=new vi(this,0)),u(u(jl(this.c,(zr(),lb)),160),71)).Xk(t,i);case 2:return!this.b&&(this.b=new vi(this,2)),PP(this.b,t,i)}return s=u(Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():this.ii(),n),69),s.wk().Ak(this,hfe(this),n-Sn(this.ii()),t,i)},f.Wh=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new vi(this,0)),u(jl(this.c,(zr(),lb)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return sa(this,t-Sn(this.ii()),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():this.ii(),t))},f.bi=function(t,n){switch(t){case 0:!this.c&&(this.c=new vi(this,0)),oI(this.c,n);return;case 1:(!this.c&&(this.c=new vi(this,0)),u(u(jl(this.c,(zr(),lb)),160),220)).Wb(n);return;case 2:!this.b&&(this.b=new vi(this,2)),oI(this.b,n);return}da(this,t-Sn(this.ii()),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():this.ii(),t),n)},f.ii=function(){return zr(),p8e},f.ki=function(t){switch(t){case 0:!this.c&&(this.c=new vi(this,0)),jn(this.c);return;case 1:(!this.c&&(this.c=new vi(this,0)),u(jl(this.c,(zr(),lb)),160)).$b();return;case 2:!this.b&&(this.b=new vi(this,2)),jn(this.b);return}fa(this,t-Sn(this.ii()),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():this.ii(),t))},f.Ib=function(){var t;return this.j&4?lf(this):(t=new Ma(lf(this)),t.a+=" (mixed: ",A7(t,this.c),t.a+=", anyAttribute: ",A7(t,this.b),t.a+=")",t.a)},x(Ni,"AnyTypeImpl",844),C(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},HAe),f.Lh=function(t,n,i){switch(t){case 0:return this.a;case 1:return this.b}return ca(this,t-Sn((zr(),e3)),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():e3,t),n,i)},f.Wh=function(t){switch(t){case 0:return this.a!=null;case 1:return this.b!=null}return sa(this,t-Sn((zr(),e3)),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():e3,t))},f.bi=function(t,n){switch(t){case 0:iOt(this,Jn(n));return;case 1:sOt(this,Jn(n));return}da(this,t-Sn((zr(),e3)),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():e3,t),n)},f.ii=function(){return zr(),e3},f.ki=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}fa(this,t-Sn((zr(),e3)),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():e3,t))},f.Ib=function(){var t;return this.j&4?lf(this):(t=new Ma(lf(this)),t.a+=" (data: ",ps(t,this.a),t.a+=", target: ",ps(t,this.b),t.a+=")",t.a)},f.a=null,f.b=null,x(Ni,"ProcessingInstructionImpl",681),C(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},mFe),f.Lh=function(t,n,i){switch(t){case 0:return i?(!this.c&&(this.c=new vi(this,0)),this.c):(!this.c&&(this.c=new vi(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new vi(this,0)),u(jl(this.c,(zr(),lb)),160)):(!this.c&&(this.c=new vi(this,0)),u(u(jl(this.c,(zr(),lb)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new vi(this,2)),this.b):(!this.b&&(this.b=new vi(this,2)),this.b.b);case 3:return!this.c&&(this.c=new vi(this,0)),Jn(RP(this.c,(zr(),Ux),!0));case 4:return Ace(this.a,(!this.c&&(this.c=new vi(this,0)),Jn(RP(this.c,(zr(),Ux),!0))));case 5:return this.a}return ca(this,t-Sn((zr(),t3)),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():t3,t),n,i)},f.Wh=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new vi(this,0)),u(jl(this.c,(zr(),lb)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new vi(this,0)),Jn(RP(this.c,(zr(),Ux),!0))!=null;case 4:return Ace(this.a,(!this.c&&(this.c=new vi(this,0)),Jn(RP(this.c,(zr(),Ux),!0))))!=null;case 5:return!!this.a}return sa(this,t-Sn((zr(),t3)),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():t3,t))},f.bi=function(t,n){switch(t){case 0:!this.c&&(this.c=new vi(this,0)),oI(this.c,n);return;case 1:(!this.c&&(this.c=new vi(this,0)),u(u(jl(this.c,(zr(),lb)),160),220)).Wb(n);return;case 2:!this.b&&(this.b=new vi(this,2)),oI(this.b,n);return;case 3:kae(this,Jn(n));return;case 4:kae(this,Rce(this.a,n));return;case 5:oOt(this,u(n,156));return}da(this,t-Sn((zr(),t3)),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():t3,t),n)},f.ii=function(){return zr(),t3},f.ki=function(t){switch(t){case 0:!this.c&&(this.c=new vi(this,0)),jn(this.c);return;case 1:(!this.c&&(this.c=new vi(this,0)),u(jl(this.c,(zr(),lb)),160)).$b();return;case 2:!this.b&&(this.b=new vi(this,2)),jn(this.b);return;case 3:!this.c&&(this.c=new vi(this,0)),mj(this.c,(zr(),Ux),null);return;case 4:kae(this,Rce(this.a,null));return;case 5:this.a=null;return}fa(this,t-Sn((zr(),t3)),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():t3,t))},x(Ni,"SimpleAnyTypeImpl",682),C(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},vFe),f.Lh=function(t,n,i){switch(t){case 0:return i?(!this.a&&(this.a=new vi(this,0)),this.a):(!this.a&&(this.a=new vi(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new jc((Mt(),ns),dl,this,1)),this.b):(!this.b&&(this.b=new jc((Mt(),ns),dl,this,1)),SI(this.b));case 2:return i?(!this.c&&(this.c=new jc((Mt(),ns),dl,this,2)),this.c):(!this.c&&(this.c=new jc((Mt(),ns),dl,this,2)),SI(this.c));case 3:return!this.a&&(this.a=new vi(this,0)),jl(this.a,(zr(),AO));case 4:return!this.a&&(this.a=new vi(this,0)),jl(this.a,(zr(),LO));case 5:return!this.a&&(this.a=new vi(this,0)),jl(this.a,(zr(),Gx));case 6:return!this.a&&(this.a=new vi(this,0)),jl(this.a,(zr(),Wx))}return ca(this,t-Sn((zr(),qw)),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():qw,t),n,i)},f.Uh=function(t,n,i){var s;switch(n){case 0:return!this.a&&(this.a=new vi(this,0)),PP(this.a,t,i);case 1:return!this.b&&(this.b=new jc((Mt(),ns),dl,this,1)),yA(this.b,t,i);case 2:return!this.c&&(this.c=new jc((Mt(),ns),dl,this,2)),yA(this.c,t,i);case 5:return!this.a&&(this.a=new vi(this,0)),jGe(jl(this.a,(zr(),Gx)),t,i)}return s=u(Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():(zr(),qw),n),69),s.wk().Ak(this,hfe(this),n-Sn((zr(),qw)),t,i)},f.Wh=function(t){switch(t){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new vi(this,0)),!nA(jl(this.a,(zr(),AO)));case 4:return!this.a&&(this.a=new vi(this,0)),!nA(jl(this.a,(zr(),LO)));case 5:return!this.a&&(this.a=new vi(this,0)),!nA(jl(this.a,(zr(),Gx)));case 6:return!this.a&&(this.a=new vi(this,0)),!nA(jl(this.a,(zr(),Wx)))}return sa(this,t-Sn((zr(),qw)),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():qw,t))},f.bi=function(t,n){switch(t){case 0:!this.a&&(this.a=new vi(this,0)),oI(this.a,n);return;case 1:!this.b&&(this.b=new jc((Mt(),ns),dl,this,1)),n$(this.b,n);return;case 2:!this.c&&(this.c=new jc((Mt(),ns),dl,this,2)),n$(this.c,n);return;case 3:!this.a&&(this.a=new vi(this,0)),F3(jl(this.a,(zr(),AO))),!this.a&&(this.a=new vi(this,0)),D7(jl(this.a,AO),u(n,16));return;case 4:!this.a&&(this.a=new vi(this,0)),F3(jl(this.a,(zr(),LO))),!this.a&&(this.a=new vi(this,0)),D7(jl(this.a,LO),u(n,16));return;case 5:!this.a&&(this.a=new vi(this,0)),F3(jl(this.a,(zr(),Gx))),!this.a&&(this.a=new vi(this,0)),D7(jl(this.a,Gx),u(n,16));return;case 6:!this.a&&(this.a=new vi(this,0)),F3(jl(this.a,(zr(),Wx))),!this.a&&(this.a=new vi(this,0)),D7(jl(this.a,Wx),u(n,16));return}da(this,t-Sn((zr(),qw)),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():qw,t),n)},f.ii=function(){return zr(),qw},f.ki=function(t){switch(t){case 0:!this.a&&(this.a=new vi(this,0)),jn(this.a);return;case 1:!this.b&&(this.b=new jc((Mt(),ns),dl,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new jc((Mt(),ns),dl,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new vi(this,0)),F3(jl(this.a,(zr(),AO)));return;case 4:!this.a&&(this.a=new vi(this,0)),F3(jl(this.a,(zr(),LO)));return;case 5:!this.a&&(this.a=new vi(this,0)),F3(jl(this.a,(zr(),Gx)));return;case 6:!this.a&&(this.a=new vi(this,0)),F3(jl(this.a,(zr(),Wx)));return}fa(this,t-Sn((zr(),qw)),Dt(this.j&2?(!this.k&&(this.k=new If),this.k).Nk():qw,t))},f.Ib=function(){var t;return this.j&4?lf(this):(t=new Ma(lf(this)),t.a+=" (mixed: ",A7(t,this.a),t.a+=")",t.a)},x(Ni,"XMLTypeDocumentRootImpl",683),C(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},RAe),f.ri=function(t,n){switch(t.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return n==null?null:Us(n);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Jn(n);case 6:return zAt(u(n,195));case 12:case 47:case 49:case 11:return $ut(this,t,n);case 13:return n==null?null:Jsn(u(n,247));case 15:case 14:return n==null?null:rNt(le(pe(n)));case 17:return Rit((zr(),n));case 18:return Rit(n);case 21:case 20:return n==null?null:iNt(u(n,161).a);case 27:return HAt(u(n,195));case 30:return Wrt((zr(),u(n,15)));case 31:return Wrt(u(n,15));case 40:return UAt((zr(),n));case 42:return Ait((zr(),n));case 43:return Ait(n);case 59:case 48:return KAt((zr(),n));default:throw B(new Qt(w8+t.xe()+xw))}},f.si=function(t){var n,i,s,c,d;switch(t.G==-1&&(t.G=(i=ju(t),i?sp(i.vi(),t):-1)),t.G){case 0:return n=new ase,n;case 1:return s=new HAe,s;case 2:return c=new mFe,c;case 3:return d=new vFe,d;default:throw B(new Qt(pJ+t.zb+xw))}},f.ti=function(t,n){var i,s,c,d,h,b,m,v,k,T,P,O,L,$,z,J;switch(t.hk()){case 5:case 52:case 4:return n;case 6:return Yqt(n);case 8:case 7:return n==null?null:jJt(n);case 9:return n==null?null:_I(zu((s=Nl(n,!0),s.length>0&&(Zt(0,s.length),s.charCodeAt(0)==43)?(Zt(1,s.length+1),s.substr(1)):s),-128,127)<<24>>24);case 10:return n==null?null:_I(zu((c=Nl(n,!0),c.length>0&&(Zt(0,c.length),c.charCodeAt(0)==43)?(Zt(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return Jn(bw(this,(zr(),d6t),n));case 12:return Jn(bw(this,(zr(),h6t),n));case 13:return n==null?null:new Lse(Nl(n,!0));case 15:case 14:return onn(n);case 16:return Jn(bw(this,(zr(),p6t),n));case 17:return qnt((zr(),n));case 18:return qnt(n);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Nl(n,!0);case 21:case 20:return gnn(n);case 22:return Jn(bw(this,(zr(),g6t),n));case 23:return Jn(bw(this,(zr(),b6t),n));case 24:return Jn(bw(this,(zr(),w6t),n));case 25:return Jn(bw(this,(zr(),m6t),n));case 26:return Jn(bw(this,(zr(),v6t),n));case 27:return Nqt(n);case 30:return Xnt((zr(),n));case 31:return Xnt(n);case 32:return n==null?null:Ae(zu((k=Nl(n,!0),k.length>0&&(Zt(0,k.length),k.charCodeAt(0)==43)?(Zt(1,k.length+1),k.substr(1)):k),jo,Mr));case 33:return n==null?null:new qp((T=Nl(n,!0),T.length>0&&(Zt(0,T.length),T.charCodeAt(0)==43)?(Zt(1,T.length+1),T.substr(1)):T));case 34:return n==null?null:Ae(zu((P=Nl(n,!0),P.length>0&&(Zt(0,P.length),P.charCodeAt(0)==43)?(Zt(1,P.length+1),P.substr(1)):P),jo,Mr));case 36:return n==null?null:p1(Cj((O=Nl(n,!0),O.length>0&&(Zt(0,O.length),O.charCodeAt(0)==43)?(Zt(1,O.length+1),O.substr(1)):O)));case 37:return n==null?null:p1(Cj((L=Nl(n,!0),L.length>0&&(Zt(0,L.length),L.charCodeAt(0)==43)?(Zt(1,L.length+1),L.substr(1)):L)));case 40:return $Xt((zr(),n));case 42:return Ynt((zr(),n));case 43:return Ynt(n);case 44:return n==null?null:new qp(($=Nl(n,!0),$.length>0&&(Zt(0,$.length),$.charCodeAt(0)==43)?(Zt(1,$.length+1),$.substr(1)):$));case 45:return n==null?null:new qp((z=Nl(n,!0),z.length>0&&(Zt(0,z.length),z.charCodeAt(0)==43)?(Zt(1,z.length+1),z.substr(1)):z));case 46:return Nl(n,!1);case 47:return Jn(bw(this,(zr(),y6t),n));case 59:case 48:return LXt((zr(),n));case 49:return Jn(bw(this,(zr(),k6t),n));case 50:return n==null?null:x5(zu((J=Nl(n,!0),J.length>0&&(Zt(0,J.length),J.charCodeAt(0)==43)?(Zt(1,J.length+1),J.substr(1)):J),ID,32767)<<16>>16);case 51:return n==null?null:x5(zu((d=Nl(n,!0),d.length>0&&(Zt(0,d.length),d.charCodeAt(0)==43)?(Zt(1,d.length+1),d.substr(1)):d),ID,32767)<<16>>16);case 53:return Jn(bw(this,(zr(),C6t),n));case 55:return n==null?null:x5(zu((h=Nl(n,!0),h.length>0&&(Zt(0,h.length),h.charCodeAt(0)==43)?(Zt(1,h.length+1),h.substr(1)):h),ID,32767)<<16>>16);case 56:return n==null?null:x5(zu((b=Nl(n,!0),b.length>0&&(Zt(0,b.length),b.charCodeAt(0)==43)?(Zt(1,b.length+1),b.substr(1)):b),ID,32767)<<16>>16);case 57:return n==null?null:p1(Cj((m=Nl(n,!0),m.length>0&&(Zt(0,m.length),m.charCodeAt(0)==43)?(Zt(1,m.length+1),m.substr(1)):m)));case 58:return n==null?null:p1(Cj((v=Nl(n,!0),v.length>0&&(Zt(0,v.length),v.charCodeAt(0)==43)?(Zt(1,v.length+1),v.substr(1)):v)));case 60:return n==null?null:Ae(zu((i=Nl(n,!0),i.length>0&&(Zt(0,i.length),i.charCodeAt(0)==43)?(Zt(1,i.length+1),i.substr(1)):i),jo,Mr));case 61:return n==null?null:Ae(zu(Nl(n,!0),jo,Mr));default:throw B(new Qt(w8+t.xe()+xw))}};var x6t,g8e,E6t,b8e;x(Ni,"XMLTypeFactoryImpl",2028),C(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},wqe),f.N=!1,f.O=!1;var T6t=!1;x(Ni,"XMLTypePackageImpl",594),C(1961,1,{851:1},AAe),f.Kk=function(){return Upe(),$6t},x(Ni,"XMLTypePackageImpl/1",1961),C(1970,1,mr,LAe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/10",1970),C(1971,1,mr,$Ae),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/11",1971),C(1972,1,mr,jAe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/12",1972),C(1973,1,mr,DAe),f.fk=function(t){return xm(t)},f.gk=function(t){return be(Bi,_e,345,t,7,1)},x(Ni,"XMLTypePackageImpl/13",1973),C(1974,1,mr,NAe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/14",1974),C(1975,1,mr,BAe),f.fk=function(t){return te(t,15)},f.gk=function(t){return be(ya,uv,15,t,0,1)},x(Ni,"XMLTypePackageImpl/15",1975),C(1976,1,mr,FAe),f.fk=function(t){return te(t,15)},f.gk=function(t){return be(ya,uv,15,t,0,1)},x(Ni,"XMLTypePackageImpl/16",1976),C(1977,1,mr,zAe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/17",1977),C(1978,1,mr,KAe),f.fk=function(t){return te(t,161)},f.gk=function(t){return be(x8,_e,161,t,0,1)},x(Ni,"XMLTypePackageImpl/18",1978),C(1979,1,mr,UAe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/19",1979),C(1962,1,mr,GAe),f.fk=function(t){return te(t,857)},f.gk=function(t){return be(_O,Bt,857,t,0,1)},x(Ni,"XMLTypePackageImpl/2",1962),C(1980,1,mr,WAe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/20",1980),C(1981,1,mr,VAe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/21",1981),C(1982,1,mr,qAe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/22",1982),C(1983,1,mr,XAe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/23",1983),C(1984,1,mr,YAe),f.fk=function(t){return te(t,195)},f.gk=function(t){return be(Kc,_e,195,t,0,2)},x(Ni,"XMLTypePackageImpl/24",1984),C(1985,1,mr,JAe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/25",1985),C(1986,1,mr,QAe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/26",1986),C(1987,1,mr,ZAe),f.fk=function(t){return te(t,15)},f.gk=function(t){return be(ya,uv,15,t,0,1)},x(Ni,"XMLTypePackageImpl/27",1987),C(1988,1,mr,eLe),f.fk=function(t){return te(t,15)},f.gk=function(t){return be(ya,uv,15,t,0,1)},x(Ni,"XMLTypePackageImpl/28",1988),C(1989,1,mr,tLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/29",1989),C(1963,1,mr,nLe),f.fk=function(t){return te(t,681)},f.gk=function(t){return be(rF,Bt,2119,t,0,1)},x(Ni,"XMLTypePackageImpl/3",1963),C(1990,1,mr,rLe),f.fk=function(t){return te(t,17)},f.gk=function(t){return be(Oo,_e,17,t,0,1)},x(Ni,"XMLTypePackageImpl/30",1990),C(1991,1,mr,iLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/31",1991),C(1992,1,mr,oLe),f.fk=function(t){return te(t,168)},f.gk=function(t){return be(Tw,_e,168,t,0,1)},x(Ni,"XMLTypePackageImpl/32",1992),C(1993,1,mr,sLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/33",1993),C(1994,1,mr,lLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/34",1994),C(1995,1,mr,cLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/35",1995),C(1996,1,mr,uLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/36",1996),C(1997,1,mr,aLe),f.fk=function(t){return te(t,15)},f.gk=function(t){return be(ya,uv,15,t,0,1)},x(Ni,"XMLTypePackageImpl/37",1997),C(1998,1,mr,fLe),f.fk=function(t){return te(t,15)},f.gk=function(t){return be(ya,uv,15,t,0,1)},x(Ni,"XMLTypePackageImpl/38",1998),C(1999,1,mr,dLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/39",1999),C(1964,1,mr,hLe),f.fk=function(t){return te(t,682)},f.gk=function(t){return be(RO,Bt,2120,t,0,1)},x(Ni,"XMLTypePackageImpl/4",1964),C(2e3,1,mr,pLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/40",2e3),C(2001,1,mr,gLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/41",2001),C(2002,1,mr,bLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/42",2002),C(2003,1,mr,wLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/43",2003),C(2004,1,mr,mLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/44",2004),C(2005,1,mr,vLe),f.fk=function(t){return te(t,191)},f.gk=function(t){return be(Iw,_e,191,t,0,1)},x(Ni,"XMLTypePackageImpl/45",2005),C(2006,1,mr,yLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/46",2006),C(2007,1,mr,kLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/47",2007),C(2008,1,mr,CLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/48",2008),C(2009,1,mr,SLe),f.fk=function(t){return te(t,191)},f.gk=function(t){return be(Iw,_e,191,t,0,1)},x(Ni,"XMLTypePackageImpl/49",2009),C(1965,1,mr,xLe),f.fk=function(t){return te(t,683)},f.gk=function(t){return be(h8e,Bt,2121,t,0,1)},x(Ni,"XMLTypePackageImpl/5",1965),C(2010,1,mr,ELe),f.fk=function(t){return te(t,168)},f.gk=function(t){return be(Tw,_e,168,t,0,1)},x(Ni,"XMLTypePackageImpl/50",2010),C(2011,1,mr,TLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/51",2011),C(2012,1,mr,ILe),f.fk=function(t){return te(t,17)},f.gk=function(t){return be(Oo,_e,17,t,0,1)},x(Ni,"XMLTypePackageImpl/52",2012),C(1966,1,mr,PLe),f.fk=function(t){return lo(t)},f.gk=function(t){return be(Je,_e,2,t,6,1)},x(Ni,"XMLTypePackageImpl/6",1966),C(1967,1,mr,MLe),f.fk=function(t){return te(t,195)},f.gk=function(t){return be(Kc,_e,195,t,0,2)},x(Ni,"XMLTypePackageImpl/7",1967),C(1968,1,mr,OLe),f.fk=function(t){return Sm(t)},f.gk=function(t){return be(xi,_e,485,t,8,1)},x(Ni,"XMLTypePackageImpl/8",1968),C(1969,1,mr,_Le),f.fk=function(t){return te(t,222)},f.gk=function(t){return be(Z4,_e,222,t,0,1)},x(Ni,"XMLTypePackageImpl/9",1969);var xd,Pp,Vx,iF,W;C(55,63,m1,er),x(pp,"RegEx/ParseException",55),C(836,1,{},foe),f.bm=function(t){return ti*16)throw B(new er(ir((Yn(),Xht))));i=i*16+c}while(!0);if(this.a!=125)throw B(new er(ir((Yn(),Yht))));if(i>k8)throw B(new er(ir((Yn(),Jht))));t=i}else{if(c=0,this.c!=0||(c=M0(this.a))<0)throw B(new er(ir((Yn(),hp))));if(i=c,Er(this),this.c!=0||(c=M0(this.a))<0)throw B(new er(ir((Yn(),hp))));i=i*16+c,t=i}break;case 117:if(s=0,Er(this),this.c!=0||(s=M0(this.a))<0)throw B(new er(ir((Yn(),hp))));if(n=s,Er(this),this.c!=0||(s=M0(this.a))<0)throw B(new er(ir((Yn(),hp))));if(n=n*16+s,Er(this),this.c!=0||(s=M0(this.a))<0)throw B(new er(ir((Yn(),hp))));if(n=n*16+s,Er(this),this.c!=0||(s=M0(this.a))<0)throw B(new er(ir((Yn(),hp))));n=n*16+s,t=n;break;case 118:if(Er(this),this.c!=0||(s=M0(this.a))<0)throw B(new er(ir((Yn(),hp))));if(n=s,Er(this),this.c!=0||(s=M0(this.a))<0)throw B(new er(ir((Yn(),hp))));if(n=n*16+s,Er(this),this.c!=0||(s=M0(this.a))<0)throw B(new er(ir((Yn(),hp))));if(n=n*16+s,Er(this),this.c!=0||(s=M0(this.a))<0)throw B(new er(ir((Yn(),hp))));if(n=n*16+s,Er(this),this.c!=0||(s=M0(this.a))<0)throw B(new er(ir((Yn(),hp))));if(n=n*16+s,Er(this),this.c!=0||(s=M0(this.a))<0)throw B(new er(ir((Yn(),hp))));if(n=n*16+s,n>k8)throw B(new er(ir((Yn(),"parser.descappe.4"))));t=n;break;case 65:case 90:case 122:throw B(new er(ir((Yn(),Qht))))}return t},f.dm=function(t){var n,i;switch(t){case 100:i=(this.e&32)==32?hg("Nd",!0):(Ir(),oF);break;case 68:i=(this.e&32)==32?hg("Nd",!1):(Ir(),C8e);break;case 119:i=(this.e&32)==32?hg("IsWord",!0):(Ir(),cC);break;case 87:i=(this.e&32)==32?hg("IsWord",!1):(Ir(),x8e);break;case 115:i=(this.e&32)==32?hg("IsSpace",!0):(Ir(),x6);break;case 83:i=(this.e&32)==32?hg("IsSpace",!1):(Ir(),S8e);break;default:throw B(new Xs((n=t,Q1t+n.toString(16))))}return i},f.em=function(t){var n,i,s,c,d,h,b,m,v,k,T,P;for(this.b=1,Er(this),n=null,this.c==0&&this.a==94?(Er(this),t?k=(Ir(),Ir(),new $u(5)):(n=(Ir(),Ir(),new $u(4)),Dl(n,0,k8),k=new $u(4))):k=(Ir(),Ir(),new $u(4)),c=!0;(P=this.c)!=1&&!(P==0&&this.a==93&&!c);){if(c=!1,i=this.a,s=!1,P==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:ov(k,this.dm(i)),s=!0;break;case 105:case 73:case 99:case 67:i=this.um(k,i),i<0&&(s=!0);break;case 112:case 80:if(T=H1e(this,i),!T)throw B(new er(ir((Yn(),IJ))));ov(k,T),s=!0;break;default:i=this.cm()}else if(P==20){if(h=_k(this.i,58,this.d),h<0)throw B(new er(ir((Yn(),Gwe))));if(b=!0,Lo(this.i,this.d)==94&&(++this.d,b=!1),d=oa(this.i,this.d,h),m=CQe(d,b,(this.e&512)==512),!m)throw B(new er(ir((Yn(),Uht))));if(ov(k,m),s=!0,h+1>=this.j||Lo(this.i,h+1)!=93)throw B(new er(ir((Yn(),Gwe))));this.d=h+2}if(Er(this),!s)if(this.c!=0||this.a!=45)Dl(k,i,i);else{if(Er(this),(P=this.c)==1)throw B(new er(ir((Yn(),yD))));P==0&&this.a==93?(Dl(k,i,i),Dl(k,45,45)):(v=this.a,P==10&&(v=this.cm()),Er(this),Dl(k,i,v))}(this.e&af)==af&&this.c==0&&this.a==44&&Er(this)}if(this.c==1)throw B(new er(ir((Yn(),yD))));return n&&(i9(n,k),k=n),e2(k),n9(k),this.b=0,Er(this),k},f.fm=function(){var t,n,i,s;for(i=this.em(!1);(s=this.c)!=7;)if(t=this.a,s==0&&(t==45||t==38)||s==4){if(Er(this),this.c!=9)throw B(new er(ir((Yn(),Wht))));if(n=this.em(!1),s==4)ov(i,n);else if(t==45)i9(i,n);else if(t==38)_ut(i,n);else throw B(new Xs("ASSERT"))}else throw B(new er(ir((Yn(),Vht))));return Er(this),i},f.gm=function(){var t,n;return t=this.a-48,n=(Ir(),Ir(),new LG(12,null,t)),!this.g&&(this.g=new pR),hR(this.g,new Woe(t)),Er(this),n},f.hm=function(){return Er(this),Ir(),M6t},f.im=function(){return Er(this),Ir(),P6t},f.jm=function(){throw B(new er(ir((Yn(),va))))},f.km=function(){throw B(new er(ir((Yn(),va))))},f.lm=function(){return Er(this),ZGt()},f.mm=function(){return Er(this),Ir(),_6t},f.nm=function(){return Er(this),Ir(),A6t},f.om=function(){var t;if(this.d>=this.j||((t=Lo(this.i,this.d++))&65504)!=64)throw B(new er(ir((Yn(),zht))));return Er(this),Ir(),Ir(),new wh(0,t-64)},f.pm=function(){return Er(this),nsn()},f.qm=function(){return Er(this),Ir(),L6t},f.rm=function(){var t;return t=(Ir(),Ir(),new wh(0,105)),Er(this),t},f.sm=function(){return Er(this),Ir(),R6t},f.tm=function(){return Er(this),Ir(),O6t},f.um=function(t,n){return this.cm()},f.vm=function(){return Er(this),Ir(),y8e},f.wm=function(){var t,n,i,s,c;if(this.d+1>=this.j)throw B(new er(ir((Yn(),Nht))));if(s=-1,n=null,t=Lo(this.i,this.d),49<=t&&t<=57){if(s=t-48,!this.g&&(this.g=new pR),hR(this.g,new Woe(s)),++this.d,Lo(this.i,this.d)!=41)throw B(new er(ir((Yn(),H0))));++this.d}else switch(t==63&&--this.d,Er(this),n=gge(this),n.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw B(new er(ir((Yn(),H0))));break;default:throw B(new er(ir((Yn(),Bht))))}if(Er(this),c=cw(this),i=null,c.e==2){if(c.Pm()!=2)throw B(new er(ir((Yn(),Fht))));i=c.Lm(1),c=c.Lm(0)}if(this.c!=7)throw B(new er(ir((Yn(),H0))));return Er(this),Ir(),Ir(),new rZe(s,n,c,i)},f.xm=function(){return Er(this),Ir(),k8e},f.ym=function(){var t;if(Er(this),t=GA(24,cw(this)),this.c!=7)throw B(new er(ir((Yn(),H0))));return Er(this),t},f.zm=function(){var t;if(Er(this),t=GA(20,cw(this)),this.c!=7)throw B(new er(ir((Yn(),H0))));return Er(this),t},f.Am=function(){var t;if(Er(this),t=GA(22,cw(this)),this.c!=7)throw B(new er(ir((Yn(),H0))));return Er(this),t},f.Bm=function(){var t,n,i,s,c;for(t=0,i=0,n=-1;this.d=this.j)throw B(new er(ir((Yn(),Kwe))));if(n==45){for(++this.d;this.d=this.j)throw B(new er(ir((Yn(),Kwe))))}if(n==58){if(++this.d,Er(this),s=QVe(cw(this),t,i),this.c!=7)throw B(new er(ir((Yn(),H0))));Er(this)}else if(n==41)++this.d,Er(this),s=QVe(cw(this),t,i);else throw B(new er(ir((Yn(),Dht))));return s},f.Cm=function(){var t;if(Er(this),t=GA(21,cw(this)),this.c!=7)throw B(new er(ir((Yn(),H0))));return Er(this),t},f.Dm=function(){var t;if(Er(this),t=GA(23,cw(this)),this.c!=7)throw B(new er(ir((Yn(),H0))));return Er(this),t},f.Em=function(){var t,n;if(Er(this),t=this.f++,n=cG(cw(this),t),this.c!=7)throw B(new er(ir((Yn(),H0))));return Er(this),n},f.Fm=function(){var t;if(Er(this),t=cG(cw(this),0),this.c!=7)throw B(new er(ir((Yn(),H0))));return Er(this),t},f.Gm=function(t){return Er(this),this.c==5?(Er(this),jA(t,(Ir(),Ir(),new jm(9,t)))):jA(t,(Ir(),Ir(),new jm(3,t)))},f.Hm=function(t){var n;return Er(this),n=(Ir(),Ir(),new j7(2)),this.c==5?(Er(this),R0(n,Xx),R0(n,t)):(R0(n,t),R0(n,Xx)),n},f.Im=function(t){return Er(this),this.c==5?(Er(this),Ir(),Ir(),new jm(9,t)):(Ir(),Ir(),new jm(3,t))},f.a=0,f.b=0,f.c=0,f.d=0,f.e=0,f.f=1,f.g=null,f.j=0,x(pp,"RegEx/RegexParser",836),C(1947,836,{},yFe),f.bm=function(t){return!1},f.cm=function(){return Spe(this)},f.dm=function(t){return W5(t)},f.em=function(t){return Tat(this)},f.fm=function(){throw B(new er(ir((Yn(),va))))},f.gm=function(){throw B(new er(ir((Yn(),va))))},f.hm=function(){throw B(new er(ir((Yn(),va))))},f.im=function(){throw B(new er(ir((Yn(),va))))},f.jm=function(){return Er(this),W5(67)},f.km=function(){return Er(this),W5(73)},f.lm=function(){throw B(new er(ir((Yn(),va))))},f.mm=function(){throw B(new er(ir((Yn(),va))))},f.nm=function(){throw B(new er(ir((Yn(),va))))},f.om=function(){return Er(this),W5(99)},f.pm=function(){throw B(new er(ir((Yn(),va))))},f.qm=function(){throw B(new er(ir((Yn(),va))))},f.rm=function(){return Er(this),W5(105)},f.sm=function(){throw B(new er(ir((Yn(),va))))},f.tm=function(){throw B(new er(ir((Yn(),va))))},f.um=function(t,n){return ov(t,W5(n)),-1},f.vm=function(){return Er(this),Ir(),Ir(),new wh(0,94)},f.wm=function(){throw B(new er(ir((Yn(),va))))},f.xm=function(){return Er(this),Ir(),Ir(),new wh(0,36)},f.ym=function(){throw B(new er(ir((Yn(),va))))},f.zm=function(){throw B(new er(ir((Yn(),va))))},f.Am=function(){throw B(new er(ir((Yn(),va))))},f.Bm=function(){throw B(new er(ir((Yn(),va))))},f.Cm=function(){throw B(new er(ir((Yn(),va))))},f.Dm=function(){throw B(new er(ir((Yn(),va))))},f.Em=function(){var t;if(Er(this),t=cG(cw(this),0),this.c!=7)throw B(new er(ir((Yn(),H0))));return Er(this),t},f.Fm=function(){throw B(new er(ir((Yn(),va))))},f.Gm=function(t){return Er(this),jA(t,(Ir(),Ir(),new jm(3,t)))},f.Hm=function(t){var n;return Er(this),n=(Ir(),Ir(),new j7(2)),R0(n,t),R0(n,Xx),n},f.Im=function(t){return Er(this),Ir(),Ir(),new jm(3,t)};var n3=null,sC=null;x(pp,"RegEx/ParserForXMLSchema",1947),C(122,1,C8,vb),f.Jm=function(t){throw B(new Xs("Not supported."))},f.Km=function(){return-1},f.Lm=function(t){return null},f.Mm=function(){return null},f.Nm=function(t){},f.Om=function(t){},f.Pm=function(){return 0},f.Ib=function(){return this.Qm(0)},f.Qm=function(t){return this.e==11?".":""},f.e=0;var w8e,lC,qx,I6t,m8e,Vv=null,oF,Lte=null,v8e,Xx,$te=null,y8e,k8e,C8e,S8e,x8e,P6t,x6,M6t,O6t,_6t,R6t,cC,A6t,L6t,dfn=x(pp,"RegEx/Token",122);C(138,122,{3:1,138:1,122:1},$u),f.Qm=function(t){var n,i,s;if(this.e==4)if(this==v8e)i=".";else if(this==oF)i="\\d";else if(this==cC)i="\\w";else if(this==x6)i="\\s";else{for(s=new B1,s.a+="[",n=0;n0&&(s.a+=","),this.b[n]===this.b[n+1]?ps(s,_P(this.b[n])):(ps(s,_P(this.b[n])),s.a+="-",ps(s,_P(this.b[n+1])));s.a+="]",i=s.a}else if(this==C8e)i="\\D";else if(this==x8e)i="\\W";else if(this==S8e)i="\\S";else{for(s=new B1,s.a+="[^",n=0;n0&&(s.a+=","),this.b[n]===this.b[n+1]?ps(s,_P(this.b[n])):(ps(s,_P(this.b[n])),s.a+="-",ps(s,_P(this.b[n+1])));s.a+="]",i=s.a}return i},f.a=!1,f.c=!1,x(pp,"RegEx/RangeToken",138),C(592,1,{592:1},Woe),f.a=0,x(pp,"RegEx/RegexParser/ReferencePosition",592),C(591,1,{3:1,591:1},$ze),f.Fb=function(t){var n;return t==null||!te(t,591)?!1:(n=u(t,591),Et(this.b,n.b)&&this.a==n.a)},f.Hb=function(){return Z1(this.b+"/"+bpe(this.a))},f.Ib=function(){return this.c.Qm(this.a)},f.a=0,x(pp,"RegEx/RegularExpression",591),C(228,122,C8,wh),f.Km=function(){return this.a},f.Qm=function(t){var n,i,s;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:s="\\"+DU(this.a&Di);break;case 12:s="\\f";break;case 10:s="\\n";break;case 13:s="\\r";break;case 9:s="\\t";break;case 27:s="\\e";break;default:this.a>=es?(i=(n=this.a>>>0,"0"+n.toString(16)),s="\\v"+oa(i,i.length-6,i.length)):s=""+DU(this.a&Di)}break;case 8:this==y8e||this==k8e?s=""+DU(this.a&Di):s="\\"+DU(this.a&Di);break;default:s=null}return s},f.a=0,x(pp,"RegEx/Token/CharToken",228),C(318,122,C8,jm),f.Lm=function(t){return this.a},f.Nm=function(t){this.b=t},f.Om=function(t){this.c=t},f.Pm=function(){return 1},f.Qm=function(t){var n;if(this.e==3)if(this.c<0&&this.b<0)n=this.a.Qm(t)+"*";else if(this.c==this.b)n=this.a.Qm(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)n=this.a.Qm(t)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)n=this.a.Qm(t)+"{"+this.c+",}";else throw B(new Xs("Token#toString(): CLOSURE "+this.c+Xo+this.b));else if(this.c<0&&this.b<0)n=this.a.Qm(t)+"*?";else if(this.c==this.b)n=this.a.Qm(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)n=this.a.Qm(t)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)n=this.a.Qm(t)+"{"+this.c+",}?";else throw B(new Xs("Token#toString(): NONGREEDYCLOSURE "+this.c+Xo+this.b));return n},f.b=0,f.c=0,x(pp,"RegEx/Token/ClosureToken",318),C(837,122,C8,$ue),f.Lm=function(t){return t==0?this.a:this.b},f.Pm=function(){return 2},f.Qm=function(t){var n;return this.b.e==3&&this.b.Lm(0)==this.a?n=this.a.Qm(t)+"+":this.b.e==9&&this.b.Lm(0)==this.a?n=this.a.Qm(t)+"+?":n=this.a.Qm(t)+(""+this.b.Qm(t)),n},x(pp,"RegEx/Token/ConcatToken",837),C(1945,122,C8,rZe),f.Lm=function(t){if(t==0)return this.d;if(t==1)return this.b;throw B(new Xs("Internal Error: "+t))},f.Pm=function(){return this.b?2:1},f.Qm=function(t){var n;return this.c>0?n="(?("+this.c+")":this.a.e==8?n="(?("+this.a+")":n="(?"+this.a,this.b?n+=this.d+"|"+this.b+")":n+=this.d+")",n},f.c=0,x(pp,"RegEx/Token/ConditionToken",1945),C(1946,122,C8,VXe),f.Lm=function(t){return this.b},f.Pm=function(){return 1},f.Qm=function(t){return"(?"+(this.a==0?"":bpe(this.a))+(this.c==0?"":bpe(this.c))+":"+this.b.Qm(t)+")"},f.a=0,f.c=0,x(pp,"RegEx/Token/ModifierToken",1946),C(838,122,C8,Gue),f.Lm=function(t){return this.a},f.Pm=function(){return 1},f.Qm=function(t){var n;switch(n=null,this.e){case 6:this.b==0?n="(?:"+this.a.Qm(t)+")":n="("+this.a.Qm(t)+")";break;case 20:n="(?="+this.a.Qm(t)+")";break;case 21:n="(?!"+this.a.Qm(t)+")";break;case 22:n="(?<="+this.a.Qm(t)+")";break;case 23:n="(?"+this.a.Qm(t)+")"}return n},f.b=0,x(pp,"RegEx/Token/ParenToken",838),C(530,122,{3:1,122:1,530:1},LG),f.Mm=function(){return this.b},f.Qm=function(t){return this.e==12?"\\"+this.a:qtn(this.b)},f.a=0,x(pp,"RegEx/Token/StringToken",530),C(477,122,C8,j7),f.Jm=function(t){R0(this,t)},f.Lm=function(t){return u(Ub(this.a,t),122)},f.Pm=function(){return this.a?this.a.a.c.length:0},f.Qm=function(t){var n,i,s,c,d;if(this.e==1){if(this.a.a.c.length==2)n=u(Ub(this.a,0),122),i=u(Ub(this.a,1),122),i.e==3&&i.Lm(0)==n?c=n.Qm(t)+"+":i.e==9&&i.Lm(0)==n?c=n.Qm(t)+"+?":c=n.Qm(t)+(""+i.Qm(t));else{for(d=new B1,s=0;s=this.c.b:this.a<=this.c.b},f.Sb=function(){return this.b>0},f.Tb=function(){return this.b},f.Vb=function(){return this.b-1},f.Qb=function(){throw B(new D1(opt))},f.a=0,f.b=0,x(ame,"ExclusiveRange/RangeIterator",258);var Ea=Kk(kD,"C"),Bn=Kk(_9,"I"),wu=Kk(B4,"Z"),Hg=Kk(R9,"J"),Kc=Kk(P9,"B"),uo=Kk(M9,"D"),qv=Kk(O9,"F"),r3=Kk(A9,"S"),hfn=hi("org.eclipse.elk.core.labels","ILabelManager"),E8e=hi(Yo,"DiagnosticChain"),T8e=hi(A1t,"ResourceSet"),I8e=x(Yo,"InvocationTargetException",null),j6t=(mR(),IHt),D6t=D6t=mJt;yUt(bOt),bUt("permProps",[[["locale","default"],[spt,"gecko1_8"]],[["locale","default"],[spt,"safari"]]]),D6t(null,"elk",null)}).call(this)}).call(this,typeof window<"u"?window:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(l,a,p){function g(I,M){if(!(I instanceof M))throw new TypeError("Cannot call a class as a function")}function w(I,M){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:I}function y(I,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);I.prototype=Object.create(M&&M.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(I,M):I.__proto__=M)}var S=l("./elk-api.js").default,E=function(I){y(M,I);function M(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};g(this,M);var R=Object.assign({},_),j=!1;try{l.resolve("web-worker"),j=!0}catch{}if(_.workerUrl)if(j){var K=l("web-worker");R.workerFactory=function(Z){return new K(Z)}}else console.warn(`Web worker requested but 'web-worker' package not installed. -Consider installing the package or pass your own 'workerFactory' to ELK's constructor. -... Falling back to non-web worker version.`);if(!R.workerFactory){var q=l("./elk-worker.min.js"),Q=q.Worker;R.workerFactory=function(Z){return new Q(Z)}}return w(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,R))}return M}(S);Object.defineProperty(a.exports,"__esModule",{value:!0}),a.exports=E,E.default=E},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(l,a,p){a.exports=Worker},{}]},{},[3])(3)})})(OPt);var aMn=OPt.exports;const fMn=_3(aMn),dMn=76,C7t=52;function hMn(){async function r(o,l){const a={algorithm:"mrtree","org.eclipse.elk.direction":"RIGHT","org.eclipse.elk.spacing.nodeNode":"400","org.eclipse.elk.spacing.edgeEdge":"20","org.eclipse.elk.spacing.edgeNode":"30","org.eclipse.elk.mrtree.spacing.level":"500","org.eclipse.elk.mrtree.compaction.strategy":"DOWN","org.eclipse.elk.mrtree.nodePlacement.strategy":"SIMPLE","org.eclipse.elk.mrtree.nodePlacement.bk.fixedAlignment":"BALANCED"},p=o.map(S=>({id:S.id,width:1e3,height:dMn+C7t*S.data.resource.properties.length,labels:[{text:S.data.resource.name}],properties:S.data.resource.properties.map(E=>({id:E.id,width:1e3,height:C7t,labels:[{text:E.name}]}))})),g=l.map(S=>({id:`${S.source}-${S.target}`,sources:[S.source],targets:[S.target]})),w={id:"root",layoutOptions:a,children:p,edges:g};return new fMn().layout(w).then(S=>{const E=o.map(I=>{const M=S.children.find(_=>_.id===I.id);return I.position={x:M.x,y:M.y},I});for(const I of l){const M=E.find(R=>R.id===I.source),_=E.find(R=>R.id===I.target);if(M.position.x<_.position.x){const R="right",j=I.sourceHandle;j.endsWith(R)||(I.sourceHandle=j.slice(0,-5),I.sourceHandle=`${I.sourceHandle}${R}`)}else{const R="left",j=I.sourceHandle;j.endsWith(R)||(I.sourceHandle=j.slice(0,-5),I.sourceHandle=`${I.sourceHandle}${R}`)}}return{nodes:E,edges:l}}).catch(console.error)}return{elkLayout:r}}const pMn={key:0,style:{color:"grey"}},gMn=bc({__name:"RdfTerm",props:{term:{}},setup(r){const o=r,l=ho(()=>h_(o.term)),a=ho(()=>o.term.termType!=="Literal"?null:o.term.language??null);function p(g){g.stopPropagation()}return(g,w)=>(ve(),wt("div",null,[o.term.termType==="NamedNode"?(ve(),wt("span",{key:0,class:"term",onMousedown:p,style:{cursor:"pointer"}},Il(l.value),33)):rr("",!0),o.term.termType==="BlankNode"?(ve(),wt("span",{key:1,class:"term",onMousedown:p,style:{cursor:"pointer"}},"["+Il(l.value)+"]",33)):rr("",!0),o.term.termType==="Literal"?(ve(),wt("span",{key:2,class:"term literal",onMousedown:p},[hb(Il(l.value),1),a.value?(ve(),wt("small",pMn,"@"+Il(a.value),1)):rr("",!0)],32)):rr("",!0)]))}}),bMn=$H(gMn,[["__scopeId","data-v-3bf480c8"]]),wMn={class:"resource-card"},mMn={class:"resource-card-header"},vMn={class:"resource-title"},yMn={class:"table-container"},kMn=["data-id"],CMn={class:"predicate"},SMn={class:"object"},xMn=["onClick"],EMn=bc({__name:"ResourceNode",props:{id:{},type:{},selected:{type:Boolean},connectable:{type:[Boolean,Number,String,Function]},position:{},dimensions:{},label:{},isValidTargetPos:{type:Function},isValidSourcePos:{type:Function},parent:{},parentNodeId:{},dragging:{type:Boolean},resizing:{type:Boolean},zIndex:{},targetPosition:{},sourcePosition:{},dragHandle:{},data:{},events:{}},setup(r){const{fitView:o,nodeLookup:l}=_u(),a=r;function p(g){if(!(g.termType==="NamedNode"||g.termType==="BlankNode"))return;const w=l.value.get(g.value);w&&o({nodes:[w.id],duration:1e3,padding:.3})}return(g,w)=>(ve(),wt("div",null,[ar("div",wMn,[ar("header",mMn,[ar("h3",vMn,Il(a.data.resource.name),1)]),ar("div",yMn,[(ve(!0),wt(si,null,Mu(a.data.resource.properties,(y,S)=>(ve(),wt("div",{key:S,"data-id":y.id,class:"table-row"},[ar("div",null,[(ve(!0),wt(si,null,Mu(y.values,E=>(ve(),wt("div",{key:E.value,style:{position:"relative"}},[E.termType==="NamedNode"||E.termType==="BlankNode"?(ve(),Cn(Lr(j_),{key:0,type:"source",position:Lr(wi).Left,id:`${a.data.resource.id}-${y.id}-left`,style:{opacity:"0"},connectable:!1},null,8,["position","id"])):rr("",!0)]))),128))]),ar("div",CMn,Il(y.name),1),ar("div",SMn,[(ve(!0),wt(si,null,Mu(y.values,E=>(ve(),wt("div",{key:E.value,onClick:I=>p(E)},[ai(bMn,{term:E,env:a.data.env},null,8,["term","env"])],8,xMn))),128))]),(ve(!0),wt(si,null,Mu(y.values,E=>(ve(),wt("div",{key:E.value,style:{position:"relative"}},[E.termType==="NamedNode"||E.termType==="BlankNode"?(ve(),Cn(Lr(j_),{key:0,type:"source",position:Lr(wi).Right,id:`${a.data.resource.id}-${y.id}-right`,style:{opacity:"0"},connectable:!1},null,8,["position","id"])):rr("",!0)]))),128))],8,kMn))),128))])])]))}}),TMn=$H(EMn,[["__scopeId","data-v-0fcec032"]]),IMn=bc({__name:"GraphView",props:{dataset:{}},setup(r){const o=r,{elkLayout:l}=hMn(),{fitView:a,nodeLookup:p}=_u(),g=ho(()=>f9n(o.dataset)),w=ho(()=>d9n(g.value)),y=Co([]),S=Co([]);Os(g,async M=>{const _=M.map(K=>({id:K.id,type:"custom",position:{x:0,y:0},data:{resource:K}})),R=w.value.map(K=>({id:`${K.source}-${K.sourceProperty}-${K.target}`,source:K.source,target:K.target,sourceHandle:`${K.source}-${K.sourceProperty}-right`,animated:!1,data:K,type:"custom",markerEnd:Ire.ArrowClosed})),j=await l(_,R);y.value=j.nodes,S.value=j.edges,await om(),a()});function E(M){const _=M.node;S.value.filter(Q=>Q.source===_.id).flatMap(Q=>p.value.get(Q.target)).forEach(Q=>{(Q==null?void 0:Q.position.x)<_.position.x?S.value.filter(X=>X.source===_.id&&X.target===Q.id).forEach(X=>{var je;const ie=X.sourceHandle;ie!=null&&ie.endsWith("-right")&&(X.sourceHandle=`${_.id}-${(je=X.data)==null?void 0:je.sourceProperty}-left`)}):S.value.filter(X=>X.source===_.id&&X.target===Q.id).forEach(X=>{var je;const ie=X.sourceHandle;ie!=null&&ie.endsWith("-left")&&(X.sourceHandle=`${_.id}-${(je=X.data)==null?void 0:je.sourceProperty}-right`)})}),S.value.filter(Q=>Q.target===_.id).flatMap(Q=>{const Z=p.value.get(Q.source);return Z?[Z]:[]}).forEach(Q=>{Q.position.x<_.position.x?S.value.filter(X=>X.target===_.id&&X.source===Q.id).forEach(X=>{const ie=X.sourceHandle;ie&&ie.endsWith("-left")&&(X.sourceHandle=`${Q.id}-${X.data.sourceProperty}-right`)}):S.value.filter(X=>X.target===_.id&&X.source===Q.id).forEach(X=>{const ie=X.sourceHandle;ie&&(ie!=null&&ie.endsWith("-right"))&&(X.sourceHandle=`${Q.id}-${X.data.sourceProperty}-left`)})}),S.value=[...S.value]}function I(M){a({nodes:[M.edge.sourceNode.id],duration:1e3,padding:.3})}return(M,_)=>(ve(),Cn(Lr(lMn),{nodes:y.value,edges:S.value,"min-zoom":.05,"max-zoom":10,onNodeDrag:E,onEdgeClick:I},{"node-custom":ui(R=>[ai(TMn,m_(c7e(R)),null,16)]),"edge-custom":ui(R=>[ai(uMn,m_(c7e(R)),null,16)]),_:1},8,["nodes","edges"]))}});var _Pt={name:"ArrowDownIcon",extends:su};function PMn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z",fill:"currentColor"},null,-1)]),16)}_Pt.render=PMn;var RPt={name:"ArrowUpIcon",extends:su};function MMn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z",fill:"currentColor"},null,-1)]),16)}RPt.render=MMn;function Zz(r){"@babel/helpers - typeof";return Zz=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Zz(r)}function OMn(r,o,l){return(o=_Mn(o))in r?Object.defineProperty(r,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[o]=l,r}function _Mn(r){var o=RMn(r,"string");return Zz(o)=="symbol"?o:o+""}function RMn(r,o){if(Zz(r)!="object"||!r)return r;var l=r[Symbol.toPrimitive];if(l!==void 0){var a=l.call(r,o||"default");if(Zz(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}var AMn=function(o){var l=o.dt;return` -.p-paginator { - display: flex; - align-items: center; - justify-content: center; - flex-wrap: wrap; - background: `.concat(l("paginator.background"),`; - color: `).concat(l("paginator.color"),`; - padding: `).concat(l("paginator.padding"),`; - border-radius: `).concat(l("paginator.border.radius"),`; - gap: `).concat(l("paginator.gap"),`; -} - -.p-paginator-content { - display: flex; - align-items: center; - justify-content: center; - flex-wrap: wrap; - gap: `).concat(l("paginator.gap"),`; -} - -.p-paginator-content-start { - margin-inline-end: auto; -} - -.p-paginator-content-end { - margin-inline-start: auto; -} - -.p-paginator-page, -.p-paginator-next, -.p-paginator-last, -.p-paginator-first, -.p-paginator-prev { - cursor: pointer; - display: inline-flex; - align-items: center; - justify-content: center; - line-height: 1; - user-select: none; - overflow: hidden; - position: relative; - background: `).concat(l("paginator.nav.button.background"),`; - border: 0 none; - color: `).concat(l("paginator.nav.button.color"),`; - min-width: `).concat(l("paginator.nav.button.width"),`; - height: `).concat(l("paginator.nav.button.height"),`; - transition: background `).concat(l("paginator.transition.duration"),", color ").concat(l("paginator.transition.duration"),", outline-color ").concat(l("paginator.transition.duration"),", box-shadow ").concat(l("paginator.transition.duration"),`; - border-radius: `).concat(l("paginator.nav.button.border.radius"),`; - padding: 0; - margin: 0; -} - -.p-paginator-page:focus-visible, -.p-paginator-next:focus-visible, -.p-paginator-last:focus-visible, -.p-paginator-first:focus-visible, -.p-paginator-prev:focus-visible { - box-shadow: `).concat(l("paginator.nav.button.focus.ring.shadow"),`; - outline: `).concat(l("paginator.nav.button.focus.ring.width")," ").concat(l("paginator.nav.button.focus.ring.style")," ").concat(l("paginator.nav.button.focus.ring.color"),`; - outline-offset: `).concat(l("paginator.nav.button.focus.ring.offset"),`; -} - -.p-paginator-page:not(.p-disabled):not(.p-paginator-page-selected):hover, -.p-paginator-first:not(.p-disabled):hover, -.p-paginator-prev:not(.p-disabled):hover, -.p-paginator-next:not(.p-disabled):hover, -.p-paginator-last:not(.p-disabled):hover { - background: `).concat(l("paginator.nav.button.hover.background"),`; - color: `).concat(l("paginator.nav.button.hover.color"),`; -} - -.p-paginator-page.p-paginator-page-selected { - background: `).concat(l("paginator.nav.button.selected.background"),`; - color: `).concat(l("paginator.nav.button.selected.color"),`; -} - -.p-paginator-current { - color: `).concat(l("paginator.current.page.report.color"),`; -} - -.p-paginator-pages { - display: flex; - align-items: center; - gap: `).concat(l("paginator.gap"),`; -} - -.p-paginator-jtp-input .p-inputtext { - max-width: `).concat(l("paginator.jump.to.page.input.max.width"),`; -} - -.p-paginator-first:dir(rtl), -.p-paginator-prev:dir(rtl), -.p-paginator-next:dir(rtl), -.p-paginator-last:dir(rtl) { - transform: rotate(180deg); -} -`)},LMn={paginator:function(o){var l=o.instance,a=o.key;return["p-paginator p-component",OMn({"p-paginator-default":!l.hasBreakpoints()},"p-paginator-".concat(a),l.hasBreakpoints())]},content:"p-paginator-content",contentStart:"p-paginator-content-start",contentEnd:"p-paginator-content-end",first:function(o){var l=o.instance;return["p-paginator-first",{"p-disabled":l.$attrs.disabled}]},firstIcon:"p-paginator-first-icon",prev:function(o){var l=o.instance;return["p-paginator-prev",{"p-disabled":l.$attrs.disabled}]},prevIcon:"p-paginator-prev-icon",next:function(o){var l=o.instance;return["p-paginator-next",{"p-disabled":l.$attrs.disabled}]},nextIcon:"p-paginator-next-icon",last:function(o){var l=o.instance;return["p-paginator-last",{"p-disabled":l.$attrs.disabled}]},lastIcon:"p-paginator-last-icon",pages:"p-paginator-pages",page:function(o){var l=o.props,a=o.pageLink;return["p-paginator-page",{"p-paginator-page-selected":a-1===l.page}]},current:"p-paginator-current",pcRowPerPageDropdown:"p-paginator-rpp-dropdown",pcJumpToPageDropdown:"p-paginator-jtp-dropdown",pcJumpToPageInputText:"p-paginator-jtp-input"},$Mn=vs.extend({name:"paginator",theme:AMn,classes:LMn}),APt={name:"AngleDoubleLeftIcon",extends:su};function jMn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z",fill:"currentColor"},null,-1)]),16)}APt.render=jMn;var LPt={name:"AngleDownIcon",extends:su};function DMn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z",fill:"currentColor"},null,-1)]),16)}LPt.render=DMn;var $Pt={name:"AngleUpIcon",extends:su};function NMn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z",fill:"currentColor"},null,-1)]),16)}$Pt.render=NMn;var BMn=function(o){var l=o.dt;return` -.p-inputnumber { - display: inline-flex; - position: relative; -} - -.p-inputnumber-button { - display: flex; - align-items: center; - justify-content: center; - flex: 0 0 auto; - cursor: pointer; - background: `.concat(l("inputnumber.button.background"),`; - color: `).concat(l("inputnumber.button.color"),`; - width: `).concat(l("inputnumber.button.width"),`; - transition: background `).concat(l("inputnumber.transition.duration"),", color ").concat(l("inputnumber.transition.duration"),", border-color ").concat(l("inputnumber.transition.duration"),", outline-color ").concat(l("inputnumber.transition.duration"),`; -} - -.p-inputnumber-button:hover { - background: `).concat(l("inputnumber.button.hover.background"),`; - color: `).concat(l("inputnumber.button.hover.color"),`; -} - -.p-inputnumber-button:active { - background: `).concat(l("inputnumber.button.active.background"),`; - color: `).concat(l("inputnumber.button.active.color"),`; -} - -.p-inputnumber-stacked .p-inputnumber-button { - position: relative; - border: 0 none; -} - -.p-inputnumber-stacked .p-inputnumber-button-group { - display: flex; - flex-direction: column; - position: absolute; - inset-block-start: 1px; - inset-inline-end: 1px; - height: calc(100% - 2px); - z-index: 1; -} - -.p-inputnumber-stacked .p-inputnumber-increment-button { - padding: 0; - border-start-end-radius: calc(`).concat(l("inputnumber.button.border.radius"),` - 1px); -} - -.p-inputnumber-stacked .p-inputnumber-decrement-button { - padding: 0; - border-end-end-radius: calc(`).concat(l("inputnumber.button.border.radius"),` - 1px); -} - -.p-inputnumber-stacked .p-inputnumber-button { - flex: 1 1 auto; - border: 0 none; -} - -.p-inputnumber-horizontal .p-inputnumber-button { - border: 1px solid `).concat(l("inputnumber.button.border.color"),`; -} - -.p-inputnumber-horizontal .p-inputnumber-button:hover { - border-color: `).concat(l("inputnumber.button.hover.border.color"),`; -} - -.p-inputnumber-horizontal .p-inputnumber-button:active { - border-color: `).concat(l("inputnumber.button.active.border.color"),`; -} - -.p-inputnumber-horizontal .p-inputnumber-increment-button { - order: 3; - border-start-end-radius: `).concat(l("inputnumber.button.border.radius"),`; - border-end-end-radius: `).concat(l("inputnumber.button.border.radius"),`; - border-inline-start: 0 none; -} - -.p-inputnumber-horizontal .p-inputnumber-input { - order: 2; - border-radius: 0; -} - -.p-inputnumber-horizontal .p-inputnumber-decrement-button { - order: 1; - border-start-start-radius: `).concat(l("inputnumber.button.border.radius"),`; - border-end-start-radius: `).concat(l("inputnumber.button.border.radius"),`; - border-inline-end: 0 none; -} - -.p-floatlabel:has(.p-inputnumber-horizontal) label { - margin-inline-start: `).concat(l("inputnumber.button.width"),`; -} - -.p-inputnumber-vertical { - flex-direction: column; -} - -.p-inputnumber-vertical .p-inputnumber-button { - border: 1px solid `).concat(l("inputnumber.button.border.color"),`; - padding: `).concat(l("inputnumber.button.vertical.padding"),`; -} - -.p-inputnumber-vertical .p-inputnumber-button:hover { - border-color: `).concat(l("inputnumber.button.hover.border.color"),`; -} - -.p-inputnumber-vertical .p-inputnumber-button:active { - border-color: `).concat(l("inputnumber.button.active.border.color"),`; -} - -.p-inputnumber-vertical .p-inputnumber-increment-button { - order: 1; - border-start-start-radius: `).concat(l("inputnumber.button.border.radius"),`; - border-start-end-radius: `).concat(l("inputnumber.button.border.radius"),`; - width: 100%; - border-block-end: 0 none; -} - -.p-inputnumber-vertical .p-inputnumber-input { - order: 2; - border-radius: 0; - text-align: center; -} - -.p-inputnumber-vertical .p-inputnumber-decrement-button { - order: 3; - border-end-start-radius: `).concat(l("inputnumber.button.border.radius"),`; - border-end-end-radius: `).concat(l("inputnumber.button.border.radius"),`; - width: 100%; - border-block-start: 0 none; -} - -.p-inputnumber-input { - flex: 1 1 auto; -} - -.p-inputnumber-fluid { - width: 100%; -} - -.p-inputnumber-fluid .p-inputnumber-input { - width: 1%; -} - -.p-inputnumber-fluid.p-inputnumber-vertical .p-inputnumber-input { - width: 100%; -} - -.p-inputnumber:has(.p-inputtext-sm) .p-inputnumber-button .p-icon { - font-size: `).concat(l("form.field.sm.font.size"),`; - width: `).concat(l("form.field.sm.font.size"),`; - height: `).concat(l("form.field.sm.font.size"),`; -} - -.p-inputnumber:has(.p-inputtext-lg) .p-inputnumber-button .p-icon { - font-size: `).concat(l("form.field.lg.font.size"),`; - width: `).concat(l("form.field.lg.font.size"),`; - height: `).concat(l("form.field.lg.font.size"),`; -} -`)},FMn={root:function(o){var l=o.instance,a=o.props;return["p-inputnumber p-component p-inputwrapper",{"p-inputwrapper-filled":l.$filled||a.allowEmpty===!1,"p-inputwrapper-focus":l.focused,"p-inputnumber-stacked":a.showButtons&&a.buttonLayout==="stacked","p-inputnumber-horizontal":a.showButtons&&a.buttonLayout==="horizontal","p-inputnumber-vertical":a.showButtons&&a.buttonLayout==="vertical","p-inputnumber-fluid":l.$fluid}]},pcInputText:"p-inputnumber-input",buttonGroup:"p-inputnumber-button-group",incrementButton:function(o){var l=o.instance,a=o.props;return["p-inputnumber-button p-inputnumber-increment-button",{"p-disabled":a.showButtons&&a.max!==null&&l.maxBoundry()}]},decrementButton:function(o){var l=o.instance,a=o.props;return["p-inputnumber-button p-inputnumber-decrement-button",{"p-disabled":a.showButtons&&a.min!==null&&l.minBoundry()}]}},zMn=vs.extend({name:"inputnumber",theme:BMn,classes:FMn}),HMn={name:"BaseInputNumber",extends:vH,props:{format:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!1},buttonLayout:{type:String,default:"stacked"},incrementButtonClass:{type:String,default:null},decrementButtonClass:{type:String,default:null},incrementButtonIcon:{type:String,default:void 0},incrementIcon:{type:String,default:void 0},decrementButtonIcon:{type:String,default:void 0},decrementIcon:{type:String,default:void 0},locale:{type:String,default:void 0},localeMatcher:{type:String,default:void 0},mode:{type:String,default:"decimal"},prefix:{type:String,default:null},suffix:{type:String,default:null},currency:{type:String,default:void 0},currencyDisplay:{type:String,default:void 0},useGrouping:{type:Boolean,default:!0},minFractionDigits:{type:Number,default:void 0},maxFractionDigits:{type:Number,default:void 0},roundingMode:{type:String,default:"halfExpand",validator:function(o){return["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"].includes(o)}},min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:1},allowEmpty:{type:Boolean,default:!0},highlightOnFocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{type:String,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:zMn,provide:function(){return{$pcInputNumber:this,$parentInstance:this}}};function eH(r){"@babel/helpers - typeof";return eH=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},eH(r)}function S7t(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(r,p).enumerable})),l.push.apply(l,a)}return l}function x7t(r){for(var o=1;or.length)&&(o=r.length);for(var l=0,a=Array(o);l1){var S=this.isNumeralChar(g.charAt(l))?l+1:l+2;this.$refs.input.$el.setSelectionRange(S,S)}else this.isNumeralChar(g.charAt(l-1))||o.preventDefault();break;case"ArrowRight":if(p>1){var E=a-1;this.$refs.input.$el.setSelectionRange(E,E)}else this.isNumeralChar(g.charAt(l))||o.preventDefault();break;case"Tab":case"Enter":case"NumpadEnter":w=this.validateValue(this.parseValue(g)),this.$refs.input.$el.value=this.formatValue(w),this.$refs.input.$el.setAttribute("aria-valuenow",w),this.updateModel(o,w);break;case"Backspace":{if(o.preventDefault(),l===a){var I=g.charAt(l-1),M=this.getDecimalCharIndexes(g),_=M.decimalCharIndex,R=M.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(I)){var j=this.getDecimalLength(g);if(this._group.test(I))this._group.lastIndex=0,w=g.slice(0,l-2)+g.slice(l-1);else if(this._decimal.test(I))this._decimal.lastIndex=0,j?this.$refs.input.$el.setSelectionRange(l-1,l-1):w=g.slice(0,l-1)+g.slice(l);else if(_>0&&l>_){var K=this.isDecimalMode()&&(this.minFractionDigits||0)0?w:""):w=g.slice(0,l-1)+g.slice(l)}this.updateValue(o,w,null,"delete-single")}else w=this.deleteRange(g,l,a),this.updateValue(o,w,null,"delete-range");break}case"Delete":if(o.preventDefault(),l===a){var q=g.charAt(l),Q=this.getDecimalCharIndexes(g),Z=Q.decimalCharIndex,X=Q.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(q)){var ie=this.getDecimalLength(g);if(this._group.test(q))this._group.lastIndex=0,w=g.slice(0,l)+g.slice(l+2);else if(this._decimal.test(q))this._decimal.lastIndex=0,ie?this.$refs.input.$el.setSelectionRange(l+1,l+1):w=g.slice(0,l)+g.slice(l+1);else if(Z>0&&l>Z){var je=this.isDecimalMode()&&(this.minFractionDigits||0)0?w:""):w=g.slice(0,l)+g.slice(l+1)}this.updateValue(o,w,null,"delete-back-single")}else w=this.deleteRange(g,l,a),this.updateValue(o,w,null,"delete-range");break;case"Home":o.preventDefault(),os(this.min)&&this.updateModel(o,this.min);break;case"End":o.preventDefault(),os(this.max)&&this.updateModel(o,this.max);break}}},onInputKeyPress:function(o){if(!this.readonly){var l=o.key,a=this.isDecimalSign(l),p=this.isMinusSign(l);o.code!=="Enter"&&o.preventDefault(),(Number(l)>=0&&Number(l)<=9||p||a)&&this.insert(o,l,{isDecimalSign:a,isMinusSign:p})}},onPaste:function(o){o.preventDefault();var l=(o.clipboardData||window.clipboardData).getData("Text");if(l){var a=this.parseValue(l);a!=null&&this.insert(o,a.toString())}},allowMinusSign:function(){return this.min===null||this.min<0},isMinusSign:function(o){return this._minusSign.test(o)||o==="-"?(this._minusSign.lastIndex=0,!0):!1},isDecimalSign:function(o){return this._decimal.test(o)?(this._decimal.lastIndex=0,!0):!1},isDecimalMode:function(){return this.mode==="decimal"},getDecimalCharIndexes:function(o){var l=o.search(this._decimal);this._decimal.lastIndex=0;var a=o.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,""),p=a.search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:l,decimalCharIndexWithoutPrefix:p}},getCharIndexes:function(o){var l=o.search(this._decimal);this._decimal.lastIndex=0;var a=o.search(this._minusSign);this._minusSign.lastIndex=0;var p=o.search(this._suffix);this._suffix.lastIndex=0;var g=o.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:l,minusCharIndex:a,suffixCharIndex:p,currencyCharIndex:g}},insert:function(o,l){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},p=l.search(this._minusSign);if(this._minusSign.lastIndex=0,!(!this.allowMinusSign()&&p!==-1)){var g=this.$refs.input.$el.selectionStart,w=this.$refs.input.$el.selectionEnd,y=this.$refs.input.$el.value.trim(),S=this.getCharIndexes(y),E=S.decimalCharIndex,I=S.minusCharIndex,M=S.suffixCharIndex,_=S.currencyCharIndex,R;if(a.isMinusSign)g===0&&(R=y,(I===-1||w!==0)&&(R=this.insertText(y,l,0,w)),this.updateValue(o,R,l,"insert"));else if(a.isDecimalSign)E>0&&g===E?this.updateValue(o,y,l,"insert"):E>g&&E0&&g>E){if(g+l.length-(E+1)<=j){var q=_>=g?_-1:M>=g?M:y.length;R=y.slice(0,g)+l+y.slice(g+l.length,q)+y.slice(q),this.updateValue(o,R,l,K)}}else R=this.insertText(y,l,g,w),this.updateValue(o,R,l,K)}}},insertText:function(o,l,a,p){var g=l==="."?l:l.split(".");if(g.length===2){var w=o.slice(a,p).search(this._decimal);return this._decimal.lastIndex=0,w>0?o.slice(0,a)+this.formatValue(l)+o.slice(p):this.formatValue(l)||o}else return p-a===o.length?this.formatValue(l):a===0?l+o.slice(p):p===o.length?o.slice(0,a)+l:o.slice(0,a)+l+o.slice(p)},deleteRange:function(o,l,a){var p;return a-l===o.length?p="":l===0?p=o.slice(a):a===o.length?p=o.slice(0,l):p=o.slice(0,l)+o.slice(a),p},initCursor:function(){var o=this.$refs.input.$el.selectionStart,l=this.$refs.input.$el.value,a=l.length,p=null,g=(this.prefixChar||"").length;l=l.replace(this._prefix,""),o=o-g;var w=l.charAt(o);if(this.isNumeralChar(w))return o+g;for(var y=o-1;y>=0;)if(w=l.charAt(y),this.isNumeralChar(w)){p=y+g;break}else y--;if(p!==null)this.$refs.input.$el.setSelectionRange(p+1,p+1);else{for(y=o;ythis.max?this.max:o},updateInput:function(o,l,a,p){l=l||"";var g=this.$refs.input.$el.value,w=this.formatValue(o),y=g.length;if(w!==p&&(w=this.concatValues(w,p)),y===0){this.$refs.input.$el.value=w,this.$refs.input.$el.setSelectionRange(0,0);var S=this.initCursor(),E=S+l.length;this.$refs.input.$el.setSelectionRange(E,E)}else{var I=this.$refs.input.$el.selectionStart,M=this.$refs.input.$el.selectionEnd;this.$refs.input.$el.value=w;var _=w.length;if(a==="range-insert"){var R=this.parseValue((g||"").slice(0,I)),j=R!==null?R.toString():"",K=j.split("").join("(".concat(this.groupChar,")?")),q=new RegExp(K,"g");q.test(w);var Q=l.split("").join("(".concat(this.groupChar,")?")),Z=new RegExp(Q,"g");Z.test(w.slice(q.lastIndex)),M=q.lastIndex+Z.lastIndex,this.$refs.input.$el.setSelectionRange(M,M)}else if(_===y)a==="insert"||a==="delete-back-single"?this.$refs.input.$el.setSelectionRange(M+1,M+1):a==="delete-single"?this.$refs.input.$el.setSelectionRange(M-1,M-1):(a==="delete-range"||a==="spin")&&this.$refs.input.$el.setSelectionRange(M,M);else if(a==="delete-back-single"){var X=g.charAt(M-1),ie=g.charAt(M),je=y-_,et=this._group.test(ie);et&&je===1?M+=1:!et&&this.isNumeralChar(X)&&(M+=-1*je+1),this._group.lastIndex=0,this.$refs.input.$el.setSelectionRange(M,M)}else if(g==="-"&&a==="insert"){this.$refs.input.$el.setSelectionRange(0,0);var mt=this.initCursor(),bt=mt+l.length+1;this.$refs.input.$el.setSelectionRange(bt,bt)}else M=M+(_-y),this.$refs.input.$el.setSelectionRange(M,M)}this.$refs.input.$el.setAttribute("aria-valuenow",o)},concatValues:function(o,l){if(o&&l){var a=l.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?a!==-1?o.replace(this.suffixChar,"").split(this._decimal)[0]+l.replace(this.suffixChar,"").slice(a)+this.suffixChar:o:a!==-1?o.split(this._decimal)[0]+l.slice(a):o}return o},getDecimalLength:function(o){if(o){var l=o.split(this._decimal);if(l.length===2)return l[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0},updateModel:function(o,l){this.writeValue(l,o)},onInputFocus:function(o){this.focused=!0,!this.disabled&&!this.readonly&&this.$refs.input.$el.value!==jkt()&&this.highlightOnFocus&&o.target.select(),this.$emit("focus",o)},onInputBlur:function(o){var l,a;this.focused=!1;var p=o.target,g=this.validateValue(this.parseValue(p.value));this.$emit("blur",{originalEvent:o,value:p.value}),(l=(a=this.formField).onBlur)===null||l===void 0||l.call(a,o),p.value=this.formatValue(g),p.setAttribute("aria-valuenow",g),this.updateModel(o,g),!this.disabled&&!this.readonly&&this.highlightOnFocus&&kne()},clearTimer:function(){this.timer&&clearInterval(this.timer)},maxBoundry:function(){return this.d_value>=this.max},minBoundry:function(){return this.d_value<=this.min}},computed:{upButtonListeners:function(){var o=this;return{mousedown:function(a){return o.onUpButtonMouseDown(a)},mouseup:function(a){return o.onUpButtonMouseUp(a)},mouseleave:function(a){return o.onUpButtonMouseLeave(a)},keydown:function(a){return o.onUpButtonKeyDown(a)},keyup:function(a){return o.onUpButtonKeyUp(a)}}},downButtonListeners:function(){var o=this;return{mousedown:function(a){return o.onDownButtonMouseDown(a)},mouseup:function(a){return o.onDownButtonMouseUp(a)},mouseleave:function(a){return o.onDownButtonMouseLeave(a)},keydown:function(a){return o.onDownButtonKeyDown(a)},keyup:function(a){return o.onDownButtonKeyUp(a)}}},formattedValue:function(){var o=!this.d_value&&!this.allowEmpty?0:this.d_value;return this.formatValue(o)},getFormatter:function(){return this.numberFormat}},components:{InputText:mE,AngleUpIcon:$Pt,AngleDownIcon:LPt}},JMn=["disabled"],QMn=["disabled"],ZMn=["disabled"],eOn=["disabled"];function tOn(r,o,l,a,p,g){var w=ki("InputText");return ve(),wt("span",Qe({class:r.cx("root")},r.ptmi("root")),[ai(w,{ref:"input",id:r.inputId,role:"spinbutton",class:yo([r.cx("pcInputText"),r.inputClass]),style:A1(r.inputStyle),value:g.formattedValue,"aria-valuemin":r.min,"aria-valuemax":r.max,"aria-valuenow":r.d_value,inputmode:r.mode==="decimal"&&!r.minFractionDigits?"numeric":"decimal",disabled:r.disabled,readonly:r.readonly,placeholder:r.placeholder,"aria-labelledby":r.ariaLabelledby,"aria-label":r.ariaLabel,size:r.size,invalid:r.invalid,variant:r.variant,onInput:g.onUserInput,onKeydown:g.onInputKeyDown,onKeypress:g.onInputKeyPress,onPaste:g.onPaste,onClick:g.onInputClick,onFocus:g.onInputFocus,onBlur:g.onInputBlur,pt:r.ptm("pcInputText"),unstyled:r.unstyled},null,8,["id","class","style","value","aria-valuemin","aria-valuemax","aria-valuenow","inputmode","disabled","readonly","placeholder","aria-labelledby","aria-label","size","invalid","variant","onInput","onKeydown","onKeypress","onPaste","onClick","onFocus","onBlur","pt","unstyled"]),r.showButtons&&r.buttonLayout==="stacked"?(ve(),wt("span",Qe({key:0,class:r.cx("buttonGroup")},r.ptm("buttonGroup")),[Nr(r.$slots,"incrementbutton",{listeners:g.upButtonListeners},function(){return[ar("button",Qe({class:[r.cx("incrementButton"),r.incrementButtonClass]},Kte(g.upButtonListeners),{disabled:r.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},r.ptm("incrementButton")),[Nr(r.$slots,r.$slots.incrementicon?"incrementicon":"incrementbuttonicon",{},function(){return[(ve(),Cn(ko(r.incrementIcon||r.incrementButtonIcon?"span":"AngleUpIcon"),Qe({class:[r.incrementIcon,r.incrementButtonIcon]},r.ptm("incrementIcon"),{"data-pc-section":"incrementicon"}),null,16,["class"]))]})],16,JMn)]}),Nr(r.$slots,"decrementbutton",{listeners:g.downButtonListeners},function(){return[ar("button",Qe({class:[r.cx("decrementButton"),r.decrementButtonClass]},Kte(g.downButtonListeners),{disabled:r.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},r.ptm("decrementButton")),[Nr(r.$slots,r.$slots.decrementicon?"decrementicon":"decrementbuttonicon",{},function(){return[(ve(),Cn(ko(r.decrementIcon||r.decrementButtonIcon?"span":"AngleDownIcon"),Qe({class:[r.decrementIcon,r.decrementButtonIcon]},r.ptm("decrementIcon"),{"data-pc-section":"decrementicon"}),null,16,["class"]))]})],16,QMn)]})],16)):rr("",!0),Nr(r.$slots,"incrementbutton",{listeners:g.upButtonListeners},function(){return[r.showButtons&&r.buttonLayout!=="stacked"?(ve(),wt("button",Qe({key:0,class:[r.cx("incrementButton"),r.incrementButtonClass]},Kte(g.upButtonListeners),{disabled:r.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},r.ptm("incrementButton")),[Nr(r.$slots,r.$slots.incrementicon?"incrementicon":"incrementbuttonicon",{},function(){return[(ve(),Cn(ko(r.incrementIcon||r.incrementButtonIcon?"span":"AngleUpIcon"),Qe({class:[r.incrementIcon,r.incrementButtonIcon]},r.ptm("incrementIcon"),{"data-pc-section":"incrementicon"}),null,16,["class"]))]})],16,ZMn)):rr("",!0)]}),Nr(r.$slots,"decrementbutton",{listeners:g.downButtonListeners},function(){return[r.showButtons&&r.buttonLayout!=="stacked"?(ve(),wt("button",Qe({key:0,class:[r.cx("decrementButton"),r.decrementButtonClass]},Kte(g.downButtonListeners),{disabled:r.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},r.ptm("decrementButton")),[Nr(r.$slots,r.$slots.decrementicon?"decrementicon":"decrementbuttonicon",{},function(){return[(ve(),Cn(ko(r.decrementIcon||r.decrementButtonIcon?"span":"AngleDownIcon"),Qe({class:[r.decrementIcon,r.decrementButtonIcon]},r.ptm("decrementIcon"),{"data-pc-section":"decrementicon"}),null,16,["class"]))]})],16,eOn)):rr("",!0)]})],16)}jPt.render=tOn;var DPt={name:"AngleDoubleRightIcon",extends:su};function nOn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z",fill:"currentColor"},null,-1)]),16)}DPt.render=nOn;var NPt={name:"AngleRightIcon",extends:su};function rOn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z",fill:"currentColor"},null,-1)]),16)}NPt.render=rOn;var BPt={name:"AngleLeftIcon",extends:su};function iOn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z",fill:"currentColor"},null,-1)]),16)}BPt.render=iOn;var oOn={name:"BasePaginator",extends:vl,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},currentPageReportTemplate:{type:null,default:"({currentPage} of {totalPages})"},alwaysShow:{type:Boolean,default:!0}},style:$Mn,provide:function(){return{$pcPaginator:this,$parentInstance:this}}},FPt={name:"CurrentPageReport",hostName:"Paginator",extends:vl,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:"({currentPage} of {totalPages})"}},computed:{text:function(){var o=this.template.replace("{currentPage}",this.currentPage).replace("{totalPages}",this.pageCount).replace("{first}",this.pageCount>0?this.first+1:0).replace("{last}",Math.min(this.first+this.rows,this.totalRecords)).replace("{rows}",this.rows).replace("{totalRecords}",this.totalRecords);return o}}};function sOn(r,o,l,a,p,g){return ve(),wt("span",Qe({class:r.cx("current")},r.ptm("current")),Il(g.text),17)}FPt.render=sOn;var zPt={name:"FirstPageLink",hostName:"Paginator",extends:vl,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(o){return this.ptm(o,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:APt},directives:{ripple:O3}};function lOn(r,o,l,a,p,g){var w=hy("ripple");return dy((ve(),wt("button",Qe({class:r.cx("first"),type:"button"},g.getPTOptions("first"),{"data-pc-group-section":"pagebutton"}),[(ve(),Cn(ko(l.template||"AngleDoubleLeftIcon"),Qe({class:r.cx("firstIcon")},g.getPTOptions("firstIcon")),null,16,["class"]))],16)),[[w]])}zPt.render=lOn;var HPt={name:"JumpToPageDropdown",hostName:"Paginator",extends:vl,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean,templates:null},methods:{onChange:function(o){this.$emit("page-change",o)}},computed:{pageOptions:function(){for(var o=[],l=0;lr.length)&&(o=r.length);for(var l=0,a=Array(o);l0&&o&&this.d_first>=o&&this.changePage(this.pageCount-1)}},mounted:function(){this.createStyle()},methods:{changePage:function(o){var l=this.pageCount;if(o>=0&&o0?this.page+1:0},last:function(){return Math.min(this.d_first+this.rows,this.totalRecords)}},components:{CurrentPageReport:FPt,FirstPageLink:zPt,LastPageLink:UPt,NextPageLink:GPt,PageLinks:WPt,PrevPageLink:VPt,RowsPerPageDropdown:qPt,JumpToPageDropdown:HPt,JumpToPageInput:KPt}};function yOn(r,o,l,a,p,g){var w=ki("FirstPageLink"),y=ki("PrevPageLink"),S=ki("NextPageLink"),E=ki("LastPageLink"),I=ki("PageLinks"),M=ki("CurrentPageReport"),_=ki("RowsPerPageDropdown"),R=ki("JumpToPageDropdown"),j=ki("JumpToPageInput");return r.alwaysShow||g.pageLinks&&g.pageLinks.length>1?(ve(),wt("nav",m_(Qe({key:0},r.ptmi("paginatorContainer"))),[(ve(!0),wt(si,null,Mu(g.templateItems,function(K,q){return ve(),wt("div",Qe({key:q,ref_for:!0,ref:"paginator",class:r.cx("paginator",{key:q})},r.ptm("root")),[r.$slots.container?Nr(r.$slots,"container",{key:0,first:p.d_first+1,last:g.last,rows:p.d_rows,page:g.page,pageCount:g.pageCount,totalRecords:r.totalRecords,firstPageCallback:g.changePageToFirst,lastPageCallback:g.changePageToLast,prevPageCallback:g.changePageToPrev,nextPageCallback:g.changePageToNext,rowChangeCallback:g.onRowChange}):(ve(),wt(si,{key:1},[r.$slots.start?(ve(),wt("div",Qe({key:0,class:r.cx("contentStart"),ref_for:!0},r.ptm("contentStart")),[Nr(r.$slots,"start",{state:g.currentState})],16)):rr("",!0),ar("div",Qe({class:r.cx("content"),ref_for:!0},r.ptm("content")),[(ve(!0),wt(si,null,Mu(K,function(Q){return ve(),wt(si,{key:Q},[Q==="FirstPageLink"?(ve(),Cn(w,{key:0,"aria-label":g.getAriaLabel("firstPageLabel"),template:r.$slots.firsticon||r.$slots.firstpagelinkicon,onClick:o[0]||(o[0]=function(Z){return g.changePageToFirst(Z)}),disabled:g.isFirstPage||g.empty,unstyled:r.unstyled,pt:r.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):Q==="PrevPageLink"?(ve(),Cn(y,{key:1,"aria-label":g.getAriaLabel("prevPageLabel"),template:r.$slots.previcon||r.$slots.prevpagelinkicon,onClick:o[1]||(o[1]=function(Z){return g.changePageToPrev(Z)}),disabled:g.isFirstPage||g.empty,unstyled:r.unstyled,pt:r.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):Q==="NextPageLink"?(ve(),Cn(S,{key:2,"aria-label":g.getAriaLabel("nextPageLabel"),template:r.$slots.nexticon||r.$slots.nextpagelinkicon,onClick:o[2]||(o[2]=function(Z){return g.changePageToNext(Z)}),disabled:g.isLastPage||g.empty,unstyled:r.unstyled,pt:r.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):Q==="LastPageLink"?(ve(),Cn(E,{key:3,"aria-label":g.getAriaLabel("lastPageLabel"),template:r.$slots.lasticon||r.$slots.lastpagelinkicon,onClick:o[3]||(o[3]=function(Z){return g.changePageToLast(Z)}),disabled:g.isLastPage||g.empty,unstyled:r.unstyled,pt:r.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):Q==="PageLinks"?(ve(),Cn(I,{key:4,"aria-label":g.getAriaLabel("pageLabel"),value:g.pageLinks,page:g.page,onClick:o[4]||(o[4]=function(Z){return g.changePageLink(Z)}),unstyled:r.unstyled,pt:r.pt},null,8,["aria-label","value","page","unstyled","pt"])):Q==="CurrentPageReport"?(ve(),Cn(M,{key:5,"aria-live":"polite",template:r.currentPageReportTemplate,currentPage:g.currentPage,page:g.page,pageCount:g.pageCount,first:p.d_first,rows:p.d_rows,totalRecords:r.totalRecords,unstyled:r.unstyled,pt:r.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","unstyled","pt"])):Q==="RowsPerPageDropdown"&&r.rowsPerPageOptions?(ve(),Cn(_,{key:6,"aria-label":g.getAriaLabel("rowsPerPageLabel"),rows:p.d_rows,options:r.rowsPerPageOptions,onRowsChange:o[5]||(o[5]=function(Z){return g.onRowChange(Z)}),disabled:g.empty,templates:r.$slots,unstyled:r.unstyled,pt:r.pt},null,8,["aria-label","rows","options","disabled","templates","unstyled","pt"])):Q==="JumpToPageDropdown"?(ve(),Cn(R,{key:7,"aria-label":g.getAriaLabel("jumpToPageDropdownLabel"),page:g.page,pageCount:g.pageCount,onPageChange:o[6]||(o[6]=function(Z){return g.changePage(Z)}),disabled:g.empty,templates:r.$slots,unstyled:r.unstyled,pt:r.pt},null,8,["aria-label","page","pageCount","disabled","templates","unstyled","pt"])):Q==="JumpToPageInput"?(ve(),Cn(j,{key:8,page:g.currentPage,onPageChange:o[7]||(o[7]=function(Z){return g.changePage(Z)}),disabled:g.empty,unstyled:r.unstyled,pt:r.pt},null,8,["page","disabled","unstyled","pt"])):rr("",!0)],64)}),128))],16),r.$slots.end?(ve(),wt("div",Qe({key:1,class:r.cx("contentEnd"),ref_for:!0},r.ptm("contentEnd")),[Nr(r.$slots,"end",{state:g.currentState})],16)):rr("",!0)],64))],16)}),128))],16)):rr("",!0)}XPt.render=yOn;var kOn=function(o){var l=o.dt;return` -.p-datatable { - position: relative; -} - -.p-datatable-table { - border-spacing: 0; - border-collapse: separate; - width: 100%; -} - -.p-datatable-scrollable > .p-datatable-table-container { - position: relative; -} - -.p-datatable-scrollable-table > .p-datatable-thead { - inset-block-start: 0; - z-index: 1; -} - -.p-datatable-scrollable-table > .p-datatable-frozen-tbody { - position: sticky; - z-index: 1; -} - -.p-datatable-scrollable-table > .p-datatable-tfoot { - inset-block-end: 0; - z-index: 1; -} - -.p-datatable-scrollable .p-datatable-frozen-column { - position: sticky; - background: `.concat(l("datatable.header.cell.background"),`; -} - -.p-datatable-scrollable th.p-datatable-frozen-column { - z-index: 1; -} - -.p-datatable-scrollable > .p-datatable-table-container > .p-datatable-table > .p-datatable-thead, -.p-datatable-scrollable > .p-datatable-table-container > .p-virtualscroller > .p-datatable-table > .p-datatable-thead { - background: `).concat(l("datatable.header.cell.background"),`; -} - -.p-datatable-scrollable > .p-datatable-table-container > .p-datatable-table > .p-datatable-tfoot, -.p-datatable-scrollable > .p-datatable-table-container > .p-virtualscroller > .p-datatable-table > .p-datatable-tfoot { - background: `).concat(l("datatable.footer.cell.background"),`; -} - -.p-datatable-flex-scrollable { - display: flex; - flex-direction: column; - height: 100%; -} - -.p-datatable-flex-scrollable > .p-datatable-table-container { - display: flex; - flex-direction: column; - flex: 1; - height: 100%; -} - -.p-datatable-scrollable-table > .p-datatable-tbody > .p-datatable-row-group-header { - position: sticky; - z-index: 1; -} - -.p-datatable-resizable-table > .p-datatable-thead > tr > th, -.p-datatable-resizable-table > .p-datatable-tfoot > tr > td, -.p-datatable-resizable-table > .p-datatable-tbody > tr > td { - overflow: hidden; - white-space: nowrap; -} - -.p-datatable-resizable-table > .p-datatable-thead > tr > th.p-datatable-resizable-column:not(.p-datatable-frozen-column) { - background-clip: padding-box; - position: relative; -} - -.p-datatable-resizable-table-fit > .p-datatable-thead > tr > th.p-datatable-resizable-column:last-child .p-datatable-column-resizer { - display: none; -} - -.p-datatable-column-resizer { - display: block; - position: absolute; - inset-block-start: 0; - inset-inline-end: 0; - margin: 0; - width: `).concat(l("datatable.column.resizer.width"),`; - height: 100%; - padding: 0; - cursor: col-resize; - border: 1px solid transparent; -} - -.p-datatable-column-header-content { - display: flex; - align-items: center; - gap: `).concat(l("datatable.header.cell.gap"),`; -} - -.p-datatable-column-resize-indicator { - width: `).concat(l("datatable.resize.indicator.width"),`; - position: absolute; - z-index: 10; - display: none; - background: `).concat(l("datatable.resize.indicator.color"),`; -} - -.p-datatable-row-reorder-indicator-up, -.p-datatable-row-reorder-indicator-down { - position: absolute; - display: none; -} - -.p-datatable-reorderable-column, -.p-datatable-reorderable-row-handle { - cursor: move; -} - -.p-datatable-mask { - position: absolute; - display: flex; - align-items: center; - justify-content: center; - z-index: 2; -} - -.p-datatable-inline-filter { - display: flex; - align-items: center; - width: 100%; - gap: `).concat(l("datatable.filter.inline.gap"),`; -} - -.p-datatable-inline-filter .p-datatable-filter-element-container { - flex: 1 1 auto; - width: 1%; -} - -.p-datatable-filter-overlay { - background: `).concat(l("datatable.filter.overlay.select.background"),`; - color: `).concat(l("datatable.filter.overlay.select.color"),`; - border: 1px solid `).concat(l("datatable.filter.overlay.select.border.color"),`; - border-radius: `).concat(l("datatable.filter.overlay.select.border.radius"),`; - box-shadow: `).concat(l("datatable.filter.overlay.select.shadow"),`; - min-width: 12.5rem; -} - -.p-datatable-filter-constraint-list { - margin: 0; - list-style: none; - display: flex; - flex-direction: column; - padding: `).concat(l("datatable.filter.constraint.list.padding"),`; - gap: `).concat(l("datatable.filter.constraint.list.gap"),`; -} - -.p-datatable-filter-constraint { - padding: `).concat(l("datatable.filter.constraint.padding"),`; - color: `).concat(l("datatable.filter.constraint.color"),`; - border-radius: `).concat(l("datatable.filter.constraint.border.radius"),`; - cursor: pointer; - transition: background `).concat(l("datatable.transition.duration"),", color ").concat(l("datatable.transition.duration"),", border-color ").concat(l("datatable.transition.duration"),`, - box-shadow `).concat(l("datatable.transition.duration"),`; -} - -.p-datatable-filter-constraint-selected { - background: `).concat(l("datatable.filter.constraint.selected.background"),`; - color: `).concat(l("datatable.filter.constraint.selected.color"),`; -} - -.p-datatable-filter-constraint:not(.p-datatable-filter-constraint-selected):not(.p-disabled):hover { - background: `).concat(l("datatable.filter.constraint.focus.background"),`; - color: `).concat(l("datatable.filter.constraint.focus.color"),`; -} - -.p-datatable-filter-constraint:focus-visible { - outline: 0 none; - background: `).concat(l("datatable.filter.constraint.focus.background"),`; - color: `).concat(l("datatable.filter.constraint.focus.color"),`; -} - -.p-datatable-filter-constraint-selected:focus-visible { - outline: 0 none; - background: `).concat(l("datatable.filter.constraint.selected.focus.background"),`; - color: `).concat(l("datatable.filter.constraint.selected.focus.color"),`; -} - -.p-datatable-filter-constraint-separator { - border-block-start: 1px solid `).concat(l("datatable.filter.constraint.separator.border.color"),`; -} - -.p-datatable-popover-filter { - display: inline-flex; - margin-inline-start: auto; -} - -.p-datatable-filter-overlay-popover { - background: `).concat(l("datatable.filter.overlay.popover.background"),`; - color: `).concat(l("datatable.filter.overlay.popover.color"),`; - border: 1px solid `).concat(l("datatable.filter.overlay.popover.border.color"),`; - border-radius: `).concat(l("datatable.filter.overlay.popover.border.radius"),`; - box-shadow: `).concat(l("datatable.filter.overlay.popover.shadow"),`; - min-width: 12.5rem; - padding: `).concat(l("datatable.filter.overlay.popover.padding"),`; - display: flex; - flex-direction: column; - gap: `).concat(l("datatable.filter.overlay.popover.gap"),`; -} - -.p-datatable-filter-operator-dropdown { - width: 100%; -} - -.p-datatable-filter-rule-list, -.p-datatable-filter-rule { - display: flex; - flex-direction: column; - gap: `).concat(l("datatable.filter.overlay.popover.gap"),`; -} - -.p-datatable-filter-rule { - border-block-end: 1px solid `).concat(l("datatable.filter.rule.border.color"),`; - padding-bottom: `).concat(l("datatable.filter.overlay.popover.gap"),`; -} - -.p-datatable-filter-rule:last-child { - border-block-end: 0 none; - padding-bottom: 0; -} - -.p-datatable-filter-add-rule-button { - width: 100%; -} - -.p-datatable-filter-remove-rule-button { - width: 100%; -} - -.p-datatable-filter-buttonbar { - padding: 0; - display: flex; - align-items: center; - justify-content: space-between; -} - -.p-datatable-virtualscroller-spacer { - display: flex; -} - -.p-datatable .p-virtualscroller .p-virtualscroller-loading { - transform: none !important; - min-height: 0; - position: sticky; - inset-block-start: 0; - inset-inline-start: 0; -} - -.p-datatable-paginator-top { - border-color: `).concat(l("datatable.paginator.top.border.color"),`; - border-style: solid; - border-width: `).concat(l("datatable.paginator.top.border.width"),`; -} - -.p-datatable-paginator-bottom { - border-color: `).concat(l("datatable.paginator.bottom.border.color"),`; - border-style: solid; - border-width: `).concat(l("datatable.paginator.bottom.border.width"),`; -} - -.p-datatable-header { - background: `).concat(l("datatable.header.background"),`; - color: `).concat(l("datatable.header.color"),`; - border-color: `).concat(l("datatable.header.border.color"),`; - border-style: solid; - border-width: `).concat(l("datatable.header.border.width"),`; - padding: `).concat(l("datatable.header.padding"),`; -} - -.p-datatable-footer { - background: `).concat(l("datatable.footer.background"),`; - color: `).concat(l("datatable.footer.color"),`; - border-color: `).concat(l("datatable.footer.border.color"),`; - border-style: solid; - border-width: `).concat(l("datatable.footer.border.width"),`; - padding: `).concat(l("datatable.footer.padding"),`; -} - -.p-datatable-header-cell { - padding: `).concat(l("datatable.header.cell.padding"),`; - background: `).concat(l("datatable.header.cell.background"),`; - border-color: `).concat(l("datatable.header.cell.border.color"),`; - border-style: solid; - border-width: 0 0 1px 0; - color: `).concat(l("datatable.header.cell.color"),`; - font-weight: normal; - text-align: start; - transition: background `).concat(l("datatable.transition.duration"),", color ").concat(l("datatable.transition.duration"),", border-color ").concat(l("datatable.transition.duration"),`, - outline-color `).concat(l("datatable.transition.duration"),", box-shadow ").concat(l("datatable.transition.duration"),`; -} - -.p-datatable-column-title { - font-weight: `).concat(l("datatable.column.title.font.weight"),`; -} - -.p-datatable-tbody > tr { - outline-color: transparent; - background: `).concat(l("datatable.row.background"),`; - color: `).concat(l("datatable.row.color"),`; - transition: background `).concat(l("datatable.transition.duration"),", color ").concat(l("datatable.transition.duration"),", border-color ").concat(l("datatable.transition.duration"),`, - outline-color `).concat(l("datatable.transition.duration"),", box-shadow ").concat(l("datatable.transition.duration"),`; -} - -.p-datatable-tbody > tr > td { - text-align: start; - border-color: `).concat(l("datatable.body.cell.border.color"),`; - border-style: solid; - border-width: 0 0 1px 0; - padding: `).concat(l("datatable.body.cell.padding"),`; -} - -.p-datatable-hoverable .p-datatable-tbody > tr:not(.p-datatable-row-selected):hover { - background: `).concat(l("datatable.row.hover.background"),`; - color: `).concat(l("datatable.row.hover.color"),`; -} - -.p-datatable-tbody > tr.p-datatable-row-selected { - background: `).concat(l("datatable.row.selected.background"),`; - color: `).concat(l("datatable.row.selected.color"),`; -} - -.p-datatable-tbody > tr:has(+ .p-datatable-row-selected) > td { - border-block-end-color: `).concat(l("datatable.body.cell.selected.border.color"),`; -} - -.p-datatable-tbody > tr.p-datatable-row-selected > td { - border-block-end-color: `).concat(l("datatable.body.cell.selected.border.color"),`; -} - -.p-datatable-tbody > tr:focus-visible, -.p-datatable-tbody > tr.p-datatable-contextmenu-row-selected { - box-shadow: `).concat(l("datatable.row.focus.ring.shadow"),`; - outline: `).concat(l("datatable.row.focus.ring.width")," ").concat(l("datatable.row.focus.ring.style")," ").concat(l("datatable.row.focus.ring.color"),`; - outline-offset: `).concat(l("datatable.row.focus.ring.offset"),`; -} - -.p-datatable-tfoot > tr > td { - text-align: start; - padding: `).concat(l("datatable.footer.cell.padding"),`; - border-color: `).concat(l("datatable.footer.cell.border.color"),`; - border-style: solid; - border-width: 0 0 1px 0; - color: `).concat(l("datatable.footer.cell.color"),`; - background: `).concat(l("datatable.footer.cell.background"),`; -} - -.p-datatable-column-footer { - font-weight: `).concat(l("datatable.column.footer.font.weight"),`; -} - -.p-datatable-sortable-column { - cursor: pointer; - user-select: none; - outline-color: transparent; -} - -.p-datatable-column-title, -.p-datatable-sort-icon, -.p-datatable-sort-badge { - vertical-align: middle; -} - -.p-datatable-sort-icon { - color: `).concat(l("datatable.sort.icon.color"),`; - font-size: `).concat(l("datatable.sort.icon.size"),`; - width: `).concat(l("datatable.sort.icon.size"),`; - height: `).concat(l("datatable.sort.icon.size"),`; - transition: color `).concat(l("datatable.transition.duration"),`; -} - -.p-datatable-sortable-column:not(.p-datatable-column-sorted):hover { - background: `).concat(l("datatable.header.cell.hover.background"),`; - color: `).concat(l("datatable.header.cell.hover.color"),`; -} - -.p-datatable-sortable-column:not(.p-datatable-column-sorted):hover .p-datatable-sort-icon { - color: `).concat(l("datatable.sort.icon.hover.color"),`; -} - -.p-datatable-column-sorted { - background: `).concat(l("datatable.header.cell.selected.background"),`; - color: `).concat(l("datatable.header.cell.selected.color"),`; -} - -.p-datatable-column-sorted .p-datatable-sort-icon { - color: `).concat(l("datatable.header.cell.selected.color"),`; -} - -.p-datatable-sortable-column:focus-visible { - box-shadow: `).concat(l("datatable.header.cell.focus.ring.shadow"),`; - outline: `).concat(l("datatable.header.cell.focus.ring.width")," ").concat(l("datatable.header.cell.focus.ring.style")," ").concat(l("datatable.header.cell.focus.ring.color"),`; - outline-offset: `).concat(l("datatable.header.cell.focus.ring.offset"),`; -} - -.p-datatable-hoverable .p-datatable-selectable-row { - cursor: pointer; -} - -.p-datatable-tbody > tr.p-datatable-dragpoint-top > td { - box-shadow: inset 0 2px 0 0 `).concat(l("datatable.drop.point.color"),`; -} - -.p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td { - box-shadow: inset 0 -2px 0 0 `).concat(l("datatable.drop.point.color"),`; -} - -.p-datatable-loading-icon { - font-size: `).concat(l("datatable.loading.icon.size"),`; - width: `).concat(l("datatable.loading.icon.size"),`; - height: `).concat(l("datatable.loading.icon.size"),`; -} - -.p-datatable-gridlines .p-datatable-header { - border-width: 1px 1px 0 1px; -} - -.p-datatable-gridlines .p-datatable-footer { - border-width: 0 1px 1px 1px; -} - -.p-datatable-gridlines .p-datatable-paginator-top { - border-width: 1px 1px 0 1px; -} - -.p-datatable-gridlines .p-datatable-paginator-bottom { - border-width: 0 1px 1px 1px; -} - -.p-datatable-gridlines .p-datatable-thead > tr > th { - border-width: 1px 0 1px 1px; -} - -.p-datatable-gridlines .p-datatable-thead > tr > th:last-child { - border-width: 1px; -} - -.p-datatable-gridlines .p-datatable-tbody > tr > td { - border-width: 1px 0 0 1px; -} - -.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child { - border-width: 1px 1px 0 1px; -} - -.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td { - border-width: 1px 0 1px 1px; -} - -.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td:last-child { - border-width: 1px; -} - -.p-datatable-gridlines .p-datatable-tfoot > tr > td { - border-width: 1px 0 1px 1px; -} - -.p-datatable-gridlines .p-datatable-tfoot > tr > td:last-child { - border-width: 1px 1px 1px 1px; -} - -.p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td { - border-width: 0 0 1px 1px; -} - -.p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td:last-child { - border-width: 0 1px 1px 1px; -} - -.p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td { - border-width: 0 0 1px 1px; -} - -.p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td:last-child { - border-width: 0 1px 1px 1px; -} - -.p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td { - border-width: 0 0 0 1px; -} - -.p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td:last-child { - border-width: 0 1px 0 1px; -} - -.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd { - background: `).concat(l("datatable.row.striped.background"),`; -} - -.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd.p-datatable-row-selected { - background: `).concat(l("datatable.row.selected.background"),`; - color: `).concat(l("datatable.row.selected.color"),`; -} - -.p-datatable-striped.p-datatable-hoverable .p-datatable-tbody > tr:not(.p-datatable-row-selected):hover { - background: `).concat(l("datatable.row.hover.background"),`; - color: `).concat(l("datatable.row.hover.color"),`; -} - -.p-datatable.p-datatable-sm .p-datatable-header { - padding: 0.375rem 0.5rem; -} - -.p-datatable.p-datatable-sm .p-datatable-thead > tr > th { - padding: 0.375rem 0.5rem; -} - -.p-datatable.p-datatable-sm .p-datatable-tbody > tr > td { - padding: 0.375rem 0.5rem; -} - -.p-datatable.p-datatable-sm .p-datatable-tfoot > tr > td { - padding: 0.375rem 0.5rem; -} - -.p-datatable.p-datatable-sm .p-datatable-footer { - padding: 0.375rem 0.5rem; -} - -.p-datatable.p-datatable-lg .p-datatable-header { - padding: 1rem 1.25rem; -} - -.p-datatable.p-datatable-lg .p-datatable-thead > tr > th { - padding: 1rem 1.25rem; -} - -.p-datatable.p-datatable-lg .p-datatable-tbody > tr > td { - padding: 1rem 1.25rem; -} - -.p-datatable.p-datatable-lg .p-datatable-tfoot > tr > td { - padding: 1rem 1.25rem; -} - -.p-datatable.p-datatable-lg .p-datatable-footer { - padding: 1rem 1.25rem; -} - -.p-datatable-row-toggle-button { - display: inline-flex; - align-items: center; - justify-content: center; - overflow: hidden; - position: relative; - width: `).concat(l("datatable.row.toggle.button.size"),`; - height: `).concat(l("datatable.row.toggle.button.size"),`; - color: `).concat(l("datatable.row.toggle.button.color"),`; - border: 0 none; - background: transparent; - cursor: pointer; - border-radius: `).concat(l("datatable.row.toggle.button.border.radius"),`; - transition: background `).concat(l("datatable.transition.duration"),", color ").concat(l("datatable.transition.duration"),", border-color ").concat(l("datatable.transition.duration"),`, - outline-color `).concat(l("datatable.transition.duration"),", box-shadow ").concat(l("datatable.transition.duration"),`; - outline-color: transparent; - user-select: none; -} - -.p-datatable-row-toggle-button:enabled:hover { - color: `).concat(l("datatable.row.toggle.button.hover.color"),`; - background: `).concat(l("datatable.row.toggle.button.hover.background"),`; -} - -.p-datatable-tbody > tr.p-datatable-row-selected .p-datatable-row-toggle-button:hover { - background: `).concat(l("datatable.row.toggle.button.selected.hover.background"),`; - color: `).concat(l("datatable.row.toggle.button.selected.hover.color"),`; -} - -.p-datatable-row-toggle-button:focus-visible { - box-shadow: `).concat(l("datatable.row.toggle.button.focus.ring.shadow"),`; - outline: `).concat(l("datatable.row.toggle.button.focus.ring.width")," ").concat(l("datatable.row.toggle.button.focus.ring.style")," ").concat(l("datatable.row.toggle.button.focus.ring.color"),`; - outline-offset: `).concat(l("datatable.row.toggle.button.focus.ring.offset"),`; -} - -.p-datatable-row-toggle-icon:dir(rtl) { - transform: rotate(180deg); -} -`)},COn={root:function(o){var l=o.props;return["p-datatable p-component",{"p-datatable-hoverable":l.rowHover||l.selectionMode,"p-datatable-resizable":l.resizableColumns,"p-datatable-resizable-fit":l.resizableColumns&&l.columnResizeMode==="fit","p-datatable-scrollable":l.scrollable,"p-datatable-flex-scrollable":l.scrollable&&l.scrollHeight==="flex","p-datatable-striped":l.stripedRows,"p-datatable-gridlines":l.showGridlines,"p-datatable-sm":l.size==="small","p-datatable-lg":l.size==="large"}]},mask:"p-datatable-mask p-overlay-mask",loadingIcon:"p-datatable-loading-icon",header:"p-datatable-header",pcPaginator:function(o){var l=o.position;return"p-datatable-paginator-"+l},tableContainer:"p-datatable-table-container",table:function(o){var l=o.props;return["p-datatable-table",{"p-datatable-scrollable-table":l.scrollable,"p-datatable-resizable-table":l.resizableColumns,"p-datatable-resizable-table-fit":l.resizableColumns&&l.columnResizeMode==="fit"}]},thead:"p-datatable-thead",headerCell:function(o){var l=o.instance,a=o.props,p=o.column;return p&&!l.columnProp(p,"hidden")&&(a.rowGroupMode!=="subheader"||a.groupRowsBy!==l.columnProp(p,"field"))?["p-datatable-header-cell",{"p-datatable-frozen-column":l.columnProp(p,"frozen")}]:["p-datatable-header-cell",{"p-datatable-sortable-column":l.columnProp("sortable"),"p-datatable-resizable-column":l.resizableColumns,"p-datatable-column-sorted":l.isColumnSorted(),"p-datatable-frozen-column":l.columnProp("frozen"),"p-datatable-reorderable-column":a.reorderableColumns}]},columnResizer:"p-datatable-column-resizer",columnHeaderContent:"p-datatable-column-header-content",columnTitle:"p-datatable-column-title",columnFooter:"p-datatable-column-footer",sortIcon:"p-datatable-sort-icon",pcSortBadge:"p-datatable-sort-badge",filter:function(o){var l=o.props;return["p-datatable-filter",{"p-datatable-inline-filter":l.display==="row","p-datatable-popover-filter":l.display==="menu"}]},filterElementContainer:"p-datatable-filter-element-container",pcColumnFilterButton:"p-datatable-column-filter-button",pcColumnFilterClearButton:"p-datatable-column-filter-clear-button",filterOverlay:function(o){o.instance;var l=o.props;return["p-datatable-filter-overlay p-component",{"p-datatable-filter-overlay-popover":l.display==="menu"}]},filterConstraintList:"p-datatable-filter-constraint-list",filterConstraint:function(o){var l=o.instance,a=o.matchMode;return["p-datatable-filter-constraint",{"p-datatable-filter-constraint-selected":a&&l.isRowMatchModeSelected(a.value)}]},filterConstraintSeparator:"p-datatable-filter-constraint-separator",filterOperator:"p-datatable-filter-operator",pcFilterOperatorDropdown:"p-datatable-filter-operator-dropdown",filterRuleList:"p-datatable-filter-rule-list",filterRule:"p-datatable-filter-rule",pcFilterConstraintDropdown:"p-datatable-filter-constraint-dropdown",pcFilterRemoveRuleButton:"p-datatable-filter-remove-rule-button",pcFilterAddRuleButton:"p-datatable-filter-add-rule-button",filterButtonbar:"p-datatable-filter-buttonbar",pcFilterClearButton:"p-datatable-filter-clear-button",pcFilterApplyButton:"p-datatable-filter-apply-button",tbody:function(o){var l=o.props;return l.frozenRow?"p-datatable-tbody p-datatable-frozen-tbody":"p-datatable-tbody"},rowGroupHeader:"p-datatable-row-group-header",rowToggleButton:"p-datatable-row-toggle-button",rowToggleIcon:"p-datatable-row-toggle-icon",row:function(o){var l=o.instance,a=o.props,p=o.index,g=o.columnSelectionMode,w=[];return a.selectionMode&&w.push("p-datatable-selectable-row"),a.selection&&w.push({"p-datatable-row-selected":g?l.isSelected&&l.$parentInstance.$parentInstance.highlightOnSelect:l.isSelected}),a.contextMenuSelection&&w.push({"p-datatable-contextmenu-row-selected":l.isSelectedWithContextMenu}),w.push(p%2===0?"p-row-even":"p-row-odd"),w},rowExpansion:"p-datatable-row-expansion",rowGroupFooter:"p-datatable-row-group-footer",emptyMessage:"p-datatable-empty-message",bodyCell:function(o){var l=o.instance;return[{"p-datatable-frozen-column":l.columnProp("frozen")}]},reorderableRowHandle:"p-datatable-reorderable-row-handle",pcRowEditorInit:"p-datatable-row-editor-init",pcRowEditorSave:"p-datatable-row-editor-save",pcRowEditorCancel:"p-datatable-row-editor-cancel",tfoot:"p-datatable-tfoot",footerCell:function(o){var l=o.instance;return[{"p-datatable-frozen-column":l.columnProp("frozen")}]},virtualScrollerSpacer:"p-datatable-virtualscroller-spacer",footer:"p-datatable-footer",columnResizeIndicator:"p-datatable-column-resize-indicator",rowReorderIndicatorUp:"p-datatable-row-reorder-indicator-up",rowReorderIndicatorDown:"p-datatable-row-reorder-indicator-down"},SOn={tableContainer:{overflow:"auto"},thead:{position:"sticky"},tfoot:{position:"sticky"}},xOn=vs.extend({name:"datatable",theme:kOn,classes:COn,inlineStyles:SOn}),Bxe={name:"ChevronRightIcon",extends:su};function EOn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1)]),16)}Bxe.render=EOn;var YPt={name:"BarsIcon",extends:su};function TOn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z",fill:"currentColor"},null,-1)]),16)}YPt.render=TOn;var JPt={name:"PencilIcon",extends:su};function IOn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M0.609628 13.959C0.530658 13.9599 0.452305 13.9451 0.379077 13.9156C0.305849 13.8861 0.239191 13.8424 0.18294 13.787C0.118447 13.7234 0.0688234 13.6464 0.0376166 13.5614C0.00640987 13.4765 -0.00560954 13.3857 0.00241768 13.2956L0.25679 10.1501C0.267698 10.0041 0.331934 9.86709 0.437312 9.76516L9.51265 0.705715C10.0183 0.233014 10.6911 -0.0203041 11.3835 0.00127367C12.0714 0.00660201 12.7315 0.27311 13.2298 0.746671C13.7076 1.23651 13.9824 1.88848 13.9992 2.57201C14.0159 3.25554 13.7733 3.92015 13.32 4.4327L4.23648 13.5331C4.13482 13.6342 4.0017 13.6978 3.85903 13.7133L0.667067 14L0.609628 13.959ZM1.43018 10.4696L1.25787 12.714L3.50619 12.5092L12.4502 3.56444C12.6246 3.35841 12.7361 3.10674 12.7714 2.83933C12.8067 2.57193 12.7644 2.30002 12.6495 2.05591C12.5346 1.8118 12.3519 1.60575 12.1231 1.46224C11.8943 1.31873 11.6291 1.2438 11.3589 1.24633C11.1813 1.23508 11.0033 1.25975 10.8355 1.31887C10.6677 1.37798 10.5136 1.47033 10.3824 1.59036L1.43018 10.4696Z",fill:"currentColor"},null,-1)]),16)}JPt.render=IOn;var QPt={name:"MinusIcon",extends:su};function POn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"},null,-1)]),16)}QPt.render=POn;var MOn=function(o){var l=o.dt;return` -.p-checkbox { - position: relative; - display: inline-flex; - user-select: none; - vertical-align: bottom; - width: `.concat(l("checkbox.width"),`; - height: `).concat(l("checkbox.height"),`; -} - -.p-checkbox-input { - cursor: pointer; - appearance: none; - position: absolute; - inset-block-start: 0; - inset-inline-start: 0; - width: 100%; - height: 100%; - padding: 0; - margin: 0; - opacity: 0; - z-index: 1; - outline: 0 none; - border: 1px solid transparent; - border-radius: `).concat(l("checkbox.border.radius"),`; -} - -.p-checkbox-box { - display: flex; - justify-content: center; - align-items: center; - border-radius: `).concat(l("checkbox.border.radius"),`; - border: 1px solid `).concat(l("checkbox.border.color"),`; - background: `).concat(l("checkbox.background"),`; - width: `).concat(l("checkbox.width"),`; - height: `).concat(l("checkbox.height"),`; - transition: background `).concat(l("checkbox.transition.duration"),", color ").concat(l("checkbox.transition.duration"),", border-color ").concat(l("checkbox.transition.duration"),", box-shadow ").concat(l("checkbox.transition.duration"),", outline-color ").concat(l("checkbox.transition.duration"),`; - outline-color: transparent; - box-shadow: `).concat(l("checkbox.shadow"),`; -} - -.p-checkbox-icon { - transition-duration: `).concat(l("checkbox.transition.duration"),`; - color: `).concat(l("checkbox.icon.color"),`; - font-size: `).concat(l("checkbox.icon.size"),`; - width: `).concat(l("checkbox.icon.size"),`; - height: `).concat(l("checkbox.icon.size"),`; -} - -.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box { - border-color: `).concat(l("checkbox.hover.border.color"),`; -} - -.p-checkbox-checked .p-checkbox-box { - border-color: `).concat(l("checkbox.checked.border.color"),`; - background: `).concat(l("checkbox.checked.background"),`; -} - -.p-checkbox-checked .p-checkbox-icon { - color: `).concat(l("checkbox.icon.checked.color"),`; -} - -.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box { - background: `).concat(l("checkbox.checked.hover.background"),`; - border-color: `).concat(l("checkbox.checked.hover.border.color"),`; -} - -.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon { - color: `).concat(l("checkbox.icon.checked.hover.color"),`; -} - -.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box { - border-color: `).concat(l("checkbox.focus.border.color"),`; - box-shadow: `).concat(l("checkbox.focus.ring.shadow"),`; - outline: `).concat(l("checkbox.focus.ring.width")," ").concat(l("checkbox.focus.ring.style")," ").concat(l("checkbox.focus.ring.color"),`; - outline-offset: `).concat(l("checkbox.focus.ring.offset"),`; -} - -.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box { - border-color: `).concat(l("checkbox.checked.focus.border.color"),`; -} - -.p-checkbox.p-invalid > .p-checkbox-box { - border-color: `).concat(l("checkbox.invalid.border.color"),`; -} - -.p-checkbox.p-variant-filled .p-checkbox-box { - background: `).concat(l("checkbox.filled.background"),`; -} - -.p-checkbox-checked.p-variant-filled .p-checkbox-box { - background: `).concat(l("checkbox.checked.background"),`; -} - -.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box { - background: `).concat(l("checkbox.checked.hover.background"),`; -} - -.p-checkbox.p-disabled { - opacity: 1; -} - -.p-checkbox.p-disabled .p-checkbox-box { - background: `).concat(l("checkbox.disabled.background"),`; - border-color: `).concat(l("checkbox.checked.disabled.border.color"),`; -} - -.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon { - color: `).concat(l("checkbox.icon.disabled.color"),`; -} - -.p-checkbox-sm, -.p-checkbox-sm .p-checkbox-box { - width: `).concat(l("checkbox.sm.width"),`; - height: `).concat(l("checkbox.sm.height"),`; -} - -.p-checkbox-sm .p-checkbox-icon { - font-size: `).concat(l("checkbox.icon.sm.size"),`; - width: `).concat(l("checkbox.icon.sm.size"),`; - height: `).concat(l("checkbox.icon.sm.size"),`; -} - -.p-checkbox-lg, -.p-checkbox-lg .p-checkbox-box { - width: `).concat(l("checkbox.lg.width"),`; - height: `).concat(l("checkbox.lg.height"),`; -} - -.p-checkbox-lg .p-checkbox-icon { - font-size: `).concat(l("checkbox.icon.lg.size"),`; - width: `).concat(l("checkbox.icon.lg.size"),`; - height: `).concat(l("checkbox.icon.lg.size"),`; -} -`)},OOn={root:function(o){var l=o.instance,a=o.props;return["p-checkbox p-component",{"p-checkbox-checked":l.checked,"p-disabled":a.disabled,"p-invalid":l.$pcCheckboxGroup?l.$pcCheckboxGroup.$invalid:l.$invalid,"p-variant-filled":l.$variant==="filled","p-checkbox-sm p-inputfield-sm":a.size==="small","p-checkbox-lg p-inputfield-lg":a.size==="large"}]},box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},_On=vs.extend({name:"checkbox",theme:MOn,classes:OOn}),ROn={name:"BaseCheckbox",extends:vH,props:{value:null,binary:Boolean,indeterminate:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:_On,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}};function AOn(r){return DOn(r)||jOn(r)||$On(r)||LOn()}function LOn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $On(r,o){if(r){if(typeof r=="string")return ISe(r,o);var l={}.toString.call(r).slice(8,-1);return l==="Object"&&r.constructor&&(l=r.constructor.name),l==="Map"||l==="Set"?Array.from(r):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?ISe(r,o):void 0}}function jOn(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function DOn(r){if(Array.isArray(r))return ISe(r)}function ISe(r,o){(o==null||o>r.length)&&(o=r.length);for(var l=0,a=Array(o);l .p-radiobutton-box { - border-color: `).concat(l("radiobutton.invalid.border.color"),`; -} - -.p-radiobutton.p-variant-filled .p-radiobutton-box { - background: `).concat(l("radiobutton.filled.background"),`; -} - -.p-radiobutton.p-variant-filled.p-radiobutton-checked .p-radiobutton-box { - background: `).concat(l("radiobutton.checked.background"),`; -} - -.p-radiobutton.p-variant-filled:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box { - background: `).concat(l("radiobutton.checked.hover.background"),`; -} - -.p-radiobutton.p-disabled { - opacity: 1; -} - -.p-radiobutton.p-disabled .p-radiobutton-box { - background: `).concat(l("radiobutton.disabled.background"),`; - border-color: `).concat(l("radiobutton.checked.disabled.border.color"),`; -} - -.p-radiobutton-checked.p-disabled .p-radiobutton-box .p-radiobutton-icon { - background: `).concat(l("radiobutton.icon.disabled.color"),`; -} - -.p-radiobutton-sm, -.p-radiobutton-sm .p-radiobutton-box { - width: `).concat(l("radiobutton.sm.width"),`; - height: `).concat(l("radiobutton.sm.height"),`; -} - -.p-radiobutton-sm .p-radiobutton-icon { - font-size: `).concat(l("radiobutton.icon.sm.size"),`; - width: `).concat(l("radiobutton.icon.sm.size"),`; - height: `).concat(l("radiobutton.icon.sm.size"),`; -} - -.p-radiobutton-lg, -.p-radiobutton-lg .p-radiobutton-box { - width: `).concat(l("radiobutton.lg.width"),`; - height: `).concat(l("radiobutton.lg.height"),`; -} - -.p-radiobutton-lg .p-radiobutton-icon { - font-size: `).concat(l("radiobutton.icon.lg.size"),`; - width: `).concat(l("radiobutton.icon.lg.size"),`; - height: `).concat(l("radiobutton.icon.lg.size"),`; -} -`)},HOn={root:function(o){var l=o.instance,a=o.props;return["p-radiobutton p-component",{"p-radiobutton-checked":l.checked,"p-disabled":a.disabled,"p-invalid":l.$pcRadioButtonGroup?l.$pcRadioButtonGroup.$invalid:l.$invalid,"p-variant-filled":l.$variant==="filled","p-radiobutton-sm p-inputfield-sm":a.size==="small","p-radiobutton-lg p-inputfield-lg":a.size==="large"}]},box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},KOn=vs.extend({name:"radiobutton",theme:zOn,classes:HOn}),UOn={name:"BaseRadioButton",extends:vH,props:{value:null,binary:Boolean,readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:KOn,provide:function(){return{$pcRadioButton:this,$parentInstance:this}}},ZPt={name:"RadioButton",extends:UOn,inheritAttrs:!1,emits:["change","focus","blur"],inject:{$pcRadioButtonGroup:{default:void 0}},methods:{getPTOptions:function(o){var l=o==="root"?this.ptmi:this.ptm;return l(o,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(o){if(!this.disabled&&!this.readonly){var l=this.binary?!this.checked:this.value;this.$pcRadioButtonGroup?this.$pcRadioButtonGroup.writeValue(l,o):this.writeValue(l,o),this.$emit("change",o)}},onFocus:function(o){this.$emit("focus",o)},onBlur:function(o){var l,a;this.$emit("blur",o),(l=(a=this.formField).onBlur)===null||l===void 0||l.call(a,o)}},computed:{groupName:function(){return this.$pcRadioButtonGroup?this.$pcRadioButtonGroup.groupName:this.$formName},checked:function(){var o=this.$pcRadioButtonGroup?this.$pcRadioButtonGroup.d_value:this.d_value;return o!=null&&(this.binary?!!o:VE(o,this.value))}}},GOn=["data-p-checked","data-p-disabled"],WOn=["id","value","name","checked","tabindex","disabled","readonly","aria-labelledby","aria-label","aria-invalid"];function VOn(r,o,l,a,p,g){return ve(),wt("div",Qe({class:r.cx("root")},g.getPTOptions("root"),{"data-p-checked":g.checked,"data-p-disabled":r.disabled}),[ar("input",Qe({id:r.inputId,type:"radio",class:[r.cx("input"),r.inputClass],style:r.inputStyle,value:r.value,name:g.groupName,checked:g.checked,tabindex:r.tabindex,disabled:r.disabled,readonly:r.readonly,"aria-labelledby":r.ariaLabelledby,"aria-label":r.ariaLabel,"aria-invalid":r.invalid||void 0,onFocus:o[0]||(o[0]=function(){return g.onFocus&&g.onFocus.apply(g,arguments)}),onBlur:o[1]||(o[1]=function(){return g.onBlur&&g.onBlur.apply(g,arguments)}),onChange:o[2]||(o[2]=function(){return g.onChange&&g.onChange.apply(g,arguments)})},g.getPTOptions("input")),null,16,WOn),ar("div",Qe({class:r.cx("box")},g.getPTOptions("box")),[ar("div",Qe({class:r.cx("icon")},g.getPTOptions("icon")),null,16)],16)],16,GOn)}ZPt.render=VOn;var eMt={name:"FilterIcon",extends:su};function qOn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z",fill:"currentColor"},null,-1)]),16)}eMt.render=qOn;var tMt={name:"FilterSlashIcon",extends:su};function XOn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z",fill:"currentColor"},null,-1)]),16)}tMt.render=XOn;var nMt={name:"PlusIcon",extends:su};function YOn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z",fill:"currentColor"},null,-1)]),16)}nMt.render=YOn;var rMt={name:"TrashIcon",extends:su};function JOn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z",fill:"currentColor"},null,-1)]),16)}rMt.render=JOn;var PSe={name:"SortAltIcon",extends:su};function QOn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z",fill:"currentColor"},null,-1),ar("path",{d:"M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z",fill:"currentColor"},null,-1),ar("path",{d:"M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z",fill:"currentColor"},null,-1),ar("path",{d:"M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z",fill:"currentColor"},null,-1)]),16)}PSe.render=QOn;var MSe={name:"SortAmountDownIcon",extends:su};function ZOn(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z",fill:"currentColor"},null,-1)]),16)}MSe.render=ZOn;var OSe={name:"SortAmountUpAltIcon",extends:su};function e_n(r,o,l,a,p,g){return ve(),wt("svg",Qe({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.pti()),o[0]||(o[0]=[ar("path",{d:"M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z",fill:"currentColor"},null,-1)]),16)}OSe.render=e_n;var t_n={name:"BaseDataTable",extends:vl,props:{value:{type:Array,default:null},dataKey:{type:[String,Function],default:null},rows:{type:Number,default:0},first:{type:Number,default:0},totalRecords:{type:Number,default:0},paginator:{type:Boolean,default:!1},paginatorPosition:{type:String,default:"bottom"},alwaysShowPaginator:{type:Boolean,default:!0},paginatorTemplate:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},currentPageReportTemplate:{type:String,default:"({currentPage} of {totalPages})"},lazy:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},sortField:{type:[String,Function],default:null},sortOrder:{type:Number,default:null},defaultSortOrder:{type:Number,default:1},nullSortOrder:{type:Number,default:1},multiSortMeta:{type:Array,default:null},sortMode:{type:String,default:"single"},removableSort:{type:Boolean,default:!1},filters:{type:Object,default:null},filterDisplay:{type:String,default:null},globalFilterFields:{type:Array,default:null},filterLocale:{type:String,default:void 0},selection:{type:[Array,Object],default:null},selectionMode:{type:String,default:null},compareSelectionBy:{type:String,default:"deepEquals"},metaKeySelection:{type:Boolean,default:!1},contextMenu:{type:Boolean,default:!1},contextMenuSelection:{type:Object,default:null},selectAll:{type:Boolean,default:null},rowHover:{type:Boolean,default:!1},csvSeparator:{type:String,default:","},exportFilename:{type:String,default:"download"},exportFunction:{type:Function,default:null},resizableColumns:{type:Boolean,default:!1},columnResizeMode:{type:String,default:"fit"},reorderableColumns:{type:Boolean,default:!1},expandedRows:{type:[Array,Object],default:null},expandedRowIcon:{type:String,default:void 0},collapsedRowIcon:{type:String,default:void 0},rowGroupMode:{type:String,default:null},groupRowsBy:{type:[Array,String,Function],default:null},expandableRowGroups:{type:Boolean,default:!1},expandedRowGroups:{type:Array,default:null},stateStorage:{type:String,default:"session"},stateKey:{type:String,default:null},editMode:{type:String,default:null},editingRows:{type:Array,default:null},rowClass:{type:Function,default:null},rowStyle:{type:Function,default:null},scrollable:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},scrollHeight:{type:String,default:null},frozenValue:{type:Array,default:null},breakpoint:{type:String,default:"960px"},showHeaders:{type:Boolean,default:!0},showGridlines:{type:Boolean,default:!1},stripedRows:{type:Boolean,default:!1},highlightOnSelect:{type:Boolean,default:!1},size:{type:String,default:null},tableStyle:{type:null,default:null},tableClass:{type:[String,Object],default:null},tableProps:{type:Object,default:null},filterInputProps:{type:null,default:null},filterButtonProps:{type:Object,default:function(){return{filter:{severity:"secondary",text:!0,rounded:!0},inline:{clear:{severity:"secondary",text:!0,rounded:!0}},popover:{addRule:{severity:"info",text:!0,size:"small"},removeRule:{severity:"danger",text:!0,size:"small"},apply:{size:"small"},clear:{outlined:!0,size:"small"}}}}},editButtonProps:{type:Object,default:function(){return{init:{severity:"secondary",text:!0,rounded:!0},save:{severity:"secondary",text:!0,rounded:!0},cancel:{severity:"secondary",text:!0,rounded:!0}}}}},style:xOn,provide:function(){return{$pcDataTable:this,$parentInstance:this}}},iMt={name:"RowCheckbox",hostName:"DataTable",extends:vl,emits:["change"],props:{value:null,checked:null,column:null,rowCheckboxIconTemplate:{type:Function,default:null},index:{type:Number,default:null}},methods:{getColumnPT:function(o){var l={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,checked:this.checked,disabled:this.$attrs.disabled}};return Qe(this.ptm("column.".concat(o),{column:l}),this.ptm("column.".concat(o),l),this.ptmo(this.getColumnProp(),o,l))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},onChange:function(o){this.$attrs.disabled||this.$emit("change",{originalEvent:o,data:this.value})}},computed:{checkboxAriaLabel:function(){return this.$primevue.config.locale.aria?this.checked?this.$primevue.config.locale.aria.selectRow:this.$primevue.config.locale.aria.unselectRow:void 0}},components:{CheckIcon:B_,Checkbox:Fxe}};function n_n(r,o,l,a,p,g){var w=ki("CheckIcon"),y=ki("Checkbox");return ve(),Cn(y,{modelValue:l.checked,binary:!0,disabled:r.$attrs.disabled,"aria-label":g.checkboxAriaLabel,onChange:g.onChange,unstyled:r.unstyled,pt:g.getColumnPT("pcRowCheckbox")},{icon:ui(function(S){return[l.rowCheckboxIconTemplate?(ve(),Cn(ko(l.rowCheckboxIconTemplate),{key:0,checked:S.checked,class:yo(S.class)},null,8,["checked","class"])):!l.rowCheckboxIconTemplate&&S.checked?(ve(),Cn(w,Qe({key:1,class:S.class},g.getColumnPT("pcRowCheckbox").icon),null,16,["class"])):rr("",!0)]}),_:1},8,["modelValue","disabled","aria-label","onChange","unstyled","pt"])}iMt.render=n_n;var oMt={name:"RowRadioButton",hostName:"DataTable",extends:vl,emits:["change"],props:{value:null,checked:null,name:null,column:null,index:{type:Number,default:null}},methods:{getColumnPT:function(o){var l={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,checked:this.checked,disabled:this.$attrs.disabled}};return Qe(this.ptm("column.".concat(o),{column:l}),this.ptm("column.".concat(o),l),this.ptmo(this.getColumnProp(),o,l))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},onChange:function(o){this.$attrs.disabled||this.$emit("change",{originalEvent:o,data:this.value})}},components:{RadioButton:ZPt}};function r_n(r,o,l,a,p,g){var w=ki("RadioButton");return ve(),Cn(w,{modelValue:l.checked,binary:!0,disabled:r.$attrs.disabled,name:l.name,onChange:g.onChange,unstyled:r.unstyled,pt:g.getColumnPT("pcRowRadiobutton")},null,8,["modelValue","disabled","name","onChange","unstyled","pt"])}oMt.render=r_n;var sMt={name:"BodyCell",hostName:"DataTable",extends:vl,emits:["cell-edit-init","cell-edit-complete","cell-edit-cancel","row-edit-init","row-edit-save","row-edit-cancel","row-toggle","radio-change","checkbox-change","editing-meta-change"],props:{rowData:{type:Object,default:null},column:{type:Object,default:null},frozenRow:{type:Boolean,default:!1},rowIndex:{type:Number,default:null},index:{type:Number,default:null},isRowExpanded:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},editing:{type:Boolean,default:!1},editingMeta:{type:Object,default:null},editMode:{type:String,default:null},virtualScrollerContentProps:{type:Object,default:null},ariaControls:{type:String,default:null},name:{type:String,default:null},expandedRowIcon:{type:String,default:null},collapsedRowIcon:{type:String,default:null},editButtonProps:{type:Object,default:null}},documentEditListener:null,selfClick:!1,overlayEventListener:null,data:function(){return{d_editing:this.editing,styleObject:{}}},watch:{editing:function(o){this.d_editing=o},"$data.d_editing":function(o){this.$emit("editing-meta-change",{data:this.rowData,field:this.field||"field_".concat(this.index),index:this.rowIndex,editing:o})}},mounted:function(){this.columnProp("frozen")&&this.updateStickyPosition()},updated:function(){var o=this;this.columnProp("frozen")&&this.updateStickyPosition(),this.d_editing&&(this.editMode==="cell"||this.editMode==="row"&&this.columnProp("rowEditor"))&&setTimeout(function(){var l=gE(o.$el);l&&l.focus()},1)},beforeUnmount:function(){this.overlayEventListener&&(nm.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null)},methods:{columnProp:function(o){return q6(this.column,o)},getColumnPT:function(o){var l,a,p={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,size:(l=this.$parentInstance)===null||l===void 0||(l=l.$parentInstance)===null||l===void 0?void 0:l.size,showGridlines:(a=this.$parentInstance)===null||a===void 0||(a=a.$parentInstance)===null||a===void 0?void 0:a.showGridlines}};return Qe(this.ptm("column.".concat(o),{column:p}),this.ptm("column.".concat(o),p),this.ptmo(this.getColumnProp(),o,p))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},resolveFieldData:function(){return pl(this.rowData,this.field)},toggleRow:function(o){this.$emit("row-toggle",{originalEvent:o,data:this.rowData})},toggleRowWithRadio:function(o,l){this.$emit("radio-change",{originalEvent:o.originalEvent,index:l,data:o.data})},toggleRowWithCheckbox:function(o,l){this.$emit("checkbox-change",{originalEvent:o.originalEvent,index:l,data:o.data})},isEditable:function(){return this.column.children&&this.column.children.editor!=null},bindDocumentEditListener:function(){var o=this;this.documentEditListener||(this.documentEditListener=function(l){o.selfClick||o.completeEdit(l,"outside"),o.selfClick=!1},document.addEventListener("click",this.documentEditListener))},unbindDocumentEditListener:function(){this.documentEditListener&&(document.removeEventListener("click",this.documentEditListener),this.documentEditListener=null,this.selfClick=!1)},switchCellToViewMode:function(){this.d_editing=!1,this.unbindDocumentEditListener(),nm.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null},onClick:function(o){var l=this;this.editMode==="cell"&&this.isEditable()&&(this.selfClick=!0,this.d_editing||(this.d_editing=!0,this.bindDocumentEditListener(),this.$emit("cell-edit-init",{originalEvent:o,data:this.rowData,field:this.field,index:this.rowIndex}),this.overlayEventListener=function(a){l.$el&&l.$el.contains(a.target)&&(l.selfClick=!0)},nm.on("overlay-click",this.overlayEventListener)))},completeEdit:function(o,l){var a={originalEvent:o,data:this.rowData,newData:this.editingRowData,value:this.rowData[this.field],newValue:this.editingRowData[this.field],field:this.field,index:this.rowIndex,type:l,defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0}};this.$emit("cell-edit-complete",a),a.defaultPrevented||this.switchCellToViewMode()},onKeyDown:function(o){if(this.editMode==="cell")switch(o.code){case"Enter":case"NumpadEnter":this.completeEdit(o,"enter");break;case"Escape":this.switchCellToViewMode(),this.$emit("cell-edit-cancel",{originalEvent:o,data:this.rowData,field:this.field,index:this.rowIndex});break;case"Tab":this.completeEdit(o,"tab"),o.shiftKey?this.moveToPreviousCell(o):this.moveToNextCell(o);break}},moveToPreviousCell:function(o){var l=this.findCell(o.target),a=this.findPreviousEditableColumn(l);a&&(Dkt(a,"click"),o.preventDefault())},moveToNextCell:function(o){var l=this.findCell(o.target),a=this.findNextEditableColumn(l);a&&(Dkt(a,"click"),o.preventDefault())},findCell:function(o){if(o){for(var l=o;l&&!dh(l,"data-p-cell-editing");)l=l.parentElement;return l}else return null},findPreviousEditableColumn:function(o){var l=o.previousElementSibling;if(!l){var a=o.parentElement.previousElementSibling;a&&(l=a.lastElementChild)}return l?dh(l,"data-p-editable-column")?l:this.findPreviousEditableColumn(l):null},findNextEditableColumn:function(o){var l=o.nextElementSibling;if(!l){var a=o.parentElement.nextElementSibling;a&&(l=a.firstElementChild)}return l?dh(l,"data-p-editable-column")?l:this.findNextEditableColumn(l):null},onRowEditInit:function(o){this.$emit("row-edit-init",{originalEvent:o,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},onRowEditSave:function(o){this.$emit("row-edit-save",{originalEvent:o,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},onRowEditCancel:function(o){this.$emit("row-edit-cancel",{originalEvent:o,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},editorInitCallback:function(o){this.$emit("row-edit-init",{originalEvent:o,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},editorSaveCallback:function(o){this.editMode==="row"?this.$emit("row-edit-save",{originalEvent:o,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex}):this.completeEdit(o,"enter")},editorCancelCallback:function(o){this.editMode==="row"?this.$emit("row-edit-cancel",{originalEvent:o,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex}):(this.switchCellToViewMode(),this.$emit("cell-edit-cancel",{originalEvent:o,data:this.rowData,field:this.field,index:this.rowIndex}))},updateStickyPosition:function(){if(this.columnProp("frozen")){var o=this.columnProp("alignFrozen");if(o==="right"){var l=0,a=t9e(this.$el,'[data-p-frozen-column="true"]');a&&(l=Vh(a)+parseFloat(a.style.right||0)),this.styleObject.insetInlineEnd=l+"px"}else{var p=0,g=n9e(this.$el,'[data-p-frozen-column="true"]');g&&(p=Vh(g)+parseFloat(g.style.left||0)),this.styleObject.insetInlineStart=p+"px"}}},getVirtualScrollerProp:function(o){return this.virtualScrollerContentProps?this.virtualScrollerContentProps[o]:null}},computed:{editingRowData:function(){return this.editingMeta[this.rowIndex]?this.editingMeta[this.rowIndex].data:this.rowData},field:function(){return this.columnProp("field")},containerClass:function(){return[this.columnProp("bodyClass"),this.columnProp("class"),this.cx("bodyCell")]},containerStyle:function(){var o=this.columnProp("bodyStyle"),l=this.columnProp("style");return this.columnProp("frozen")?[l,o,this.styleObject]:[l,o]},loading:function(){return this.getVirtualScrollerProp("loading")},loadingOptions:function(){var o=this.getVirtualScrollerProp("getLoaderOptions");return o&&o(this.rowIndex,{cellIndex:this.index,cellFirst:this.index===0,cellLast:this.index===this.getVirtualScrollerProp("columns").length-1,cellEven:this.index%2===0,cellOdd:this.index%2!==0,column:this.column,field:this.field})},expandButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.isRowExpanded?this.$primevue.config.locale.aria.expandRow:this.$primevue.config.locale.aria.collapseRow:void 0},initButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.editRow:void 0},saveButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.saveEdit:void 0},cancelButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.cancelEdit:void 0}},components:{DTRadioButton:oMt,DTCheckbox:iMt,Button:em,ChevronDownIcon:Xre,ChevronRightIcon:Bxe,BarsIcon:YPt,PencilIcon:JPt,CheckIcon:B_,TimesIcon:Yre},directives:{ripple:O3}};function tH(r){"@babel/helpers - typeof";return tH=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},tH(r)}function I7t(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(r,p).enumerable})),l.push.apply(l,a)}return l}function pne(r){for(var o=1;o=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(E){throw E},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,w=!0,y=!1;return{s:function(){l=l.call(r)},n:function(){var E=l.next();return w=E.done,E},e:function(E){y=!0,g=E},f:function(){try{w||l.return==null||l.return()}finally{if(y)throw g}}}}function f_n(r,o){if(r){if(typeof r=="string")return P7t(r,o);var l={}.toString.call(r).slice(8,-1);return l==="Object"&&r.constructor&&(l=r.constructor.name),l==="Map"||l==="Set"?Array.from(r):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?P7t(r,o):void 0}}function P7t(r,o){(o==null||o>r.length)&&(o=r.length);for(var l=0,a=Array(o);l-1:this.groupRowsBy===l:!1},findIndexInSelection:function(o){return this.findIndex(o,this.selection)},findIndex:function(o,l){var a=-1;if(l&&l.length){for(var p=0;p-1:!1},isRowGroupExpanded:function(){if(this.expandableRowGroups&&this.expandedRowGroups){var o=pl(this.rowData,this.groupRowsBy);return this.expandedRowGroups.indexOf(o)>-1}return!1},isSelected:function(){return this.rowData&&this.selection?this.dataKey?this.selectionKeys?this.selectionKeys[pl(this.rowData,this.dataKey)]!==void 0:!1:this.selection instanceof Array?this.findIndexInSelection(this.rowData)>-1:this.equals(this.rowData,this.selection):!1},isSelectedWithContextMenu:function(){return this.rowData&&this.contextMenuSelection?this.equals(this.rowData,this.contextMenuSelection,this.dataKey):!1},shouldRenderRowGroupHeader:function(){var o=pl(this.rowData,this.groupRowsBy),l=this.value[this.rowIndex-1];if(l){var a=pl(l,this.groupRowsBy);return o!==a}else return!0},shouldRenderRowGroupFooter:function(){if(this.expandableRowGroups&&!this.isRowGroupExpanded)return!1;var o=pl(this.rowData,this.groupRowsBy),l=this.value[this.rowIndex+1];if(l){var a=pl(l,this.groupRowsBy);return o!==a}else return!0},columnsLength:function(){var o=this;if(this.columns){var l=0;return this.columns.forEach(function(a){o.columnProp(a,"selectionMode")==="single"&&l--,o.columnProp(a,"hidden")&&l++}),this.columns.length-l}return 0}},components:{DTBodyCell:sMt,ChevronDownIcon:Xre,ChevronRightIcon:Bxe}};function rH(r){"@babel/helpers - typeof";return rH=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},rH(r)}function _7t(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(r,p).enumerable})),l.push.apply(l,a)}return l}function dC(r){for(var o=1;o=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(E){throw E},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,w=!0,y=!1;return{s:function(){l=l.call(r)},n:function(){var E=l.next();return w=E.done,E},e:function(E){y=!0,g=E},f:function(){try{w||l.return==null||l.return()}finally{if(y)throw g}}}}function R_n(r,o){if(r){if(typeof r=="string")return L7t(r,o);var l={}.toString.call(r).slice(8,-1);return l==="Object"&&r.constructor&&(l=r.constructor.name),l==="Map"||l==="Set"?Array.from(r):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?L7t(r,o):void 0}}function L7t(r,o){(o==null||o>r.length)&&(o=r.length);for(var l=0,a=Array(o);l1},removeRuleButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.removeRule:void 0},addRuleButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.addRule:void 0},isShowAddConstraint:function(){return this.showAddButton&&this.filters[this.field].operator&&this.fieldConstraints&&this.fieldConstraints.length-1?o:o+1},isMultiSorted:function(){return this.sortMode==="multiple"&&this.columnProp("sortable")&&this.getMultiSortMetaIndex()>-1},isColumnSorted:function(){return this.sortMode==="single"?this.sortField&&(this.sortField===this.columnProp("field")||this.sortField===this.columnProp("sortField")):this.isMultiSorted()},updateStickyPosition:function(){if(this.columnProp("frozen")){var o=this.columnProp("alignFrozen");if(o==="right"){var l=0,a=t9e(this.$el,'[data-p-frozen-column="true"]');a&&(l=Vh(a)+parseFloat(a.style.right||0)),this.styleObject.insetInlineEnd=l+"px"}else{var p=0,g=n9e(this.$el,'[data-p-frozen-column="true"]');g&&(p=Vh(g)+parseFloat(g.style.left||0)),this.styleObject.insetInlineStart=p+"px"}var w=this.$el.parentElement.nextElementSibling;if(w){var y=Cne(this.$el);w.children[y]&&(w.children[y].style.left=this.styleObject.left,w.children[y].style.right=this.styleObject.right)}}},onHeaderCheckboxChange:function(o){this.$emit("checkbox-change",o)}},computed:{containerClass:function(){return[this.cx("headerCell"),this.filterColumn?this.columnProp("filterHeaderClass"):this.columnProp("headerClass"),this.columnProp("class")]},containerStyle:function(){var o=this.filterColumn?this.columnProp("filterHeaderStyle"):this.columnProp("headerStyle"),l=this.columnProp("style");return this.columnProp("frozen")?[l,o,this.styleObject]:[l,o]},sortState:function(){var o=!1,l=null;if(this.sortMode==="single")o=this.sortField&&(this.sortField===this.columnProp("field")||this.sortField===this.columnProp("sortField")),l=o?this.sortOrder:0;else if(this.sortMode==="multiple"){var a=this.getMultiSortMetaIndex();a>-1&&(o=!0,l=this.multiSortMeta[a].order)}return{sorted:o,sortOrder:l}},sortableColumnIcon:function(){var o=this.sortState,l=o.sorted,a=o.sortOrder;if(l){if(l&&a>0)return OSe;if(l&&a<0)return MSe}else return PSe;return null},ariaSort:function(){if(this.columnProp("sortable")){var o=this.sortState,l=o.sorted,a=o.sortOrder;return l&&a<0?"descending":l&&a>0?"ascending":"none"}else return null}},components:{Badge:o9e,DTHeaderCheckbox:Hxe,DTColumnFilter:zxe,SortAltIcon:PSe,SortAmountUpAltIcon:OSe,SortAmountDownIcon:MSe}};function cH(r){"@babel/helpers - typeof";return cH=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},cH(r)}function N7t(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(r,p).enumerable})),l.push.apply(l,a)}return l}function B7t(r){for(var o=1;o=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(E){throw E},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,w=!0,y=!1;return{s:function(){l=l.call(r)},n:function(){var E=l.next();return w=E.done,E},e:function(E){y=!0,g=E},f:function(){try{w||l.return==null||l.return()}finally{if(y)throw g}}}}function Qu(r){return hRn(r)||dRn(r)||Kxe(r)||fRn()}function fRn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kxe(r,o){if(r){if(typeof r=="string")return _Se(r,o);var l={}.toString.call(r).slice(8,-1);return l==="Object"&&r.constructor&&(l=r.constructor.name),l==="Map"||l==="Set"?Array.from(r):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?_Se(r,o):void 0}}function dRn(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function hRn(r){if(Array.isArray(r))return _Se(r)}function _Se(r,o){(o==null||o>r.length)&&(o=r.length);for(var l=0,a=Array(o);la?this.multisortField(o,l,a+1):0:Okt(p,g,this.d_multiSortMeta[a].order,w,this.d_nullSortOrder)},addMultiSortField:function(o){var l=this.d_multiSortMeta.findIndex(function(a){return a.field===o});l>=0?this.removableSort&&this.d_multiSortMeta[l].order*-1===this.defaultSortOrder?this.d_multiSortMeta.splice(l,1):this.d_multiSortMeta[l]={field:o,order:this.d_multiSortMeta[l].order*-1}:this.d_multiSortMeta.push({field:o,order:this.defaultSortOrder}),this.d_multiSortMeta=Qu(this.d_multiSortMeta)},getActiveFilters:function(o){var l=function(w){var y=H7t(w,2),S=y[0],E=y[1];if(E.constraints){var I=E.constraints.filter(function(M){return M.value!==null});if(I.length>0)return[S,ab(ab({},E),{},{constraints:I})]}else if(E.value!==null)return[S,E]},a=function(w){return w!==void 0},p=Object.entries(o).map(l).filter(a);return Object.fromEntries(p)},filter:function(o){var l=this;if(o){this.clearEditingMetaData();var a=this.getActiveFilters(this.filters),p;a.global&&(p=this.globalFilterFields||this.columns.map(function(ie){return l.columnProp(ie,"filterField")||l.columnProp(ie,"field")}));for(var g=[],w=0;w=w.length?w.length-1:a+1;this.onRowClick({originalEvent:o,data:w[y],index:y})}o.preventDefault()},onArrowUpKey:function(o,l,a,p){var g=this.findPrevSelectableRow(l);if(g&&this.focusRowChange(l,g),o.shiftKey){var w=this.dataToRender(p.rows),y=a-1<=0?0:a-1;this.onRowClick({originalEvent:o,data:w[y],index:y})}o.preventDefault()},onHomeKey:function(o,l,a,p){var g=this.findFirstSelectableRow();if(g&&this.focusRowChange(l,g),o.ctrlKey&&o.shiftKey){var w=this.dataToRender(p.rows);this.$emit("update:selection",w.slice(0,a+1))}o.preventDefault()},onEndKey:function(o,l,a,p){var g=this.findLastSelectableRow();if(g&&this.focusRowChange(l,g),o.ctrlKey&&o.shiftKey){var w=this.dataToRender(p.rows);this.$emit("update:selection",w.slice(a,w.length))}o.preventDefault()},onEnterKey:function(o,l,a){this.onRowClick({originalEvent:o,data:l,index:a}),o.preventDefault()},onSpaceKey:function(o,l,a,p){if(this.onEnterKey(o,l,a),o.shiftKey&&this.selection!==null){var g=this.dataToRender(p.rows),w;if(this.selection.length>0){var y,S;y=W8e(this.selection[0],g),S=W8e(this.selection[this.selection.length-1],g),w=a<=y?S:y}else w=W8e(this.selection,g);var E=w!==a?g.slice(Math.min(w,a),Math.max(w,a)+1):l;this.$emit("update:selection",E)}},onTabKey:function(o,l){var a=this.$refs.bodyRef&&this.$refs.bodyRef.$el,p=KO(a,'tr[data-p-selectable-row="true"]');if(o.code==="Tab"&&p&&p.length>0){var g=PC(a,'tr[data-p-selected="true"]'),w=PC(a,'tr[data-p-selectable-row="true"][tabindex="0"]');g?(g.tabIndex="0",w&&w!==g&&(w.tabIndex="-1")):(p[0].tabIndex="0",w!==p[0]&&(p[l].tabIndex="-1"))}},findNextSelectableRow:function(o){var l=o.nextElementSibling;return l?dh(l,"data-p-selectable-row")===!0?l:this.findNextSelectableRow(l):null},findPrevSelectableRow:function(o){var l=o.previousElementSibling;return l?dh(l,"data-p-selectable-row")===!0?l:this.findPrevSelectableRow(l):null},findFirstSelectableRow:function(){var o=PC(this.$refs.table,'tr[data-p-selectable-row="true"]');return o},findLastSelectableRow:function(){var o=KO(this.$refs.table,'tr[data-p-selectable-row="true"]');return o?o[o.length-1]:null},focusRowChange:function(o,l){o.tabIndex="-1",l.tabIndex="0",Uh(l)},toggleRowWithRadio:function(o){var l=o.data;this.isSelected(l)?(this.$emit("update:selection",null),this.$emit("row-unselect",{originalEvent:o.originalEvent,data:l,index:o.index,type:"radiobutton"})):(this.$emit("update:selection",l),this.$emit("row-select",{originalEvent:o.originalEvent,data:l,index:o.index,type:"radiobutton"}))},toggleRowWithCheckbox:function(o){var l=o.data;if(this.isSelected(l)){var a=this.findIndexInSelection(l),p=this.selection.filter(function(w,y){return y!=a});this.$emit("update:selection",p),this.$emit("row-unselect",{originalEvent:o.originalEvent,data:l,index:o.index,type:"checkbox"})}else{var g=this.selection?Qu(this.selection):[];g=[].concat(Qu(g),[l]),this.$emit("update:selection",g),this.$emit("row-select",{originalEvent:o.originalEvent,data:l,index:o.index,type:"checkbox"})}},toggleRowsWithCheckbox:function(o){if(this.selectAll!==null)this.$emit("select-all-change",o);else{var l=o.originalEvent,a=o.checked,p=[];a?(p=this.frozenValue?[].concat(Qu(this.frozenValue),Qu(this.processedData)):this.processedData,this.$emit("row-select-all",{originalEvent:l,data:p})):this.$emit("row-unselect-all",{originalEvent:l}),this.$emit("update:selection",p)}},isSingleSelectionMode:function(){return this.selectionMode==="single"},isMultipleSelectionMode:function(){return this.selectionMode==="multiple"},isSelected:function(o){return o&&this.selection?this.dataKey?this.d_selectionKeys?this.d_selectionKeys[pl(o,this.dataKey)]!==void 0:!1:this.selection instanceof Array?this.findIndexInSelection(o)>-1:this.equals(o,this.selection):!1},findIndexInSelection:function(o){return this.findIndex(o,this.selection)},findIndex:function(o,l){var a=-1;if(l&&l.length){for(var p=0;pthis.anchorRowIndex?(l=this.anchorRowIndex,a=this.rangeRowIndex):this.rangeRowIndexparseInt(p,10)){if(this.columnResizeMode==="fit"){var g=this.resizeColumnElement.nextElementSibling,w=g.offsetWidth-o;a>15&&w>15&&this.resizeTableCells(a,w)}else if(this.columnResizeMode==="expand"){var y=this.$refs.table.offsetWidth+o+"px",S=function(_){_&&(_.style.width=_.style.minWidth=y)};if(this.resizeTableCells(a),S(this.$refs.table),!this.virtualScrollerDisabled){var E=this.$refs.bodyRef&&this.$refs.bodyRef.$el,I=this.$refs.frozenBodyRef&&this.$refs.frozenBodyRef.$el;S(E),S(I)}}this.$emit("column-resize-end",{element:this.resizeColumnElement,delta:o})}this.$refs.resizeHelper.style.display="none",this.resizeColumn=null,this.$el.removeAttribute("data-p-unselectable-text"),!this.isUnstyled&&(this.$el.style["user-select"]=""),this.unbindColumnResizeEvents(),this.isStateful()&&this.saveState()},resizeTableCells:function(o,l){var a=Cne(this.resizeColumnElement),p=[],g=KO(this.$refs.table,'thead[data-pc-section="thead"] > tr > th');g.forEach(function(S){return p.push(Vh(S))}),this.destroyStyleElement(),this.createStyleElement();var w="",y='[data-pc-name="datatable"]['.concat(this.$attrSelector,'] > [data-pc-section="tablecontainer"] ').concat(this.virtualScrollerDisabled?"":'> [data-pc-name="virtualscroller"]',' > table[data-pc-section="table"]');p.forEach(function(S,E){var I=E===a?o:l&&E===a+1?l:S,M="width: ".concat(I,"px !important; max-width: ").concat(I,"px !important");w+=` - `.concat(y,' > thead[data-pc-section="thead"] > tr > th:nth-child(').concat(E+1,`), - `).concat(y,' > tbody[data-pc-section="tbody"] > tr > td:nth-child(').concat(E+1,`), - `).concat(y,' > tfoot[data-pc-section="tfoot"] > tr > td:nth-child(').concat(E+1,`) { - `).concat(M,` - } - `)}),this.styleElement.innerHTML=w},bindColumnResizeEvents:function(){var o=this;this.documentColumnResizeListener||(this.documentColumnResizeListener=document.addEventListener("mousemove",function(){o.columnResizing&&o.onColumnResize(event)})),this.documentColumnResizeEndListener||(this.documentColumnResizeEndListener=document.addEventListener("mouseup",function(){o.columnResizing&&(o.columnResizing=!1,o.onColumnResizeEnd())}))},unbindColumnResizeEvents:function(){this.documentColumnResizeListener&&(document.removeEventListener("document",this.documentColumnResizeListener),this.documentColumnResizeListener=null),this.documentColumnResizeEndListener&&(document.removeEventListener("document",this.documentColumnResizeEndListener),this.documentColumnResizeEndListener=null)},onColumnHeaderMouseDown:function(o){var l=o.originalEvent,a=o.column;this.reorderableColumns&&this.columnProp(a,"reorderableColumn")!==!1&&(l.target.nodeName==="INPUT"||l.target.nodeName==="TEXTAREA"||dh(l.target,'[data-pc-section="columnresizer"]')?l.currentTarget.draggable=!1:l.currentTarget.draggable=!0)},onColumnHeaderDragStart:function(o){var l=o.originalEvent,a=o.column;if(this.columnResizing){l.preventDefault();return}this.colReorderIconWidth=k1n(this.$refs.reorderIndicatorUp),this.colReorderIconHeight=y1n(this.$refs.reorderIndicatorUp),this.draggedColumn=a,this.draggedColumnElement=this.findParentHeader(l.target),l.dataTransfer.setData("text","b")},onColumnHeaderDragOver:function(o){var l=o.originalEvent,a=o.column,p=this.findParentHeader(l.target);if(this.reorderableColumns&&this.draggedColumnElement&&p&&!this.columnProp(a,"frozen")){l.preventDefault();var g=CC(this.$el),w=CC(p);if(this.draggedColumnElement!==p){var y=w.left-g.left,S=w.left+p.offsetWidth/2;this.$refs.reorderIndicatorUp.style.top=w.top-g.top-(this.colReorderIconHeight-1)+"px",this.$refs.reorderIndicatorDown.style.top=w.top-g.top+p.offsetHeight+"px",l.pageX>S?(this.$refs.reorderIndicatorUp.style.left=y+p.offsetWidth-Math.ceil(this.colReorderIconWidth/2)+"px",this.$refs.reorderIndicatorDown.style.left=y+p.offsetWidth-Math.ceil(this.colReorderIconWidth/2)+"px",this.dropPosition=1):(this.$refs.reorderIndicatorUp.style.left=y-Math.ceil(this.colReorderIconWidth/2)+"px",this.$refs.reorderIndicatorDown.style.left=y-Math.ceil(this.colReorderIconWidth/2)+"px",this.dropPosition=-1),this.$refs.reorderIndicatorUp.style.display="block",this.$refs.reorderIndicatorDown.style.display="block"}}},onColumnHeaderDragLeave:function(o){var l=o.originalEvent;this.reorderableColumns&&this.draggedColumnElement&&(l.preventDefault(),this.$refs.reorderIndicatorUp.style.display="none",this.$refs.reorderIndicatorDown.style.display="none")},onColumnHeaderDrop:function(o){var l=this,a=o.originalEvent,p=o.column;if(a.preventDefault(),this.draggedColumnElement){var g=Cne(this.draggedColumnElement),w=Cne(this.findParentHeader(a.target)),y=g!==w;if(y&&(w-g===1&&this.dropPosition===-1||w-g===-1&&this.dropPosition===1)&&(y=!1),y){var S=function(Q,Z){return l.columnProp(Q,"columnKey")||l.columnProp(Z,"columnKey")?l.columnProp(Q,"columnKey")===l.columnProp(Z,"columnKey"):l.columnProp(Q,"field")===l.columnProp(Z,"field")},E=this.columns.findIndex(function(q){return S(q,l.draggedColumn)}),I=this.columns.findIndex(function(q){return S(q,p)}),M=[],_=KO(this.$el,'thead[data-pc-section="thead"] > tr > th');_.forEach(function(q){return M.push(Vh(q))});var R=M.find(function(q,Q){return Q===E}),j=M.filter(function(q,Q){return Q!==E}),K=[].concat(Qu(j.slice(0,I)),[R],Qu(j.slice(I)));this.addColumnWidthStyles(K),IE&&this.dropPosition===-1&&I--,Mkt(this.columns,E,I),this.updateReorderableColumns(),this.$emit("column-reorder",{originalEvent:a,dragIndex:E,dropIndex:I})}this.$refs.reorderIndicatorUp.style.display="none",this.$refs.reorderIndicatorDown.style.display="none",this.draggedColumnElement.draggable=!1,this.draggedColumnElement=null,this.draggedColumn=null,this.dropPosition=null}},findParentHeader:function(o){if(o.nodeName==="TH")return o;for(var l=o.parentElement;l.nodeName!=="TH"&&(l=l.parentElement,!!l););return l},findColumnByKey:function(o,l){if(o&&o.length)for(var a=0;athis.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1,a=Qu(this.processedData);Mkt(a,this.draggedRowIndex+this.d_first,l+this.d_first),this.$emit("row-reorder",{originalEvent:o,dragIndex:this.draggedRowIndex,dropIndex:l,value:a})}this.onRowDragLeave(o),this.onRowDragEnd(o),o.preventDefault()},toggleRow:function(o){var l=this,a=o.expanded,p=rRn(o,nRn),g=o.data,w;if(this.dataKey){var y=pl(g,this.dataKey);w=this.expandedRows?ab({},this.expandedRows):{},a?w[y]=!0:delete w[y]}else w=this.expandedRows?Qu(this.expandedRows):[],a?w.push(g):w=w.filter(function(S){return!l.equals(g,S)});this.$emit("update:expandedRows",w),a?this.$emit("row-expand",p):this.$emit("row-collapse",p)},toggleRowGroup:function(o){var l=o.originalEvent,a=o.data,p=pl(a,this.groupRowsBy),g=this.expandedRowGroups?Qu(this.expandedRowGroups):[];this.isRowGroupExpanded(a)?(g=g.filter(function(w){return w!==p}),this.$emit("update:expandedRowGroups",g),this.$emit("rowgroup-collapse",{originalEvent:l,data:p})):(g.push(p),this.$emit("update:expandedRowGroups",g),this.$emit("rowgroup-expand",{originalEvent:l,data:p}))},isRowGroupExpanded:function(o){if(this.expandableRowGroups&&this.expandedRowGroups){var l=pl(o,this.groupRowsBy);return this.expandedRowGroups.indexOf(l)>-1}return!1},isStateful:function(){return this.stateKey!=null},getStorage:function(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},saveState:function(){var o=this.getStorage(),l={};this.paginator&&(l.first=this.d_first,l.rows=this.d_rows),this.d_sortField&&(l.sortField=this.d_sortField,l.sortOrder=this.d_sortOrder),this.d_multiSortMeta&&(l.multiSortMeta=this.d_multiSortMeta),this.hasFilters&&(l.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(l),this.reorderableColumns&&(l.columnOrder=this.d_columnOrder),this.expandedRows&&(l.expandedRows=this.expandedRows),this.expandedRowGroups&&(l.expandedRowGroups=this.expandedRowGroups),this.selection&&(l.selection=this.selection,l.selectionKeys=this.d_selectionKeys),Object.keys(l).length&&o.setItem(this.stateKey,JSON.stringify(l)),this.$emit("state-save",l)},restoreState:function(){var o=this.getStorage(),l=o.getItem(this.stateKey),a=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,p=function(y,S){return typeof S=="string"&&a.test(S)?new Date(S):S};if(l){var g=JSON.parse(l,p);this.paginator&&(this.d_first=g.first,this.d_rows=g.rows),g.sortField&&(this.d_sortField=g.sortField,this.d_sortOrder=g.sortOrder),g.multiSortMeta&&(this.d_multiSortMeta=g.multiSortMeta),g.filters&&this.$emit("update:filters",g.filters),this.resizableColumns&&(this.columnWidthsState=g.columnWidths,this.tableWidthState=g.tableWidth),this.reorderableColumns&&(this.d_columnOrder=g.columnOrder),g.expandedRows&&this.$emit("update:expandedRows",g.expandedRows),g.expandedRowGroups&&this.$emit("update:expandedRowGroups",g.expandedRowGroups),g.selection&&(this.d_selectionKeys=g.d_selectionKeys,this.$emit("update:selection",g.selection)),this.$emit("state-restore",g)}},saveColumnWidths:function(o){var l=[],a=KO(this.$el,'thead[data-pc-section="thead"] > tr > th');a.forEach(function(p){return l.push(Vh(p))}),o.columnWidths=l.join(","),this.columnResizeMode==="expand"&&(o.tableWidth=Vh(this.$refs.table)+"px")},addColumnWidthStyles:function(o){this.createStyleElement();var l="",a='[data-pc-name="datatable"]['.concat(this.$attrSelector,'] > [data-pc-section="tablecontainer"] ').concat(this.virtualScrollerDisabled?"":'> [data-pc-name="virtualscroller"]',' > table[data-pc-section="table"]');o.forEach(function(p,g){var w="width: ".concat(p,"px !important; max-width: ").concat(p,"px !important");l+=` - `.concat(a,' > thead[data-pc-section="thead"] > tr > th:nth-child(').concat(g+1,`), - `).concat(a,' > tbody[data-pc-section="tbody"] > tr > td:nth-child(').concat(g+1,`), - `).concat(a,' > tfoot[data-pc-section="tfoot"] > tr > td:nth-child(').concat(g+1,`) { - `).concat(w,` - } - `)}),this.styleElement.innerHTML=l},restoreColumnWidths:function(){if(this.columnWidthsState){var o=this.columnWidthsState.split(",");this.columnResizeMode==="expand"&&this.tableWidthState&&(this.$refs.table.style.width=this.tableWidthState,this.$refs.table.style.minWidth=this.tableWidthState),os(o)&&this.addColumnWidthStyles(o)}},onCellEditInit:function(o){this.$emit("cell-edit-init",o)},onCellEditComplete:function(o){this.$emit("cell-edit-complete",o)},onCellEditCancel:function(o){this.$emit("cell-edit-cancel",o)},onRowEditInit:function(o){var l=this.editingRows?Qu(this.editingRows):[];l.push(o.data),this.$emit("update:editingRows",l),this.$emit("row-edit-init",o)},onRowEditSave:function(o){var l=Qu(this.editingRows);l.splice(this.findIndex(o.data,l),1),this.$emit("update:editingRows",l),this.$emit("row-edit-save",o)},onRowEditCancel:function(o){var l=Qu(this.editingRows);l.splice(this.findIndex(o.data,l),1),this.$emit("update:editingRows",l),this.$emit("row-edit-cancel",o)},onEditingMetaChange:function(o){var l=o.data,a=o.field,p=o.index,g=o.editing,w=ab({},this.d_editingMeta),y=w[p];if(g)!y&&(y=w[p]={data:ab({},l),fields:[]}),y.fields.push(a);else if(y){var S=y.fields.filter(function(E){return E!==a});S.length?y.fields=S:delete w[p]}this.d_editingMeta=w},clearEditingMetaData:function(){this.editMode&&(this.d_editingMeta={})},createLazyLoadEvent:function(o){return{originalEvent:o,first:this.d_first,rows:this.d_rows,sortField:this.d_sortField,sortOrder:this.d_sortOrder,multiSortMeta:this.d_multiSortMeta,filters:this.d_filters}},hasGlobalFilter:function(){return this.filters&&Object.prototype.hasOwnProperty.call(this.filters,"global")},onFilterChange:function(o){this.d_filters=o},onFilterApply:function(){this.d_first=0,this.$emit("update:first",this.d_first),this.$emit("update:filters",this.d_filters),this.lazy&&this.$emit("filter",this.createLazyLoadEvent())},cloneFilters:function(){var o={};return this.filters&&Object.entries(this.filters).forEach(function(l){var a=H7t(l,2),p=a[0],g=a[1];o[p]=g.operator?{operator:g.operator,constraints:g.constraints.map(function(w){return ab({},w)})}:ab({},g)}),o},updateReorderableColumns:function(){var o=this,l=[];this.columns.forEach(function(a){return l.push(o.columnProp(a,"columnKey")||o.columnProp(a,"field"))}),this.d_columnOrder=l},createStyleElement:function(){var o;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",wH(this.styleElement,"nonce",(o=this.$primevue)===null||o===void 0||(o=o.config)===null||o===void 0||(o=o.csp)===null||o===void 0?void 0:o.nonce),document.head.appendChild(this.styleElement)},destroyStyleElement:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},dataToRender:function(o){var l=o||this.processedData;if(l&&this.paginator){var a=this.lazy?0:this.d_first;return l.slice(a,a+this.d_rows)}return l},getVirtualScrollerRef:function(){return this.$refs.virtualScroller},hasSpacerStyle:function(o){return os(o)}},computed:{columns:function(){var o=this.d_columns.get(this);if(this.reorderableColumns&&this.d_columnOrder){var l=[],a=wF(this.d_columnOrder),p;try{for(a.s();!(p=a.n()).done;){var g=p.value,w=this.findColumnByKey(o,g);w&&!this.columnProp(w,"hidden")&&l.push(w)}}catch(y){a.e(y)}finally{a.f()}return[].concat(l,Qu(o.filter(function(y){return l.indexOf(y)<0})))}return o},columnGroups:function(){return this.d_columnGroups.get(this)},headerColumnGroup:function(){var o,l=this;return(o=this.columnGroups)===null||o===void 0?void 0:o.find(function(a){return l.columnProp(a,"type")==="header"})},footerColumnGroup:function(){var o,l=this;return(o=this.columnGroups)===null||o===void 0?void 0:o.find(function(a){return l.columnProp(a,"type")==="footer"})},hasFilters:function(){return this.filters&&Object.keys(this.filters).length>0&&this.filters.constructor===Object},processedData:function(){var o,l=this.value||[];return!this.lazy&&!((o=this.virtualScrollerOptions)!==null&&o!==void 0&&o.lazy)&&l&&l.length&&(this.hasFilters&&(l=this.filter(l)),this.sorted&&(this.sortMode==="single"?l=this.sortSingle(l):this.sortMode==="multiple"&&(l=this.sortMultiple(l)))),l},totalRecordsLength:function(){if(this.lazy)return this.totalRecords;var o=this.processedData;return o?o.length:0},empty:function(){var o=this.processedData;return!o||o.length===0},paginatorTop:function(){return this.paginator&&(this.paginatorPosition!=="bottom"||this.paginatorPosition==="both")},paginatorBottom:function(){return this.paginator&&(this.paginatorPosition!=="top"||this.paginatorPosition==="both")},sorted:function(){return this.d_sortField||this.d_multiSortMeta&&this.d_multiSortMeta.length>0},allRowsSelected:function(){var o=this;if(this.selectAll!==null)return this.selectAll;var l=this.frozenValue?[].concat(Qu(this.frozenValue),Qu(this.processedData)):this.processedData;return os(l)&&this.selection&&Array.isArray(this.selection)&&l.every(function(a){return o.selection.some(function(p){return o.equals(p,a)})})},groupRowSortField:function(){return this.sortMode==="single"?this.sortField:this.d_groupRowsSortMeta?this.d_groupRowsSortMeta.field:null},headerFilterButtonProps:function(){return ab(ab({filter:{severity:"secondary",text:!0,rounded:!0}},this.filterButtonProps),{},{inline:ab({clear:{severity:"secondary",text:!0,rounded:!0}},this.filterButtonProps.inline),popover:ab({addRule:{severity:"info",text:!0,size:"small"},removeRule:{severity:"danger",text:!0,size:"small"},apply:{size:"small"},clear:{outlined:!0,size:"small"}},this.filterButtonProps.popover)})},rowEditButtonProps:function(){return ab(ab({},{init:{severity:"secondary",text:!0,rounded:!0},save:{severity:"secondary",text:!0,rounded:!0},cancel:{severity:"secondary",text:!0,rounded:!0}}),this.editButtonProps)},virtualScrollerDisabled:function(){return um(this.virtualScrollerOptions)||!this.scrollable}},components:{DTPaginator:XPt,DTTableHeader:dMt,DTTableBody:cMt,DTTableFooter:aMt,DTVirtualScroller:l9e,ArrowDownIcon:_Pt,ArrowUpIcon:RPt,SpinnerIcon:mH}};function fH(r){"@babel/helpers - typeof";return fH=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},fH(r)}function K7t(r,o){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(r,p).enumerable})),l.push.apply(l,a)}return l}function U7t(r){for(var o=1;o{const S=[];return l.dataset.forEach(E=>{S.push({subject:h_(E.subject),subjectTerm:E.subject,predicate:h_(E.predicate),predicateTerm:E.predicate,object:h_(E.object),objectTerm:E.object,context:E.graph.value})}),S}),g=ho(()=>p.value.some(S=>S.context!=="")),w=Co({global:{value:null,matchMode:Ta.CONTAINS},subject:{value:null,matchMode:Ta.CONTAINS},predicate:{value:null,matchMode:Ta.CONTAINS},object:{value:null,matchMode:Ta.CONTAINS},context:{value:null,matchMode:Ta.CONTAINS}});function y(S){a("selected",S)}return(S,E)=>(ve(),Cn(Lr(hMt),{filters:w.value,"onUpdate:filters":E[0]||(E[0]=I=>w.value=I),filterDisplay:"row",value:p.value,scrollable:"",scrollHeight:"flex",tableStyle:"min-width: 50rem;"},{default:ui(()=>[ai(Lr(bne),{field:"subject",header:"Subject",style:{width:"20%"}},{filter:ui(({filterModel:I,filterCallback:M})=>[ai(Lr(mE),{modelValue:I.value,"onUpdate:modelValue":_=>I.value=_,type:"text",onInput:_=>M(),placeholder:"Search Subject"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),body:ui(({data:I})=>[ar("span",{onClick:M=>y(I.subjectTerm),class:"node-link"},Il(I.subject),9,yRn)]),_:1}),ai(Lr(bne),{field:"predicate",header:"Predicate",style:{width:"20%"}},{filter:ui(({filterModel:I,filterCallback:M})=>[ai(Lr(mE),{modelValue:I.value,"onUpdate:modelValue":_=>I.value=_,type:"text",onInput:_=>M(),placeholder:"Search Predicate"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),body:ui(({data:I})=>[ar("span",{onClick:M=>y(I.subjectTerm),class:"node-link"},Il(I.predicate),9,kRn)]),_:1}),ai(Lr(bne),{field:"object",header:"Object",style:{width:"20%"}},{filter:ui(({filterModel:I,filterCallback:M})=>[ai(Lr(mE),{modelValue:I.value,"onUpdate:modelValue":_=>I.value=_,type:"text",onInput:_=>M(),placeholder:"Search Object"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),body:ui(({data:I})=>[I.predicateTerm.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"||I.objectTerm.termType==="Literal"?(ve(),wt("span",CRn,Il(I.object),1)):(ve(),wt("span",{key:1,onClick:M=>y(I.objectTerm),class:"node-link"},Il(I.object),9,SRn))]),_:1}),g.value?(ve(),Cn(Lr(bne),{key:0,field:"context",header:"Context",style:{width:"20%"}},{filter:ui(({filterModel:I,filterCallback:M})=>[ai(Lr(mE),{modelValue:I.value,"onUpdate:modelValue":_=>I.value=_,type:"text",onInput:_=>M(),placeholder:"Search Context aka Named Graph"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:1})):rr("",!0)]),_:1},8,["filters","value"]))}}),ERn=$H(xRn,[["__scopeId","data-v-accad2da"]]);var TRn=function(o){var l=o.dt;return` -.p-popover { - margin-block-start: `.concat(l("popover.gutter"),`; - background: `).concat(l("popover.background"),`; - color: `).concat(l("popover.color"),`; - border: 1px solid `).concat(l("popover.border.color"),`; - border-radius: `).concat(l("popover.border.radius"),`; - box-shadow: `).concat(l("popover.shadow"),`; -} - -.p-popover-content { - padding: `).concat(l("popover.content.padding"),`; -} - -.p-popover-flipped { - margin-block-start: calc(`).concat(l("popover.gutter"),` * -1); - margin-block-end: `).concat(l("popover.gutter"),`; -} - -.p-popover-enter-from { - opacity: 0; - transform: scaleY(0.8); -} - -.p-popover-leave-to { - opacity: 0; -} - -.p-popover-enter-active { - transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1); -} - -.p-popover-leave-active { - transition: opacity 0.1s linear; -} - -.p-popover:after, -.p-popover:before { - bottom: 100%; - left: calc(`).concat(l("popover.arrow.offset")," + ").concat(l("popover.arrow.left"),`); - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; -} - -.p-popover:after { - border-width: calc(`).concat(l("popover.gutter"),` - 2px); - margin-left: calc(-1 * (`).concat(l("popover.gutter"),` - 2px)); - border-style: solid; - border-color: transparent; - border-bottom-color: `).concat(l("popover.background"),`; -} - -.p-popover:before { - border-width: `).concat(l("popover.gutter"),`; - margin-left: calc(-1 * `).concat(l("popover.gutter"),`); - border-style: solid; - border-color: transparent; - border-bottom-color: `).concat(l("popover.border.color"),`; -} - -.p-popover-flipped:after, -.p-popover-flipped:before { - bottom: auto; - top: 100%; -} - -.p-popover.p-popover-flipped:after { - border-bottom-color: transparent; - border-top-color: `).concat(l("popover.background"),`; -} - -.p-popover.p-popover-flipped:before { - border-bottom-color: transparent; - border-top-color: `).concat(l("popover.border.color"),`; -} -`)},IRn={root:"p-popover p-component",content:"p-popover-content"},PRn=vs.extend({name:"popover",theme:TRn,classes:IRn}),MRn={name:"BasePopover",extends:vl,props:{dismissable:{type:Boolean,default:!0},appendTo:{type:[String,Object],default:"body"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},breakpoints:{type:Object,default:null},closeOnEscape:{type:Boolean,default:!0}},style:PRn,provide:function(){return{$pcPopover:this,$parentInstance:this}}},pMt={name:"Popover",extends:MRn,inheritAttrs:!1,emits:["show","hide"],data:function(){return{visible:!1}},watch:{dismissable:{immediate:!0,handler:function(o){o?this.bindOutsideClickListener():this.unbindOutsideClickListener()}}},selfClick:!1,target:null,eventTarget:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,styleElement:null,overlayEventListener:null,documentKeydownListener:null,beforeUnmount:function(){this.dismissable&&this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.destroyStyle(),this.unbindResizeListener(),this.target=null,this.container&&this.autoZIndex&&sm.clear(this.container),this.overlayEventListener&&(nm.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.container=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{toggle:function(o,l){this.visible?this.hide():this.show(o,l)},show:function(o,l){this.visible=!0,this.eventTarget=o.currentTarget,this.target=l||o.currentTarget},hide:function(){this.visible=!1},onContentClick:function(){this.selfClick=!0},onEnter:function(o){var l=this;k_(o,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.dismissable&&this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&sm.set("overlay",o,this.baseZIndex+this.$primevue.config.zIndex.overlay),this.overlayEventListener=function(a){l.container.contains(a.target)&&(l.selfClick=!0)},this.focus(),nm.on("overlay-click",this.overlayEventListener),this.$emit("show"),this.closeOnEscape&&this.bindDocumentKeyDownListener()},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.unbindDocumentKeyDownListener(),nm.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null,this.$emit("hide")},onAfterLeave:function(o){this.autoZIndex&&sm.clear(o)},alignOverlay:function(){QSe(this.container,this.target,!1);var o=CC(this.container),l=CC(this.target),a=0;o.left2e3&&w(p.value),l.value.toggle(S))}async function w(S){const E=new URLSearchParams({url:S}),I=await fetch("https://s.zazuko.com/api/v1/shorten/",{method:"POST",body:E}),M=await I;M.status<200||M.status>=300?console.error("shortener error",M.status):p.value=await I.text()}function y(S){navigator.clipboard.writeText(S).then(()=>{l.value&&l.value.hide()}).catch(E=>{console.error("copy failed",E),l.value&&l.value.hide()})}return(S,E)=>(ve(),wt("div",RRn,[ai(Lr(em),{icon:"pi pi-share-alt",onClick:g,severity:"secondary",text:""}),ai(Lr(pMt),{ref_key:"popoverElement",ref:l},{default:ui(()=>[ar("div",ARn,[ar("div",LRn,[ar("div",$Rn,[ar("div",jRn,Il(p.value),1),p.value.startsWith("https://s.zazuko.com/")?rr("",!0):(ve(),wt("div",DRn,"..."))]),ai(Lr(em),{icon:"pi pi-clipboard",onClick:E[0]||(E[0]=I=>y(p.value)),variant:"text",rounded:"","aria-label":"Copy to Clipboard"})]),ai(Lr(em),{disabled:p.value.startsWith("https://s.zazuko.com/"),type:"button",severity:"secondary",onClick:E[1]||(E[1]=I=>w(p.value)),label:"Shorten"},null,8,["disabled"])])]),_:1},512)]))}}),BRn=$H(NRn,[["__scopeId","data-v-28872e37"]]),FRn=bc({__name:"App",setup(r){const{fitView:o,nodeLookup:l}=_u(),a=Co(N6.find(Q=>Q.type===$ie.Turtle)??N6[0]),p=Co(N6),g=Co(""),w=ho(()=>a.value.type),y=Co(uSe.dataset()),S=Co(!1),E=Co(!0),I=Co(!1);function M(Q){const Z=uSe.dataset(Q.quads);xIt.update(Q.prefix),g.value=Q.rdfText,y.value=Z}function _(){S.value=!0}function R(){S.value=!1}function j(){E.value=!E.value}function K(Q){const Z=N6.find(X=>X.type===Q)??N6[0];a.value=Z}function q(Q){if(!(Q.termType==="NamedNode"||Q.termType==="BlankNode"))return;const Z=l.value.get(Q.value);Z&&o({nodes:[Z.id],duration:1e3,padding:.3})}return(Q,Z)=>(ve(),wt(si,null,[ai(Lr(S9t),null,{start:ui(()=>[S.value?rr("",!0):(ve(),Cn(Lr(em),{key:0,icon:"pi pi-file-edit",class:"mr-2",severity:"secondary",onClick:_,text:""})),S.value?(ve(),Cn(Lr(em),{key:1,icon:"pi pi-file-edit",class:"mr-2",severity:"secondary",onClick:R,text:""})):rr("",!0),ai(Lr(kH),{modelValue:a.value,"onUpdate:modelValue":Z[0]||(Z[0]=X=>a.value=X),options:p.value,optionLabel:"name",placeholder:"Select RDF Serialization",checkmark:"",highlightOnSelect:!1},null,8,["modelValue","options"])]),center:ui(()=>Z[3]||(Z[3]=[ar("span",null,"Sketch",-1)])),end:ui(()=>[ai(Lr(em),{icon:"pi pi-search",class:"mr-2",severity:"secondary",onClick:j,text:""}),ai(BRn,{format:w.value,"rdf-text":g.value},null,8,["format","rdf-text"]),ai(Lr(em),{icon:"pi pi-lightbulb",class:"mr-2",severity:"secondary",onClick:Z[1]||(Z[1]=X=>I.value=!I.value),text:""}),ai(Lr(em),{as:"a",icon:"pi pi-github",class:"mr-2",severity:"secondary",href:"https://github.com/zazuko/rdf-sketch",target:"_blank",text:""})]),_:1}),ai(Lr(E9t),{style:{height:"calc(100vh - (67.5px + ( 2 * 8px) + 8px) )","margin-top":"8px"},class:"mb-8"},{default:ui(()=>[ai(Lr(Sne),{style:A1({display:S.value?"none":"flex"}),class:"flex items-center justify-center"},{default:ui(()=>[ai(F7n,{format:w.value,onChange:M,onFormatChange:K},null,8,["format"])]),_:1},8,["style"]),ai(Lr(Sne),{class:"flex items-center justify-center"},{default:ui(()=>[ai(IMn,{dataset:y.value},null,8,["dataset"])]),_:1}),E.value?rr("",!0):(ve(),Cn(Lr(Sne),{key:0},{default:ui(()=>[ai(ERn,{dataset:y.value,onSelected:q},null,8,["dataset"])]),_:1}))]),_:1}),ai(Lr(L9t),{visible:I.value,"onUpdate:visible":Z[2]||(Z[2]=X=>I.value=X),modal:"",header:"Zazuko RDF Sketch",style:{width:"60rem"}},{default:ui(()=>Z[4]||(Z[4]=[ar("div",{style:{display:"flex","flex-direction":"row",gap:"24px"}},[ar("img",{src:Ngn,alt:"Zazuko Logo",style:{width:"100px"}}),ar("div",{style:{opacity:"0.8"}},[hb(" Sketch is a simple yet powerful tool for visualizing RDF graphs. It allows you to: "),ar("ul",{style:{"padding-left":"20px"}},[ar("li",null," Traverse and Explore: Seamlessly navigate through your RDF graphs. "),ar("li",null," Search with Ease:Quickly locate nodes and connections. "),ar("li",null," Interact Intuitively: Click edges and Objects (SPO) to navigate. ")]),hb(" You can find more tools and resources at "),ar("a",{href:"https://zazuko.com",target:"_blank"},"Zazuko.com"),hb(". ")])],-1)])),_:1},8,["visible"])],64))}});function zRn(r){return $re()?(_F(r),!0):!1}function gMt(r){return typeof r=="function"?r():Lr(r)}const HRn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const KRn=Object.prototype.toString,URn=r=>KRn.call(r)==="[object Object]",GRn=()=>{};function WRn(r,o){function l(...a){return new Promise((p,g)=>{Promise.resolve(r(()=>o.apply(this,a),{fn:o,thisArg:this,args:a})).then(p).catch(g)})}return l}const bMt=r=>r();function VRn(r=bMt){const o=Co(!0);function l(){o.value=!1}function a(){o.value=!0}const p=(...g)=>{o.value&&r(...g)};return{isActive:hH(o),pause:l,resume:a,eventFilter:p}}function qRn(r,o,l={}){const{eventFilter:a=bMt,...p}=l;return Os(r,WRn(a,o),p)}function XRn(r,o,l={}){const{eventFilter:a,...p}=l,{eventFilter:g,pause:w,resume:y,isActive:S}=VRn(a);return{stop:qRn(r,o,{...p,eventFilter:g}),pause:w,resume:y,isActive:S}}function YRn(r){var o;const l=gMt(r);return(o=l==null?void 0:l.$el)!=null?o:l}const wMt=HRn?window:void 0;function G7t(...r){let o,l,a,p;if(typeof r[0]=="string"||Array.isArray(r[0])?([l,a,p]=r,o=wMt):[o,l,a,p]=r,!o)return GRn;Array.isArray(l)||(l=[l]),Array.isArray(a)||(a=[a]);const g=[],w=()=>{g.forEach(I=>I()),g.length=0},y=(I,M,_,R)=>(I.addEventListener(M,_,R),()=>I.removeEventListener(M,_,R)),S=Os(()=>[YRn(o),gMt(p)],([I,M])=>{if(w(),!I)return;const _=URn(M)?{...M}:M;g.push(...l.flatMap(R=>a.map(j=>y(I,R,j,_))))},{immediate:!0,flush:"post"}),E=()=>{S(),w()};return zRn(E),E}function JRn(r="history",o={}){const{initialValue:l={},removeNullishValues:a=!0,removeFalsyValues:p=!1,write:g=!0,window:w=wMt}=o;if(!w)return $E(l);const y=$E({});function S(){if(r==="history")return w.location.search||"";if(r==="hash"){const Q=w.location.hash||"",Z=Q.indexOf("?");return Z>0?Q.slice(Z):""}else return(w.location.hash||"").replace(/^#/,"")}function E(Q){const Z=Q.toString();if(r==="history")return`${Z?`?${Z}`:""}${w.location.hash||""}`;if(r==="hash-params")return`${w.location.search||""}${Z?`#${Z}`:""}`;const X=w.location.hash||"#",ie=X.indexOf("?");return ie>0?`${X.slice(0,ie)}${Z?`?${Z}`:""}`:`${X}${Z?`?${Z}`:""}`}function I(){return new URLSearchParams(S())}function M(Q){const Z=new Set(Object.keys(y));for(const X of Q.keys()){const ie=Q.getAll(X);y[X]=ie.length>1?ie:Q.get(X)||"",Z.delete(X)}Array.from(Z).forEach(X=>delete y[X])}const{pause:_,resume:R}=XRn(y,()=>{const Q=new URLSearchParams("");Object.keys(y).forEach(Z=>{const X=y[Z];Array.isArray(X)?X.forEach(ie=>Q.append(Z,ie)):a&&X==null||p&&!X?Q.delete(Z):Q.set(Z,X)}),j(Q)},{deep:!0});function j(Q,Z){_(),Z&&M(Q),w.history.replaceState(w.history.state,w.document.title,w.location.pathname+E(Q)),R()}function K(){g&&j(I(),!0)}G7t(w,"popstate",K,!1),r!=="history"&&G7t(w,"hashchange",K,!1);const q=I();return q.keys().next().value?M(q):Object.assign(y,l),y}const aE=JRn("hash-params"),mMt=Khn(FRn);mMt.use(Q1n,{theme:{preset:Dgn},options:{darkModeSelector:".my-app-dark",cssLayer:!1}});QRn();mMt.mount("#app");function QRn(){if(aE.rdf){const r=(Array.isArray(aE.rdf)?aE.rdf[0]:aE.rdf)??"",o=((Array.isArray(aE.format)?aE.format[0]:aE.format)??$ie.Turtle).replace(" ","+");r.length>0&&N6.find(l=>l.type===o)&&(localStorage.setItem($ne,r),localStorage.setItem(jne,o))}}export{q7n as I,X7n as M,Q7n as N,Y7n as P,sSn as U,xz as a,dm as b,_wn as c,GC as d,F_ as e,s3n as f,_3 as g,die as h,O5n as m,Uc as p,I9e as r,ire as s,w3 as t}; diff --git a/assets/main-Rstpr1kO.js b/assets/main-CPJAraVa.js similarity index 96% rename from assets/main-Rstpr1kO.js rename to assets/main-CPJAraVa.js index 981f624..6bc7aa5 100644 --- a/assets/main-Rstpr1kO.js +++ b/assets/main-CPJAraVa.js @@ -1,4 +1,4 @@ -import{m as o}from"./main-CO-45Vwa.js";import{m as f}from"./main-BEQE4T9J.js";if(typeof queueMicrotask!="function"){let a=Promise.resolve();try{queueMicrotask=e=>a.then(e).catch(r=>setTimeout(()=>{throw r},0))}catch{}}const h=o,_=f,p=32768;class n extends _.Transform{static _flush_buffer(e){e._s_push&&(e.push(e._s_push),e._s_push="")}constructor(e={}){super({writableObjectMode:!0,readableObjectMode:!1});let{prefixes:r={}}=e;this._s_push="",this._n_max_buffer=e.max_buffer||e.maxBuffer||p,this._h_prefixes=h.cache_prefixes(r||{}),this.on("pipe",t=>{t.on("prefix",(i,s)=>{this.write({type:"prefixes",value:{[i]:s}})}),t.on("comment",i=>{this.write({type:"comment",value:i})})}),e.close&&this.once("close",e.close),e.drain&&this.on("drain",e.drain),e.error&&this.on("error",e.error),e.finish&&this.once("finish",e.finish),e.data&&this.on("data",e.data),e.end&&this.once("end",e.end),e.warning&&this.on("warning",e.warning)}_serialize_hash_comment(e){return"# "+e.replace(/\n/g,` +import{m as o}from"./main-DsJMMZjG.js";import{m as f}from"./main-y9VuuvvT.js";if(typeof queueMicrotask!="function"){let a=Promise.resolve();try{queueMicrotask=e=>a.then(e).catch(r=>setTimeout(()=>{throw r},0))}catch{}}const h=o,_=f,p=32768;class n extends _.Transform{static _flush_buffer(e){e._s_push&&(e.push(e._s_push),e._s_push="")}constructor(e={}){super({writableObjectMode:!0,readableObjectMode:!1});let{prefixes:r={}}=e;this._s_push="",this._n_max_buffer=e.max_buffer||e.maxBuffer||p,this._h_prefixes=h.cache_prefixes(r||{}),this.on("pipe",t=>{t.on("prefix",(i,s)=>{this.write({type:"prefixes",value:{[i]:s}})}),t.on("comment",i=>{this.write({type:"comment",value:i})})}),e.close&&this.once("close",e.close),e.drain&&this.on("drain",e.drain),e.error&&this.on("error",e.error),e.finish&&this.once("finish",e.finish),e.data&&this.on("data",e.data),e.end&&this.once("end",e.end),e.warning&&this.on("warning",e.warning)}_serialize_hash_comment(e){return"# "+e.replace(/\n/g,` # `)+` `}_serialize_newlines(e=1){return` `.repeat(e)}_serialize_c4r(e){let r=this._h_prefixes,t=[],i="";for(let s in e)s!=="*"&&t.push(s),i+=this._serialize_c3r(e[s]);if(t.length){let s=`Destination format does not support quads; an implicit union into the default graph was performed on the quads contained in graphs: ${t.map(u=>h.c1(u,r).verbose()).join(", ")}`;this.emit("warning",s)||console.warn(s)}return i}_serialize_c3(){throw new Error(`Write event type 'c3' not supported by ${this.constructor.name}`)}_serialize_c4(){throw new Error(`Write event type 'c4' not supported by ${this.constructor.name}`)}_serialize_c3r(){throw new Error(`Write event type 'c3r' should have been implemented by subclass ${this.constructor.name}`)}_serialize_quad(){throw new Error(`Write event type 'quad' should have been implemented by subclass ${this.constructor.name}`)}_serialize_comment(){}_update_prefixes(e,r=!1){let t={...this._h_prefixes,...e};this._h_prefixes=h.cachePrefixes(t||{},r)}_transform(e,r,t){let i;try{i=this.serialize(e)}catch(s){return t(s),s}if(i)n._flush_buffer(this),this.push(i);else{let s=this._s_push.length;s>this._n_max_buffer?n._flush_buffer(this):s&&queueMicrotask(()=>n._flush_buffer(this))}t()}_queue(e){this._s_push+=e,this._s_push.length>this._n_max_buffer?n._flush_buffer(this):queueMicrotask(()=>n._flush_buffer(this))}serialize(e){switch(e.type){case void 0:return this._serialize_quad(e);case"c3r":return this._serialize_c3r(e.value);case"c4r":return this._serialize_c4r(e.value);case"array":{let r="";for(let t of e.value){let i=this.serialize(t);i?r+=i:this._s_push&&(r+=this._s_push,this._s_push="")}return r}case"quad":return this._serialize_quad(e.value);case"c3":return this._serialize_c3(e.value);case"c4":return this._serialize_c4(e.value);case"prefixes":return this._serialize_prefixes(e.value);case"comment":return this._serialize_comment(e.value);case"newline":case"newlines":return this._serialize_newlines(e.value);default:throw new Error(`no such writable data event type for RDF stream: '${e.type}'`)}}rinse(){this._reset(),n._flush_buffer(this)}_flush(){n._flush_buffer(this),this.push(null)}}Object.assign(n.prototype,{isGraphyWritable:!0,_serialize_prefixes:n.prototype._update_prefixes});var c=n;export{c as m}; diff --git a/assets/main-DQofh_ad.js b/assets/main-CntB7osZ.js similarity index 94% rename from assets/main-DQofh_ad.js rename to assets/main-CntB7osZ.js index bdd0bfc..2bf6ca3 100644 --- a/assets/main-DQofh_ad.js +++ b/assets/main-CntB7osZ.js @@ -1,3 +1,3 @@ -import{m as p}from"./main-CO-45Vwa.js";import{m as w}from"./main-Rstpr1kO.js";const _=p,d=w,u=/^`\[[^\]]+\](.*)$/,m=new Map([[Date,a=>_.dateTime(a)],[Number,a=>_.number(a)]]);class g extends d{constructor(e={}){super(e);let{lists:t=null}=e,s=m;if(e.coercions){s=new Map(s);for(let[r,n]of e.coercions)s.set(r,n)}let i={first:">http://www.w3.org/1999/02/22-rdf-syntax-ns#first",rest:">http://www.w3.org/1999/02/22-rdf-syntax-ns#rest",nil:">http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"};if(t){let{first:r=null,rest:n=null,nil:l=null}=t;r&&(i.first=r),n&&(i.rest=n),l&&(i.nil=l)}Object.assign(this,{_xc_state:0,_hm_coercions:s,_g_lists:i})}_serialize_comment(e,t){let s="";if(this._xc_state!==2&&(s+=` +import{m as p}from"./main-DsJMMZjG.js";import{m as w}from"./main-CPJAraVa.js";const _=p,d=w,u=/^`\[[^\]]+\](.*)$/,m=new Map([[Date,a=>_.dateTime(a)],[Number,a=>_.number(a)]]);class g extends d{constructor(e={}){super(e);let{lists:t=null}=e,s=m;if(e.coercions){s=new Map(s);for(let[r,n]of e.coercions)s.set(r,n)}let i={first:">http://www.w3.org/1999/02/22-rdf-syntax-ns#first",rest:">http://www.w3.org/1999/02/22-rdf-syntax-ns#rest",nil:">http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"};if(t){let{first:r=null,rest:n=null,nil:l=null}=t;r&&(i.first=r),n&&(i.rest=n),l&&(i.nil=l)}Object.assign(this,{_xc_state:0,_hm_coercions:s,_g_lists:i})}_serialize_comment(e,t){let s="";if(this._xc_state!==2&&(s+=` `,this._xc_state=2),t&&t.width){let i=t.width,r=[];for(;e.length>i;){let n=e.slice(0,i+1),l=/^(.*[^\s])\s+/.exec(n);if(l){let o=l[1];r.push(o),e=e.slice(o.length).replace(/^\s+/,"")}else r.push(e.slice(0,i)),e=e.slice(i)}e=r.join(` `)}return s+(super._serialize_comment(e)||"")}_transcode_list(e,t=this._g_lists){if(e.length){let s=e[0],i=s;return Array.isArray(s)&&(i=this._transcode_list(s,t)),{[t.first]:i,[t.rest]:e.length===1?t.nil:this._transcode_list(e.slice(1),t)}}else return t.nil}_apply_directive(e,t){let s=u.exec(e);if(!s)throw new Error(`Invalid writable data event directive string: "${e}"`);let i;try{i=JSON.parse(s[1])}catch{throw new Error(`Unable to parse JSON in writable data event directive: "${s[1]}"`)}let r=i.type;switch(r){case"comment":{if(this._serialize_comment)return{write:this._serialize_comment(t+"",i)};break}case"newlines":{if(this._serialize_newlines)return{write:this._serialize_newlines(t)};break}case"config":switch(i.value){case"lists":{let n=this._a_list_serializers;n.push(this._serialize_list_object);let l=this._g_lists,o={first:t.first||l.first,rest:t.rest||l.rest,nil:t.nil||l.nil};return this._serialize_list_object=function(c,h){let f=this._transcode_list(c,o);return this._encode_objects(f,h)},{exit:()=>{this._serialize_list_object=n.pop()}}}default:throw new Error(`No such config key '${i.value}'`)}default:throw new Error(`Invalid writable data event directive type: '${r}'`)}return{}}_serialize_c4(e){let t=this._h_prefixes,s=[],i="";for(let r in e)r!=="*"&&s.push(r),i+=this._serialize_c3(e[r]);if(s.length){let r=`Destination format does not support quads; an implicit union into the default graph was performed on the quads contained in graphs: ${s.map(n=>_.c1(n,t).verbose()).join(", ")}`;this.emit("warning",r)||console.warn(r)}return i}}var z=g;export{z as m}; diff --git a/assets/main-DvYAR6pV.js b/assets/main-Crg7QqIq.js similarity index 97% rename from assets/main-DvYAR6pV.js rename to assets/main-Crg7QqIq.js index d45b594..2e42640 100644 --- a/assets/main-DvYAR6pV.js +++ b/assets/main-Crg7QqIq.js @@ -1,4 +1,4 @@ -import{g,m as z}from"./main-CO-45Vwa.js";import{m as $}from"./main-Rstpr1kO.js";function C(a,s){for(var i=0;ie[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}const b=z,D=$,{c1:c,namedNode:j,$_PREFIX_CACHE:m}=b,v=/[&"<>']/g,M={"&":"&","<":"<",">":">",'"':""","'":"'"},k=/^xml/i,f=a=>a.replace(v,s=>M[s]),L=/([A-Za-z_][A-Za-z_.0-9-]*)$/,X=/([A-Za-z_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}][A-Za-z_.0-9\-\u00b7\u203f-\u2040\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*$)/u;function x(a,s,i,e){if(e.isNamedNode)i+=' rdf:resource="'+f(e.value)+'"/>';else if(e.isLiteral)e.isLanguaged?i+=' xml:lang="'+e.language+'"':e.isDatatyped&&(i+=' rdf:datatype="'+f(e.datatype.value)+'"'),i+=">"+f(e.value)+"";else if(e.isBlankNode)i+=' rdf:nodeID="'+f(e.value)+'"/>';else throw new Error(`Not allowed to serialize term type '${e.termType}' as object in XML serializer.`);return i}function F(a,s){let i=a._h_prefixes,e=s.value,r,t;{let u=L.exec(e);if(u)r=e.slice(0,u.index),t=u[1];else if(u=X.exec(e),u)r=e.slice(0,u.index),t=u[1];else throw new Error(`Cannot serialize predicate <${e}> into an XML qname`)}let n,l;e:for(;;){t:for(;;)if(i[m]){let o=i[m]._h_inverse;if(r in o){let _=o[r];n=(_?_+":":"")+t,l="<"+n;break e}else break}else{for(let o in i)if(i[o]===r){n=(o?o+":":"")+t,l="<"+n;break t}break}let u="__g"+a._c_prefixes_tmp++;n=u+":"+t,l="<"+n+" xmlns:"+u+'="'+r+'"';break}return[n,l]}class p extends D{constructor(s={}){let i=s.prefixes;delete s.prefixes,super(s),this._b_prefixes_open=!0,this._c_prefixes_tmp=0,this._kt_subject=null;let e=` +import{g,m as z}from"./main-DsJMMZjG.js";import{m as $}from"./main-CPJAraVa.js";function C(a,s){for(var i=0;ie[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}const b=z,D=$,{c1:c,namedNode:j,$_PREFIX_CACHE:m}=b,v=/[&"<>']/g,M={"&":"&","<":"<",">":">",'"':""","'":"'"},k=/^xml/i,f=a=>a.replace(v,s=>M[s]),L=/([A-Za-z_][A-Za-z_.0-9-]*)$/,X=/([A-Za-z_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}][A-Za-z_.0-9\-\u00b7\u203f-\u2040\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*$)/u;function x(a,s,i,e){if(e.isNamedNode)i+=' rdf:resource="'+f(e.value)+'"/>';else if(e.isLiteral)e.isLanguaged?i+=' xml:lang="'+e.language+'"':e.isDatatyped&&(i+=' rdf:datatype="'+f(e.datatype.value)+'"'),i+=">"+f(e.value)+"";else if(e.isBlankNode)i+=' rdf:nodeID="'+f(e.value)+'"/>';else throw new Error(`Not allowed to serialize term type '${e.termType}' as object in XML serializer.`);return i}function F(a,s){let i=a._h_prefixes,e=s.value,r,t;{let u=L.exec(e);if(u)r=e.slice(0,u.index),t=u[1];else if(u=X.exec(e),u)r=e.slice(0,u.index),t=u[1];else throw new Error(`Cannot serialize predicate <${e}> into an XML qname`)}let n,l;e:for(;;){t:for(;;)if(i[m]){let o=i[m]._h_inverse;if(r in o){let _=o[r];n=(_?_+":":"")+t,l="<"+n;break e}else break}else{for(let o in i)if(i[o]===r){n=(o?o+":":"")+t,l="<"+n;break t}break}let u="__g"+a._c_prefixes_tmp++;n=u+":"+t,l="<"+n+" xmlns:"+u+'="'+r+'"';break}return[n,l]}class p extends D{constructor(s={}){let i=s.prefixes;delete s.prefixes,super(s),this._b_prefixes_open=!0,this._c_prefixes_tmp=0,this._kt_subject=null;let e=` to <${s[t]}>`)}if(k.test(t))throw new Error(`Cannot serialize prefix '${t}' since it is reserved under the blanket XML namespace.`);r+=` xmlns${t?":"+t:""}="${j(s[t]).value}"`}return r&&this._update_prefixes(s,!0),r}_serialize_c3r(s){let i="";this._b_prefixes_open&&(i+=">",this._b_prefixes_open=!1);let e=this._h_prefixes;this._kt_subject!==null&&(i+=` diff --git a/assets/main-V12eunPc.js b/assets/main-Dhp4ePPX.js similarity index 99% rename from assets/main-V12eunPc.js rename to assets/main-Dhp4ePPX.js index db21151..e8228c2 100644 --- a/assets/main-V12eunPc.js +++ b/assets/main-Dhp4ePPX.js @@ -1,4 +1,4 @@ -import{g as P,m as U}from"./main-CO-45Vwa.js";import{m as z}from"./main-BEQE4T9J.js";function M(o,e){for(var t=0;ts[a]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let o=Promise.resolve();try{queueMicrotask=e=>o.then(e).catch(t=>setTimeout(()=>{throw t},0))}catch{}}const w=z,C=U,G=/^[a-z][a-z0-9+\-.]*:(?:[^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,H=/^[a-z][a-z0-9+\-.]*:[^\0-\x20<>"{}|^`]*$/,B=/^([^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,V=/^([^\0-\x20<>"{}|^`])*$/,b=/\\u([0-9A-Fa-f]{4})|\\U([0-9A-Fa-f]{8})/g,g=(o,e,t)=>String.fromCodePoint(parseInt(e||t,16)),W=/\s*(?:#[^\n]*\n\s*)*\s*/y,Z=/\s*(#[^\n]*\n\s*)*\s*/y,k=/[\\]/,j=/[^\n]+\n/y,Q=/^(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_0-9])(?:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.])*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?$/u,J=/^[a-z]+(-[a-z0-9]+)*$/,S=/[ \t]*/y,T=/@([A-Za-z]+(?:-[A-Za-z0-9-]+)*)(?:\s+|(?=[.,;\])#]))/y,I=/<([^>]*)>\s*/y,$=(o,e,t,s,a,n)=>{if(e)switch(e){case"t":return" ";case"n":return` +import{g as P,m as U}from"./main-DsJMMZjG.js";import{m as z}from"./main-y9VuuvvT.js";function M(o,e){for(var t=0;ts[a]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let o=Promise.resolve();try{queueMicrotask=e=>o.then(e).catch(t=>setTimeout(()=>{throw t},0))}catch{}}const w=z,C=U,G=/^[a-z][a-z0-9+\-.]*:(?:[^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,H=/^[a-z][a-z0-9+\-.]*:[^\0-\x20<>"{}|^`]*$/,B=/^([^\0-\x20<>"{}|^`\\]|\\u[A-Fa-f0-9]{4}|\\U[A-Fa-f0-9]{8})*$/,V=/^([^\0-\x20<>"{}|^`])*$/,b=/\\u([0-9A-Fa-f]{4})|\\U([0-9A-Fa-f]{8})/g,g=(o,e,t)=>String.fromCodePoint(parseInt(e||t,16)),W=/\s*(?:#[^\n]*\n\s*)*\s*/y,Z=/\s*(#[^\n]*\n\s*)*\s*/y,k=/[\\]/,j=/[^\n]+\n/y,Q=/^(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_0-9])(?:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.])*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?$/u,J=/^[a-z]+(-[a-z0-9]+)*$/,S=/[ \t]*/y,T=/@([A-Za-z]+(?:-[A-Za-z0-9-]+)*)(?:\s+|(?=[.,;\])#]))/y,I=/<([^>]*)>\s*/y,$=(o,e,t,s,a,n)=>{if(e)switch(e){case"t":return" ";case"n":return` `;case"r":return"\r";case"f":return"\f";case"b":return"\b";default:console.assert(`bad regex escape char mapping: '${e}'`)}else{if(t)return t;if(s)return String.fromCodePoint(parseInt(s,16));if(a)return String.fromCodePoint(parseInt(a,16));if(n)throw n[0]==="\\"?new Error(`expected string_literal but invalid escape sequence within contents: '${n}'. failed to parse a valid token`):new Error(`expected string_literal but invalid whitespace character within contents: ${JSON.stringify(n)}. failed to parse a valid token`);console.assert("unexpected no match branch in escape sequence replace callback")}},K=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|([\r\n]|\\.))/g,F=/(?:\\(?:([tnrfb])|([\\"'])|u([0-9A-Fa-f]{4})|U([0-9A-Fa-f]{8}))|([\r\n]|\\[^uU]|\\u[^]{4}|\\U[^]{8}))/g,v=o=>o.replace(K,$),Y=o=>{let e=X.exec(o);if(e){let t=e.index;return[o.slice(0,t).replace(F,$),o.slice(t)]}else return[o.replace(F,$),""]},[X,D]=(()=>{function o(t){let s=RegExp.prototype.exec.call(this,t);if(s){let a=s[0].length-s[1].length;s.index+=a,s[0]=s[0].slice(a)}return s}let e=(()=>{try{new RegExp("(?(a.exec=n,a)}return t=>t()})();return[e(()=>new RegExp("(?new RegExp('(?]*)>|_:([^\x20\t<]+))[\x20\t]*<([^\\>]*)>[\x20\t]*(?:(?:(<[^\\>]*)>|_:([^\x20\t<]+))[\x20\t]*(?:<([^\\>]*)>|_:([^\x20\t<]+)|)[\x20\t]*\.\s*(#[^\n]*\n\s*|\n\s*)+|"([^"\\]*)(?:(")(?:\^\^<([^\\>]*)>|@([^\x20\t.]+)|)[\x20\t]*(?:<([^\\>]*)>|_:([^\x20\t<]+)|)[\x20\t]*\.\s*(#[^\n]*\n\s*|\n\s*)+)?)/y,N=/(?:<([^>]*)>|_:([^\x20\t<]+))[\x20\t]*<([^>]*)>[\x20\t]*(?:(?:(<[^>]*)>|_:([^\x20\t<]+))[\x20\t]*(?:<([^>]*)>|_:([^\x20\t<]+)|)[\x20\t]*\.\s*(#[^\n]*\n\s*|\n\s*)+|"((?:[^"\\]|\\.)*)(?:(")(?:\^\^<([^>]*)>|@([^\x20\t.]+)|)[\x20\t]*(?:<([^>]*)>|_:([^\x20\t<]+)|)[\x20\t]*\.\s*(#[^\n]*\n\s*|\n\s*)+)?)/y,O=/_:([^\x20\t<]+)/y;class ee extends w.Transform{constructor(e){super({decodeStrings:!1,writableObjectMode:!1,readableObjectMode:!0,flush:e.flush,transform:e.transform}),this.on("pipe",t=>{this._ds_input=t,typeof t.setEncoding=="function"&&t.setEncoding("utf8")})}pipe(e){let t=e;return t._writableState.objectMode?e.isGraphyWritable&&(e=w.quads_to_writable()):e=w.quads_to_json(),e!==t?(super.pipe(e),e.pipe(t)):super.pipe(t)}}class te{constructor(e){let{input:t=null,relax:s=!1,debug:a=!1}=e,n=e.allow_relative_iris||e.allowRelativeIRIs||e.allowRelativeIris||!1,d=this._dc_factory=C.adopt(e.dataFactory||e.data_factory||C.unfiltered),u=this._f_quad=d.quad;Object.assign(this,{s:e.prepend||"",n:0,_b_debug:a,_b_relax:s,_b_destroyed:!1,_b_trim_start:!0,_f_state:this.statement,_kt_subject:null,_kt_predicate:null,_kt_object:null,_s_literal:""}),this._kt_default_graph=d.defaultGraph(),this._kt_rdfs_lang_string=d.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");let x=this._r_clean=W;e.relaxed&&console.warn(new Error("no such option 'relaxed'; did you mean 'relax' ?").stack.replace(/^Error:/,"Warning:")),"validate"in e&&console.warn(new Error("option 'validate' has been removed and validation is now on by default. Use 'relax' option if you wish to disable validation.").stack.replace(/^Error:/,"Warning:"));let E=d.namedNode,A=d.blankNode,_=d.languagedLiteral,l=n?B:G,m=n?V:H,p=this;Object.assign(this,s?{create_named_node:E,create_named_node_escapeless:E,create_blank_node:A,create_languaged_literal:_}:{create_named_node(r){return l.test(r)?E(r):p._error(`invalid IRI: "${r}"`)},create_named_node_escapeless(r){return m.test(r)?E(r):p._error(`invalid IRI: "${r}"`)},create_blank_node(r){return Q.test(r)?A(r):p._error(`Invalid blank node label: "${r}"`)},create_languaged_literal(r,i){return J.test(i)?_(r,i):p._error(`Invalid literal language tag: ${i}`)}});let f,y=!1;if(f=this.transform=new ee({transform:(r,i,c)=>{y||(f.emit("ready"),y=!1);let h=this.s+=r;if(this._b_trim_start){x.lastIndex=0;let R=x.exec(h);this.emit_comments&&this.emit_comments(R[1]),this.i=x.lastIndex}else this.i=0;this.n=h.length;try{this.parse(!0)}catch(R){return f.destroy(R)}f.emit("progress",r.length),c()},flush:r=>{if(this.s.length){if(this.s+=` `,this._b_trim_start){x.lastIndex=0;let i=x.exec(this.s);this.emit_comments&&this.emit_comments(i[1]),this.i=x.lastIndex}else this.i=0;try{this.parse()}catch(i){return f.demolish(i)}if(this.s.length)return f.demolish(new Error(`parsing error occurred in state: statement ${this.s.substr(0,50)} diff --git a/assets/main-BIUkwmxE.js b/assets/main-DimUcN7z.js similarity index 98% rename from assets/main-BIUkwmxE.js rename to assets/main-DimUcN7z.js index 45c34cd..554b6bf 100644 --- a/assets/main-BIUkwmxE.js +++ b/assets/main-DimUcN7z.js @@ -1,4 +1,4 @@ -import{g as z,m as O}from"./main-CO-45Vwa.js";import{m as F}from"./main-DQofh_ad.js";function G(x,e){for(var i=0;is[t]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let x=Promise.resolve();try{queueMicrotask=e=>x.then(e).catch(i=>setTimeout(()=>{throw i},0))}catch{}}const p=O,I=F,j=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?)?$/u,k=1,T=2,C=4;class E extends I{constructor(e={}){super(e);let{prefixes:i={},lists:s=null,debug:t=!1,style:r=null}=e;Object.assign(this,{_b_debug:t,_s_indent:" ",_b_simplify_default_graph:!1,_xc_directives:0,_s_token_prefix:"@prefix"});let f="";if(r){let _=r.graph_keyword||r.graphKeyword||r["graph-keyword"];if(_)if(_===!0)f="GRAPH ";else{if(typeof _!="string")throw new TypeError(`Invalid argument type given for 'graph' token: ${_}`);if(/^graph$/i.test(_))f=_+" ";else throw new Error(`Graph token must equal case-insensitive "GRAPH"; found: "${_}"`)}let d=r.simplify_default_graph||r.simplifyDefaultGraph||r["simplify-default-graph"];d&&(this._b_simplify_default_graph=!!d),r.indent&&(this._s_indent=r.indent.replace(/[^\s]/g,""));let h=r.directives||r.directives;if(h)switch(h){case"sparql":{this._xc_directives=k,this._s_token_prefix="prefix";break}case"Sparql":{this._xc_directives=k|T,this._s_token_prefix="Prefix";break}case"SPARQL":{this._xc_directives=k|C,this._s_token_prefix="PREFIX";break}case"turtle":break;case"Turtle":{this._xc_directives=T,this._s_token_prefix="@Prefix";break}case"TURTLE":{this._xc_directives=C,this._s_token_prefix="@PREFIX";break}default:throw new Error(`Value not understood for 'directives' option: ${h}`)}}this._s_graph_keyword=f,s&&(this._serialize_list_object=function(_,d){let h=this._transcode_list(_);return this._encode_objects(h,d)});let a=this._s_token_prefix,l=this._xc_directives&k?` +import{g as z,m as O}from"./main-DsJMMZjG.js";import{m as F}from"./main-CntB7osZ.js";function G(x,e){for(var i=0;is[t]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let x=Promise.resolve();try{queueMicrotask=e=>x.then(e).catch(i=>setTimeout(()=>{throw i},0))}catch{}}const p=O,I=F,j=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?)?$/u,k=1,T=2,C=4;class E extends I{constructor(e={}){super(e);let{prefixes:i={},lists:s=null,debug:t=!1,style:r=null}=e;Object.assign(this,{_b_debug:t,_s_indent:" ",_b_simplify_default_graph:!1,_xc_directives:0,_s_token_prefix:"@prefix"});let f="";if(r){let _=r.graph_keyword||r.graphKeyword||r["graph-keyword"];if(_)if(_===!0)f="GRAPH ";else{if(typeof _!="string")throw new TypeError(`Invalid argument type given for 'graph' token: ${_}`);if(/^graph$/i.test(_))f=_+" ";else throw new Error(`Graph token must equal case-insensitive "GRAPH"; found: "${_}"`)}let d=r.simplify_default_graph||r.simplifyDefaultGraph||r["simplify-default-graph"];d&&(this._b_simplify_default_graph=!!d),r.indent&&(this._s_indent=r.indent.replace(/[^\s]/g,""));let h=r.directives||r.directives;if(h)switch(h){case"sparql":{this._xc_directives=k,this._s_token_prefix="prefix";break}case"Sparql":{this._xc_directives=k|T,this._s_token_prefix="Prefix";break}case"SPARQL":{this._xc_directives=k|C,this._s_token_prefix="PREFIX";break}case"turtle":break;case"Turtle":{this._xc_directives=T,this._s_token_prefix="@Prefix";break}case"TURTLE":{this._xc_directives=C,this._s_token_prefix="@PREFIX";break}default:throw new Error(`Value not understood for 'directives' option: ${h}`)}}this._s_graph_keyword=f,s&&(this._serialize_list_object=function(_,d){let h=this._transcode_list(_);return this._encode_objects(h,d)});let a=this._s_token_prefix,l=this._xc_directives&k?` `:` . `,n="";try{for(let _ in i){if(!j.test(_))throw new Error(`Invlalid prefix id for application/trig RDF serialization format: '${_}'`);n+=`${a} ${_}: ${p.namedNode(i[_]).verbose()}${l}`}}catch(_){queueMicrotask(()=>{this.emit("error",_)})}n&&this.push(n)}_serialize_prefixes(e){let i=this._xc_state===2?` diff --git a/assets/main-DsJMMZjG.js b/assets/main-DsJMMZjG.js new file mode 100644 index 0000000..f9a4399 --- /dev/null +++ b/assets/main-DsJMMZjG.js @@ -0,0 +1,3417 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/main-gYTlQIEk.js","assets/main-CntB7osZ.js","assets/main-CPJAraVa.js","assets/main-y9VuuvvT.js","assets/main-Crg7QqIq.js","assets/main-DimUcN7z.js","assets/main-Bw33fkyv.js","assets/main-Dhp4ePPX.js"])))=>i.map(i=>d[i]); +var OFn=Object.defineProperty;var PLt=n=>{throw TypeError(n)};var NFn=(n,r,o)=>r in n?OFn(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o;var n7e=(n,r,o)=>NFn(n,typeof r!="symbol"?r+"":r,o),r7e=(n,r,o)=>r.has(n)||PLt("Cannot "+o);var Hp=(n,r,o)=>(r7e(n,r,"read from private field"),o?o.call(n):r.get(n)),J5=(n,r,o)=>r.has(n)?PLt("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,o),_E=(n,r,o,l)=>(r7e(n,r,"write to private field"),l?l.call(n,o):r.set(n,o),o),i7e=(n,r,o)=>(r7e(n,r,"access private method"),o);const mde=Object.freeze(Object.defineProperty({__proto__:null,get _void(){return tnr},get acl(){return xQn},get as(){return AQn},get bibo(){return $Qn},get cc(){return PQn},get cert(){return NQn},get cnt(){return DQn},get constant(){return jQn},get crm(){return BQn},get csvw(){return HQn},get ctag(){return GQn},get dash(){return qQn},get dashSparql(){return zQn},get dbo(){return JQn},get dc11(){return QQn},get dcam(){return eZn},get dcat(){return nZn},get dcmitype(){return iZn},get dcterms(){return sZn},get default(){return _en},get dig(){return aZn},get discipline(){return uZn},get doap(){return dZn},get dpv(){return pZn},get dqv(){return gZn},get dtype(){return mZn},get duv(){return vZn},get earl(){return SZn},get ebucore(){return kZn},get exif(){return xZn},get foaf(){return AZn},get frbr(){return $Zn},get geo(){return PZn},get geof(){return NZn},get geor(){return DZn},get gml(){return jZn},get gn(){return BZn},get gr(){return HZn},get grddl(){return GZn},get gs1(){return zZn},get gtfs(){return qZn},get http(){return JZn},get hydra(){return QZn},get ical(){return eer},get la(){return ner},get ldp(){return ier},get list(){return ser},get locn(){return aer},get log(){return uer},get lvont(){return der},get m4i(){return per},get ma(){return ger},get mads(){return mer},get math(){return ver},get oa(){return Ser},get og(){return ker},get oidc(){return xer},get org(){return Aer},get owl(){return $er},get pim(){return Per},get prefix(){return Ner},get prov(){return Der},get qb(){return jer},get qkdv(){return Ber},get quantitykind(){return Her},get qudt(){return Ger},get rdau(){return zer},get rdf(){return hS},get rdfa(){return Xer},get rdfs(){return Yer},get rev(){return Zer},get rico(){return ttr},get rif(){return pnr},get rr(){return rtr},get rss(){return otr},get schema(){return ltr},get sd(){return ctr},get sdmx(){return ftr},get sem(){return htr},get set(){return btr},get sf(){return wtr},get sh(){return ytr},get shex(){return _tr},get shsh(){return Etr},get sioc(){return Rtr},get skos(){return Ctr},get skosxl(){return Ttr},get solid(){return Itr},get sosa(){return Otr},get sou(){return Mtr},get ssn(){return Ltr},get stat(){return Ftr},get string(){return Wtr},get test(){return Utr},get time(){return Vtr},get unit(){return Ktr},get v(){return gnr},get vaem(){return Xtr},get vann(){return Ytr},get vcard(){return Ztr},get vs(){return rnr},get wdr(){return mnr},get wdrs(){return onr},get wgs(){return lnr},get xhv(){return cnr},get xkos(){return fnr},get xml(){return vnr},get xsd(){return rq}},Symbol.toStringTag,{value:"Module"}));(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&l(h)}).observe(document,{childList:!0,subtree:!0});function o(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(u){if(u.ep)return;u.ep=!0;const d=o(u);fetch(u.href,d)}})();/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function uWe(n){const r=Object.create(null);for(const o of n.split(","))r[o]=1;return o=>o in r}const Lc={},VD=[],FE=()=>{},MFn=()=>!1,Whe=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),fWe=n=>n.startsWith("onUpdate:"),zd=Object.assign,dWe=(n,r)=>{const o=n.indexOf(r);o>-1&&n.splice(o,1)},DFn=Object.prototype.hasOwnProperty,Va=(n,r)=>DFn.call(n,r),Bo=Array.isArray,zD=n=>Hhe(n)==="[object Map]",hYt=n=>Hhe(n)==="[object Set]",ls=n=>typeof n=="function",Fu=n=>typeof n=="string",_x=n=>typeof n=="symbol",Qc=n=>n!==null&&typeof n=="object",pYt=n=>(Qc(n)||ls(n))&&ls(n.then)&&ls(n.catch),bYt=Object.prototype.toString,Hhe=n=>bYt.call(n),LFn=n=>Hhe(n).slice(8,-1),gYt=n=>Hhe(n)==="[object Object]",hWe=n=>Fu(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,KK=uWe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Uhe=n=>{const r=Object.create(null);return o=>r[o]||(r[o]=n(o))},jFn=/-(\w)/g,iv=Uhe(n=>n.replace(jFn,(r,o)=>o?o.toUpperCase():"")),FFn=/\B([A-Z])/g,IT=Uhe(n=>n.replace(FFn,"-$1").toLowerCase()),Ghe=Uhe(n=>n.charAt(0).toUpperCase()+n.slice(1)),kfe=Uhe(n=>n?`on${Ghe(n)}`:""),GR=(n,r)=>!Object.is(n,r),o7e=(n,...r)=>{for(let o=0;o{Object.defineProperty(n,r,{configurable:!0,enumerable:!1,writable:l,value:o})},BFn=n=>{const r=parseFloat(n);return isNaN(r)?n:r},WFn=n=>{const r=Fu(n)?Number(n):NaN;return isNaN(r)?n:r};let OLt;const Vhe=()=>OLt||(OLt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"||typeof window<"u"?window:{});function Vb(n){if(Bo(n)){const r={};for(let o=0;o{if(o){const l=o.split(UFn);l.length>1&&(r[l[0].trim()]=l[1].trim())}}),r}function Lo(n){let r="";if(Fu(n))r=n;else if(Bo(n))for(let o=0;o!!(n&&n.__v_isRef===!0),na=n=>Fu(n)?n:n==null?"":Bo(n)||Qc(n)&&(n.toString===bYt||!ls(n.toString))?yYt(n)?na(n.value):JSON.stringify(n,vYt,2):String(n),vYt=(n,r)=>yYt(r)?vYt(n,r.value):zD(r)?{[`Map(${r.size})`]:[...r.entries()].reduce((o,[l,u],d)=>(o[s7e(l,d)+" =>"]=u,o),{})}:hYt(r)?{[`Set(${r.size})`]:[...r.values()].map(o=>s7e(o))}:_x(r)?s7e(r):Qc(r)&&!Bo(r)&&!gYt(r)?String(r):r,s7e=(n,r="")=>{var o;return _x(n)?`Symbol(${(o=n.description)!=null?o:r})`:n};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Zg;class _Yt{constructor(r=!1){this.detached=r,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Zg,!r&&Zg&&(this.index=(Zg.scopes||(Zg.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let r,o;if(this.scopes)for(r=0,o=this.scopes.length;r0)return;if(JK){let r=JK;for(JK=void 0;r;){const o=r.next;r.next=void 0,r.flags&=-9,r=o}}let n;for(;XK;){let r=XK;for(XK=void 0;r;){const o=r.next;if(r.next=void 0,r.flags&=-9,r.flags&1)try{r.trigger()}catch(l){n||(n=l)}r=o}}if(n)throw n}function xYt(n){for(let r=n.deps;r;r=r.nextDep)r.version=-1,r.prevActiveLink=r.dep.activeLink,r.dep.activeLink=r}function CYt(n){let r,o=n.depsTail,l=o;for(;l;){const u=l.prevDep;l.version===-1?(l===o&&(o=u),gWe(l),qFn(l)):r=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=u}n.deps=r,n.depsTail=o}function pLe(n){for(let r=n.deps;r;r=r.nextDep)if(r.dep.version!==r.version||r.dep.computed&&(AYt(r.dep.computed)||r.dep.version!==r.version))return!0;return!!n._dirty}function AYt(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===Nq))return;n.globalVersion=Nq;const r=n.dep;if(n.flags|=2,r.version>0&&!n.isSSR&&n.deps&&!pLe(n)){n.flags&=-3;return}const o=Jc,l=kS;Jc=n,kS=!0;try{xYt(n);const u=n.fn(n._value);(r.version===0||GR(u,n._value))&&(n._value=u,r.version++)}catch(u){throw r.version++,u}finally{Jc=o,kS=l,CYt(n),n.flags&=-3}}function gWe(n,r=!1){const{dep:o,prevSub:l,nextSub:u}=n;if(l&&(l.nextSub=u,n.prevSub=void 0),u&&(u.prevSub=l,n.nextSub=void 0),o.subs===n&&(o.subs=l,!l&&o.computed)){o.computed.flags&=-5;for(let d=o.computed.deps;d;d=d.nextDep)gWe(d,!0)}!r&&!--o.sc&&o.map&&o.map.delete(o.key)}function qFn(n){const{prevDep:r,nextDep:o}=n;r&&(r.nextDep=o,n.prevDep=void 0),o&&(o.prevDep=r,n.nextDep=void 0)}let kS=!0;const TYt=[];function PT(){TYt.push(kS),kS=!1}function OT(){const n=TYt.pop();kS=n===void 0?!0:n}function NLt(n){const{cleanup:r}=n;if(n.cleanup=void 0,r){const o=Jc;Jc=void 0;try{r()}finally{Jc=o}}}let Nq=0,XFn=class{constructor(r,o){this.sub=r,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Khe{constructor(r){this.computed=r,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(r){if(!Jc||!kS||Jc===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==Jc)o=this.activeLink=new XFn(Jc,this),Jc.deps?(o.prevDep=Jc.depsTail,Jc.depsTail.nextDep=o,Jc.depsTail=o):Jc.deps=Jc.depsTail=o,$Yt(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const l=o.nextDep;l.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=l),o.prevDep=Jc.depsTail,o.nextDep=void 0,Jc.depsTail.nextDep=o,Jc.depsTail=o,Jc.deps===o&&(Jc.deps=l)}return o}trigger(r){this.version++,Nq++,this.notify(r)}notify(r){pWe();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{bWe()}}}function $Yt(n){if(n.dep.sc++,n.sub.flags&4){const r=n.dep.computed;if(r&&!n.dep.subs){r.flags|=20;for(let l=r.deps;l;l=l.nextDep)$Yt(l)}const o=n.dep.subs;o!==n&&(n.prevSub=o,o&&(o.nextSub=n)),n.dep.subs=n}}const yde=new WeakMap,q8=Symbol(""),bLe=Symbol(""),Mq=Symbol("");function Bb(n,r,o){if(kS&&Jc){let l=yde.get(n);l||yde.set(n,l=new Map);let u=l.get(o);u||(l.set(o,u=new Khe),u.map=l,u.key=o),u.track()}}function OR(n,r,o,l,u,d){const h=yde.get(n);if(!h){Nq++;return}const w=v=>{v&&v.trigger()};if(pWe(),r==="clear")h.forEach(w);else{const v=Bo(n),y=v&&hWe(o);if(v&&o==="length"){const E=Number(l);h.forEach((A,C)=>{(C==="length"||C===Mq||!_x(C)&&C>=E)&&w(A)})}else switch((o!==void 0||h.has(void 0))&&w(h.get(o)),y&&w(h.get(Mq)),r){case"add":v?y&&w(h.get("length")):(w(h.get(q8)),zD(n)&&w(h.get(bLe)));break;case"delete":v||(w(h.get(q8)),zD(n)&&w(h.get(bLe)));break;case"set":zD(n)&&w(h.get(q8));break}}bWe()}function JFn(n,r){const o=yde.get(n);return o&&o.get(r)}function rD(n){const r=Sa(n);return r===n?r:(Bb(r,"iterate",Mq),tv(n)?r:r.map(Wb))}function qhe(n){return Bb(n=Sa(n),"iterate",Mq),n}const YFn={__proto__:null,[Symbol.iterator](){return a7e(this,Symbol.iterator,Wb)},concat(...n){return rD(this).concat(...n.map(r=>Bo(r)?rD(r):r))},entries(){return a7e(this,"entries",n=>(n[1]=Wb(n[1]),n))},every(n,r){return vR(this,"every",n,r,void 0,arguments)},filter(n,r){return vR(this,"filter",n,r,o=>o.map(Wb),arguments)},find(n,r){return vR(this,"find",n,r,Wb,arguments)},findIndex(n,r){return vR(this,"findIndex",n,r,void 0,arguments)},findLast(n,r){return vR(this,"findLast",n,r,Wb,arguments)},findLastIndex(n,r){return vR(this,"findLastIndex",n,r,void 0,arguments)},forEach(n,r){return vR(this,"forEach",n,r,void 0,arguments)},includes(...n){return c7e(this,"includes",n)},indexOf(...n){return c7e(this,"indexOf",n)},join(n){return rD(this).join(n)},lastIndexOf(...n){return c7e(this,"lastIndexOf",n)},map(n,r){return vR(this,"map",n,r,void 0,arguments)},pop(){return Kz(this,"pop")},push(...n){return Kz(this,"push",n)},reduce(n,...r){return MLt(this,"reduce",n,r)},reduceRight(n,...r){return MLt(this,"reduceRight",n,r)},shift(){return Kz(this,"shift")},some(n,r){return vR(this,"some",n,r,void 0,arguments)},splice(...n){return Kz(this,"splice",n)},toReversed(){return rD(this).toReversed()},toSorted(n){return rD(this).toSorted(n)},toSpliced(...n){return rD(this).toSpliced(...n)},unshift(...n){return Kz(this,"unshift",n)},values(){return a7e(this,"values",Wb)}};function a7e(n,r,o){const l=qhe(n),u=l[r]();return l!==n&&!tv(n)&&(u._next=u.next,u.next=()=>{const d=u._next();return d.value&&(d.value=o(d.value)),d}),u}const QFn=Array.prototype;function vR(n,r,o,l,u,d){const h=qhe(n),w=h!==n&&!tv(n),v=h[r];if(v!==QFn[r]){const A=v.apply(n,d);return w?Wb(A):A}let y=o;h!==n&&(w?y=function(A,C){return o.call(this,Wb(A),C,n)}:o.length>2&&(y=function(A,C){return o.call(this,A,C,n)}));const E=v.call(h,y,l);return w&&u?u(E):E}function MLt(n,r,o,l){const u=qhe(n);let d=o;return u!==n&&(tv(n)?o.length>3&&(d=function(h,w,v){return o.call(this,h,w,v,n)}):d=function(h,w,v){return o.call(this,h,Wb(w),v,n)}),u[r](d,...l)}function c7e(n,r,o){const l=Sa(n);Bb(l,"iterate",Mq);const u=l[r](...o);return(u===-1||u===!1)&&yWe(o[0])?(o[0]=Sa(o[0]),l[r](...o)):u}function Kz(n,r,o=[]){PT(),pWe();const l=Sa(n)[r].apply(n,o);return bWe(),OT(),l}const ZFn=uWe("__proto__,__v_isRef,__isVue"),IYt=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(_x));function eBn(n){_x(n)||(n=String(n));const r=Sa(this);return Bb(r,"has",n),r.hasOwnProperty(n)}class PYt{constructor(r=!1,o=!1){this._isReadonly=r,this._isShallow=o}get(r,o,l){if(o==="__v_skip")return r.__v_skip;const u=this._isReadonly,d=this._isShallow;if(o==="__v_isReactive")return!u;if(o==="__v_isReadonly")return u;if(o==="__v_isShallow")return d;if(o==="__v_raw")return l===(u?d?uBn:DYt:d?MYt:NYt).get(r)||Object.getPrototypeOf(r)===Object.getPrototypeOf(l)?r:void 0;const h=Bo(r);if(!u){let v;if(h&&(v=YFn[o]))return v;if(o==="hasOwnProperty")return eBn}const w=Reflect.get(r,o,_d(r)?r:l);return(_x(o)?IYt.has(o):ZFn(o))||(u||Bb(r,"get",o),d)?w:_d(w)?h&&hWe(o)?w:w.value:Qc(w)?u?zX(w):mP(w):w}}class OYt extends PYt{constructor(r=!1){super(!1,r)}set(r,o,l,u){let d=r[o];if(!this._isShallow){const v=yP(d);if(!tv(l)&&!yP(l)&&(d=Sa(d),l=Sa(l)),!Bo(r)&&_d(d)&&!_d(l))return v?!1:(d.value=l,!0)}const h=Bo(r)&&hWe(o)?Number(o)n,Gce=n=>Reflect.getPrototypeOf(n);function oBn(n,r,o){return function(...l){const u=this.__v_raw,d=Sa(u),h=zD(d),w=n==="entries"||n===Symbol.iterator&&h,v=n==="keys"&&h,y=u[n](...l),E=o?gLe:r?wLe:Wb;return!r&&Bb(d,"iterate",v?bLe:q8),{next(){const{value:A,done:C}=y.next();return C?{value:A,done:C}:{value:w?[E(A[0]),E(A[1])]:E(A),done:C}},[Symbol.iterator](){return this}}}}function Vce(n){return function(...r){return n==="delete"?!1:n==="clear"?void 0:this}}function sBn(n,r){const o={get(u){const d=this.__v_raw,h=Sa(d),w=Sa(u);n||(GR(u,w)&&Bb(h,"get",u),Bb(h,"get",w));const{has:v}=Gce(h),y=r?gLe:n?wLe:Wb;if(v.call(h,u))return y(d.get(u));if(v.call(h,w))return y(d.get(w));d!==h&&d.get(u)},get size(){const u=this.__v_raw;return!n&&Bb(Sa(u),"iterate",q8),Reflect.get(u,"size",u)},has(u){const d=this.__v_raw,h=Sa(d),w=Sa(u);return n||(GR(u,w)&&Bb(h,"has",u),Bb(h,"has",w)),u===w?d.has(u):d.has(u)||d.has(w)},forEach(u,d){const h=this,w=h.__v_raw,v=Sa(w),y=r?gLe:n?wLe:Wb;return!n&&Bb(v,"iterate",q8),w.forEach((E,A)=>u.call(d,y(E),y(A),h))}};return zd(o,n?{add:Vce("add"),set:Vce("set"),delete:Vce("delete"),clear:Vce("clear")}:{add(u){!r&&!tv(u)&&!yP(u)&&(u=Sa(u));const d=Sa(this);return Gce(d).has.call(d,u)||(d.add(u),OR(d,"add",u,u)),this},set(u,d){!r&&!tv(d)&&!yP(d)&&(d=Sa(d));const h=Sa(this),{has:w,get:v}=Gce(h);let y=w.call(h,u);y||(u=Sa(u),y=w.call(h,u));const E=v.call(h,u);return h.set(u,d),y?GR(d,E)&&OR(h,"set",u,d):OR(h,"add",u,d),this},delete(u){const d=Sa(this),{has:h,get:w}=Gce(d);let v=h.call(d,u);v||(u=Sa(u),v=h.call(d,u)),w&&w.call(d,u);const y=d.delete(u);return v&&OR(d,"delete",u,void 0),y},clear(){const u=Sa(this),d=u.size!==0,h=u.clear();return d&&OR(u,"clear",void 0,void 0),h}}),["keys","values","entries",Symbol.iterator].forEach(u=>{o[u]=oBn(u,n,r)}),o}function wWe(n,r){const o=sBn(n,r);return(l,u,d)=>u==="__v_isReactive"?!n:u==="__v_isReadonly"?n:u==="__v_raw"?l:Reflect.get(Va(o,u)&&u in l?o:l,u,d)}const lBn={get:wWe(!1,!1)},aBn={get:wWe(!1,!0)},cBn={get:wWe(!0,!1)};const NYt=new WeakMap,MYt=new WeakMap,DYt=new WeakMap,uBn=new WeakMap;function fBn(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dBn(n){return n.__v_skip||!Object.isExtensible(n)?0:fBn(LFn(n))}function mP(n){return yP(n)?n:mWe(n,!1,nBn,lBn,NYt)}function hBn(n){return mWe(n,!1,iBn,aBn,MYt)}function zX(n){return mWe(n,!0,rBn,cBn,DYt)}function mWe(n,r,o,l,u){if(!Qc(n)||n.__v_raw&&!(r&&n.__v_isReactive))return n;const d=u.get(n);if(d)return d;const h=dBn(n);if(h===0)return n;const w=new Proxy(n,h===2?l:o);return u.set(n,w),w}function KD(n){return yP(n)?KD(n.__v_raw):!!(n&&n.__v_isReactive)}function yP(n){return!!(n&&n.__v_isReadonly)}function tv(n){return!!(n&&n.__v_isShallow)}function yWe(n){return n?!!n.__v_raw:!1}function Sa(n){const r=n&&n.__v_raw;return r?Sa(r):n}function X8(n){return!Va(n,"__v_skip")&&Object.isExtensible(n)&&wYt(n,"__v_skip",!0),n}const Wb=n=>Qc(n)?mP(n):n,wLe=n=>Qc(n)?zX(n):n;function _d(n){return n?n.__v_isRef===!0:!1}function Fo(n){return pBn(n,!1)}function pBn(n,r){return _d(n)?n:new bBn(n,r)}class bBn{constructor(r,o){this.dep=new Khe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?r:Sa(r),this._value=o?r:Wb(r),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(r){const o=this._rawValue,l=this.__v_isShallow||tv(r)||yP(r);r=l?r:Sa(r),GR(r,o)&&(this._rawValue=r,this._value=l?r:Wb(r),this.dep.trigger())}}function Wr(n){return _d(n)?n.value:n}function _a(n){return ls(n)?n():Wr(n)}const gBn={get:(n,r,o)=>r==="__v_raw"?n:Wr(Reflect.get(n,r,o)),set:(n,r,o,l)=>{const u=n[r];return _d(u)&&!_d(o)?(u.value=o,!0):Reflect.set(n,r,o,l)}};function LYt(n){return KD(n)?n:new Proxy(n,gBn)}class wBn{constructor(r){this.__v_isRef=!0,this._value=void 0;const o=this.dep=new Khe,{get:l,set:u}=r(o.track.bind(o),o.trigger.bind(o));this._get=l,this._set=u}get value(){return this._value=this._get()}set value(r){this._set(r)}}function mBn(n){return new wBn(n)}function yBn(n){const r=Bo(n)?new Array(n.length):{};for(const o in n)r[o]=jYt(n,o);return r}class vBn{constructor(r,o,l){this._object=r,this._key=o,this._defaultValue=l,this.__v_isRef=!0,this._value=void 0}get value(){const r=this._object[this._key];return this._value=r===void 0?this._defaultValue:r}set value(r){this._object[this._key]=r}get dep(){return JFn(Sa(this._object),this._key)}}class _Bn{constructor(r){this._getter=r,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function bf(n,r,o){return _d(n)?n:ls(n)?new _Bn(n):Qc(n)&&arguments.length>1?jYt(n,r,o):Fo(n)}function jYt(n,r,o){const l=n[r];return _d(l)?l:new vBn(n,r,o)}class SBn{constructor(r,o,l){this.fn=r,this.setter=o,this._value=void 0,this.dep=new Khe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Nq-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Jc!==this)return RYt(this,!0),!0}get value(){const r=this.dep.track();return AYt(this),r&&(r.version=this.dep.version),this._value}set value(r){this.setter&&this.setter(r)}}function EBn(n,r,o=!1){let l,u;return ls(n)?l=n:(l=n.get,u=n.set),new SBn(l,u,o)}const zce={},vde=new WeakMap;let _8;function kBn(n,r=!1,o=_8){if(o){let l=vde.get(o);l||vde.set(o,l=[]),l.push(n)}}function RBn(n,r,o=Lc){const{immediate:l,deep:u,once:d,scheduler:h,augmentJob:w,call:v}=o,y=Q=>u?Q:tv(Q)||u===!1||u===0?NR(Q,1):NR(Q);let E,A,C,R,O=!1,M=!1;if(_d(n)?(A=()=>n.value,O=tv(n)):KD(n)?(A=()=>y(n),O=!0):Bo(n)?(M=!0,O=n.some(Q=>KD(Q)||tv(Q)),A=()=>n.map(Q=>{if(_d(Q))return Q.value;if(KD(Q))return y(Q);if(ls(Q))return v?v(Q,2):Q()})):ls(n)?r?A=v?()=>v(n,2):n:A=()=>{if(C){PT();try{C()}finally{OT()}}const Q=_8;_8=E;try{return v?v(n,3,[R]):n(R)}finally{_8=Q}}:A=FE,r&&u){const Q=A,te=u===!0?1/0:u;A=()=>NR(Q(),te)}const L=zhe(),H=()=>{E.stop(),L&&L.active&&dWe(L.effects,E)};if(d&&r){const Q=r;r=(...te)=>{Q(...te),H()}}let G=M?new Array(n.length).fill(zce):zce;const j=Q=>{if(!(!(E.flags&1)||!E.dirty&&!Q))if(r){const te=E.run();if(u||O||(M?te.some((pe,Le)=>GR(pe,G[Le])):GR(te,G))){C&&C();const pe=_8;_8=E;try{const Le=[te,G===zce?void 0:M&&G[0]===zce?[]:G,R];v?v(r,3,Le):r(...Le),G=te}finally{_8=pe}}}else E.run()};return w&&w(j),E=new EYt(A),E.scheduler=h?()=>h(j,!1):j,R=Q=>kBn(Q,!1,E),C=E.onStop=()=>{const Q=vde.get(E);if(Q){if(v)v(Q,4);else for(const te of Q)te();vde.delete(E)}},r?l?j(!0):G=E.run():h?h(j.bind(null,!0),!0):E.run(),H.pause=E.pause.bind(E),H.resume=E.resume.bind(E),H.stop=H,H}function NR(n,r=1/0,o){if(r<=0||!Qc(n)||n.__v_skip||(o=o||new Set,o.has(n)))return n;if(o.add(n),r--,_d(n))NR(n.value,r,o);else if(Bo(n))for(let l=0;l{NR(l,r,o)});else if(gYt(n)){for(const l in n)NR(n[l],r,o);for(const l of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,l)&&NR(n[l],r,o)}return n}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function KX(n,r,o,l){try{return l?n(...l):n()}catch(u){Xhe(u,r,o)}}function xS(n,r,o,l){if(ls(n)){const u=KX(n,r,o,l);return u&&pYt(u)&&u.catch(d=>{Xhe(d,r,o)}),u}if(Bo(n)){const u=[];for(let d=0;d>>1,u=t1[l],d=Dq(u);d=Dq(o)?t1.push(n):t1.splice(CBn(r),0,n),n.flags|=1,BYt()}}function BYt(){_de||(_de=FYt.then(HYt))}function ABn(n){Bo(n)?qD.push(...n):H4&&n.id===-1?H4.splice(bD+1,0,n):n.flags&1||(qD.push(n),n.flags|=1),BYt()}function DLt(n,r,o=TE+1){for(;oDq(o)-Dq(l));if(qD.length=0,H4){H4.push(...r);return}for(H4=r,bD=0;bDn.id==null?n.flags&2?-1:1/0:n.id;function HYt(n){try{for(TE=0;TE{l._d&&XLt(-1);const d=Sde(r);let h;try{h=n(...u)}finally{Sde(d),l._d&&XLt(1)}return h};return l._n=!0,l._c=!0,l._d=!0,l}function AS(n,r){if(hp===null)return n;const o=npe(hp),l=n.dirs||(n.dirs=[]);for(let u=0;un.__isTeleport,YK=n=>n&&(n.disabled||n.disabled===""),LLt=n=>n&&(n.defer||n.defer===""),jLt=n=>typeof SVGElement<"u"&&n instanceof SVGElement,FLt=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,mLe=(n,r)=>{const o=n&&n.to;return Fu(o)?r?r(o):null:o},zYt={name:"Teleport",__isTeleport:!0,process(n,r,o,l,u,d,h,w,v,y){const{mc:E,pc:A,pbc:C,o:{insert:R,querySelector:O,createText:M,createComment:L}}=y,H=YK(r.props);let{shapeFlag:G,children:j,dynamicChildren:Q}=r;if(n==null){const te=r.el=M(""),pe=r.anchor=M("");R(te,o,l),R(pe,o,l);const Le=(le,xe)=>{G&16&&(u&&u.isCE&&(u.ce._teleportTarget=le),E(j,le,xe,u,d,h,w,v))},Ee=()=>{const le=r.target=mLe(r.props,O),xe=KYt(le,r,M,R);le&&(h!=="svg"&&jLt(le)?h="svg":h!=="mathml"&&FLt(le)&&(h="mathml"),H||(Le(le,xe),Rfe(r,!1)))};H&&(Le(o,pe),Rfe(r,!0)),LLt(r.props)?Yg(()=>{Ee(),r.el.__isMounted=!0},d):Ee()}else{if(LLt(r.props)&&!n.el.__isMounted){Yg(()=>{zYt.process(n,r,o,l,u,d,h,w,v,y),delete n.el.__isMounted},d);return}r.el=n.el,r.targetStart=n.targetStart;const te=r.anchor=n.anchor,pe=r.target=n.target,Le=r.targetAnchor=n.targetAnchor,Ee=YK(n.props),le=Ee?o:pe,xe=Ee?te:Le;if(h==="svg"||jLt(pe)?h="svg":(h==="mathml"||FLt(pe))&&(h="mathml"),Q?(C(n.dynamicChildren,Q,le,u,d,h,w),RWe(n,r,!0)):v||A(n,r,le,xe,u,d,h,w,!1),H)Ee?r.props&&n.props&&r.props.to!==n.props.to&&(r.props.to=n.props.to):Kce(r,o,te,y,1);else if((r.props&&r.props.to)!==(n.props&&n.props.to)){const be=r.target=mLe(r.props,O);be&&Kce(r,be,null,y,0)}else Ee&&Kce(r,pe,Le,y,1);Rfe(r,H)}},remove(n,r,o,{um:l,o:{remove:u}},d){const{shapeFlag:h,children:w,anchor:v,targetStart:y,targetAnchor:E,target:A,props:C}=n;if(A&&(u(y),u(E)),d&&u(v),h&16){const R=d||!YK(C);for(let O=0;O{n.isMounted=!0}),Qhe(()=>{n.isUnmounting=!0}),n}const Uy=[Function,Array],qYt={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Uy,onEnter:Uy,onAfterEnter:Uy,onEnterCancelled:Uy,onBeforeLeave:Uy,onLeave:Uy,onAfterLeave:Uy,onLeaveCancelled:Uy,onBeforeAppear:Uy,onAppear:Uy,onAfterAppear:Uy,onAppearCancelled:Uy},XYt=n=>{const r=n.subTree;return r.component?XYt(r.component):r},PBn={name:"BaseTransition",props:qYt,setup(n,{slots:r}){const o=NT(),l=IBn();return()=>{const u=r.default&&QYt(r.default(),!0);if(!u||!u.length)return;const d=JYt(u),h=Sa(n),{mode:w}=h;if(l.isLeaving)return u7e(d);const v=BLt(d);if(!v)return u7e(d);let y=yLe(v,h,l,o,A=>y=A);v.type!==n1&&Lq(v,y);let E=o.subTree&&BLt(o.subTree);if(E&&E.type!==n1&&!M8(v,E)&&XYt(o).type!==n1){let A=yLe(E,h,l,o);if(Lq(E,A),w==="out-in"&&v.type!==n1)return l.isLeaving=!0,A.afterLeave=()=>{l.isLeaving=!1,o.job.flags&8||o.update(),delete A.afterLeave,E=void 0},u7e(d);w==="in-out"&&v.type!==n1?A.delayLeave=(C,R,O)=>{const M=YYt(l,E);M[String(E.key)]=E,C[U4]=()=>{R(),C[U4]=void 0,delete y.delayedLeave,E=void 0},y.delayedLeave=()=>{O(),delete y.delayedLeave,E=void 0}}:E=void 0}else E&&(E=void 0);return d}}};function JYt(n){let r=n[0];if(n.length>1){for(const o of n)if(o.type!==n1){r=o;break}}return r}const OBn=PBn;function YYt(n,r){const{leavingVNodes:o}=n;let l=o.get(r.type);return l||(l=Object.create(null),o.set(r.type,l)),l}function yLe(n,r,o,l,u){const{appear:d,mode:h,persisted:w=!1,onBeforeEnter:v,onEnter:y,onAfterEnter:E,onEnterCancelled:A,onBeforeLeave:C,onLeave:R,onAfterLeave:O,onLeaveCancelled:M,onBeforeAppear:L,onAppear:H,onAfterAppear:G,onAppearCancelled:j}=r,Q=String(n.key),te=YYt(o,n),pe=(le,xe)=>{le&&xS(le,l,9,xe)},Le=(le,xe)=>{const be=xe[1];pe(le,xe),Bo(le)?le.every(ae=>ae.length<=1)&&be():le.length<=1&&be()},Ee={mode:h,persisted:w,beforeEnter(le){let xe=v;if(!o.isMounted)if(d)xe=L||v;else return;le[U4]&&le[U4](!0);const be=te[Q];be&&M8(n,be)&&be.el[U4]&&be.el[U4](),pe(xe,[le])},enter(le){let xe=y,be=E,ae=A;if(!o.isMounted)if(d)xe=H||y,be=G||E,ae=j||A;else return;let F=!1;const me=le[qce]=ye=>{F||(F=!0,ye?pe(ae,[le]):pe(be,[le]),Ee.delayedLeave&&Ee.delayedLeave(),le[qce]=void 0)};xe?Le(xe,[le,me]):me()},leave(le,xe){const be=String(n.key);if(le[qce]&&le[qce](!0),o.isUnmounting)return xe();pe(C,[le]);let ae=!1;const F=le[U4]=me=>{ae||(ae=!0,xe(),me?pe(M,[le]):pe(O,[le]),le[U4]=void 0,te[be]===n&&delete te[be])};te[be]=n,R?Le(R,[le,F]):F()},clone(le){const xe=yLe(le,r,o,l,u);return u&&u(xe),xe}};return Ee}function u7e(n){if(Jhe(n))return n=_T(n),n.children=null,n}function BLt(n){if(!Jhe(n))return VYt(n.type)&&n.children?JYt(n.children):n;const{shapeFlag:r,children:o}=n;if(o){if(r&16)return o[0];if(r&32&&ls(o.default))return o.default()}}function Lq(n,r){n.shapeFlag&6&&n.component?(n.transition=r,Lq(n.component.subTree,r)):n.shapeFlag&128?(n.ssContent.transition=r.clone(n.ssContent),n.ssFallback.transition=r.clone(n.ssFallback)):n.transition=r}function QYt(n,r=!1,o){let l=[],u=0;for(let d=0;d1)for(let d=0;dEde(O,r&&(Bo(r)?r[M]:r),o,l,u));return}if(XD(l)&&!u){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Ede(n,r,o,l.component.subTree);return}const d=l.shapeFlag&4?npe(l.component):l.el,h=u?null:d,{i:w,r:v}=n,y=r&&r.r,E=w.refs===Lc?w.refs={}:w.refs,A=w.setupState,C=Sa(A),R=A===Lc?()=>!1:O=>Va(C,O);if(y!=null&&y!==v&&(Fu(y)?(E[y]=null,R(y)&&(A[y]=null)):_d(y)&&(y.value=null)),ls(v))KX(v,w,12,[h,E]);else{const O=Fu(v),M=_d(v);if(O||M){const L=()=>{if(n.f){const H=O?R(v)?A[v]:E[v]:v.value;u?Bo(H)&&dWe(H,d):Bo(H)?H.includes(d)||H.push(d):O?(E[v]=[d],R(v)&&(A[v]=E[v])):(v.value=[d],n.k&&(E[n.k]=v.value))}else O?(E[v]=h,R(v)&&(A[v]=h)):M&&(v.value=h,n.k&&(E[n.k]=h))};h?(L.id=-1,Yg(L,o)):L()}}}Vhe().requestIdleCallback;Vhe().cancelIdleCallback;const XD=n=>!!n.type.__asyncLoader,Jhe=n=>n.type.__isKeepAlive;function NBn(n,r){eQt(n,"a",r)}function MBn(n,r){eQt(n,"da",r)}function eQt(n,r,o=Vp){const l=n.__wdc||(n.__wdc=()=>{let u=o;for(;u;){if(u.isDeactivated)return;u=u.parent}return n()});if(Yhe(r,l,o),o){let u=o.parent;for(;u&&u.parent;)Jhe(u.parent.vnode)&&DBn(l,r,o,u),u=u.parent}}function DBn(n,r,o,l){const u=Yhe(r,n,l,!0);Zhe(()=>{dWe(l[r],u)},o)}function Yhe(n,r,o=Vp,l=!1){if(o){const u=o[n]||(o[n]=[]),d=r.__weh||(r.__weh=(...h)=>{PT();const w=qX(o),v=xS(r,o,n,h);return w(),OT(),v});return l?u.unshift(d):u.push(d),d}}const Sx=n=>(r,o=Vp)=>{(!Bq||n==="sp")&&Yhe(n,(...l)=>r(...l),o)},tQt=Sx("bm"),sm=Sx("m"),LBn=Sx("bu"),jBn=Sx("u"),Qhe=Sx("bum"),Zhe=Sx("um"),FBn=Sx("sp"),BBn=Sx("rtg"),WBn=Sx("rtc");function HBn(n,r=Vp){Yhe("ec",n,r)}const _We="components",UBn="directives";function Ni(n,r){return SWe(_We,n,!0,r)||n}const nQt=Symbol.for("v-ndc");function jo(n){return Fu(n)?SWe(_We,n,!1)||n:n||nQt}function TS(n){return SWe(UBn,n)}function SWe(n,r,o=!0,l=!1){const u=hp||Vp;if(u){const d=u.type;if(n===_We){const w=AWn(d,!1);if(w&&(w===r||w===iv(r)||w===Ghe(iv(r))))return d}const h=WLt(u[n]||d[n],r)||WLt(u.appContext[n],r);return!h&&l?d:h}}function WLt(n,r){return n&&(n[r]||n[iv(r)]||n[Ghe(iv(r))])}function uu(n,r,o,l){let u;const d=o&&o[l],h=Bo(n);if(h||Fu(n)){const w=h&&KD(n);let v=!1;w&&(v=!tv(n),n=qhe(n)),u=new Array(n.length);for(let y=0,E=n.length;yr(w,v,void 0,d&&d[v]));else{const w=Object.keys(n);u=new Array(w.length);for(let v=0,y=w.length;v{const d=l.fn(...u);return d&&(d.key=l.key),d}:l.fn)}return n}function Vr(n,r,o={},l,u){if(hp.ce||hp.parent&&XD(hp.parent)&&hp.parent.ce)return r!=="default"&&(o.name=r),ze(),Nn(gi,null,[bi("slot",o,l&&l())],64);let d=n[r];d&&d._c&&(d._d=!1),ze();const h=d&&rQt(d(o)),w=o.key||h&&h.key,v=Nn(gi,{key:(w&&!_x(w)?w:`_${r}`)+(!h&&l?"_fb":"")},h||(l?l():[]),h&&n._===1?64:-2);return v.scopeId&&(v.slotScopeIds=[v.scopeId+"-s"]),d&&d._c&&(d._d=!0),v}function rQt(n){return n.some(r=>Fq(r)?!(r.type===n1||r.type===gi&&!rQt(r.children)):!0)?n:null}function Xce(n,r){const o={};for(const l in n)o[/[A-Z]/.test(l)?`on:${l}`:kfe(l)]=n[l];return o}const vLe=n=>n?kQt(n)?npe(n):vLe(n.parent):null,QK=zd(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>vLe(n.parent),$root:n=>vLe(n.root),$host:n=>n.ce,$emit:n=>n.emit,$options:n=>EWe(n),$forceUpdate:n=>n.f||(n.f=()=>{vWe(n.update)}),$nextTick:n=>n.n||(n.n=RS.bind(n.proxy)),$watch:n=>dWn.bind(n)}),f7e=(n,r)=>n!==Lc&&!n.__isScriptSetup&&Va(n,r),GBn={get({_:n},r){if(r==="__v_skip")return!0;const{ctx:o,setupState:l,data:u,props:d,accessCache:h,type:w,appContext:v}=n;let y;if(r[0]!=="$"){const R=h[r];if(R!==void 0)switch(R){case 1:return l[r];case 2:return u[r];case 4:return o[r];case 3:return d[r]}else{if(f7e(l,r))return h[r]=1,l[r];if(u!==Lc&&Va(u,r))return h[r]=2,u[r];if((y=n.propsOptions[0])&&Va(y,r))return h[r]=3,d[r];if(o!==Lc&&Va(o,r))return h[r]=4,o[r];_Le&&(h[r]=0)}}const E=QK[r];let A,C;if(E)return r==="$attrs"&&Bb(n.attrs,"get",""),E(n);if((A=w.__cssModules)&&(A=A[r]))return A;if(o!==Lc&&Va(o,r))return h[r]=4,o[r];if(C=v.config.globalProperties,Va(C,r))return C[r]},set({_:n},r,o){const{data:l,setupState:u,ctx:d}=n;return f7e(u,r)?(u[r]=o,!0):l!==Lc&&Va(l,r)?(l[r]=o,!0):Va(n.props,r)||r[0]==="$"&&r.slice(1)in n?!1:(d[r]=o,!0)},has({_:{data:n,setupState:r,accessCache:o,ctx:l,appContext:u,propsOptions:d}},h){let w;return!!o[h]||n!==Lc&&Va(n,h)||f7e(r,h)||(w=d[0])&&Va(w,h)||Va(l,h)||Va(QK,h)||Va(u.config.globalProperties,h)},defineProperty(n,r,o){return o.get!=null?n._.accessCache[r]=0:Va(o,"value")&&this.set(n,r,o.value,null),Reflect.defineProperty(n,r,o)}};function VBn(){return iQt().slots}function zBn(){return iQt().attrs}function iQt(){const n=NT();return n.setupContext||(n.setupContext=xQt(n))}function HLt(n){return Bo(n)?n.reduce((r,o)=>(r[o]=null,r),{}):n}function oQt(n,r){const o={};for(const l in n)r.includes(l)||Object.defineProperty(o,l,{enumerable:!0,get:()=>n[l]});return o}let _Le=!0;function KBn(n){const r=EWe(n),o=n.proxy,l=n.ctx;_Le=!1,r.beforeCreate&&ULt(r.beforeCreate,n,"bc");const{data:u,computed:d,methods:h,watch:w,provide:v,inject:y,created:E,beforeMount:A,mounted:C,beforeUpdate:R,updated:O,activated:M,deactivated:L,beforeDestroy:H,beforeUnmount:G,destroyed:j,unmounted:Q,render:te,renderTracked:pe,renderTriggered:Le,errorCaptured:Ee,serverPrefetch:le,expose:xe,inheritAttrs:be,components:ae,directives:F,filters:me}=r;if(y&&qBn(y,l,null),h)for(const Be in h){const He=h[Be];ls(He)&&(l[Be]=He.bind(o))}if(u){const Be=u.call(o,o);Qc(Be)&&(n.data=mP(Be))}if(_Le=!0,d)for(const Be in d){const He=d[Be],Ue=ls(He)?He.bind(o,o):ls(He.get)?He.get.bind(o,o):FE,Ge=!ls(He)&&ls(He.set)?He.set.bind(o):FE,Me=To({get:Ue,set:Ge});Object.defineProperty(l,Be,{enumerable:!0,configurable:!0,get:()=>Me.value,set:vt=>Me.value=vt})}if(w)for(const Be in w)sQt(w[Be],l,o,Be);if(v){const Be=ls(v)?v.call(o):v;Reflect.ownKeys(Be).forEach(He=>{vP(He,Be[He])})}E&&ULt(E,n,"c");function we(Be,He){Bo(He)?He.forEach(Ue=>Be(Ue.bind(o))):He&&Be(He.bind(o))}if(we(tQt,A),we(sm,C),we(LBn,R),we(jBn,O),we(NBn,M),we(MBn,L),we(HBn,Ee),we(WBn,pe),we(BBn,Le),we(Qhe,G),we(Zhe,Q),we(FBn,le),Bo(xe))if(xe.length){const Be=n.exposed||(n.exposed={});xe.forEach(He=>{Object.defineProperty(Be,He,{get:()=>o[He],set:Ue=>o[He]=Ue})})}else n.exposed||(n.exposed={});te&&n.render===FE&&(n.render=te),be!=null&&(n.inheritAttrs=be),ae&&(n.components=ae),F&&(n.directives=F),le&&ZYt(n)}function qBn(n,r,o=FE){Bo(n)&&(n=SLe(n));for(const l in n){const u=n[l];let d;Qc(u)?"default"in u?d=BE(u.from||l,u.default,!0):d=BE(u.from||l):d=BE(u),_d(d)?Object.defineProperty(r,l,{enumerable:!0,configurable:!0,get:()=>d.value,set:h=>d.value=h}):r[l]=d}}function ULt(n,r,o){xS(Bo(n)?n.map(l=>l.bind(r.proxy)):n.bind(r.proxy),r,o)}function sQt(n,r,o,l){let u=l.includes(".")?yQt(o,l):()=>o[l];if(Fu(n)){const d=r[n];ls(d)&&Zs(u,d)}else if(ls(n))Zs(u,n.bind(o));else if(Qc(n))if(Bo(n))n.forEach(d=>sQt(d,r,o,l));else{const d=ls(n.handler)?n.handler.bind(o):r[n.handler];ls(d)&&Zs(u,d,n)}}function EWe(n){const r=n.type,{mixins:o,extends:l}=r,{mixins:u,optionsCache:d,config:{optionMergeStrategies:h}}=n.appContext,w=d.get(r);let v;return w?v=w:!u.length&&!o&&!l?v=r:(v={},u.length&&u.forEach(y=>kde(v,y,h,!0)),kde(v,r,h)),Qc(r)&&d.set(r,v),v}function kde(n,r,o,l=!1){const{mixins:u,extends:d}=r;d&&kde(n,d,o,!0),u&&u.forEach(h=>kde(n,h,o,!0));for(const h in r)if(!(l&&h==="expose")){const w=XBn[h]||o&&o[h];n[h]=w?w(n[h],r[h]):r[h]}return n}const XBn={data:GLt,props:VLt,emits:VLt,methods:_K,computed:_K,beforeCreate:Jg,created:Jg,beforeMount:Jg,mounted:Jg,beforeUpdate:Jg,updated:Jg,beforeDestroy:Jg,beforeUnmount:Jg,destroyed:Jg,unmounted:Jg,activated:Jg,deactivated:Jg,errorCaptured:Jg,serverPrefetch:Jg,components:_K,directives:_K,watch:YBn,provide:GLt,inject:JBn};function GLt(n,r){return r?n?function(){return zd(ls(n)?n.call(this,this):n,ls(r)?r.call(this,this):r)}:r:n}function JBn(n,r){return _K(SLe(n),SLe(r))}function SLe(n){if(Bo(n)){const r={};for(let o=0;o1)return o&&ls(r)?r.call(l&&l.proxy):r}}const aQt={},cQt=()=>Object.create(aQt),uQt=n=>Object.getPrototypeOf(n)===aQt;function eWn(n,r,o,l=!1){const u={},d=cQt();n.propsDefaults=Object.create(null),fQt(n,r,u,d);for(const h in n.propsOptions[0])h in u||(u[h]=void 0);o?n.props=l?u:hBn(u):n.type.props?n.props=u:n.props=d,n.attrs=d}function tWn(n,r,o,l){const{props:u,attrs:d,vnode:{patchFlag:h}}=n,w=Sa(u),[v]=n.propsOptions;let y=!1;if((l||h>0)&&!(h&16)){if(h&8){const E=n.vnode.dynamicProps;for(let A=0;A{v=!0;const[C,R]=dQt(A,r,!0);zd(h,C),R&&w.push(...R)};!o&&r.mixins.length&&r.mixins.forEach(E),n.extends&&E(n.extends),n.mixins&&n.mixins.forEach(E)}if(!d&&!v)return Qc(n)&&l.set(n,VD),VD;if(Bo(d))for(let E=0;En[0]==="_"||n==="$stable",kWe=n=>Bo(n)?n.map(ME):[ME(n)],rWn=(n,r,o)=>{if(r._n)return r;const l=vi((...u)=>kWe(r(...u)),o);return l._c=!1,l},pQt=(n,r,o)=>{const l=n._ctx;for(const u in n){if(hQt(u))continue;const d=n[u];if(ls(d))r[u]=rWn(u,d,l);else if(d!=null){const h=kWe(d);r[u]=()=>h}}},bQt=(n,r)=>{const o=kWe(r);n.slots.default=()=>o},gQt=(n,r,o)=>{for(const l in r)(o||l!=="_")&&(n[l]=r[l])},iWn=(n,r,o)=>{const l=n.slots=cQt();if(n.vnode.shapeFlag&32){const u=r._;u?(gQt(l,r,o),o&&wYt(l,"_",u,!0)):pQt(r,l)}else r&&bQt(n,r)},oWn=(n,r,o)=>{const{vnode:l,slots:u}=n;let d=!0,h=Lc;if(l.shapeFlag&32){const w=r._;w?o&&w===1?d=!1:gQt(u,r,o):(d=!r.$stable,pQt(r,u)),h=r}else r&&(bQt(n,r),h={default:1});if(d)for(const w in u)!hQt(w)&&h[w]==null&&delete u[w]},Yg=yWn;function sWn(n){return lWn(n)}function lWn(n,r){const o=Vhe();o.__VUE__=!0;const{insert:l,remove:u,patchProp:d,createElement:h,createText:w,createComment:v,setText:y,setElementText:E,parentNode:A,nextSibling:C,setScopeId:R=FE,insertStaticContent:O}=n,M=(T,$,B,K=null,q=null,ke=null,Re=void 0,Ie=null,St=!!$.dynamicChildren)=>{if(T===$)return;T&&!M8(T,$)&&(K=Ye(T),vt(T,q,ke,!0),T=null),$.patchFlag===-2&&(St=!1,$.dynamicChildren=null);const{type:he,ref:zt,shapeFlag:Qt}=$;switch(he){case tpe:L(T,$,B,K);break;case n1:H(T,$,B,K);break;case p7e:T==null&&G($,B,K,Re);break;case gi:ae(T,$,B,K,q,ke,Re,Ie,St);break;default:Qt&1?te(T,$,B,K,q,ke,Re,Ie,St):Qt&6?F(T,$,B,K,q,ke,Re,Ie,St):(Qt&64||Qt&128)&&he.process(T,$,B,K,q,ke,Re,Ie,St,rn)}zt!=null&&q&&Ede(zt,T&&T.ref,ke,$||T,!$)},L=(T,$,B,K)=>{if(T==null)l($.el=w($.children),B,K);else{const q=$.el=T.el;$.children!==T.children&&y(q,$.children)}},H=(T,$,B,K)=>{T==null?l($.el=v($.children||""),B,K):$.el=T.el},G=(T,$,B,K)=>{[T.el,T.anchor]=O(T.children,$,B,K,T.el,T.anchor)},j=({el:T,anchor:$},B,K)=>{let q;for(;T&&T!==$;)q=C(T),l(T,B,K),T=q;l($,B,K)},Q=({el:T,anchor:$})=>{let B;for(;T&&T!==$;)B=C(T),u(T),T=B;u($)},te=(T,$,B,K,q,ke,Re,Ie,St)=>{$.type==="svg"?Re="svg":$.type==="math"&&(Re="mathml"),T==null?pe($,B,K,q,ke,Re,Ie,St):le(T,$,q,ke,Re,Ie,St)},pe=(T,$,B,K,q,ke,Re,Ie)=>{let St,he;const{props:zt,shapeFlag:Qt,transition:$n,dirs:Gn}=T;if(St=T.el=h(T.type,ke,zt&&zt.is,zt),Qt&8?E(St,T.children):Qt&16&&Ee(T.children,St,null,K,q,d7e(T,ke),Re,Ie),Gn&&Y5(T,null,K,"created"),Le(St,T,T.scopeId,Re,K),zt){for(const ce in zt)ce!=="value"&&!KK(ce)&&d(St,ce,null,zt[ce],ke,K);"value"in zt&&d(St,"value",null,zt.value,ke),(he=zt.onVnodeBeforeMount)&&SE(he,K,T)}Gn&&Y5(T,null,K,"beforeMount");const $e=aWn(q,$n);$e&&$n.beforeEnter(St),l(St,$,B),((he=zt&&zt.onVnodeMounted)||$e||Gn)&&Yg(()=>{he&&SE(he,K,T),$e&&$n.enter(St),Gn&&Y5(T,null,K,"mounted")},q)},Le=(T,$,B,K,q)=>{if(B&&R(T,B),K)for(let ke=0;ke{for(let he=St;he{const Ie=$.el=T.el;let{patchFlag:St,dynamicChildren:he,dirs:zt}=$;St|=T.patchFlag&16;const Qt=T.props||Lc,$n=$.props||Lc;let Gn;if(B&&Q5(B,!1),(Gn=$n.onVnodeBeforeUpdate)&&SE(Gn,B,$,T),zt&&Y5($,T,B,"beforeUpdate"),B&&Q5(B,!0),(Qt.innerHTML&&$n.innerHTML==null||Qt.textContent&&$n.textContent==null)&&E(Ie,""),he?xe(T.dynamicChildren,he,Ie,B,K,d7e($,q),ke):Re||He(T,$,Ie,null,B,K,d7e($,q),ke,!1),St>0){if(St&16)be(Ie,Qt,$n,B,q);else if(St&2&&Qt.class!==$n.class&&d(Ie,"class",null,$n.class,q),St&4&&d(Ie,"style",Qt.style,$n.style,q),St&8){const $e=$.dynamicProps;for(let ce=0;ce<$e.length;ce++){const de=$e[ce],et=Qt[de],ht=$n[de];(ht!==et||de==="value")&&d(Ie,de,et,ht,q,B)}}St&1&&T.children!==$.children&&E(Ie,$.children)}else!Re&&he==null&&be(Ie,Qt,$n,B,q);((Gn=$n.onVnodeUpdated)||zt)&&Yg(()=>{Gn&&SE(Gn,B,$,T),zt&&Y5($,T,B,"updated")},K)},xe=(T,$,B,K,q,ke,Re)=>{for(let Ie=0;Ie<$.length;Ie++){const St=T[Ie],he=$[Ie],zt=St.el&&(St.type===gi||!M8(St,he)||St.shapeFlag&70)?A(St.el):B;M(St,he,zt,null,K,q,ke,Re,!0)}},be=(T,$,B,K,q)=>{if($!==B){if($!==Lc)for(const ke in $)!KK(ke)&&!(ke in B)&&d(T,ke,$[ke],null,q,K);for(const ke in B){if(KK(ke))continue;const Re=B[ke],Ie=$[ke];Re!==Ie&&ke!=="value"&&d(T,ke,Ie,Re,q,K)}"value"in B&&d(T,"value",$.value,B.value,q)}},ae=(T,$,B,K,q,ke,Re,Ie,St)=>{const he=$.el=T?T.el:w(""),zt=$.anchor=T?T.anchor:w("");let{patchFlag:Qt,dynamicChildren:$n,slotScopeIds:Gn}=$;Gn&&(Ie=Ie?Ie.concat(Gn):Gn),T==null?(l(he,B,K),l(zt,B,K),Ee($.children||[],B,zt,q,ke,Re,Ie,St)):Qt>0&&Qt&64&&$n&&T.dynamicChildren?(xe(T.dynamicChildren,$n,B,q,ke,Re,Ie),($.key!=null||q&&$===q.subTree)&&RWe(T,$,!0)):He(T,$,B,zt,q,ke,Re,Ie,St)},F=(T,$,B,K,q,ke,Re,Ie,St)=>{$.slotScopeIds=Ie,T==null?$.shapeFlag&512?q.ctx.activate($,B,K,Re,St):me($,B,K,q,ke,Re,St):ye(T,$,St)},me=(T,$,B,K,q,ke,Re)=>{const Ie=T.component=kWn(T,K,q);if(Jhe(T)&&(Ie.ctx.renderer=rn),RWn(Ie,!1,Re),Ie.asyncDep){if(q&&q.registerDep(Ie,we,Re),!T.el){const St=Ie.subTree=bi(n1);H(null,St,$,B)}}else we(Ie,T,$,B,q,ke,Re)},ye=(T,$,B)=>{const K=$.component=T.component;if(wWn(T,$,B))if(K.asyncDep&&!K.asyncResolved){Be(K,$,B);return}else K.next=$,K.update();else $.el=T.el,K.vnode=$},we=(T,$,B,K,q,ke,Re)=>{const Ie=()=>{if(T.isMounted){let{next:Qt,bu:$n,u:Gn,parent:$e,vnode:ce}=T;{const Zt=wQt(T);if(Zt){Qt&&(Qt.el=ce.el,Be(T,Qt,Re)),Zt.asyncDep.then(()=>{T.isUnmounted||Ie()});return}}let de=Qt,et;Q5(T,!1),Qt?(Qt.el=ce.el,Be(T,Qt,Re)):Qt=ce,$n&&o7e($n),(et=Qt.props&&Qt.props.onVnodeBeforeUpdate)&&SE(et,$e,Qt,ce),Q5(T,!0);const ht=h7e(T),Jt=T.subTree;T.subTree=ht,M(Jt,ht,A(Jt.el),Ye(Jt),T,q,ke),Qt.el=ht.el,de===null&&mWn(T,ht.el),Gn&&Yg(Gn,q),(et=Qt.props&&Qt.props.onVnodeUpdated)&&Yg(()=>SE(et,$e,Qt,ce),q)}else{let Qt;const{el:$n,props:Gn}=$,{bm:$e,m:ce,parent:de,root:et,type:ht}=T,Jt=XD($);if(Q5(T,!1),$e&&o7e($e),!Jt&&(Qt=Gn&&Gn.onVnodeBeforeMount)&&SE(Qt,de,$),Q5(T,!0),$n&&Oe){const Zt=()=>{T.subTree=h7e(T),Oe($n,T.subTree,T,q,null)};Jt&&ht.__asyncHydrate?ht.__asyncHydrate($n,T,Zt):Zt()}else{et.ce&&et.ce._injectChildStyle(ht);const Zt=T.subTree=h7e(T);M(null,Zt,B,K,T,q,ke),$.el=Zt.el}if(ce&&Yg(ce,q),!Jt&&(Qt=Gn&&Gn.onVnodeMounted)){const Zt=$;Yg(()=>SE(Qt,de,Zt),q)}($.shapeFlag&256||de&&XD(de.vnode)&&de.vnode.shapeFlag&256)&&T.a&&Yg(T.a,q),T.isMounted=!0,$=B=K=null}};T.scope.on();const St=T.effect=new EYt(Ie);T.scope.off();const he=T.update=St.run.bind(St),zt=T.job=St.runIfDirty.bind(St);zt.i=T,zt.id=T.uid,St.scheduler=()=>vWe(zt),Q5(T,!0),he()},Be=(T,$,B)=>{$.component=T;const K=T.vnode.props;T.vnode=$,T.next=null,tWn(T,$.props,K,B),oWn(T,$.children,B),PT(),DLt(T),OT()},He=(T,$,B,K,q,ke,Re,Ie,St=!1)=>{const he=T&&T.children,zt=T?T.shapeFlag:0,Qt=$.children,{patchFlag:$n,shapeFlag:Gn}=$;if($n>0){if($n&128){Ge(he,Qt,B,K,q,ke,Re,Ie,St);return}else if($n&256){Ue(he,Qt,B,K,q,ke,Re,Ie,St);return}}Gn&8?(zt&16&&at(he,q,ke),Qt!==he&&E(B,Qt)):zt&16?Gn&16?Ge(he,Qt,B,K,q,ke,Re,Ie,St):at(he,q,ke,!0):(zt&8&&E(B,""),Gn&16&&Ee(Qt,B,K,q,ke,Re,Ie,St))},Ue=(T,$,B,K,q,ke,Re,Ie,St)=>{T=T||VD,$=$||VD;const he=T.length,zt=$.length,Qt=Math.min(he,zt);let $n;for($n=0;$nzt?at(T,q,ke,!0,!1,Qt):Ee($,B,K,q,ke,Re,Ie,St,Qt)},Ge=(T,$,B,K,q,ke,Re,Ie,St)=>{let he=0;const zt=$.length;let Qt=T.length-1,$n=zt-1;for(;he<=Qt&&he<=$n;){const Gn=T[he],$e=$[he]=St?G4($[he]):ME($[he]);if(M8(Gn,$e))M(Gn,$e,B,null,q,ke,Re,Ie,St);else break;he++}for(;he<=Qt&&he<=$n;){const Gn=T[Qt],$e=$[$n]=St?G4($[$n]):ME($[$n]);if(M8(Gn,$e))M(Gn,$e,B,null,q,ke,Re,Ie,St);else break;Qt--,$n--}if(he>Qt){if(he<=$n){const Gn=$n+1,$e=Gn$n)for(;he<=Qt;)vt(T[he],q,ke,!0),he++;else{const Gn=he,$e=he,ce=new Map;for(he=$e;he<=$n;he++){const ki=$[he]=St?G4($[he]):ME($[he]);ki.key!=null&&ce.set(ki.key,he)}let de,et=0;const ht=$n-$e+1;let Jt=!1,Zt=0;const qr=new Array(ht);for(he=0;he=ht){vt(ki,q,ke,!0);continue}let Ri;if(ki.key!=null)Ri=ce.get(ki.key);else for(de=$e;de<=$n;de++)if(qr[de-$e]===0&&M8(ki,$[de])){Ri=de;break}Ri===void 0?vt(ki,q,ke,!0):(qr[Ri-$e]=he+1,Ri>=Zt?Zt=Ri:Jt=!0,M(ki,$[Ri],B,null,q,ke,Re,Ie,St),et++)}const ao=Jt?cWn(qr):VD;for(de=ao.length-1,he=ht-1;he>=0;he--){const ki=$e+he,Ri=$[ki],xi=ki+1{const{el:ke,type:Re,transition:Ie,children:St,shapeFlag:he}=T;if(he&6){Me(T.component.subTree,$,B,K);return}if(he&128){T.suspense.move($,B,K);return}if(he&64){Re.move(T,$,B,rn);return}if(Re===gi){l(ke,$,B);for(let Qt=0;QtIe.enter(ke),q);else{const{leave:Qt,delayLeave:$n,afterLeave:Gn}=Ie,$e=()=>l(ke,$,B),ce=()=>{Qt(ke,()=>{$e(),Gn&&Gn()})};$n?$n(ke,$e,ce):ce()}else l(ke,$,B)},vt=(T,$,B,K=!1,q=!1)=>{const{type:ke,props:Re,ref:Ie,children:St,dynamicChildren:he,shapeFlag:zt,patchFlag:Qt,dirs:$n,cacheIndex:Gn}=T;if(Qt===-2&&(q=!1),Ie!=null&&Ede(Ie,null,B,T,!0),Gn!=null&&($.renderCache[Gn]=void 0),zt&256){$.ctx.deactivate(T);return}const $e=zt&1&&$n,ce=!XD(T);let de;if(ce&&(de=Re&&Re.onVnodeBeforeUnmount)&&SE(de,$,T),zt&6)ct(T.component,B,K);else{if(zt&128){T.suspense.unmount(B,K);return}$e&&Y5(T,null,$,"beforeUnmount"),zt&64?T.type.remove(T,$,B,rn,K):he&&!he.hasOnce&&(ke!==gi||Qt>0&&Qt&64)?at(he,$,B,!1,!0):(ke===gi&&Qt&384||!q&&zt&16)&&at(St,$,B),K&&re(T)}(ce&&(de=Re&&Re.onVnodeUnmounted)||$e)&&Yg(()=>{de&&SE(de,$,T),$e&&Y5(T,null,$,"unmounted")},B)},re=T=>{const{type:$,el:B,anchor:K,transition:q}=T;if($===gi){Te(B,K);return}if($===p7e){Q(T);return}const ke=()=>{u(B),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(T.shapeFlag&1&&q&&!q.persisted){const{leave:Re,delayLeave:Ie}=q,St=()=>Re(B,ke);Ie?Ie(T.el,ke,St):St()}else ke()},Te=(T,$)=>{let B;for(;T!==$;)B=C(T),u(T),T=B;u($)},ct=(T,$,B)=>{const{bum:K,scope:q,job:ke,subTree:Re,um:Ie,m:St,a:he}=T;KLt(St),KLt(he),K&&o7e(K),q.stop(),ke&&(ke.flags|=8,vt(Re,T,$,B)),Ie&&Yg(Ie,$),Yg(()=>{T.isUnmounted=!0},$),$&&$.pendingBranch&&!$.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===$.pendingId&&($.deps--,$.deps===0&&$.resolve())},at=(T,$,B,K=!1,q=!1,ke=0)=>{for(let Re=ke;Re{if(T.shapeFlag&6)return Ye(T.component.subTree);if(T.shapeFlag&128)return T.suspense.next();const $=C(T.anchor||T.el),B=$&&$[GYt];return B?C(B):$};let mt=!1;const jt=(T,$,B)=>{T==null?$._vnode&&vt($._vnode,null,null,!0):M($._vnode||null,T,$,null,null,null,B),$._vnode=T,mt||(mt=!0,DLt(),WYt(),mt=!1)},rn={p:M,um:vt,m:Me,r:re,mt:me,mc:Ee,pc:He,pbc:xe,n:Ye,o:n};let Pe,Oe;return{render:jt,hydrate:Pe,createApp:ZBn(jt,Pe)}}function d7e({type:n,props:r},o){return o==="svg"&&n==="foreignObject"||o==="mathml"&&n==="annotation-xml"&&r&&r.encoding&&r.encoding.includes("html")?void 0:o}function Q5({effect:n,job:r},o){o?(n.flags|=32,r.flags|=4):(n.flags&=-33,r.flags&=-5)}function aWn(n,r){return(!n||n&&!n.pendingBranch)&&r&&!r.persisted}function RWe(n,r,o=!1){const l=n.children,u=r.children;if(Bo(l)&&Bo(u))for(let d=0;d>1,n[o[w]]0&&(r[l]=o[d-1]),o[d]=l)}}for(d=o.length,h=o[d-1];d-- >0;)o[d]=h,h=r[h];return o}function wQt(n){const r=n.subTree.component;if(r)return r.asyncDep&&!r.asyncResolved?r:wQt(r)}function KLt(n){if(n)for(let r=0;rBE(uWn);function Zs(n,r,o){return mQt(n,r,o)}function mQt(n,r,o=Lc){const{immediate:l,deep:u,flush:d,once:h}=o,w=zd({},o),v=r&&l||!r&&d!=="post";let y;if(Bq){if(d==="sync"){const R=fWn();y=R.__watcherHandles||(R.__watcherHandles=[])}else if(!v){const R=()=>{};return R.stop=FE,R.resume=FE,R.pause=FE,R}}const E=Vp;w.call=(R,O,M)=>xS(R,E,O,M);let A=!1;d==="post"?w.scheduler=R=>{Yg(R,E&&E.suspense)}:d!=="sync"&&(A=!0,w.scheduler=(R,O)=>{O?R():vWe(R)}),w.augmentJob=R=>{r&&(R.flags|=4),A&&(R.flags|=2,E&&(R.id=E.uid,R.i=E))};const C=RBn(n,r,w);return Bq&&(y?y.push(C):v&&C()),C}function dWn(n,r,o){const l=this.proxy,u=Fu(n)?n.includes(".")?yQt(l,n):()=>l[n]:n.bind(l,l);let d;ls(r)?d=r:(d=r.handler,o=r);const h=qX(this),w=mQt(u,d.bind(l),o);return h(),w}function yQt(n,r){const o=r.split(".");return()=>{let l=n;for(let u=0;ur==="modelValue"||r==="model-value"?n.modelModifiers:n[`${r}Modifiers`]||n[`${iv(r)}Modifiers`]||n[`${IT(r)}Modifiers`];function pWn(n,r,...o){if(n.isUnmounted)return;const l=n.vnode.props||Lc;let u=o;const d=r.startsWith("update:"),h=d&&hWn(l,r.slice(7));h&&(h.trim&&(u=o.map(E=>Fu(E)?E.trim():E)),h.number&&(u=o.map(BFn)));let w,v=l[w=kfe(r)]||l[w=kfe(iv(r))];!v&&d&&(v=l[w=kfe(IT(r))]),v&&xS(v,n,6,u);const y=l[w+"Once"];if(y){if(!n.emitted)n.emitted={};else if(n.emitted[w])return;n.emitted[w]=!0,xS(y,n,6,u)}}function vQt(n,r,o=!1){const l=r.emitsCache,u=l.get(n);if(u!==void 0)return u;const d=n.emits;let h={},w=!1;if(!ls(n)){const v=y=>{const E=vQt(y,r,!0);E&&(w=!0,zd(h,E))};!o&&r.mixins.length&&r.mixins.forEach(v),n.extends&&v(n.extends),n.mixins&&n.mixins.forEach(v)}return!d&&!w?(Qc(n)&&l.set(n,null),null):(Bo(d)?d.forEach(v=>h[v]=null):zd(h,d),Qc(n)&&l.set(n,h),h)}function epe(n,r){return!n||!Whe(r)?!1:(r=r.slice(2).replace(/Once$/,""),Va(n,r[0].toLowerCase()+r.slice(1))||Va(n,IT(r))||Va(n,r))}function h7e(n){const{type:r,vnode:o,proxy:l,withProxy:u,propsOptions:[d],slots:h,attrs:w,emit:v,render:y,renderCache:E,props:A,data:C,setupState:R,ctx:O,inheritAttrs:M}=n,L=Sde(n);let H,G;try{if(o.shapeFlag&4){const Q=u||l,te=Q;H=ME(y.call(te,Q,E,A,R,C,O)),G=w}else{const Q=r;H=ME(Q.length>1?Q(A,{attrs:w,slots:h,emit:v}):Q(A,null)),G=r.props?w:bWn(w)}}catch(Q){ZK.length=0,Xhe(Q,n,1),H=bi(n1)}let j=H;if(G&&M!==!1){const Q=Object.keys(G),{shapeFlag:te}=j;Q.length&&te&7&&(d&&Q.some(fWe)&&(G=gWn(G,d)),j=_T(j,G,!1,!0))}return o.dirs&&(j=_T(j,null,!1,!0),j.dirs=j.dirs?j.dirs.concat(o.dirs):o.dirs),o.transition&&Lq(j,o.transition),H=j,Sde(L),H}const bWn=n=>{let r;for(const o in n)(o==="class"||o==="style"||Whe(o))&&((r||(r={}))[o]=n[o]);return r},gWn=(n,r)=>{const o={};for(const l in n)(!fWe(l)||!(l.slice(9)in r))&&(o[l]=n[l]);return o};function wWn(n,r,o){const{props:l,children:u,component:d}=n,{props:h,children:w,patchFlag:v}=r,y=d.emitsOptions;if(r.dirs||r.transition)return!0;if(o&&v>=0){if(v&1024)return!0;if(v&16)return l?qLt(l,h,y):!!h;if(v&8){const E=r.dynamicProps;for(let A=0;An.__isSuspense;function yWn(n,r){r&&r.pendingBranch?Bo(n)?r.effects.push(...n):r.effects.push(n):ABn(n)}const gi=Symbol.for("v-fgt"),tpe=Symbol.for("v-txt"),n1=Symbol.for("v-cmt"),p7e=Symbol.for("v-stc"),ZK=[];let r1=null;function ze(n=!1){ZK.push(r1=n?null:[])}function vWn(){ZK.pop(),r1=ZK[ZK.length-1]||null}let kL=1;function XLt(n,r=!1){kL+=n,n<0&&r1&&r&&(r1.hasOnce=!0)}function SQt(n){return n.dynamicChildren=kL>0?r1||VD:null,vWn(),kL>0&&r1&&r1.push(n),n}function Lt(n,r,o,l,u,d){return SQt(mr(n,r,o,l,u,d,!0))}function Nn(n,r,o,l,u){return SQt(bi(n,r,o,l,u,!0))}function Fq(n){return n?n.__v_isVNode===!0:!1}function M8(n,r){return n.type===r.type&&n.key===r.key}const EQt=({key:n})=>n??null,xfe=({ref:n,ref_key:r,ref_for:o})=>(typeof n=="number"&&(n=""+n),n!=null?Fu(n)||_d(n)||ls(n)?{i:hp,r:n,k:r,f:!!o}:n:null);function mr(n,r=null,o=null,l=0,u=null,d=n===gi?0:1,h=!1,w=!1){const v={__v_isVNode:!0,__v_skip:!0,type:n,props:r,key:r&&EQt(r),ref:r&&xfe(r),scopeId:UYt,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:l,dynamicProps:u,dynamicChildren:null,appContext:null,ctx:hp};return w?(xWe(v,o),d&128&&n.normalize(v)):o&&(v.shapeFlag|=Fu(o)?8:16),kL>0&&!h&&r1&&(v.patchFlag>0||d&6)&&v.patchFlag!==32&&r1.push(v),v}const bi=_Wn;function _Wn(n,r=null,o=null,l=0,u=null,d=!1){if((!n||n===nQt)&&(n=n1),Fq(n)){const w=_T(n,r,!0);return o&&xWe(w,o),kL>0&&!d&&r1&&(w.shapeFlag&6?r1[r1.indexOf(n)]=w:r1.push(w)),w.patchFlag=-2,w}if(TWn(n)&&(n=n.__vccOpts),r){r=kLe(r);let{class:w,style:v}=r;w&&!Fu(w)&&(r.class=Lo(w)),Qc(v)&&(yWe(v)&&!Bo(v)&&(v=zd({},v)),r.style=Vb(v))}const h=Fu(n)?1:_Qt(n)?128:VYt(n)?64:Qc(n)?4:ls(n)?2:0;return mr(n,r,o,l,u,h,d,!0)}function kLe(n){return n?yWe(n)||uQt(n)?zd({},n):n:null}function _T(n,r,o=!1,l=!1){const{props:u,ref:d,patchFlag:h,children:w,transition:v}=n,y=r?Et(u||{},r):u,E={__v_isVNode:!0,__v_skip:!0,type:n.type,props:y,key:y&&EQt(y),ref:r&&r.ref?o&&d?Bo(d)?d.concat(xfe(r)):[d,xfe(r)]:xfe(r):d,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:w,target:n.target,targetStart:n.targetStart,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:r&&n.type!==gi?h===-1?16:h|16:h,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:v,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&_T(n.ssContent),ssFallback:n.ssFallback&&_T(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return v&&l&&Lq(E,v.clone(E)),E}function nm(n=" ",r=0){return bi(tpe,null,n,r)}function fr(n="",r=!1){return r?(ze(),Nn(n1,null,n)):bi(n1,null,n)}function ME(n){return n==null||typeof n=="boolean"?bi(n1):Bo(n)?bi(gi,null,n.slice()):Fq(n)?G4(n):bi(tpe,null,String(n))}function G4(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:_T(n)}function xWe(n,r){let o=0;const{shapeFlag:l}=n;if(r==null)r=null;else if(Bo(r))o=16;else if(typeof r=="object")if(l&65){const u=r.default;u&&(u._c&&(u._d=!1),xWe(n,u()),u._c&&(u._d=!0));return}else{o=32;const u=r._;!u&&!uQt(r)?r._ctx=hp:u===3&&hp&&(hp.slots._===1?r._=1:(r._=2,n.patchFlag|=1024))}else ls(r)?(r={default:r,_ctx:hp},o=32):(r=String(r),l&64?(o=16,r=[nm(r)]):o=8);n.children=r,n.shapeFlag|=o}function Et(...n){const r={};for(let o=0;oVp||hp;let Rde,RLe;{const n=Vhe(),r=(o,l)=>{let u;return(u=n[o])||(u=n[o]=[]),u.push(l),d=>{u.length>1?u.forEach(h=>h(d)):u[0](d)}};Rde=r("__VUE_INSTANCE_SETTERS__",o=>Vp=o),RLe=r("__VUE_SSR_SETTERS__",o=>Bq=o)}const qX=n=>{const r=Vp;return Rde(n),n.scope.on(),()=>{n.scope.off(),Rde(r)}},JLt=()=>{Vp&&Vp.scope.off(),Rde(null)};function kQt(n){return n.vnode.shapeFlag&4}let Bq=!1;function RWn(n,r=!1,o=!1){r&&RLe(r);const{props:l,children:u}=n.vnode,d=kQt(n);eWn(n,l,d,r),iWn(n,u,o);const h=d?xWn(n,r):void 0;return r&&RLe(!1),h}function xWn(n,r){const o=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,GBn);const{setup:l}=o;if(l){PT();const u=n.setupContext=l.length>1?xQt(n):null,d=qX(n),h=KX(l,n,0,[n.props,u]),w=pYt(h);if(OT(),d(),(w||n.sp)&&!XD(n)&&ZYt(n),w){if(h.then(JLt,JLt),r)return h.then(v=>{YLt(n,v,r)}).catch(v=>{Xhe(v,n,0)});n.asyncDep=h}else YLt(n,h,r)}else RQt(n,r)}function YLt(n,r,o){ls(r)?n.type.__ssrInlineRender?n.ssrRender=r:n.render=r:Qc(r)&&(n.setupState=LYt(r)),RQt(n,o)}let QLt;function RQt(n,r,o){const l=n.type;if(!n.render){if(!r&&QLt&&!l.render){const u=l.template||EWe(n).template;if(u){const{isCustomElement:d,compilerOptions:h}=n.appContext.config,{delimiters:w,compilerOptions:v}=l,y=zd(zd({isCustomElement:d,delimiters:w},h),v);l.render=QLt(u,y)}}n.render=l.render||FE}{const u=qX(n);PT();try{KBn(n)}finally{OT(),u()}}}const CWn={get(n,r){return Bb(n,"get",""),n[r]}};function xQt(n){const r=o=>{n.exposed=o||{}};return{attrs:new Proxy(n.attrs,CWn),slots:n.slots,emit:n.emit,expose:r}}function npe(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(LYt(X8(n.exposed)),{get(r,o){if(o in r)return r[o];if(o in QK)return QK[o](n)},has(r,o){return o in r||o in QK}})):n.proxy}function AWn(n,r=!0){return ls(n)?n.displayName||n.name:n.name||r&&n.__name}function TWn(n){return ls(n)&&"__vccOpts"in n}const To=(n,r)=>EBn(n,r,Bq);function sc(n,r,o){const l=arguments.length;return l===2?Qc(r)&&!Bo(r)?Fq(r)?bi(n,null,[r]):bi(n,r):bi(n,null,r):(l>3?o=Array.prototype.slice.call(arguments,2):l===3&&Fq(o)&&(o=[o]),bi(n,r,o))}function $Wn(n,r){const o=n.memo;if(o.length!=r.length)return!1;for(let l=0;l0&&r1&&r1.push(n),!0}const IWn="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let xLe;const ZLt=typeof window<"u"&&window.trustedTypes;if(ZLt)try{xLe=ZLt.createPolicy("vue",{createHTML:n=>n})}catch{}const CQt=xLe?n=>xLe.createHTML(n):n=>n,PWn="http://www.w3.org/2000/svg",OWn="http://www.w3.org/1998/Math/MathML",AR=typeof document<"u"?document:null,ejt=AR&&AR.createElement("template"),NWn={insert:(n,r,o)=>{r.insertBefore(n,o||null)},remove:n=>{const r=n.parentNode;r&&r.removeChild(n)},createElement:(n,r,o,l)=>{const u=r==="svg"?AR.createElementNS(PWn,n):r==="mathml"?AR.createElementNS(OWn,n):o?AR.createElement(n,{is:o}):AR.createElement(n);return n==="select"&&l&&l.multiple!=null&&u.setAttribute("multiple",l.multiple),u},createText:n=>AR.createTextNode(n),createComment:n=>AR.createComment(n),setText:(n,r)=>{n.nodeValue=r},setElementText:(n,r)=>{n.textContent=r},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>AR.querySelector(n),setScopeId(n,r){n.setAttribute(r,"")},insertStaticContent(n,r,o,l,u,d){const h=o?o.previousSibling:r.lastChild;if(u&&(u===d||u.nextSibling))for(;r.insertBefore(u.cloneNode(!0),o),!(u===d||!(u=u.nextSibling)););else{ejt.innerHTML=CQt(l==="svg"?`${n}`:l==="mathml"?`${n}`:n);const w=ejt.content;if(l==="svg"||l==="mathml"){const v=w.firstChild;for(;v.firstChild;)w.appendChild(v.firstChild);w.removeChild(v)}r.insertBefore(w,o)}return[h?h.nextSibling:r.firstChild,o?o.previousSibling:r.lastChild]}},N4="transition",qz="animation",Wq=Symbol("_vtc"),AQt={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},MWn=zd({},qYt,AQt),DWn=n=>(n.displayName="Transition",n.props=MWn,n),rpe=DWn((n,{slots:r})=>sc(OBn,LWn(n),r)),Z5=(n,r=[])=>{Bo(n)?n.forEach(o=>o(...r)):n&&n(...r)},tjt=n=>n?Bo(n)?n.some(r=>r.length>1):n.length>1:!1;function LWn(n){const r={};for(const ae in n)ae in AQt||(r[ae]=n[ae]);if(n.css===!1)return r;const{name:o="v",type:l,duration:u,enterFromClass:d=`${o}-enter-from`,enterActiveClass:h=`${o}-enter-active`,enterToClass:w=`${o}-enter-to`,appearFromClass:v=d,appearActiveClass:y=h,appearToClass:E=w,leaveFromClass:A=`${o}-leave-from`,leaveActiveClass:C=`${o}-leave-active`,leaveToClass:R=`${o}-leave-to`}=n,O=jWn(u),M=O&&O[0],L=O&&O[1],{onBeforeEnter:H,onEnter:G,onEnterCancelled:j,onLeave:Q,onLeaveCancelled:te,onBeforeAppear:pe=H,onAppear:Le=G,onAppearCancelled:Ee=j}=r,le=(ae,F,me,ye)=>{ae._enterCancelled=ye,e8(ae,F?E:w),e8(ae,F?y:h),me&&me()},xe=(ae,F)=>{ae._isLeaving=!1,e8(ae,A),e8(ae,R),e8(ae,C),F&&F()},be=ae=>(F,me)=>{const ye=ae?Le:G,we=()=>le(F,ae,me);Z5(ye,[F,we]),njt(()=>{e8(F,ae?v:d),_R(F,ae?E:w),tjt(ye)||rjt(F,l,M,we)})};return zd(r,{onBeforeEnter(ae){Z5(H,[ae]),_R(ae,d),_R(ae,h)},onBeforeAppear(ae){Z5(pe,[ae]),_R(ae,v),_R(ae,y)},onEnter:be(!1),onAppear:be(!0),onLeave(ae,F){ae._isLeaving=!0;const me=()=>xe(ae,F);_R(ae,A),ae._enterCancelled?(_R(ae,C),sjt()):(sjt(),_R(ae,C)),njt(()=>{ae._isLeaving&&(e8(ae,A),_R(ae,R),tjt(Q)||rjt(ae,l,L,me))}),Z5(Q,[ae,me])},onEnterCancelled(ae){le(ae,!1,void 0,!0),Z5(j,[ae])},onAppearCancelled(ae){le(ae,!0,void 0,!0),Z5(Ee,[ae])},onLeaveCancelled(ae){xe(ae),Z5(te,[ae])}})}function jWn(n){if(n==null)return null;if(Qc(n))return[b7e(n.enter),b7e(n.leave)];{const r=b7e(n);return[r,r]}}function b7e(n){return WFn(n)}function _R(n,r){r.split(/\s+/).forEach(o=>o&&n.classList.add(o)),(n[Wq]||(n[Wq]=new Set)).add(r)}function e8(n,r){r.split(/\s+/).forEach(l=>l&&n.classList.remove(l));const o=n[Wq];o&&(o.delete(r),o.size||(n[Wq]=void 0))}function njt(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let FWn=0;function rjt(n,r,o,l){const u=n._endId=++FWn,d=()=>{u===n._endId&&l()};if(o!=null)return setTimeout(d,o);const{type:h,timeout:w,propCount:v}=BWn(n,r);if(!h)return l();const y=h+"end";let E=0;const A=()=>{n.removeEventListener(y,C),d()},C=R=>{R.target===n&&++E>=v&&A()};setTimeout(()=>{E(o[O]||"").split(", "),u=l(`${N4}Delay`),d=l(`${N4}Duration`),h=ijt(u,d),w=l(`${qz}Delay`),v=l(`${qz}Duration`),y=ijt(w,v);let E=null,A=0,C=0;r===N4?h>0&&(E=N4,A=h,C=d.length):r===qz?y>0&&(E=qz,A=y,C=v.length):(A=Math.max(h,y),E=A>0?h>y?N4:qz:null,C=E?E===N4?d.length:v.length:0);const R=E===N4&&/\b(transform|all)(,|$)/.test(l(`${N4}Property`).toString());return{type:E,timeout:A,propCount:C,hasTransform:R}}function ijt(n,r){for(;n.lengthojt(o)+ojt(n[l])))}function ojt(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function sjt(){return document.body.offsetHeight}function WWn(n,r,o){const l=n[Wq];l&&(r=(r?[r,...l]:[...l]).join(" ")),r==null?n.removeAttribute("class"):o?n.setAttribute("class",r):n.className=r}const ljt=Symbol("_vod"),HWn=Symbol("_vsh"),UWn=Symbol(""),GWn=/(^|;)\s*display\s*:/;function VWn(n,r,o){const l=n.style,u=Fu(o);let d=!1;if(o&&!u){if(r)if(Fu(r))for(const h of r.split(";")){const w=h.slice(0,h.indexOf(":")).trim();o[w]==null&&Cfe(l,w,"")}else for(const h in r)o[h]==null&&Cfe(l,h,"");for(const h in o)h==="display"&&(d=!0),Cfe(l,h,o[h])}else if(u){if(r!==o){const h=l[UWn];h&&(o+=";"+h),l.cssText=o,d=GWn.test(o)}}else r&&n.removeAttribute("style");ljt in n&&(n[ljt]=d?l.display:"",n[HWn]&&(l.display="none"))}const ajt=/\s*!important$/;function Cfe(n,r,o){if(Bo(o))o.forEach(l=>Cfe(n,r,l));else if(o==null&&(o=""),r.startsWith("--"))n.setProperty(r,o);else{const l=zWn(n,r);ajt.test(o)?n.setProperty(IT(l),o.replace(ajt,""),"important"):n[l]=o}}const cjt=["Webkit","Moz","ms"],g7e={};function zWn(n,r){const o=g7e[r];if(o)return o;let l=iv(r);if(l!=="filter"&&l in n)return g7e[r]=l;l=Ghe(l);for(let u=0;uw7e||(YWn.then(()=>w7e=0),w7e=Date.now());function ZWn(n,r){const o=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=o.attached)return;xS(eHn(l,o.value),r,5,[l])};return o.value=n,o.attached=QWn(),o}function eHn(n,r){if(Bo(r)){const o=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{o.call(n),n._stopped=!0},r.map(l=>u=>!u._stopped&&l&&l(u))}else return r}const bjt=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,tHn=(n,r,o,l,u,d)=>{const h=u==="svg";r==="class"?WWn(n,l,h):r==="style"?VWn(n,o,l):Whe(r)?fWe(r)||XWn(n,r,o,l,d):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):nHn(n,r,l,h))?(djt(n,r,l),!n.tagName.includes("-")&&(r==="value"||r==="checked"||r==="selected")&&fjt(n,r,l,h,d,r!=="value")):n._isVueCE&&(/[A-Z]/.test(r)||!Fu(l))?djt(n,iv(r),l,d,r):(r==="true-value"?n._trueValue=l:r==="false-value"&&(n._falseValue=l),fjt(n,r,l,h))};function nHn(n,r,o,l){if(l)return!!(r==="innerHTML"||r==="textContent"||r in n&&bjt(r)&&ls(o));if(r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&n.tagName==="INPUT"||r==="type"&&n.tagName==="TEXTAREA")return!1;if(r==="width"||r==="height"){const u=n.tagName;if(u==="IMG"||u==="VIDEO"||u==="CANVAS"||u==="SOURCE")return!1}return bjt(r)&&Fu(o)?!1:r in n}const rHn=["ctrl","shift","alt","meta"],iHn={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,r)=>rHn.some(o=>n[`${o}Key`]&&!r.includes(o))},TQt=(n,r)=>{const o=n._withMods||(n._withMods={}),l=r.join(".");return o[l]||(o[l]=(u,...d)=>{for(let h=0;h{const o=n._withKeys||(n._withKeys={}),l=r.join(".");return o[l]||(o[l]=u=>{if(!("key"in u))return;const d=IT(u.key);if(r.some(h=>h===d||oHn[h]===d))return n(u)})},sHn=zd({patchProp:tHn},NWn);let gjt;function lHn(){return gjt||(gjt=sWn(sHn))}const aHn=(...n)=>{const r=lHn().createApp(...n),{mount:o}=r;return r.mount=l=>{const u=uHn(l);if(!u)return;const d=r._component;!ls(d)&&!d.render&&!d.template&&(d.template=u.innerHTML),u.nodeType===1&&(u.textContent="");const h=o(u,!1,cHn(u));return u instanceof Element&&(u.removeAttribute("v-cloak"),u.setAttribute("data-v-app","")),h},r};function cHn(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function uHn(n){return Fu(n)?document.querySelector(n):n}var fHn=Object.defineProperty,wjt=Object.getOwnPropertySymbols,dHn=Object.prototype.hasOwnProperty,hHn=Object.prototype.propertyIsEnumerable,mjt=(n,r,o)=>r in n?fHn(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o,pHn=(n,r)=>{for(var o in r||(r={}))dHn.call(r,o)&&mjt(n,o,r[o]);if(wjt)for(var o of wjt(r))hHn.call(r,o)&&mjt(n,o,r[o]);return n};function ov(n){return n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&typeof n=="object"&&Object.keys(n).length===0}function bHn(n,r,o,l=1){let u=-1;const d=ov(n),h=ov(r);return d&&h?u=0:d?u=l:h?u=-l:typeof n=="string"&&typeof r=="string"?u=o(n,r):u=nr?1:0,u}function CLe(n,r,o=new WeakSet){if(n===r)return!0;if(!n||!r||typeof n!="object"||typeof r!="object"||o.has(n)||o.has(r))return!1;o.add(n).add(r);let l=Array.isArray(n),u=Array.isArray(r),d,h,w;if(l&&u){if(h=n.length,h!=r.length)return!1;for(d=h;d--!==0;)if(!CLe(n[d],r[d],o))return!1;return!0}if(l!=u)return!1;let v=n instanceof Date,y=r instanceof Date;if(v!=y)return!1;if(v&&y)return n.getTime()==r.getTime();let E=n instanceof RegExp,A=r instanceof RegExp;if(E!=A)return!1;if(E&&A)return n.toString()==r.toString();let C=Object.keys(n);if(h=C.length,h!==Object.keys(r).length)return!1;for(d=h;d--!==0;)if(!Object.prototype.hasOwnProperty.call(r,C[d]))return!1;for(d=h;d--!==0;)if(w=C[d],!CLe(n[w],r[w],o))return!1;return!0}function gHn(n,r){return CLe(n,r)}function ipe(n){return!!(n&&n.constructor&&n.call&&n.apply)}function ks(n){return!ov(n)}function Bl(n,r){if(!n||!r)return null;try{const o=n[r];if(ks(o))return o}catch{}if(Object.keys(n).length){if(ipe(r))return r(n);if(r.indexOf(".")===-1)return n[r];{let o=r.split("."),l=n;for(let u=0,d=o.length;uwS(d)===u)||""],o),l.join("."),o):void 0:Qy(n,o)}function XX(n,r=!0){return Array.isArray(n)&&(r||n.length!==0)}function mHn(n){return ks(n)&&!isNaN(n)}function yHn(n=""){return ks(n)&&n.length===1&&!!n.match(/\S| /)}function vjt(){return new Intl.Collator(void 0,{numeric:!0}).compare}function FR(n,r){if(r){const o=r.test(n);return r.lastIndex=0,o}return!1}function vHn(...n){const r=(o={},l={})=>{const u=pHn({},o);return Object.keys(l).forEach(d=>{ZE(l[d])&&d in o&&ZE(o[d])?u[d]=r(o[d],l[d]):u[d]=l[d]}),u};return n.reduce((o,l,u)=>u===0?l:r(o,l),{})}function eq(n){return n&&n.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Gy(n){if(n&&/[\xC0-\xFF\u0100-\u017E]/.test(n)){const o={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let l in o)n=n.replace(o[l],l)}return n}function _jt(n,r,o){n&&r!==o&&(o>=n.length&&(o%=n.length,r%=n.length),n.splice(o,0,n.splice(r,1)[0]))}function Sjt(n,r,o=1,l,u=1){const d=bHn(n,r,l,o);let h=o;return(ov(n)||ov(r))&&(h=u===1?o:u),h*d}function _Hn(n){return R0(n,!1)?n[0].toUpperCase()+n.slice(1):n}function $Qt(n){return R0(n)?n.replace(/(_)/g,"-").replace(/[A-Z]/g,(r,o)=>o===0?r:"-"+r.toLowerCase()).toLowerCase():n}function Ejt(n){return R0(n)?n.replace(/[A-Z]/g,(r,o)=>o===0?r:"."+r.toLowerCase()).toLowerCase():n}function AWe(){const n=new Map;return{on(r,o){let l=n.get(r);return l?l.push(o):l=[o],n.set(r,l),this},off(r,o){let l=n.get(r);return l&&l.splice(l.indexOf(o)>>>0,1),this},emit(r,o){let l=n.get(r);l&&l.slice().map(u=>{u(o)})},clear(){n.clear()}}}var SHn=Object.defineProperty,EHn=Object.defineProperties,kHn=Object.getOwnPropertyDescriptors,xde=Object.getOwnPropertySymbols,IQt=Object.prototype.hasOwnProperty,PQt=Object.prototype.propertyIsEnumerable,kjt=(n,r,o)=>r in n?SHn(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o,mS=(n,r)=>{for(var o in r||(r={}))IQt.call(r,o)&&kjt(n,o,r[o]);if(xde)for(var o of xde(r))PQt.call(r,o)&&kjt(n,o,r[o]);return n},v7e=(n,r)=>EHn(n,kHn(r)),SR=(n,r)=>{var o={};for(var l in n)IQt.call(n,l)&&r.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&xde)for(var l of xde(n))r.indexOf(l)<0&&PQt.call(n,l)&&(o[l]=n[l]);return o},RHn=AWe(),gS=RHn;function Rjt(n,r){XX(n)?n.push(...r||[]):ZE(n)&&Object.assign(n,r)}function xHn(n){return ZE(n)&&n.hasOwnProperty("value")&&n.hasOwnProperty("type")?n.value:n}function CHn(n){return n.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function ALe(n="",r=""){return CHn(`${R0(n,!1)&&R0(r,!1)?`${n}-`:n}${r}`)}function OQt(n="",r=""){return`--${ALe(n,r)}`}function AHn(n=""){const r=(n.match(/{/g)||[]).length,o=(n.match(/}/g)||[]).length;return(r+o)%2!==0}function NQt(n,r="",o="",l=[],u){if(R0(n)){const d=/{([^}]*)}/g,h=n.trim();if(AHn(h))return;if(FR(h,d)){const w=h.replaceAll(d,E=>{const C=E.replace(/{|}/g,"").split(".").filter(R=>!l.some(O=>FR(R,O)));return`var(${OQt(o,$Qt(C.join("-")))}${ks(u)?`, ${u}`:""})`}),v=/(\d+\s+[\+\-\*\/]\s+\d+)/g,y=/var\([^)]+\)/g;return FR(w.replace(y,"0"),v)?`calc(${w})`:w}return h}else if(mHn(n))return n}function THn(n,r,o){R0(r,!1)&&n.push(`${r}:${o};`)}function gD(n,r){return n?`${n}{${r}}`:""}var $Hn=n=>{var r;const o=oc.getTheme(),l=TLe(o,n,void 0,"variable"),u=(r=l==null?void 0:l.match(/--[\w-]+/g))==null?void 0:r[0],d=TLe(o,n,void 0,"value");return{name:u,variable:l,value:d}},tq=(...n)=>TLe(oc.getTheme(),...n),TLe=(n={},r,o,l)=>{if(r){const{variable:u,options:d}=oc.defaults||{},{prefix:h,transform:w}=(n==null?void 0:n.options)||d||{},y=FR(r,/{([^}]*)}/g)?r:`{${r}}`;return l==="value"||ov(l)&&w==="strict"?oc.getTokenValue(r):NQt(y,void 0,h,[u.excludedKeyRegex],o)}return""};function IHn(n,r={}){const o=oc.defaults.variable,{prefix:l=o.prefix,selector:u=o.selector,excludedKeyRegex:d=o.excludedKeyRegex}=r,h=(y,E="")=>Object.entries(y).reduce((A,[C,R])=>{const O=FR(C,d)?ALe(E):ALe(E,$Qt(C)),M=xHn(R);if(ZE(M)){const{variables:L,tokens:H}=h(M,O);Rjt(A.tokens,H),Rjt(A.variables,L)}else A.tokens.push((l?O.replace(`${l}-`,""):O).replaceAll("-",".")),THn(A.variables,OQt(O),NQt(M,O,l,[d]));return A},{variables:[],tokens:[]}),{variables:w,tokens:v}=h(n,l);return{value:w,tokens:v,declarations:w.join(""),css:gD(u,w.join(""))}}var iS={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(n){return{type:"class",selector:n,matched:this.pattern.test(n.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(n){return{type:"attr",selector:`:root${n}`,matched:this.pattern.test(n.trim())}}},media:{pattern:/^@media (.*)$/,resolve(n){return{type:"media",selector:`${n}{:root{[CSS]}}`,matched:this.pattern.test(n.trim())}}},system:{pattern:/^system$/,resolve(n){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(n.trim())}}},custom:{resolve(n){return{type:"custom",selector:n,matched:!0}}}},resolve(n){const r=Object.keys(this.rules).filter(o=>o!=="custom").map(o=>this.rules[o]);return[n].flat().map(o=>{var l;return(l=r.map(u=>u.resolve(o)).find(u=>u.matched))!=null?l:this.rules.custom.resolve(o)})}},_toVariables(n,r){return IHn(n,{prefix:r==null?void 0:r.prefix})},getCommon({name:n="",theme:r={},params:o,set:l,defaults:u}){var d,h,w,v,y,E,A;const{preset:C,options:R}=r;let O,M,L,H,G,j,Q;if(ks(C)&&R.transform!=="strict"){const{primitive:te,semantic:pe,extend:Le}=C,Ee=pe||{},{colorScheme:le}=Ee,xe=SR(Ee,["colorScheme"]),be=Le||{},{colorScheme:ae}=be,F=SR(be,["colorScheme"]),me=le||{},{dark:ye}=me,we=SR(me,["dark"]),Be=ae||{},{dark:He}=Be,Ue=SR(Be,["dark"]),Ge=ks(te)?this._toVariables({primitive:te},R):{},Me=ks(xe)?this._toVariables({semantic:xe},R):{},vt=ks(we)?this._toVariables({light:we},R):{},re=ks(ye)?this._toVariables({dark:ye},R):{},Te=ks(F)?this._toVariables({semantic:F},R):{},ct=ks(Ue)?this._toVariables({light:Ue},R):{},at=ks(He)?this._toVariables({dark:He},R):{},[Ye,mt]=[(d=Ge.declarations)!=null?d:"",Ge.tokens],[jt,rn]=[(h=Me.declarations)!=null?h:"",Me.tokens||[]],[Pe,Oe]=[(w=vt.declarations)!=null?w:"",vt.tokens||[]],[T,$]=[(v=re.declarations)!=null?v:"",re.tokens||[]],[B,K]=[(y=Te.declarations)!=null?y:"",Te.tokens||[]],[q,ke]=[(E=ct.declarations)!=null?E:"",ct.tokens||[]],[Re,Ie]=[(A=at.declarations)!=null?A:"",at.tokens||[]];O=this.transformCSS(n,Ye,"light","variable",R,l,u),M=mt;const St=this.transformCSS(n,`${jt}${Pe}`,"light","variable",R,l,u),he=this.transformCSS(n,`${T}`,"dark","variable",R,l,u);L=`${St}${he}`,H=[...new Set([...rn,...Oe,...$])];const zt=this.transformCSS(n,`${B}${q}color-scheme:light`,"light","variable",R,l,u),Qt=this.transformCSS(n,`${Re}color-scheme:dark`,"dark","variable",R,l,u);G=`${zt}${Qt}`,j=[...new Set([...K,...ke,...Ie])],Q=Qy(C.css,{dt:tq})}return{primitive:{css:O,tokens:M},semantic:{css:L,tokens:H},global:{css:G,tokens:j},style:Q}},getPreset({name:n="",preset:r={},options:o,params:l,set:u,defaults:d,selector:h}){var w,v,y;let E,A,C;if(ks(r)&&o.transform!=="strict"){const R=n.replace("-directive",""),O=r,{colorScheme:M,extend:L,css:H}=O,G=SR(O,["colorScheme","extend","css"]),j=L||{},{colorScheme:Q}=j,te=SR(j,["colorScheme"]),pe=M||{},{dark:Le}=pe,Ee=SR(pe,["dark"]),le=Q||{},{dark:xe}=le,be=SR(le,["dark"]),ae=ks(G)?this._toVariables({[R]:mS(mS({},G),te)},o):{},F=ks(Ee)?this._toVariables({[R]:mS(mS({},Ee),be)},o):{},me=ks(Le)?this._toVariables({[R]:mS(mS({},Le),xe)},o):{},[ye,we]=[(w=ae.declarations)!=null?w:"",ae.tokens||[]],[Be,He]=[(v=F.declarations)!=null?v:"",F.tokens||[]],[Ue,Ge]=[(y=me.declarations)!=null?y:"",me.tokens||[]],Me=this.transformCSS(R,`${ye}${Be}`,"light","variable",o,u,d,h),vt=this.transformCSS(R,Ue,"dark","variable",o,u,d,h);E=`${Me}${vt}`,A=[...new Set([...we,...He,...Ge])],C=Qy(H,{dt:tq})}return{css:E,tokens:A,style:C}},getPresetC({name:n="",theme:r={},params:o,set:l,defaults:u}){var d;const{preset:h,options:w}=r,v=(d=h==null?void 0:h.components)==null?void 0:d[n];return this.getPreset({name:n,preset:v,options:w,params:o,set:l,defaults:u})},getPresetD({name:n="",theme:r={},params:o,set:l,defaults:u}){var d;const h=n.replace("-directive",""),{preset:w,options:v}=r,y=(d=w==null?void 0:w.directives)==null?void 0:d[h];return this.getPreset({name:h,preset:y,options:v,params:o,set:l,defaults:u})},applyDarkColorScheme(n){return!(n.darkModeSelector==="none"||n.darkModeSelector===!1)},getColorSchemeOption(n,r){var o;return this.applyDarkColorScheme(n)?this.regex.resolve(n.darkModeSelector===!0?r.options.darkModeSelector:(o=n.darkModeSelector)!=null?o:r.options.darkModeSelector):[]},getLayerOrder(n,r={},o,l){const{cssLayer:u}=r;return u?`@layer ${Qy(u.order||"primeui",o)}`:""},getCommonStyleSheet({name:n="",theme:r={},params:o,props:l={},set:u,defaults:d}){const h=this.getCommon({name:n,theme:r,params:o,set:u,defaults:d}),w=Object.entries(l).reduce((v,[y,E])=>v.push(`${y}="${E}"`)&&v,[]).join(" ");return Object.entries(h||{}).reduce((v,[y,E])=>{if(E!=null&&E.css){const A=eq(E==null?void 0:E.css),C=`${y}-variables`;v.push(``)}return v},[]).join("")},getStyleSheet({name:n="",theme:r={},params:o,props:l={},set:u,defaults:d}){var h;const w={name:n,theme:r,params:o,set:u,defaults:d},v=(h=n.includes("-directive")?this.getPresetD(w):this.getPresetC(w))==null?void 0:h.css,y=Object.entries(l).reduce((E,[A,C])=>E.push(`${A}="${C}"`)&&E,[]).join(" ");return v?``:""},createTokens(n={},r,o="",l="",u={}){return Object.entries(n).forEach(([d,h])=>{const w=FR(d,r.variable.excludedKeyRegex)?o:o?`${o}.${Ejt(d)}`:Ejt(d),v=l?`${l}.${d}`:d;ZE(h)?this.createTokens(h,r,w,v,u):(u[w]||(u[w]={paths:[],computed(y,E={}){var A,C;return this.paths.length===1?(A=this.paths[0])==null?void 0:A.computed(this.paths[0].scheme,E.binding):y&&y!=="none"?(C=this.paths.find(R=>R.scheme===y))==null?void 0:C.computed(y,E.binding):this.paths.map(R=>R.computed(R.scheme,E[R.scheme]))}}),u[w].paths.push({path:v,value:h,scheme:v.includes("colorScheme.light")?"light":v.includes("colorScheme.dark")?"dark":"none",computed(y,E={}){const A=/{([^}]*)}/g;let C=h;if(E.name=this.path,E.binding||(E.binding={}),FR(h,A)){const O=h.trim().replaceAll(A,H=>{var G;const j=H.replace(/{|}/g,""),Q=(G=u[j])==null?void 0:G.computed(y,E);return XX(Q)&&Q.length===2?`light-dark(${Q[0].value},${Q[1].value})`:Q==null?void 0:Q.value}),M=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,L=/var\([^)]+\)/g;C=FR(O.replace(L,"0"),M)?`calc(${O})`:O}return ov(E.binding)&&delete E.binding,{colorScheme:y,path:this.path,paths:E,value:C.includes("undefined")?void 0:C}}}))}),u},getTokenValue(n,r,o){var l;const d=(v=>v.split(".").filter(E=>!FR(E.toLowerCase(),o.variable.excludedKeyRegex)).join("."))(r),h=r.includes("colorScheme.light")?"light":r.includes("colorScheme.dark")?"dark":void 0,w=[(l=n[d])==null?void 0:l.computed(h)].flat().filter(v=>v);return w.length===1?w[0].value:w.reduce((v={},y)=>{const E=y,{colorScheme:A}=E,C=SR(E,["colorScheme"]);return v[A]=C,v},void 0)},getSelectorRule(n,r,o,l){return o==="class"||o==="attr"?gD(ks(r)?`${n}${r},${n} ${r}`:n,l):gD(n,ks(r)?gD(r,l):l)},transformCSS(n,r,o,l,u={},d,h,w){if(ks(r)){const{cssLayer:v}=u;if(l!=="style"){const y=this.getColorSchemeOption(u,h);r=o==="dark"?y.reduce((E,{type:A,selector:C})=>(ks(C)&&(E+=C.includes("[CSS]")?C.replace("[CSS]",r):this.getSelectorRule(C,w,A,r)),E),""):gD(w??":root",r)}if(v){const y={name:"primeui",order:"primeui"};ZE(v)&&(y.name=Qy(v.name,{name:n,type:l})),ks(y.name)&&(r=gD(`@layer ${y.name}`,r),d==null||d.layerNames(y.name))}return r}return""}},oc={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(n={}){const{theme:r}=n;r&&(this._theme=v7e(mS({},r),{options:mS(mS({},this.defaults.options),r.options)}),this._tokens=iS.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var n;return((n=this.theme)==null?void 0:n.preset)||{}},get options(){var n;return((n=this.theme)==null?void 0:n.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(n){this.update({theme:n}),gS.emit("theme:change",n)},getPreset(){return this.preset},setPreset(n){this._theme=v7e(mS({},this.theme),{preset:n}),this._tokens=iS.createTokens(n,this.defaults),this.clearLoadedStyleNames(),gS.emit("preset:change",n),gS.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(n){this._theme=v7e(mS({},this.theme),{options:n}),this.clearLoadedStyleNames(),gS.emit("options:change",n),gS.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(n){this._layerNames.add(n)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(n){return this._loadedStyleNames.has(n)},setLoadedStyleName(n){this._loadedStyleNames.add(n)},deleteLoadedStyleName(n){this._loadedStyleNames.delete(n)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(n){return iS.getTokenValue(this.tokens,n,this.defaults)},getCommon(n="",r){return iS.getCommon({name:n,theme:this.theme,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(n="",r){const o={name:n,theme:this.theme,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return iS.getPresetC(o)},getDirective(n="",r){const o={name:n,theme:this.theme,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return iS.getPresetD(o)},getCustomPreset(n="",r,o,l){const u={name:n,preset:r,options:this.options,selector:o,params:l,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return iS.getPreset(u)},getLayerOrderCSS(n=""){return iS.getLayerOrder(n,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(n="",r,o="style",l){return iS.transformCSS(n,r,l,o,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(n="",r,o={}){return iS.getCommonStyleSheet({name:n,theme:this.theme,params:r,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(n,r,o={}){return iS.getStyleSheet({name:n,theme:this.theme,params:r,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(n){this._loadingStyles.add(n)},onStyleUpdated(n){this._loadingStyles.add(n)},onStyleLoaded(n,{name:r}){this._loadingStyles.size&&(this._loadingStyles.delete(r),gS.emit(`theme:${r}:load`,n),!this._loadingStyles.size&&gS.emit("theme:load"))}};function PHn(n,r){return n?n.classList?n.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(n.className):!1}function hT(n,r){if(n&&r){const o=l=>{PHn(n,l)||(n.classList?n.classList.add(l):n.className+=" "+l)};[r].flat().filter(Boolean).forEach(l=>l.split(" ").forEach(o))}}function OHn(){return window.innerWidth-document.documentElement.offsetWidth}function RL(n){for(const r of document==null?void 0:document.styleSheets)try{for(const o of r==null?void 0:r.cssRules)for(const l of o==null?void 0:o.style)if(n.test(l))return{name:l,value:o.style.getPropertyValue(l).trim()}}catch{}return null}function xjt(n="p-overflow-hidden"){const r=RL(/-scrollbar-width$/);r!=null&&r.name&&document.body.style.setProperty(r.name,OHn()+"px"),hT(document.body,n)}function NHn(n){if(n){let r=document.createElement("a");if(r.download!==void 0){const{name:o,src:l}=n;return r.setAttribute("href",l),r.setAttribute("download",o),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),!0}}return!1}function MHn(n,r){let o=new Blob([n],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(o,r+".csv"):NHn({name:r+".csv",src:URL.createObjectURL(o)})||(n="data:text/csv;charset=utf-8,"+n,window.open(encodeURI(n)))}function MR(n,r){if(n&&r){const o=l=>{n.classList?n.classList.remove(l):n.className=n.className.replace(new RegExp("(^|\\b)"+l.split(" ").join("|")+"(\\b|$)","gi")," ")};[r].flat().filter(Boolean).forEach(l=>l.split(" ").forEach(o))}}function Cjt(n="p-overflow-hidden"){const r=RL(/-scrollbar-width$/);r!=null&&r.name&&document.body.style.removeProperty(r.name),MR(document.body,n)}function MQt(n){let r={width:0,height:0};return n&&(n.style.visibility="hidden",n.style.display="block",r.width=n.offsetWidth,r.height=n.offsetHeight,n.style.display="none",n.style.visibility="visible"),r}function TWe(){let n=window,r=document,o=r.documentElement,l=r.getElementsByTagName("body")[0],u=n.innerWidth||o.clientWidth||l.clientWidth,d=n.innerHeight||o.clientHeight||l.clientHeight;return{width:u,height:d}}function DHn(){let n=document.documentElement;return(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}function LHn(){let n=document.documentElement;return(window.pageYOffset||n.scrollTop)-(n.clientTop||0)}function $We(n,r,o=!0){var l,u,d,h;if(n){const w=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:MQt(n),v=w.height,y=w.width,E=r.offsetHeight,A=r.offsetWidth,C=r.getBoundingClientRect(),R=LHn(),O=DHn(),M=TWe();let L,H,G="top";C.top+E+v>M.height?(L=C.top+R-v,G="bottom",L<0&&(L=R)):L=E+C.top+R,C.left+y>M.width?H=Math.max(0,C.left+O+A-y):H=C.left+O,n.style.top=L+"px",n.style.left=H+"px",n.style.transformOrigin=G,o&&(n.style.marginTop=G==="bottom"?`calc(${(u=(l=RL(/-anchor-gutter$/))==null?void 0:l.value)!=null?u:"2px"} * -1)`:(h=(d=RL(/-anchor-gutter$/))==null?void 0:d.value)!=null?h:"")}}function xL(n,r){n&&(typeof r=="string"?n.style.cssText=r:Object.entries(r||{}).forEach(([o,l])=>n.style[o]=l))}function Kp(n,r){if(n instanceof HTMLElement){let o=n.offsetWidth;if(r){let l=getComputedStyle(n);o+=parseFloat(l.marginLeft)+parseFloat(l.marginRight)}return o}return 0}function jHn(n,r,o=!0){var l,u,d,h;if(n){const w=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:MQt(n),v=r.offsetHeight,y=r.getBoundingClientRect(),E=TWe();let A,C,R="top";y.top+v+w.height>E.height?(A=-1*w.height,R="bottom",y.top+A<0&&(A=-1*y.top)):A=v,w.width>E.width?C=y.left*-1:y.left+w.width>E.width?C=(y.left+w.width-E.width)*-1:C=0,n.style.top=A+"px",n.style.left=C+"px",n.style.transformOrigin=R,o&&(n.style.marginTop=R==="bottom"?`calc(${(u=(l=RL(/-anchor-gutter$/))==null?void 0:l.value)!=null?u:"2px"} * -1)`:(h=(d=RL(/-anchor-gutter$/))==null?void 0:d.value)!=null?h:"")}}function nj(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"}function Afe(){if(window.getSelection){const n=window.getSelection()||{};n.empty?n.empty():n.removeAllRanges&&n.rangeCount>0&&n.getRangeAt(0).getClientRects().length>0&&n.removeAllRanges()}}function Cde(n,r={}){if(nj(n)){const o=(l,u)=>{var d,h;const w=(d=n==null?void 0:n.$attrs)!=null&&d[l]?[(h=n==null?void 0:n.$attrs)==null?void 0:h[l]]:[];return[u].flat().reduce((v,y)=>{if(y!=null){const E=typeof y;if(E==="string"||E==="number")v.push(y);else if(E==="object"){const A=Array.isArray(y)?o(l,y):Object.entries(y).map(([C,R])=>l==="style"&&(R||R===0)?`${C.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${R}`:R?C:void 0);v=A.length?v.concat(A.filter(C=>!!C)):v}}return v},w)};Object.entries(r).forEach(([l,u])=>{if(u!=null){const d=l.match(/^on(.+)/);d?n.addEventListener(d[1].toLowerCase(),u):l==="p-bind"||l==="pBind"?Cde(n,u):(u=l==="class"?[...new Set(o("class",u))].join(" ").trim():l==="style"?o("style",u).join(";").trim():u,(n.$attrs=n.$attrs||{})&&(n.$attrs[l]=u),n.setAttribute(l,u))}})}}function DQt(n,r={},...o){{const l=document.createElement(n);return Cde(l,r),l.append(...o),l}}function wD(n,r){return nj(n)?Array.from(n.querySelectorAll(r)):[]}function pT(n,r){return nj(n)?n.matches(r)?n:n.querySelector(r):null}function Gp(n,r){n&&document.activeElement!==n&&n.focus(r)}function cp(n,r){if(nj(n)){const o=n.getAttribute(r);return isNaN(o)?o==="true"||o==="false"?o==="true":o:+o}}function IWe(n,r=""){let o=wD(n,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}`),l=[];for(let u of o)getComputedStyle(u).display!="none"&&getComputedStyle(u).visibility!="hidden"&&l.push(u);return l}function D8(n,r){const o=IWe(n,r);return o.length>0?o[0]:null}function oT(n){if(n){let r=n.offsetHeight,o=getComputedStyle(n);return r-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),r}return 0}function FHn(n){if(n){n.style.visibility="hidden",n.style.display="block";let r=n.offsetHeight;return n.style.display="none",n.style.visibility="visible",r}return 0}function BHn(n){if(n){n.style.visibility="hidden",n.style.display="block";let r=n.offsetWidth;return n.style.display="none",n.style.visibility="visible",r}return 0}function PWe(n){if(n){let r=n.parentNode;return r&&r instanceof ShadowRoot&&r.host&&(r=r.host),r}return null}function Tfe(n){var r;if(n){let o=(r=PWe(n))==null?void 0:r.childNodes,l=0;if(o)for(let u=0;u0?o[o.length-1]:null}function OWe(n,r){let o=n.nextElementSibling;for(;o;){if(o.matches(r))return o;o=o.nextElementSibling}return null}function sT(n){if(n){let r=n.getBoundingClientRect();return{top:r.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:r.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function BR(n,r){if(n){let o=n.offsetHeight;if(r){let l=getComputedStyle(n);o+=parseFloat(l.marginTop)+parseFloat(l.marginBottom)}return o}return 0}function jQt(n,r=[]){const o=PWe(n);return o===null?r:jQt(o,r.concat([o]))}function NWe(n,r){let o=n.previousElementSibling;for(;o;){if(o.matches(r))return o;o=o.previousElementSibling}return null}function WHn(n){let r=[];if(n){let o=jQt(n);const l=/(auto|scroll)/,u=d=>{try{let h=window.getComputedStyle(d,null);return l.test(h.getPropertyValue("overflow"))||l.test(h.getPropertyValue("overflowX"))||l.test(h.getPropertyValue("overflowY"))}catch{return!1}};for(let d of o){let h=d.nodeType===1&&d.dataset.scrollselectors;if(h){let w=h.split(",");for(let v of w){let y=pT(d,v);y&&u(y)&&r.push(y)}}d.nodeType!==9&&u(d)&&r.push(d)}}return r}function Ajt(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function HHn(n){return!!(n!==null&&typeof n<"u"&&n.nodeName&&PWe(n))}function lT(n){if(n){let r=n.offsetWidth,o=getComputedStyle(n);return r-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),r}return 0}function Tjt(n,r,o){n[r].apply(n,o)}function UHn(){return/(android)/i.test(navigator.userAgent)}function _7e(n){if(n){const r=n.nodeName,o=n.parentElement&&n.parentElement.nodeName;return r==="INPUT"||r==="TEXTAREA"||r==="BUTTON"||r==="A"||o==="INPUT"||o==="TEXTAREA"||o==="BUTTON"||o==="A"||!!n.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1}function ope(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function $jt(n,r=""){return nj(n)?n.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}, + [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}`):!1}function Ade(n){return!!(n&&n.offsetParent!=null)}function FQt(n){return n?getComputedStyle(n).direction==="rtl":!1}function MWe(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function JX(n,r="",o){nj(n)&&o!==null&&o!==void 0&&n.setAttribute(r,o)}var Jce={};function DWe(n="pui_id_"){return Jce.hasOwnProperty(n)||(Jce[n]=0),Jce[n]++,`${n}${Jce[n]}`}function GHn(){let n=[];const r=(h,w,v=999)=>{const y=u(h,w,v),E=y.value+(y.key===h?0:v)+1;return n.push({key:h,value:E}),E},o=h=>{n=n.filter(w=>w.value!==h)},l=(h,w)=>u(h).value,u=(h,w,v=0)=>[...n].reverse().find(y=>!0)||{key:h,value:v},d=h=>h&&parseInt(h.style.zIndex,10)||0;return{get:d,set:(h,w,v)=>{w&&(w.style.zIndex=String(r(h,!0,v)))},clear:h=>{h&&(o(d(h)),h.style.zIndex="")},getCurrent:h=>l(h)}}var nv=GHn(),pf={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},Tde={AND:"and",OR:"or"};function Ijt(n,r){var o=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!o){if(Array.isArray(n)||(o=VHn(n))||r){o&&(n=o);var l=0,u=function(){};return{s:u,n:function(){return l>=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(y){throw y},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,w=!1;return{s:function(){o=o.call(n)},n:function(){var y=o.next();return h=y.done,y},e:function(y){w=!0,d=y},f:function(){try{h||o.return==null||o.return()}finally{if(w)throw d}}}}function VHn(n,r){if(n){if(typeof n=="string")return Pjt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Pjt(n,r):void 0}}function Pjt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);oo.getTime():r>o},gte:function(r,o){return o==null?!0:r==null?!1:r.getTime&&o.getTime?r.getTime()>=o.getTime():r>=o},dateIs:function(r,o){return o==null?!0:r==null?!1:r.toDateString()===o.toDateString()},dateIsNot:function(r,o){return o==null?!0:r==null?!1:r.toDateString()!==o.toDateString()},dateBefore:function(r,o){return o==null?!0:r==null?!1:r.getTime()o.getTime()}},register:function(r,o){this.filters[r]=o}};function Hq(n){"@babel/helpers - typeof";return Hq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hq(n)}function Ojt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function Njt(n){for(var r=1;r1&&arguments[1]!==void 0?arguments[1]:!0;NT()?sm(n):r?n():RS(n)}var JHn=0;function YHn(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=Fo(!1),l=Fo(n),u=Fo(null),d=ope()?window.document:void 0,h=r.document,w=h===void 0?d:h,v=r.immediate,y=v===void 0?!0:v,E=r.manual,A=E===void 0?!1:E,C=r.name,R=C===void 0?"style_".concat(++JHn):C,O=r.id,M=O===void 0?void 0:O,L=r.media,H=L===void 0?void 0:L,G=r.nonce,j=G===void 0?void 0:G,Q=r.first,te=Q===void 0?!1:Q,pe=r.onMounted,Le=pe===void 0?void 0:pe,Ee=r.onUpdated,le=Ee===void 0?void 0:Ee,xe=r.onLoad,be=xe===void 0?void 0:xe,ae=r.props,F=ae===void 0?{}:ae,me=function(){},ye=function(He){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w){var Ge=Njt(Njt({},F),Ue),Me=Ge.name||R,vt=Ge.id||M,re=Ge.nonce||j;u.value=w.querySelector('style[data-primevue-style-id="'.concat(Me,'"]'))||w.getElementById(vt)||w.createElement("style"),u.value.isConnected||(l.value=He||n,Cde(u.value,{type:"text/css",id:vt,media:H,nonce:re}),te?w.head.prepend(u.value):w.head.appendChild(u.value),JX(u.value,"data-primevue-style-id",Me),Cde(u.value,Ge),u.value.onload=function(Te){return be==null?void 0:be(Te,{name:Me})},Le==null||Le(Me)),!o.value&&(me=Zs(l,function(Te){u.value.textContent=Te,le==null||le(Me)},{immediate:!0}),o.value=!0)}},we=function(){!w||!o.value||(me(),HHn(u.value)&&w.head.removeChild(u.value),o.value=!1)};return y&&!A&&XHn(ye),{id:M,name:R,el:u,css:l,unload:we,load:ye,isLoaded:zX(o)}}function Uq(n){"@babel/helpers - typeof";return Uq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Uq(n)}function Mjt(n,r){return tUn(n)||eUn(n,r)||ZHn(n,r)||QHn()}function QHn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZHn(n,r){if(n){if(typeof n=="string")return Djt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Djt(n,r):void 0}}function Djt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(d){return d},u=l(Qy(r,{dt:tq}));return ks(u)?YHn(eq(u),S7e({name:this.name},o)):{}},loadCSS:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,r)},loadTheme:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.theme,o,function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oc.transformCSS(o.name||r.name,"".concat(u).concat(l))})},getCommonTheme:function(r){return oc.getCommon(this.name,r)},getComponentTheme:function(r){return oc.getComponent(this.name,r)},getDirectiveTheme:function(r){return oc.getDirective(this.name,r)},getPresetTheme:function(r,o,l){return oc.getCustomPreset(this.name,r,o,l)},getLayerOrderThemeCSS:function(){return oc.getLayerOrderCSS(this.name)},getStyleSheet:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var l=Qy(this.css,{dt:tq})||"",u=eq("".concat(l).concat(r)),d=Object.entries(o).reduce(function(h,w){var v=Mjt(w,2),y=v[0],E=v[1];return h.push("".concat(y,'="').concat(E,'"'))&&h},[]).join(" ");return ks(u)?'"):""}return""},getCommonThemeStyleSheet:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return oc.getCommonStyleSheet(this.name,r,o)},getThemeStyleSheet:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=[oc.getStyleSheet(this.name,r,o)];if(this.theme){var u=this.name==="base"?"global-style":"".concat(this.name,"-style"),d=Qy(this.theme,{dt:tq}),h=eq(oc.transformCSS(u,d)),w=Object.entries(o).reduce(function(v,y){var E=Mjt(y,2),A=E[0],C=E[1];return v.push("".concat(A,'="').concat(C,'"'))&&v},[]).join(" ");ks(h)&&l.push('"))}return l.join("")},extend:function(r){return S7e(S7e({},this),{},{css:void 0,theme:void 0},r)}},DD=AWe();function Gq(n){"@babel/helpers - typeof";return Gq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gq(n)}function jjt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function Yce(n){for(var r=1;rn.length)&&(r=n.length);for(var o=0,l=Array(r);o1?o-1:0),u=1;u0&&arguments[0]!==void 0?arguments[0]:function(){};aT.clearLoadedStyleNames(),gS.on("theme:change",r)},_getHostInstance:function(r){return r?this.$options.hostName?r.$.type.name===this.$options.hostName?r:this._getHostInstance(r.$parentInstance):r.$parentInstance:void 0},_getPropValue:function(r){var o;return this[r]||((o=this._getHostInstance(this))===null||o===void 0?void 0:o[r])},_getOptionValue:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return CWe(r,o,l)},_getPTValue:function(){var r,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,h=/./g.test(l)&&!!u[l.split(".")[0]],w=this._getPropValue("ptOptions")||((r=this.$primevueConfig)===null||r===void 0?void 0:r.ptOptions)||{},v=w.mergeSections,y=v===void 0?!0:v,E=w.mergeProps,A=E===void 0?!1:E,C=d?h?this._useGlobalPT(this._getPTClassValue,l,u):this._useDefaultPT(this._getPTClassValue,l,u):void 0,R=h?void 0:this._getPTSelf(o,this._getPTClassValue,l,jl(jl({},u),{},{global:C||{}})),O=this._getPTDatasets(l);return y||!y&&R?A?this._mergeProps(A,C,R,O):jl(jl(jl({},C),R),O):jl(jl({},R),O)},_getPTSelf:function(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length,l=new Array(o>1?o-1:0),u=1;u0&&arguments[0]!==void 0?arguments[0]:"",u="data-pc-",d=l==="root"&&ks((r=this.pt)===null||r===void 0?void 0:r["data-pc-section"]);return l!=="transition"&&jl(jl({},l==="root"&&jl(jl(SK({},"".concat(u,"name"),wS(d?(o=this.pt)===null||o===void 0?void 0:o["data-pc-section"]:this.$.type.name)),d&&SK({},"".concat(u,"extend"),wS(this.$.type.name))),ope()&&SK({},"".concat(this.$attrSelector),""))),{},SK({},"".concat(u,"section"),wS(l)))},_getPTClassValue:function(){var r=this._getOptionValue.apply(this,arguments);return R0(r)||XX(r)?{class:r}:r},_getPT:function(r){var o=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",u=arguments.length>2?arguments[2]:void 0,d=function(w){var v,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=u?u(w):w,A=wS(l),C=wS(o.$name);return(v=y?A!==C?E==null?void 0:E[A]:void 0:E==null?void 0:E[A])!==null&&v!==void 0?v:E};return r!=null&&r.hasOwnProperty("_usept")?{_usept:r._usept,originalValue:d(r.originalValue),value:d(r.value)}:d(r,!0)},_usePT:function(r,o,l,u){var d=function(M){return o(M,l,u)};if(r!=null&&r.hasOwnProperty("_usept")){var h,w=r._usept||((h=this.$primevueConfig)===null||h===void 0?void 0:h.ptOptions)||{},v=w.mergeSections,y=v===void 0?!0:v,E=w.mergeProps,A=E===void 0?!1:E,C=d(r.originalValue),R=d(r.value);return C===void 0&&R===void 0?void 0:R0(R)?R:R0(C)?C:y||!y&&R?A?this._mergeProps(A,C,R):jl(jl({},C),R):R}return d(r)},_useGlobalPT:function(r,o,l){return this._usePT(this.globalPT,r,o,l)},_useDefaultPT:function(r,o,l){return this._usePT(this.defaultPT,r,o,l)},ptm:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,r,jl(jl({},this.$params),o))},ptmi:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Et(this.$_attrsWithoutPT,this.ptm(r,o))},ptmo:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(r,o,jl({instance:this},l),!1)},cx:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,r,jl(jl({},this.$params),o))},sx:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(o){var u=this._getOptionValue(this.$style.inlineStyles,r,jl(jl({},this.$params),l)),d=this._getOptionValue(Wjt.inlineStyles,r,jl(jl({},this.$params),l));return[d,u]}}},computed:{globalPT:function(){var r,o=this;return this._getPT((r=this.$primevueConfig)===null||r===void 0?void 0:r.pt,void 0,function(l){return Qy(l,{instance:o})})},defaultPT:function(){var r,o=this;return this._getPT((r=this.$primevueConfig)===null||r===void 0?void 0:r.pt,void 0,function(l){return o._getOptionValue(l,o.$name,jl({},o.$params))||Qy(l,jl({},o.$params))})},isUnstyled:function(){var r;return this.unstyled!==void 0?this.unstyled:(r=this.$primevueConfig)===null||r===void 0?void 0:r.unstyled},$inProps:function(){var r,o=Object.keys(((r=this.$.vnode)===null||r===void 0?void 0:r.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(l){var u=Xz(l,1),d=u[0];return o==null?void 0:o.includes(d)}))},$theme:function(){var r;return(r=this.$primevueConfig)===null||r===void 0?void 0:r.theme},$style:function(){return jl(jl({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var r;return{nonce:(r=this.$primevueConfig)===null||r===void 0||(r=r.csp)===null||r===void 0?void 0:r.nonce}},$primevueConfig:function(){var r;return(r=this.$primevue)===null||r===void 0?void 0:r.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var r=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:r,props:r==null?void 0:r.$props,state:r==null?void 0:r.$data,attrs:r==null?void 0:r.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(r){var o=Xz(r,1),l=o[0];return l==null?void 0:l.startsWith("pt:")}).reduce(function(r,o){var l=Xz(o,2),u=l[0],d=l[1],h=u.split(":"),w=iVn(h),v=w.slice(1);return v==null||v.reduce(function(y,E,A,C){return!y[E]&&(y[E]=A===C.length-1?d:{}),y[E]},r),r},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(r){var o=Xz(r,1),l=o[0];return!(l!=null&&l.startsWith("pt:"))}).reduce(function(r,o){var l=Xz(o,2),u=l[0],d=l[1];return r[u]=d,r},{})}}},cVn=function(r){var o=r.dt;return` +.p-toolbar { + display: flex; + align-items: center; + justify-content: space-between; + flex-wrap: wrap; + padding: `.concat(o("toolbar.padding"),`; + background: `).concat(o("toolbar.background"),`; + border: 1px solid `).concat(o("toolbar.border.color"),`; + color: `).concat(o("toolbar.color"),`; + border-radius: `).concat(o("toolbar.border.radius"),`; + gap: `).concat(o("toolbar.gap"),`; +} + +.p-toolbar-start, +.p-toolbar-center, +.p-toolbar-end { + display: flex; + align-items: center; +} +`)},uVn={root:"p-toolbar p-component",start:"p-toolbar-start",center:"p-toolbar-center",end:"p-toolbar-end"},fVn=Bs.extend({name:"toolbar",theme:cVn,classes:uVn}),dVn={name:"BaseToolbar",extends:Kl,props:{ariaLabelledby:{type:String,default:null}},style:fVn,provide:function(){return{$pcToolbar:this,$parentInstance:this}}},UQt={name:"Toolbar",extends:dVn,inheritAttrs:!1},hVn=["aria-labelledby"];function pVn(n,r,o,l,u,d){return ze(),Lt("div",Et({class:n.cx("root"),role:"toolbar","aria-labelledby":n.ariaLabelledby},n.ptmi("root")),[mr("div",Et({class:n.cx("start")},n.ptm("start")),[Vr(n.$slots,"start")],16),mr("div",Et({class:n.cx("center")},n.ptm("center")),[Vr(n.$slots,"center")],16),mr("div",Et({class:n.cx("end")},n.ptm("end")),[Vr(n.$slots,"end")],16)],16,hVn)}UQt.render=pVn;var bVn=` +.p-icon { + display: inline-block; + vertical-align: baseline; +} + +.p-icon-spin { + -webkit-animation: p-icon-spin 2s infinite linear; + animation: p-icon-spin 2s infinite linear; +} + +@-webkit-keyframes p-icon-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} + +@keyframes p-icon-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} +`,gVn=Bs.extend({name:"baseicon",css:bVn});function Kq(n){"@babel/helpers - typeof";return Kq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Kq(n)}function Gjt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function Vjt(n){for(var r=1;rn.length)&&(r=n.length);for(var o=0,l=Array(r);o0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,v=function(){var G=cl._getOptionValue.apply(cl,arguments);return R0(G)||XX(G)?{class:G}:G},y=((r=l.binding)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r.ptOptions)||((o=l.$primevueConfig)===null||o===void 0?void 0:o.ptOptions)||{},E=y.mergeSections,A=E===void 0?!0:E,C=y.mergeProps,R=C===void 0?!1:C,O=w?cl._useDefaultPT(l,l.defaultPT(),v,d,h):void 0,M=cl._usePT(l,cl._getPT(u,l.$name),v,d,la(la({},h),{},{global:O||{}})),L=cl._getPTDatasets(l,d);return A||!A&&M?R?cl._mergeProps(l,R,O,M,L):la(la(la({},O),M),L):la(la({},M),L)},_getPTDatasets:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l="data-pc-";return la(la({},o==="root"&&ILe({},"".concat(l,"name"),wS(r.$name))),{},ILe({},"".concat(l,"section"),wS(o)))},_getPT:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=arguments.length>2?arguments[2]:void 0,u=function(h){var w,v=l?l(h):h,y=wS(o);return(w=v==null?void 0:v[y])!==null&&w!==void 0?w:v};return r!=null&&r.hasOwnProperty("_usept")?{_usept:r._usept,originalValue:u(r.originalValue),value:u(r.value)}:u(r)},_usePT:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,d=arguments.length>4?arguments[4]:void 0,h=function(L){return l(L,u,d)};if(o!=null&&o.hasOwnProperty("_usept")){var w,v=o._usept||((w=r.$primevueConfig)===null||w===void 0?void 0:w.ptOptions)||{},y=v.mergeSections,E=y===void 0?!0:y,A=v.mergeProps,C=A===void 0?!1:A,R=h(o.originalValue),O=h(o.value);return R===void 0&&O===void 0?void 0:R0(O)?O:R0(R)?R:E||!E&&O?C?cl._mergeProps(r,C,R,O):la(la({},R),O):O}return h(o)},_useDefaultPT:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,d=arguments.length>4?arguments[4]:void 0;return cl._usePT(r,o,l,u,d)},_loadStyles:function(r,o,l){var u,d=cl._getConfig(o,l),h={nonce:d==null||(u=d.csp)===null||u===void 0?void 0:u.nonce};cl._loadCoreStyles(r.$instance,h),cl._loadThemeStyles(r.$instance,h),cl._loadScopedThemeStyles(r.$instance,h),cl._themeChangeListener(function(){return cl._loadThemeStyles(r.$instance,h)})},_loadCoreStyles:function(){var r,o,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;if(!aT.isStyleNameLoaded((r=l.$style)===null||r===void 0?void 0:r.name)&&(o=l.$style)!==null&&o!==void 0&&o.name){var d;Bs.loadCSS(u),(d=l.$style)===null||d===void 0||d.loadCSS(u),aT.setLoadedStyleName(l.$style.name)}},_loadThemeStyles:function(){var r,o,l,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0;if(!(u!=null&&u.isUnstyled()||(u==null||(r=u.theme)===null||r===void 0?void 0:r.call(u))==="none")){if(!oc.isStyleNameLoaded("common")){var h,w,v=((h=u.$style)===null||h===void 0||(w=h.getCommonTheme)===null||w===void 0?void 0:w.call(h))||{},y=v.primitive,E=v.semantic,A=v.global,C=v.style;Bs.load(y==null?void 0:y.css,la({name:"primitive-variables"},d)),Bs.load(E==null?void 0:E.css,la({name:"semantic-variables"},d)),Bs.load(A==null?void 0:A.css,la({name:"global-variables"},d)),Bs.loadTheme(la({name:"global-style"},d),C),oc.setLoadedStyleName("common")}if(!oc.isStyleNameLoaded((o=u.$style)===null||o===void 0?void 0:o.name)&&(l=u.$style)!==null&&l!==void 0&&l.name){var R,O,M,L,H=((R=u.$style)===null||R===void 0||(O=R.getDirectiveTheme)===null||O===void 0?void 0:O.call(R))||{},G=H.css,j=H.style;(M=u.$style)===null||M===void 0||M.load(G,la({name:"".concat(u.$style.name,"-variables")},d)),(L=u.$style)===null||L===void 0||L.loadTheme(la({name:"".concat(u.$style.name,"-style")},d),j),oc.setLoadedStyleName(u.$style.name)}if(!oc.isStyleNameLoaded("layer-order")){var Q,te,pe=(Q=u.$style)===null||Q===void 0||(te=Q.getLayerOrderThemeCSS)===null||te===void 0?void 0:te.call(Q);Bs.load(pe,la({name:"layer-order",first:!0},d)),oc.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,l=r.preset();if(l&&r.$attrSelector){var u,d,h,w=((u=r.$style)===null||u===void 0||(d=u.getPresetTheme)===null||d===void 0?void 0:d.call(u,l,"[".concat(r.$attrSelector,"]")))||{},v=w.css,y=(h=r.$style)===null||h===void 0?void 0:h.load(v,la({name:"".concat(r.$attrSelector,"-").concat(r.$style.name)},o));r.scopedStyleEl=y.el}},_themeChangeListener:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};aT.clearLoadedStyleNames(),gS.on("theme:change",r)},_hook:function(r,o,l,u,d,h){var w,v,y="on".concat(_Hn(o)),E=cl._getConfig(u,d),A=l==null?void 0:l.$instance,C=cl._usePT(A,cl._getPT(u==null||(w=u.value)===null||w===void 0?void 0:w.pt,r),cl._getOptionValue,"hooks.".concat(y)),R=cl._useDefaultPT(A,E==null||(v=E.pt)===null||v===void 0||(v=v.directives)===null||v===void 0?void 0:v[r],cl._getOptionValue,"hooks.".concat(y)),O={el:l,binding:u,vnode:d,prevVnode:h};C==null||C(A,O),R==null||R(A,O)},_mergeProps:function(){for(var r=arguments.length>1?arguments[1]:void 0,o=arguments.length,l=new Array(o>2?o-2:0),u=2;u1&&arguments[1]!==void 0?arguments[1]:{},l=function(h,w,v,y,E){var A,C,R,O;w._$instances=w._$instances||{};var M=cl._getConfig(v,y),L=w._$instances[r]||{},H=ov(L)?la(la({},o),o==null?void 0:o.methods):{};w._$instances[r]=la(la({},L),{},{$name:r,$host:w,$binding:v,$modifiers:v==null?void 0:v.modifiers,$value:v==null?void 0:v.value,$el:L.$el||w||void 0,$style:la({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},o==null?void 0:o.style),$primevueConfig:M,$attrSelector:(A=w.$pd)===null||A===void 0||(A=A[r])===null||A===void 0?void 0:A.attrSelector,defaultPT:function(){return cl._getPT(M==null?void 0:M.pt,void 0,function(j){var Q;return j==null||(Q=j.directives)===null||Q===void 0?void 0:Q[r]})},isUnstyled:function(){var j,Q;return((j=w.$instance)===null||j===void 0||(j=j.$binding)===null||j===void 0||(j=j.value)===null||j===void 0?void 0:j.unstyled)!==void 0?(Q=w.$instance)===null||Q===void 0||(Q=Q.$binding)===null||Q===void 0||(Q=Q.value)===null||Q===void 0?void 0:Q.unstyled:M==null?void 0:M.unstyled},theme:function(){var j;return(j=w.$instance)===null||j===void 0||(j=j.$primevueConfig)===null||j===void 0?void 0:j.theme},preset:function(){var j;return(j=w.$instance)===null||j===void 0||(j=j.$binding)===null||j===void 0||(j=j.value)===null||j===void 0?void 0:j.dt},ptm:function(){var j,Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return cl._getPTValue(w.$instance,(j=w.$instance)===null||j===void 0||(j=j.$binding)===null||j===void 0||(j=j.value)===null||j===void 0?void 0:j.pt,Q,la({},te))},ptmo:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return cl._getPTValue(w.$instance,j,Q,te,!1)},cx:function(){var j,Q,te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(j=w.$instance)!==null&&j!==void 0&&j.isUnstyled()?void 0:cl._getOptionValue((Q=w.$instance)===null||Q===void 0||(Q=Q.$style)===null||Q===void 0?void 0:Q.classes,te,la({},pe))},sx:function(){var j,Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return te?cl._getOptionValue((j=w.$instance)===null||j===void 0||(j=j.$style)===null||j===void 0?void 0:j.inlineStyles,Q,la({},pe)):void 0}},H),w.$instance=w._$instances[r],(C=(R=w.$instance)[h])===null||C===void 0||C.call(R,w,v,y,E),w["$".concat(r)]=w.$instance,cl._hook(r,h,w,v,y,E),w.$pd||(w.$pd={}),w.$pd[r]=la(la({},(O=w.$pd)===null||O===void 0?void 0:O[r]),{},{name:r,instance:w.$instance})},u=function(h){var w,v,y,E,A,C=(w=h.$instance)===null||w===void 0?void 0:w.watch;C==null||(v=C.config)===null||v===void 0||v.call(h.$instance,(y=h.$instance)===null||y===void 0?void 0:y.$primevueConfig),DD.on("config:change",function(R){var O,M=R.newValue,L=R.oldValue;return C==null||(O=C.config)===null||O===void 0?void 0:O.call(h.$instance,M,L)}),C==null||(E=C["config.ripple"])===null||E===void 0||E.call(h.$instance,(A=h.$instance)===null||A===void 0||(A=A.$primevueConfig)===null||A===void 0?void 0:A.ripple),DD.on("config:ripple:change",function(R){var O,M=R.newValue,L=R.oldValue;return C==null||(O=C["config.ripple"])===null||O===void 0?void 0:O.call(h.$instance,M,L)})};return{created:function(h,w,v,y){h.$pd||(h.$pd={}),h.$pd[r]={name:r,attrSelector:DWe("pd")},l("created",h,w,v,y)},beforeMount:function(h,w,v,y){cl._loadStyles(h,w,v),l("beforeMount",h,w,v,y),u(h)},mounted:function(h,w,v,y){cl._loadStyles(h,w,v),l("mounted",h,w,v,y)},beforeUpdate:function(h,w,v,y){l("beforeUpdate",h,w,v,y)},updated:function(h,w,v,y){cl._loadStyles(h,w,v),l("updated",h,w,v,y)},beforeUnmount:function(h,w,v,y){l("beforeUnmount",h,w,v,y)},unmounted:function(h,w,v,y){var E;(E=h.$instance)===null||E===void 0||(E=E.scopedStyleEl)===null||E===void 0||(E=E.value)===null||E===void 0||E.remove(),l("unmounted",h,w,v,y)}}},extend:function(){var r=cl._getMeta.apply(cl,arguments),o=zjt(r,2),l=o[0],u=o[1];return la({extend:function(){var h=cl._getMeta.apply(cl,arguments),w=zjt(h,2),v=w[0],y=w[1];return cl.extend(v,la(la(la({},u),u==null?void 0:u.methods),y))}},cl._extend(l,u))}},PVn=function(r){var o=r.dt;return` +.p-ink { + display: block; + position: absolute; + background: `.concat(o("ripple.background"),`; + border-radius: 100%; + transform: scale(0); + pointer-events: none; +} + +.p-ink-active { + animation: ripple 0.4s linear; +} + +@keyframes ripple { + 100% { + opacity: 0; + transform: scale(2.5); + } +} +`)},OVn={root:"p-ink"},NVn=Bs.extend({name:"ripple-directive",theme:PVn,classes:OVn}),MVn=cl.extend({style:NVn});function Xq(n){"@babel/helpers - typeof";return Xq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xq(n)}function DVn(n){return BVn(n)||FVn(n)||jVn(n)||LVn()}function LVn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jVn(n,r){if(n){if(typeof n=="string")return PLe(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?PLe(n,r):void 0}}function FVn(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function BVn(n){if(Array.isArray(n))return PLe(n)}function PLe(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o1&&arguments[1]!==void 0?arguments[1]:function(){};JVn(this,n),this.element=r,this.listener=o}return QVn(n,[{key:"bindScrollListener",value:function(){this.scrollableParents=WHn(this.element);for(var o=0;on.length)&&(r=n.length);for(var o=0,l=Array(r);o0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=[];return u.forEach(function(h){h.children instanceof Array?d=d.concat(o._recursive(d,h.children)):h.type.name===o.type?d.push(h):ks(h.key)&&(d=d.concat(l.filter(function(w){return o._isMatched(w,h.key)}).map(function(w){return w.vnode})))}),d}}])}();function ST(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return DWe(n)}function KR(n,r){if(n){var o=n.props;if(o){var l=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),u=Object.prototype.hasOwnProperty.call(o,l)?l:r;return n.type.extends.props[r].type===Boolean&&o[u]===""?!0:o[u]}}return null}var uzn=function(r){var o=r.dt;return` +.p-splitter { + display: flex; + flex-wrap: nowrap; + border: 1px solid `.concat(o("splitter.border.color"),`; + background: `).concat(o("splitter.background"),`; + border-radius: `).concat(o("border.radius.md"),`; + color: `).concat(o("splitter.color"),`; +} + +.p-splitter-vertical { + flex-direction: column; +} + +.p-splitter-gutter { + flex-grow: 0; + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + z-index: 1; + background: `).concat(o("splitter.gutter.background"),`; +} + +.p-splitter-gutter-handle { + border-radius: `).concat(o("splitter.handle.border.radius"),`; + background: `).concat(o("splitter.handle.background"),`; + transition: outline-color `).concat(o("splitter.transition.duration"),", box-shadow ").concat(o("splitter.transition.duration"),`; + outline-color: transparent; +} + +.p-splitter-gutter-handle:focus-visible { + box-shadow: `).concat(o("splitter.handle.focus.ring.shadow"),`; + outline: `).concat(o("splitter.handle.focus.ring.width")," ").concat(o("splitter.handle.focus.ring.style")," ").concat(o("splitter.handle.focus.ring.color"),`; + outline-offset: `).concat(o("splitter.handle.focus.ring.offset"),`; +} + +.p-splitter-horizontal.p-splitter-resizing { + cursor: col-resize; + user-select: none; +} + +.p-splitter-vertical.p-splitter-resizing { + cursor: row-resize; + user-select: none; +} + +.p-splitter-horizontal > .p-splitter-gutter > .p-splitter-gutter-handle { + height: `).concat(o("splitter.handle.size"),`; + width: 100%; +} + +.p-splitter-vertical > .p-splitter-gutter > .p-splitter-gutter-handle { + width: `).concat(o("splitter.handle.size"),`; + height: 100%; +} + +.p-splitter-horizontal > .p-splitter-gutter { + cursor: col-resize; +} + +.p-splitter-vertical > .p-splitter-gutter { + cursor: row-resize; +} + +.p-splitterpanel { + flex-grow: 1; + overflow: hidden; +} + +.p-splitterpanel-nested { + display: flex; +} + +.p-splitterpanel .p-splitter { + flex-grow: 1; + border: 0 none; +} +`)},fzn={root:function(r){var o=r.props;return["p-splitter p-component","p-splitter-"+o.layout]},gutter:"p-splitter-gutter",gutterHandle:"p-splitter-gutter-handle"},dzn={root:function(r){var o=r.props;return[{display:"flex","flex-wrap":"nowrap"},o.layout==="vertical"?{"flex-direction":"column"}:""]}},hzn=Bs.extend({name:"splitter",theme:uzn,classes:fzn,inlineStyles:dzn}),pzn={name:"BaseSplitter",extends:Kl,props:{layout:{type:String,default:"horizontal"},gutterSize:{type:Number,default:4},stateKey:{type:String,default:null},stateStorage:{type:String,default:"session"},step:{type:Number,default:5}},style:hzn,provide:function(){return{$pcSplitter:this,$parentInstance:this}}};function Yjt(n){return mzn(n)||wzn(n)||gzn(n)||bzn()}function bzn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gzn(n,r){if(n){if(typeof n=="string")return NLe(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?NLe(n,r):void 0}}function wzn(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function mzn(n){if(Array.isArray(n))return NLe(n)}function NLe(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o100||r<0||o>100||o<0)return!1;var l=KR(this.panels[this.prevPanelIndex],"minSize");if(this.panels[this.prevPanelIndex].props&&l&&l>r)return!1;var u=KR(this.panels[this.prevPanelIndex+1],"minSize");return!(this.panels[this.prevPanelIndex+1].props&&u&&u>o)},unbindMouseListeners:function(){this.mouseMoveListener&&(document.removeEventListener("mousemove",this.mouseMoveListener),this.mouseMoveListener=null),this.mouseUpListener&&(document.removeEventListener("mouseup",this.mouseUpListener),this.mouseUpListener=null)},unbindTouchListeners:function(){this.touchMoveListener&&(document.removeEventListener("touchmove",this.touchMoveListener),this.touchMoveListener=null),this.touchEndListener&&(document.removeEventListener("touchend",this.touchEndListener),this.touchEndListener=null)},clear:function(){this.dragging=!1,this.size=null,this.startPos=null,this.prevPanelElement=null,this.nextPanelElement=null,this.prevPanelSize=null,this.nextPanelSize=null,this.gutterElement=null,this.prevPanelIndex=null},isStateful:function(){return this.stateKey!=null},getStorage:function(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},saveState:function(){XX(this.panelSizes)&&this.getStorage().setItem(this.stateKey,JSON.stringify(this.panelSizes))},restoreState:function(){var r=this,o=this.getStorage(),l=o.getItem(this.stateKey);if(l){this.panelSizes=JSON.parse(l);var u=Yjt(this.$el.children).filter(function(d){return d.getAttribute("data-pc-name")==="splitterpanel"});return u.forEach(function(d,h){d.style.flexBasis="calc("+r.panelSizes[h]+"% - "+(r.panels.length-1)*r.gutterSize+"px)"}),!0}return!1},resetState:function(){this.initializePanels()}},computed:{panels:function(){var r=this,o=[];return this.$slots.default().forEach(function(l){r.isSplitterPanel(l)?o.push(l):l.children instanceof Array&&l.children.forEach(function(u){r.isSplitterPanel(u)&&o.push(u)})}),o},gutterStyle:function(){return this.horizontal?{width:this.gutterSize+"px"}:{height:this.gutterSize+"px"}},horizontal:function(){return this.layout==="horizontal"},getPTOptions:function(){var r;return{context:{nested:(r=this.$parentInstance)===null||r===void 0?void 0:r.nestedState}}}}},yzn=["onMousedown","onTouchstart","onTouchmove","onTouchend"],vzn=["aria-orientation","aria-valuenow","onKeydown"];function _zn(n,r,o,l,u,d){return ze(),Lt("div",Et({class:n.cx("root"),style:n.sx("root"),"data-p-resizing":!1},n.ptmi("root",d.getPTOptions)),[(ze(!0),Lt(gi,null,uu(d.panels,function(h,w){return ze(),Lt(gi,{key:w},[(ze(),Nn(jo(h),{tabindex:"-1"})),w!==d.panels.length-1?(ze(),Lt("div",Et({key:0,ref_for:!0,ref:"gutter",class:n.cx("gutter"),role:"separator",tabindex:"-1",onMousedown:function(y){return d.onGutterMouseDown(y,w)},onTouchstart:function(y){return d.onGutterTouchStart(y,w)},onTouchmove:function(y){return d.onGutterTouchMove(y,w)},onTouchend:function(y){return d.onGutterTouchEnd(y,w)},"data-p-gutter-resizing":!1},n.ptm("gutter")),[mr("div",Et({class:n.cx("gutterHandle"),tabindex:"0",style:[d.gutterStyle],"aria-orientation":n.layout,"aria-valuenow":u.prevSize,onKeyup:r[0]||(r[0]=function(){return d.onGutterKeyUp&&d.onGutterKeyUp.apply(d,arguments)}),onKeydown:function(y){return d.onGutterKeyDown(y,w)},ref_for:!0},n.ptm("gutterHandle")),null,16,vzn)],16,yzn)):fr("",!0)],64)}),128))],16)}VQt.render=_zn;var Szn={root:function(r){var o=r.instance;return["p-splitterpanel",{"p-splitterpanel-nested":o.isNested}]}},Ezn=Bs.extend({name:"splitterpanel",classes:Szn}),kzn={name:"BaseSplitterPanel",extends:Kl,props:{size:{type:Number,default:null},minSize:{type:Number,default:null}},style:Ezn,provide:function(){return{$pcSplitterPanel:this,$parentInstance:this}}},$fe={name:"SplitterPanel",extends:kzn,inheritAttrs:!1,data:function(){return{nestedState:null}},computed:{isNested:function(){var r=this;return this.$slots.default().some(function(o){return r.nestedState=o.type.name==="Splitter"?!0:null,r.nestedState})},getPTOptions:function(){return{context:{nested:this.isNested}}}}};function Rzn(n,r,o,l,u,d){return ze(),Lt("div",Et({ref:"container",class:n.cx("root")},n.ptmi("root",d.getPTOptions)),[Vr(n.$slots,"default")],16)}$fe.render=Rzn;var zQt={name:"BlankIcon",extends:Fc};function xzn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("rect",{width:"1",height:"1",fill:"currentColor","fill-opacity":"0"},null,-1)]),16)}zQt.render=xzn;var rj={name:"CheckIcon",extends:Fc};function Czn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1)]),16)}rj.render=Czn;var spe={name:"ChevronDownIcon",extends:Fc};function Azn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1)]),16)}spe.render=Azn;var KQt={name:"SearchIcon",extends:Fc};function Tzn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",fill:"currentColor"},null,-1)]),16)}KQt.render=Tzn;var lpe={name:"TimesIcon",extends:Fc};function $zn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"},null,-1)]),16)}lpe.render=$zn;var Izn=function(r){var o=r.dt;return` +.p-iconfield { + position: relative; +} + +.p-inputicon { + position: absolute; + top: 50%; + margin-top: calc(-1 * (`.concat(o("icon.size"),` / 2)); + color: `).concat(o("iconfield.icon.color"),`; + line-height: 1; +} + +.p-iconfield .p-inputicon:first-child { + inset-inline-start: `).concat(o("form.field.padding.x"),`; +} + +.p-iconfield .p-inputicon:last-child { + inset-inline-end: `).concat(o("form.field.padding.x"),`; +} + +.p-iconfield .p-inputtext:not(:first-child) { + padding-inline-start: calc((`).concat(o("form.field.padding.x")," * 2) + ").concat(o("icon.size"),`); +} + +.p-iconfield .p-inputtext:not(:last-child) { + padding-inline-end: calc((`).concat(o("form.field.padding.x")," * 2) + ").concat(o("icon.size"),`); +} + +.p-iconfield:has(.p-inputfield-sm) .p-inputicon { + font-size: `).concat(o("form.field.sm.font.size"),`; + width: `).concat(o("form.field.sm.font.size"),`; + height: `).concat(o("form.field.sm.font.size"),`; + margin-top: calc(-1 * (`).concat(o("form.field.sm.font.size"),` / 2)); +} + +.p-iconfield:has(.p-inputfield-lg) .p-inputicon { + font-size: `).concat(o("form.field.lg.font.size"),`; + width: `).concat(o("form.field.lg.font.size"),`; + height: `).concat(o("form.field.lg.font.size"),`; + margin-top: calc(-1 * (`).concat(o("form.field.lg.font.size"),` / 2)); +} +`)},Pzn={root:"p-iconfield"},Ozn=Bs.extend({name:"iconfield",theme:Izn,classes:Pzn}),Nzn={name:"BaseIconField",extends:Kl,style:Ozn,provide:function(){return{$pcIconField:this,$parentInstance:this}}},qQt={name:"IconField",extends:Nzn,inheritAttrs:!1};function Mzn(n,r,o,l,u,d){return ze(),Lt("div",Et({class:n.cx("root")},n.ptmi("root")),[Vr(n.$slots,"default")],16)}qQt.render=Mzn;var Dzn={root:"p-inputicon"},Lzn=Bs.extend({name:"inputicon",classes:Dzn}),jzn={name:"BaseInputIcon",extends:Kl,style:Lzn,props:{class:null},provide:function(){return{$pcInputIcon:this,$parentInstance:this}}},XQt={name:"InputIcon",extends:jzn,inheritAttrs:!1,computed:{containerClass:function(){return[this.cx("root"),this.class]}}};function Fzn(n,r,o,l,u,d){return ze(),Lt("span",Et({class:d.containerClass},n.ptmi("root")),[Vr(n.$slots,"default")],16)}XQt.render=Fzn;var Bzn={name:"BaseEditableHolder",extends:Kl,emits:["update:modelValue","value-change"],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue||this.modelValue}},watch:{modelValue:function(r){this.d_value=r},defaultValue:function(r){this.d_value=r},$formName:{immediate:!0,handler:function(r){var o,l;this.formField=((o=this.$pcForm)===null||o===void 0||(l=o.register)===null||l===void 0?void 0:l.call(o,r,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(r){var o,l;this.formField=((o=this.$pcForm)===null||o===void 0||(l=o.register)===null||l===void 0?void 0:l.call(o,this.$formName,r))||{}}},$formDefaultValue:{immediate:!0,handler:function(r){this.d_value!==r&&(this.d_value=r)}}},formField:{},methods:{writeValue:function(r,o){var l,u;this.controlled&&(this.d_value=r,this.$emit("update:modelValue",r)),this.$emit("value-change",r),(l=(u=this.formField).onChange)===null||l===void 0||l.call(u,{originalEvent:o,value:r})}},computed:{$filled:function(){return ks(this.d_value)},$invalid:function(){var r,o,l,u;return(r=(o=this.invalid)!==null&&o!==void 0?o:(l=this.$pcFormField)===null||l===void 0||(l=l.$field)===null||l===void 0?void 0:l.invalid)!==null&&r!==void 0?r:(u=this.$pcForm)===null||u===void 0||(u=u.states)===null||u===void 0||(u=u[this.$formName])===null||u===void 0?void 0:u.invalid},$formName:function(){var r;return this.name||((r=this.$formControl)===null||r===void 0?void 0:r.name)},$formControl:function(){var r;return this.formControl||((r=this.$pcFormField)===null||r===void 0?void 0:r.formControl)},$formDefaultValue:function(){var r,o,l,u;return(r=(o=this.d_value)!==null&&o!==void 0?o:(l=this.$pcFormField)===null||l===void 0?void 0:l.initialValue)!==null&&r!==void 0?r:(u=this.$pcForm)===null||u===void 0||(u=u.initialValues)===null||u===void 0?void 0:u[this.$formName]},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},QX={name:"BaseInput",extends:Bzn,props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){var r;return(r=this.variant)!==null&&r!==void 0?r:this.$primevue.config.inputStyle||this.$primevue.config.inputVariant},$fluid:function(){var r;return(r=this.fluid)!==null&&r!==void 0?r:!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},Wzn=function(r){var o=r.dt;return` +.p-inputtext { + font-family: inherit; + font-feature-settings: inherit; + font-size: 1rem; + color: `.concat(o("inputtext.color"),`; + background: `).concat(o("inputtext.background"),`; + padding-block: `).concat(o("inputtext.padding.y"),`; + padding-inline: `).concat(o("inputtext.padding.x"),`; + border: 1px solid `).concat(o("inputtext.border.color"),`; + transition: background `).concat(o("inputtext.transition.duration"),", color ").concat(o("inputtext.transition.duration"),", border-color ").concat(o("inputtext.transition.duration"),", outline-color ").concat(o("inputtext.transition.duration"),", box-shadow ").concat(o("inputtext.transition.duration"),`; + appearance: none; + border-radius: `).concat(o("inputtext.border.radius"),`; + outline-color: transparent; + box-shadow: `).concat(o("inputtext.shadow"),`; +} + +.p-inputtext:enabled:hover { + border-color: `).concat(o("inputtext.hover.border.color"),`; +} + +.p-inputtext:enabled:focus { + border-color: `).concat(o("inputtext.focus.border.color"),`; + box-shadow: `).concat(o("inputtext.focus.ring.shadow"),`; + outline: `).concat(o("inputtext.focus.ring.width")," ").concat(o("inputtext.focus.ring.style")," ").concat(o("inputtext.focus.ring.color"),`; + outline-offset: `).concat(o("inputtext.focus.ring.offset"),`; +} + +.p-inputtext.p-invalid { + border-color: `).concat(o("inputtext.invalid.border.color"),`; +} + +.p-inputtext.p-variant-filled { + background: `).concat(o("inputtext.filled.background"),`; +} + +.p-inputtext.p-variant-filled:enabled:hover { + background: `).concat(o("inputtext.filled.hover.background"),`; +} + +.p-inputtext.p-variant-filled:enabled:focus { + background: `).concat(o("inputtext.filled.focus.background"),`; +} + +.p-inputtext:disabled { + opacity: 1; + background: `).concat(o("inputtext.disabled.background"),`; + color: `).concat(o("inputtext.disabled.color"),`; +} + +.p-inputtext::placeholder { + color: `).concat(o("inputtext.placeholder.color"),`; +} + +.p-inputtext.p-invalid::placeholder { + color: `).concat(o("inputtext.invalid.placeholder.color"),`; +} + +.p-inputtext-sm { + font-size: `).concat(o("inputtext.sm.font.size"),`; + padding-block: `).concat(o("inputtext.sm.padding.y"),`; + padding-inline: `).concat(o("inputtext.sm.padding.x"),`; +} + +.p-inputtext-lg { + font-size: `).concat(o("inputtext.lg.font.size"),`; + padding-block: `).concat(o("inputtext.lg.padding.y"),`; + padding-inline: `).concat(o("inputtext.lg.padding.x"),`; +} + +.p-inputtext-fluid { + width: 100%; +} +`)},Hzn={root:function(r){var o=r.instance,l=r.props;return["p-inputtext p-component",{"p-filled":o.$filled,"p-inputtext-sm p-inputfield-sm":l.size==="small","p-inputtext-lg p-inputfield-lg":l.size==="large","p-invalid":o.$invalid,"p-variant-filled":o.$variant==="filled","p-inputtext-fluid":o.$fluid}]}},Uzn=Bs.extend({name:"inputtext",theme:Wzn,classes:Hzn}),Gzn={name:"BaseInputText",extends:QX,style:Uzn,provide:function(){return{$pcInputText:this,$parentInstance:this}}},W8={name:"InputText",extends:Gzn,inheritAttrs:!1,methods:{onInput:function(r){this.writeValue(r.target.value,r)}},computed:{attrs:function(){return Et(this.ptmi("root",{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)}}},Vzn=["value","disabled","aria-invalid"];function zzn(n,r,o,l,u,d){return ze(),Lt("input",Et({type:"text",class:n.cx("root"),value:n.d_value,disabled:n.disabled,"aria-invalid":n.$invalid||void 0,onInput:r[0]||(r[0]=function(){return d.onInput&&d.onInput.apply(d,arguments)})},d.attrs),null,16,Vzn)}W8.render=zzn;var Zy=AWe(),ZX={name:"Portal",props:{appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=ope()},computed:{inline:function(){return this.disabled||this.appendTo==="self"}}};function Kzn(n,r,o,l,u,d){return d.inline?Vr(n.$slots,"default",{key:0}):u.mounted?(ze(),Nn($Bn,{key:1,to:o.appendTo},[Vr(n.$slots,"default")],8,["to"])):fr("",!0)}ZX.render=Kzn;var qzn=function(r){var o=r.dt;return` +.p-virtualscroller-loader { + background: `.concat(o("virtualscroller.loader.mask.background"),`; + color: `).concat(o("virtualscroller.loader.mask.color"),`; +} + +.p-virtualscroller-loading-icon { + font-size: `).concat(o("virtualscroller.loader.icon.size"),`; + width: `).concat(o("virtualscroller.loader.icon.size"),`; + height: `).concat(o("virtualscroller.loader.icon.size"),`; +} +`)},Xzn=` +.p-virtualscroller { + position: relative; + overflow: auto; + contain: strict; + transform: translateZ(0); + will-change: scroll-position; + outline: 0 none; +} + +.p-virtualscroller-content { + position: absolute; + top: 0; + left: 0; + min-height: 100%; + min-width: 100%; + will-change: transform; +} + +.p-virtualscroller-spacer { + position: absolute; + top: 0; + left: 0; + height: 1px; + width: 1px; + transform-origin: 0 0; + pointer-events: none; +} + +.p-virtualscroller-loader { + position: sticky; + top: 0; + left: 0; + width: 100%; + height: 100%; +} + +.p-virtualscroller-loader-mask { + display: flex; + align-items: center; + justify-content: center; +} + +.p-virtualscroller-horizontal > .p-virtualscroller-content { + display: flex; +} + +.p-virtualscroller-inline .p-virtualscroller-content { + position: static; +} +`,Qjt=Bs.extend({name:"virtualscroller",css:Xzn,theme:qzn}),Jzn={name:"BaseVirtualScroller",extends:Kl,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:"vertical"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:Qjt,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var r;Qjt.loadCSS({nonce:(r=this.$primevueConfig)===null||r===void 0||(r=r.csp)===null||r===void 0?void 0:r.nonce})}};function Zq(n){"@babel/helpers - typeof";return Zq=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zq(n)}function Zjt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function Jz(n){for(var r=1;r1&&arguments[1]!==void 0?arguments[1]:"auto",u=this.isBoth(),d=this.isHorizontal(),h=u?r.every(function(Le){return Le>-1}):r>-1;if(h){var w=this.first,v=this.element,y=v.scrollTop,E=y===void 0?0:y,A=v.scrollLeft,C=A===void 0?0:A,R=this.calculateNumItems(),O=R.numToleratedItems,M=this.getContentPosition(),L=this.itemSize,H=function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,le=arguments.length>1?arguments[1]:void 0;return Ee<=le?0:Ee},G=function(Ee,le,xe){return Ee*le+xe},j=function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return o.scrollTo({left:Ee,top:le,behavior:l})},Q=u?{rows:0,cols:0}:0,te=!1,pe=!1;u?(Q={rows:H(r[0],O[0]),cols:H(r[1],O[1])},j(G(Q.cols,L[1],M.left),G(Q.rows,L[0],M.top)),pe=this.lastScrollPos.top!==E||this.lastScrollPos.left!==C,te=Q.rows!==w.rows||Q.cols!==w.cols):(Q=H(r,O),d?j(G(Q,L,M.left),E):j(C,G(Q,L,M.top)),pe=this.lastScrollPos!==(d?C:E),te=Q!==w),this.isRangeChanged=te,pe&&(this.first=Q)}},scrollInView:function(r,o){var l=this,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(o){var d=this.isBoth(),h=this.isHorizontal(),w=d?r.every(function(L){return L>-1}):r>-1;if(w){var v=this.getRenderedRange(),y=v.first,E=v.viewport,A=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return l.scrollTo({left:H,top:G,behavior:u})},C=o==="to-start",R=o==="to-end";if(C){if(d)E.first.rows-y.rows>r[0]?A(E.first.cols*this.itemSize[1],(E.first.rows-1)*this.itemSize[0]):E.first.cols-y.cols>r[1]&&A((E.first.cols-1)*this.itemSize[1],E.first.rows*this.itemSize[0]);else if(E.first-y>r){var O=(E.first-1)*this.itemSize;h?A(O,0):A(0,O)}}else if(R){if(d)E.last.rows-y.rows<=r[0]+1?A(E.first.cols*this.itemSize[1],(E.first.rows+1)*this.itemSize[0]):E.last.cols-y.cols<=r[1]+1&&A((E.first.cols+1)*this.itemSize[1],E.first.rows*this.itemSize[0]);else if(E.last-y<=r+1){var M=(E.first+1)*this.itemSize;h?A(M,0):A(0,M)}}}}else this.scrollToIndex(r,u)},getRenderedRange:function(){var r=function(A,C){return Math.floor(A/(C||A))},o=this.first,l=0;if(this.element){var u=this.isBoth(),d=this.isHorizontal(),h=this.element,w=h.scrollTop,v=h.scrollLeft;if(u)o={rows:r(w,this.itemSize[0]),cols:r(v,this.itemSize[1])},l={rows:o.rows+this.numItemsInViewport.rows,cols:o.cols+this.numItemsInViewport.cols};else{var y=d?v:w;o=r(y,this.itemSize),l=o+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:o,last:l}}},calculateNumItems:function(){var r=this.isBoth(),o=this.isHorizontal(),l=this.itemSize,u=this.getContentPosition(),d=this.element?this.element.offsetWidth-u.left:0,h=this.element?this.element.offsetHeight-u.top:0,w=function(C,R){return Math.ceil(C/(R||C))},v=function(C){return Math.ceil(C/2)},y=r?{rows:w(h,l[0]),cols:w(d,l[1])}:w(o?d:h,l),E=this.d_numToleratedItems||(r?[v(y.rows),v(y.cols)]:v(y));return{numItemsInViewport:y,numToleratedItems:E}},calculateOptions:function(){var r=this,o=this.isBoth(),l=this.first,u=this.calculateNumItems(),d=u.numItemsInViewport,h=u.numToleratedItems,w=function(E,A,C){var R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.getLast(E+A+(E0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1?arguments[1]:void 0;return this.items?Math.min(u?((r=this.columns||this.items[0])===null||r===void 0?void 0:r.length)||0:((o=this.items)===null||o===void 0?void 0:o.length)||0,l):0},getContentPosition:function(){if(this.content){var r=getComputedStyle(this.content),o=parseFloat(r.paddingLeft)+Math.max(parseFloat(r.left)||0,0),l=parseFloat(r.paddingRight)+Math.max(parseFloat(r.right)||0,0),u=parseFloat(r.paddingTop)+Math.max(parseFloat(r.top)||0,0),d=parseFloat(r.paddingBottom)+Math.max(parseFloat(r.bottom)||0,0);return{left:o,right:l,top:u,bottom:d,x:o+l,y:u+d}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var r=this;if(this.element){var o=this.isBoth(),l=this.isHorizontal(),u=this.element.parentElement,d=this.scrollWidth||"".concat(this.element.offsetWidth||u.offsetWidth,"px"),h=this.scrollHeight||"".concat(this.element.offsetHeight||u.offsetHeight,"px"),w=function(y,E){return r.element.style[y]=E};o||l?(w("height",h),w("width",d)):w("height",h)}},setSpacerSize:function(){var r=this,o=this.items;if(o){var l=this.isBoth(),u=this.isHorizontal(),d=this.getContentPosition(),h=function(v,y,E){var A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return r.spacerStyle=Jz(Jz({},r.spacerStyle),JQt({},"".concat(v),(y||[]).length*E+A+"px"))};l?(h("height",o,this.itemSize[0],d.y),h("width",this.columns||o[1],this.itemSize[1],d.x)):u?h("width",this.columns||o,this.itemSize,d.x):h("height",o,this.itemSize,d.y)}},setContentPosition:function(r){var o=this;if(this.content&&!this.appendOnly){var l=this.isBoth(),u=this.isHorizontal(),d=r?r.first:this.first,h=function(E,A){return E*A},w=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return o.contentStyle=Jz(Jz({},o.contentStyle),{transform:"translate3d(".concat(E,"px, ").concat(A,"px, 0)")})};if(l)w(h(d.cols,this.itemSize[1]),h(d.rows,this.itemSize[0]));else{var v=h(d,this.itemSize);u?w(v,0):w(0,v)}}},onScrollPositionChange:function(r){var o=this,l=r.target,u=this.isBoth(),d=this.isHorizontal(),h=this.getContentPosition(),w=function(be,ae){return be?be>ae?be-ae:be:0},v=function(be,ae){return Math.floor(be/(ae||be))},y=function(be,ae,F,me,ye,we){return be<=ye?ye:we?F-me-ye:ae+ye-1},E=function(be,ae,F,me,ye,we,Be){return be<=we?0:Math.max(0,Be?beae?F:be-2*we)},A=function(be,ae,F,me,ye,we){var Be=ae+me+2*ye;return be>=ye&&(Be+=ye+1),o.getLast(Be,we)},C=w(l.scrollTop,h.top),R=w(l.scrollLeft,h.left),O=u?{rows:0,cols:0}:0,M=this.last,L=!1,H=this.lastScrollPos;if(u){var G=this.lastScrollPos.top<=C,j=this.lastScrollPos.left<=R;if(!this.appendOnly||this.appendOnly&&(G||j)){var Q={rows:v(C,this.itemSize[0]),cols:v(R,this.itemSize[1])},te={rows:y(Q.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],G),cols:y(Q.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],j)};O={rows:E(Q.rows,te.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],G),cols:E(Q.cols,te.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],j)},M={rows:A(Q.rows,O.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:A(Q.cols,O.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},L=O.rows!==this.first.rows||M.rows!==this.last.rows||O.cols!==this.first.cols||M.cols!==this.last.cols||this.isRangeChanged,H={top:C,left:R}}}else{var pe=d?R:C,Le=this.lastScrollPos<=pe;if(!this.appendOnly||this.appendOnly&&Le){var Ee=v(pe,this.itemSize),le=y(Ee,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,Le);O=E(Ee,le,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,Le),M=A(Ee,O,this.last,this.numItemsInViewport,this.d_numToleratedItems),L=O!==this.first||M!==this.last||this.isRangeChanged,H=pe}}return{first:O,last:M,isRangeChanged:L,scrollPos:H}},onScrollChange:function(r){var o=this.onScrollPositionChange(r),l=o.first,u=o.last,d=o.isRangeChanged,h=o.scrollPos;if(d){var w={first:l,last:u};if(this.setContentPosition(w),this.first=l,this.last=u,this.lastScrollPos=h,this.$emit("scroll-index-change",w),this.lazy&&this.isPageChanged(l)){var v,y,E={first:this.step?Math.min(this.getPageByFirst(l)*this.step,(((v=this.items)===null||v===void 0?void 0:v.length)||0)-this.step):l,last:Math.min(this.step?(this.getPageByFirst(l)+1)*this.step:u,((y=this.items)===null||y===void 0?void 0:y.length)||0)},A=this.lazyLoadState.first!==E.first||this.lazyLoadState.last!==E.last;A&&this.$emit("lazy-load",E),this.lazyLoadState=E}}},onScroll:function(r){var o=this;if(this.$emit("scroll",r),this.delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading&&this.showLoader){var l=this.onScrollPositionChange(r),u=l.isRangeChanged,d=u||(this.step?this.isPageChanged():!1);d&&(this.d_loading=!0)}this.scrollTimeout=setTimeout(function(){o.onScrollChange(r),o.d_loading&&o.showLoader&&(!o.lazy||o.loading===void 0)&&(o.d_loading=!1,o.page=o.getPageByFirst())},this.delay)}}else this.onScrollChange(r)},onResize:function(){var r=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){if(Ade(r.element)){var o=r.isBoth(),l=r.isVertical(),u=r.isHorizontal(),d=[lT(r.element),oT(r.element)],h=d[0],w=d[1],v=h!==r.defaultWidth,y=w!==r.defaultHeight,E=o?v||y:u?v:l?y:!1;E&&(r.d_numToleratedItems=r.numToleratedItems,r.defaultWidth=h,r.defaultHeight=w,r.defaultContentWidth=lT(r.content),r.defaultContentHeight=oT(r.content),r.init())}},this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener("resize",this.resizeListener),window.addEventListener("orientationchange",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("orientationchange",this.resizeListener),this.resizeListener=null)},getOptions:function(r){var o=(this.items||[]).length,l=this.isBoth()?this.first.rows+r:this.first+r;return{index:l,count:o,first:l===0,last:l===o-1,even:l%2===0,odd:l%2!==0}},getLoaderOptions:function(r,o){var l=this.loaderArr.length;return Jz({index:r,count:l,first:r===0,last:r===l-1,even:r%2===0,odd:r%2!==0},o)},getPageByFirst:function(r){return Math.floor(((r??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged:function(r){return this.step&&!this.lazy?this.page!==this.getPageByFirst(r??this.first):!0},setContentEl:function(r){this.content=r||this.content||pT(this.element,'[data-pc-section="content"]')},elementRef:function(r){this.element=r},contentRef:function(r){this.content=r}},computed:{containerClass:function(){return["p-virtualscroller",this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal()}]},contentClass:function(){return["p-virtualscroller-content",{"p-virtualscroller-loading":this.d_loading}]},loaderClass:function(){return["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!this.$slots.loader}]},loadedItems:function(){var r=this;return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(function(o){return r.columns?o:o.slice(r.appendOnly?0:r.first.cols,r.last.cols)}):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var r=this.isBoth(),o=this.isHorizontal();if(r||o)return this.d_loading&&this.loaderDisabled?r?this.loaderArr[0]:this.loaderArr:this.columns.slice(r?this.first.cols:this.first,r?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:YX}},Zzn=["tabindex"];function eKn(n,r,o,l,u,d){var h=Ni("SpinnerIcon");return n.disabled?(ze(),Lt(gi,{key:1},[Vr(n.$slots,"default"),Vr(n.$slots,"content",{items:n.items,rows:n.items,columns:d.loadedColumns})],64)):(ze(),Lt("div",Et({key:0,ref:d.elementRef,class:d.containerClass,tabindex:n.tabindex,style:n.style,onScroll:r[0]||(r[0]=function(){return d.onScroll&&d.onScroll.apply(d,arguments)})},n.ptmi("root")),[Vr(n.$slots,"content",{styleClass:d.contentClass,items:d.loadedItems,getItemOptions:d.getOptions,loading:u.d_loading,getLoaderOptions:d.getLoaderOptions,itemSize:n.itemSize,rows:d.loadedRows,columns:d.loadedColumns,contentRef:d.contentRef,spacerStyle:u.spacerStyle,contentStyle:u.contentStyle,vertical:d.isVertical(),horizontal:d.isHorizontal(),both:d.isBoth()},function(){return[mr("div",Et({ref:d.contentRef,class:d.contentClass,style:u.contentStyle},n.ptm("content")),[(ze(!0),Lt(gi,null,uu(d.loadedItems,function(w,v){return Vr(n.$slots,"item",{key:v,item:w,options:d.getOptions(v)})}),128))],16)]}),n.showSpacer?(ze(),Lt("div",Et({key:0,class:"p-virtualscroller-spacer",style:u.spacerStyle},n.ptm("spacer")),null,16)):fr("",!0),!n.loaderDisabled&&n.showLoader&&u.d_loading?(ze(),Lt("div",Et({key:1,class:d.loaderClass},n.ptm("loader")),[n.$slots&&n.$slots.loader?(ze(!0),Lt(gi,{key:0},uu(u.loaderArr,function(w,v){return Vr(n.$slots,"loader",{key:v,options:d.getLoaderOptions(v,d.isBoth()&&{numCols:n.d_numItemsInViewport.cols})})}),128)):fr("",!0),Vr(n.$slots,"loadingicon",{},function(){return[bi(h,Et({spin:"",class:"p-virtualscroller-loading-icon"},n.ptm("loadingIcon")),null,16)]})],16)):fr("",!0)],16,Zzn))}FWe.render=eKn;var tKn=function(r){var o=r.dt;return` +.p-select { + display: inline-flex; + cursor: pointer; + position: relative; + user-select: none; + background: `.concat(o("select.background"),`; + border: 1px solid `).concat(o("select.border.color"),`; + transition: background `).concat(o("select.transition.duration"),", color ").concat(o("select.transition.duration"),", border-color ").concat(o("select.transition.duration"),`, + outline-color `).concat(o("select.transition.duration"),", box-shadow ").concat(o("select.transition.duration"),`; + border-radius: `).concat(o("select.border.radius"),`; + outline-color: transparent; + box-shadow: `).concat(o("select.shadow"),`; +} + +.p-select:not(.p-disabled):hover { + border-color: `).concat(o("select.hover.border.color"),`; +} + +.p-select:not(.p-disabled).p-focus { + border-color: `).concat(o("select.focus.border.color"),`; + box-shadow: `).concat(o("select.focus.ring.shadow"),`; + outline: `).concat(o("select.focus.ring.width")," ").concat(o("select.focus.ring.style")," ").concat(o("select.focus.ring.color"),`; + outline-offset: `).concat(o("select.focus.ring.offset"),`; +} + +.p-select.p-variant-filled { + background: `).concat(o("select.filled.background"),`; +} + +.p-select.p-variant-filled:not(.p-disabled):hover { + background: `).concat(o("select.filled.hover.background"),`; +} + +.p-select.p-variant-filled:not(.p-disabled).p-focus { + background: `).concat(o("select.filled.focus.background"),`; +} + +.p-select.p-invalid { + border-color: `).concat(o("select.invalid.border.color"),`; +} + +.p-select.p-disabled { + opacity: 1; + background: `).concat(o("select.disabled.background"),`; +} + +.p-select-clear-icon { + position: absolute; + top: 50%; + margin-top: -0.5rem; + color: `).concat(o("select.clear.icon.color"),`; + inset-inline-end: `).concat(o("select.dropdown.width"),`; +} + +.p-select-dropdown { + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + background: transparent; + color: `).concat(o("select.dropdown.color"),`; + width: `).concat(o("select.dropdown.width"),`; + border-start-end-radius: `).concat(o("select.border.radius"),`; + border-end-end-radius: `).concat(o("select.border.radius"),`; +} + +.p-select-label { + display: block; + white-space: nowrap; + overflow: hidden; + flex: 1 1 auto; + width: 1%; + padding: `).concat(o("select.padding.y")," ").concat(o("select.padding.x"),`; + text-overflow: ellipsis; + cursor: pointer; + color: `).concat(o("select.color"),`; + background: transparent; + border: 0 none; + outline: 0 none; +} + +.p-select-label.p-placeholder { + color: `).concat(o("select.placeholder.color"),`; +} + +.p-select.p-invalid .p-select-label.p-placeholder { + color: `).concat(o("select.invalid.placeholder.color"),`; +} + +.p-select:has(.p-select-clear-icon) .p-select-label { + padding-inline-end: calc(1rem + `).concat(o("select.padding.x"),`); +} + +.p-select.p-disabled .p-select-label { + color: `).concat(o("select.disabled.color"),`; +} + +.p-select-label-empty { + overflow: hidden; + opacity: 0; +} + +input.p-select-label { + cursor: default; +} + +.p-select .p-select-overlay { + min-width: 100%; +} + +.p-select-overlay { + position: absolute; + top: 0; + left: 0; + background: `).concat(o("select.overlay.background"),`; + color: `).concat(o("select.overlay.color"),`; + border: 1px solid `).concat(o("select.overlay.border.color"),`; + border-radius: `).concat(o("select.overlay.border.radius"),`; + box-shadow: `).concat(o("select.overlay.shadow"),`; +} + +.p-select-header { + padding: `).concat(o("select.list.header.padding"),`; +} + +.p-select-filter { + width: 100%; +} + +.p-select-list-container { + overflow: auto; +} + +.p-select-option-group { + cursor: auto; + margin: 0; + padding: `).concat(o("select.option.group.padding"),`; + background: `).concat(o("select.option.group.background"),`; + color: `).concat(o("select.option.group.color"),`; + font-weight: `).concat(o("select.option.group.font.weight"),`; +} + +.p-select-list { + margin: 0; + padding: 0; + list-style-type: none; + padding: `).concat(o("select.list.padding"),`; + gap: `).concat(o("select.list.gap"),`; + display: flex; + flex-direction: column; +} + +.p-select-option { + cursor: pointer; + font-weight: normal; + white-space: nowrap; + position: relative; + overflow: hidden; + display: flex; + align-items: center; + padding: `).concat(o("select.option.padding"),`; + border: 0 none; + color: `).concat(o("select.option.color"),`; + background: transparent; + transition: background `).concat(o("select.transition.duration"),", color ").concat(o("select.transition.duration"),", border-color ").concat(o("select.transition.duration"),`, + box-shadow `).concat(o("select.transition.duration"),", outline-color ").concat(o("select.transition.duration"),`; + border-radius: `).concat(o("select.option.border.radius"),`; +} + +.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus { + background: `).concat(o("select.option.focus.background"),`; + color: `).concat(o("select.option.focus.color"),`; +} + +.p-select-option.p-select-option-selected { + background: `).concat(o("select.option.selected.background"),`; + color: `).concat(o("select.option.selected.color"),`; +} + +.p-select-option.p-select-option-selected.p-focus { + background: `).concat(o("select.option.selected.focus.background"),`; + color: `).concat(o("select.option.selected.focus.color"),`; +} + +.p-select-option-check-icon { + position: relative; + margin-inline-start: `).concat(o("select.checkmark.gutter.start"),`; + margin-inline-end: `).concat(o("select.checkmark.gutter.end"),`; + color: `).concat(o("select.checkmark.color"),`; +} + +.p-select-empty-message { + padding: `).concat(o("select.empty.message.padding"),`; +} + +.p-select-fluid { + display: flex; +} + +.p-select-sm .p-select-label { + font-size: `).concat(o("select.sm.font.size"),`; + padding-block: `).concat(o("select.sm.padding.y"),`; + padding-inline: `).concat(o("select.sm.padding.x"),`; +} + +.p-select-sm .p-select-dropdown .p-icon { + font-size: `).concat(o("select.sm.font.size"),`; + width: `).concat(o("select.sm.font.size"),`; + height: `).concat(o("select.sm.font.size"),`; +} + +.p-select-lg .p-select-label { + font-size: `).concat(o("select.lg.font.size"),`; + padding-block: `).concat(o("select.lg.padding.y"),`; + padding-inline: `).concat(o("select.lg.padding.x"),`; +} + +.p-select-lg .p-select-dropdown .p-icon { + font-size: `).concat(o("select.lg.font.size"),`; + width: `).concat(o("select.lg.font.size"),`; + height: `).concat(o("select.lg.font.size"),`; +} +`)},nKn={root:function(r){var o=r.instance,l=r.props,u=r.state;return["p-select p-component p-inputwrapper",{"p-disabled":l.disabled,"p-invalid":o.$invalid,"p-variant-filled":o.$variant==="filled","p-focus":u.focused,"p-inputwrapper-filled":o.$filled,"p-inputwrapper-focus":u.focused||u.overlayVisible,"p-select-open":u.overlayVisible,"p-select-fluid":o.$fluid,"p-select-sm p-inputfield-sm":l.size==="small","p-select-lg p-inputfield-lg":l.size==="large"}]},label:function(r){var o=r.instance,l=r.props;return["p-select-label",{"p-placeholder":!l.editable&&o.label===l.placeholder,"p-select-label-empty":!l.editable&&!o.$slots.value&&(o.label==="p-emptylabel"||o.label.length===0)}]},clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingicon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:function(r){var o=r.instance,l=r.props,u=r.state,d=r.option,h=r.focusedOption;return["p-select-option",{"p-select-option-selected":o.isSelected(d)&&l.highlightOnSelect,"p-focus":u.focusedOptionIndex===h,"p-disabled":o.isOptionDisabled(d)}]},optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},rKn=Bs.extend({name:"select",theme:tKn,classes:nKn}),iKn={name:"BaseSelect",extends:QX,props:{options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"14rem"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},labelId:{type:String,default:null},labelClass:{type:[String,Object],default:null},labelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},appendTo:{type:[String,Object],default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:rKn,provide:function(){return{$pcSelect:this,$parentInstance:this}}};function eX(n){"@babel/helpers - typeof";return eX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},eX(n)}function oKn(n){return cKn(n)||aKn(n)||lKn(n)||sKn()}function sKn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lKn(n,r){if(n){if(typeof n=="string")return MLe(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?MLe(n,r):void 0}}function aKn(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function cKn(n){if(Array.isArray(n))return MLe(n)}function MLe(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o2&&arguments[2]!==void 0?arguments[2]:!0,u=this.getOptionValue(o);this.updateModel(r,u),l&&this.hide(!0)},onOptionMouseMove:function(r,o){this.focusOnHover&&this.changeFocusedOptionIndex(r,o)},onFilterChange:function(r){var o=r.target.value;this.filterValue=o,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:r,value:o}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(r){if(!r.isComposing)switch(r.code){case"ArrowDown":this.onArrowDownKey(r);break;case"ArrowUp":this.onArrowUpKey(r,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(r,!0);break;case"Home":this.onHomeKey(r,!0);break;case"End":this.onEndKey(r,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(r);break;case"Escape":this.onEscapeKey(r);break;case"Tab":this.onTabKey(r,!0);break}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(r){Zy.emit("overlay-click",{originalEvent:r,target:this.$el})},onOverlayKeyDown:function(r){switch(r.code){case"Escape":this.onEscapeKey(r);break}},onArrowDownKey:function(r){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(r,this.findSelectedOptionIndex());else{var o=this.focusedOptionIndex!==-1?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(r,o)}r.preventDefault()},onArrowUpKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r.altKey&&!o)this.focusedOptionIndex!==-1&&this.onOptionSelect(r,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),r.preventDefault();else{var l=this.focusedOptionIndex!==-1?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(r,l),!this.overlayVisible&&this.show(),r.preventDefault()}},onArrowLeftKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o&&(this.focusedOptionIndex=-1)},onHomeKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o){var l=r.currentTarget;r.shiftKey?l.setSelectionRange(0,r.target.selectionStart):(l.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(r,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();r.preventDefault()},onEndKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o){var l=r.currentTarget;if(r.shiftKey)l.setSelectionRange(r.target.selectionStart,l.value.length);else{var u=l.value.length;l.setSelectionRange(u,u),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(r,this.findLastOptionIndex()),!this.overlayVisible&&this.show();r.preventDefault()},onPageUpKey:function(r){this.scrollInView(0),r.preventDefault()},onPageDownKey:function(r){this.scrollInView(this.visibleOptions.length-1),r.preventDefault()},onEnterKey:function(r){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(r,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(r)),r.preventDefault()},onSpaceKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!o&&this.onEnterKey(r)},onEscapeKey:function(r){this.overlayVisible&&this.hide(!0),r.preventDefault(),r.stopPropagation()},onTabKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o||(this.overlayVisible&&this.hasFocusableElements()?(Gp(this.$refs.firstHiddenFocusableElementOnOverlay),r.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(r,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o&&!this.overlayVisible&&this.show()},onOverlayEnter:function(r){var o=this;nv.set("overlay",r,this.$primevue.config.zIndex.overlay),xL(r,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),setTimeout(function(){o.autoFilterFocus&&o.filter&&Gp(o.$refs.filterInput.$el)},1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){var r=this;this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus&&this.filter&&!this.editable&&this.$nextTick(function(){Gp(r.$refs.filterInput.$el)}),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(r){nv.clear(r)},alignOverlay:function(){this.appendTo==="self"?jHn(this.overlay,this.$el):(this.overlay.style.minWidth=Kp(this.$el)+"px",$We(this.overlay,this.$el))},bindOutsideClickListener:function(){var r=this;this.outsideClickListener||(this.outsideClickListener=function(o){r.overlayVisible&&r.overlay&&!r.$el.contains(o.target)&&!r.overlay.contains(o.target)&&r.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var r=this;this.scrollHandler||(this.scrollHandler=new jWe(this.$refs.container,function(){r.overlayVisible&&r.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var r=this;this.resizeListener||(this.resizeListener=function(){r.overlayVisible&&!MWe()&&r.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var r=this;if(!this.editable&&!this.labelClickListener){var o=document.querySelector('label[for="'.concat(this.labelId,'"]'));o&&Ade(o)&&(this.labelClickListener=function(){Gp(r.$refs.focusInput)},o.addEventListener("click",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var r=document.querySelector('label[for="'.concat(this.labelId,'"]'));r&&Ade(r)&&r.removeEventListener("click",this.labelClickListener)}},hasFocusableElements:function(){return IWe(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(r){var o;return this.isValidOption(r)&&typeof this.getOptionLabel(r)=="string"&&((o=this.getOptionLabel(r))===null||o===void 0?void 0:o.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(r){return ks(r)&&!(this.isOptionDisabled(r)||this.isOptionGroup(r))},isValidSelectedOption:function(r){return this.isValidOption(r)&&this.isSelected(r)},isSelected:function(r){return WP(this.d_value,this.getOptionValue(r),this.equalityKey)},findFirstOptionIndex:function(){var r=this;return this.visibleOptions.findIndex(function(o){return r.isValidOption(o)})},findLastOptionIndex:function(){var r=this;return yjt(this.visibleOptions,function(o){return r.isValidOption(o)})},findNextOptionIndex:function(r){var o=this,l=r-1?l+r+1:r},findPrevOptionIndex:function(r){var o=this,l=r>0?yjt(this.visibleOptions.slice(0,r),function(u){return o.isValidOption(u)}):-1;return l>-1?l:r},findSelectedOptionIndex:function(){var r=this;return this.$filled?this.visibleOptions.findIndex(function(o){return r.isValidSelectedOption(o)}):-1},findFirstFocusedOptionIndex:function(){var r=this.findSelectedOptionIndex();return r<0?this.findFirstOptionIndex():r},findLastFocusedOptionIndex:function(){var r=this.findSelectedOptionIndex();return r<0?this.findLastOptionIndex():r},searchOptions:function(r,o){var l=this;this.searchValue=(this.searchValue||"")+o;var u=-1,d=!1;return ks(this.searchValue)&&(this.focusedOptionIndex!==-1?(u=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(h){return l.isOptionMatched(h)}),u=u===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(function(h){return l.isOptionMatched(h)}):u+this.focusedOptionIndex):u=this.visibleOptions.findIndex(function(h){return l.isOptionMatched(h)}),u!==-1&&(d=!0),u===-1&&this.focusedOptionIndex===-1&&(u=this.findFirstFocusedOptionIndex()),u!==-1&&this.changeFocusedOptionIndex(r,u)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){l.searchValue="",l.searchTimeout=null},500),d},changeFocusedOptionIndex:function(r,o){this.focusedOptionIndex!==o&&(this.focusedOptionIndex=o,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(r,this.visibleOptions[o],!1))},scrollInView:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var l=o!==-1?"".concat(r.id,"_").concat(o):r.focusedOptionId,u=pT(r.list,'li[id="'.concat(l,'"]'));u?u.scrollIntoView&&u.scrollIntoView({block:"nearest",inline:"start"}):r.virtualScrollerDisabled||r.virtualScroller&&r.virtualScroller.scrollToIndex(o!==-1?o:r.focusedOptionIndex)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(r,o){this.writeValue(o,r),this.$emit("change",{originalEvent:r,value:o})},flatOptions:function(r){var o=this;return(r||[]).reduce(function(l,u,d){l.push({optionGroup:u,group:!0,index:d});var h=o.getOptionGroupChildren(u);return h&&h.forEach(function(w){return l.push(w)}),l},[])},overlayRef:function(r){this.overlay=r},listRef:function(r,o){this.list=r,o&&o(r)},virtualScrollerRef:function(r){this.virtualScroller=r}},computed:{visibleOptions:function(){var r=this,o=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var l=$Le.filter(o,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var u=this.options||[],d=[];return u.forEach(function(h){var w=r.getOptionGroupChildren(h),v=w.filter(function(y){return l.includes(y)});v.length>0&&d.push(tFt(tFt({},h),{},YQt({},typeof r.optionGroupChildren=="string"?r.optionGroupChildren:"items",oKn(v))))}),this.flatOptions(d)}return l}return o},hasSelectedOption:function(){return this.$filled},label:function(){var r=this.findSelectedOptionIndex();return r!==-1?this.getOptionLabel(this.visibleOptions[r]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var r=this.findSelectedOptionIndex();return r!==-1?this.getOptionLabel(this.visibleOptions[r]):this.d_value||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return ks(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex!==-1?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var r=this;return this.visibleOptions.filter(function(o){return!r.isOptionGroup(o)}).length},isClearIconVisible:function(){return this.showClear&&this.d_value!=null&&ks(this.options)},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:bk},components:{InputText:W8,VirtualScroller:FWe,Portal:ZX,InputIcon:XQt,IconField:qQt,TimesIcon:lpe,ChevronDownIcon:spe,SpinnerIcon:YX,SearchIcon:KQt,CheckIcon:rj,BlankIcon:zQt}},dKn=["id"],hKn=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],pKn=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],bKn=["id"],gKn=["id"],wKn=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-selected","data-p-focused","data-p-disabled"];function mKn(n,r,o,l,u,d){var h=Ni("SpinnerIcon"),w=Ni("InputText"),v=Ni("SearchIcon"),y=Ni("InputIcon"),E=Ni("IconField"),A=Ni("CheckIcon"),C=Ni("BlankIcon"),R=Ni("VirtualScroller"),O=Ni("Portal"),M=TS("ripple");return ze(),Lt("div",Et({ref:"container",id:u.id,class:n.cx("root"),onClick:r[11]||(r[11]=function(){return d.onContainerClick&&d.onContainerClick.apply(d,arguments)})},n.ptmi("root")),[n.editable?(ze(),Lt("input",Et({key:0,ref:"focusInput",id:n.labelId||n.inputId,type:"text",class:[n.cx("label"),n.inputClass,n.labelClass],style:[n.inputStyle,n.labelStyle],value:d.editableInputValue,placeholder:n.placeholder,tabindex:n.disabled?-1:n.tabindex,disabled:n.disabled,autocomplete:"off",role:"combobox","aria-label":n.ariaLabel,"aria-labelledby":n.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":u.overlayVisible,"aria-controls":u.id+"_list","aria-activedescendant":u.focused?d.focusedOptionId:void 0,"aria-invalid":n.invalid||void 0,onFocus:r[0]||(r[0]=function(){return d.onFocus&&d.onFocus.apply(d,arguments)}),onBlur:r[1]||(r[1]=function(){return d.onBlur&&d.onBlur.apply(d,arguments)}),onKeydown:r[2]||(r[2]=function(){return d.onKeyDown&&d.onKeyDown.apply(d,arguments)}),onInput:r[3]||(r[3]=function(){return d.onEditableInput&&d.onEditableInput.apply(d,arguments)})},n.ptm("label")),null,16,hKn)):(ze(),Lt("span",Et({key:1,ref:"focusInput",id:n.labelId||n.inputId,class:[n.cx("label"),n.inputClass,n.labelClass],style:[n.inputStyle,n.labelStyle],tabindex:n.disabled?-1:n.tabindex,role:"combobox","aria-label":n.ariaLabel||(d.label==="p-emptylabel"?void 0:d.label),"aria-labelledby":n.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":u.overlayVisible,"aria-controls":u.id+"_list","aria-activedescendant":u.focused?d.focusedOptionId:void 0,"aria-disabled":n.disabled,onFocus:r[4]||(r[4]=function(){return d.onFocus&&d.onFocus.apply(d,arguments)}),onBlur:r[5]||(r[5]=function(){return d.onBlur&&d.onBlur.apply(d,arguments)}),onKeydown:r[6]||(r[6]=function(){return d.onKeyDown&&d.onKeyDown.apply(d,arguments)})},n.ptm("label")),[Vr(n.$slots,"value",{value:n.d_value,placeholder:n.placeholder},function(){var L;return[nm(na(d.label==="p-emptylabel"?" ":(L=d.label)!==null&&L!==void 0?L:"empty"),1)]})],16,pKn)),d.isClearIconVisible?Vr(n.$slots,"clearicon",{key:2,class:Lo(n.cx("clearIcon")),clearCallback:d.onClearClick},function(){return[(ze(),Nn(jo(n.clearIcon?"i":"TimesIcon"),Et({ref:"clearIcon",class:[n.cx("clearIcon"),n.clearIcon],onClick:d.onClearClick},n.ptm("clearIcon"),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]}):fr("",!0),mr("div",Et({class:n.cx("dropdown")},n.ptm("dropdown")),[n.loading?Vr(n.$slots,"loadingicon",{key:0,class:Lo(n.cx("loadingIcon"))},function(){return[n.loadingIcon?(ze(),Lt("span",Et({key:0,class:[n.cx("loadingIcon"),"pi-spin",n.loadingIcon],"aria-hidden":"true"},n.ptm("loadingIcon")),null,16)):(ze(),Nn(h,Et({key:1,class:n.cx("loadingIcon"),spin:"","aria-hidden":"true"},n.ptm("loadingIcon")),null,16,["class"]))]}):Vr(n.$slots,"dropdownicon",{key:1,class:Lo(n.cx("dropdownIcon"))},function(){return[(ze(),Nn(jo(n.dropdownIcon?"span":"ChevronDownIcon"),Et({class:[n.cx("dropdownIcon"),n.dropdownIcon],"aria-hidden":"true"},n.ptm("dropdownIcon")),null,16,["class"]))]})],16),bi(O,{appendTo:n.appendTo},{default:vi(function(){return[bi(rpe,Et({name:"p-connected-overlay",onEnter:d.onOverlayEnter,onAfterEnter:d.onOverlayAfterEnter,onLeave:d.onOverlayLeave,onAfterLeave:d.onOverlayAfterLeave},n.ptm("transition")),{default:vi(function(){return[u.overlayVisible?(ze(),Lt("div",Et({key:0,ref:d.overlayRef,class:[n.cx("overlay"),n.panelClass,n.overlayClass],style:[n.panelStyle,n.overlayStyle],onClick:r[9]||(r[9]=function(){return d.onOverlayClick&&d.onOverlayClick.apply(d,arguments)}),onKeydown:r[10]||(r[10]=function(){return d.onOverlayKeyDown&&d.onOverlayKeyDown.apply(d,arguments)})},n.ptm("overlay")),[mr("span",Et({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:r[7]||(r[7]=function(){return d.onFirstHiddenFocus&&d.onFirstHiddenFocus.apply(d,arguments)})},n.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),Vr(n.$slots,"header",{value:n.d_value,options:d.visibleOptions}),n.filter?(ze(),Lt("div",Et({key:0,class:n.cx("header")},n.ptm("header")),[bi(E,{unstyled:n.unstyled,pt:n.ptm("pcFilterContainer")},{default:vi(function(){return[bi(w,{ref:"filterInput",type:"text",value:u.filterValue,onVnodeMounted:d.onFilterUpdated,onVnodeUpdated:d.onFilterUpdated,class:Lo(n.cx("pcFilter")),placeholder:n.filterPlaceholder,variant:n.variant,unstyled:n.unstyled,role:"searchbox",autocomplete:"off","aria-owns":u.id+"_list","aria-activedescendant":d.focusedOptionId,onKeydown:d.onFilterKeyDown,onBlur:d.onFilterBlur,onInput:d.onFilterChange,pt:n.ptm("pcFilter")},null,8,["value","onVnodeMounted","onVnodeUpdated","class","placeholder","variant","unstyled","aria-owns","aria-activedescendant","onKeydown","onBlur","onInput","pt"]),bi(y,{unstyled:n.unstyled,pt:n.ptm("pcFilterIconContainer")},{default:vi(function(){return[Vr(n.$slots,"filtericon",{},function(){return[n.filterIcon?(ze(),Lt("span",Et({key:0,class:n.filterIcon},n.ptm("filterIcon")),null,16)):(ze(),Nn(v,EL(Et({key:1},n.ptm("filterIcon"))),null,16))]})]}),_:3},8,["unstyled","pt"])]}),_:3},8,["unstyled","pt"]),mr("span",Et({role:"status","aria-live":"polite",class:"p-hidden-accessible"},n.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),na(d.filterResultMessageText),17)],16)):fr("",!0),mr("div",Et({class:n.cx("listContainer"),style:{"max-height":d.virtualScrollerDisabled?n.scrollHeight:""}},n.ptm("listContainer")),[bi(R,Et({ref:d.virtualScrollerRef},n.virtualScrollerOptions,{items:d.visibleOptions,style:{height:n.scrollHeight},tabindex:-1,disabled:d.virtualScrollerDisabled,pt:n.ptm("virtualScroller")}),jq({content:vi(function(L){var H=L.styleClass,G=L.contentRef,j=L.items,Q=L.getItemOptions,te=L.contentStyle,pe=L.itemSize;return[mr("ul",Et({ref:function(Ee){return d.listRef(Ee,G)},id:u.id+"_list",class:[n.cx("list"),H],style:te,role:"listbox"},n.ptm("list")),[(ze(!0),Lt(gi,null,uu(j,function(Le,Ee){return ze(),Lt(gi,{key:d.getOptionRenderKey(Le,d.getOptionIndex(Ee,Q))},[d.isOptionGroup(Le)?(ze(),Lt("li",Et({key:0,id:u.id+"_"+d.getOptionIndex(Ee,Q),style:{height:pe?pe+"px":void 0},class:n.cx("optionGroup"),role:"option",ref_for:!0},n.ptm("optionGroup")),[Vr(n.$slots,"optiongroup",{option:Le.optionGroup,index:d.getOptionIndex(Ee,Q)},function(){return[mr("span",Et({class:n.cx("optionGroupLabel"),ref_for:!0},n.ptm("optionGroupLabel")),na(d.getOptionGroupLabel(Le.optionGroup)),17)]})],16,gKn)):AS((ze(),Lt("li",Et({key:1,id:u.id+"_"+d.getOptionIndex(Ee,Q),class:n.cx("option",{option:Le,focusedOption:d.getOptionIndex(Ee,Q)}),style:{height:pe?pe+"px":void 0},role:"option","aria-label":d.getOptionLabel(Le),"aria-selected":d.isSelected(Le),"aria-disabled":d.isOptionDisabled(Le),"aria-setsize":d.ariaSetSize,"aria-posinset":d.getAriaPosInset(d.getOptionIndex(Ee,Q)),onClick:function(xe){return d.onOptionSelect(xe,Le)},onMousemove:function(xe){return d.onOptionMouseMove(xe,d.getOptionIndex(Ee,Q))},"data-p-selected":d.isSelected(Le),"data-p-focused":u.focusedOptionIndex===d.getOptionIndex(Ee,Q),"data-p-disabled":d.isOptionDisabled(Le),ref_for:!0},d.getPTItemOptions(Le,Q,Ee,"option")),[n.checkmark?(ze(),Lt(gi,{key:0},[d.isSelected(Le)?(ze(),Nn(A,Et({key:0,class:n.cx("optionCheckIcon"),ref_for:!0},n.ptm("optionCheckIcon")),null,16,["class"])):(ze(),Nn(C,Et({key:1,class:n.cx("optionBlankIcon"),ref_for:!0},n.ptm("optionBlankIcon")),null,16,["class"]))],64)):fr("",!0),Vr(n.$slots,"option",{option:Le,selected:d.isSelected(Le),index:d.getOptionIndex(Ee,Q)},function(){return[mr("span",Et({class:n.cx("optionLabel"),ref_for:!0},n.ptm("optionLabel")),na(d.getOptionLabel(Le)),17)]})],16,wKn)),[[M]])],64)}),128)),u.filterValue&&(!j||j&&j.length===0)?(ze(),Lt("li",Et({key:0,class:n.cx("emptyMessage"),role:"option"},n.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[Vr(n.$slots,"emptyfilter",{},function(){return[nm(na(d.emptyFilterMessageText),1)]})],16)):!n.options||n.options&&n.options.length===0?(ze(),Lt("li",Et({key:1,class:n.cx("emptyMessage"),role:"option"},n.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[Vr(n.$slots,"empty",{},function(){return[nm(na(d.emptyMessageText),1)]})],16)):fr("",!0)],16,bKn)]}),_:2},[n.$slots.loader?{name:"loader",fn:vi(function(L){var H=L.options;return[Vr(n.$slots,"loader",{options:H})]}),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),Vr(n.$slots,"footer",{value:n.d_value,options:d.visibleOptions}),!n.options||n.options&&n.options.length===0?(ze(),Lt("span",Et({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},n.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),na(d.emptyMessageText),17)):fr("",!0),mr("span",Et({role:"status","aria-live":"polite",class:"p-hidden-accessible"},n.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),na(d.selectedMessageText),17),mr("span",Et({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:r[8]||(r[8]=function(){return d.onLastHiddenFocus&&d.onLastHiddenFocus.apply(d,arguments)})},n.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):fr("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16,dKn)}eJ.render=mKn;var QQt={name:"WindowMaximizeIcon",extends:Fc};function yKn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z",fill:"currentColor"},null,-1)]),16)}QQt.render=yKn;var ZQt={name:"WindowMinimizeIcon",extends:Fc};function vKn(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"},null,-1)]),16)}ZQt.render=vKn;var _Kn=Bs.extend({name:"focustrap-directive"}),SKn=cl.extend({style:_Kn});function tX(n){"@babel/helpers - typeof";return tX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tX(n)}function nFt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function rFt(n){for(var r=1;r=r.minX&&v+l=r.minY&&y+u0){document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),w=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));u=Promise.allSettled(o.map(v=>{if(v=WKn(v),v in lFt)return;lFt[v]=!0;const y=v.endsWith(".css"),E=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${E}`))return;const A=document.createElement("link");if(A.rel=y?"stylesheet":BKn,y||(A.as="script"),A.crossOrigin="",A.href=v,w&&A.setAttribute("nonce",w),document.head.appendChild(A),y)return new Promise((C,R)=>{A.addEventListener("load",C),A.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${v}`)))})}))}function d(h){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=h,window.dispatchEvent(w),!w.defaultPrevented)throw h}return u.then(h=>{for(const w of h||[])w.status==="rejected"&&d(w.reason);return r().catch(d)})},HKn=(n,r,o,l)=>{if(o==="length"||o==="prototype"||o==="arguments"||o==="caller")return;const u=Object.getOwnPropertyDescriptor(n,o),d=Object.getOwnPropertyDescriptor(r,o);!UKn(u,d)&&l||Object.defineProperty(n,o,d)},UKn=function(n,r){return n===void 0||n.configurable||n.writable===r.writable&&n.enumerable===r.enumerable&&n.configurable===r.configurable&&(n.writable||n.value===r.value)},GKn=(n,r)=>{const o=Object.getPrototypeOf(r);o!==Object.getPrototypeOf(n)&&Object.setPrototypeOf(n,o)},VKn=(n,r)=>`/* Wrapped ${n}*/ +${r}`,zKn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),KKn=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),qKn=(n,r,o)=>{const l=o===""?"":`with ${o.trim()}() `,u=VKn.bind(null,l,r.toString());Object.defineProperty(u,"name",KKn),Object.defineProperty(n,"toString",{...zKn,value:u})};function XKn(n,r,{ignoreNonConfigurable:o=!1}={}){const{name:l}=n;for(const u of Reflect.ownKeys(r))HKn(n,r,u,o);return GKn(n,r),qKn(n,r,l),n}const $de=new WeakMap,sZt=(n,r={})=>{if(typeof n!="function")throw new TypeError("Expected a function");let o,l=0;const u=n.displayName||n.name||"",d=function(...h){if($de.set(d,++l),l===1)o=n.apply(this,h),n=null;else if(r.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return o};return XKn(d,n),$de.set(d,l),d};sZt.callCount=n=>{if(!$de.has(n))throw new Error(`The given function \`${n.name}\` is not wrapped by the \`onetime\` package`);return $de.get(n)};var fu=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function cv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function JKn(n){if(n.__esModule)return n;var r=n.default;if(typeof r=="function"){var o=function l(){return this instanceof l?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};o.prototype=r.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(n).forEach(function(l){var u=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(o,l,u.get?u:{enumerable:!0,get:function(){return n[l]}})}),o}var lZt={exports:{}},E7e={exports:{}},Kr={},cpe={};cpe.byteLength=ZKn;cpe.toByteArray=tqn;cpe.fromByteArray=iqn;var jE=[],zy=[],YKn=typeof Uint8Array<"u"?Uint8Array:Array,k7e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var iD=0,QKn=k7e.length;iD0)throw new Error("Invalid string. Length must be a multiple of 4");var o=n.indexOf("=");o===-1&&(o=r);var l=o===r?0:4-o%4;return[o,l]}function ZKn(n){var r=aZt(n),o=r[0],l=r[1];return(o+l)*3/4-l}function eqn(n,r,o){return(r+o)*3/4-o}function tqn(n){var r,o=aZt(n),l=o[0],u=o[1],d=new YKn(eqn(n,l,u)),h=0,w=u>0?l-4:l,v;for(v=0;v>16&255,d[h++]=r>>8&255,d[h++]=r&255;return u===2&&(r=zy[n.charCodeAt(v)]<<2|zy[n.charCodeAt(v+1)]>>4,d[h++]=r&255),u===1&&(r=zy[n.charCodeAt(v)]<<10|zy[n.charCodeAt(v+1)]<<4|zy[n.charCodeAt(v+2)]>>2,d[h++]=r>>8&255,d[h++]=r&255),d}function nqn(n){return jE[n>>18&63]+jE[n>>12&63]+jE[n>>6&63]+jE[n&63]}function rqn(n,r,o){for(var l,u=[],d=r;dw?w:h+d));return l===1?(r=n[o-1],u.push(jE[r>>2]+jE[r<<4&63]+"==")):l===2&&(r=(n[o-2]<<8)+n[o-1],u.push(jE[r>>10]+jE[r>>4&63]+jE[r<<2&63]+"=")),u.join("")}var GWe={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */GWe.read=function(n,r,o,l,u){var d,h,w=u*8-l-1,v=(1<>1,E=-7,A=o?u-1:0,C=o?-1:1,R=n[r+A];for(A+=C,d=R&(1<<-E)-1,R>>=-E,E+=w;E>0;d=d*256+n[r+A],A+=C,E-=8);for(h=d&(1<<-E)-1,d>>=-E,E+=l;E>0;h=h*256+n[r+A],A+=C,E-=8);if(d===0)d=1-y;else{if(d===v)return h?NaN:(R?-1:1)*(1/0);h=h+Math.pow(2,l),d=d-y}return(R?-1:1)*h*Math.pow(2,d-l)};GWe.write=function(n,r,o,l,u,d){var h,w,v,y=d*8-u-1,E=(1<>1,C=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=l?0:d-1,O=l?1:-1,M=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(w=isNaN(r)?1:0,h=E):(h=Math.floor(Math.log(r)/Math.LN2),r*(v=Math.pow(2,-h))<1&&(h--,v*=2),h+A>=1?r+=C/v:r+=C*Math.pow(2,1-A),r*v>=2&&(h++,v/=2),h+A>=E?(w=0,h=E):h+A>=1?(w=(r*v-1)*Math.pow(2,u),h=h+A):(w=r*Math.pow(2,A-1)*Math.pow(2,u),h=0));u>=8;n[o+R]=w&255,R+=O,w/=256,u-=8);for(h=h<0;n[o+R]=h&255,R+=O,h/=256,y-=8);n[o+R-O]|=M*128};/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */(function(n){const r=cpe,o=GWe,l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=w,n.SlowBuffer=G,n.INSPECT_MAX_BYTES=50;const u=2147483647;n.kMaxLength=u,w.TYPED_ARRAY_SUPPORT=d(),!w.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 d(){try{const $e=new Uint8Array(1),ce={foo:function(){return 42}};return Object.setPrototypeOf(ce,Uint8Array.prototype),Object.setPrototypeOf($e,ce),$e.foo()===42}catch{return!1}}Object.defineProperty(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}});function h($e){if($e>u)throw new RangeError('The value "'+$e+'" is invalid for option "size"');const ce=new Uint8Array($e);return Object.setPrototypeOf(ce,w.prototype),ce}function w($e,ce,de){if(typeof $e=="number"){if(typeof ce=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A($e)}return v($e,ce,de)}w.poolSize=8192;function v($e,ce,de){if(typeof $e=="string")return C($e,ce);if(ArrayBuffer.isView($e))return O($e);if($e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $e);if(he($e,ArrayBuffer)||$e&&he($e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he($e,SharedArrayBuffer)||$e&&he($e.buffer,SharedArrayBuffer)))return M($e,ce,de);if(typeof $e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const et=$e.valueOf&&$e.valueOf();if(et!=null&&et!==$e)return w.from(et,ce,de);const ht=L($e);if(ht)return ht;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof $e[Symbol.toPrimitive]=="function")return w.from($e[Symbol.toPrimitive]("string"),ce,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $e)}w.from=function($e,ce,de){return v($e,ce,de)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array);function y($e){if(typeof $e!="number")throw new TypeError('"size" argument must be of type number');if($e<0)throw new RangeError('The value "'+$e+'" is invalid for option "size"')}function E($e,ce,de){return y($e),$e<=0?h($e):ce!==void 0?typeof de=="string"?h($e).fill(ce,de):h($e).fill(ce):h($e)}w.alloc=function($e,ce,de){return E($e,ce,de)};function A($e){return y($e),h($e<0?0:H($e)|0)}w.allocUnsafe=function($e){return A($e)},w.allocUnsafeSlow=function($e){return A($e)};function C($e,ce){if((typeof ce!="string"||ce==="")&&(ce="utf8"),!w.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);const de=j($e,ce)|0;let et=h(de);const ht=et.write($e,ce);return ht!==de&&(et=et.slice(0,ht)),et}function R($e){const ce=$e.length<0?0:H($e.length)|0,de=h(ce);for(let et=0;et=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return $e|0}function G($e){return+$e!=$e&&($e=0),w.alloc(+$e)}w.isBuffer=function(ce){return ce!=null&&ce._isBuffer===!0&&ce!==w.prototype},w.compare=function(ce,de){if(he(ce,Uint8Array)&&(ce=w.from(ce,ce.offset,ce.byteLength)),he(de,Uint8Array)&&(de=w.from(de,de.offset,de.byteLength)),!w.isBuffer(ce)||!w.isBuffer(de))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ce===de)return 0;let et=ce.length,ht=de.length;for(let Jt=0,Zt=Math.min(et,ht);Jtht.length?(w.isBuffer(Zt)||(Zt=w.from(Zt)),Zt.copy(ht,Jt)):Uint8Array.prototype.set.call(ht,Zt,Jt);else if(w.isBuffer(Zt))Zt.copy(ht,Jt);else throw new TypeError('"list" argument must be an Array of Buffers');Jt+=Zt.length}return ht};function j($e,ce){if(w.isBuffer($e))return $e.length;if(ArrayBuffer.isView($e)||he($e,ArrayBuffer))return $e.byteLength;if(typeof $e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof $e);const de=$e.length,et=arguments.length>2&&arguments[2]===!0;if(!et&&de===0)return 0;let ht=!1;for(;;)switch(ce){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return q($e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de*2;case"hex":return de>>>1;case"base64":return Ie($e).length;default:if(ht)return et?-1:q($e).length;ce=(""+ce).toLowerCase(),ht=!0}}w.byteLength=j;function Q($e,ce,de){let et=!1;if((ce===void 0||ce<0)&&(ce=0),ce>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0,ce>>>=0,de<=ce))return"";for($e||($e="utf8");;)switch($e){case"hex":return Ue(this,ce,de);case"utf8":case"utf-8":return me(this,ce,de);case"ascii":return Be(this,ce,de);case"latin1":case"binary":return He(this,ce,de);case"base64":return F(this,ce,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,ce,de);default:if(et)throw new TypeError("Unknown encoding: "+$e);$e=($e+"").toLowerCase(),et=!0}}w.prototype._isBuffer=!0;function te($e,ce,de){const et=$e[ce];$e[ce]=$e[de],$e[de]=et}w.prototype.swap16=function(){const ce=this.length;if(ce%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let de=0;dede&&(ce+=" ... "),""},l&&(w.prototype[l]=w.prototype.inspect),w.prototype.compare=function(ce,de,et,ht,Jt){if(he(ce,Uint8Array)&&(ce=w.from(ce,ce.offset,ce.byteLength)),!w.isBuffer(ce))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ce);if(de===void 0&&(de=0),et===void 0&&(et=ce?ce.length:0),ht===void 0&&(ht=0),Jt===void 0&&(Jt=this.length),de<0||et>ce.length||ht<0||Jt>this.length)throw new RangeError("out of range index");if(ht>=Jt&&de>=et)return 0;if(ht>=Jt)return-1;if(de>=et)return 1;if(de>>>=0,et>>>=0,ht>>>=0,Jt>>>=0,this===ce)return 0;let Zt=Jt-ht,qr=et-de;const ao=Math.min(Zt,qr),ki=this.slice(ht,Jt),Ri=ce.slice(de,et);for(let xi=0;xi2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),de=+de,zt(de)&&(de=ht?0:$e.length-1),de<0&&(de=$e.length+de),de>=$e.length){if(ht)return-1;de=$e.length-1}else if(de<0)if(ht)de=0;else return-1;if(typeof ce=="string"&&(ce=w.from(ce,et)),w.isBuffer(ce))return ce.length===0?-1:Le($e,ce,de,et,ht);if(typeof ce=="number")return ce=ce&255,typeof Uint8Array.prototype.indexOf=="function"?ht?Uint8Array.prototype.indexOf.call($e,ce,de):Uint8Array.prototype.lastIndexOf.call($e,ce,de):Le($e,[ce],de,et,ht);throw new TypeError("val must be string, number or Buffer")}function Le($e,ce,de,et,ht){let Jt=1,Zt=$e.length,qr=ce.length;if(et!==void 0&&(et=String(et).toLowerCase(),et==="ucs2"||et==="ucs-2"||et==="utf16le"||et==="utf-16le")){if($e.length<2||ce.length<2)return-1;Jt=2,Zt/=2,qr/=2,de/=2}function ao(Ri,xi){return Jt===1?Ri[xi]:Ri.readUInt16BE(xi*Jt)}let ki;if(ht){let Ri=-1;for(ki=de;kiZt&&(de=Zt-qr),ki=de;ki>=0;ki--){let Ri=!0;for(let xi=0;xiht&&(et=ht)):et=ht;const Jt=ce.length;et>Jt/2&&(et=Jt/2);let Zt;for(Zt=0;Zt>>0,isFinite(et)?(et=et>>>0,ht===void 0&&(ht="utf8")):(ht=et,et=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Jt=this.length-de;if((et===void 0||et>Jt)&&(et=Jt),ce.length>0&&(et<0||de<0)||de>this.length)throw new RangeError("Attempt to write outside buffer bounds");ht||(ht="utf8");let Zt=!1;for(;;)switch(ht){case"hex":return Ee(this,ce,de,et);case"utf8":case"utf-8":return le(this,ce,de,et);case"ascii":case"latin1":case"binary":return xe(this,ce,de,et);case"base64":return be(this,ce,de,et);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,ce,de,et);default:if(Zt)throw new TypeError("Unknown encoding: "+ht);ht=(""+ht).toLowerCase(),Zt=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F($e,ce,de){return ce===0&&de===$e.length?r.fromByteArray($e):r.fromByteArray($e.slice(ce,de))}function me($e,ce,de){de=Math.min($e.length,de);const et=[];let ht=ce;for(;ht239?4:Jt>223?3:Jt>191?2:1;if(ht+qr<=de){let ao,ki,Ri,xi;switch(qr){case 1:Jt<128&&(Zt=Jt);break;case 2:ao=$e[ht+1],(ao&192)===128&&(xi=(Jt&31)<<6|ao&63,xi>127&&(Zt=xi));break;case 3:ao=$e[ht+1],ki=$e[ht+2],(ao&192)===128&&(ki&192)===128&&(xi=(Jt&15)<<12|(ao&63)<<6|ki&63,xi>2047&&(xi<55296||xi>57343)&&(Zt=xi));break;case 4:ao=$e[ht+1],ki=$e[ht+2],Ri=$e[ht+3],(ao&192)===128&&(ki&192)===128&&(Ri&192)===128&&(xi=(Jt&15)<<18|(ao&63)<<12|(ki&63)<<6|Ri&63,xi>65535&&xi<1114112&&(Zt=xi))}}Zt===null?(Zt=65533,qr=1):Zt>65535&&(Zt-=65536,et.push(Zt>>>10&1023|55296),Zt=56320|Zt&1023),et.push(Zt),ht+=qr}return we(et)}const ye=4096;function we($e){const ce=$e.length;if(ce<=ye)return String.fromCharCode.apply(String,$e);let de="",et=0;for(;etet)&&(de=et);let ht="";for(let Jt=ce;Jtet&&(ce=et),de<0?(de+=et,de<0&&(de=0)):de>et&&(de=et),dede)throw new RangeError("Trying to access beyond buffer length")}w.prototype.readUintLE=w.prototype.readUIntLE=function(ce,de,et){ce=ce>>>0,de=de>>>0,et||Me(ce,de,this.length);let ht=this[ce],Jt=1,Zt=0;for(;++Zt>>0,de=de>>>0,et||Me(ce,de,this.length);let ht=this[ce+--de],Jt=1;for(;de>0&&(Jt*=256);)ht+=this[ce+--de]*Jt;return ht},w.prototype.readUint8=w.prototype.readUInt8=function(ce,de){return ce=ce>>>0,de||Me(ce,1,this.length),this[ce]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(ce,de){return ce=ce>>>0,de||Me(ce,2,this.length),this[ce]|this[ce+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(ce,de){return ce=ce>>>0,de||Me(ce,2,this.length),this[ce]<<8|this[ce+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(ce,de){return ce=ce>>>0,de||Me(ce,4,this.length),(this[ce]|this[ce+1]<<8|this[ce+2]<<16)+this[ce+3]*16777216},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(ce,de){return ce=ce>>>0,de||Me(ce,4,this.length),this[ce]*16777216+(this[ce+1]<<16|this[ce+2]<<8|this[ce+3])},w.prototype.readBigUInt64LE=$n(function(ce){ce=ce>>>0,T(ce,"offset");const de=this[ce],et=this[ce+7];(de===void 0||et===void 0)&&$(ce,this.length-8);const ht=de+this[++ce]*2**8+this[++ce]*2**16+this[++ce]*2**24,Jt=this[++ce]+this[++ce]*2**8+this[++ce]*2**16+et*2**24;return BigInt(ht)+(BigInt(Jt)<>>0,T(ce,"offset");const de=this[ce],et=this[ce+7];(de===void 0||et===void 0)&&$(ce,this.length-8);const ht=de*2**24+this[++ce]*2**16+this[++ce]*2**8+this[++ce],Jt=this[++ce]*2**24+this[++ce]*2**16+this[++ce]*2**8+et;return(BigInt(ht)<>>0,de=de>>>0,et||Me(ce,de,this.length);let ht=this[ce],Jt=1,Zt=0;for(;++Zt=Jt&&(ht-=Math.pow(2,8*de)),ht},w.prototype.readIntBE=function(ce,de,et){ce=ce>>>0,de=de>>>0,et||Me(ce,de,this.length);let ht=de,Jt=1,Zt=this[ce+--ht];for(;ht>0&&(Jt*=256);)Zt+=this[ce+--ht]*Jt;return Jt*=128,Zt>=Jt&&(Zt-=Math.pow(2,8*de)),Zt},w.prototype.readInt8=function(ce,de){return ce=ce>>>0,de||Me(ce,1,this.length),this[ce]&128?(255-this[ce]+1)*-1:this[ce]},w.prototype.readInt16LE=function(ce,de){ce=ce>>>0,de||Me(ce,2,this.length);const et=this[ce]|this[ce+1]<<8;return et&32768?et|4294901760:et},w.prototype.readInt16BE=function(ce,de){ce=ce>>>0,de||Me(ce,2,this.length);const et=this[ce+1]|this[ce]<<8;return et&32768?et|4294901760:et},w.prototype.readInt32LE=function(ce,de){return ce=ce>>>0,de||Me(ce,4,this.length),this[ce]|this[ce+1]<<8|this[ce+2]<<16|this[ce+3]<<24},w.prototype.readInt32BE=function(ce,de){return ce=ce>>>0,de||Me(ce,4,this.length),this[ce]<<24|this[ce+1]<<16|this[ce+2]<<8|this[ce+3]},w.prototype.readBigInt64LE=$n(function(ce){ce=ce>>>0,T(ce,"offset");const de=this[ce],et=this[ce+7];(de===void 0||et===void 0)&&$(ce,this.length-8);const ht=this[ce+4]+this[ce+5]*2**8+this[ce+6]*2**16+(et<<24);return(BigInt(ht)<>>0,T(ce,"offset");const de=this[ce],et=this[ce+7];(de===void 0||et===void 0)&&$(ce,this.length-8);const ht=(de<<24)+this[++ce]*2**16+this[++ce]*2**8+this[++ce];return(BigInt(ht)<>>0,de||Me(ce,4,this.length),o.read(this,ce,!0,23,4)},w.prototype.readFloatBE=function(ce,de){return ce=ce>>>0,de||Me(ce,4,this.length),o.read(this,ce,!1,23,4)},w.prototype.readDoubleLE=function(ce,de){return ce=ce>>>0,de||Me(ce,8,this.length),o.read(this,ce,!0,52,8)},w.prototype.readDoubleBE=function(ce,de){return ce=ce>>>0,de||Me(ce,8,this.length),o.read(this,ce,!1,52,8)};function vt($e,ce,de,et,ht,Jt){if(!w.isBuffer($e))throw new TypeError('"buffer" argument must be a Buffer instance');if(ce>ht||ce$e.length)throw new RangeError("Index out of range")}w.prototype.writeUintLE=w.prototype.writeUIntLE=function(ce,de,et,ht){if(ce=+ce,de=de>>>0,et=et>>>0,!ht){const qr=Math.pow(2,8*et)-1;vt(this,ce,de,et,qr,0)}let Jt=1,Zt=0;for(this[de]=ce&255;++Zt>>0,et=et>>>0,!ht){const qr=Math.pow(2,8*et)-1;vt(this,ce,de,et,qr,0)}let Jt=et-1,Zt=1;for(this[de+Jt]=ce&255;--Jt>=0&&(Zt*=256);)this[de+Jt]=ce/Zt&255;return de+et},w.prototype.writeUint8=w.prototype.writeUInt8=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,1,255,0),this[de]=ce&255,de+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,2,65535,0),this[de]=ce&255,this[de+1]=ce>>>8,de+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,2,65535,0),this[de]=ce>>>8,this[de+1]=ce&255,de+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,4,4294967295,0),this[de+3]=ce>>>24,this[de+2]=ce>>>16,this[de+1]=ce>>>8,this[de]=ce&255,de+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,4,4294967295,0),this[de]=ce>>>24,this[de+1]=ce>>>16,this[de+2]=ce>>>8,this[de+3]=ce&255,de+4};function re($e,ce,de,et,ht){Oe(ce,et,ht,$e,de,7);let Jt=Number(ce&BigInt(4294967295));$e[de++]=Jt,Jt=Jt>>8,$e[de++]=Jt,Jt=Jt>>8,$e[de++]=Jt,Jt=Jt>>8,$e[de++]=Jt;let Zt=Number(ce>>BigInt(32)&BigInt(4294967295));return $e[de++]=Zt,Zt=Zt>>8,$e[de++]=Zt,Zt=Zt>>8,$e[de++]=Zt,Zt=Zt>>8,$e[de++]=Zt,de}function Te($e,ce,de,et,ht){Oe(ce,et,ht,$e,de,7);let Jt=Number(ce&BigInt(4294967295));$e[de+7]=Jt,Jt=Jt>>8,$e[de+6]=Jt,Jt=Jt>>8,$e[de+5]=Jt,Jt=Jt>>8,$e[de+4]=Jt;let Zt=Number(ce>>BigInt(32)&BigInt(4294967295));return $e[de+3]=Zt,Zt=Zt>>8,$e[de+2]=Zt,Zt=Zt>>8,$e[de+1]=Zt,Zt=Zt>>8,$e[de]=Zt,de+8}w.prototype.writeBigUInt64LE=$n(function(ce,de=0){return re(this,ce,de,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeBigUInt64BE=$n(function(ce,de=0){return Te(this,ce,de,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeIntLE=function(ce,de,et,ht){if(ce=+ce,de=de>>>0,!ht){const ao=Math.pow(2,8*et-1);vt(this,ce,de,et,ao-1,-ao)}let Jt=0,Zt=1,qr=0;for(this[de]=ce&255;++Jt>0)-qr&255;return de+et},w.prototype.writeIntBE=function(ce,de,et,ht){if(ce=+ce,de=de>>>0,!ht){const ao=Math.pow(2,8*et-1);vt(this,ce,de,et,ao-1,-ao)}let Jt=et-1,Zt=1,qr=0;for(this[de+Jt]=ce&255;--Jt>=0&&(Zt*=256);)ce<0&&qr===0&&this[de+Jt+1]!==0&&(qr=1),this[de+Jt]=(ce/Zt>>0)-qr&255;return de+et},w.prototype.writeInt8=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,1,127,-128),ce<0&&(ce=255+ce+1),this[de]=ce&255,de+1},w.prototype.writeInt16LE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,2,32767,-32768),this[de]=ce&255,this[de+1]=ce>>>8,de+2},w.prototype.writeInt16BE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,2,32767,-32768),this[de]=ce>>>8,this[de+1]=ce&255,de+2},w.prototype.writeInt32LE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,4,2147483647,-2147483648),this[de]=ce&255,this[de+1]=ce>>>8,this[de+2]=ce>>>16,this[de+3]=ce>>>24,de+4},w.prototype.writeInt32BE=function(ce,de,et){return ce=+ce,de=de>>>0,et||vt(this,ce,de,4,2147483647,-2147483648),ce<0&&(ce=4294967295+ce+1),this[de]=ce>>>24,this[de+1]=ce>>>16,this[de+2]=ce>>>8,this[de+3]=ce&255,de+4},w.prototype.writeBigInt64LE=$n(function(ce,de=0){return re(this,ce,de,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeBigInt64BE=$n(function(ce,de=0){return Te(this,ce,de,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ct($e,ce,de,et,ht,Jt){if(de+et>$e.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function at($e,ce,de,et,ht){return ce=+ce,de=de>>>0,ht||ct($e,ce,de,4),o.write($e,ce,de,et,23,4),de+4}w.prototype.writeFloatLE=function(ce,de,et){return at(this,ce,de,!0,et)},w.prototype.writeFloatBE=function(ce,de,et){return at(this,ce,de,!1,et)};function Ye($e,ce,de,et,ht){return ce=+ce,de=de>>>0,ht||ct($e,ce,de,8),o.write($e,ce,de,et,52,8),de+8}w.prototype.writeDoubleLE=function(ce,de,et){return Ye(this,ce,de,!0,et)},w.prototype.writeDoubleBE=function(ce,de,et){return Ye(this,ce,de,!1,et)},w.prototype.copy=function(ce,de,et,ht){if(!w.isBuffer(ce))throw new TypeError("argument should be a Buffer");if(et||(et=0),!ht&&ht!==0&&(ht=this.length),de>=ce.length&&(de=ce.length),de||(de=0),ht>0&&ht=this.length)throw new RangeError("Index out of range");if(ht<0)throw new RangeError("sourceEnd out of bounds");ht>this.length&&(ht=this.length),ce.length-de>>0,et=et===void 0?this.length:et>>>0,ce||(ce=0);let Jt;if(typeof ce=="number")for(Jt=de;Jt2**32?ht=rn(String(de)):typeof de=="bigint"&&(ht=String(de),(de>BigInt(2)**BigInt(32)||de<-(BigInt(2)**BigInt(32)))&&(ht=rn(ht)),ht+="n"),et+=` It must be ${ce}. Received ${ht}`,et},RangeError);function rn($e){let ce="",de=$e.length;const et=$e[0]==="-"?1:0;for(;de>=et+4;de-=3)ce=`_${$e.slice(de-3,de)}${ce}`;return`${$e.slice(0,de)}${ce}`}function Pe($e,ce,de){T(ce,"offset"),($e[ce]===void 0||$e[ce+de]===void 0)&&$(ce,$e.length-(de+1))}function Oe($e,ce,de,et,ht,Jt){if($e>de||$e= 0${Zt} and < 2${Zt} ** ${(Jt+1)*8}${Zt}`:qr=`>= -(2${Zt} ** ${(Jt+1)*8-1}${Zt}) and < 2 ** ${(Jt+1)*8-1}${Zt}`,new mt.ERR_OUT_OF_RANGE("value",qr,$e)}Pe(et,ht,Jt)}function T($e,ce){if(typeof $e!="number")throw new mt.ERR_INVALID_ARG_TYPE(ce,"number",$e)}function $($e,ce,de){throw Math.floor($e)!==$e?(T($e,de),new mt.ERR_OUT_OF_RANGE("offset","an integer",$e)):ce<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${ce}`,$e)}const B=/[^+/0-9A-Za-z-_]/g;function K($e){if($e=$e.split("=")[0],$e=$e.trim().replace(B,""),$e.length<2)return"";for(;$e.length%4!==0;)$e=$e+"=";return $e}function q($e,ce){ce=ce||1/0;let de;const et=$e.length;let ht=null;const Jt=[];for(let Zt=0;Zt55295&&de<57344){if(!ht){if(de>56319){(ce-=3)>-1&&Jt.push(239,191,189);continue}else if(Zt+1===et){(ce-=3)>-1&&Jt.push(239,191,189);continue}ht=de;continue}if(de<56320){(ce-=3)>-1&&Jt.push(239,191,189),ht=de;continue}de=(ht-55296<<10|de-56320)+65536}else ht&&(ce-=3)>-1&&Jt.push(239,191,189);if(ht=null,de<128){if((ce-=1)<0)break;Jt.push(de)}else if(de<2048){if((ce-=2)<0)break;Jt.push(de>>6|192,de&63|128)}else if(de<65536){if((ce-=3)<0)break;Jt.push(de>>12|224,de>>6&63|128,de&63|128)}else if(de<1114112){if((ce-=4)<0)break;Jt.push(de>>18|240,de>>12&63|128,de>>6&63|128,de&63|128)}else throw new Error("Invalid code point")}return Jt}function ke($e){const ce=[];for(let de=0;de<$e.length;++de)ce.push($e.charCodeAt(de)&255);return ce}function Re($e,ce){let de,et,ht;const Jt=[];for(let Zt=0;Zt<$e.length&&!((ce-=2)<0);++Zt)de=$e.charCodeAt(Zt),et=de>>8,ht=de%256,Jt.push(ht),Jt.push(et);return Jt}function Ie($e){return r.toByteArray(K($e))}function St($e,ce,de,et){let ht;for(ht=0;ht=ce.length||ht>=$e.length);++ht)ce[ht+de]=$e[ht];return ht}function he($e,ce){return $e instanceof ce||$e!=null&&$e.constructor!=null&&$e.constructor.name!=null&&$e.constructor.name===ce.name}function zt($e){return $e!==$e}const Qt=function(){const $e="0123456789abcdef",ce=new Array(256);for(let de=0;de<16;++de){const et=de*16;for(let ht=0;ht<16;++ht)ce[et+ht]=$e[de]+$e[ht]}return ce}();function $n($e){return typeof BigInt>"u"?Gn:$e}function Gn(){throw new Error("BigInt not supported")}})(Kr);var Df={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},cZt={exports:{}},Yz={exports:{}},aFt;function $o(){if(aFt)return Yz.exports;aFt=1;const{AbortController:n,AbortSignal:r}=typeof self<"u"?self:typeof window<"u"?window:void 0;return Yz.exports=n,Yz.exports.AbortSignal=r,Yz.exports.default=n,Yz.exports}var VWe={exports:{}},YD=typeof Reflect=="object"?Reflect:null,cFt=YD&&typeof YD.apply=="function"?YD.apply:function(r,o,l){return Function.prototype.apply.call(r,o,l)},Ife;YD&&typeof YD.ownKeys=="function"?Ife=YD.ownKeys:Object.getOwnPropertySymbols?Ife=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Ife=function(r){return Object.getOwnPropertyNames(r)};function oqn(n){console&&console.warn&&console.warn(n)}var uZt=Number.isNaN||function(r){return r!==r};function Sc(){Sc.init.call(this)}VWe.exports=Sc;VWe.exports.once=cqn;Sc.EventEmitter=Sc;Sc.prototype._events=void 0;Sc.prototype._eventsCount=0;Sc.prototype._maxListeners=void 0;var uFt=10;function upe(n){if(typeof n!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}Object.defineProperty(Sc,"defaultMaxListeners",{enumerable:!0,get:function(){return uFt},set:function(n){if(typeof n!="number"||n<0||uZt(n))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+n+".");uFt=n}});Sc.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};Sc.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||uZt(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function fZt(n){return n._maxListeners===void 0?Sc.defaultMaxListeners:n._maxListeners}Sc.prototype.getMaxListeners=function(){return fZt(this)};Sc.prototype.emit=function(r){for(var o=[],l=1;l0&&(h=o[0]),h instanceof Error)throw h;var w=new Error("Unhandled error."+(h?" ("+h.message+")":""));throw w.context=h,w}var v=d[r];if(v===void 0)return!1;if(typeof v=="function")cFt(v,this,o);else for(var y=v.length,E=gZt(v,y),l=0;l0&&h.length>u&&!h.warned){h.warned=!0;var w=new Error("Possible EventEmitter memory leak detected. "+h.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");w.name="MaxListenersExceededWarning",w.emitter=n,w.type=r,w.count=h.length,oqn(w)}return n}Sc.prototype.addListener=function(r,o){return dZt(this,r,o,!1)};Sc.prototype.on=Sc.prototype.addListener;Sc.prototype.prependListener=function(r,o){return dZt(this,r,o,!0)};function sqn(){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 hZt(n,r,o){var l={fired:!1,wrapFn:void 0,target:n,type:r,listener:o},u=sqn.bind(l);return u.listener=o,l.wrapFn=u,u}Sc.prototype.once=function(r,o){return upe(o),this.on(r,hZt(this,r,o)),this};Sc.prototype.prependOnceListener=function(r,o){return upe(o),this.prependListener(r,hZt(this,r,o)),this};Sc.prototype.removeListener=function(r,o){var l,u,d,h,w;if(upe(o),u=this._events,u===void 0)return this;if(l=u[r],l===void 0)return this;if(l===o||l.listener===o)--this._eventsCount===0?this._events=Object.create(null):(delete u[r],u.removeListener&&this.emit("removeListener",r,l.listener||o));else if(typeof l!="function"){for(d=-1,h=l.length-1;h>=0;h--)if(l[h]===o||l[h].listener===o){w=l[h].listener,d=h;break}if(d<0)return this;d===0?l.shift():lqn(l,d),l.length===1&&(u[r]=l[0]),u.removeListener!==void 0&&this.emit("removeListener",r,w||o)}return this};Sc.prototype.off=Sc.prototype.removeListener;Sc.prototype.removeAllListeners=function(r){var o,l,u;if(l=this._events,l===void 0)return this;if(l.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):l[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete l[r]),this;if(arguments.length===0){var d=Object.keys(l),h;for(u=0;u=0;u--)this.removeListener(r,o[u]);return this};function pZt(n,r,o){var l=n._events;if(l===void 0)return[];var u=l[r];return u===void 0?[]:typeof u=="function"?o?[u.listener||u]:[u]:o?aqn(u):gZt(u,u.length)}Sc.prototype.listeners=function(r){return pZt(this,r,!0)};Sc.prototype.rawListeners=function(r){return pZt(this,r,!1)};Sc.listenerCount=function(n,r){return typeof n.listenerCount=="function"?n.listenerCount(r):bZt.call(n,r)};Sc.prototype.listenerCount=bZt;function bZt(n){var r=this._events;if(r!==void 0){var o=r[n];if(typeof o=="function")return 1;if(o!==void 0)return o.length}return 0}Sc.prototype.eventNames=function(){return this._eventsCount>0?Ife(this._events):[]};function gZt(n,r){for(var o=new Array(r),l=0;l{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(cZt);var s1=cZt.exports,zWe={};const{format:fqn,inspect:Ide,AggregateError:dqn}=s1,hqn=globalThis.AggregateError||dqn,pqn=Symbol("kIsNodeError"),bqn=["string","function","number","object","Function","Object","boolean","bigint","symbol"],gqn=/^([A-Z][a-z0-9]*)+$/,wqn="__node_internal_",fpe={};function J8(n,r){if(!n)throw new fpe.ERR_INTERNAL_ASSERTION(r)}function fFt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function mqn(n,r,o){if(typeof r=="function")return J8(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return J8(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:fqn(r,...o)}function Xp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(mqn(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[pqn]=!0,fpe[n]=l}function dFt(n){const r=wqn+n.name;return Object.defineProperty(n,"name",{value:r}),n}function yqn(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new hqn([r,n],r.message);return o.code=r.code,o}return n||r}let vqn=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new fpe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Xp("ERR_ASSERTION","%s",Error);Xp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{J8(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)J8(typeof v=="string","All expected entries have to be of type string"),bqn.includes(v)?u.push(v.toLowerCase()):gqn.test(v)?d.push(v):(J8(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=Ide(o,{depth:-1});l+=`. Received ${v}`}}else{let v=Ide(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Xp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=Ide(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Xp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Xp("ERR_MISSING_ARGS",(...n)=>{J8(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Xp("ERR_OUT_OF_RANGE",(n,r,o)=>{J8(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=fFt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=fFt(l)),l+="n"):l=Ide(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Xp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Xp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Xp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Xp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Xp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Xp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Xp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Xp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Xp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Xp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Xp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var A0={AbortError:vqn,aggregateTwoErrors:dFt(yqn),hideStackFrames:dFt,codes:fpe};const{ArrayIsArray:KWe,ArrayPrototypeIncludes:mZt,ArrayPrototypeJoin:yZt,ArrayPrototypeMap:_qn,NumberIsInteger:qWe,NumberIsNaN:Sqn,NumberMAX_SAFE_INTEGER:Eqn,NumberMIN_SAFE_INTEGER:kqn,NumberParseInt:Rqn,ObjectPrototypeHasOwnProperty:xqn,RegExpPrototypeExec:vZt,String:Cqn,StringPrototypeToUpperCase:Aqn,StringPrototypeTrim:Tqn}=Df,{hideStackFrames:uv,codes:{ERR_SOCKET_BAD_PORT:$qn,ERR_INVALID_ARG_TYPE:zb,ERR_INVALID_ARG_VALUE:ij,ERR_OUT_OF_RANGE:_P,ERR_UNKNOWN_SIGNAL:hFt}}=A0,{normalizeEncoding:Iqn}=s1,{isAsyncFunction:Pqn,isArrayBufferView:Oqn}=s1.types,pFt={};function Nqn(n){return n===(n|0)}function Mqn(n){return n===n>>>0}const Dqn=/^[0-7]+$/,Lqn="must be a 32-bit unsigned integer or an octal string";function jqn(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(vZt(Dqn,n)===null)throw new ij(r,n,Lqn);n=Rqn(n,8)}return _Zt(n,r),n}const Fqn=uv((n,r,o=kqn,l=Eqn)=>{if(typeof n!="number")throw new zb(r,"number",n);if(!qWe(n))throw new _P(r,"an integer",n);if(nl)throw new _P(r,`>= ${o} && <= ${l}`,n)}),Bqn=uv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new zb(r,"number",n);if(!qWe(n))throw new _P(r,"an integer",n);if(nl)throw new _P(r,`>= ${o} && <= ${l}`,n)}),_Zt=uv((n,r,o=!1)=>{if(typeof n!="number")throw new zb(r,"number",n);if(!qWe(n))throw new _P(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new _P(r,`>= ${l} && <= ${u}`,n)});function XWe(n,r){if(typeof n!="string")throw new zb(r,"string",n)}function Wqn(n,r,o=void 0,l){if(typeof n!="number")throw new zb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&Sqn(n))throw new _P(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const Hqn=uv((n,r,o)=>{if(!mZt(o,n)){const u="must be one of: "+yZt(_qn(o,d=>typeof d=="string"?`'${d}'`:Cqn(d)),", ");throw new ij(r,n,u)}});function SZt(n,r){if(typeof n!="boolean")throw new zb(r,"boolean",n)}function R7e(n,r,o){return n==null||!xqn(n,r)?o:n[r]}const Uqn=uv((n,r,o=null)=>{const l=R7e(o,"allowArray",!1),u=R7e(o,"allowFunction",!1);if(!R7e(o,"nullable",!1)&&n===null||!l&&KWe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new zb(r,"Object",n)}),Gqn=uv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new zb(r,"a dictionary",n)}),dpe=uv((n,r,o=0)=>{if(!KWe(n))throw new zb(r,"Array",n);if(n.length{if(!Oqn(n))throw new zb(r,["Buffer","TypedArray","DataView"],n)});function Jqn(n,r){const o=Iqn(r),l=n.length;if(o==="hex"&&l%2!==0)throw new ij("encoding",r,`is invalid for data of length ${l}`)}function Yqn(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&Tqn(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new $qn(r,n,o);return n|0}const EZt=uv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new zb(r,"AbortSignal",n)}),Qqn=uv((n,r)=>{if(typeof n!="function")throw new zb(r,"Function",n)}),Zqn=uv((n,r)=>{if(typeof n!="function"||Pqn(n))throw new zb(r,"Function",n)}),eXn=uv((n,r)=>{if(n!==void 0)throw new zb(r,"undefined",n)});function tXn(n,r,o){if(!mZt(o,n))throw new zb(r,`('${yZt(o,"|")}')`,n)}const nXn=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function bFt(n,r){if(typeof n>"u"||!vZt(nXn,n))throw new ij(r,n,'must be an array or string of format "; rel=preload; as=style"')}function rXn(n){if(typeof n=="string")return bFt(n,"hints"),n;if(KWe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var nJ={isInt32:Nqn,isUint32:Mqn,parseFileMode:jqn,validateArray:dpe,validateStringArray:Vqn,validateBooleanArray:zqn,validateAbortSignalArray:Kqn,validateBoolean:SZt,validateBuffer:Xqn,validateDictionary:Gqn,validateEncoding:Jqn,validateFunction:Qqn,validateInt32:Bqn,validateInteger:Fqn,validateNumber:Wqn,validateObject:Uqn,validateOneOf:Hqn,validatePlainFunction:Zqn,validatePort:Yqn,validateSignalName:qqn,validateString:XWe,validateUint32:_Zt,validateUndefined:eXn,validateUnion:tXn,validateAbortSignal:EZt,validateLinkHeaderValue:rXn},JWe={exports:{}},kZt={exports:{}},Sd=kZt.exports={},IE,PE;function LLe(){throw new Error("setTimeout has not been defined")}function jLe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?IE=setTimeout:IE=LLe}catch{IE=LLe}try{typeof clearTimeout=="function"?PE=clearTimeout:PE=jLe}catch{PE=jLe}})();function RZt(n){if(IE===setTimeout)return setTimeout(n,0);if((IE===LLe||!IE)&&setTimeout)return IE=setTimeout,setTimeout(n,0);try{return IE(n,0)}catch{try{return IE.call(null,n,0)}catch{return IE.call(this,n,0)}}}function iXn(n){if(PE===clearTimeout)return clearTimeout(n);if((PE===jLe||!PE)&&clearTimeout)return PE=clearTimeout,clearTimeout(n);try{return PE(n)}catch{try{return PE.call(null,n)}catch{return PE.call(this,n)}}}var WR=[],QD=!1,H8,Pfe=-1;function oXn(){!QD||!H8||(QD=!1,H8.length?WR=H8.concat(WR):Pfe=-1,WR.length&&xZt())}function xZt(){if(!QD){var n=RZt(oXn);QD=!0;for(var r=WR.length;r;){for(H8=WR,WR=[];++Pfe1)for(var o=1;o{};function HZt(n,r,o){var l,u;if(arguments.length===2?(o=r,r=WLe):r==null?r=WLe:RXn(r,"options"),kXn(o,"callback"),EXn(r.signal,"options.signal"),o=HLe(o),$Xn(n)||IXn(n))return DXn(n,r,o);if(!PXn(n))throw new SXn("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:x7e(n),h=(u=r.writable)!==null&&u!==void 0?u:EFt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=OXn(n)&&x7e(n)===d&&EFt(n)===h,A=kFt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=vFt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=TXn(n);const H=()=>{L=!0;const te=RFt(n)||_Ft(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&x7e(n,!0)&&!vFt(n,!1))return o.call(n,new mFt);if(h&&!A&&!kFt(n,!1))return o.call(n,new mFt);o.call(n)},G=()=>{L=!0;const te=RFt(n)||_Ft(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};MXn(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?V4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||V4.nextTick(G):(!d&&(!E||yFt(n))&&(A||SFt(n)===!1)||!h&&(!E||SFt(n))&&(R||yFt(n)===!1)||v&&n.req&&n.aborted)&&V4.nextTick(G);const Q=()=>{o=ULe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new BZt(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)V4.nextTick(te);else{ZD=ZD||s1.addAbortListener;const pe=ZD(r.signal,te),Le=o;o=HLe((...Ee)=>{pe[WZt](),Le.apply(n,Ee)})}}return Q}function DXn(n,r,o){let l=!1,u=ULe;if(r.signal)if(u=()=>{l=!0,o.call(n,new BZt(void 0,{cause:r.signal.reason}))},r.signal.aborted)V4.nextTick(u);else{ZD=ZD||s1.addAbortListener;const h=ZD(r.signal,u),w=o;o=HLe((...v)=>{h[WZt](),w.apply(n,v)})}const d=(...h)=>{l||V4.nextTick(()=>o.apply(n,h))};return AXn(n[NXn].promise,d,d),ULe}function LXn(n,r){var o;let l=!1;return r===null&&(r=WLe),(o=r)!==null&&o!==void 0&&o.cleanup&&(xXn(r.cleanup,"cleanup"),l=r.cleanup),new CXn((u,d)=>{const h=HZt(n,r,w=>{l&&h(),w?d(w):u()})})}JWe.exports=HZt;JWe.exports.finished=LXn;var MT=JWe.exports;const WE=ui,{aggregateTwoErrors:jXn,codes:{ERR_MULTIPLE_CALLBACK:FXn},AbortError:BXn}=A0,{Symbol:UZt}=Df,{kIsDestroyed:WXn,isDestroyed:HXn,isFinished:UXn,isServerRequest:GXn}=kx,GZt=UZt("kDestroy"),GLe=UZt("kConstruct");function VZt(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function VXn(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(VZt(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?xFt(this,n,r):this.once(GZt,function(d){xFt(this,jXn(d,n),r)}),this)}function xFt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;VZt(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?WE.nextTick(zXn,n,d):WE.nextTick(zZt,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function zXn(n,r){VLe(n,r),zZt(n)}function zZt(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function VLe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function KXn(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function zLe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?WE.nextTick(VLe,n,r):VLe(n,r))}function qXn(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(GLe,r),!(n.listenerCount(GLe)>1)&&WE.nextTick(XXn,n)}function XXn(n){let r=!1;function o(l){if(r){zLe(n,l??new FXn);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(GZt,l):l?zLe(n,l,!0):WE.nextTick(JXn,n)}try{n._construct(l=>{WE.nextTick(o,l)})}catch(l){WE.nextTick(o,l)}}function JXn(n){n.emit(GLe)}function CFt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function KZt(n){n.emit("close")}function YXn(n,r){n.emit("error",r),WE.nextTick(KZt,n)}function QXn(n,r){!n||HXn(n)||(!r&&!UXn(n)&&(r=new BXn),GXn(n)?(n.socket=null,n.destroy(r)):CFt(n)?n.abort():CFt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?WE.nextTick(YXn,n,r):WE.nextTick(KZt,n),n.destroyed||(n[WXn]=!0))}var oj={construct:qXn,destroyer:QXn,destroy:VXn,undestroy:KXn,errorOrDestroy:zLe};const{ArrayIsArray:ZXn,ObjectSetPrototypeOf:qZt}=Df,{EventEmitter:gpe}=Ns;function wpe(n){gpe.call(this,n)}qZt(wpe.prototype,gpe.prototype);qZt(wpe,gpe);wpe.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),gpe.listenerCount(this,"error")===0&&this.emit("error",E)}KLe(o,"error",v),KLe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function KLe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):ZXn(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var YWe={Stream:wpe,prependListener:KLe},XZt={exports:{}};(function(n){const{SymbolDispose:r}=Df,{AbortError:o,codes:l}=A0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=kx,w=MT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||s1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(XZt);var mpe=XZt.exports;const{StringPrototypeSlice:AFt,SymbolIterator:eJn,TypedArrayPrototypeSet:Qce,Uint8Array:tJn}=Df,{Buffer:C7e}=Kr,{inspect:nJn}=s1;var rJn=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return C7e.alloc(0);const o=C7e.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Qce(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=AFt(d,0,r),this.head=l,l.data=AFt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=C7e.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Qce(o,h,l-r),r-=h.length;else{r===h.length?(Qce(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Qce(o,new tJn(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return nJn(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:iJn,NumberIsInteger:oJn}=Df,{validateInteger:sJn}=nJ,{ERR_INVALID_ARG_VALUE:lJn}=A0.codes;let JZt=16*1024,YZt=16;function aJn(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function QZt(n){return n?YZt:JZt}function cJn(n,r){sJn(r,"value",0),n?YZt=r:JZt=r}function uJn(n,r,o,l){const u=aJn(r,l,o);if(u!=null){if(!oJn(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new lJn(d,u)}return iJn(u)}return QZt(n.objectMode)}var ype={getHighWaterMark:uJn,getDefaultHighWaterMark:QZt,setDefaultHighWaterMark:cJn},rm={},qLe={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(n,r){var o=Kr,l=o.Buffer;function u(h,w){for(var v in h)w[v]=h[v]}l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow?n.exports=o:(u(o,r),r.Buffer=d);function d(h,w,v){return l(h,w,v)}d.prototype=Object.create(l.prototype),u(l,d),d.from=function(h,w,v){if(typeof h=="number")throw new TypeError("Argument must not be a number");return l(h,w,v)},d.alloc=function(h,w,v){if(typeof h!="number")throw new TypeError("Argument must be a number");var y=l(h);return w!==void 0?typeof v=="string"?y.fill(w,v):y.fill(w):y.fill(0),y},d.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return l(h)},d.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(h)}})(qLe,qLe.exports);var fJn=qLe.exports,QWe=fJn.Buffer,TFt=QWe.isEncoding||function(n){switch(n=""+n,n&&n.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 dJn(n){if(!n)return"utf8";for(var r;;)switch(n){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 n;default:if(r)return;n=(""+n).toLowerCase(),r=!0}}function hJn(n){var r=dJn(n);if(typeof r!="string"&&(QWe.isEncoding===TFt||!TFt(n)))throw new Error("Unknown encoding: "+n);return r||n}rm.StringDecoder=rJ;function rJ(n){this.encoding=hJn(n);var r;switch(this.encoding){case"utf16le":this.text=yJn,this.end=vJn,r=4;break;case"utf8":this.fillLast=gJn,r=4;break;case"base64":this.text=_Jn,this.end=SJn,r=3;break;default:this.write=EJn,this.end=kJn;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=QWe.allocUnsafe(r)}rJ.prototype.write=function(n){if(n.length===0)return"";var r,o;if(this.lastNeed){if(r=this.fillLast(n),r===void 0)return"";o=this.lastNeed,this.lastNeed=0}else o=0;return o>5===6?2:n>>4===14?3:n>>3===30?4:n>>6===2?-1:-2}function pJn(n,r,o){var l=r.length-1;if(l=0?(u>0&&(n.lastNeed=u-1),u):--l=0?(u>0&&(n.lastNeed=u-2),u):--l=0?(u>0&&(u===2?u=0:n.lastNeed=u-3),u):0))}function bJn(n,r,o){if((r[0]&192)!==128)return n.lastNeed=0,"�";if(n.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return n.lastNeed=1,"�";if(n.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return n.lastNeed=2,"�"}}function gJn(n){var r=this.lastTotal-this.lastNeed,o=bJn(this,n);if(o!==void 0)return o;if(this.lastNeed<=n.length)return n.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);n.copy(this.lastChar,r,0,n.length),this.lastNeed-=n.length}function wJn(n,r){var o=pJn(this,n,r);if(!this.lastNeed)return n.toString("utf8",r);this.lastTotal=o;var l=n.length-(o-this.lastNeed);return n.copy(this.lastChar,0,l),n.toString("utf8",r,l)}function mJn(n){var r=n&&n.length?this.write(n):"";return this.lastNeed?r+"�":r}function yJn(n,r){if((n.length-r)%2===0){var o=n.toString("utf16le",r);if(o){var l=o.charCodeAt(o.length-1);if(l>=55296&&l<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1],o.slice(0,-1)}return o}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=n[n.length-1],n.toString("utf16le",r,n.length-1)}function vJn(n){var r=n&&n.length?this.write(n):"";if(this.lastNeed){var o=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,o)}return r}function _Jn(n,r){var o=(n.length-r)%3;return o===0?n.toString("base64",r):(this.lastNeed=3-o,this.lastTotal=3,o===1?this.lastChar[0]=n[n.length-1]:(this.lastChar[0]=n[n.length-2],this.lastChar[1]=n[n.length-1]),n.toString("base64",r,n.length-o))}function SJn(n){var r=n&&n.length?this.write(n):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function EJn(n){return n.toString(this.encoding)}function kJn(n){return n&&n.length?this.write(n):""}const $Ft=ui,{PromisePrototypeThen:RJn,SymbolAsyncIterator:IFt,SymbolIterator:PFt}=Df,{Buffer:xJn}=Kr,{ERR_INVALID_ARG_TYPE:CJn,ERR_STREAM_NULL_VALUES:AJn}=A0.codes;function TJn(n,r,o){let l;if(typeof r=="string"||r instanceof xJn)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[IFt])u=!0,l=r[IFt]();else if(r&&r[PFt])u=!1,l=r[PFt]();else throw new CJn("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){RJn(w(y),()=>$Ft.nextTick(E,y),A=>$Ft.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new AJn;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var ZZt=TJn,T7e,OFt;function vpe(){if(OFt)return T7e;OFt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Df;T7e=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=YWe,{Buffer:L}=Kr,{addAbortSignal:H}=mpe,G=MT;let j=s1.debuglog("stream",S=>{j=S});const Q=rJn,te=oj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=ype,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=A0,{validateObject:ye}=nJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=ZZt;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof qR()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof qR();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},T7e}var $7e,NFt;function ZWe(){if(NFt)return $7e;NFt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Df;$7e=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=YWe.Stream,{Buffer:C}=Kr,R=oj,{addAbortSignal:O}=mpe,{getHighWaterMark:M,getDefaultHighWaterMark:L}=ype,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=A0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof qR()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof qR();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return I7e}var P7e,DFt;function qR(){if(DFt)return P7e;DFt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Df;P7e=h;const u=vpe(),d=ZWe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function NJn(){this._final!==XLe&&XLe.call(this)}XR.prototype._final=XLe;XR.prototype._transform=function(n,r,o){throw new PJn("_transform()")};XR.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=Pde(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,BJn.destroyer(n,d||new UJn("pipe")))},cleanup:u}}function YJn(n){return zJn(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function F7e(n){if(S8(n))return n;if(Ofe(n))return QJn(n);throw new JLe("val",["Readable","Iterable","AsyncIterable"],n)}async function*QJn(n){L7e||(L7e=vpe()),yield*L7e.prototype[LJn].call(n)}async function Zce(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new DJn((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=Pde(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?WJn(u,y):y)}finally{v(),r.off("drain",h)}}async function B7e(n,r,o,{end:l}){mD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function ZJn(...n){return ien(n,FJn(YJn(n)))}function ien(n,r,o){if(n.length===1&&MJn(n[0])&&(n=n[0]),n.length<2)throw new HJn("streams");const l=new JJn,u=l.signal,d=o==null?void 0:o.signal,h=[];KJn(d,"options.signal");function w(){O(new VJn)}j7e=j7e||s1.addAbortListener;let v;d&&(v=j7e(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[jJn](),l.abort(),j&&(y||h.forEach(te=>te()),EK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(jFt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=FFt(j,Q,te);A.push(le),N7e(j)&&Le&&h.push(xe)}j.on("error",Ee),N7e(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!S8(M))throw new O7e("Iterable, AsyncIterable or Stream","source",M)}else S8(j)||Ofe(j)||mD(j)?M=j:M=LFt.from(j);else if(typeof j=="function"){if(mD(M)){var L;M=F7e((L=M)===null||L===void 0?void 0:L.readable)}else M=F7e(M);if(M=j(M,{signal:u}),Q){if(!S8(M,!0))throw new O7e("AsyncIterable",`transform[${G-1}]`,M)}else{var H;D7e||(D7e=ren);const Ee=new D7e({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),EK.nextTick(R)},ae=>{Ee.destroy(ae),EK.nextTick(R,ae)});else if(S8(M,!0))C++,Zce(M,Ee,R,{end:pe});else if(M7e(M)||mD(M)){const ae=M.readable||M;C++,Zce(ae,Ee,R,{end:pe})}else throw new O7e("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=FFt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(jFt(j)){if(Ofe(M)){C+=2;const Ee=eYn(M,j,R,{end:pe});N7e(j)&&Le&&h.push(Ee)}else if(mD(M)||M7e(M)){const Ee=M.readable||M;C++,Zce(Ee,j,R,{end:pe})}else if(S8(M))C++,Zce(M,j,R,{end:pe});else throw new JLe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(qJn(j)){if(Ofe(M))C++,B7e(F7e(M),j,R,{end:pe});else if(M7e(M)||S8(M))C++,B7e(M,j,R,{end:pe});else if(mD(M))C++,B7e(M.readable,j,R,{end:pe});else throw new JLe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=LFt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&EK.nextTick(w),M}function eYn(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new GJn)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};XJn(n)?EK.nextTick(d):n.once("end",d)}else o();return Pde(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),Pde(r,{readable:!1,writable:!0},o)}var nHe={pipelineImpl:ien,pipeline:ZJn};const{pipeline:tYn}=nHe,eue=qR(),{destroyer:nYn}=oj,{isNodeStream:tue,isReadable:BFt,isWritable:WFt,isWebStream:W7e,isTransformStream:t8,isWritableStream:HFt,isReadableStream:UFt}=kx,{AbortError:rYn,codes:{ERR_INVALID_ARG_VALUE:GFt,ERR_MISSING_ARGS:iYn}}=A0,oYn=MT;var oen=function(...r){if(r.length===0)throw new iYn("streams");if(r.length===1)return eue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=eue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=eue.from(r[R])}for(let R=0;R0&&!(WFt(r[R])||HFt(r[R])||t8(r[R])))throw new GFt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=tYn(r,v),A=!!(WFt(y)||HFt(y)||t8(y)),C=!!(BFt(E)||UFt(E)||t8(E));if(w=new eue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(tue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(W7e(y)){const M=(t8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=t8(E)?E.readable:E;oYn(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(tue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(W7e(E)){const O=(t8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new rYn),d=null,l=null,u=null,h===null?O(R):(h=O,tue(E)&&nYn(E,R))},w};const sYn=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:lYn,ERR_INVALID_ARG_TYPE:iJ,ERR_MISSING_ARGS:aYn,ERR_OUT_OF_RANGE:cYn},AbortError:ek}=A0,{validateAbortSignal:UP,validateInteger:VFt,validateObject:GP}=nJ,uYn=Df.Symbol("kWeak"),fYn=Df.Symbol("kResistStopPropagation"),{finished:dYn}=MT,hYn=oen,{addAbortSignalNoValidate:pYn}=mpe,{isWritable:bYn,isNodeStream:gYn}=kx,{deprecate:wYn}=s1,{ArrayPrototypePush:mYn,Boolean:yYn,MathFloor:zFt,Number:vYn,NumberIsNaN:_Yn,Promise:KFt,PromiseReject:qFt,PromiseResolve:SYn,PromisePrototypeThen:XFt,Symbol:sen}=Df,Ode=sen("kEmpty"),JFt=sen("kEof");function EYn(n,r){if(r!=null&&GP(r,"options"),(r==null?void 0:r.signal)!=null&&UP(r.signal,"options.signal"),gYn(n)&&!bYn(n))throw new lYn("stream",n,"must be writable");const o=hYn(this,n);return r!=null&&r.signal&&pYn(r.signal,o),o}function _pe(n,r){if(typeof n!="function")throw new iJ("fn",["Function","AsyncFunction"],n);r!=null&&GP(r,"options"),(r==null?void 0:r.signal)!=null&&UP(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=zFt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=zFt(r.highWaterMark)),VFt(o,"options.concurrency",1),VFt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=s1.AbortSignalAny([r==null?void 0:r.signal].filter(yYn)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new KFt(G=>{E=G})}w.push(JFt)}catch(H){const G=qFt(H);XFt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===JFt)return;if(d.aborted)throw new ek;H!==Ode&&(yield H),w.shift(),M()}await new KFt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function kYn(n=void 0){return n!=null&&GP(n,"options"),(n==null?void 0:n.signal)!=null&&UP(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new ek({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function len(n,r=void 0){for await(const o of rHe.call(this,n,r))return!0;return!1}async function RYn(n,r=void 0){if(typeof n!="function")throw new iJ("fn",["Function","AsyncFunction"],n);return!await len.call(this,async(...o)=>!await n(...o),r)}async function xYn(n,r){for await(const o of rHe.call(this,n,r))return o}async function CYn(n,r){if(typeof n!="function")throw new iJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),Ode}for await(const l of _pe.call(this,o,r));}function rHe(n,r){if(typeof n!="function")throw new iJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:Ode}return _pe.call(this,o,r)}let AYn=class extends aYn{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function TYn(n,r,o){var l;if(typeof n!="function")throw new iJ("reducer",["Function","AsyncFunction"],n);o!=null&&GP(o,"options"),(o==null?void 0:o.signal)!=null&&UP(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new ek(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await dYn(this.destroy(y)),y}const d=new sYn,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[uYn]:this,[fYn]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new ek;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new AYn}finally{d.abort()}return r}async function $Yn(n){n!=null&&GP(n,"options"),(n==null?void 0:n.signal)!=null&&UP(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new ek(void 0,{cause:n.signal.reason});mYn(r,l)}return r}function IYn(n,r){const o=_pe.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function aen(n){if(n=vYn(n),_Yn(n))return 0;if(n<0)throw new cYn("number",">= 0",n);return n}function PYn(n,r=void 0){return r!=null&&GP(r,"options"),(r==null?void 0:r.signal)!=null&&UP(r.signal,"options.signal"),n=aen(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ek;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ek;n--<=0&&(yield d)}}).call(this)}function OYn(n,r=void 0){return r!=null&&GP(r,"options"),(r==null?void 0:r.signal)!=null&&UP(r.signal,"options.signal"),n=aen(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ek;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ek;if(n-- >0&&(yield d),n<=0)return}}).call(this)}zWe.streamReturningOperators={asIndexedPairs:wYn(kYn,"readable.asIndexedPairs will be removed in a future version."),drop:PYn,filter:rHe,flatMap:IYn,map:_pe,take:OYn,compose:EYn};zWe.promiseReturningOperators={every:RYn,forEach:CYn,reduce:TYn,toArray:$Yn,some:len,find:xYn};var H7e,YFt;function cen(){if(YFt)return H7e;YFt=1;const{ArrayPrototypePop:n,Promise:r}=Df,{isIterable:o,isNodeStream:l,isWebStream:u}=kx,{pipelineImpl:d}=nHe,{finished:h}=MT;uen();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return H7e={finished:h,pipeline:w},H7e}var QFt;function uen(){if(QFt)return E7e.exports;QFt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Df,{promisify:{custom:u}}=s1,{streamReturningOperators:d,promiseReturningOperators:h}=zWe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=A0,v=oen,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=ype,{pipeline:A}=nHe,{destroyer:C}=oj,R=MT,O=cen(),M=kx,L=E7e.exports=YWe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=vpe();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=ZWe(),L.Duplex=qR(),L.Transform=ten,L.PassThrough=ren,L.pipeline=A;const{addAbortSignal:H}=mpe;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},E7e.exports}(function(n){const r=uen(),o=cen(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(lZt);var NYn=lZt.exports;class MYn{constructor(r,...o){this.load=sZt(async()=>{const l=await r();return new l(...o)})}import(r,o){const l=new NYn.PassThrough({objectMode:!0});return Promise.resolve().then(async()=>{const d=(await this.load()).import(r,o);d.on("prefix",(h,w)=>{l.emit("prefix",h,w)}),d.on("error",h=>{l.emit("error",h),l.emit("end")}),d.pipe(l)}),l}}function fv(n){return class extends MYn{constructor(...r){super(n,...r)}}}const DYn=new AL,LYn=new AL,lm={parsers:DYn,serializers:LYn},jYn=fv(async()=>(await C0(async()=>{const{default:n}=await Promise.resolve().then(()=>Cgr);return{default:n}},void 0)).default),oJ=fv(async()=>(await C0(async()=>{const{default:n}=await Promise.resolve().then(()=>Ywr);return{default:n}},void 0)).default),FYn=fv(async()=>(await C0(async()=>{const{default:n}=await import("./CustomRdfXmlParser-CK1Us3uO.js");return{default:n}},[])).default),Spe=fv(async()=>(await C0(async()=>{const{default:n}=await Promise.resolve().then(()=>l_r);return{default:n}},void 0)).default),BYn=fv(async()=>(await C0(async()=>{const{default:n}=await import("./CustomJsonLdSerializer-DTOusYP8.js");return{default:n}},[])).default);lm.parsers.set("application/ld+json",new jYn);lm.parsers.set("application/trig",new oJ);lm.parsers.set("application/n-quads",new oJ);lm.parsers.set("application/n-triples",new oJ);lm.parsers.set("text/n3",new oJ);lm.parsers.set("text/turtle",new oJ);lm.parsers.set("application/rdf+xml",new FYn);lm.serializers.set("application/ld+json",new BYn);lm.serializers.set("application/n-quads",new Spe);lm.serializers.set("application/n-triples",new Spe);lm.serializers.set("text/n3",new Spe);lm.serializers.set("text/turtle",new Spe);var YLe={exports:{}},fen=Ns.EventEmitter;const WYn={},HYn=Object.freeze(Object.defineProperty({__proto__:null,default:WYn},Symbol.toStringTag,{value:"Module"})),Epe=JKn(HYn);var U7e,ZFt;function UYn(){if(ZFt)return U7e;ZFt=1;function n(O,M){var L=Object.keys(O);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(O);M&&(H=H.filter(function(G){return Object.getOwnPropertyDescriptor(O,G).enumerable})),L.push.apply(L,H)}return L}function r(O){for(var M=1;M0?this.tail.next=H:this.head=H,this.tail=H,++this.length}},{key:"unshift",value:function(L){var H={data:L,next:this.head};this.length===0&&(this.tail=H),this.head=H,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var H=this.head,G=""+H.data;H=H.next;)G+=L+H.data;return G}},{key:"concat",value:function(L){if(this.length===0)return y.alloc(0);for(var H=y.allocUnsafe(L>>>0),G=this.head,j=0;G;)R(G.data,H,j),j+=G.data.length,G=G.next;return H}},{key:"consume",value:function(L,H){var G;return LQ.length?Q.length:L;if(te===Q.length?j+=Q:j+=Q.slice(0,L),L-=te,L===0){te===Q.length?(++G,H.next?this.head=H.next:this.head=this.tail=null):(this.head=H,H.data=Q.slice(te));break}++G}return this.length-=G,j}},{key:"_getBuffer",value:function(L){var H=y.allocUnsafe(L),G=this.head,j=1;for(G.data.copy(H),L-=G.data.length;G=G.next;){var Q=G.data,te=L>Q.length?Q.length:L;if(Q.copy(H,H.length-L,0,te),L-=te,L===0){te===Q.length?(++j,G.next?this.head=G.next:this.head=this.tail=null):(this.head=G,G.data=Q.slice(te));break}++j}return this.length-=j,H}},{key:C,value:function(L,H){return A(this,r(r({},H),{},{depth:0,customInspect:!1}))}}]),O}(),U7e}function GYn(n,r){var o=this,l=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return l||u?(r?r(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Wl.nextTick(QLe,this,n)):Wl.nextTick(QLe,this,n)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(d){!r&&d?o._writableState?o._writableState.errorEmitted?Wl.nextTick(Nfe,o):(o._writableState.errorEmitted=!0,Wl.nextTick(eBt,o,d)):Wl.nextTick(eBt,o,d):r?(Wl.nextTick(Nfe,o),r(d)):Wl.nextTick(Nfe,o)}),this)}function eBt(n,r){QLe(n,r),Nfe(n)}function Nfe(n){n._writableState&&!n._writableState.emitClose||n._readableState&&!n._readableState.emitClose||n.emit("close")}function VYn(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function QLe(n,r){n.emit("error",r)}function zYn(n,r){var o=n._readableState,l=n._writableState;o&&o.autoDestroy||l&&l.autoDestroy?n.destroy(r):n.emit("error",r)}var den={destroy:GYn,undestroy:VYn,errorOrDestroy:zYn},VP={};function KYn(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r}var hen={};function dv(n,r,o){o||(o=Error);function l(d,h,w){return typeof r=="string"?r:r(d,h,w)}var u=function(d){KYn(h,d);function h(w,v,y){return d.call(this,l(w,v,y))||this}return h}(o);u.prototype.name=o.name,u.prototype.code=n,hen[n]=u}function tBt(n,r){if(Array.isArray(n)){var o=n.length;return n=n.map(function(l){return String(l)}),o>2?"one of ".concat(r," ").concat(n.slice(0,o-1).join(", "),", or ")+n[o-1]:o===2?"one of ".concat(r," ").concat(n[0]," or ").concat(n[1]):"of ".concat(r," ").concat(n[0])}else return"of ".concat(r," ").concat(String(n))}function qYn(n,r,o){return n.substr(0,r.length)===r}function XYn(n,r,o){return(o===void 0||o>n.length)&&(o=n.length),n.substring(o-r.length,o)===r}function JYn(n,r,o){return typeof o!="number"&&(o=0),o+r.length>n.length?!1:n.indexOf(r,o)!==-1}dv("ERR_INVALID_OPT_VALUE",function(n,r){return'The value "'+r+'" is invalid for option "'+n+'"'},TypeError);dv("ERR_INVALID_ARG_TYPE",function(n,r,o){var l;typeof r=="string"&&qYn(r,"not ")?(l="must not be",r=r.replace(/^not /,"")):l="must be";var u;if(XYn(n," argument"))u="The ".concat(n," ").concat(l," ").concat(tBt(r,"type"));else{var d=JYn(n,".")?"property":"argument";u='The "'.concat(n,'" ').concat(d," ").concat(l," ").concat(tBt(r,"type"))}return u+=". Received type ".concat(typeof o),u},TypeError);dv("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");dv("ERR_METHOD_NOT_IMPLEMENTED",function(n){return"The "+n+" method is not implemented"});dv("ERR_STREAM_PREMATURE_CLOSE","Premature close");dv("ERR_STREAM_DESTROYED",function(n){return"Cannot call "+n+" after a stream was destroyed"});dv("ERR_MULTIPLE_CALLBACK","Callback called multiple times");dv("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");dv("ERR_STREAM_WRITE_AFTER_END","write after end");dv("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);dv("ERR_UNKNOWN_ENCODING",function(n){return"Unknown encoding: "+n},TypeError);dv("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");VP.codes=hen;var YYn=VP.codes.ERR_INVALID_OPT_VALUE;function QYn(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function ZYn(n,r,o,l){var u=QYn(r,l,o);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var d=l?o:"highWaterMark";throw new YYn(d,u)}return Math.floor(u)}return n.objectMode?16:16*1024}var pen={getHighWaterMark:ZYn},ZLe={exports:{}};typeof Object.create=="function"?ZLe.exports=function(r,o){o&&(r.super_=o,r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:ZLe.exports=function(r,o){if(o){r.super_=o;var l=function(){};l.prototype=o.prototype,r.prototype=new l,r.prototype.constructor=r}};var sj=ZLe.exports,eQn=tQn;function tQn(n,r){if(G7e("noDeprecation"))return n;var o=!1;function l(){if(!o){if(G7e("throwDeprecation"))throw new Error(r);G7e("traceDeprecation")?console.trace(r):console.warn(r),o=!0}return n.apply(this,arguments)}return l}function G7e(n){try{if(!window.localStorage)return!1}catch{return!1}var r=window.localStorage[n];return r==null?!1:String(r).toLowerCase()==="true"}var V7e,nBt;function ben(){if(nBt)return V7e;nBt=1,V7e=Ee;function n(at){var Ye=this;this.next=null,this.entry=null,this.finish=function(){ct(Ye,at)}}var r;Ee.WritableState=pe;var o={deprecate:eQn},l=fen,u=Kr.Buffer,d=(typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(at){return u.from(at)}function w(at){return u.isBuffer(at)||at instanceof d}var v=den,y=pen,E=y.getHighWaterMark,A=VP.codes,C=A.ERR_INVALID_ARG_TYPE,R=A.ERR_METHOD_NOT_IMPLEMENTED,O=A.ERR_MULTIPLE_CALLBACK,M=A.ERR_STREAM_CANNOT_PIPE,L=A.ERR_STREAM_DESTROYED,H=A.ERR_STREAM_NULL_VALUES,G=A.ERR_STREAM_WRITE_AFTER_END,j=A.ERR_UNKNOWN_ENCODING,Q=v.errorOrDestroy;sj(Ee,l);function te(){}function pe(at,Ye,mt){r=r||$L(),at=at||{},typeof mt!="boolean"&&(mt=Ye instanceof r),this.objectMode=!!at.objectMode,mt&&(this.objectMode=this.objectMode||!!at.writableObjectMode),this.highWaterMark=E(this,at,"writableHighWaterMark",mt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var jt=at.decodeStrings===!1;this.decodeStrings=!jt,this.defaultEncoding=at.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(rn){we(Ye,rn)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=at.emitClose!==!1,this.autoDestroy=!!at.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}pe.prototype.getBuffer=function(){for(var Ye=this.bufferedRequest,mt=[];Ye;)mt.push(Ye),Ye=Ye.next;return mt},function(){try{Object.defineProperty(pe.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Le;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Le=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ee,Symbol.hasInstance,{value:function(Ye){return Le.call(this,Ye)?!0:this!==Ee?!1:Ye&&Ye._writableState instanceof pe}})):Le=function(Ye){return Ye instanceof this};function Ee(at){r=r||$L();var Ye=this instanceof r;if(!Ye&&!Le.call(Ee,this))return new Ee(at);this._writableState=new pe(at,this,Ye),this.writable=!0,at&&(typeof at.write=="function"&&(this._write=at.write),typeof at.writev=="function"&&(this._writev=at.writev),typeof at.destroy=="function"&&(this._destroy=at.destroy),typeof at.final=="function"&&(this._final=at.final)),l.call(this)}Ee.prototype.pipe=function(){Q(this,new M)};function le(at,Ye){var mt=new G;Q(at,mt),Wl.nextTick(Ye,mt)}function xe(at,Ye,mt,jt){var rn;return mt===null?rn=new H:typeof mt!="string"&&!Ye.objectMode&&(rn=new C("chunk",["string","Buffer"],mt)),rn?(Q(at,rn),Wl.nextTick(jt,rn),!1):!0}Ee.prototype.write=function(at,Ye,mt){var jt=this._writableState,rn=!1,Pe=!jt.objectMode&&w(at);return Pe&&!u.isBuffer(at)&&(at=h(at)),typeof Ye=="function"&&(mt=Ye,Ye=null),Pe?Ye="buffer":Ye||(Ye=jt.defaultEncoding),typeof mt!="function"&&(mt=te),jt.ending?le(this,mt):(Pe||xe(this,jt,at,mt))&&(jt.pendingcb++,rn=ae(this,jt,Pe,at,Ye,mt)),rn},Ee.prototype.cork=function(){this._writableState.corked++},Ee.prototype.uncork=function(){var at=this._writableState;at.corked&&(at.corked--,!at.writing&&!at.corked&&!at.bufferProcessing&&at.bufferedRequest&&Ue(this,at))},Ee.prototype.setDefaultEncoding=function(Ye){if(typeof Ye=="string"&&(Ye=Ye.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ye+"").toLowerCase())>-1))throw new j(Ye);return this._writableState.defaultEncoding=Ye,this},Object.defineProperty(Ee.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function be(at,Ye,mt){return!at.objectMode&&at.decodeStrings!==!1&&typeof Ye=="string"&&(Ye=u.from(Ye,mt)),Ye}Object.defineProperty(Ee.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ae(at,Ye,mt,jt,rn,Pe){if(!mt){var Oe=be(Ye,jt,rn);jt!==Oe&&(mt=!0,rn="buffer",jt=Oe)}var T=Ye.objectMode?1:jt.length;Ye.length+=T;var $=Ye.length0)if(typeof Oe!="string"&&!K.objectMode&&Object.getPrototypeOf(Oe)!==l.prototype&&(Oe=d(Oe)),$)K.endEmitted?te(Pe,new H):be(Pe,K,Oe,!0);else if(K.ended)te(Pe,new M);else{if(K.destroyed)return!1;K.reading=!1,K.decoder&&!T?(Oe=K.decoder.write(Oe),K.objectMode||Oe.length!==0?be(Pe,K,Oe,!1):Ue(Pe,K)):be(Pe,K,Oe,!1)}else $||(K.reading=!1,Ue(Pe,K))}return!K.ended&&(K.length=F?Pe=F:(Pe--,Pe|=Pe>>>1,Pe|=Pe>>>2,Pe|=Pe>>>4,Pe|=Pe>>>8,Pe|=Pe>>>16,Pe++),Pe}function ye(Pe,Oe){return Pe<=0||Oe.length===0&&Oe.ended?0:Oe.objectMode?1:Pe!==Pe?Oe.flowing&&Oe.length?Oe.buffer.head.data.length:Oe.length:(Pe>Oe.highWaterMark&&(Oe.highWaterMark=me(Pe)),Pe<=Oe.length?Pe:Oe.ended?Oe.length:(Oe.needReadable=!0,0))}le.prototype.read=function(Pe){v("read",Pe),Pe=parseInt(Pe,10);var Oe=this._readableState,T=Pe;if(Pe!==0&&(Oe.emittedReadable=!1),Pe===0&&Oe.needReadable&&((Oe.highWaterMark!==0?Oe.length>=Oe.highWaterMark:Oe.length>0)||Oe.ended))return v("read: emitReadable",Oe.length,Oe.ended),Oe.length===0&&Oe.ended?mt(this):Be(this),null;if(Pe=ye(Pe,Oe),Pe===0&&Oe.ended)return Oe.length===0&&mt(this),null;var $=Oe.needReadable;v("need readable",$),(Oe.length===0||Oe.length-Pe0?B=Ye(Pe,Oe):B=null,B===null?(Oe.needReadable=Oe.length<=Oe.highWaterMark,Pe=0):(Oe.length-=Pe,Oe.awaitDrain=0),Oe.length===0&&(Oe.ended||(Oe.needReadable=!0),T!==Pe&&Oe.ended&&mt(this)),B!==null&&this.emit("data",B),B};function we(Pe,Oe){if(v("onEofChunk"),!Oe.ended){if(Oe.decoder){var T=Oe.decoder.end();T&&T.length&&(Oe.buffer.push(T),Oe.length+=Oe.objectMode?1:T.length)}Oe.ended=!0,Oe.sync?Be(Pe):(Oe.needReadable=!1,Oe.emittedReadable||(Oe.emittedReadable=!0,He(Pe)))}}function Be(Pe){var Oe=Pe._readableState;v("emitReadable",Oe.needReadable,Oe.emittedReadable),Oe.needReadable=!1,Oe.emittedReadable||(v("emitReadable",Oe.flowing),Oe.emittedReadable=!0,Wl.nextTick(He,Pe))}function He(Pe){var Oe=Pe._readableState;v("emitReadable_",Oe.destroyed,Oe.length,Oe.ended),!Oe.destroyed&&(Oe.length||Oe.ended)&&(Pe.emit("readable"),Oe.emittedReadable=!1),Oe.needReadable=!Oe.flowing&&!Oe.ended&&Oe.length<=Oe.highWaterMark,at(Pe)}function Ue(Pe,Oe){Oe.readingMore||(Oe.readingMore=!0,Wl.nextTick(Ge,Pe,Oe))}function Ge(Pe,Oe){for(;!Oe.reading&&!Oe.ended&&(Oe.length1&&rn($.pipes,Pe)!==-1)&&!Ie&&(v("false write response, pause",$.awaitDrain),$.awaitDrain++),T.pause())}function zt($e){v("onerror",$e),Gn(),Pe.removeListener("error",zt),r(Pe,"error")===0&&te(Pe,$e)}Le(Pe,"error",zt);function Qt(){Pe.removeListener("finish",$n),Gn()}Pe.once("close",Qt);function $n(){v("onfinish"),Pe.removeListener("close",Qt),Gn()}Pe.once("finish",$n);function Gn(){v("unpipe"),T.unpipe(Pe)}return Pe.emit("pipe",T),$.flowing||(v("pipe resume"),T.resume()),Pe};function Me(Pe){return function(){var T=Pe._readableState;v("pipeOnDrain",T.awaitDrain),T.awaitDrain&&T.awaitDrain--,T.awaitDrain===0&&r(Pe,"data")&&(T.flowing=!0,at(Pe))}}le.prototype.unpipe=function(Pe){var Oe=this._readableState,T={hasUnpiped:!1};if(Oe.pipesCount===0)return this;if(Oe.pipesCount===1)return Pe&&Pe!==Oe.pipes?this:(Pe||(Pe=Oe.pipes),Oe.pipes=null,Oe.pipesCount=0,Oe.flowing=!1,Pe&&Pe.emit("unpipe",this,T),this);if(!Pe){var $=Oe.pipes,B=Oe.pipesCount;Oe.pipes=null,Oe.pipesCount=0,Oe.flowing=!1;for(var K=0;K0,$.flowing!==!1&&this.resume()):Pe==="readable"&&!$.endEmitted&&!$.readableListening&&($.readableListening=$.needReadable=!0,$.flowing=!1,$.emittedReadable=!1,v("on readable",$.length,$.reading),$.length?Be(this):$.reading||Wl.nextTick(re,this)),T},le.prototype.addListener=le.prototype.on,le.prototype.removeListener=function(Pe,Oe){var T=o.prototype.removeListener.call(this,Pe,Oe);return Pe==="readable"&&Wl.nextTick(vt,this),T},le.prototype.removeAllListeners=function(Pe){var Oe=o.prototype.removeAllListeners.apply(this,arguments);return(Pe==="readable"||Pe===void 0)&&Wl.nextTick(vt,this),Oe};function vt(Pe){var Oe=Pe._readableState;Oe.readableListening=Pe.listenerCount("readable")>0,Oe.resumeScheduled&&!Oe.paused?Oe.flowing=!0:Pe.listenerCount("data")>0&&Pe.resume()}function re(Pe){v("readable nexttick read 0"),Pe.read(0)}le.prototype.resume=function(){var Pe=this._readableState;return Pe.flowing||(v("resume"),Pe.flowing=!Pe.readableListening,Te(this,Pe)),Pe.paused=!1,this};function Te(Pe,Oe){Oe.resumeScheduled||(Oe.resumeScheduled=!0,Wl.nextTick(ct,Pe,Oe))}function ct(Pe,Oe){v("resume",Oe.reading),Oe.reading||Pe.read(0),Oe.resumeScheduled=!1,Pe.emit("resume"),at(Pe),Oe.flowing&&!Oe.reading&&Pe.read(0)}le.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.paused=!0,this};function at(Pe){var Oe=Pe._readableState;for(v("flow",Oe.flowing);Oe.flowing&&Pe.read()!==null;);}le.prototype.wrap=function(Pe){var Oe=this,T=this._readableState,$=!1;Pe.on("end",function(){if(v("wrapped end"),T.decoder&&!T.ended){var q=T.decoder.end();q&&q.length&&Oe.push(q)}Oe.push(null)}),Pe.on("data",function(q){if(v("wrapped data"),T.decoder&&(q=T.decoder.write(q)),!(T.objectMode&&q==null)&&!(!T.objectMode&&(!q||!q.length))){var ke=Oe.push(q);ke||($=!0,Pe.pause())}});for(var B in Pe)this[B]===void 0&&typeof Pe[B]=="function"&&(this[B]=function(ke){return function(){return Pe[ke].apply(Pe,arguments)}}(B));for(var K=0;K=Oe.length?(Oe.decoder?T=Oe.buffer.join(""):Oe.buffer.length===1?T=Oe.buffer.first():T=Oe.buffer.concat(Oe.length),Oe.buffer.clear()):T=Oe.buffer.consume(Pe,Oe.decoder),T}function mt(Pe){var Oe=Pe._readableState;v("endReadable",Oe.endEmitted),Oe.endEmitted||(Oe.ended=!0,Wl.nextTick(jt,Oe,Pe))}function jt(Pe,Oe){if(v("endReadableNT",Pe.endEmitted,Pe.length),!Pe.endEmitted&&Pe.length===0&&(Pe.endEmitted=!0,Oe.readable=!1,Oe.emit("end"),Pe.autoDestroy)){var T=Oe._writableState;(!T||T.autoDestroy&&T.finished)&&Oe.destroy()}}typeof Symbol=="function"&&(le.from=function(Pe,Oe){return Q===void 0&&(Q=sQn()),Q(le,Pe,Oe)});function rn(Pe,Oe){for(var T=0,$=Pe.length;T<$;T++)if(Pe[T]===Oe)return T;return-1}return X7e}var men=JR,kpe=VP.codes,lQn=kpe.ERR_METHOD_NOT_IMPLEMENTED,aQn=kpe.ERR_MULTIPLE_CALLBACK,cQn=kpe.ERR_TRANSFORM_ALREADY_TRANSFORMING,uQn=kpe.ERR_TRANSFORM_WITH_LENGTH_0,Rpe=$L();sj(JR,Rpe);function fQn(n,r){var o=this._transformState;o.transforming=!1;var l=o.writecb;if(l===null)return this.emit("error",new aQn);o.writechunk=null,o.writecb=null,r!=null&&this.push(r),l(n);var u=this._readableState;u.reading=!1,(u.needReadable||u.length0;return mQn(h,v,y,function(E){u||(u=E),E&&d.forEach(uBt),!v&&(d.forEach(uBt),l(u))})});return r.reduce(yQn)}var SQn=_Qn;(function(n,r){r=n.exports=wen(),r.Stream=r,r.Readable=r,r.Writable=ben(),r.Duplex=$L(),r.Transform=men,r.PassThrough=hQn,r.finished=iHe,r.pipeline=SQn})(YLe,YLe.exports);var oHe=YLe.exports;const EQn=cv(oHe);class _en{init(){this.ns=mde}}const sHe=new tJ,kQn={apply:(n,r,o)=>n(o[0]),get:(n,r)=>n(r)};function Kn(n,{factory:r=sHe}={}){const o=(l="")=>r.namedNode(`${n}${l.raw||l}`);return typeof Proxy>"u"?o:new Proxy(o,kQn)}const RQn=Kn("http://www.w3.org/ns/auth/acl#"),xQn=RQn,CQn=Kn("https://www.w3.org/ns/activitystreams#"),AQn=CQn,TQn=Kn("http://purl.org/ontology/bibo/"),$Qn=TQn,IQn=Kn("http://creativecommons.org/ns#"),PQn=IQn,OQn=Kn("http://www.w3.org/ns/auth/cert#"),NQn=OQn,MQn=Kn("http://www.w3.org/2011/content#"),DQn=MQn,LQn=Kn("http://qudt.org/vocab/constant/"),jQn=LQn,FQn=Kn("http://www.cidoc-crm.org/cidoc-crm/"),BQn=FQn,WQn=Kn("http://www.w3.org/ns/csvw#"),HQn=WQn,UQn=Kn("http://commontag.org/ns#"),GQn=UQn,VQn=Kn("http://datashapes.org/sparql#"),zQn=VQn,KQn=Kn("http://datashapes.org/dash#"),qQn=KQn,XQn=Kn("http://dbpedia.org/ontology/"),JQn=XQn,YQn=Kn("http://purl.org/dc/elements/1.1/"),QQn=YQn,ZQn=Kn("http://purl.org/dc/dcam/"),eZn=ZQn,tZn=Kn("http://www.w3.org/ns/dcat#"),nZn=tZn,rZn=Kn("http://purl.org/dc/dcmitype/"),iZn=rZn,oZn=Kn("http://purl.org/dc/terms/"),sZn=oZn,lZn=Kn("http://www.ics.forth.gr/isl/CRMdig/"),aZn=lZn,cZn=Kn("http://qudt.org/vocab/discipline/"),uZn=cZn,fZn=Kn("http://usefulinc.com/ns/doap#"),dZn=fZn,hZn=Kn("http://www.w3.org/ns/dpv#"),pZn=hZn,bZn=Kn("http://www.w3.org/ns/dqv#"),gZn=bZn,wZn=Kn("http://www.linkedmodel.org/schema/dtype#"),mZn=wZn,yZn=Kn("http://www.w3.org/ns/duv#"),vZn=yZn,_Zn=Kn("http://www.w3.org/ns/earl#"),SZn=_Zn,EZn=Kn("http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#"),kZn=EZn,RZn=Kn("http://www.w3.org/2003/12/exif/ns#"),xZn=RZn,CZn=Kn("http://xmlns.com/foaf/0.1/"),AZn=CZn,TZn=Kn("http://purl.org/vocab/frbr/core#"),$Zn=TZn,IZn=Kn("http://www.opengis.net/ont/geosparql#"),PZn=IZn,OZn=Kn("http://www.opengis.net/def/function/geosparql/"),NZn=OZn,MZn=Kn("http://www.opengis.net/def/rule/geosparql/"),DZn=MZn,LZn=Kn("http://www.opengis.net/ont/gml#"),jZn=LZn,FZn=Kn("http://www.geonames.org/ontology#"),BZn=FZn,WZn=Kn("http://purl.org/goodrelations/v1#"),HZn=WZn,UZn=Kn("http://www.w3.org/2003/g/data-view#"),GZn=UZn,VZn=Kn("https://gs1.org/voc/"),zZn=VZn,KZn=Kn("http://vocab.gtfs.org/terms#"),qZn=KZn,XZn=Kn("http://www.w3.org/2011/http#"),JZn=XZn,YZn=Kn("http://www.w3.org/ns/hydra/core#"),QZn=YZn,ZZn=Kn("http://www.w3.org/2002/12/cal/icaltzd#"),eer=ZZn,ter=Kn("https://linked.art/ns/terms/"),ner=ter,rer=Kn("http://www.w3.org/ns/ldp#"),ier=rer,oer=Kn("http://www.w3.org/2000/10/swap/list#"),ser=oer,ler=Kn("http://www.w3.org/ns/locn#"),aer=ler,cer=Kn("http://www.w3.org/2000/10/swap/log#"),uer=cer,fer=Kn("http://lexvo.org/ontology#"),der=fer,her=Kn("http://w3id.org/nfdi4ing/metadata4ing#"),per=her,ber=Kn("http://www.w3.org/ns/ma-ont#"),ger=ber,wer=Kn("http://www.loc.gov/mads/rdf/v1#"),mer=wer,yer=Kn("http://www.w3.org/2000/10/swap/math#"),ver=yer,_er=Kn("http://www.w3.org/ns/oa#"),Ser=_er,Eer=Kn("http://ogp.me/ns#"),ker=Eer,Rer=Kn("http://www.w3.org/ns/solid/oidc#"),xer=Rer,Cer=Kn("http://www.w3.org/ns/org#"),Aer=Cer,Ter=Kn("http://www.w3.org/2002/07/owl#"),$er=Ter,Ier=Kn("http://www.w3.org/ns/pim/space#"),Per=Ier,Oer=Kn("http://qudt.org/vocab/prefix/"),Ner=Oer,Mer=Kn("http://www.w3.org/ns/prov#"),Der=Mer,Ler=Kn("http://purl.org/linked-data/cube#"),jer=Ler,Fer=Kn("http://qudt.org/vocab/dimensionvector/"),Ber=Fer,Wer=Kn("http://qudt.org/vocab/quantitykind/"),Her=Wer,Uer=Kn("http://qudt.org/schema/qudt/"),Ger=Uer,Ver=Kn("http://rdaregistry.info/Elements/u/"),zer=Ver,Ker=Kn("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),hS=Ker,qer=Kn("http://www.w3.org/ns/rdfa#"),Xer=qer,Jer=Kn("http://www.w3.org/2000/01/rdf-schema#"),Yer=Jer,Qer=Kn("http://purl.org/stuff/rev#"),Zer=Qer,etr=Kn("https://www.ica.org/standards/RiC/ontology#"),ttr=etr,ntr=Kn("http://www.w3.org/ns/r2rml#"),rtr=ntr,itr=Kn("http://purl.org/rss/1.0/"),otr=itr,str=Kn("http://schema.org/"),ltr=str,atr=Kn("http://www.w3.org/ns/sparql-service-description#"),ctr=atr,utr=Kn("http://purl.org/linked-data/sdmx#"),ftr=utr,dtr=Kn("http://semanticweb.cs.vu.nl/2009/11/sem/"),htr=dtr,ptr=Kn("http://www.w3.org/2000/10/swap/set#"),btr=ptr,gtr=Kn("http://www.opengis.net/ont/sf#"),wtr=gtr,mtr=Kn("http://www.w3.org/ns/shacl#"),ytr=mtr,vtr=Kn("http://www.w3.org/ns/shex#"),_tr=vtr,Str=Kn("https://www.w3.org/ns/shacl-shacl#"),Etr=Str,ktr=Kn("http://rdfs.org/sioc/ns#"),Rtr=ktr,xtr=Kn("http://www.w3.org/2004/02/skos/core#"),Ctr=xtr,Atr=Kn("http://www.w3.org/2008/05/skos-xl#"),Ttr=Atr,$tr=Kn("http://www.w3.org/ns/solid/terms#"),Itr=$tr,Ptr=Kn("http://www.w3.org/ns/sosa/"),Otr=Ptr,Ntr=Kn("http://qudt.org/vocab/sou/"),Mtr=Ntr,Dtr=Kn("http://www.w3.org/ns/ssn/"),Ltr=Dtr,jtr=Kn("http://www.w3.org/ns/posix/stat#"),Ftr=jtr,Btr=Kn("http://www.w3.org/2000/10/swap/string#"),Wtr=Btr,Htr=Kn("http://www.w3.org/2006/03/test-description#"),Utr=Htr,Gtr=Kn("http://www.w3.org/2006/time#"),Vtr=Gtr,ztr=Kn("http://qudt.org/vocab/unit/"),Ktr=ztr,qtr=Kn("http://www.linkedmodel.org/schema/vaem#"),Xtr=qtr,Jtr=Kn("http://purl.org/vocab/vann/"),Ytr=Jtr,Qtr=Kn("http://www.w3.org/2006/vcard/ns#"),Ztr=Qtr,enr=Kn("http://rdfs.org/ns/void#"),tnr=enr,nnr=Kn("http://www.w3.org/2003/06/sw-vocab-status/ns#"),rnr=nnr,inr=Kn("http://www.w3.org/2007/05/powder-s#"),onr=inr,snr=Kn("http://www.w3.org/2003/01/geo/wgs84_pos#"),lnr=snr,anr=Kn("http://www.w3.org/1999/xhtml/vocab#"),cnr=anr,unr=Kn("http://rdf-vocabulary.ddialliance.org/xkos#"),fnr=unr,dnr=Kn("http://www.w3.org/2001/XMLSchema#"),rq=dnr,hnr=Kn("http://www.w3.org/2007/rif#"),pnr=hnr,bnr=Kn("http://rdf.data-vocabulary.org/#"),gnr=bnr,wnr=Kn("http://www.w3.org/2007/05/powder#"),mnr=wnr,ynr=Kn("http://www.w3.org/XML/1998/namespace/"),vnr=ynr;function _nr(n){return"_:"+n.value}function Snr(n,r){return[...n].map(o=>r(o)).join(` +`)+` +`}function Enr(){return""}function Sen(n){return"<"+n.value+">"}const knr=/["\\\\\n\r]/,Rnr=/["\\\\\n\r]/g,xnr={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function Cnr(n){return xnr[n]}function Anr(n){return knr.test(n)?n.replace(Rnr,Cnr):n}function Tnr(n){const r=Anr(n.value);return n.datatype.value==="http://www.w3.org/2001/XMLSchema#string"?'"'+r+'"':n.datatype.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?'"'+r+'"@'+n.language:'"'+r+'"^^'+Sen(n.datatype)}function $nr(n,r){const o=r(n.subject),l=r(n.predicate),u=r(n.object),d=r(n.graph);return`${o} ${l} ${u} ${d?d+" ":""}.`}function Inr(n){return"?"+n.value}function _S(n){if(!n)return null;if(n.termType==="BlankNode")return _nr(n);if(n.termType==="DefaultGraph")return Enr();if(n.termType==="Literal")return Tnr(n);if(n.termType==="NamedNode")return Sen(n);if(n.termType==="Quad"||n.subject&&n.predicate&&n.object&&n.graph)return $nr(n,_S);if(n.termType==="Variable")return Inr(n);if(n[Symbol.iterator])return Snr(n,_S);throw new Error(`unknown termType ${n.termType}`)}class kK{constructor(r){if(this.index=new Map,r)for(const[o,l]of r)this.set(o,l)}get size(){return this.index.size}clear(){this.index.clear()}delete(r){return this.index.delete(_S(r))}*entries(){for(const[,{term:r,value:o}]of this.index)yield[r,o]}forEach(r,o){for(const l of this.entries())r.call(o,l[1],l[0],this)}get(r){const o=this.index.get(_S(r));return o&&o.value}has(r){return this.index.has(_S(r))}*keys(){for(const[,{term:r}]of this.index)yield r}set(r,o){const l=_S(r);return this.index.set(l,{term:r,value:o}),this}*values(){for(const[,{value:r}]of this.index)yield r}[Symbol.iterator](){return this.entries()[Symbol.iterator]()}}var Een={exports:{}};const Pnr=Epe,Onr=/([\x00-\x20<>"{}|^`\\]|%(?![0-9A-F][0-9A-F]))/g,Nnr=(n,r)=>{let o=r.codePointAt(0).toString(16)+"";return o.length>4?"\\U"+o.padStart(8,"0"):"\\u"+o.padStart(4,"0")},Nde=n=>n.replace(Onr,Nnr),lHe=/^(?:[\u0000-@[-`{-\u00bf\u00d7\u00f7\u0300-\u306f\u037e\u2000-\u200b\u200e-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].+|(?:.+?[\u0000-,\/:-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].*)|.+\.)$/,ken=/^(?:\\|[\u0000-\/;-@[-^`{-\u00bf\u00d7\u00f7\u0300-\u306f\u037e\u2000-\u200b\u200e-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff].+|(?:.+?(?:\\|[\u0000-,\/;-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff]).+)|(?:.+?(?:\\|[\u0000-,.\/;-@[-^`{-\u00b6\u00b8-\u00bf\u00d7\u00f7\u037e\u2000-\u200b\u200e-\u203e\u2041-\u206f\u2190-\u2bff\u2ff0-\u3000\ud800-\uf8ff\ufdd0-\ufddf\ufffe\uffff])))$/,Mnr=/^([Tt](rue)?|TRUE)$/,Dnr=/^([Ff](alse)?|FALSE)$/,Lnr="xxxxxxxx_xxxx_4xxx_yxxx_xxxxxxxxxxxx",jnr=/[xy]/g,RK=()=>{let n=Date.now();return typeof performance<"u"&&(n+=performance.now()),Lnr.replace(jnr,r=>{let o=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(r==="x"?o:o&3|8).toString(16)})},xpe=Symbol("prefix-cache"),Fnr=/[$^*()+[\\{}|.?]/g,Bnr="((?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\u{1fff}\\u{200c}-\\u{200d}\\u{2070}-\\u{218f}\\u{2c00}-\\u{2fef}\\u{3001}-\\u{d7ff}\\u{f900}-\\u{fdcf}\\u{fdf0}-\\u{fffd}\\u{10000}-\\u{effff}_:0-9]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%])(?:(?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\u{1fff}\\u{200c}-\\u{200d}\\u{2070}-\\u{218f}\\u{2c00}-\\u{2fef}\\u{3001}-\\u{d7ff}\\u{f900}-\\u{fdcf}\\u{fdf0}-\\u{fffd}\\u{10000}-\\u{effff}_\\-0-9\\xb7\\u{0300}-\\u{036f}\\u{203f}-\\u{2040}.:]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%])*(?:[A-Za-z\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u{02ff}\\u{0370}-\\u{037d}\\u{037f}-\\u{1fff}\\u{200c}-\\u{200d}\\u{2070}-\\u{218f}\\u{2c00}-\\u{2fef}\\u{3001}-\\u{d7ff}\\u{f900}-\\u{fdcf}\\u{fdf0}-\\u{fffd}\\u{10000}-\\u{effff}_\\-0-9\\xb7\\u{0300}-\\u{036f}\\u{203f}-\\u{2040}:]|%[A-Fa-f0-9]{2}|\\\\[_~.\\-!$&'()*+,;=/?#@%]))?)$";function fBt(n,r=!1){let o=[],l={};for(let u in n){let d=n[u];r&&lHe.test(u)||(l[d]=u,o.push(d.replace(Fnr,"\\$&")))}return o.length?(n[xpe]={_r_iris:new RegExp(`^(${o.join("|")})${Bnr}`,"u"),_h_inverse:l},Object.freeze(n)):n}const Ren=(n,r)=>{let o=r[xpe];if(o){let l=o._r_iris.exec(n);if(l)return o._h_inverse[l[1]]+":"+l[2]}else{let l="",u="",d=-1;for(let h in r){let w=r[h];if(n.indexOf(w)===0&&w.length>d&&!lHe.test(h)){let v=n.slice(w.length);ken.test(v)||(u=v,l=h,d=w.length)}}if(d!==-1)return l+":"+u}return"<"+n+">"},sJ=(n,r={})=>{let o=r[xpe];if(o){let l=o._r_iris.exec(n);if(l)return o._h_inverse[l[1]]+":"+l[2]}else{let l="",u=-1;for(let d in r){let h=r[d];n.startsWith(h)&&h.length>u&&(l=d,u=h.length)}if(u!==-1)return l+":"+n.slice(u)}return">"+n},Wnr=/^([^:]*):(.*)$/;function xen(n,r={},o=!1){switch(n[0]){case">":return"<"+n.slice(1)+">";case"_":return n.length<=2||n[2]==="#"?new iX()[o?"verbose":"terse"]():n;case'"':return JSON.stringify(n.slice(1));case"@":{let l=n.indexOf('"');return JSON.stringify(n.slice(l+1))+n.slice(0,l)}case"^":{let l=n.indexOf('"');return JSON.stringify(n.slice(l+1))+"^^"+xen(n.slice(1,l),r,o)}case"*":return"";case"<":case"`":return bs.c1(n).terse(r);default:{if(n==="a")return o?"":"a";let[,l,u]=Wnr.exec(n);return o||ken.test(u)||lHe.test(l)?"<"+r[l]+u+">":n}}}class DT{valueOf(){return this.concise()}toString(){return this.concise()}equals(r){return r?this===r||r.termType===this.termType&&r.value===this.value:!1}}Object.assign(DT.prototype,{isGraphyTerm:!0});let Rh=class extends DT{constructor(r){super(),this.value=r}concise(r={}){return sJ(this.value,r)}terse(r={},o=!1){return Ren(Nde(this.value),r)}verbose(){return"<"+Nde(this.value)+">"}isolate(){return{termType:"NamedNode",value:this.value}}};Object.assign(Rh.prototype,{termType:"NamedNode",isNamedNode:!0});const eje=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#type");eje.isRdfTypeAlias=!0;const Cen=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),Hnr=Cen.isolate(),Unr=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),dBt=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),Gnr=new Rh("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"),Vnr=new Rh("http://www.w3.org/2001/XMLSchema#date"),znr=new Rh("http://www.w3.org/2001/XMLSchema#dateTime"),bT=new Rh("http://www.w3.org/2001/XMLSchema#string");class Cpe extends DT{equals(r){return r?this===r||r.termType==="Literal"&&r.value===this.value&&this.datatype.equals(r.datatype)&&r.language===this.language:!1}verbose(){return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+this.datatype.verbose())}concise(r){return this.language?"@"+this.language+'"'+this.value:"^"+sJ(this.datatype.value,r)+'"'+this.value}terse(r={}){let o=this.datatype.terse(r);return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+o)}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(Cpe.prototype,{datatype:bT,language:"",termType:"Literal",isLiteral:!0,isSimple:!1});class xK extends Cpe{constructor(r,o){super(),this.value=r,this.language=(o[0]==="@"?o.slice(1):o).toLowerCase()}verbose(){return JSON.stringify(this.value)+"@"+this.language}concise(){return"@"+this.language+'"'+this.value}terse(){return JSON.stringify(this.value)+"@"+this.language}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:Hnr}}}Object.assign(xK.prototype,{datatype:Cen,isLanguaged:!0});class lj extends Cpe{verbose(){return JSON.stringify(this.value)+"^^"+this.datatype.verbose()}concise(r){return"^"+sJ(this.datatype.value,r)+'"'+this.value}terse(r={}){let o=this.datatype.terse(r);return JSON.stringify(this.value)+"^^"+o}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(lj.prototype,{isDatatyped:!0});class nue extends lj{constructor(r,o){super(),this.value=r,this.datatype=o}}class Aen extends DT{constructor(r){super(),this.value=r}get isSimple(){return!this.language&&!this.datatype.equals(bT)}get isLanguaged(){return!!this.language}get isDatatyped(){return bT.equals(this.datatype)}equals(r){return r?this===r||r.termType==="Literal"&&r.value===this.value&&this.datatype.equals(r.datatype)&&r.language===this.language:!1}verbose(){return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+this.datatype.verbose())}concise(r){return this.language?"@"+this.language+'"'+this.value:"^"+sJ(this.datatype.value,r)+'"'+this.value}terse(r={}){let o=this.datatype.terse(r);return JSON.stringify(this.value)+(this.language?"@"+this.language:"^^"+o)}isolate(){return{termType:"Literal",value:this.value,language:this.language,datatype:this.datatype.isolate()}}}Object.assign(Aen.prototype,{datatype:bT,language:"",termType:"Literal",isLiteral:!0});class E8 extends Cpe{constructor(r){super(),this.value=r}verbose(){return JSON.stringify(this.value)}concise(){return'"'+this.value}terse(){return JSON.stringify(this.value)}}Object.assign(E8.prototype,{isSimple:!0});const Ten=new Rh("http://www.w3.org/2001/XMLSchema#integer");class Y8 extends lj{static from(r){let o=new Y8(+r);return o.value=r,o}constructor(r){super(),this.value=r+"",this.number=r}concise(r={}){return"^"+Ten.concise(r)+'"'+this.value}terse(){return this.value.includes("e")?`"${this.value}"^^`:this.value}}Object.assign(Y8.prototype,{datatype:Ten,isNumeric:!0,isInteger:!0});const lJ=new Rh("http://www.w3.org/2001/XMLSchema#double");class HE extends lj{static from(r){let o=new HE(+r);return o.value=r,o}constructor(r){super(),this.value=r+"",this.number=r}concise(r={}){return"^"+lJ.concise(r)+'"'+this.value}terse(){return this.number.toExponential()}}Object.assign(HE.prototype,{datatype:lJ,isNumeric:!0,isDouble:!0});const $en=new Rh("http://www.w3.org/2001/XMLSchema#decimal");class Q8 extends lj{static from(r){let o=new Q8(+r);return o.value=r,o}constructor(r){super(),this.value=r+"",this.number=r}concise(r={}){return"^"+$en.concise(r)+'"'+this.value}terse(){return this.value.includes("e")?`"${this.value}"^^`:this.value+(this.value.includes(".")?"":".0")}}Object.assign(Q8.prototype,{datatype:$en,isNumeric:!0,isDecimal:!0});const Ien=new Rh("http://www.w3.org/2001/XMLSchema#boolean");class DE extends lj{static from(r){let o=new DE(+r);return o.value=r,o}constructor(r){super(),this.value=r+"",this.boolean=r}concise(r={}){return"^"+Ien.concise(r)+'"'+this.value}terse(){return this.value+""}}Object.assign(DE.prototype,{datatype:Ien,isBoolean:!0});class Pen extends HE{constructor(){super(1/0),this.value="INF"}terse(r){return'"INF"^^'+lJ.terse(r)}}Object.assign(Pen.prototype,{isInfinite:!0});class Oen extends HE{constructor(){super(-1/0),this.value="-INF"}terse(r){return'"-INF"^^'+lJ.terse(r)}}Object.assign(Oen.prototype,{isInfinite:!0});class Nen extends HE{constructor(){super(NaN),this.value="NaN"}terse(r){return'"NaN"^^'+lJ.terse(r)}}Object.assign(Nen.prototype,{isNaN:!0});function U8(n,r=!1){this.value=n,this.isAnonymous=r}U8.prototype=Object.assign(Object.create(DT.prototype),{termType:"BlankNode",isBlankNode:!0,concise(){return"_:"+this.value},terse(){return"_:"+this.value},verbose(){return"_:"+this.value},isolate(){return{termType:"BlankNode",value:this.value}}});function iX(){}iX.prototype=Object.assign(Object.create(U8.prototype),{isAnonymous:!0,isEphemeral:!0,concise(){return"_:#"+this.value},terse(){return"[]"},verbose(){return"_:"+this.value},isolate(){return{termType:"BlankNode",value:this.value}},equals(){return!1}});Object.defineProperty(iX.prototype,"value",{get(){return"_"+RK()}});let Men=class extends DT{constructor(r){super(),this.value=r}concise(){return"?"+this.value}terse(){throw new Error("Cannot call .terse() on 'Variable' term type")}verbose(){throw new Error("Cannot call .verbose() on 'Variable' term type")}isolate(){return{termType:"Variable",value:this.value}}};Object.assign(Men.prototype,{termType:"Variable",isVariable:!0});function oX(){}oX.prototype=Object.assign(Object.create(DT.prototype),{value:"",termType:"DefaultGraph",isDefaultGraph:!0,concise(){return"*"},terse(){return""},verbose(){return""},isolate(){return{termType:"DefaultGraph",value:""}}});Object.assign(Object.create(DT.prototype),{value:"",termType:"NoGraph",concise(){return""},terse(){return""},verbose(){return""},isolate(){return{termType:"NoGraph",value:""}}});const Mde=new oX;function fS(n,r,o,l=Mde){this.subject=n,this.predicate=r,this.object=o,this.graph=l}Object.assign(fS.prototype,{isGraphyQuad:!0,equals(n){return n?this===n||this.object.equals(n.object)&&this.subject.equals(n.subject)&&this.predicate.equals(n.predicate)&&this.graph.equals(n.graph):!1},valueOf(){return this.verbose()},concise(n={}){return[this.subject.concise(n),this.predicate.concise(n),this.object.concise(n),this.graph.concise(n)]},terse(n){let r=this.graph.isDefaultGraph;return(r?"":this.graph.terse(n)+" { ")+this.subject.terse(n)+" "+this.predicate.terse(n)+" "+this.object.terse(n)+" ."+(r?"":" }")},verbose(){return this.subject.verbose()+" "+this.predicate.verbose()+" "+this.object.verbose()+" "+(this.graph.isDefaultGraph?"":this.graph.verbose()+" ")+"."},isolate(){return{subject:this.subject.isolate(),predicate:this.predicate.isolate(),object:this.object.isolate(),graph:this.graph.isolate()}}});let hBt={namedNode(n){return new Rh(n)},blankNode(n,r){return new U8(n,r)},literal(n){return new Aen(n)},defaultGraph(){return new oX},quad(n,r,o,l){return new fS(n,r,o,l||Mde)},integer(n){return Y8.from(n)},double(n){return HE.from(n)},decimal(n){return Q8.from(n)},boolean(n){return new DE(n)}};const bs=Een.exports={concise:sJ,adopt(n){let r=Object.create(n),o=!1;if(typeof n.boolean!="function"){let l=n.namedNode("http://www.w3.org/2001/XMLSchema#boolean");r.boolean=u=>n.literal(u+"",l),o=!0}if(typeof n.double!="function"){let l=n.namedNode("http://www.w3.org/2001/XMLSchema#double");r.double=u=>n.literal(u+"",l),o=!0}if(typeof n.decimal!="function"){let l=n.namedNode("http://www.w3.org/2001/XMLSchema#decimal");r.decimal=u=>n.literal(u+"",l),o=!0}if(typeof n.integer!="function"){let l=n.namedNode("http://www.w3.org/2001/XMLSchema#integer");r.integer=u=>n.literal(u+"",l),o=!0}return typeof n.simpleLiteral!="function"&&(r.simpleLiteral=l=>n.literal(l),o=!0),typeof n.languagedLiteral!="function"&&(r.languagedLiteral=(l,u)=>n.literal(l,u),o=!0),typeof n.datatypedLiteral!="function"&&(r.datatypedLiteral=(l,u)=>n.literal(l,u),o=!0),o?r:n},raw:hBt,unfiltered:{...hBt,literal(n,r){return!r||bT.equals(r)?new E8(n):typeof r=="string"?new xK(n,r):bT.equals(r)?new E8(n):new nue(n,r)},simpleLiteral(n){return new E8(n)},languagedLiteral(n,r){return new xK(n,r)},datatypedLiteral(n,r){return bT.equals(r)?new E8(n):new nue(n,r)}},number(n){return typeof n=="number"&&(!Number.isFinite(n)||Number.isNaN(n))?bs.double(n):Number.isInteger(n)||typeof n=="bigint"?bs.integer(n):bs.decimal(n)},date(n){return bs.literal(n.toISOString().replace(/T.+$/,"Z"),Vnr)},dateTime(n){return bs.literal(n.toISOString(),znr)},namedNode(n){return new Rh(n)},ephemeral(){return new iX},anonymous(){return new iX},blankNode(n){if(n){if(typeof n=="string")return new U8(n)}else return new U8("_"+RK(),!0);throw new TypeError(`factory.blankNode(label) expects 'label' parameter to be falsy or a string; instead found: ${n}`)},literal(n,r){return!r||bT.equals(r)?new E8(n):typeof r=="string"?new xK(n,r):new nue(n,r)},integer(n){let r=typeof n;if(r==="number"){if(Number.isFinite(n)){if(!Number.isInteger(n))throw new Error("Number is not an integer: "+n)}else throw Number.isNaN(n)?new Error("XSD integer cannot encode NaN. Try using double"):new Error("XSD integer cannot encode +/-infinity. Try using double");return new Y8(n)}else if(r==="string"){if(n==="")throw new Error("Refusing to serialize empty string as xsd:integer");let o=+n;if(Number.isNaN(o)||!Number.isInteger(o))throw new Error("Invalid integer string: "+n);return new Y8(o)}else throw r==="undefined"?new Error("Refusing to serialize undefined value as xsd:integer"):n===null?new Error("Refusing to serialize null value as xsd:integer"):new Error("XSD integer expects a number type or integer string")},double(n){let r=typeof n;if(r==="number")return Number.isFinite(n)?new HE(n):Number.isNaN(n)?new Nen:n>0?new Pen:new Oen;if(r==="string"){if(n==="")throw new Error("Refusing to serialize empty string as xsd:double");let o=+n;if(Number.isNaN(o))throw new Error("Invalid decimal string: "+n);return new HE(o)}else throw r==="undefined"?new Error("Refusing to serialize undefined value as xsd:double"):n===null?new Error("Refusing to serialize null value as xsd:double"):new Error("XSD double expects a number type or double string")},decimal(n){let r=typeof n;if(r==="number"){if(!Number.isFinite(n))throw Number.isNaN(n)?new Error("XSD decimal cannot encode NaN. Try using double"):new Error("XSD decimal cannot encode +/-infinity. Try using double");return new Q8(n)}else if(r==="string"){if(n==="")throw new Error("Refusing to serialize empty string as xsd:decimal");let o=+n;if(Number.isNaN(o))throw new Error("Invalid decimal string: "+n);return new Q8(o)}else throw r==="undefined"?new Error("Refusing to serialize undefined value as xsd:decimal"):n===null?new Error("Refusing to serialize null value as xsd:decimal"):new Error("XSD decimal expects a number type or decimal string")},boolean(n){let r=typeof n;if(r==="boolean")return new DE(n);if(r==="number"){if(n===1)return new DE(!0);if(n===0)return new DE(!1);throw new Error("Boolean value 'w_value' must be either a '1' or '0' if using numbers")}else if(r==="string"){if(Mnr.test(n))return new DE(!0);if(Dnr.test(n))return new DE(!1);throw n===""?new Error("Refusing to serialize empty string as xsd:boolean"):new Error("Invalid boolean string: "+n)}else throw r==="undefined"?new Error("Refusing to serialize undefined value as xsd:boolean"):n===null?new Error("Refusing to serialize null value as xsd:boolean"):new Error("XSD boolean expects a boolean type or boolean string")},defaultGraph(){return new oX},variable(n){return new Men(n)},triple(n,r,o){let l=new Error("It is strongly encouraged to use .quad() instead of .triple()");return console.warn(l.stack.replace(/^(\s*)Error:/,"$1Warning:")),new fS(n,r,o)},quad(n,r,o,l){return new fS(n,r,o,l||Mde)},term(n,r){return typeof n=="string"?bs.c1(n,r):bs.from.rdfjs_term(n)},c1(n,r={}){switch(n[0]){case"^":{let o=n.indexOf('"');if(o===-1)throw new Error(`Invalid concise-term string, no content literal delimiter found: '${n}'`);let l=n.slice(1,o);return bs.literal(n.slice(o+1),bs.c1_node_explicit(l,r))}case"@":{let o=n.indexOf('"');if(o===-1)throw new Error(`Invalid concise-term string, no content literal delimiter found: '${n}'`);let l=n.slice(1,o);return bs.literal(n.slice(o+1),l)}case'"':return bs.literal(n.slice(1));default:return bs.c1_node(n,r)}},c1_node(n,r={}){if(n==="a")return eje;if(n==="*")return bs.defaultGraph();if(n[0]==="_"){if(n[1]!==":")throw new Error(`Invliad concise-term string, prefixes are not allowed to start with an underscore: '${n}'`);return n[2]==="#"||n.length===2?bs.ephemeral():bs.blankNode(n.slice(2))}return bs.c1_node_explicit(n,r)},c1_named_node(n,r={}){return n==="a"?eje:bs.c1_node_explicit(n,r)},c1_node_explicit(n,r={}){switch(n[0]){case">":return bs.namedNode(n.slice(1));case"<":throw new Error(`Whoops! It looks like this concise-term string starts with a '<' character. Remember to use '>' if you are trying to make an absolute IRI reference. +Invalid concise-term string '${n}'`);case"`":throw new Error(`The backtick character '\`' is reserved for concise-struct key directives and should not be used in the object position. +Invalid concise-term string '${n}'`);default:return this.c1_prefixed_node(n,r)}},c1_prefixed_node(n,r={}){let o=n.indexOf(":");if(o===-1)throw new Error(`A relative or prefixed node must include a ':' character. +Invalid concise-term string for node: '${n}'`);let l=n.slice(0,o),u=n.slice(o+1);if(l in r)return bs.namedNode(r[l]+u);throw new Error(`Prefix not defined: '${l}'`)},c1_to_nt:xen,*quads(n,r={}){for(let o in n)yield*bs.triples(n[o],r,o)},*triples(n,r={},o="*"){let l=bs.c1(o,r);for(let u in n){let d=bs.c1(u,r),h=n[u];yield*bs.pairs(l,d,h,r)}},*pairs(n,r,o,l={}){for(let u in o){let d=bs.c1(u,l),h=o[u];yield*bs.objects(n,r,d,h,l)}},*collection(n,r,o,l={}){yield*bs.objects(n,r,Unr,o[0],l);let u=o.slice(1);if(!u.length)yield new fS(r,dBt,Gnr,n);else{let d=bs.blankNode();yield new fS(r,dBt,d,n),yield*bs.collection(n,d,u,l)}},*objects(n,r,o,l,u,d=!1){switch(typeof l){case"string":{yield new fS(r,o,bs.c1(l,u),n);break}case"number":{yield new fS(r,o,bs.number(l),n);break}case"object":{if(Array.isArray(l))if(d){let w=bs.blankNode();yield new fS(r,o,w,n),yield*bs.collection(n,w,l,u)}else for(let w of l)yield*bs.objects(n,r,o,w,u,!0);else{let w=bs.blankNode();yield new fS(r,o,w,n),yield*bs.pairs(n,w,l,u)}break}default:throw new Error(`invalid object type: ${typeof l}`)}},from:{term(n){return n===null||n.isGraphyTerm?n:bs.from.rdfjs_term(n)},quad(n){if(n===null||n.isGraphyQuad)return n;let r=bs.from;return new fS(r.rdfjs_term(n.subject),r.rdfjs_term(n.predicate),r.rdfjs_term(n.object),n.graph?r.rdfjs_term(n.graph):Mde)},rdfjs_term(n){switch(n.termType){case"NamedNode":return new Rh(n.value);case"BlankNode":return new U8(n.value);case"Literal":return bs.literal(n.value,n.language?n.language:n.datatype?new Rh(n.datatype.value):null);case"DefaultGraph":return new oX;default:throw new TypeError(`invalid termType: ${n.termType}`)}},sparql_result(n){switch(n.type){case"uri":return new Rh(n.value);case"literal":case"typed-literal":return"xml:lang"in n?new xK(n.value,n["xml:lang"]):"datatype"in n&&n.datatype!=="http://www.w3.org/2001/XMLSchema#string"?new nue(n.value,new Rh(n.datatype)):new E8(n.value);case"bnode":return new U8(n.value);default:throw new Error(`unexpected SPARQL Result JSON Format Term type: ${n.type}`)}}},to:{boolean:n=>DE.from(n),integer:n=>Y8.from(n),decimal:n=>Q8.from(n),double:n=>HE.from(n)},comment(n={}){return`\`[${RK()}]${JSON.stringify({...n,type:"comment"})}`},newlines(){return`\`[${RK()}]{"type":"newlines"}`},config(n){if(typeof n!="string")throw new TypeError(`Expected 'key' argument to be a string, instead found ${typeof n}`);return`\`[${RK()}]{"type":"config","value":${JSON.stringify(n)}}`},hash(n){let r=bs.from.quad(n),o=Pnr.createHash("sha256");return o.update(r.verbose()),o.digest("hex")},cache_prefixes:fBt,cachePrefixes:fBt,terse:Ren,clean_iri:Nde,cleanIri:Nde,$_PREFIX_CACHE:xpe};Object.assign(bs,{c3:bs.triples,c4:bs.quads,fromTerm:bs.from.term,fromQuad:bs.from.quad});var Knr=Een.exports;const pBt=cv(Knr),qnr={rif:"http://www.w3.org/2007/rif#",v:"http://rdf.data-vocabulary.org/#",wdr:"http://www.w3.org/2007/05/powder#",xml:"http://www.w3.org/XML/1998/namespace/"},Xnr={acl:"http://www.w3.org/ns/auth/acl#",as:"https://www.w3.org/ns/activitystreams#",bibo:"http://purl.org/ontology/bibo/",cc:"http://creativecommons.org/ns#",cert:"http://www.w3.org/ns/auth/cert#",cnt:"http://www.w3.org/2011/content#",constant:"http://qudt.org/vocab/constant/",crm:"http://www.cidoc-crm.org/cidoc-crm/",csvw:"http://www.w3.org/ns/csvw#",ctag:"http://commontag.org/ns#","dash-sparql":"http://datashapes.org/sparql#",dash:"http://datashapes.org/dash#",dbo:"http://dbpedia.org/ontology/",dc11:"http://purl.org/dc/elements/1.1/",dcam:"http://purl.org/dc/dcam/",dcat:"http://www.w3.org/ns/dcat#",dcmitype:"http://purl.org/dc/dcmitype/",dcterms:"http://purl.org/dc/terms/",dig:"http://www.ics.forth.gr/isl/CRMdig/",discipline:"http://qudt.org/vocab/discipline/",doap:"http://usefulinc.com/ns/doap#",dpv:"http://www.w3.org/ns/dpv#",dqv:"http://www.w3.org/ns/dqv#",dtype:"http://www.linkedmodel.org/schema/dtype#",duv:"http://www.w3.org/ns/duv#",earl:"http://www.w3.org/ns/earl#",ebucore:"http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#",exif:"http://www.w3.org/2003/12/exif/ns#",foaf:"http://xmlns.com/foaf/0.1/",frbr:"http://purl.org/vocab/frbr/core#",geo:"http://www.opengis.net/ont/geosparql#",geof:"http://www.opengis.net/def/function/geosparql/",geor:"http://www.opengis.net/def/rule/geosparql/",gml:"http://www.opengis.net/ont/gml#",gn:"http://www.geonames.org/ontology#",gr:"http://purl.org/goodrelations/v1#",grddl:"http://www.w3.org/2003/g/data-view#",gs1:"https://gs1.org/voc/",gtfs:"http://vocab.gtfs.org/terms#",http:"http://www.w3.org/2011/http#",hydra:"http://www.w3.org/ns/hydra/core#",ical:"http://www.w3.org/2002/12/cal/icaltzd#",la:"https://linked.art/ns/terms/",ldp:"http://www.w3.org/ns/ldp#",list:"http://www.w3.org/2000/10/swap/list#",locn:"http://www.w3.org/ns/locn#",log:"http://www.w3.org/2000/10/swap/log#",lvont:"http://lexvo.org/ontology#",m4i:"http://w3id.org/nfdi4ing/metadata4ing#",ma:"http://www.w3.org/ns/ma-ont#",mads:"http://www.loc.gov/mads/rdf/v1#",math:"http://www.w3.org/2000/10/swap/math#",oa:"http://www.w3.org/ns/oa#",og:"http://ogp.me/ns#",oidc:"http://www.w3.org/ns/solid/oidc#",org:"http://www.w3.org/ns/org#",owl:"http://www.w3.org/2002/07/owl#",pim:"http://www.w3.org/ns/pim/space#",prefix:"http://qudt.org/vocab/prefix/",prov:"http://www.w3.org/ns/prov#",qb:"http://purl.org/linked-data/cube#",qkdv:"http://qudt.org/vocab/dimensionvector/",quantitykind:"http://qudt.org/vocab/quantitykind/",qudt:"http://qudt.org/schema/qudt/",rdau:"http://rdaregistry.info/Elements/u/",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfa:"http://www.w3.org/ns/rdfa#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rev:"http://purl.org/stuff/rev#",rico:"https://www.ica.org/standards/RiC/ontology#",rr:"http://www.w3.org/ns/r2rml#",rss:"http://purl.org/rss/1.0/",schema:"http://schema.org/",sd:"http://www.w3.org/ns/sparql-service-description#",sdmx:"http://purl.org/linked-data/sdmx#",sem:"http://semanticweb.cs.vu.nl/2009/11/sem/",set:"http://www.w3.org/2000/10/swap/set#",sf:"http://www.opengis.net/ont/sf#",sh:"http://www.w3.org/ns/shacl#",shex:"http://www.w3.org/ns/shex#",shsh:"http://www.w3.org/ns/shacl-shacl#",sioc:"http://rdfs.org/sioc/ns#",skos:"http://www.w3.org/2004/02/skos/core#",skosxl:"http://www.w3.org/2008/05/skos-xl#",solid:"http://www.w3.org/ns/solid/terms#",sosa:"http://www.w3.org/ns/sosa/",sou:"http://qudt.org/vocab/sou/",ssn:"http://www.w3.org/ns/ssn/",stat:"http://www.w3.org/ns/posix/stat#",string:"http://www.w3.org/2000/10/swap/string#",test:"http://www.w3.org/2006/03/test-description#",time:"http://www.w3.org/2006/time#",unit:"http://qudt.org/vocab/unit/",vaem:"http://www.linkedmodel.org/schema/vaem#",vann:"http://purl.org/vocab/vann/",vcard:"http://www.w3.org/2006/vcard/ns#",void:"http://rdfs.org/ns/void#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",vso:"http://purl.org/vso/ns#",wdrs:"http://www.w3.org/2007/05/powder-s#",wgs:"http://www.w3.org/2003/01/geo/wgs84_pos#",xhv:"http://www.w3.org/1999/xhtml/vocab#",xkos:"http://rdf-vocabulary.ddialliance.org/xkos#",xsd:"http://www.w3.org/2001/XMLSchema#"},tje={...Xnr,...qnr};function Den(n,r={}){const o={...tje,...r},l=Array.from(Object.entries(o)).filter(([,u])=>n.startsWith(u));if(l.length){l.sort(([,d],[,h])=>h.length-d.length);const u=l[0];return n.replace(new RegExp(`^${u[1]}`),`${u[0]}:`)}return""}class Len{constructor(r){this.term=r}toTerm(){const r=`"""${this.term.value.replace(/"$/,'\\"')}"""`;return{terse:o=>r+this.langOrDatatype(o),verbose:o=>r+this.langOrDatatype(o)}}langOrDatatype(r){if(this.term.language)return`@${this.term.language}`;if(this.term.datatype.equals(rq.string))return"";const o=Den(this.term.datatype.value,r);return o?`^^${o}`:`^^<${this.term.datatype.value}>`}}const jen=new Map([[Len,n=>n.toTerm()]]);function Jnr(n){return n.has(hS.first)&&n.has(hS.rest)}class Ynr extends EQn.Transform{constructor({prefixes:r={},strict:o=!1,preserveListNodeProperties:l=!1}={}){super({objectMode:!0}),this.prefixes=r,this.graphs=new kK,this.blankNodes=new kK,this.strict=o,this.preserveListNodeProperties=l}_transform({subject:r,predicate:o,object:l,graph:u},d,h){const w=this.getGraph(u),v=w.get(r)||{predicates:new kK},y=v.predicates.get(o)||[];if(v.predicates.set(o,[...y,l]),l.termType==="BlankNode"){const E=this.blankNodes.get(l)||0;this.blankNodes.set(l,E+1)}w.set(r,v),h()}_flush(){const r=[...this.graphs].reduce((o,[l,u])=>{const d=this.toHashKey(l);let h=o[d]||{};return h=[...u].reduce(this.toConciseHash(l).bind(this),h),{...o,[d]:h}},{});this.push({type:this.strict?"c4r":"c4",value:r}),this.push(null)}toConciseHash(r){return(o,[l,{predicates:u}])=>{if(!this.strict&&this.blankNodes.get(l)===1)return o;const d=this.toHashKey(l);return{...o,[d]:this.createPropertyMap(r,u)}}}createPropertyMap(r,o,l=0){const u=d=>{if(!this.strict&&this.blankNodes.get(d)===1){const h=this.graphs.get(r).get(d);if(h)return this.createPropertyMap(r,h.predicates,l+1)}return this.toHashKey(d)};if(!this.strict&&Jnr(o)&&!this.preserveListNodeProperties){const[d]=o.get(hS.first),[h]=o.get(hS.rest);if(l===0){let v;if(h.equals(hS.nil))v=this.toHashKey(hS.nil);else{const y=u(h);v=Array.isArray(y)?[...y]:[y]}return{[this.toHashKey(hS.first)]:[u(d)],[this.toHashKey(hS.rest)]:[v]}}if(h.equals(hS.nil))return[u(d)];const w=u(h);return[u(d),...w]}return[...o].reduce((d,[h,w])=>{const v=this.toHashKey(h),y=w.map(u.bind(this));return{...d,[v]:y}},{})}getGraph(r){const o=this.graphs.get(r)||new kK;return this.graphs.set(r,o),o}literalHash(r){if(r.datatype&&!this.strict)switch(r.datatype.value){case rq.integer.value:{const o=+r.value;if(Number.isInteger(o))return o;break}case rq.decimal.value:{const o=+r.value;if(!Number.isNaN(o)&&!Number.isInteger(o))return o;break}case rq.boolean.value:{if(r.value==="true")return!0;if(r.value==="false")return!1;break}}return r.value.includes(` +`)?new Len(r):pBt.fromTerm(r).concise(this.prefixes)}toHashKey(r){return r.termType==="Literal"?this.literalHash(r):r.equals(hS.type)?"a":pBt.fromTerm(r).concise(this.prefixes)}}async function aHe(n,r={}){const o=(await n).default;return class{constructor(l={}){this.defaults=l}import(l,{preserveListNodeProperties:u,...d}={}){const h={...this.defaults.prefixes||{},...d.prefixes||{}},w=o({prefixes:h,coercions:r.coercions});return l.pipe(new Ynr({prefixes:h,strict:r.strict,preserveListNodeProperties:u})).pipe(w),w}}}const Fen=fv(()=>aHe(C0(()=>import("./main-gYTlQIEk.js").then(n=>n.m),__vite__mapDeps([0,1,2,3])),{coercions:jen})),Qnr=fv(()=>aHe(C0(()=>import("./main-Crg7QqIq.js").then(n=>n.m),__vite__mapDeps([4,2,3])),{strict:!0})),Znr=fv(()=>aHe(C0(()=>import("./main-DimUcN7z.js").then(n=>n.m),__vite__mapDeps([5,1,2,3])),{strict:!0,coercions:jen}));async function Ben(n){const r=(await n).default;return class{import(o,l){return o.pipe(l?r(l):r())}}}const Wen=fv(()=>Ben(C0(()=>import("./main-Bw33fkyv.js").then(n=>n.m),__vite__mapDeps([6,3])))),Hen=fv(()=>Ben(C0(()=>import("./main-Dhp4ePPX.js").then(n=>n.m),__vite__mapDeps([7,3])))),err=fv(async()=>{const n=(await C0(async()=>{const{default:r}=await import("./index-CZ2V_JFV.js");return{default:r}},[])).default;return class extends n{constructor({prefixes:o={},...l}={}){super({compact:!0,skipGraphProperty:!0,encoding:"string",...l}),this.prefixes=o}import(o,{prefixes:l={}}={}){const u={...this.prefixes,...l};return super.import(o,{context:u})}}}),trr=fv(async()=>{const n=await C0(()=>import("./index-bEMZdyV6.js"),[]);return class{import(r,o){return new n.StreamParser({format:"text/n3"}).import(r,{...o})}}}),hv=new nZt({});hv.import(lm);const $S={jsonLd:"application/ld+json",ntriples:"application/n-triples",nquads:"application/n-quads",notation3:"text/n3",rdfXml:"application/rdf+xml",trig:"application/trig",turtle:"text/turtle"};hv.serializers.set($S.jsonLd,new err);hv.serializers.set($S.notation3,new Fen);hv.serializers.set($S.turtle,new Fen);hv.serializers.set($S.trig,new Znr);hv.serializers.set($S.rdfXml,new Qnr);hv.parsers.set($S.notation3,new trr);hv.parsers.set($S.turtle,new Wen);hv.parsers.set($S.trig,new Wen);hv.parsers.set($S.ntriples,new Hen);hv.parsers.set($S.nquads,new Hen);/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Mfe=globalThis,cHe=Mfe.ShadowRoot&&(Mfe.ShadyCSS===void 0||Mfe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,uHe=Symbol(),bBt=new WeakMap;let Uen=class{constructor(r,o,l){if(this._$cssResult$=!0,l!==uHe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=o}get styleSheet(){let r=this.o;const o=this.t;if(cHe&&r===void 0){const l=o!==void 0&&o.length===1;l&&(r=bBt.get(o)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),l&&bBt.set(o,r))}return r}toString(){return this.cssText}};const nrr=n=>new Uen(typeof n=="string"?n:n+"",void 0,uHe),rrr=(n,...r)=>{const o=n.length===1?n[0]:r.reduce((l,u,d)=>l+(h=>{if(h._$cssResult$===!0)return h.cssText;if(typeof h=="number")return h;throw Error("Value passed to 'css' function must be a 'css' function result: "+h+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(u)+n[d+1],n[0]);return new Uen(o,n,uHe)},irr=(n,r)=>{if(cHe)n.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(const o of r){const l=document.createElement("style"),u=Mfe.litNonce;u!==void 0&&l.setAttribute("nonce",u),l.textContent=o.cssText,n.appendChild(l)}},gBt=cHe?n=>n:n=>n instanceof CSSStyleSheet?(r=>{let o="";for(const l of r.cssRules)o+=l.cssText;return nrr(o)})(n):n;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const{is:orr,defineProperty:srr,getOwnPropertyDescriptor:lrr,getOwnPropertyNames:arr,getOwnPropertySymbols:crr,getPrototypeOf:urr}=Object,mT=globalThis,wBt=mT.trustedTypes,frr=wBt?wBt.emptyScript:"",Y7e=mT.reactiveElementPolyfillSupport,iq=(n,r)=>n,nje={toAttribute(n,r){switch(r){case Boolean:n=n?frr:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,r){let o=n;switch(r){case Boolean:o=n!==null;break;case Number:o=n===null?null:Number(n);break;case Object:case Array:try{o=JSON.parse(n)}catch{o=null}}return o}},Gen=(n,r)=>!orr(n,r),mBt={attribute:!0,type:String,converter:nje,reflect:!1,hasChanged:Gen};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),mT.litPropertyMetadata??(mT.litPropertyMetadata=new WeakMap);class yD extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??(this.l=[])).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,o=mBt){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(r,o),!o.noAccessor){const l=Symbol(),u=this.getPropertyDescriptor(r,l,o);u!==void 0&&srr(this.prototype,r,u)}}static getPropertyDescriptor(r,o,l){const{get:u,set:d}=lrr(this.prototype,r)??{get(){return this[o]},set(h){this[o]=h}};return{get(){return u==null?void 0:u.call(this)},set(h){const w=u==null?void 0:u.call(this);d.call(this,h),this.requestUpdate(r,w,l)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??mBt}static _$Ei(){if(this.hasOwnProperty(iq("elementProperties")))return;const r=urr(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(iq("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(iq("properties"))){const o=this.properties,l=[...arr(o),...crr(o)];for(const u of l)this.createProperty(u,o[u])}const r=this[Symbol.metadata];if(r!==null){const o=litPropertyMetadata.get(r);if(o!==void 0)for(const[l,u]of o)this.elementProperties.set(l,u)}this._$Eh=new Map;for(const[o,l]of this.elementProperties){const u=this._$Eu(o,l);u!==void 0&&this._$Eh.set(u,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){const o=[];if(Array.isArray(r)){const l=new Set(r.flat(1/0).reverse());for(const u of l)o.unshift(gBt(u))}else r!==void 0&&o.push(gBt(r));return o}static _$Eu(r,o){const l=o.attribute;return l===!1?void 0:typeof l=="string"?l:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var r;this._$ES=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),(r=this.constructor.l)==null||r.forEach(o=>o(this))}addController(r){var o;(this._$EO??(this._$EO=new Set)).add(r),this.renderRoot!==void 0&&this.isConnected&&((o=r.hostConnected)==null||o.call(r))}removeController(r){var o;(o=this._$EO)==null||o.delete(r)}_$E_(){const r=new Map,o=this.constructor.elementProperties;for(const l of o.keys())this.hasOwnProperty(l)&&(r.set(l,this[l]),delete this[l]);r.size>0&&(this._$Ep=r)}createRenderRoot(){const r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return irr(r,this.constructor.elementStyles),r}connectedCallback(){var r;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach(o=>{var l;return(l=o.hostConnected)==null?void 0:l.call(o)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$EO)==null||r.forEach(o=>{var l;return(l=o.hostDisconnected)==null?void 0:l.call(o)})}attributeChangedCallback(r,o,l){this._$AK(r,l)}_$EC(r,o){var d;const l=this.constructor.elementProperties.get(r),u=this.constructor._$Eu(r,l);if(u!==void 0&&l.reflect===!0){const h=(((d=l.converter)==null?void 0:d.toAttribute)!==void 0?l.converter:nje).toAttribute(o,l.type);this._$Em=r,h==null?this.removeAttribute(u):this.setAttribute(u,h),this._$Em=null}}_$AK(r,o){var d;const l=this.constructor,u=l._$Eh.get(r);if(u!==void 0&&this._$Em!==u){const h=l.getPropertyOptions(u),w=typeof h.converter=="function"?{fromAttribute:h.converter}:((d=h.converter)==null?void 0:d.fromAttribute)!==void 0?h.converter:nje;this._$Em=u,this[u]=w.fromAttribute(o,h.type),this._$Em=null}}requestUpdate(r,o,l){if(r!==void 0){if(l??(l=this.constructor.getPropertyOptions(r)),!(l.hasChanged??Gen)(this[r],o))return;this.P(r,o,l)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(r,o,l){this._$AL.has(r)||this._$AL.set(r,o),l.reflect===!0&&this._$Em!==r&&(this._$Ej??(this._$Ej=new Set)).add(r)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}const r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var l;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[d,h]of this._$Ep)this[d]=h;this._$Ep=void 0}const u=this.constructor.elementProperties;if(u.size>0)for(const[d,h]of u)h.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],h)}let r=!1;const o=this._$AL;try{r=this.shouldUpdate(o),r?(this.willUpdate(o),(l=this._$EO)==null||l.forEach(u=>{var d;return(d=u.hostUpdate)==null?void 0:d.call(u)}),this.update(o)):this._$EU()}catch(u){throw r=!1,this._$EU(),u}r&&this._$AE(o)}willUpdate(r){}_$AE(r){var o;(o=this._$EO)==null||o.forEach(l=>{var u;return(u=l.hostUpdated)==null?void 0:u.call(l)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Ej&&(this._$Ej=this._$Ej.forEach(o=>this._$EC(o,this[o]))),this._$EU()}updated(r){}firstUpdated(r){}}yD.elementStyles=[],yD.shadowRootOptions={mode:"open"},yD[iq("elementProperties")]=new Map,yD[iq("finalized")]=new Map,Y7e==null||Y7e({ReactiveElement:yD}),(mT.reactiveElementVersions??(mT.reactiveElementVersions=[])).push("2.0.4");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const oq=globalThis,Dde=oq.trustedTypes,yBt=Dde?Dde.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ven="$lit$",cT=`lit$${Math.random().toFixed(9).slice(2)}$`,zen="?"+cT,drr=`<${zen}>`,SP=document,sX=()=>SP.createComment(""),lX=n=>n===null||typeof n!="object"&&typeof n!="function",fHe=Array.isArray,hrr=n=>fHe(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Q7e=`[ +\f\r]`,Qz=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vBt=/-->/g,_Bt=/>/g,n8=RegExp(`>|${Q7e}(?:([^\\s"'>=/]+)(${Q7e}*=${Q7e}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),SBt=/'/g,EBt=/"/g,Ken=/^(?:script|style|textarea|title)$/i,prr=n=>(r,...o)=>({_$litType$:n,strings:r,values:o}),brr=prr(1),IL=Symbol.for("lit-noChange"),dp=Symbol.for("lit-nothing"),kBt=new WeakMap,G8=SP.createTreeWalker(SP,129);function qen(n,r){if(!fHe(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return yBt!==void 0?yBt.createHTML(r):r}const grr=(n,r)=>{const o=n.length-1,l=[];let u,d=r===2?"":r===3?"":"",h=Qz;for(let w=0;w"?(h=u??Qz,A=-1):E[1]===void 0?A=-2:(A=h.lastIndex-E[2].length,y=E[1],h=E[3]===void 0?n8:E[3]==='"'?EBt:SBt):h===EBt||h===SBt?h=n8:h===vBt||h===_Bt?h=Qz:(h=n8,u=void 0);const R=h===n8&&n[w+1].startsWith("/>")?" ":"";d+=h===Qz?v+drr:A>=0?(l.push(y),v.slice(0,A)+Ven+v.slice(A)+cT+R):v+cT+(A===-2?w:R)}return[qen(n,d+(n[o]||"")+(r===2?"":r===3?"":"")),l]};class aX{constructor({strings:r,_$litType$:o},l){let u;this.parts=[];let d=0,h=0;const w=r.length-1,v=this.parts,[y,E]=grr(r,o);if(this.el=aX.createElement(y,l),G8.currentNode=this.el.content,o===2||o===3){const A=this.el.content.firstChild;A.replaceWith(...A.childNodes)}for(;(u=G8.nextNode())!==null&&v.length0){u.textContent=Dde?Dde.emptyScript:"";for(let R=0;R2||l[0]!==""||l[1]!==""?(this._$AH=Array(l.length-1).fill(new String),this.strings=l):this._$AH=dp}_$AI(r,o=this,l,u){const d=this.strings;let h=!1;if(d===void 0)r=PL(this,r,o,0),h=!lX(r)||r!==this._$AH&&r!==IL,h&&(this._$AH=r);else{const w=r;let v,y;for(r=d[0],v=0;v{const l=(o==null?void 0:o.renderBefore)??r;let u=l._$litPart$;if(u===void 0){const d=(o==null?void 0:o.renderBefore)??null;l._$litPart$=u=new aJ(r.insertBefore(sX(),d),d,void 0,o??{})}return u._$AI(n),u};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */class sq extends yD{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var o;const r=super.createRenderRoot();return(o=this.renderOptions).renderBefore??(o.renderBefore=r.firstChild),r}update(r){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Srr(o,this.renderRoot,this.renderOptions)}connectedCallback(){var r;super.connectedCallback(),(r=this._$Do)==null||r.setConnected(!0)}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this._$Do)==null||r.setConnected(!1)}render(){return IL}}var dYt;sq._$litElement$=!0,sq.finalized=!0,(dYt=globalThis.litElementHydrateSupport)==null||dYt.call(globalThis,{LitElement:sq});const eNe=globalThis.litElementPolyfillSupport;eNe==null||eNe({LitElement:sq});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");var l1=navigator.userAgent,Xen=navigator.platform,YR=/gecko\/\d/i.test(l1),Jen=/MSIE \d/.test(l1),Yen=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l1),Tpe=/Edge\/(\d+)/.exec(l1),ta=Jen||Yen||Tpe,Yc=ta&&(Jen?document.documentMode||6:+(Tpe||Yen)[1]),Gb=!Tpe&&/WebKit\//.test(l1),Err=Gb&&/Qt\/\d+\.\d+/.test(l1),$pe=!Tpe&&/Chrome\//.test(l1),CS=/Opera\//.test(l1),Ipe=/Apple Computer/.test(navigator.vendor),krr=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(l1),Rrr=/PhantomJS/.test(l1),cJ=Ipe&&(/Mobile\/\w+/.test(l1)||navigator.maxTouchPoints>2),Ppe=/Android/.test(l1),cX=cJ||Ppe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(l1),sv=cJ||/Mac/.test(Xen),xrr=/\bCrOS\b/.test(l1),Crr=/win/i.test(Xen),Z8=CS&&l1.match(/Version\/(\d*\.\d*)/);Z8&&(Z8=Number(Z8[1]));Z8&&Z8>=15&&(CS=!1,Gb=!0);var RBt=sv&&(Err||CS&&(Z8==null||Z8<12.11)),dHe=YR||ta&&Yc>=9;function OL(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var zP=function(n,r){let o=n.className,l=OL(r).exec(o);if(l){let u=o.slice(l.index+l[0].length);n.className=o.slice(0,l.index)+(u?l[1]+u:"")}};function ET(n){for(let r=n.childNodes.length;r>0;--r)n.removeChild(n.firstChild);return n}function im(n,r){return ET(n).appendChild(r)}function bo(n,r,o,l){let u=document.createElement(n);if(o&&(u.className=o),l&&(u.style.cssText=l),typeof r=="string")u.appendChild(document.createTextNode(r));else if(r)for(let d=0;d=r)return h+(r-d);h+=w-d,h+=o-h%o,d=w+1}}var NL=class{constructor(){this.id=null,this.f=null,this.time=0,this.handler=hHe(this.onTimeout,this)}onTimeout(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)}set(n,r){this.f=r;const o=+new Date+n;(!this.id||o=r)return l+Math.min(h,r-u);if(u+=d-l,u+=o-u%o,l=d+1,u>=r)return l}}var rue=[""];function pHe(n){for(;rue.length<=n;)rue.push($a(rue)+" ");return rue[n]}function $a(n){return n[n.length-1]}function Npe(n,r){let o=[];for(let l=0;l"€"&&(n.toUpperCase()!=n.toLowerCase()||Trr.test(n))}function Dfe(n,r){return r?r.source.indexOf("\\w")>-1&&ije(n)?!0:r.test(n):ije(n)}function CBt(n){for(let r in n)if(n.hasOwnProperty(r)&&n[r])return!1;return!0}var $rr=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oje(n){return n.charCodeAt(0)>=768&&$rr.test(n)}function etn(n,r,o){for(;(o<0?r>0:ro?-1:1;for(;;){if(r==o)return r;let u=(r+o)/2,d=l<0?Math.ceil(u):Math.floor(u);if(d==r)return n(d)?r:o;n(d)?o=d:r=d+l}}function Irr(n,r,o,l){if(!n)return l(r,o,"ltr",0);let u=!1;for(let d=0;dr||r==o&&h.to==r)&&(l(Math.max(h.from,r),Math.min(h.to,o),h.level==1?"rtl":"ltr",d),u=!0)}u||l(r,o,"ltr")}var CK=null;function dX(n,r,o){let l;CK=null;for(let u=0;ur)return u;d.to==r&&(d.from!=d.to&&o=="before"?l=u:CK=u),d.from==r&&(d.from!=d.to&&o!="before"?l=u:CK=u)}return l??CK}var Prr=function(){let n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function o(y){return y<=247?n.charAt(y):1424<=y&&y<=1524?"R":1536<=y&&y<=1785?r.charAt(y-1536):1774<=y&&y<=2220?"r":8192<=y&&y<=8203?"w":y==8204?"b":"L"}let l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,d=/[LRr]/,h=/[Lb1n]/,w=/[1n]/;function v(y,E,A){this.level=y,this.from=E,this.to=A}return function(y,E){let A=E=="ltr"?"L":"R";if(y.length==0||E=="ltr"&&!l.test(y))return!1;let C=y.length,R=[];for(let L=0;L-1&&(l[r]=u.slice(0,d).concat(u.slice(d+1)))}}}function vd(n,r){let o=bHe(n,r);if(!o.length)return;let l=Array.prototype.slice.call(arguments,2);for(let u=0;u0}function aj(n){n.prototype.on=function(r,o){mo(this,r,o)},n.prototype.off=function(r,o){em(this,r,o)}}function i1(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function rtn(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function sje(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function hX(n){i1(n),rtn(n)}function gHe(n){return n.target||n.srcElement}function itn(n){let r=n.which;return r==null&&(n.button&1?r=1:n.button&2?r=3:n.button&4&&(r=2)),sv&&n.ctrlKey&&r==1&&(r=3),r}var Orr=function(){if(ta&&Yc<9)return!1;let n=bo("div");return"draggable"in n||"dragDrop"in n}(),rNe;function Nrr(n){if(rNe==null){let o=bo("span","​");im(n,bo("span",[o,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(rNe=o.offsetWidth<=1&&o.offsetHeight>2&&!(ta&&Yc<8))}let r=rNe?bo("span","​"):bo("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var iNe;function Mrr(n){if(iNe!=null)return iNe;let r=im(n,document.createTextNode("AخA")),o=EP(r,0,1).getBoundingClientRect(),l=EP(r,1,2).getBoundingClientRect();return ET(n),!o||o.left==o.right?!1:iNe=l.right-o.right<3}var wHe=` + +b`.split(/\n/).length!=3?n=>{let r=0,o=[],l=n.length;for(;r<=l;){let u=n.indexOf(` +`,r);u==-1&&(u=n.length);let d=n.slice(r,n.charAt(u-1)=="\r"?u-1:u),h=d.indexOf("\r");h!=-1?(o.push(d.slice(0,h)),r+=h+1):(o.push(d),r=u+1)}return o}:n=>n.split(/\r\n?|\n/),Drr=window.getSelection?n=>{try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:n=>{let r;try{r=n.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=n?!1:r.compareEndPoints("StartToEnd",r)!=0},Lrr=(()=>{let n=bo("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),oNe=null;function jrr(n){if(oNe!=null)return oNe;let r=im(n,bo("span","x")),o=r.getBoundingClientRect(),l=EP(r,0,1).getBoundingClientRect();return oNe=Math.abs(o.left-l.left)>1}var mHe={},jD={};function Frr(n,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),mHe[n]=r}function Brr(n,r){jD[n]=r}function Lde(n){if(typeof n=="string"&&jD.hasOwnProperty(n))n=jD[n];else if(n&&typeof n.name=="string"&&jD.hasOwnProperty(n.name)){let r=jD[n.name];typeof r=="string"&&(r={name:r}),n=Zen(r,n),n.name=r.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Lde("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Lde("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function yHe(n,r){r=Lde(r);let o=mHe[r.name];if(!o)return yHe(n,"text/plain");let l=o(n,r);if(tL.hasOwnProperty(r.name)){let u=tL[r.name];for(let d in u)u.hasOwnProperty(d)&&(l.hasOwnProperty(d)&&(l["_"+d]=l[d]),l[d]=u[d])}if(l.name=r.name,r.helperType&&(l.helperType=r.helperType),r.modeProps)for(let u in r.modeProps)l[u]=r.modeProps[u];return l}var tL={};function Wrr(n,r){let o=tL.hasOwnProperty(n)?tL[n]:tL[n]={};kP(r,o)}function eP(n,r){if(r===!0)return r;if(n.copyState)return n.copyState(r);let o={};for(let l in r){let u=r[l];u instanceof Array&&(u=u.concat([])),o[l]=u}return o}function vHe(n,r){let o;for(;n.innerMode&&(o=n.innerMode(r),!(!o||o.mode==n));)r=o.state,n=o.mode;return o||{mode:n,state:r}}function otn(n,r,o){return n.startState?n.startState(r,o):!0}var Hrr=class{constructor(n,r,o){this.pos=this.start=0,this.string=n,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=o}eol(){return this.pos>=this.string.length}sol(){return this.pos==this.lineStart}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.posr}eatSpace(){let n=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n}skipToEnd(){this.pos=this.string.length}skipTo(n){let r=this.string.indexOf(n,this.pos);if(r>-1)return this.pos=r,!0}backUp(n){this.pos-=n}column(){return this.lastColumnPoso?d.toLowerCase():d,u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return r!==!1&&(this.pos+=n.length),!0}else{let l=this.string.slice(this.pos).match(n);return l&&l.index>0?null:(l&&r!==!1&&(this.pos+=l[0].length),l)}}current(){return this.string.slice(this.start,this.pos)}hideFirstChars(n,r){this.lineStart+=n;try{return r()}finally{this.lineStart-=n}}lookAhead(n){let r=this.lineOracle;return r&&r.lookAhead(n)}baseToken(){let n=this.lineOracle;return n&&n.baseToken(this.pos)}},Mpe=Hrr;function Bi(n,r){if(r-=n.first,r<0||r>=n.size)throw new Error("There is no line "+(r+n.first)+" in the document.");let o=n;for(;!o.lines;)for(let l=0;;++l){let u=o.children[l],d=u.chunkSize();if(r{let h=d.text;u==o.line&&(h=h.slice(0,o.ch)),u==r.line&&(h=h.slice(r.ch)),l.push(h),++u}),l}function sNe(n,r,o){let l=[];return n.iter(r,o,u=>{l.push(u.text)}),l}function nk(n,r){let o=r-n.height;if(o)for(let l=n;l;l=l.parent)l.height+=o}function za(n){if(n.parent==null)return null;let r=n.parent,o=qp(r.lines,n);for(let l=r.parent;l;r=l,l=l.parent)for(let u=0;l.children[u]!=r;++u)o+=l.children[u].chunkSize();return o+r.first}function V8(n,r){let o=n.first;e:do{for(let u=0;u=n.first&&ro?ur(o,Bi(n,o).text.length):Urr(r,Bi(n,r.line).text.length)}function Urr(n,r){let o=n.ch;return o==null||o>r?ur(n.line,r):o<0?ur(n.line,0):n}function ABt(n,r){let o=[];for(let l=0;lthis.maxLookAhead&&(this.maxLookAhead=r),o}baseToken(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;let o=this.baseTokens[this.baseTokenPos+1];return{type:o&&o.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}}nextLine(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--}static fromSaved(r,o,l){return o instanceof jde?new aq(r,eP(r.mode,o.state),l,o.lookAhead):new aq(r,eP(r.mode,o),l)}save(r){let o=r!==!1?eP(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new jde(o,this.maxLookAhead):o}};function ltn(n,r,o,l){let u=[n.state.modeGen],d={};PBt(n,r.text,n.doc.mode,o,(w,v)=>u.push(w,v),d,l);let h=o.state;for(let w=0;w{let R=y;for(;EA&&u.splice(y,1,A,u[y+1],O),y+=2,E=Math.min(A,O)}if(C)if(v.opaque)u.splice(R,y-R,A,"overlay "+C),y=R+2;else for(;Rn.options.maxHighlightLength&&eP(n.doc.mode,l.state),d=ltn(n,r,l);u&&(l.state=u),r.stateAfter=l.save(!u),r.styles=d.styles,d.classes?r.styleClasses=d.classes:r.styleClasses&&(r.styleClasses=null),o===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return r.styles}function uJ(n,r,o){let l=n.doc,u=n.display;if(!l.mode.startState)return new aq(l,!0,r);let d=Grr(n,r,o),h=d>l.first&&Bi(l,d-1).stateAfter,w=h?aq.fromSaved(l,h,d):new aq(l,otn(l.mode),d);return l.iter(d,r,v=>{SHe(n,v.text,w);let y=w.line;v.stateAfter=y==r-1||y%5==0||y>=u.viewFrom&&yr.start)return d}throw new Error("Mode "+n.name+" failed to advance stream.")}var TBt=class{constructor(n,r,o){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=r||null,this.state=o}};function $Bt(n,r,o,l){let u=n.doc,d=u.mode,h;r=ts(u,r);let w=Bi(u,r.line),v=uJ(n,r.line,o),y=new Mpe(w.text,n.options.tabSize,v),E;for(l&&(E=[]);(l||y.posn.options.maxHighlightLength?(w=!1,h&&SHe(n,r,l,E.pos),E.pos=r.length,A=null):A=IBt(EHe(o,E,l.state,C),d),C){let R=C[0].name;R&&(A="m-"+(A?R+" "+A:R))}if(!w||y!=A){for(;vh;--w){if(w<=d.first)return d.first;let v=Bi(d,w-1),y=v.stateAfter;if(y&&(!o||w+(y instanceof jde?y.lookAhead:0)<=d.modeFrontier))return w;let E=ev(v.text,null,n.options.tabSize);(u==null||l>E)&&(u=w-1,l=E)}return u}function Vrr(n,r){if(n.modeFrontier=Math.min(n.modeFrontier,r),n.highlightFrontiero;l--){let u=Bi(n,l).stateAfter;if(u&&(!(u instanceof jde)||l+u.lookAhead=r:d.to>r);(l||(l=[])).push(new jpe(h,d.from,v?null:d.to))}}return l}function Yrr(n,r,o){let l;if(n)for(let u=0;u=r:d.to>r)||d.from==r&&h.type=="bookmark"&&(!o||d.marker.insertLeft)){let v=d.from==null||(h.inclusiveLeft?d.from<=r:d.from0&&w)for(let O=0;O{if(d.markedSpans)for(let h=0;h0)continue;let E=[v,1],A=ns(y.from,w.from),C=ns(y.to,w.to);(A<0||!h.inclusiveLeft&&!A)&&E.push({from:y.from,to:w.from}),(C>0||!h.inclusiveRight&&!C)&&E.push({from:w.to,to:y.to}),u.splice.apply(u,E),v+=E.length-3}}return u}function ftn(n){let r=n.markedSpans;if(r){for(let o=0;or)&&(!l||kHe(l,d.marker)<0)&&(l=d.marker)}return l}function NBt(n,r,o,l,u){let d=Bi(n,r),h=QR&&d.markedSpans;if(h)for(let w=0;w=0&&A<=0||E<=0&&A>=0)&&(E<=0&&(v.marker.inclusiveRight&&u.inclusiveLeft?ns(y.to,o)>=0:ns(y.to,o)>0)||E>=0&&(v.marker.inclusiveRight&&u.inclusiveLeft?ns(y.from,l)<=0:ns(y.from,l)<0)))return!0}}function rk(n){let r;for(;r=ptn(n);)n=r.find(-1,!0).line;return n}function eir(n){let r;for(;r=Fpe(n);)n=r.find(1,!0).line;return n}function tir(n){let r,o;for(;r=Fpe(n);)n=r.find(1,!0).line,(o||(o=[])).push(n);return o}function RHe(n,r){let o=Bi(n,r),l=rk(o);return o==l?r:za(l)}function btn(n,r){if(r>n.lastLine())return r;let o=Bi(n,r),l;if(!RT(n,o))return r;for(;l=Fpe(o);)o=l.find(1,!0).line;return za(o)+1}function RT(n,r){let o=QR&&r.markedSpans;if(o){for(let l,u=0;u{let u=Wde(l);u>r.maxLineLength&&(r.maxLineLength=u,r.maxLine=l)})}var gX=class{constructor(n,r,o){this.text=n,dtn(this,r),this.height=o?o(this):1}lineNo(){return za(this)}};aj(gX);function nir(n,r,o,l){n.text=r,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),ftn(n),dtn(n,o);let u=l?l(n):1;u!=n.height&&nk(n,u)}function rir(n){n.parent=null,ftn(n)}var iir={},oir={};function MBt(n,r){if(!n||/^\s*$/.test(n))return null;let o=r.addModeClass?oir:iir;return o[n]||(o[n]=n.replace(/\S+/g,"cm-$&"))}function gtn(n,r){let o=eL("span",null,null,Gb?"padding-right: .1px":null),l={pre:eL("pre",[o],"CodeMirror-line"),content:o,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};r.measure={};for(let u=0;u<=(r.rest?r.rest.length:0);u++){let d=u?r.rest[u-1]:r.line,h;l.pos=0,l.addToken=lir,Mrr(n.display.measure)&&(h=Rx(d,n.doc.direction))&&(l.addToken=cir(l.addToken,h)),l.map=[];let w=r!=n.display.externalMeasured&&za(d);uir(d,l,atn(n,d,w)),d.styleClasses&&(d.styleClasses.bgClass&&(l.bgClass=tNe(d.styleClasses.bgClass,l.bgClass||"")),d.styleClasses.textClass&&(l.textClass=tNe(d.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Nrr(n.display.measure))),u==0?(r.measure.map=l.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(l.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(Gb){let u=l.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return vd(n,"renderLine",n,r.line,l.pre),l.pre.className&&(l.textClass=tNe(l.pre.className,l.textClass||"")),l}function sir(n){let r=bo("span","•","cm-invalidchar");return r.title="\\u"+n.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function lir(n,r,o,l,u,d,h){if(!r)return;let w=n.splitSpaces?air(r,n.trailingSpace):r,v=n.cm.state.specialChars,y=!1,E;if(!v.test(r))n.col+=r.length,E=document.createTextNode(w),n.map.push(n.pos,n.pos+r.length,E),ta&&Yc<9&&(y=!0),n.pos+=r.length;else{E=document.createDocumentFragment();let A=0;for(;;){v.lastIndex=A;let C=v.exec(r),R=C?C.index-A:r.length-A;if(R){let M=document.createTextNode(w.slice(A,A+R));ta&&Yc<9?E.appendChild(bo("span",[M])):E.appendChild(M),n.map.push(n.pos,n.pos+R,M),n.col+=R,n.pos+=R}if(!C)break;A+=R+1;let O;if(C[0]==" "){let M=n.cm.options.tabSize,L=M-n.col%M;O=E.appendChild(bo("span",pHe(L),"cm-tab")),O.setAttribute("role","presentation"),O.setAttribute("cm-text"," "),n.col+=L}else C[0]=="\r"||C[0]==` +`?(O=E.appendChild(bo("span",C[0]=="\r"?"␍":"␤","cm-invalidchar")),O.setAttribute("cm-text",C[0]),n.col+=1):(O=n.cm.options.specialCharPlaceholder(C[0]),O.setAttribute("cm-text",C[0]),ta&&Yc<9?E.appendChild(bo("span",[O])):E.appendChild(O),n.col+=1);n.map.push(n.pos,n.pos+1,O),n.pos++}}if(n.trailingSpace=w.charCodeAt(r.length-1)==32,o||l||u||y||d||h){let A=o||"";l&&(A+=l),u&&(A+=u);let C=bo("span",[E],A,d);if(h)for(let R in h)h.hasOwnProperty(R)&&R!="style"&&R!="class"&&C.setAttribute(R,h[R]);return n.content.appendChild(C)}n.content.appendChild(E)}function air(n,r){if(n.length>1&&!/ /.test(n))return n;let o=r,l="";for(let u=0;u{u=u?u+" cm-force-border":"cm-force-border";let y=o.pos,E=y+l.length;for(;;){let A;for(let C=0;Cy&&A.from<=y));C++);if(A.to>=E)return n(o,l,u,d,h,w,v);n(o,l.slice(0,A.to-y),u,d,null,w,v),d=null,l=l.slice(A.to-y),y=A.to}}}function DBt(n,r,o,l){let u=!l&&o.widgetNode;u&&n.map.push(n.pos,n.pos+r,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",o.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=r,n.trailingSpace=!1}function uir(n,r,o){let l=n.markedSpans,u=n.text,d=0;if(!l){for(let G=1;Gw||Le.collapsed&&pe.to==w&&pe.from==w)){if(pe.to!=null&&pe.to!=w&&C>pe.to&&(C=pe.to,O=""),Le.className&&(R+=" "+Le.className),Le.css&&(A=(A?A+";":"")+Le.css),Le.startStyle&&pe.from==w&&(M+=" "+Le.startStyle),Le.endStyle&&pe.to==C&&(Q||(Q=[])).push(Le.endStyle,pe.to),Le.title&&((H||(H={})).title=Le.title),Le.attributes)for(let Ee in Le.attributes)(H||(H={}))[Ee]=Le.attributes[Ee];Le.collapsed&&(!L||kHe(L.marker,Le)<0)&&(L=pe)}else pe.from>w&&C>pe.from&&(C=pe.from)}if(Q)for(let te=0;te=h)break;let G=Math.min(h,C);for(;;){if(y){let j=w+y.length;if(!L){let Q=j>G?y.slice(0,G-w):y;r.addToken(r,Q,E?E+R:R,M,w+Q.length==C?O:"",A,H)}if(j>=G){y=y.slice(G-w),w=G;break}w=j,M=""}y=u.slice(d,d=o[v++]),E=MBt(o[v++],r.cm.options)}}}function wtn(n,r,o){this.line=r,this.rest=tir(r),this.size=this.rest?za($a(this.rest))-o+1:1,this.node=this.text=null,this.hidden=RT(n,r)}function Lfe(n,r,o){let l=[],u;for(let d=r;do[d].apply(null,l))}function pir(){let n=cq;cq=null;for(let r=0;r2&&d.push((v.bottom+y.top)/2-o.top)}}d.push(o.bottom-o.top)}}function Etn(n,r,o){if(n.line==r)return{map:n.measure.map,cache:n.measure.cache};for(let l=0;lo)return{map:n.measure.maps[l],cache:n.measure.caches[l],before:!0}}function _ir(n,r){r=rk(r);let o=za(r),l=n.display.externalMeasured=new wtn(n.doc,r,o);l.lineN=o;let u=l.built=gtn(n,l);return l.text=u.pre,im(n.display.lineMeasure,u.pre),l}function ktn(n,r,o,l){return ok(n,cj(n,r),o,l)}function $He(n,r){if(r>=n.display.viewFrom&&r=o.lineN&&rr)&&(d=v-w,u=d-1,r>=v&&(h="right")),u!=null){if(l=n[y+2],w==v&&o==(l.insertLeft?"left":"right")&&(h=o),o=="left"&&u==0)for(;y&&n[y-2]==n[y-3]&&n[y-1].insertLeft;)l=n[(y-=3)+2],h="left";if(o=="right"&&u==v-w)for(;y=0&&(o=n[l]).left==o.right;l--);return o}function Eir(n,r,o,l){let u=xtn(r.map,o,l),d=u.node,h=u.start,w=u.end,v=u.collapse,y;if(d.nodeType==3){for(let G=0;G<4;G++){for(;h&&oje(r.line.text.charAt(u.coverStart+h));)--h;for(;u.coverStart+w0&&(v=l="right");let G;n.options.lineWrapping&&(G=d.getClientRects()).length>1?y=G[l=="right"?G.length-1:0]:y=d.getBoundingClientRect()}if(ta&&Yc<9&&!h&&(!y||!y.left&&!y.right)){let G=d.parentNode.getClientRects()[0];G?y={left:G.left,right:G.left+uj(n.display),top:G.top,bottom:G.bottom}:y=Rtn}let E=y.top-r.rect.top,A=y.bottom-r.rect.top,C=(E+A)/2,R=r.view.measure.heights,O=0;for(;O=l.text.length?(v=l.text.length,y="before"):v<=0&&(v=0,y="after"),!w)return h(y=="before"?v-1:v,y=="before");function E(O,M,L){let H=w[M],G=H.level==1;return h(L?O-1:O,G!=L)}let A=dX(w,v,y),C=CK,R=E(v,A,y=="before");return C!=null&&(R.other=E(v,C,y!="before")),R}function FBt(n,r){let o=0;r=ts(n.doc,r),n.options.lineWrapping||(o=uj(n.display)*r.ch);let l=Bi(n.doc,r.line),u=ZR(l)+Bpe(n.display);return{left:o,right:o,top:u,bottom:u+l.height}}function dje(n,r,o,l,u){let d=ur(n,r,o);return d.xRel=u,l&&(d.outside=l),d}function PHe(n,r,o){let l=n.doc;if(o+=n.display.viewOffset,o<0)return dje(l.first,0,null,-1,-1);let u=V8(l,o),d=l.first+l.size-1;if(u>d)return dje(l.first+l.size-1,Bi(l,d).text.length,null,1,1);r<0&&(r=0);let h=Bi(l,u);for(;;){let w=Rir(n,h,u,r,o),v=Zrr(h,w.ch+(w.xRel>0||w.outside>0?1:0));if(!v)return w;let y=v.find(1);if(y.line==u)return y;h=Bi(l,u=y.line)}}function Itn(n,r,o,l){l-=IHe(r);let u=r.text.length,d=fX(h=>ok(n,o,h-1).bottom<=l,u,0);return u=fX(h=>ok(n,o,h).top>l,d,u),{begin:d,end:u}}function Ptn(n,r,o,l){o||(o=cj(n,r));let u=Wpe(n,r,ok(n,o,l),"line").top;return Itn(n,r,o,u)}function hje(n,r,o,l){return n.bottom<=o?!1:n.top>o?!0:(l?n.left:n.right)>r}function Rir(n,r,o,l,u){u-=ZR(r);let d=cj(n,r),h=IHe(r),w=0,v=r.text.length,y=!0,E=Rx(r,n.doc.direction);if(E){let H=(n.options.lineWrapping?Cir:xir)(n,r,o,d,E,l,u);y=H.level!=1,w=y?H.from:H.to-1,v=y?H.to:H.from-1}let A=null,C=null,R=fX(H=>{let G=ok(n,d,H);return G.top+=h,G.bottom+=h,hje(G,l,u,!1)?(G.top<=u&&G.left<=l&&(A=H,C=G),!0):!1},w,v),O,M,L=!1;if(C){let H=l-C.left=H.bottom?1:0}return R=etn(r.text,R,1),dje(o,R,M,L,l-O)}function xir(n,r,o,l,u,d,h){let w=fX(y=>{let E=u[y],A=E.level!=1;return hje(SS(n,ur(o,A?E.to:E.from,A?"before":"after"),"line",r,l),d,h,!0)},0,u.length-1),v=u[w];if(w>0){let y=v.level!=1,E=SS(n,ur(o,y?v.from:v.to,y?"after":"before"),"line",r,l);hje(E,d,h,!0)&&E.top>h&&(v=u[w-1])}return v}function Cir(n,r,o,l,u,d,h){let{begin:w,end:v}=Itn(n,r,l,h);/\s/.test(r.text.charAt(v-1))&&v--;let y=null,E=null;for(let A=0;A=v||C.to<=w)continue;let R=C.level!=1,O=ok(n,l,R?Math.min(v,C.to)-1:Math.max(w,C.from)).right,M=OM)&&(y=C,E=M)}return y||(y=u[u.length-1]),y.fromv&&(y={from:y.from,to:v,level:y.level}),y}var r8;function ML(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(r8==null){r8=bo("pre",null,"CodeMirror-line-like");for(let o=0;o<49;++o)r8.appendChild(document.createTextNode("x")),r8.appendChild(bo("br"));r8.appendChild(document.createTextNode("x"))}im(n.measure,r8);let r=r8.offsetHeight/50;return r>3&&(n.cachedTextHeight=r),ET(n.measure),r||1}function uj(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;let r=bo("span","xxxxxxxxxx"),o=bo("pre",[r],"CodeMirror-line-like");im(n.measure,o);let l=r.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function OHe(n){let r=n.display,o={},l={},u=r.gutters.clientLeft;for(let d=r.gutters.firstChild,h=0;d;d=d.nextSibling,++h){let w=n.display.gutterSpecs[h].className;o[w]=d.offsetLeft+d.clientLeft+u,l[w]=d.clientWidth}return{fixedPos:NHe(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:o,gutterWidth:l,wrapperWidth:r.wrapper.clientWidth}}function NHe(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Otn(n){let r=ML(n.display),o=n.options.lineWrapping,l=o&&Math.max(5,n.display.scroller.clientWidth/uj(n.display)-3);return u=>{if(RT(n.doc,u))return 0;let d=0;if(u.widgets)for(let h=0;h{let u=o(l);u!=l.height&&nk(l,u)})}function RP(n,r,o,l){let u=n.display;if(!o&&gHe(r).getAttribute("cm-not-content")=="true")return null;let d,h,w=u.lineSpace.getBoundingClientRect();try{d=r.clientX-w.left,h=r.clientY-w.top}catch{return null}let v=PHe(n,d,h),y;if(l&&v.xRel>0&&(y=Bi(n.doc,v.line).text).length==v.ch){let E=ev(y,y.length,n.options.tabSize)-y.length;v=ur(v.line,Math.max(0,Math.round((d-Stn(n.display).left)/uj(n.display))-E))}return v}function xP(n,r){if(r>=n.display.viewTo||(r-=n.display.viewFrom,r<0))return null;let o=n.display.view;for(let l=0;lr)&&(u.updateLineNumbers=r),n.curOp.viewChanged=!0,r>=u.viewTo)QR&&RHe(n.doc,r)u.viewFrom?z4(n):(u.viewFrom+=l,u.viewTo+=l);else if(r<=u.viewFrom&&o>=u.viewTo)z4(n);else if(r<=u.viewFrom){let h=iue(n,o,o+l,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=l):z4(n)}else if(o>=u.viewTo){let h=iue(n,r,r,-1);h?(u.view=u.view.slice(0,h.index),u.viewTo=h.lineN):z4(n)}else{let h=iue(n,r,r,-1),w=iue(n,o,o+l,1);h&&w?(u.view=u.view.slice(0,h.index).concat(Lfe(n,h.lineN,w.lineN)).concat(u.view.slice(w.index)),u.viewTo+=l):z4(n)}let d=u.externalMeasured;d&&(o=u.lineN&&r=l.viewTo)return;let d=l.view[xP(n,r)];if(d.node==null)return;let h=d.changes||(d.changes=[]);qp(h,o)==-1&&h.push(o)}function z4(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function iue(n,r,o,l){let u=xP(n,r),d,h=n.display.view;if(!QR||o==n.doc.first+n.doc.size)return{index:u,lineN:o};let w=n.display.viewFrom;for(let v=0;v0){if(u==h.length-1)return null;d=w+h[u].size-r,u++}else d=w-r;r+=d,o+=d}for(;RHe(n.doc,o)!=o;){if(u==(l<0?0:h.length-1))return null;o+=l*h[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:o}}function Air(n,r,o){let l=n.display;l.view.length==0||r>=l.viewTo||o<=l.viewFrom?(l.view=Lfe(n,r,o),l.viewFrom=r):(l.viewFrom>r?l.view=Lfe(n,r,l.viewFrom).concat(l.view):l.viewFromo&&(l.view=l.view.slice(0,xP(n,o)))),l.viewTo=o}function BBt(n){let r=n.display.view,o=0;for(let l=0;l=n.display.viewTo||w.to().line{let ae=xe=="ltr",F=te(Ee,ae?"left":"right"),me=te(le-1,ae?"right":"left"),ye=M==null&&Ee==0,we=L==null&&le==G,Be=be==0,He=!Le||be==Le.length-1;if(me.top-F.top<=3){let Ue=(y?ye:we)&&Be,Ge=(y?we:ye)&&He,Me=Ue?w:(ae?F:me).left,vt=Ge?v:(ae?me:F).right;E(Me,F.top,vt-Me,F.bottom)}else{let Ue,Ge,Me,vt;ae?(Ue=y&&ye&&Be?w:F.left,Ge=y?v:pe(Ee,xe,"before"),Me=y?w:pe(le,xe,"after"),vt=y&&we&&He?v:me.right):(Ue=y?pe(Ee,xe,"before"):w,Ge=!y&&ye&&Be?v:F.right,Me=!y&&we&&He?w:me.left,vt=y?pe(le,xe,"after"):v),E(Ue,F.top,Ge-Ue,F.bottom),F.bottom0?r.blinker=setInterval(()=>{n.hasFocus()||fj(n),r.cursorDiv.style.visibility=(o=!o)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}function Dtn(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||jHe(n))}function LHe(n){n.state.delayingBlurEvent=!0,setTimeout(()=>{n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&fj(n))},100)}function jHe(n,r){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(vd(n,"focus",n,r),n.state.focused=!0,KP(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),Gb&&setTimeout(()=>n.display.input.reset(!0),20)),n.display.input.receivedFocus()),DHe(n))}function fj(n,r){n.state.delayingBlurEvent||(n.state.focused&&(vd(n,"blur",n,r),n.state.focused=!1,zP(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(()=>{n.state.focused||(n.display.shift=!1)},150))}function Hpe(n){let r=n.display,o=r.lineDiv.offsetTop;for(let l=0;l.005||v<-.005)&&(nk(u.line,h),WBt(u.line),u.rest))for(let y=0;yn.display.sizerWidth){let y=Math.ceil(w/uj(n.display));y>n.display.maxLineLength&&(n.display.maxLineLength=y,n.display.maxLine=u.line,n.display.maxLineChanged=!0)}}}function WBt(n){if(n.widgets)for(let r=0;r=h&&(d=V8(r,ZR(Bi(r,v))-n.wrapper.clientHeight),h=v)}return{from:d,to:Math.max(h,d+1)}}function $ir(n,r){if(kh(n,"scrollCursorIntoView"))return;let o=n.display,l=o.sizer.getBoundingClientRect(),u=null;if(r.top+l.top<0?u=!0:r.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!Rrr){let d=bo("div","​",null,`position: absolute; + top: ${r.top-o.viewOffset-Bpe(n.display)}px; + height: ${r.bottom-r.top+ik(n)+o.barHeight}px; + left: ${r.left}px; width: ${Math.max(2,r.right-r.left)}px;`);n.display.lineSpace.appendChild(d),d.scrollIntoView(u),n.display.lineSpace.removeChild(d)}}function Iir(n,r,o,l){l==null&&(l=0);let u;!n.options.lineWrapping&&r==o&&(r=r.ch?ur(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r,o=r.sticky=="before"?ur(r.line,r.ch+1,"before"):r);for(let d=0;d<5;d++){let h=!1,w=SS(n,r),v=!o||o==r?w:SS(n,o);u={left:Math.min(w.left,v.left),top:Math.min(w.top,v.top)-l,right:Math.max(w.left,v.left),bottom:Math.max(w.bottom,v.bottom)+l};let y=FHe(n,u),E=n.doc.scrollTop,A=n.doc.scrollLeft;if(y.scrollTop!=null&&(fJ(n,y.scrollTop),Math.abs(n.doc.scrollTop-E)>1&&(h=!0)),y.scrollLeft!=null&&(XP(n,y.scrollLeft),Math.abs(n.doc.scrollLeft-A)>1&&(h=!0)),!h)break}return u}function Pir(n,r){let o=FHe(n,r);o.scrollTop!=null&&fJ(n,o.scrollTop),o.scrollLeft!=null&&XP(n,o.scrollLeft)}function FHe(n,r){let o=n.display,l=ML(n.display);r.top<0&&(r.top=0);let u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:o.scroller.scrollTop,d=THe(n),h={};r.bottom-r.top>d&&(r.bottom=r.top+d);let w=n.doc.height+AHe(o),v=r.topw-l;if(r.topu+d){let O=Math.min(r.top,(y?w:r.bottom)-d);O!=u&&(h.scrollTop=O)}let E=n.options.fixedGutter?0:o.gutters.offsetWidth,A=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:o.scroller.scrollLeft-E,C=qP(n)-o.gutters.offsetWidth,R=r.right-r.left>C;return R&&(r.right=r.left+C),r.left<10?h.scrollLeft=0:r.leftC+A-3&&(h.scrollLeft=r.right+(R?0:10)-C),h}function BHe(n,r){r!=null&&(Upe(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+r)}function dj(n){Upe(n);let r=n.getCursor();n.curOp.scrollToPos={from:r,to:r,margin:n.options.cursorScrollMargin}}function fq(n,r,o){(r!=null||o!=null)&&Upe(n),r!=null&&(n.curOp.scrollLeft=r),o!=null&&(n.curOp.scrollTop=o)}function Oir(n,r){Upe(n),n.curOp.scrollToPos=r}function Upe(n){let r=n.curOp.scrollToPos;if(r){n.curOp.scrollToPos=null;let o=FBt(n,r.from),l=FBt(n,r.to);Ltn(n,o,l,r.margin)}}function Ltn(n,r,o,l){let u=FHe(n,{left:Math.min(r.left,o.left),top:Math.min(r.top,o.top)-l,right:Math.max(r.right,o.right),bottom:Math.max(r.bottom,o.bottom)+l});fq(n,u.scrollLeft,u.scrollTop)}function fJ(n,r){Math.abs(n.doc.scrollTop-r)<2||(YR||pje(n,{top:r}),jtn(n,r,!0),YR&&pje(n),dJ(n,100))}function jtn(n,r,o){r=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,r)),!(n.display.scroller.scrollTop==r&&!o)&&(n.doc.scrollTop=r,n.display.scrollbars.setScrollTop(r),n.display.scroller.scrollTop!=r&&(n.display.scroller.scrollTop=r))}function XP(n,r,o,l){r=Math.max(0,Math.min(r,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((o?r==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-r)<2)&&!l)&&(n.doc.scrollLeft=r,Utn(n),n.display.scroller.scrollLeft!=r&&(n.display.scroller.scrollLeft=r),n.display.scrollbars.setScrollLeft(r))}function vX(n){let r=n.display,o=r.gutters.offsetWidth,l=Math.round(n.doc.height+AHe(n.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:n.options.fixedGutter?o:0,docHeight:l,scrollHeight:l+ik(n)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:o}}var Nir=class{constructor(n,r,o){this.cm=o;let l=this.vert=bo("div",[bo("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=bo("div",[bo("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),mo(l,"scroll",()=>{l.clientHeight&&r(l.scrollTop,"vertical")}),mo(u,"scroll",()=>{u.clientWidth&&r(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ta&&Yc<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}update(n){let r=n.scrollWidth>n.clientWidth+1,o=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(o){this.vert.style.display="block",this.vert.style.bottom=r?l+"px":"0";let u=n.viewHeight-(r?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=o?l+"px":"0",this.horiz.style.left=n.barLeft+"px";let u=n.viewWidth-n.barLeft-(o?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+u)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:o?l:0,bottom:r?l:0}}setScrollLeft(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")}setScrollTop(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")}zeroWidthHack(){let n=sv&&!krr?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new NL,this.disableVert=new NL}enableZeroWidthBar(n,r,o){n.style.pointerEvents="auto";function l(){let u=n.getBoundingClientRect();(o=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1))!=n?n.style.pointerEvents="none":r.set(1e3,l)}r.set(1e3,l)}clear(){let n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)}},Mir=class{update(){return{bottom:0,right:0}}setScrollLeft(){}setScrollTop(){}clear(){}};function DL(n,r){r||(r=vX(n));let o=n.display.barWidth,l=n.display.barHeight;HBt(n,r);for(let u=0;u<4&&o!=n.display.barWidth||l!=n.display.barHeight;u++)o!=n.display.barWidth&&n.options.lineWrapping&&Hpe(n),HBt(n,vX(n)),o=n.display.barWidth,l=n.display.barHeight}function HBt(n,r){let o=n.display,l=o.scrollbars.update(r);o.sizer.style.paddingRight=(o.barWidth=l.right)+"px",o.sizer.style.paddingBottom=(o.barHeight=l.bottom)+"px",o.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(o.scrollbarFiller.style.display="block",o.scrollbarFiller.style.height=l.bottom+"px",o.scrollbarFiller.style.width=l.right+"px"):o.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(o.gutterFiller.style.display="block",o.gutterFiller.style.height=l.bottom+"px",o.gutterFiller.style.width=r.gutterWidth+"px"):o.gutterFiller.style.display=""}var Ftn={native:Nir,null:Mir};function Btn(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&zP(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Ftn[n.options.scrollbarStyle](r=>{n.display.wrapper.insertBefore(r,n.display.scrollbarFiller),mo(r,"mousedown",()=>{n.state.focused&&setTimeout(()=>n.display.input.focus(),0)}),r.setAttribute("cm-not-content","true")},(r,o)=>{o=="horizontal"?XP(n,r):fJ(n,r)},n),n.display.scrollbars.addClass&&KP(n.display.wrapper,n.display.scrollbars.addClass)}var Dir=0;function JP(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Dir},fir(n.curOp)}function YP(n){let r=n.curOp;r&&hir(r,o=>{for(let l=0;l=o.viewTo)||o.maxLineChanged&&r.options.lineWrapping,n.update=n.mustUpdate&&new Wtn(r,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Fir(n){n.updatedDisplay=n.mustUpdate&&WHe(n.cm,n.update)}function Bir(n){let r=n.cm,o=r.display;n.updatedDisplay&&Hpe(r),n.barMeasure=vX(r),o.maxLineChanged&&!r.options.lineWrapping&&(n.adjustWidthTo=ktn(r,o.maxLine,o.maxLine.text.length).left+3,r.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(o.scroller.clientWidth,o.sizer.offsetLeft+n.adjustWidthTo+ik(r)+r.display.barWidth),n.maxScrollLeft=Math.max(0,o.sizer.offsetLeft+n.adjustWidthTo-qP(r))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=o.input.prepareSelection())}function Wir(n){let r=n.cm;n.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft=n.display.viewTo)return;let o=+new Date+n.options.workTime,l=uJ(n,r.highlightFrontier),u=[];r.iter(l.line,Math.min(r.first+r.size,n.display.viewTo+500),d=>{if(l.line>=n.display.viewFrom){let h=d.styles,w=d.text.length>n.options.maxHighlightLength?eP(r.mode,l.state):null,v=ltn(n,d,l,!0);w&&(l.state=w),d.styles=v.styles;let y=d.styleClasses,E=v.classes;E?d.styleClasses=E:y&&(d.styleClasses=null);let A=!h||h.length!=d.styles.length||y!=E&&(!y||!E||y.bgClass!=E.bgClass||y.textClass!=E.textClass);for(let C=0;!A&&Co)return dJ(n,n.options.workDelay),!0}),r.highlightFrontier=l.line,r.modeFrontier=Math.max(r.modeFrontier,l.line),u.length&&x0(n,()=>{for(let d=0;d=o.viewFrom&&r.visible.to<=o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo)&&o.renderedView==o.view&&BBt(n)==0)return!1;Gtn(n)&&(z4(n),r.dims=OHe(n));let u=l.first+l.size,d=Math.max(r.visible.from-n.options.viewportMargin,l.first),h=Math.min(u,r.visible.to+n.options.viewportMargin);o.viewFromh&&o.viewTo-h<20&&(h=Math.min(u,o.viewTo)),QR&&(d=RHe(n.doc,d),h=btn(n.doc,h));let w=d!=o.viewFrom||h!=o.viewTo||o.lastWrapHeight!=r.wrapperHeight||o.lastWrapWidth!=r.wrapperWidth;Air(n,d,h),o.viewOffset=ZR(Bi(n.doc,o.viewFrom)),n.display.mover.style.top=o.viewOffset+"px";let v=BBt(n);if(!w&&v==0&&!r.force&&o.renderedView==o.view&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo))return!1;let y=Vir(n);return v>4&&(o.lineDiv.style.display="none"),Kir(n,o.updateLineNumbers,r.dims),v>4&&(o.lineDiv.style.display=""),o.renderedView=o.view,zir(y),ET(o.cursorDiv),ET(o.selectionDiv),o.gutters.style.height=o.sizer.style.minHeight=0,w&&(o.lastWrapHeight=r.wrapperHeight,o.lastWrapWidth=r.wrapperWidth,dJ(n,400)),o.updateLineNumbers=null,!0}function Htn(n,r){let o=r.viewport;for(let l=!0;;l=!1){if(!l||!n.options.lineWrapping||r.oldDisplayWidth==qP(n)){if(o&&o.top!=null&&(o={top:Math.min(n.doc.height+AHe(n.display)-THe(n),o.top)}),r.visible=Hde(n.display,n.doc,o),r.visible.from>=n.display.viewFrom&&r.visible.to<=n.display.viewTo)break}else l&&(r.visible=Hde(n.display,n.doc,o));if(!WHe(n,r))break;Hpe(n);let u=vX(n);uq(n),DL(n,u),UHe(n,u),r.force=!1}r.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(r.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function pje(n,r){let o=new Wtn(n,r);if(WHe(n,o)){Hpe(n),Htn(n,o);let l=vX(n);uq(n),DL(n,l),UHe(n,l),o.finish()}}function Kir(n,r,o){let l=n.display,u=n.options.lineNumbers,d=l.lineDiv,h=d.firstChild;function w(E){let A=E.nextSibling;return Gb&&sv&&n.display.currentWheelTarget==E?E.style.display="none":E.parentNode.removeChild(E),A}let v=l.view,y=l.viewFrom;for(let E=0;E-1&&(C=!1),mtn(n,A,y,o)),C&&(ET(A.lineNumber),A.lineNumber.appendChild(document.createTextNode(_He(n.options,y)))),h=A.node.nextSibling}y+=A.size}for(;h;)h=w(h)}function HHe(n){let r=n.gutters.offsetWidth;n.sizer.style.marginLeft=r+"px",Ah(n,"gutterChanged",n)}function UHe(n,r){n.display.sizer.style.minHeight=r.docHeight+"px",n.display.heightForcer.style.top=r.docHeight+"px",n.display.gutters.style.height=r.docHeight+n.display.barHeight+ik(n)+"px"}function Utn(n){let r=n.display,o=r.view;if(!r.alignWidgets&&(!r.gutters.firstChild||!n.options.fixedGutter))return;let l=NHe(r)-r.scroller.scrollLeft+n.doc.scrollLeft,u=r.gutters.offsetWidth,d=l+"px";for(let h=0;hh.clientWidth,v=h.scrollHeight>h.clientHeight;if(l&&w||u&&v){if(u&&sv&&Gb){e:for(let y=r.target,E=d.view;y!=h;y=y.parentNode)for(let A=0;A{if(d.wheelStartX==null)return;let y=h.scrollLeft-d.wheelStartX,E=h.scrollTop-d.wheelStartY,A=E&&d.wheelDY&&E/d.wheelDY||y&&d.wheelDX&&y/d.wheelDX;d.wheelStartX=d.wheelStartY=null,A&&(Qw=(Qw*sue+A)/(sue+1),++sue)},200)):(d.wheelDX+=l,d.wheelDY+=u))}}var jT=class{constructor(r,o){this.ranges=r,this.primIndex=o}primary(){return this.ranges[this.primIndex]}equals(r){if(r==this)return!0;if(r.primIndex!=this.primIndex||r.ranges.length!=this.ranges.length)return!1;for(let o=0;o=0&&ns(r,u.to())<=0)return l}return-1}},lc=class{constructor(n,r){this.anchor=n,this.head=r}from(){return Lpe(this.anchor,this.head)}to(){return Dpe(this.anchor,this.head)}empty(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};function ES(n,r,o){let l=n&&n.options.selectionsMayTouch,u=r[o];r.sort((d,h)=>ns(d.from(),h.from())),o=qp(r,u);for(let d=1;d0:v>=0){let y=Lpe(w.from(),h.from()),E=Dpe(w.to(),h.to()),A=w.empty()?h.from()==h.head:w.from()==w.head;d<=o&&--o,r.splice(--d,2,new lc(A?E:y,A?y:E))}}return new jT(r,o)}function xT(n,r){return new jT([new lc(n,r||n)],0)}function CT(n){return n.text?ur(n.from.line+n.text.length-1,$a(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function GBt(n,r){if(ns(n,r.from)<0)return n;if(ns(n,r.to)<=0)return CT(r);let o=n.line+r.text.length-(r.to.line-r.from.line)-1,l=n.ch;return n.line==r.to.line&&(l+=CT(r).ch-r.to.ch),ur(o,l)}function GHe(n,r){let o=[];for(let l=0;l{r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,dJ(n,100),n.state.modeGen++,n.curOp&&o1(n)}function Ktn(n,r){return r.from.ch==0&&r.to.ch==0&&$a(r.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function VHe(n,r,o,l){function u(M){return o?o[M]:null}function d(M,L,H){nir(M,L,H,l),Ah(M,"change",M,r)}function h(M,L){let H=[];for(let G=M;G1&&n.remove(w.line+1,O-1),n.insert(w.line+1,M)}Ah(n,"change",n,r)}function yT(n,r,o){function l(u,d,h){if(u.linked)for(let w=0;w{Xtn(n),o1(n)})}function jfe(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function wje(n,r){let o={from:aje(r.from),to:CT(r),text:tP(n,r.from,r.to)};return zBt(n,o,r.from.line,r.to.line+1),yT(n,l=>zBt(l,o,r.from.line,r.to.line+1),!0),o}function Jtn(n){for(;n.length&&$a(n).ranges;)n.pop()}function Qir(n,r){if(r)return Jtn(n.done),$a(n.done);if(n.done.length&&!$a(n.done).ranges)return $a(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),$a(n.done)}function Ytn(n,r,o,l){let u=n.history;u.undone.length=0;let d=+new Date,h,w;if((u.lastOp==l||u.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&u.lastModTime>d-(n.cm?n.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(h=Qir(u,u.lastOp==l)))w=$a(h.changes),ns(r.from,r.to)==0&&ns(r.from,w.to)==0?w.to=CT(r):h.changes.push(wje(n,r));else{let v=$a(u.done);for((!v||!v.ranges)&&Ude(n.sel,u.done),h={changes:[wje(n,r)],generation:u.generation},u.done.push(h);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(o),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=d,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=r.origin,w||vd(n,"historyAdded")}function Zir(n,r,o,l){let u=r.charAt(0);return u=="*"||u=="+"&&o.ranges.length==l.ranges.length&&o.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function eor(n,r,o,l){let u=n.history,d=l&&l.origin;o==u.lastSelOp||d&&u.lastSelOrigin==d&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==d||Zir(n,d,$a(u.done),r))?u.done[u.done.length-1]=r:Ude(r,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=d,u.lastSelOp=o,l&&l.clearRedo!==!1&&Jtn(u.undone)}function Ude(n,r){let o=$a(r);o&&o.ranges&&o.equals(n)||r.push(n)}function zBt(n,r,o,l){let u=r["spans_"+n.id],d=0;n.iter(Math.max(n.first,o),Math.min(n.first+n.size,l),h=>{h.markedSpans&&((u||(u=r["spans_"+n.id]={}))[d]=h.markedSpans),++d})}function tor(n){if(!n)return null;let r;for(let o=0;o-1&&($a(v)[u]=E[u],delete E[u])}}return l}function zHe(n,r,o,l){if(l){let u=n.anchor;if(o){let d=ns(r,u)<0;d!=ns(o,u)<0?(u=r,r=o):d!=ns(r,o)<0&&(r=o)}return new lc(u,r)}else return new lc(o||r,r)}function Gpe(n,r,o,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),zp(n,new jT([zHe(n.sel.primary(),r,o,u)],0),l)}function qBt(n,r,o){let l=[],u=n.cm&&(n.cm.display.shift||n.extend);for(let h=0;h=r.ch:w.to>r.ch))){if(u&&(vd(v,"beforeCursorEnter"),v.explicitlyCleared))if(d.markedSpans){--h;continue}else break;if(!v.atomic)continue;if(o){let C=v.find(l<0?1:-1),R;if((l<0?E:y)&&(C=JBt(n,C,-l,C&&C.line==r.line?d:null)),C&&C.line==r.line&&(R=ns(C,o))&&(l<0?R<0:R>0))return FD(n,C,r,l,u)}let A=v.find(l<0?-1:1);return(l<0?y:E)&&(A=JBt(n,A,l,A.line==r.line?d:null)),A?FD(n,A,r,l,u):null}}return r}function Gde(n,r,o,l,u){let d=l||1,h=FD(n,r,o,d,u)||!u&&FD(n,r,o,d,!0)||FD(n,r,o,-d,u)||!u&&FD(n,r,o,-d,!0);return h||(n.cantEdit=!0,ur(n.first,0))}function JBt(n,r,o,l){return o<0&&r.ch==0?r.line>n.first?ts(n,ur(r.line-1)):null:o>0&&r.ch==(l||Bi(n,r.line)).text.length?r.linel.canceled=!0};return o&&(l.update=(u,d,h,w)=>{u&&(l.from=ts(n,u)),d&&(l.to=ts(n,d)),h&&(l.text=h),w!==void 0&&(l.origin=w)}),vd(n,"beforeChange",n,l),n.cm&&vd(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function LL(n,r,o){if(n.cm){if(!n.cm.curOp)return xh(n.cm,LL)(n,r,o);if(n.cm.state.suppressEdits)return}if((lv(n,"beforeChange")||n.cm&&lv(n.cm,"beforeChange"))&&(r=rnn(n,r,!0),!r))return;let l=utn&&!o&&Qrr(n,r.from,r.to);if(l)for(let u=l.length-1;u>=0;--u)YBt(n,{from:l[u].from,to:l[u].to,text:u?[""]:r.text,origin:r.origin});else YBt(n,r)}function YBt(n,r){if(r.text.length==1&&r.text[0]==""&&ns(r.from,r.to)==0)return;let o=GHe(n,r);Ytn(n,r,o,n.cm?n.cm.curOp.id:NaN),_X(n,r,o,cje(n,r));let l=[];yT(n,(u,d)=>{!d&&qp(l,u.history)==-1&&(inn(u.history,r),l.push(u.history)),_X(u,r,null,cje(u,r))})}function lue(n,r,o){let l=n.cm&&n.cm.state.suppressEdits;if(l&&!o)return;let u=n.history,d,h=n.sel,w=r=="undo"?u.done:u.undone,v=r=="undo"?u.undone:u.done,y=0;for(;y=0;--C){let R=d.changes[C];if(R.origin=r,A&&!rnn(n,R,!1)){w.length=0;return}E.push(wje(n,R));let O=C?GHe(n,R):$a(w);_X(n,R,O,KBt(n,R)),!C&&n.cm&&n.cm.scrollIntoView({from:R.from,to:CT(R)});let M=[];yT(n,(L,H)=>{!H&&qp(M,L.history)==-1&&(inn(L.history,R),M.push(L.history)),_X(L,R,null,KBt(L,R))})}}function QBt(n,r){if(r!=0&&(n.first+=r,n.sel=new jT(Npe(n.sel.ranges,o=>new lc(ur(o.anchor.line+r,o.anchor.ch),ur(o.head.line+r,o.head.ch))),n.sel.primIndex),n.cm)){o1(n.cm,n.first,n.first-r,r);for(let o=n.cm.display,l=o.viewFrom;ln.lastLine())return;if(r.from.lineu&&(r={from:r.from,to:ur(u,Bi(n,u).text.length),text:[r.text[0]],origin:r.origin}),r.removed=tP(n,r.from,r.to),o||(o=GHe(n,r)),n.cm?ior(n.cm,r,l):VHe(n,r,l),Vpe(n,o,tk),n.cantEdit&&Gde(n,ur(n.firstLine(),0))&&(n.cantEdit=!1)}function ior(n,r,o){let l=n.doc,u=n.display,d=r.from,h=r.to,w=!1,v=d.line;n.options.lineWrapping||(v=za(rk(Bi(l,d.line))),l.iter(v,h.line+1,C=>{if(C==u.maxLine)return w=!0,!0})),l.sel.contains(r.from,r.to)>-1&&ntn(n),VHe(l,r,o,Otn(n)),n.options.lineWrapping||(l.iter(v,d.line+r.text.length,C=>{let R=Wde(C);R>u.maxLineLength&&(u.maxLine=C,u.maxLineLength=R,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),Vrr(l,d.line),dJ(n,400);let y=r.text.length-(h.line-d.line)-1;r.full?o1(n):d.line==h.line&&r.text.length==1&&!Ktn(n.doc,r)?LT(n,d.line,"text"):o1(n,d.line,h.line+1,y);let E=lv(n,"changes"),A=lv(n,"change");if(A||E){let C={from:d,to:h,text:r.text,removed:r.removed,origin:r.origin};A&&Ah(n,"change",n,C),E&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(C)}n.display.selForContextMenu=null}function hj(n,r,o,l,u){l||(l=o),ns(l,o)<0&&([o,l]=[l,o]),typeof r=="string"&&(r=n.splitLines(r)),LL(n,{from:o,to:l,text:r,origin:u})}function ZBt(n,r,o,l){o1||!(this.children[0]instanceof dq))){let o=[];this.collapse(o),this.children=[new dq(o)],this.children[0].parent=this}},collapse(n){for(let r=0;r50){let h=u.lines.length%25+25;for(let w=h;w10);n.parent.maybeSpill()},iterN(n,r,o){for(let l=0;l{tWt(n,o,-u),LT(n,l,"widget")}),Ah(n,"lineWidgetCleared",n,this,l))}changed(){let n=this.height,r=this.doc.cm,o=this.line;this.height=null;let l=mX(this)-n;l&&(RT(this.doc,o)||nk(o,o.height+l),r&&x0(r,()=>{r.curOp.forceUpdate=!0,tWt(r,o,l),Ah(r,"lineWidgetChanged",r,this,za(o))}))}};aj(qHe);function tWt(n,r,o){ZR(r)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&BHe(n,o)}function oor(n,r,o,l){let u=new qHe(n,o,l),d=n.cm;return d&&u.noHScroll&&(d.display.alignWidgets=!0),TK(n,r,"widget",h=>{let w=h.widgets||(h.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=h,d&&!RT(n,h)){let v=ZR(h)n.display.maxLineLength&&(n.display.maxLine=d,n.display.maxLineLength=h,n.display.maxLineChanged=!0)}o!=null&&n&&this.collapsed&&o1(n,o,l+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&enn(n.doc)),n&&Ah(n,"markerCleared",n,this,o,l),r&&YP(n),this.parent&&this.parent.clear()}find(n,r){n==null&&this.type=="bookmark"&&(n=1);let o,l;for(let u=0;u{let l=n.line,u=za(n.line),d=$He(o,u);if(d&&(Ctn(d),o.curOp.selectionChanged=o.curOp.forceUpdate=!0),o.curOp.updateMaxLine=!0,!RT(r.doc,l)&&r.height!=null){let h=r.height;r.height=null;let w=mX(r)-h;w&&nk(l,l.height+w)}Ah(o,"markerChanged",o,this)})}attachLine(n){if(!this.lines.length&&this.doc.cm){let r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||qp(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)}detachLine(n){if(this.lines.splice(qp(this.lines,n),1),!this.lines.length&&this.doc.cm){let r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}}};aj(XHe);function jL(n,r,o,l,u){if(l&&l.shared)return sor(n,r,o,l,u);if(n.cm&&!n.cm.curOp)return xh(n.cm,jL)(n,r,o,l,u);let d=new XHe(n,u),h=ns(r,o);if(l&&kP(l,d,!1),h>0||h==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=eL("span",[d.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(NBt(n,r.line,r,o,d)||r.line!=o.line&&NBt(n,o.line,r,o,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");Krr()}d.addToHistory&&Ytn(n,{from:r,to:o,origin:"markText"},n.sel,NaN);let w=r.line,v=n.cm,y;if(n.iter(w,o.line+1,E=>{v&&d.collapsed&&!v.options.lineWrapping&&rk(E)==v.display.maxLine&&(y=!0),d.collapsed&&w!=r.line&&nk(E,0),Xrr(E,new jpe(d,w==r.line?r.ch:null,w==o.line?o.ch:null)),++w}),d.collapsed&&n.iter(r.line,o.line+1,E=>{RT(n,E)&&nk(E,0)}),d.clearOnEnter&&mo(d,"beforeCursorEnter",()=>d.clear()),d.readOnly&&(zrr(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),d.collapsed&&(d.id=++onn,d.atomic=!0),v){if(y&&(v.curOp.updateMaxLine=!0),d.collapsed)o1(v,r.line,o.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(let E=r.line;E<=o.line;E++)LT(v,E,"text");d.atomic&&enn(v.doc),Ah(v,"markerAdded",v,d)}return d}var JHe=class{constructor(n,r){this.markers=n,this.primary=r;for(let o=0;o{w&&(l.widgetNode=w.cloneNode(!0)),d.push(jL(v,ts(v,r),ts(v,o),l,u));for(let y=0;yr.parent)}function lor(n,r){for(let o=0;ol.push(u));for(let u=0;u=0;h--)LL(this,l[h]);d?Qtn(this,d):this.cm&&dj(this.cm)}),undo:Sh(function(){lue(this,"undo")}),redo:Sh(function(){lue(this,"redo")}),undoSelection:Sh(function(){lue(this,"undo",!0)}),redoSelection:Sh(function(){lue(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){let n=this.history,r=0,o=0;for(let l=0;ln.history=this.history,!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:oD(this.history.done),undone:oD(this.history.undone)}},setHistory:function(n){let r=this.history=new jfe(this.history);r.done=oD(n.done.slice(0),null,!0),r.undone=oD(n.undone.slice(0),null,!0)},setGutterMarker:Sh(function(n,r,o){return TK(this,n,"gutter",l=>{let u=l.gutterMarkers||(l.gutterMarkers={});return u[r]=o,!o&&CBt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Sh(function(n){this.iter(r=>{r.gutterMarkers&&r.gutterMarkers[n]&&TK(this,r,"gutter",()=>(r.gutterMarkers[n]=null,CBt(r.gutterMarkers)&&(r.gutterMarkers=null),!0))})}),lineInfo:function(n){let r;if(typeof n=="number"){if(!pX(this,n)||(r=n,n=Bi(this,n),!n))return null}else if(r=za(n),r==null)return null;return{line:r,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Sh(function(n,r,o){return TK(this,n,r=="gutter"?"gutter":"class",l=>{let u=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=o;else{if(OL(o).test(l[u]))return!1;l[u]+=" "+o}return!0})}),removeLineClass:Sh(function(n,r,o){return TK(this,n,r=="gutter"?"gutter":"class",l=>{let u=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",d=l[u];if(d)if(o==null)l[u]=null;else{let h=d.match(OL(o));if(!h)return!1;let w=h.index+h[0].length;l[u]=d.slice(0,h.index)+(!h.index||w==d.length?"":" ")+d.slice(w)||null}else return!1;return!0})}),addLineWidget:Sh(function(n,r,o){return oor(this,n,r,o)}),removeLineWidget:function(n){n.clear()},markText:function(n,r,o){return jL(this,ts(this,n),ts(this,r),o,o&&o.type||"range")},setBookmark:function(n,r){let o={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return n=ts(this,n),jL(this,n,n,o,"bookmark")},findMarksAt:function(n){n=ts(this,n);let r=[],o=Bi(this,n.line).markedSpans;if(o)for(let l=0;l=n.ch)&&r.push(u.marker.parent||u.marker)}return r},findMarks:function(n,r,o){n=ts(this,n),r=ts(this,r);let l=[],u=n.line;return this.iter(n.line,r.line+1,d=>{let h=d.markedSpans;if(h)for(let w=0;w=v.to||v.from==null&&u!=n.line||v.from!=null&&u==r.line&&v.from>=r.ch)&&(!o||o(v.marker))&&l.push(v.marker.parent||v.marker)}++u}),l},getAllMarks:function(){let n=[];return this.iter(r=>{let o=r.markedSpans;if(o)for(let l=0;l{let d=u.text.length+l;if(d>n)return r=n,!0;n-=d,++o}),ts(this,ur(o,r))},indexFromPos:function(n){n=ts(this,n);let r=n.ch;if(n.line{r+=l.text.length+o}),r},copy:function(n){let r=new HR(sNe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,n&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(n){n||(n={});let r=this.first,o=this.first+this.size;n.from!=null&&n.from>r&&(r=n.from),n.to!=null&&n.tor.push(o.id),!0),n.history=new jfe(null),n.history.done=oD(this.history.done,r),n.history.undone=oD(this.history.undone,r)}},iterLinkedDocs:function(n){yT(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):wHe(n)},lineSeparator:function(){return this.lineSep||` +`},setDirection:Sh(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(r=>r.order=null),this.cm&&Yir(this.cm))})});HR.prototype.eachLine=HR.prototype.iter;var nP=HR,snn=0;function uor(n){let r=this;if(lnn(r),kh(r,n)||ex(r.display,n))return;i1(n),ta&&(snn=+new Date);let o=RP(r,n,!0),l=n.dataTransfer.files;if(!(!o||r.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File){let u=l.length,d=Array(u),h=0;const w=()=>{++h==u&&xh(r,()=>{o=ts(r.doc,o);let y={from:o,to:o,text:r.doc.splitLines(d.filter(E=>E!=null).join(r.doc.lineSeparator())),origin:"paste"};LL(r.doc,y),Qtn(r.doc,xT(ts(r.doc,o),ts(r.doc,CT(y))))})()},v=(y,E)=>{if(r.options.allowDropFileTypes&&qp(r.options.allowDropFileTypes,y.type)==-1){w();return}let A=new FileReader;A.onerror=()=>w(),A.onload=()=>{let C=A.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(C)){w();return}d[E]=C,w()},A.readAsText(y)};for(let y=0;y-1){r.state.draggingText(n),setTimeout(()=>r.display.input.focus(),20);return}try{let u=n.dataTransfer.getData("Text");if(u){let d;if(r.state.draggingText&&!r.state.draggingText.copy&&(d=r.listSelections()),Vpe(r.doc,xT(o,o)),d)for(let h=0;h{for(let l=0;l{n==null&&(n=setTimeout(()=>{n=null,rWt(gor)},100))}),mo(window,"blur",()=>rWt(fj))}function gor(n){let r=n.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,n.setSize()}var AT={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};for(let n=0;n<10;n++)AT[n+48]=AT[n+96]=String(n);for(let n=65;n<=90;n++)AT[n]=String.fromCharCode(n);for(let n=1;n<=12;n++)AT[n+111]=AT[n+63235]="F"+n;var VR={};VR.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"};VR.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"};VR.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"};VR.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]};VR.default=sv?VR.macDefault:VR.pcDefault;function wor(n){let r=n.split(/-(?!$)/);n=r[r.length-1];let o,l,u,d;for(let h=0;h{for(let u=l.length-1;u>=0;u--)hj(n.doc,"",l[u].from,l[u].to,"+delete");dj(n)})}function YHe(n,r,o){let l=etn(n.text,r+o,o);return l<0||l>n.text.length?null:l}function mje(n,r,o){let l=YHe(n,r.ch,o);return l==null?null:new ur(r.line,l,o<0?"after":"before")}function QHe(n,r,o,l,u){if(n){r.doc.direction=="rtl"&&(u=-u);let d=Rx(o,r.doc.direction);if(d){let h=u<0?$a(d):d[0],v=u<0==(h.level==1)?"after":"before",y;if(h.level>0||r.doc.direction=="rtl"){let E=cj(r,o);y=u<0?o.text.length-1:0;let A=ok(r,E,y).top;y=fX(C=>ok(r,E,C).top==A,u<0==(h.level==1)?h.from:h.to-1,y),v=="before"&&(y=YHe(o,y,1))}else y=u<0?h.to:h.from;return new ur(l,y,v)}}return new ur(l,u<0?o.text.length:0,u<0?"before":"after")}function yor(n,r,o,l){let u=Rx(r,n.doc.direction);if(!u)return mje(r,o,l);o.ch>=r.text.length?(o.ch=r.text.length,o.sticky="before"):o.ch<=0&&(o.ch=0,o.sticky="after");let d=dX(u,o.ch,o.sticky),h=u[d];if(n.doc.direction=="ltr"&&h.level%2==0&&(l>0?h.to>o.ch:h.fromYHe(r,O instanceof ur?O.ch:O,M),v,y=O=>n.options.lineWrapping?(v=v||cj(n,r),Ptn(n,r,v,O)):{begin:0,end:r.text.length},E=y(o.sticky=="before"?w(o,-1):o.ch);if(n.doc.direction=="rtl"||h.level==1){let O=h.level==1==l<0,M=w(o,O?1:-1);if(M!=null&&(O?M<=h.to&&M<=E.end:M>=h.from&&M>=E.begin)){let L=O?"before":"after";return new ur(o.line,M,L)}}let A=(O,M,L)=>{let H=(G,j)=>j?new ur(o.line,w(G,1),"before"):new ur(o.line,G,"after");for(;O>=0&&O0==(G.level!=1),Q=j?L.begin:w(L.end,-1);if(G.from<=Q&&Q0?E.end:w(E.begin,-1);return R!=null&&!(l>0&&R==r.text.length)&&(C=A(l>0?0:u.length-1,l,y(R)),C)?C:null}var SX={selectAll:nnn,singleSelection:n=>n.setSelection(n.getCursor("anchor"),n.getCursor("head"),tk),killLine:n=>vD(n,r=>{if(r.empty()){let o=Bi(n.doc,r.head.line).text.length;return r.head.ch==o&&r.head.linevD(n,r=>({from:ur(r.from().line,0),to:ts(n.doc,ur(r.to().line+1,0))})),delLineLeft:n=>vD(n,r=>({from:ur(r.from().line,0),to:r.from()})),delWrappedLineLeft:n=>vD(n,r=>{let o=n.charCoords(r.head,"div").top+5;return{from:n.coordsChar({left:0,top:o},"div"),to:r.from()}}),delWrappedLineRight:n=>vD(n,r=>{let o=n.charCoords(r.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:o},"div");return{from:r.from(),to:l}}),undo:n=>n.undo(),redo:n=>n.redo(),undoSelection:n=>n.undoSelection(),redoSelection:n=>n.redoSelection(),goDocStart:n=>n.extendSelection(ur(n.firstLine(),0)),goDocEnd:n=>n.extendSelection(ur(n.lastLine())),goLineStart:n=>n.extendSelectionsBy(r=>fnn(n,r.head.line),{origin:"+move",bias:1}),goLineStartSmart:n=>n.extendSelectionsBy(r=>oWt(n,r.head),{origin:"+move",bias:1}),goLineEnd:n=>n.extendSelectionsBy(r=>vor(n,r.head.line),{origin:"+move",bias:-1}),goLineRight:n=>n.extendSelectionsBy(r=>{let o=n.cursorCoords(r.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:o},"div")},lq),goLineLeft:n=>n.extendSelectionsBy(r=>{let o=n.cursorCoords(r.head,"div").top+5;return n.coordsChar({left:0,top:o},"div")},lq),goLineLeftSmart:n=>n.extendSelectionsBy(r=>{let o=n.cursorCoords(r.head,"div").top+5,l=n.coordsChar({left:0,top:o},"div");return l.chn.moveV(-1,"line"),goLineDown:n=>n.moveV(1,"line"),goPageUp:n=>n.moveV(-1,"page"),goPageDown:n=>n.moveV(1,"page"),goCharLeft:n=>n.moveH(-1,"char"),goCharRight:n=>n.moveH(1,"char"),goColumnLeft:n=>n.moveH(-1,"column"),goColumnRight:n=>n.moveH(1,"column"),goWordLeft:n=>n.moveH(-1,"word"),goGroupRight:n=>n.moveH(1,"group"),goGroupLeft:n=>n.moveH(-1,"group"),goWordRight:n=>n.moveH(1,"word"),delCharBefore:n=>n.deleteH(-1,"codepoint"),delCharAfter:n=>n.deleteH(1,"char"),delWordBefore:n=>n.deleteH(-1,"word"),delWordAfter:n=>n.deleteH(1,"word"),delGroupBefore:n=>n.deleteH(-1,"group"),delGroupAfter:n=>n.deleteH(1,"group"),indentAuto:n=>n.indentSelection("smart"),indentMore:n=>n.indentSelection("add"),indentLess:n=>n.indentSelection("subtract"),insertTab:n=>n.replaceSelection(" "),insertSoftTab:n=>{let r=[],o=n.listSelections(),l=n.options.tabSize;for(let u=0;u{n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:n=>x0(n,()=>{let r=n.listSelections(),o=[];for(let l=0;l0)u=new ur(u.line,u.ch+1),n.replaceRange(d.charAt(u.ch-1)+d.charAt(u.ch-2),ur(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){let h=Bi(n.doc,u.line-1).text;h&&(u=new ur(u.line,1),n.replaceRange(d.charAt(0)+n.doc.lineSeparator()+h.charAt(h.length-1),ur(u.line-1,h.length-1),u,"+transpose"))}}o.push(new lc(u,u))}n.setSelections(o)}),newlineAndIndent:n=>x0(n,()=>{let r=n.listSelections();for(let o=r.length-1;o>=0;o--)n.replaceRange(n.doc.lineSeparator(),r[o].anchor,r[o].head,"+input");r=n.listSelections();for(let o=0;on.replaceSelection(` +`,"start"),toggleOverwrite:n=>n.toggleOverwrite()};function fnn(n,r){let o=Bi(n.doc,r),l=rk(o);return l!=o&&(r=za(l)),QHe(!0,n,l,r,1)}function vor(n,r){let o=Bi(n.doc,r),l=eir(o);return l!=o&&(r=za(l)),QHe(!0,n,o,r,-1)}function oWt(n,r){let o=fnn(n,r.line),l=Bi(n.doc,o.line),u=Rx(l,n.doc.direction);if(!u||u[0].level==0){let d=Math.max(o.ch,l.text.search(/\S/)),h=r.line==o.line&&r.ch<=d&&r.ch;return ur(o.line,h?0:d,o.sticky)}return o}function Ffe(n,r,o){if(typeof r=="string"&&(r=SX[r],!r))return!1;n.display.input.ensurePolled();let l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),o&&(n.display.shift=!1),u=r(n)!=Ope}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function _or(n,r,o){for(let l=0;l{n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),sWt(n,u+" "+r,o,l))return!0}return sWt(n,r,o,l)}function sWt(n,r,o,l){let u=_or(n,r,l);return u=="multi"&&(n.state.keySeq=r),u=="handled"&&Ah(n,"keyHandled",n,r,o),(u=="handled"||u=="multi")&&(i1(o),DHe(n)),!!u}function dnn(n,r){let o=unn(r,!0);return o?r.shiftKey&&!n.state.keySeq?pq(n,"Shift-"+o,r,l=>Ffe(n,l,!0))||pq(n,o,r,l=>{if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Ffe(n,l)}):pq(n,o,r,l=>Ffe(n,l)):!1}function Eor(n,r,o){return pq(n,"'"+o+"'",r,l=>Ffe(n,l,!0))}var yje=null;function hnn(n){let r=this;if(n.target&&n.target!=r.display.input.getField()||(r.curOp.focus=rv(),kh(r,n)))return;ta&&Yc<11&&n.keyCode==27&&(n.returnValue=!1);let o=n.keyCode;r.display.shift=o==16||n.shiftKey;let l=dnn(r,n);CS&&(yje=l?o:null,!l&&o==88&&!Lrr&&(sv?n.metaKey:n.ctrlKey)&&r.replaceSelection("",null,"cut")),YR&&!sv&&!l&&o==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),o==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&kor(r)}function kor(n){let r=n.display.lineDiv;KP(r,"CodeMirror-crosshair");function o(l){(l.keyCode==18||!l.altKey)&&(zP(r,"CodeMirror-crosshair"),em(document,"keyup",o),em(document,"mouseover",o))}mo(document,"keyup",o),mo(document,"mouseover",o)}function pnn(n){n.keyCode==16&&(this.doc.sel.shift=!1),kh(this,n)}function bnn(n){let r=this;if(n.target&&n.target!=r.display.input.getField()||ex(r.display,n)||kh(r,n)||n.ctrlKey&&!n.altKey||sv&&n.metaKey)return;let o=n.keyCode,l=n.charCode;if(CS&&o==yje){yje=null,i1(n);return}if(CS&&(!n.which||n.which<10)&&dnn(r,n))return;let u=String.fromCharCode(l??o);u!="\b"&&(Eor(r,n,u)||r.display.input.onKeyPress(n))}var Ror=400,lWt=class{constructor(n,r,o){this.time=n,this.pos=r,this.button=o}compare(n,r,o){return this.time+Ror>n&&ns(r,this.pos)==0&&o==this.button}},eK,tK;function xor(n,r){let o=+new Date;return tK&&tK.compare(o,n,r)?(eK=tK=null,"triple"):eK&&eK.compare(o,n,r)?(tK=new lWt(o,n,r),eK=null,"double"):(eK=new lWt(o,n,r),tK=null,"single")}function gnn(n){let r=this,o=r.display;if(kh(r,n)||o.activeTouch&&o.input.supportsTouch())return;if(o.input.ensurePolled(),o.shift=n.shiftKey,ex(o,n)){Gb||(o.scroller.draggable=!1,setTimeout(()=>o.scroller.draggable=!0,100));return}if(vje(r,n))return;let l=RP(r,n),u=itn(n),d=l?xor(l,u):"single";window.focus(),u==1&&r.state.selectingText&&r.state.selectingText(n),!(l&&Cor(r,u,l,d,n))&&(u==1?l?Tor(r,l,d,n):gHe(n)==o.scroller&&i1(n):u==2?(l&&Gpe(r.doc,l),setTimeout(()=>o.input.focus(),20)):u==3&&(dHe?r.display.input.onContextMenu(n):LHe(r)))}function Cor(n,r,o,l,u){let d="Click";return l=="double"?d="Double"+d:l=="triple"&&(d="Triple"+d),d=(r==1?"Left":r==2?"Middle":"Right")+d,pq(n,cnn(d,u),u,h=>{if(typeof h=="string"&&(h=SX[h]),!h)return!1;let w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=h(n,o)!=Ope}finally{n.state.suppressEdits=!1}return w})}function Aor(n,r,o){let l=n.getOption("configureMouse"),u=l?l(n,r,o):{};if(u.unit==null){let d=xrr?o.shiftKey&&o.metaKey:o.altKey;u.unit=d?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||o.shiftKey),u.addNew==null&&(u.addNew=sv?o.metaKey:o.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(sv?o.altKey:o.ctrlKey)),u}function Tor(n,r,o,l){ta?setTimeout(hHe(Dtn,n),0):n.curOp.focus=rv();let u=Aor(n,o,l),d=n.doc.sel,h;n.options.dragDrop&&Orr&&!n.isReadOnly()&&o=="single"&&(h=d.contains(r))>-1&&(ns((h=d.ranges[h]).from(),r)<0||r.xRel>0)&&(ns(h.to(),r)>0||r.xRel<0)?$or(n,l,r,u):Ior(n,l,r,u)}function $or(n,r,o,l){let u=n.display,d=!1,h=xh(n,y=>{Gb&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:LHe(n)),em(u.wrapper.ownerDocument,"mouseup",h),em(u.wrapper.ownerDocument,"mousemove",w),em(u.scroller,"dragstart",v),em(u.scroller,"drop",h),d||(i1(y),l.addNew||Gpe(n.doc,o,null,null,l.extend),Gb&&!Ipe||ta&&Yc==9?setTimeout(()=>{u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(y){d=d||Math.abs(r.clientX-y.clientX)+Math.abs(r.clientY-y.clientY)>=10},v=()=>d=!0;Gb&&(u.scroller.draggable=!0),n.state.draggingText=h,h.copy=!l.moveOnDrag,mo(u.wrapper.ownerDocument,"mouseup",h),mo(u.wrapper.ownerDocument,"mousemove",w),mo(u.scroller,"dragstart",v),mo(u.scroller,"drop",h),n.state.delayingBlurEvent=!0,setTimeout(()=>u.input.focus(),20),u.scroller.dragDrop&&u.scroller.dragDrop()}function aWt(n,r,o){if(o=="char")return new lc(r,r);if(o=="word")return n.findWordAt(r);if(o=="line")return new lc(ur(r.line,0),ts(n.doc,ur(r.line+1,0)));let l=o(n,r);return new lc(l.from,l.to)}function Ior(n,r,o,l){ta&&LHe(n);let u=n.display,d=n.doc;i1(r);let h,w,v=d.sel,y=v.ranges;if(l.addNew&&!l.extend?(w=d.sel.contains(o),w>-1?h=y[w]:h=new lc(o,o)):(h=d.sel.primary(),w=d.sel.primIndex),l.unit=="rectangle")l.addNew||(h=new lc(o,o)),o=RP(n,r,!0,!0),w=-1;else{let G=aWt(n,o,l.unit);l.extend?h=zHe(h,G.anchor,G.head,l.extend):h=G}l.addNew?w==-1?(w=y.length,zp(d,ES(n,y.concat([h]),w),{scroll:!1,origin:"*mouse"})):y.length>1&&y[w].empty()&&l.unit=="char"&&!l.extend?(zp(d,ES(n,y.slice(0,w).concat(y.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),v=d.sel):KHe(d,w,h,nNe):(w=0,zp(d,new jT([h],0),nNe),v=d.sel);let E=o;function A(G){if(ns(E,G)!=0)if(E=G,l.unit=="rectangle"){let j=[],Q=n.options.tabSize,te=ev(Bi(d,o.line).text,o.ch,Q),pe=ev(Bi(d,G.line).text,G.ch,Q),Le=Math.min(te,pe),Ee=Math.max(te,pe);for(let le=Math.min(o.line,G.line),xe=Math.min(n.lastLine(),Math.max(o.line,G.line));le<=xe;le++){let be=Bi(d,le).text,ae=rje(be,Le,Q);Le==Ee?j.push(new lc(ur(le,ae),ur(le,ae))):be.length>ae&&j.push(new lc(ur(le,ae),ur(le,rje(be,Ee,Q))))}j.length||j.push(new lc(o,o)),zp(d,ES(n,v.ranges.slice(0,w).concat(j),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(G)}else{let j=h,Q=aWt(n,G,l.unit),te=j.anchor,pe;ns(Q.anchor,te)>0?(pe=Q.head,te=Lpe(j.from(),Q.anchor)):(pe=Q.anchor,te=Dpe(j.to(),Q.head));let Le=v.ranges.slice(0);Le[w]=Por(n,new lc(ts(d,te),pe)),zp(d,ES(n,Le,w),nNe)}}let C=u.wrapper.getBoundingClientRect(),R=0;function O(G){let j=++R,Q=RP(n,G,!0,l.unit=="rectangle");if(Q)if(ns(Q,E)!=0){n.curOp.focus=rv(),A(Q);let te=Hde(u,d);(Q.line>=te.to||Q.line{R==j&&O(G)}),150)}else{let te=G.clientYC.bottom?20:0;te&&setTimeout(xh(n,()=>{R==j&&(u.scroller.scrollTop+=te,O(G))}),50)}}function M(G){n.state.selectingText=!1,R=1/0,G&&(i1(G),u.input.focus()),em(u.wrapper.ownerDocument,"mousemove",L),em(u.wrapper.ownerDocument,"mouseup",H),d.history.lastSelOrigin=null}let L=xh(n,G=>{G.buttons===0||!itn(G)?M(G):O(G)}),H=xh(n,M);n.state.selectingText=H,mo(u.wrapper.ownerDocument,"mousemove",L),mo(u.wrapper.ownerDocument,"mouseup",H)}function Por(n,r){let{anchor:o,head:l}=r,u=Bi(n.doc,o.line);if(ns(o,l)==0&&o.sticky==l.sticky)return r;let d=Rx(u);if(!d)return r;let h=dX(d,o.ch,o.sticky),w=d[h];if(w.from!=o.ch&&w.to!=o.ch)return r;let v=h+(w.from==o.ch==(w.level!=1)?0:1);if(v==0||v==d.length)return r;let y;if(l.line!=o.line)y=(l.line-o.line)*(n.doc.direction=="ltr"?1:-1)>0;else{let O=dX(d,l.ch,l.sticky),M=O-h||(l.ch-o.ch)*(w.level==1?-1:1);O==v-1||O==v?y=M<0:y=M>0}let E=d[v+(y?-1:0)],A=y==(E.level==1),C=A?E.from:E.to,R=A?"after":"before";return o.ch==C&&o.sticky==R?r:new lc(new ur(o.line,C,R),l)}function wnn(n,r,o,l){let u,d;if(r.touches)u=r.touches[0].clientX,d=r.touches[0].clientY;else try{u=r.clientX,d=r.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&i1(r);let h=n.display,w=h.lineDiv.getBoundingClientRect();if(d>w.bottom||!lv(n,o))return sje(r);d-=w.top-h.viewOffset;for(let v=0;v=u){let E=V8(n.doc,d),A=n.display.gutterSpecs[v];return vd(n,o,n,E,A.className,r),sje(r)}}}function vje(n,r){return wnn(n,r,"gutterClick",!0)}function cWt(n,r){ex(n.display,r)||Oor(n,r)||kh(n,r,"contextmenu")||dHe||n.display.input.onContextMenu(r)}function Oor(n,r){return lv(n,"gutterContextMenu")?wnn(n,r,"gutterContextMenu",!1):!1}function mnn(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yX(n)}var BD={toString:function(){return"CodeMirror.Init"}},ynn={},Bfe={};function Nor(n){let r=n.optionHandlers;function o(l,u,d,h){n.defaults[l]=u,d&&(r[l]=h?(w,v,y)=>{y!=BD&&d(w,v,y)}:d)}n.defineOption=o,n.Init=BD,o("value","",(l,u)=>l.setValue(u),!0),o("mode",null,(l,u)=>{l.doc.modeOption=u,gje(l)},!0),o("indentUnit",2,gje,!0),o("indentWithTabs",!1),o("smartIndent",!0),o("tabSize",4,l=>{AK(l),yX(l),o1(l)},!0),o("lineSeparator",null,(l,u)=>{if(l.doc.lineSep=u,!u)return;let d=[],h=l.doc.first;l.doc.iter(w=>{for(let v=0;;){let y=w.text.indexOf(u,v);if(y==-1)break;v=y+u.length,d.push(ur(h,y))}h++});for(let w=d.length-1;w>=0;w--)hj(l.doc,u,d[w],ur(d[w].line,d[w].ch+u.length))}),o("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(l,u,d)=>{l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),d!=BD&&l.refresh()}),o("specialCharPlaceholder",sir,l=>l.refresh(),!0),o("electricChars",!0),o("inputStyle",cX?"contenteditable":"textarea",()=>{throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),o("spellcheck",!1,(l,u)=>l.getInputField().spellcheck=u,!0),o("autocorrect",!1,(l,u)=>l.getInputField().autocorrect=u,!0),o("autocapitalize",!1,(l,u)=>l.getInputField().autocapitalize=u,!0),o("rtlMoveVisually",!Crr),o("wholeLineUpdateBefore",!0),o("theme","default",l=>{mnn(l),Zz(l)},!0),o("keyMap","default",(l,u,d)=>{let h=Vde(u),w=d!=BD&&Vde(d);w&&w.detach&&w.detach(l,h),h.attach&&h.attach(l,w||null)}),o("extraKeys",null),o("configureMouse",null),o("lineWrapping",!1,Dor,!0),o("gutters",[],(l,u)=>{l.display.gutterSpecs=bje(u,l.options.lineNumbers),Zz(l)},!0),o("fixedGutter",!0,(l,u)=>{l.display.gutters.style.left=u?NHe(l.display)+"px":"0",l.refresh()},!0),o("coverGutterNextToScrollbar",!1,l=>DL(l),!0),o("scrollbarStyle","native",l=>{Btn(l),DL(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),o("lineNumbers",!1,(l,u)=>{l.display.gutterSpecs=bje(l.options.gutters,u),Zz(l)},!0),o("firstLineNumber",1,Zz,!0),o("lineNumberFormatter",l=>l,Zz,!0),o("showCursorWhenSelecting",!1,uq,!0),o("resetSelectionOnContextMenu",!0),o("lineWiseCopyCut",!0),o("pasteLinesPerSelection",!0),o("selectionsMayTouch",!1),o("readOnly",!1,(l,u)=>{u=="nocursor"&&(fj(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),o("screenReaderLabel",null,(l,u)=>{u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),o("disableInput",!1,(l,u)=>{u||l.display.input.reset()},!0),o("dragDrop",!0,Mor),o("allowDropFileTypes",null),o("cursorBlinkRate",530),o("cursorScrollMargin",0),o("cursorHeight",1,uq,!0),o("singleCursorHeightPerLine",!0,uq,!0),o("workTime",100),o("workDelay",100),o("flattenSpans",!0,AK,!0),o("addModeClass",!1,AK,!0),o("pollInterval",100),o("undoDepth",200,(l,u)=>l.doc.history.undoDepth=u),o("historyEventDelay",1250),o("viewportMargin",10,l=>l.refresh(),!0),o("maxHighlightLength",1e4,AK,!0),o("moveInputWithCursor",!0,(l,u)=>{u||l.display.input.resetPosition()}),o("tabindex",null,(l,u)=>l.display.input.getField().tabIndex=u||""),o("autofocus",null),o("direction","ltr",(l,u)=>l.doc.setDirection(u),!0),o("phrases",null)}function Mor(n,r,o){let l=o&&o!=BD;if(!r!=!l){let u=n.display.dragFunctions,d=r?mo:em;d(n.display.scroller,"dragstart",u.start),d(n.display.scroller,"dragenter",u.enter),d(n.display.scroller,"dragover",u.over),d(n.display.scroller,"dragleave",u.leave),d(n.display.scroller,"drop",u.drop)}}function Dor(n){n.options.lineWrapping?(KP(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(zP(n.display.wrapper,"CodeMirror-wrap"),xHe(n)),MHe(n),o1(n),yX(n),setTimeout(()=>DL(n),100)}function du(n,r){if(!(this instanceof du))return new du(n,r);this.options=r=r?kP(r):{},kP(ynn,r,!1);let o=r.value;typeof o=="string"?o=new nP(o,r.mode,null,r.lineSeparator,r.direction):r.mode&&(o.modeOption=r.mode),this.doc=o;let l=new du.inputStyles[r.inputStyle](this),u=this.display=new qir(n,o,l,r);u.wrapper.CodeMirror=this,mnn(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Btn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new NL,keySeq:null,specialChars:null},r.autofocus&&!cX&&u.input.focus(),ta&&Yc<11&&setTimeout(()=>this.display.input.reset(!0),20),jor(this),por(),JP(this),this.curOp.forceUpdate=!0,qtn(this,o),r.autofocus&&!cX||this.hasFocus()?setTimeout(()=>{this.hasFocus()&&!this.state.focused&&jHe(this)},20):fj(this);for(let d in Bfe)Bfe.hasOwnProperty(d)&&Bfe[d](this,r[d],BD);Gtn(this),r.finishInit&&r.finishInit(this);for(let d=0;d<_je.length;++d)_je[d](this);YP(this),Gb&&r.lineWrapping&&getComputedStyle(u.lineDiv).textRendering=="optimizelegibility"&&(u.lineDiv.style.textRendering="auto")}du.defaults=ynn;du.optionHandlers=Bfe;var Lor=du;function jor(n){let r=n.display;mo(r.scroller,"mousedown",xh(n,gnn)),ta&&Yc<11?mo(r.scroller,"dblclick",xh(n,v=>{if(kh(n,v))return;let y=RP(n,v);if(!y||vje(n,v)||ex(n.display,v))return;i1(v);let E=n.findWordAt(y);Gpe(n.doc,E.anchor,E.head)})):mo(r.scroller,"dblclick",v=>kh(n,v)||i1(v)),mo(r.scroller,"contextmenu",v=>cWt(n,v)),mo(r.input.getField(),"contextmenu",v=>{r.scroller.contains(v.target)||cWt(n,v)});let o,l={end:0};function u(){r.activeTouch&&(o=setTimeout(()=>r.activeTouch=null,1e3),l=r.activeTouch,l.end=+new Date)}function d(v){if(v.touches.length!=1)return!1;let y=v.touches[0];return y.radiusX<=1&&y.radiusY<=1}function h(v,y){if(y.left==null)return!0;let E=y.left-v.left,A=y.top-v.top;return E*E+A*A>20*20}mo(r.scroller,"touchstart",v=>{if(!kh(n,v)&&!d(v)&&!vje(n,v)){r.input.ensurePolled(),clearTimeout(o);let y=+new Date;r.activeTouch={start:y,moved:!1,prev:y-l.end<=300?l:null},v.touches.length==1&&(r.activeTouch.left=v.touches[0].pageX,r.activeTouch.top=v.touches[0].pageY)}}),mo(r.scroller,"touchmove",()=>{r.activeTouch&&(r.activeTouch.moved=!0)}),mo(r.scroller,"touchend",v=>{let y=r.activeTouch;if(y&&!ex(r,v)&&y.left!=null&&!y.moved&&new Date-y.start<300){let E=n.coordsChar(r.activeTouch,"page"),A;!y.prev||h(y,y.prev)?A=new lc(E,E):!y.prev.prev||h(y,y.prev.prev)?A=n.findWordAt(E):A=new lc(ur(E.line,0),ts(n.doc,ur(E.line+1,0))),n.setSelection(A.anchor,A.head),n.focus(),i1(v)}u()}),mo(r.scroller,"touchcancel",u),mo(r.scroller,"scroll",()=>{r.scroller.clientHeight&&(fJ(n,r.scroller.scrollTop),XP(n,r.scroller.scrollLeft,!0),vd(n,"scroll",n))}),mo(r.scroller,"mousewheel",v=>UBt(n,v)),mo(r.scroller,"DOMMouseScroll",v=>UBt(n,v)),mo(r.wrapper,"scroll",()=>r.wrapper.scrollTop=r.wrapper.scrollLeft=0),r.dragFunctions={enter:v=>{kh(n,v)||hX(v)},over:v=>{kh(n,v)||(hor(n,v),hX(v))},start:v=>dor(n,v),drop:xh(n,uor),leave:v=>{kh(n,v)||lnn(n)}};let w=r.input.getField();mo(w,"keyup",v=>pnn.call(n,v)),mo(w,"keydown",xh(n,hnn)),mo(w,"keypress",xh(n,bnn)),mo(w,"focus",v=>jHe(n,v)),mo(w,"blur",v=>fj(n,v))}var _je=[];du.defineInitHook=n=>_je.push(n);function bq(n,r,o,l){let u=n.doc,d;o==null&&(o="add"),o=="smart"&&(u.mode.indent?d=uJ(n,r).state:o="prev");let h=n.options.tabSize,w=Bi(u,r),v=ev(w.text,null,h);w.stateAfter&&(w.stateAfter=null);let y=w.text.match(/^\s*/)[0],E;if(!l&&!/\S/.test(w.text))E=0,o="not";else if(o=="smart"&&(E=u.mode.indent(d,w.text.slice(y.length),w.text),E==Ope||E>150)){if(!l)return;o="prev"}o=="prev"?r>u.first?E=ev(Bi(u,r-1).text,null,h):E=0:o=="add"?E=v+n.options.indentUnit:o=="subtract"?E=v-n.options.indentUnit:typeof o=="number"&&(E=v+o),E=Math.max(0,E);let A="",C=0;if(n.options.indentWithTabs)for(let R=Math.floor(E/h);R;--R)C+=h,A+=" ";if(Ch,v=wHe(r),y=null;if(w&&l.ranges.length>1)if(pS&&pS.text.join(` +`)==r){if(l.ranges.length%pS.text.length==0){y=[];for(let A=0;A[A]));let E=n.curOp.updateInput;for(let A=l.ranges.length-1;A>=0;A--){let C=l.ranges[A],R=C.from(),O=C.to();C.empty()&&(o&&o>0?R=ur(R.line,R.ch-o):n.state.overwrite&&!w?O=ur(O.line,Math.min(Bi(d,O.line).text.length,O.ch+$a(v).length)):w&&pS&&pS.lineWise&&pS.text.join(` +`)==v.join(` +`)&&(R=O=ur(R.line,0)));let M={from:R,to:O,text:y?y[A%y.length]:v,origin:u||(w?"paste":n.state.cutIncoming>h?"cut":"+input")};LL(n.doc,M),Ah(n,"inputRead",n,M)}r&&!w&&_nn(n,r),dj(n),n.curOp.updateInput<2&&(n.curOp.updateInput=E),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function vnn(n,r){let o=n.clipboardData&&n.clipboardData.getData("Text");if(o)return n.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&x0(r,()=>ZHe(r,o,0,null,"paste")),!0}function _nn(n,r){if(!n.options.electricChars||!n.options.smartIndent)return;let o=n.doc.sel;for(let l=o.ranges.length-1;l>=0;l--){let u=o.ranges[l];if(u.head.ch>100||l&&o.ranges[l-1].head.line==u.head.line)continue;let d=n.getModeAt(u.head),h=!1;if(d.electricChars){for(let w=0;w-1){h=bq(n,u.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(Bi(n.doc,u.head.line).text.slice(0,u.head.ch))&&(h=bq(n,u.head.line,"smart"));h&&Ah(n,"electricInput",n,u.head.line)}}function Snn(n){let r=[],o=[];for(let l=0;lh.priority),this.state.modeGen++,o1(this)}),removeOverlay:jb(function(l){let u=this.state.overlays;for(let d=0;dd&&(bq(this,w.head.line,l,!0),d=w.head.line,h==this.doc.sel.primIndex&&dj(this));else{let v=w.from(),y=w.to(),E=Math.max(d,v.line);d=Math.min(this.lastLine(),y.line-(y.ch?0:1))+1;for(let C=E;C0&&KHe(this.doc,h,new lc(v,A[h].to()),tk)}}}),getTokenAt:function(l,u){return $Bt(this,l,u)},getLineTokens:function(l,u){return $Bt(this,ur(l),u,!0)},getTokenTypeAt:function(l){l=ts(this.doc,l);let u=atn(this,Bi(this.doc,l.line)),d=0,h=(u.length-1)/2,w=l.ch,v;if(w==0)v=u[2];else for(;;){let E=d+h>>1;if((E?u[E*2-1]:0)>=w)h=E;else if(u[E*2+1]v&&(l=v,h=!0),w=Bi(this.doc,l)}else w=l;return Wpe(this,w,{top:0,left:0},u||"page",d||h).top+(h?this.doc.height-ZR(w):0)},defaultTextHeight:function(){return ML(this.display)},defaultCharWidth:function(){return uj(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,d,h,w){let v=this.display;l=SS(this,ts(this.doc,l));let y=l.bottom,E=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),v.sizer.appendChild(u),h=="over")y=l.top;else if(h=="above"||h=="near"){let A=Math.max(v.wrapper.clientHeight,this.doc.height),C=Math.max(v.sizer.clientWidth,v.lineSpace.clientWidth);(h=="above"||l.bottom+u.offsetHeight>A)&&l.top>u.offsetHeight?y=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=A&&(y=l.bottom),E+u.offsetWidth>C&&(E=C-u.offsetWidth)}u.style.top=y+"px",u.style.left=u.style.right="",w=="right"?(E=v.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?E=0:w=="middle"&&(E=(v.sizer.clientWidth-u.offsetWidth)/2),u.style.left=E+"px"),d&&Pir(this,{left:E,top:y,right:E+u.offsetWidth,bottom:y+u.offsetHeight})},triggerOnKeyDown:jb(hnn),triggerOnKeyPress:jb(bnn),triggerOnKeyUp:pnn,triggerOnMouseDown:jb(gnn),execCommand:function(l){if(SX.hasOwnProperty(l))return SX[l].call(null,this)},triggerElectric:jb(function(l){_nn(this,l)}),findPosH:function(l,u,d,h){let w=1;u<0&&(w=-1,u=-u);let v=ts(this.doc,l);for(let y=0;ythis.display.shift||this.doc.extend||d.empty()?lNe(this.doc,d.head,l,u,this.options.rtlMoveVisually):l<0?d.from():d.to(),lq)}),deleteH:jb(function(l,u){let d=this.doc.sel,h=this.doc;d.somethingSelected()?h.replaceSelection("",null,"+delete"):vD(this,w=>{let v=lNe(h,w.head,l,u,!1);return l<0?{from:v,to:w.head}:{from:w.head,to:v}})}),findPosV:function(l,u,d,h){let w=1,v=h;u<0&&(w=-1,u=-u);let y=ts(this.doc,l);for(let E=0;E{if(w)return l<0?v.from():v.to();let y=SS(this,v.head,"div");v.goalColumn!=null&&(y.left=v.goalColumn),h.push(y.left);let E=uWt(this,y,l,u);return u=="page"&&v==d.sel.primary()&&BHe(this,fje(this,E,"div").top-y.top),E},lq),h.length)for(let v=0;vDfe(A,v):/\s/.test(y)?A=>/\s/.test(A):A=>!/\s/.test(A)&&!Dfe(A);for(;h>0&&E(d.charAt(h-1));)--h;for(;wtypeof w=="number"||/^\d+$/.test(String(w))?w+"px":w;l!=null&&(this.display.wrapper.style.width=d(l)),u!=null&&(this.display.wrapper.style.height=d(u)),this.options.lineWrapping&&Atn(this);let h=this.display.viewFrom;this.doc.iter(h,this.display.viewTo,w=>{if(w.widgets){for(let v=0;v.5||this.options.lineWrapping)&&MHe(this),vd(this,"refresh",this)}),swapDoc:jb(function(l){let u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),qtn(this,l),yX(this),this.display.input.reset(),fq(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Ah(this,"swapDoc",this,u),u}),phrase:function(l){let u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},aj(n),n.registerHelper=function(l,u,d){o.hasOwnProperty(l)||(o[l]=n[l]={_global:[]}),o[l][u]=d},n.registerGlobalHelper=function(l,u,d,h){n.registerHelper(l,u,h),o[l]._global.push({pred:d,val:h})}}function lNe(n,r,o,l,u){let d=r,h=o,w=Bi(n,r.line),v=u&&n.direction=="rtl"?-o:o;function y(){let C=r.line+v;return C=n.first+n.size?!1:(r=new ur(C,r.ch,r.sticky),w=Bi(n,C))}function E(C){let R;if(l=="codepoint"){let O=w.text.charCodeAt(r.ch+(o>0?0:-1));if(isNaN(O))R=null;else{let M=o>0?O>=55296&&O<56320:O>=56320&&O<57343;R=new ur(r.line,Math.max(0,Math.min(w.text.length,r.ch+o*(M?2:1))),-o)}}else u?R=yor(n.cm,w,r,o):R=mje(w,r,o);if(R==null)if(!C&&y())r=QHe(u,n.cm,w,r.line,v);else return!1;else r=R;return!0}if(l=="char"||l=="codepoint")E();else if(l=="column")E(!0);else if(l=="word"||l=="group"){let C=null,R=l=="group",O=n.cm&&n.cm.getHelper(r,"wordChars");for(let M=!0;!(o<0&&!E(!M));M=!1){let L=w.text.charAt(r.ch)||` +`,H=Dfe(L,O)?"w":R&&L==` +`?"n":!R||/\s/.test(L)?null:"p";if(R&&!M&&!H&&(H="s"),C&&C!=H){o<0&&(o=1,E(),r.sticky="after");break}if(H&&(C=H),o>0&&!E(!M))break}}let A=Gde(n,r,d,h,!0);return lje(d,A)&&(A.hitSide=!0),A}function uWt(n,r,o,l){let u=n.doc,d=r.left,h;if(l=="page"){let v=Math.min(n.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(v-.5*ML(n.display),3);h=(o>0?r.bottom:r.top)+o*y}else l=="line"&&(h=o>0?r.bottom+3:r.top-3);let w;for(;w=PHe(n,d,h),!!w.outside;){if(o<0?h<=0:h>=u.height){w.hitSide=!0;break}h+=o*5}return w}var Rnn=class{constructor(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new NL,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}init(n){let r=this,o=r.cm,l=r.div=n.lineDiv;l.contentEditable=!0,Enn(l,o.options.spellcheck,o.options.autocorrect,o.options.autocapitalize);function u(h){for(let w=h.target;w;w=w.parentNode){if(w==l)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}mo(l,"paste",h=>{!u(h)||kh(o,h)||vnn(h,o)||Yc<=11&&setTimeout(xh(o,()=>this.updateFromDOM()),20)}),mo(l,"compositionstart",h=>{this.composing={data:h.data,done:!1}}),mo(l,"compositionupdate",h=>{this.composing||(this.composing={data:h.data,done:!1})}),mo(l,"compositionend",h=>{this.composing&&(h.data!=this.composing.data&&this.readFromDOMSoon(),this.composing.done=!0)}),mo(l,"touchstart",()=>r.forceCompositionEnd()),mo(l,"input",()=>{this.composing||this.readFromDOMSoon()});function d(h){if(!u(h)||kh(o,h))return;if(o.somethingSelected())zde({lineWise:!1,text:o.getSelections()}),h.type=="cut"&&o.replaceSelection("",null,"cut");else if(o.options.lineWiseCopyCut){let E=Snn(o);zde({lineWise:!0,text:E.text}),h.type=="cut"&&o.operation(()=>{o.setSelections(E.ranges,0,tk),o.replaceSelection("",null,"cut")})}else return;if(h.clipboardData){h.clipboardData.clearData();let E=pS.text.join(` +`);if(h.clipboardData.setData("Text",E),h.clipboardData.getData("Text")==E){h.preventDefault();return}}let w=knn(),v=w.firstChild;o.display.lineSpace.insertBefore(w,o.display.lineSpace.firstChild),v.value=pS.text.join(` +`);let y=rv();uX(v),setTimeout(()=>{o.display.lineSpace.removeChild(w),y.focus(),y==l&&r.showPrimarySelection()},50)}mo(l,"copy",d),mo(l,"cut",d)}screenReaderLabelChanged(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")}prepareSelection(){let n=Ntn(this.cm,!1);return n.focus=rv()==this.div,n}showSelection(n,r){!n||!this.cm.display.view.length||((n.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(n))}getSelection(){return this.cm.display.wrapper.ownerDocument.getSelection()}showPrimarySelection(){let n=this.getSelection(),r=this.cm,o=r.doc.sel.primary(),l=o.from(),u=o.to();if(r.display.viewTo==r.display.viewFrom||l.line>=r.display.viewTo||u.line=r.display.viewFrom&&fWt(r,l)||{node:w[0].measure.map[2],offset:0},y=u.line{this.gracePeriod=!1,this.selectionChanged()&&this.cm.operation(()=>this.cm.curOp.selectionChanged=!0)},20)}showMultipleSelections(n){im(this.cm.display.cursorDiv,n.cursors),im(this.cm.display.selectionDiv,n.selection)}rememberSelection(){let n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset}selectionInEditor(){let n=this.getSelection();if(!n.rangeCount)return!1;let r=n.getRangeAt(0).commonAncestorContainer;return kT(this.div,r)}focus(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||rv()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())}blur(){this.div.blur()}getField(){return this.div}supportsTouch(){return!0}receivedFocus(){let n=this;this.selectionInEditor()?this.pollSelection():x0(this.cm,()=>n.cm.curOp.selectionChanged=!0);function r(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)}selectionChanged(){let n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset}pollSelection(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;let n=this.getSelection(),r=this.cm;if(Ppe&&$pe&&this.cm.display.gutterSpecs.length&&Wor(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();let o=aue(r,n.anchorNode,n.anchorOffset),l=aue(r,n.focusNode,n.focusOffset);o&&l&&x0(r,()=>{zp(r.doc,xT(o,l),tk),(o.bad||l.bad)&&(r.curOp.selectionChanged=!0)})}pollContent(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);let n=this.cm,r=n.display,o=n.doc.sel.primary(),l=o.from(),u=o.to();if(l.ch==0&&l.line>n.firstLine()&&(l=ur(l.line-1,Bi(n.doc,l.line-1).length)),u.ch==Bi(n.doc,u.line).text.length&&u.liner.viewTo-1)return!1;let d,h,w;l.line==r.viewFrom||(d=xP(n,l.line))==0?(h=za(r.view[0].line),w=r.view[0].node):(h=za(r.view[d].line),w=r.view[d-1].node.nextSibling);let v=xP(n,u.line),y,E;if(v==r.view.length-1?(y=r.viewTo-1,E=r.lineDiv.lastChild):(y=za(r.view[v+1].line)-1,E=r.view[v+1].node.previousSibling),!w)return!1;let A=n.doc.splitLines(Hor(n,w,E,h,y)),C=tP(n.doc,ur(h,0),ur(y,Bi(n.doc,y).text.length));for(;A.length>1&&C.length>1;)if($a(A)==$a(C))A.pop(),C.pop(),y--;else if(A[0]==C[0])A.shift(),C.shift(),h++;else break;let R=0,O=0,M=A[0],L=C[0],H=Math.min(M.length,L.length);for(;Rl.ch&&G.charCodeAt(G.length-O-1)==j.charCodeAt(j.length-O-1);)R--,O++;A[A.length-1]=G.slice(0,G.length-O).replace(/^\u200b+/,""),A[0]=A[0].slice(R).replace(/\u200b+$/,"");let te=ur(h,R),pe=ur(y,C.length?$a(C).length-O:0);if(A.length>1||A[0]||ns(te,pe))return hj(n.doc,A,te,pe,"+input"),!0}ensurePolled(){this.forceCompositionEnd()}reset(){this.forceCompositionEnd()}forceCompositionEnd(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())}readFromDOMSoon(){this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(()=>{if(this.readDOMTimeout=null,this.composing)if(this.composing.done)this.composing=null;else return;this.updateFromDOM()},80))}updateFromDOM(){(this.cm.isReadOnly()||!this.pollContent())&&x0(this.cm,()=>o1(this.cm))}setUneditable(n){n.contentEditable="false"}onKeyPress(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||xh(this.cm,ZHe)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))}readOnlyChanged(n){this.div.contentEditable=String(n!="nocursor")}onContextMenu(){}resetPosition(){}},Bor=Rnn;Rnn.prototype.needsContentAttribute=!0;function fWt(n,r){let o=$He(n,r.line);if(!o||o.hidden)return null;let l=Bi(n.doc,r.line),u=Etn(o,l,r.line),d=Rx(l,n.doc.direction),h="left";d&&(h=dX(d,r.ch)%2?"right":"left");let w=xtn(u.map,r.ch,h);return w.offset=w.collapse=="right"?w.end:w.start,w}function Wor(n){for(let r=n;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function _D(n,r){return r&&(n.bad=!0),n}function Hor(n,r,o,l,u){let d="",h=!1,w=n.doc.lineSeparator(),v=!1;function y(R){return O=>O.id==R}function E(){h&&(d+=w,v&&(d+=w),h=v=!1)}function A(R){R&&(E(),d+=R)}function C(R){if(R.nodeType==1){let O=R.getAttribute("cm-text");if(O){A(O);return}let M=R.getAttribute("cm-marker"),L;if(M){let G=n.findMarks(ur(l,0),ur(u+1,0),y(+M));G.length&&(L=G[0].find(0))&&A(tP(n.doc,L.from,L.to).join(w));return}if(R.getAttribute("contenteditable")=="false")return;let H=/^(pre|div|p|li|table|br)$/i.test(R.nodeName);if(!/^br$/i.test(R.nodeName)&&R.textContent.length==0)return;H&&E();for(let G=0;G{ta&&Yc>=9&&this.hasSelection&&(this.hasSelection=null),r.poll()}),mo(l,"paste",d=>{kh(o,d)||vnn(d,o)||(o.state.pasteIncoming=+new Date,r.fastPoll())});function u(d){if(!kh(o,d)){if(o.somethingSelected())zde({lineWise:!1,text:o.getSelections()});else if(o.options.lineWiseCopyCut){let h=Snn(o);zde({lineWise:!0,text:h.text}),d.type=="cut"?o.setSelections(h.ranges,null,tk):(r.prevInput="",l.value=h.text.join(` +`),uX(l))}else return;d.type=="cut"&&(o.state.cutIncoming=+new Date)}}mo(l,"cut",u),mo(l,"copy",u),mo(n.scroller,"paste",d=>{if(ex(n,d)||kh(o,d))return;if(!l.dispatchEvent){o.state.pasteIncoming=+new Date,r.focus();return}const h=new Event("paste");h.clipboardData=d.clipboardData,l.dispatchEvent(h)}),mo(n.lineSpace,"selectstart",d=>{ex(n,d)||i1(d)}),mo(l,"compositionstart",()=>{let d=o.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:d,range:o.markText(d,o.getCursor("to"),{className:"CodeMirror-composing"})}}),mo(l,"compositionend",()=>{r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})}createField(n){this.wrapper=knn(),this.textarea=this.wrapper.firstChild}screenReaderLabelChanged(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")}prepareSelection(){let n=this.cm,r=n.display,o=n.doc,l=Ntn(n);if(n.options.moveInputWithCursor){let u=SS(n,o.sel.primary().head,"div"),d=r.wrapper.getBoundingClientRect(),h=r.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,u.top+h.top-d.top)),l.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,u.left+h.left-d.left))}return l}showSelection(n){let r=this.cm,o=r.display;im(o.cursorDiv,n.cursors),im(o.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")}reset(n){if(this.contextMenuPending||this.composing)return;let r=this.cm;if(r.somethingSelected()){this.prevInput="";let o=r.getSelection();this.textarea.value=o,r.state.focused&&uX(this.textarea),ta&&Yc>=9&&(this.hasSelection=o)}else n||(this.prevInput=this.textarea.value="",ta&&Yc>=9&&(this.hasSelection=null))}getField(){return this.textarea}supportsTouch(){return!1}focus(){if(this.cm.options.readOnly!="nocursor"&&(!cX||rv()!=this.textarea))try{this.textarea.focus()}catch{}}blur(){this.textarea.blur()}resetPosition(){this.wrapper.style.top=this.wrapper.style.left=0}receivedFocus(){this.slowPoll()}slowPoll(){this.pollingFast||this.polling.set(this.cm.options.pollInterval,()=>{this.poll(),this.cm.state.focused&&this.slowPoll()})}fastPoll(){let n=!1,r=this;r.pollingFast=!0;function o(){!r.poll()&&!n?(n=!0,r.polling.set(60,o)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,o)}poll(){let n=this.cm,r=this.textarea,o=this.prevInput;if(this.contextMenuPending||!n.state.focused||Drr(r)&&!o&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;let l=r.value;if(l==o&&!n.somethingSelected())return!1;if(ta&&Yc>=9&&this.hasSelection===l||sv&&/[\uf700-\uf7ff]/.test(l))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){let h=l.charCodeAt(0);if(h==8203&&!o&&(o="​"),h==8666)return this.reset(),this.cm.execCommand("undo")}let u=0,d=Math.min(o.length,l.length);for(;u{ZHe(n,l.slice(u),o.length-u,null,this.composing?"*compose":null),l.length>1e3||l.indexOf(` +`)>-1?r.value=this.prevInput="":this.prevInput=l,this.composing&&(this.composing.range.clear(),this.composing.range=n.markText(this.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0}ensurePolled(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)}onKeyPress(){ta&&Yc>=9&&(this.hasSelection=null),this.fastPoll()}onContextMenu(n){let r=this,o=r.cm,l=o.display,u=r.textarea;r.contextMenuPending&&r.contextMenuPending();let d=RP(o,n),h=l.scroller.scrollTop;if(!d||CS)return;o.options.resetSelectionOnContextMenu&&o.doc.sel.contains(d)==-1&&xh(o,zp)(o.doc,xT(d),tk);let v=u.style.cssText,y=r.wrapper.style.cssText,E=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px; + top: ${n.clientY-E.top-5}px; left: ${n.clientX-E.left-5}px; + z-index: 1000; background: ${ta?"rgba(255, 255, 255, .05)":"transparent"}; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;let A;Gb&&(A=window.scrollY),l.input.focus(),Gb&&window.scrollTo(null,A),l.input.reset(),o.somethingSelected()||(u.value=r.prevInput=" "),r.contextMenuPending=R,l.selForContextMenu=o.doc.sel,clearTimeout(l.detectingSelectAll);function C(){if(u.selectionStart!=null){let O=o.somethingSelected(),M="​"+(O?u.value:"");u.value="⇚",u.value=M,r.prevInput=O?"":"​",u.selectionStart=1,u.selectionEnd=M.length,l.selForContextMenu=o.doc.sel}}function R(){if(r.contextMenuPending==R&&(r.contextMenuPending=!1,r.wrapper.style.cssText=y,u.style.cssText=v,ta&&Yc<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=h),u.selectionStart!=null)){(!ta||ta&&Yc<9)&&C();let O=0,M=()=>{l.selForContextMenu==o.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&r.prevInput=="​"?xh(o,nnn)(o):O++<10?l.detectingSelectAll=setTimeout(M,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(M,200)}}if(ta&&Yc>=9&&C(),dHe){hX(n);let O=()=>{em(window,"mouseup",O),setTimeout(R,20)};mo(window,"mouseup",O)}else setTimeout(R,50)}readOnlyChanged(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n}setUneditable(){}},Gor=xnn;xnn.prototype.needsContentAttribute=!1;function Vor(n,r){if(r=r?kP(r):{},r.value=n.value,!r.tabindex&&n.tabIndex&&(r.tabindex=n.tabIndex),!r.placeholder&&n.placeholder&&(r.placeholder=n.placeholder),r.autofocus==null){let d=rv();r.autofocus=d==n||n.getAttribute("autofocus")!=null&&d==document.body}function o(){n.value=u.getValue()}let l;if(n.form&&(mo(n.form,"submit",o),!r.leaveSubmitMethodAlone)){let d=n.form;l=d.submit;try{let h=d.submit=()=>{o(),d.submit=l,d.submit(),d.submit=h}}catch{}}r.finishInit=d=>{d.save=o,d.getTextArea=()=>n,d.toTextArea=()=>{d.toTextArea=isNaN,o(),n.parentNode.removeChild(d.getWrapperElement()),n.style.display="",n.form&&(em(n.form,"submit",o),!r.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=l))}},n.style.display="none";let u=du(d=>n.parentNode.insertBefore(d,n.nextSibling),r);return u}function zor(n){n.off=em,n.on=mo,n.wheelEventPixels=Xir,n.Doc=nP,n.splitLines=wHe,n.countColumn=ev,n.findColumn=rje,n.isWordChar=ije,n.Pass=Ope,n.signal=vd,n.Line=gX,n.changeEnd=CT,n.scrollbarModel=Ftn,n.Pos=ur,n.cmpPos=ns,n.modes=mHe,n.mimeModes=jD,n.resolveMode=Lde,n.getMode=yHe,n.modeExtensions=tL,n.extendMode=Wrr,n.copyState=eP,n.startState=otn,n.innerMode=vHe,n.commands=SX,n.keyMap=VR,n.keyName=unn,n.isModifierKey=ann,n.lookupKey=rL,n.normalizeKeyMap=mor,n.StringStream=Mpe,n.SharedTextMarker=JHe,n.TextMarker=XHe,n.LineWidget=qHe,n.e_preventDefault=i1,n.e_stopPropagation=rtn,n.e_stop=hX,n.addClass=KP,n.contains=kT,n.rmClass=zP,n.keyNames=AT}Nor(du);For(du);var Kor="iter insert remove copy getEditor constructor".split(" ");for(let n in nP.prototype)nP.prototype.hasOwnProperty(n)&&qp(Kor,n)<0&&(du.prototype[n]=function(r){return function(){return r.apply(this.doc,arguments)}}(nP.prototype[n]));aj(nP);du.inputStyles={textarea:Gor,contenteditable:Bor};du.defineMode=function(n){!du.defaults.mode&&n!="null"&&(du.defaults.mode=n),Frr.apply(this,arguments)};du.defineMIME=Brr;du.defineMode("null",()=>({token:n=>n.skipToEnd()}));du.defineMIME("text/plain","null");du.defineExtension=(n,r)=>{du.prototype[n]=r};du.defineDocExtension=(n,r)=>{nP.prototype[n]=r};du.fromTextArea=Vor;zor(du);du.version="5.61.0";var Wfe=du;document.body.insertAdjacentHTML("beforeend",` + +`);self.CodeMirror=Wfe;var Sje=class extends HTMLElement{static get observedAttributes(){return["src","readonly","mode","theme"]}attributeChangedCallback(n,r,o){this.__initialized&&r!==o&&(n==="readonly"?this[n]=o!==null:this[n]=o)}get readonly(){return this.editor.getOption("readOnly")}set readonly(n){this.editor.setOption("readOnly",n)}get mode(){return this.editor.getOption("mode")}set mode(n){this.editor.setOption("mode",n)}get theme(){return this.editor.getOption("theme")}set theme(n){this.editor.setOption("theme",n)}get src(){return this.getAttribute("src")}set src(n){this.setAttribute("src",n),this.setSrc()}get value(){return this.editor.getValue()}set value(n){this.setValue(n)}constructor(){super(),this.__initialized=!1,this.__element=null,this.editor=null}async connectedCallback(){const n=document.createElement("template");n.innerHTML=Sje.template(),this.appendChild(n.content.cloneNode(!0)),this.style.display="block",this.__element=this.querySelector("textarea");const r=this.hasAttribute("mode")?this.getAttribute("mode"):"null",o=this.hasAttribute("theme")?this.getAttribute("theme"):"default";let l=this.getAttribute("readonly");l===""?l=!0:l!=="nocursor"&&(l=!1);let u="";const d=this.querySelector("script");d&&d.getAttribute("type")==="wc-content"&&(u=Sje.dedentText(d.innerHTML),u=u.replace(/<(\/?script)(.*?)>/g,"<$1$2>"));let h=Wfe.defaults.viewportMargin;if(this.hasAttribute("viewport-margin")){const w=this.getAttribute("viewport-margin").toLowerCase();h=w==="infinity"?1/0:parseInt(w)}this.editor=Wfe.fromTextArea(this.__element,{lineNumbers:!0,readOnly:l,mode:r,theme:o,viewportMargin:h}),this.hasAttribute("src")?this.setSrc(this.getAttribute("src")):(await new Promise(w=>setTimeout(w,50)),this.value=u),this.__initialized=!0}disconnectedCallback(){this.editor&&this.editor.toTextArea(),this.editor=null,this.__initialized=!1}async setSrc(){const n=this.getAttribute("src"),r=await this.fetchSrc(n);this.value=r}async setValue(n){this.editor.swapDoc(Wfe.Doc(n,this.getAttribute("mode"))),this.editor.refresh()}async fetchSrc(n){return(await fetch(n)).text()}static template(){return` + + `}static dedentText(n){const r=n.split(` +`);r[0]===""&&r.splice(0,1);const o=r[0];let l=0;const d=o[0]===" "?" ":" ";for(;o[l]===d;)l+=1;const h=[];for(const w of r){let v=w;for(let y=0;yn?M():r!==!0&&(u=setTimeout(l?L:M,l===void 0?n-O:n))}return y.cancel=v,y}function qor(n,r,o){return o===void 0?dWt(n,r,!1):dWt(n,o,r!==!1)}const M4=Symbol("Initial value"),aNe=Symbol("Editor dirty"),ER=Symbol("ParseHandler");function Xor(n){let l=0;return new Promise((u,d)=>{const h=setInterval(()=>{if(n()){clearInterval(h),u();return}l+=1,l===100&&(clearInterval(h),d(new Error("Value did not become truthy in time")))},10)})}class Jor extends sq{static get styles(){return rrr` + :host { + display: block; + text-align: left; + } + + [part='error'] { + text-decoration: underline; + text-decoration-color: red; + text-decoration-style: wavy; + } + + wc-codemirror, + #wrapper { + width: 100%; + height: 100%; + } + + :host(:not([ready])) #wrapper { + display: none; + } + `}static get properties(){return{value:{type:String,noAccessor:!0},readonly:{type:Boolean,reflect:!0},prefixes:{type:String,attribute:"prefixes"},isParsing:{type:Boolean,attribute:"is-parsing",reflect:!0},autoParse:{type:Boolean,attribute:"auto-parse"},parseDelay:{type:Number},customPrefixes:{type:Object}}}constructor(){super(),this.parseDelay=250,this[M4]="",this.customPrefixes={},navigator.onLine&&(this.__style=document.createElement("link"),this.__style.rel="stylesheet",this.__style.href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.61.1/codemirror.min.css")}connectedCallback(){const r=new Promise(o=>{this.__style.onload=o});super.connectedCallback(),this.ready=Promise.resolve().then(async()=>{await r,await this.requestUpdate(),await Xor(()=>this.codeMirror&&this.codeMirror.editor&&this.codeMirror.__initialized),await this._initializeCodeMirror(),[...this.renderRoot.querySelectorAll("[class^=CodeMirror]")].forEach(o=>{o.classList.forEach(l=>{l.match(/^CodeMirror/)&&o.setAttribute("part",l)})}),this.setAttribute("ready",""),this.codeMirror.editor.refresh(),this[M4]&&this.codeMirror.editor.setValue(this[M4])})}get _prefixes(){return async()=>(this.prefixes||"").split(",").map(o=>o.trim()).reduce((o,l)=>l in mde?{...o,[l]:mde[l]().value}:o,{})}get codeMirror(){return this.renderRoot.querySelector("wc-codemirror")}get value(){return this.hasAttribute("ready")?this.codeMirror.editor.getValue():this[M4]||""}set value(r){typeof r=="string"&&(this.hasAttribute("ready")?this.value!==r&&(this.codeMirror.editor.setValue(r),this[ER]()):this[M4]=r)}async firstUpdated(r){super.firstUpdated(r),this[M4]&&(await this.ready,this.codeMirror.editor.setValue(this[M4]),this[ER](),this[M4]=void 0)}updated(r){super.updated(r),(r.has("autoParse")||r.has("parseDelay"))&&this.__setParseHandler()}render(){return brr`${this.__style} +
+ + +
`}async parse(){if(!this.isParsing){this.__errorMarker&&this.__errorMarker.clear(),this.isParsing=!0;try{await this._parse()}catch(r){typeof this._errorLine=="function"&&await this.__highlightError(this._errorLine(r)),this.dispatchEvent(new CustomEvent("parsing-failed",{detail:{error:r}}))}finally{this.isParsing=!1}}}async _initializeCodeMirror(){this.codeMirror.editor.setSize("100%","100%"),this.__setParseHandler(),this.codeMirror.editor.on("change",()=>{this[aNe]=!0})}__setParseHandler(){this.codeMirror.editor&&(this[ER]&&(this.codeMirror.editor.off("blur",this[ER]),this.codeMirror.editor.off("change",this[ER])),this.autoParse?(this[ER]=qor(this.parseDelay,this.__beginParse.bind(this)),this.codeMirror.editor.on("change",this[ER])):(this[ER]=this.__beginParse.bind(this),this.codeMirror.editor.on("blur",this[ER])))}async __beginParse(){this[aNe]&&await this.parse(),this[aNe]=!1}async __highlightError(r){if(!this.ready)return;let o={line:0,ch:0},l={line:0,ch:Number.MAX_SAFE_INTEGER};r&&r.from&&(o=r.from,this.codeMirror.editor.scrollIntoView(o)),r&&r.to&&(l=r.to);const u=r?r.message:"";await this.ready,this.__errorMarker=this.codeMirror.editor.getDoc().markText(o,l,{attributes:{part:"error",title:u}})}async _combinePrefixes(){return Object.entries(this.customPrefixes).reduce((r,[o,l])=>!l||!o||typeof l!="string"||typeof o!="string"?r:{...r,[o]:l},await this._prefixes())}}window.CodeMirror.defineMode("javascript",function(n,r){var o=n.indentUnit,l=r.statementIndent,u=r.jsonld,d=r.json||u,h=r.typescript,w=r.wordCharacters||/[\w$\xa1-\uffff]/,v=function(){function We(Th){return{type:Th,style:"keyword"}}var bt=We("keyword a"),Mn=We("keyword b"),yr=We("keyword c"),Wo=We("keyword d"),el=We("operator"),Pa={type:"atom",style:"atom"};return{if:We("if"),while:bt,with:bt,else:Mn,do:Mn,try:Mn,finally:Mn,return:Wo,break:Wo,continue:Wo,new:We("new"),delete:yr,void:yr,throw:yr,debugger:We("debugger"),var:We("var"),const:We("var"),let:We("var"),function:We("function"),catch:We("catch"),for:We("for"),switch:We("switch"),case:We("case"),default:We("default"),in:el,typeof:el,instanceof:el,true:Pa,false:Pa,null:Pa,undefined:Pa,NaN:Pa,Infinity:Pa,this:We("this"),class:We("class"),super:We("atom"),yield:yr,export:We("export"),import:We("import"),extends:yr,await:yr}}(),y=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(We){for(var bt=!1,Mn,yr=!1;(Mn=We.next())!=null;){if(!bt){if(Mn=="/"&&!yr)return;Mn=="["?yr=!0:yr&&Mn=="]"&&(yr=!1)}bt=!bt&&Mn=="\\"}}var C,R;function O(We,bt,Mn){return C=We,R=Mn,bt}function M(We,bt){var Mn=We.next();if(Mn=='"'||Mn=="'")return bt.tokenize=L(Mn),bt.tokenize(We,bt);if(Mn=="."&&We.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return O("number","number");if(Mn=="."&&We.match(".."))return O("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Mn))return O(Mn);if(Mn=="="&&We.eat(">"))return O("=>","operator");if(Mn=="0"&&We.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return O("number","number");if(/\d/.test(Mn))return We.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),O("number","number");if(Mn=="/")return We.eat("*")?(bt.tokenize=H,H(We,bt)):We.eat("/")?(We.skipToEnd(),O("comment","comment")):Lj(We,bt,1)?(A(We),We.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),O("regexp","string-2")):(We.eat("="),O("operator","operator",We.current()));if(Mn=="`")return bt.tokenize=G,G(We,bt);if(Mn=="#")return We.skipToEnd(),O("error","error");if(Mn=="<"&&We.match("!--")||Mn=="-"&&We.match("->"))return We.skipToEnd(),O("comment","comment");if(y.test(Mn))return(Mn!=">"||!bt.lexical||bt.lexical.type!=">")&&(We.eat("=")?(Mn=="!"||Mn=="=")&&We.eat("="):/[<>*+\-]/.test(Mn)&&(We.eat(Mn),Mn==">"&&We.eat(Mn))),O("operator","operator",We.current());if(w.test(Mn)){We.eatWhile(w);var yr=We.current();if(bt.lastType!="."){if(v.propertyIsEnumerable(yr)){var Wo=v[yr];return O(Wo.type,Wo.style,yr)}if(yr=="async"&&We.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return O("async","keyword",yr)}return O("variable","variable",yr)}}function L(We){return function(bt,Mn){var yr=!1,Wo;if(u&&bt.peek()=="@"&&bt.match(E))return Mn.tokenize=M,O("jsonld-keyword","meta");for(;(Wo=bt.next())!=null&&!(Wo==We&&!yr);)yr=!yr&&Wo=="\\";return yr||(Mn.tokenize=M),O("string","string")}}function H(We,bt){for(var Mn=!1,yr;yr=We.next();){if(yr=="/"&&Mn){bt.tokenize=M;break}Mn=yr=="*"}return O("comment","comment")}function G(We,bt){for(var Mn=!1,yr;(yr=We.next())!=null;){if(!Mn&&(yr=="`"||yr=="$"&&We.eat("{"))){bt.tokenize=M;break}Mn=!Mn&&yr=="\\"}return O("quasi","string-2",We.current())}var j="([{}])";function Q(We,bt){bt.fatArrowAt&&(bt.fatArrowAt=null);var Mn=We.string.indexOf("=>",We.start);if(!(Mn<0)){if(h){var yr=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(We.string.slice(We.start,Mn));yr&&(Mn=yr.index)}for(var Wo=0,el=!1,Pa=Mn-1;Pa>=0;--Pa){var Th=We.string.charAt(Pa),j0=j.indexOf(Th);if(j0>=0&&j0<3){if(!Wo){++Pa;break}if(--Wo==0){Th=="("&&(el=!0);break}}else if(j0>=3&&j0<6)++Wo;else if(w.test(Th))el=!0;else if(/["'\/`]/.test(Th))for(;;--Pa){if(Pa==0)return;var zJ=We.string.charAt(Pa-1);if(zJ==Th&&We.string.charAt(Pa-2)!="\\"){Pa--;break}}else if(el&&!Wo){++Pa;break}}el&&!Wo&&(bt.fatArrowAt=Pa)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function pe(We,bt,Mn,yr,Wo,el){this.indented=We,this.column=bt,this.type=Mn,this.prev=Wo,this.info=el,yr!=null&&(this.align=yr)}function Le(We,bt){for(var Mn=We.localVars;Mn;Mn=Mn.next)if(Mn.name==bt)return!0;for(var yr=We.context;yr;yr=yr.prev)for(var Mn=yr.vars;Mn;Mn=Mn.next)if(Mn.name==bt)return!0}function Ee(We,bt,Mn,yr,Wo){var el=We.cc;for(le.state=We,le.stream=Wo,le.marked=null,le.cc=el,le.style=bt,We.lexical.hasOwnProperty("align")||(We.lexical.align=!0);;){var Pa=el.length?el.pop():d?Ye:ct;if(Pa(Mn,yr)){for(;el.length&&el[el.length-1].lex;)el.pop()();return le.marked?le.marked:Mn=="variable"&&Le(We,yr)?"variable-2":bt}}}var le={state:null,column:null,marked:null,cc:null};function xe(){for(var We=arguments.length-1;We>=0;We--)le.cc.push(arguments[We])}function be(){return xe.apply(null,arguments),!0}function ae(We,bt){for(var Mn=bt;Mn;Mn=Mn.next)if(Mn.name==We)return!0;return!1}function F(We){var bt=le.state;if(le.marked="def",bt.context){if(bt.lexical.info=="var"&&bt.context&&bt.context.block){var Mn=me(We,bt.context);if(Mn!=null){bt.context=Mn;return}}else if(!ae(We,bt.localVars)){bt.localVars=new Be(We,bt.localVars);return}}r.globalVars&&!ae(We,bt.globalVars)&&(bt.globalVars=new Be(We,bt.globalVars))}function me(We,bt){if(bt)if(bt.block){var Mn=me(We,bt.prev);return Mn?Mn==bt.prev?bt:new we(Mn,bt.vars,!0):null}else return ae(We,bt.vars)?bt:new we(bt.prev,new Be(We,bt.vars),!1);else return null}function ye(We){return We=="public"||We=="private"||We=="protected"||We=="abstract"||We=="readonly"}function we(We,bt,Mn){this.prev=We,this.vars=bt,this.block=Mn}function Be(We,bt){this.name=We,this.next=bt}var He=new Be("this",new Be("arguments",null));function Ue(){le.state.context=new we(le.state.context,le.state.localVars,!1),le.state.localVars=He}function Ge(){le.state.context=new we(le.state.context,le.state.localVars,!0),le.state.localVars=null}function Me(){le.state.localVars=le.state.context.vars,le.state.context=le.state.context.prev}Me.lex=!0;function vt(We,bt){var Mn=function(){var yr=le.state,Wo=yr.indented;if(yr.lexical.type=="stat")Wo=yr.lexical.indented;else for(var el=yr.lexical;el&&el.type==")"&&el.align;el=el.prev)Wo=el.indented;yr.lexical=new pe(Wo,le.stream.column(),We,null,yr.lexical,bt)};return Mn.lex=!0,Mn}function re(){var We=le.state;We.lexical.prev&&(We.lexical.type==")"&&(We.indented=We.lexical.indented),We.lexical=We.lexical.prev)}re.lex=!0;function Te(We){function bt(Mn){return Mn==We?be():We==";"||Mn=="}"||Mn==")"||Mn=="]"?xe():be(bt)}return bt}function ct(We,bt){return We=="var"?be(vt("vardef",bt),Al,Te(";"),re):We=="keyword a"?be(vt("form"),jt,ct,re):We=="keyword b"?be(vt("form"),ct,re):We=="keyword d"?le.stream.match(/^\s*$/,!1)?be():be(vt("stat"),Pe,Te(";"),re):We=="debugger"?be(Te(";")):We=="{"?be(vt("}"),Ge,ce,re,Me):We==";"?be():We=="if"?(le.state.lexical.info=="else"&&le.state.cc[le.state.cc.length-1]==re&&le.state.cc.pop()(),be(vt("form"),jt,ct,re,S)):We=="function"?be(ue):We=="for"?be(vt("form"),x,ct,re):We=="class"||h&&bt=="interface"?(le.marked="keyword",be(vt("form",We=="class"?We:bt),Hl,re)):We=="variable"?h&&bt=="declare"?(le.marked="keyword",be(ct)):h&&(bt=="module"||bt=="enum"||bt=="type")&&le.stream.match(/^\s*\w/,!1)?(le.marked="keyword",bt=="enum"?be(XT):bt=="type"?be(An,Te("operator"),Zt,Te(";")):be(vt("form"),co,Te("{"),vt("}"),ce,re,re)):h&&bt=="namespace"?(le.marked="keyword",be(vt("form"),Ye,ct,re)):h&&bt=="abstract"?(le.marked="keyword",be(ct)):be(vt("stat"),St):We=="switch"?be(vt("form"),jt,Te("{"),vt("}","switch"),Ge,ce,re,re,Me):We=="case"?be(Ye,Te(":")):We=="default"?be(Te(":")):We=="catch"?be(vt("form"),Ue,at,ct,re,Me):We=="export"?be(vt("stat"),gs,re):We=="import"?be(vt("stat"),ws,re):We=="async"?be(ct):bt=="@"?be(Ye,ct):xe(vt("stat"),Ye,Te(";"),re)}function at(We){if(We=="(")return be(Ws,Te(")"))}function Ye(We,bt){return rn(We,bt,!1)}function mt(We,bt){return rn(We,bt,!0)}function jt(We){return We!="("?xe():be(vt(")"),Ye,Te(")"),re)}function rn(We,bt,Mn){if(le.state.fatArrowAt==le.stream.start){var yr=Mn?q:K;if(We=="(")return be(Ue,vt(")"),Gn(Ws,")"),re,Te("=>"),yr,Me);if(We=="variable")return xe(Ue,co,Te("=>"),yr,Me)}var Wo=Mn?T:Oe;return te.hasOwnProperty(We)?be(Wo):We=="function"?be(ue,Wo):We=="class"||h&&bt=="interface"?(le.marked="keyword",be(vt("form"),Fr,re)):We=="keyword c"||We=="async"?be(Mn?mt:Ye):We=="("?be(vt(")"),Pe,Te(")"),re,Wo):We=="operator"||We=="spread"?be(Mn?mt:Ye):We=="["?be(vt("]"),VJ,re,Wo):We=="{"?$e(zt,"}",null,Wo):We=="quasi"?xe($,Wo):We=="new"?be(ke(Mn)):We=="import"?be(Ye):be()}function Pe(We){return We.match(/[;\}\)\],]/)?xe():xe(Ye)}function Oe(We,bt){return We==","?be(Ye):T(We,bt,!1)}function T(We,bt,Mn){var yr=Mn==!1?Oe:T,Wo=Mn==!1?Ye:mt;if(We=="=>")return be(Ue,Mn?q:K,Me);if(We=="operator")return/\+\+|--/.test(bt)||h&&bt=="!"?be(yr):h&&bt=="<"&&le.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?be(vt(">"),Gn(Zt,">"),re,yr):bt=="?"?be(Ye,Te(":"),Wo):be(Wo);if(We=="quasi")return xe($,yr);if(We!=";"){if(We=="(")return $e(mt,")","call",yr);if(We==".")return be(he,yr);if(We=="[")return be(vt("]"),Pe,Te("]"),re,yr);if(h&&bt=="as")return le.marked="keyword",be(Zt,yr);if(We=="regexp")return le.state.lastType=le.marked="operator",le.stream.backUp(le.stream.pos-le.stream.start-1),be(Wo)}}function $(We,bt){return We!="quasi"?xe():bt.slice(bt.length-2)!="${"?be($):be(Ye,B)}function B(We){if(We=="}")return le.marked="string-2",le.state.tokenize=G,be($)}function K(We){return Q(le.stream,le.state),xe(We=="{"?ct:Ye)}function q(We){return Q(le.stream,le.state),xe(We=="{"?ct:mt)}function ke(We){return function(bt){return bt=="."?be(We?Ie:Re):bt=="variable"&&h?be(xi,We?T:Oe):xe(We?mt:Ye)}}function Re(We,bt){if(bt=="target")return le.marked="keyword",be(Oe)}function Ie(We,bt){if(bt=="target")return le.marked="keyword",be(T)}function St(We){return We==":"?be(re,ct):xe(Oe,Te(";"),re)}function he(We){if(We=="variable")return le.marked="property",be()}function zt(We,bt){if(We=="async")return le.marked="property",be(zt);if(We=="variable"||le.style=="keyword"){if(le.marked="property",bt=="get"||bt=="set")return be(Qt);var Mn;return h&&le.state.fatArrowAt==le.stream.start&&(Mn=le.stream.match(/^\s*:\s*/,!1))&&(le.state.fatArrowAt=le.stream.pos+Mn[0].length),be($n)}else{if(We=="number"||We=="string")return le.marked=u?"property":le.style+" property",be($n);if(We=="jsonld-keyword")return be($n);if(h&&ye(bt))return le.marked="keyword",be(zt);if(We=="[")return be(Ye,de,Te("]"),$n);if(We=="spread")return be(mt,$n);if(bt=="*")return le.marked="keyword",be(zt);if(We==":")return xe($n)}}function Qt(We){return We!="variable"?xe($n):(le.marked="property",be(ue))}function $n(We){if(We==":")return be(mt);if(We=="(")return xe(ue)}function Gn(We,bt,Mn){function yr(Wo,el){if(Mn?Mn.indexOf(Wo)>-1:Wo==","){var Pa=le.state.lexical;return Pa.info=="call"&&(Pa.pos=(Pa.pos||0)+1),be(function(Th,j0){return Th==bt||j0==bt?xe():xe(We)},yr)}return Wo==bt||el==bt?be():Mn&&Mn.indexOf(";")>-1?xe(We):be(Te(bt))}return function(Wo,el){return Wo==bt||el==bt?be():xe(We,yr)}}function $e(We,bt,Mn){for(var yr=3;yr"),Zt)}function qr(We){if(We=="=>")return be(Zt)}function ao(We,bt){if(We=="variable"||le.style=="keyword")return le.marked="property",be(ao);if(bt=="?"||We=="number"||We=="string")return be(ao);if(We==":")return be(Zt);if(We=="[")return be(Te("variable"),et,Te("]"),ao);if(We=="(")return xe(Yt,ao)}function ki(We,bt){return We=="variable"&&le.stream.match(/^\s*[?:]/,!1)||bt=="?"?be(ki):We==":"?be(Zt):We=="spread"?be(ki):xe(Zt)}function Ri(We,bt){if(bt=="<")return be(vt(">"),Gn(Zt,">"),re,Ri);if(bt=="|"||We=="."||bt=="&")return be(Zt);if(We=="[")return be(Zt,Te("]"),Ri);if(bt=="extends"||bt=="implements")return le.marked="keyword",be(Zt);if(bt=="?")return be(Zt,Te(":"),Zt)}function xi(We,bt){if(bt=="<")return be(vt(">"),Gn(Zt,">"),re,Ri)}function wl(){return xe(Zt,pu)}function pu(We,bt){if(bt=="=")return be(Zt)}function Al(We,bt){return bt=="enum"?(le.marked="keyword",be(XT)):xe(co,de,So,ql)}function co(We,bt){if(h&&ye(bt))return le.marked="keyword",be(co);if(We=="variable")return F(bt),be();if(We=="spread")return be(co);if(We=="[")return $e(bu,"]");if(We=="{")return $e(Zc,"}")}function Zc(We,bt){return We=="variable"&&!le.stream.match(/^\s*:/,!1)?(F(bt),be(So)):(We=="variable"&&(le.marked="property"),We=="spread"?be(co):We=="}"?xe():We=="["?be(Ye,Te("]"),Te(":"),Zc):be(Te(":"),co,So))}function bu(){return xe(co,So)}function So(We,bt){if(bt=="=")return be(mt)}function ql(We){if(We==",")return be(Al)}function S(We,bt){if(We=="keyword b"&&bt=="else")return be(vt("form","else"),ct,re)}function x(We,bt){if(bt=="await")return be(x);if(We=="(")return be(vt(")"),Y,re)}function Y(We){return We=="var"?be(Al,J):We=="variable"?be(J):xe(J)}function J(We,bt){return We==")"?be():We==";"?be(J):bt=="in"||bt=="of"?(le.marked="keyword",be(Ye,J)):xe(Ye,J)}function ue(We,bt){if(bt=="*")return le.marked="keyword",be(ue);if(We=="variable")return F(bt),be(ue);if(We=="(")return be(Ue,vt(")"),Gn(Ws,")"),re,ht,ct,Me);if(h&&bt=="<")return be(vt(">"),Gn(wl,">"),re,ue)}function Yt(We,bt){if(bt=="*")return le.marked="keyword",be(Yt);if(We=="variable")return F(bt),be(Yt);if(We=="(")return be(Ue,vt(")"),Gn(Ws,")"),re,ht,Me);if(h&&bt=="<")return be(vt(">"),Gn(wl,">"),re,Yt)}function An(We,bt){if(We=="keyword"||We=="variable")return le.marked="type",be(An);if(bt=="<")return be(vt(">"),Gn(wl,">"),re)}function Ws(We,bt){return bt=="@"&&be(Ye,Ws),We=="spread"?be(Ws):h&&ye(bt)?(le.marked="keyword",be(Ws)):h&&We=="this"?be(de,So):xe(co,de,So)}function Fr(We,bt){return We=="variable"?Hl(We,bt):Ec(We,bt)}function Hl(We,bt){if(We=="variable")return F(bt),be(Ec)}function Ec(We,bt){if(bt=="<")return be(vt(">"),Gn(wl,">"),re,Ec);if(bt=="extends"||bt=="implements"||h&&We==",")return bt=="implements"&&(le.marked="keyword"),be(h?Zt:Ye,Ec);if(We=="{")return be(vt("}"),Rs,re)}function Rs(We,bt){if(We=="async"||We=="variable"&&(bt=="static"||bt=="get"||bt=="set"||h&&ye(bt))&&le.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return le.marked="keyword",be(Rs);if(We=="variable"||le.style=="keyword")return le.marked="property",be(h?ml:ue,Rs);if(We=="number"||We=="string")return be(h?ml:ue,Rs);if(We=="[")return be(Ye,de,Te("]"),h?ml:ue,Rs);if(bt=="*")return le.marked="keyword",be(Rs);if(h&&We=="(")return xe(Yt,Rs);if(We==";"||We==",")return be(Rs);if(We=="}")return be();if(bt=="@")return be(Ye,Rs)}function ml(We,bt){if(bt=="?")return be(ml);if(We==":")return be(Zt,So);if(bt=="=")return be(mt);var Mn=le.state.lexical.prev,yr=Mn&&Mn.info=="interface";return xe(yr?Yt:ue)}function gs(We,bt){return bt=="*"?(le.marked="keyword",be(TO,Te(";"))):bt=="default"?(le.marked="keyword",be(Ye,Te(";"))):We=="{"?be(Gn(as,"}"),TO,Te(";")):xe(ct)}function as(We,bt){if(bt=="as")return le.marked="keyword",be(Te("variable"));if(We=="variable")return xe(mt,as)}function ws(We){return We=="string"?be():We=="("?xe(Ye):xe(wi,jr,TO)}function wi(We,bt){return We=="{"?$e(wi,"}"):(We=="variable"&&F(bt),bt=="*"&&(le.marked="keyword"),be(lr))}function jr(We){if(We==",")return be(wi,jr)}function lr(We,bt){if(bt=="as")return le.marked="keyword",be(wi)}function TO(We,bt){if(bt=="from")return le.marked="keyword",be(Ye)}function VJ(We){return We=="]"?be():xe(Gn(mt,"]"))}function XT(){return xe(vt("form"),co,Te("{"),vt("}"),Gn($O,"}"),re,re)}function $O(){return xe(co,So)}function JT(We,bt){return We.lastType=="operator"||We.lastType==","||y.test(bt.charAt(0))||/[,.]/.test(bt.charAt(0))}function Lj(We,bt,Mn){return bt.tokenize==M&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(bt.lastType)||bt.lastType=="quasi"&&/\{\s*$/.test(We.string.slice(0,We.pos-(Mn||0)))}return{startState:function(We){var bt={tokenize:M,lastType:"sof",cc:[],lexical:new pe((We||0)-o,0,"block",!1),localVars:r.localVars,context:r.localVars&&new we(null,null,!1),indented:We||0};return r.globalVars&&typeof r.globalVars=="object"&&(bt.globalVars=r.globalVars),bt},token:function(We,bt){if(We.sol()&&(bt.lexical.hasOwnProperty("align")||(bt.lexical.align=!1),bt.indented=We.indentation(),Q(We,bt)),bt.tokenize!=H&&We.eatSpace())return null;var Mn=bt.tokenize(We,bt);return C=="comment"?Mn:(bt.lastType=C=="operator"&&(R=="++"||R=="--")?"incdec":C,Ee(bt,Mn,C,R,We))},indent:function(We,bt){if(We.tokenize==H)return CodeMirror.Pass;if(We.tokenize!=M)return 0;var Mn=bt&&bt.charAt(0),yr=We.lexical,Wo;if(!/^\s*else\b/.test(bt))for(var el=We.cc.length-1;el>=0;--el){var Pa=We.cc[el];if(Pa==re)yr=yr.prev;else if(Pa!=S)break}for(;(yr.type=="stat"||yr.type=="form")&&(Mn=="}"||(Wo=We.cc[We.cc.length-1])&&(Wo==Oe||Wo==T)&&!/^[,\.=+\-*:?[\(]/.test(bt));)yr=yr.prev;l&&yr.type==")"&&yr.prev.type=="stat"&&(yr=yr.prev);var Th=yr.type,j0=Mn==Th;return Th=="vardef"?yr.indented+(We.lastType=="operator"||We.lastType==","?yr.info.length+1:0):Th=="form"&&Mn=="{"?yr.indented:Th=="form"?yr.indented+o:Th=="stat"?yr.indented+(JT(We,bt)?l||o:0):yr.info=="switch"&&!j0&&r.doubleIndentSwitch!=!1?yr.indented+(/^(?:case|default)\b/.test(bt)?o:2*o):yr.align?yr.column+(j0?0:1):yr.indented+(j0?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:u,jsonMode:d,expressionAllowed:Lj,skipExpression:function(We){var bt=We.cc[We.cc.length-1];(bt==Ye||bt==mt)&&We.cc.pop()}}});CodeMirror.registerHelper("wordChars","javascript",/[\w$]/);CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/x-javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:!0});CodeMirror.defineMIME("application/x-json",{name:"javascript",json:!0});CodeMirror.defineMIME("application/ld+json",{name:"javascript",jsonld:!0});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:!0});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:!0});window.CodeMirror.defineMode("turtle",function(n){var r=n.indentUnit,o;function l(E){return new RegExp("^(?:"+E.join("|")+")$","i")}l([]);var u=l(["@prefix","@base","a"]),d=/[*+\-<>=&|]/;function h(E,A){var C=E.next();if(o=null,C=="<"&&!E.match(/^[\s\u00a0=]/,!1))return E.match(/^[^\s\u00a0>]*>?/),"atom";if(C=='"'||C=="'")return A.tokenize=w(C),A.tokenize(E,A);if(/[{}\(\),\.;\[\]]/.test(C))return o=C,null;if(C=="#")return E.skipToEnd(),"comment";if(d.test(C))return E.eatWhile(d),null;if(C==":")return"operator";if(E.eatWhile(/[_\w\d]/),E.peek()==":")return"variable-3";var R=E.current();return u.test(R)?"meta":C>="A"&&C<="Z"?"comment":"keyword";var R=E.current()}function w(E){return function(A,C){for(var R=!1,O;(O=A.next())!=null;){if(O==E&&!R){C.tokenize=h;break}R=!R&&O=="\\"}return"string"}}function v(E,A,C){E.context={prev:E.context,indent:E.indent,col:C,type:A}}function y(E){E.indent=E.context.indent,E.context=E.context.prev}return{startState:function(){return{tokenize:h,context:null,indent:0,col:0}},token:function(E,A){if(E.sol()&&(A.context&&A.context.align==null&&(A.context.align=!1),A.indent=E.indentation()),E.eatSpace())return null;var C=A.tokenize(E,A);if(C!="comment"&&A.context&&A.context.align==null&&A.context.type!="pattern"&&(A.context.align=!0),o=="(")v(A,")",E.column());else if(o=="[")v(A,"]",E.column());else if(o=="{")v(A,"}",E.column());else if(/[\]\}\)]/.test(o)){for(;A.context&&A.context.type=="pattern";)y(A);A.context&&o==A.context.type&&y(A)}else o=="."&&A.context&&A.context.type=="pattern"?y(A):/atom|string|variable/.test(C)&&A.context&&(/[\}\]]/.test(A.context.type)?v(A,"pattern",E.column()):A.context.type=="pattern"&&!A.context.align&&(A.context.align=!0,A.context.col=E.column()));return C},indent:function(E,A){var C=A&&A.charAt(0),R=E.context;if(/[\]\}]/.test(C))for(;R&&R.type=="pattern";)R=R.prev;var O=R&&C==R.type;return R?R.type=="pattern"?R.col:R.align?R.col+(O?0:1):R.indent+(O?0:r):0},lineComment:"#"}});CodeMirror.defineMIME("text/turtle","turtle");CodeMirror.defineMIME("text/n3","turtle");CodeMirror.defineMIME("application/trig","turtle");window.CodeMirror.defineMode("ntriples",function(){var n={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function r(o,l){var u=o.location,d;u==n.PRE_SUBJECT&&l=="<"?d=n.WRITING_SUB_URI:u==n.PRE_SUBJECT&&l=="_"?d=n.WRITING_BNODE_URI:u==n.PRE_PRED&&l=="<"?d=n.WRITING_PRED_URI:u==n.PRE_OBJ&&l=="<"?d=n.WRITING_OBJ_URI:u==n.PRE_OBJ&&l=="_"?d=n.WRITING_OBJ_BNODE:u==n.PRE_OBJ&&l=='"'?d=n.WRITING_OBJ_LITERAL:u==n.WRITING_SUB_URI&&l==">"||u==n.WRITING_BNODE_URI&&l==" "?d=n.PRE_PRED:u==n.WRITING_PRED_URI&&l==">"?d=n.PRE_OBJ:u==n.WRITING_OBJ_URI&&l==">"||u==n.WRITING_OBJ_BNODE&&l==" "||u==n.WRITING_OBJ_LITERAL&&l=='"'||u==n.WRITING_LIT_LANG&&l==" "||u==n.WRITING_LIT_TYPE&&l==">"?d=n.POST_OBJ:u==n.WRITING_OBJ_LITERAL&&l=="@"?d=n.WRITING_LIT_LANG:u==n.WRITING_OBJ_LITERAL&&l=="^"?d=n.WRITING_LIT_TYPE:l==" "&&(u==n.PRE_SUBJECT||u==n.PRE_PRED||u==n.PRE_OBJ||u==n.POST_OBJ)?d=u:u==n.POST_OBJ&&l=="."?d=n.PRE_SUBJECT:d=n.ERROR,o.location=d}return{startState:function(){return{location:n.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(o,l){var u=o.next();if(u=="<"){r(l,u);var d="";return o.eatWhile(function(E){return E!="#"&&E!=">"?(d+=E,!0):!1}),l.uris.push(d),o.match("#",!1)||(o.next(),r(l,">")),"variable"}if(u=="#"){var h="";return o.eatWhile(function(E){return E!=">"&&E!=" "?(h+=E,!0):!1}),l.anchors.push(h),"variable-2"}if(u==">")return r(l,">"),"variable";if(u=="_"){r(l,u);var w="";return o.eatWhile(function(E){return E!=" "?(w+=E,!0):!1}),l.bnodes.push(w),o.next(),r(l," "),"builtin"}if(u=='"')return r(l,u),o.eatWhile(function(E){return E!='"'}),o.next(),o.peek()!="@"&&o.peek()!="^"&&r(l,'"'),"string";if(u=="@"){r(l,"@");var v="";return o.eatWhile(function(E){return E!=" "?(v+=E,!0):!1}),l.langs.push(v),o.next(),r(l," "),"string-2"}if(u=="^"){o.next(),r(l,"^");var y="";return o.eatWhile(function(E){return E!=">"?(y+=E,!0):!1}),l.types.push(y),o.next(),r(l,">"),"variable"}u==" "&&r(l,u),u=="."&&r(l,u)}}});CodeMirror.defineMIME("application/n-triples","ntriples");CodeMirror.defineMIME("application/n-quads","ntriples");CodeMirror.defineMIME("text/n-triples","ntriples");var Yor={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Qor={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};window.CodeMirror.defineMode("xml",function(n,r){var o=n.indentUnit,l={},u=r.htmlMode?Yor:Qor;for(var d in u)l[d]=u[d];for(var d in r)l[d]=r[d];var h,w;function v(le,xe){function be(me){return xe.tokenize=me,me(le,xe)}var ae=le.next();if(ae=="<")return le.eat("!")?le.eat("[")?le.match("CDATA[")?be(A("atom","]]>")):null:le.match("--")?be(A("comment","-->")):le.match("DOCTYPE",!0,!0)?(le.eatWhile(/[\w\._\-]/),be(C(1))):null:le.eat("?")?(le.eatWhile(/[\w\._\-]/),xe.tokenize=A("meta","?>"),"meta"):(h=le.eat("/")?"closeTag":"openTag",xe.tokenize=y,"tag bracket");if(ae=="&"){var F;return le.eat("#")?le.eat("x")?F=le.eatWhile(/[a-fA-F\d]/)&&le.eat(";"):F=le.eatWhile(/[\d]/)&&le.eat(";"):F=le.eatWhile(/[\w\.\-:]/)&&le.eat(";"),F?"atom":"error"}else return le.eatWhile(/[^&<]/),null}v.isInText=!0;function y(le,xe){var be=le.next();if(be==">"||be=="/"&&le.eat(">"))return xe.tokenize=v,h=be==">"?"endTag":"selfcloseTag","tag bracket";if(be=="=")return h="equals",null;if(be=="<"){xe.tokenize=v,xe.state=L,xe.tagName=xe.tagStart=null;var ae=xe.tokenize(le,xe);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(be)?(xe.tokenize=E(be),xe.stringStartCol=le.column(),xe.tokenize(le,xe)):(le.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function E(le){var xe=function(be,ae){for(;!be.eol();)if(be.next()==le){ae.tokenize=y;break}return"string"};return xe.isInAttribute=!0,xe}function A(le,xe){return function(be,ae){for(;!be.eol();){if(be.match(xe)){ae.tokenize=v;break}be.next()}return le}}function C(le){return function(xe,be){for(var ae;(ae=xe.next())!=null;){if(ae=="<")return be.tokenize=C(le+1),be.tokenize(xe,be);if(ae==">")if(le==1){be.tokenize=v;break}else return be.tokenize=C(le-1),be.tokenize(xe,be)}return"meta"}}function R(le,xe,be){this.prev=le.context,this.tagName=xe,this.indent=le.indented,this.startOfLine=be,(l.doNotIndent.hasOwnProperty(xe)||le.context&&le.context.noIndent)&&(this.noIndent=!0)}function O(le){le.context&&(le.context=le.context.prev)}function M(le,xe){for(var be;;){if(!le.context||(be=le.context.tagName,!l.contextGrabbers.hasOwnProperty(be)||!l.contextGrabbers[be].hasOwnProperty(xe)))return;O(le)}}function L(le,xe,be){return le=="openTag"?(be.tagStart=xe.column(),H):le=="closeTag"?G:L}function H(le,xe,be){return le=="word"?(be.tagName=xe.current(),w="tag",te):l.allowMissingTagName&&le=="endTag"?(w="tag bracket",te(le,xe,be)):(w="error",H)}function G(le,xe,be){if(le=="word"){var ae=xe.current();return be.context&&be.context.tagName!=ae&&l.implicitlyClosed.hasOwnProperty(be.context.tagName)&&O(be),be.context&&be.context.tagName==ae||l.matchClosing===!1?(w="tag",j):(w="tag error",Q)}else return l.allowMissingTagName&&le=="endTag"?(w="tag bracket",j(le,xe,be)):(w="error",Q)}function j(le,xe,be){return le!="endTag"?(w="error",j):(O(be),L)}function Q(le,xe,be){return w="error",j(le,xe,be)}function te(le,xe,be){if(le=="word")return w="attribute",pe;if(le=="endTag"||le=="selfcloseTag"){var ae=be.tagName,F=be.tagStart;return be.tagName=be.tagStart=null,le=="selfcloseTag"||l.autoSelfClosers.hasOwnProperty(ae)?M(be,ae):(M(be,ae),be.context=new R(be,ae,F==be.indented)),L}return w="error",te}function pe(le,xe,be){return le=="equals"?Le:(l.allowMissing||(w="error"),te(le,xe,be))}function Le(le,xe,be){return le=="string"?Ee:le=="word"&&l.allowUnquoted?(w="string",te):(w="error",te(le,xe,be))}function Ee(le,xe,be){return le=="string"?Ee:te(le,xe,be)}return{startState:function(le){var xe={tokenize:v,state:L,indented:le||0,tagName:null,tagStart:null,context:null};return le!=null&&(xe.baseIndent=le),xe},token:function(le,xe){if(!xe.tagName&&le.sol()&&(xe.indented=le.indentation()),le.eatSpace())return null;h=null;var be=xe.tokenize(le,xe);return(be||h)&&be!="comment"&&(w=null,xe.state=xe.state(h||be,le,xe),w&&(be=w=="error"?be+" error":w)),be},indent:function(le,xe,be){var ae=le.context;if(le.tokenize.isInAttribute)return le.tagStart==le.indented?le.stringStartCol+1:le.indented+o;if(ae&&ae.noIndent)return CodeMirror.Pass;if(le.tokenize!=y&&le.tokenize!=v)return be?be.match(/^(\s*)/)[0].length:0;if(le.tagName)return l.multilineTagIndentPastTag!==!1?le.tagStart+le.tagName.length+2:le.tagStart+o*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(le){le.state==Le&&(le.state=te)},xmlCurrentTag:function(le){return le.tagName?{name:le.tagName,close:le.type=="closeTag"}:null},xmlCurrentContext:function(le){for(var xe=[],be=le.context;be;be=be.prev)be.tagName&&xe.push(be.tagName);return xe.reverse()}}});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/xml","xml");CodeMirror.mimeModes.hasOwnProperty("text/html")||CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:!0});const cue=Symbol("parsed quads");let Zor=class extends Jor{static get properties(){return{format:{type:String,reflect:!0},quads:{type:Array},noReserialize:{type:Boolean,attribute:"no-reserialize"}}}constructor(){super(),this.isParsing=!1,this.noReserialize=!1}disconnectedCallback(){super.disconnectedCallback(),this.ready=null}get quads(){return this[cue]}set quads(r){if(typeof r>"u"||r===null)return;const o=this[cue];this[cue]=r,this.requestUpdate("quads",o)}async updated(r){super.updated(r);let o=!1,l=!1;const u=this.quads&&this.quads.length>0;r.has("format")&&(o=u&&!this.noReserialize,l=!o),r.has("quads")&&(o=!0),(r.has("prefixes")||r.has("customPrefixes"))&&(o=u),l?this.parse():o&&this.__serialize()}async _parse(){const{toStream:r}=await C0(async()=>{const{toStream:h}=await import("./stream-DnaGyEVM.js");return{toStream:h}},[]),o=r(this.value),l=[],u={},d=this.$rdf.formats.parsers.import(this.format,o);if(!d){this.dispatchEvent(new CustomEvent("parsing-failed",{detail:{notFound:!0}}));return}d.on("prefix",(h,w)=>{u[h]=w});for await(const h of d)l.push(h);this[cue]=l,this.dispatchEvent(new CustomEvent("quads-changed",{detail:{value:l}})),this.__notifyParsedPrefixes(u)}async __serialize(){if(!this.format)return;await this.ready;const{Readable:r}=await C0(async()=>{const{Readable:h}=await import("./stream-DnaGyEVM.js");return{Readable:h}},[]),o=[...this.quads||[]],l=new r({objectMode:!0,read(){if(o.length===0){this.push(null);return}this.push(o.shift())}}),u=this.$rdf.formats.serializers.import(this.format,l,{prefixes:await this._combinePrefixes()});if(!u){this.value=`No serializer found for media type ${this.format}`;return}let d="";for await(const h of u)d+=h;this.format===$S.jsonLd&&(d=JSON.stringify(JSON.parse(d),null,2)),this.value=d,this.dispatchEvent(new CustomEvent("serialized",{detail:{value:d}}))}_errorLine(r){const o={message:r.message};return r.context&&r.context.line&&(o.from={line:r.context.line-1,ch:0},o.to={line:r.context.line-1,ch:Number.MAX_SAFE_INTEGER}),o}__notifyParsedPrefixes(r){const o={},l={...r};for(const[u,d]of Object.entries(r))u in mde&&(o[u]=d,delete l[u]);this.dispatchEvent(new CustomEvent("prefixes-parsed",{detail:{prefixes:{...o,...l}}}))}};const Cnn=new WWe([rZt,tJ]);Cnn.formats.import(hv);window.customElements.define("rdf-editor",class extends LKn(Zor,Cnn){});var zpe=(n=>(n.JsonLD="application/ld+json",n.Trig="application/trig",n.NQuads="application/n-quads",n.NTriples="application/n-triples",n.Turtle="text/turtle",n.RdfXML="application/rdf+xml",n))(zpe||{});const DR=[{contentType:"text/turtle",name:"Turtle",type:"text/turtle"},{contentType:"application/ld+json",name:"JSON-LD",type:"application/ld+json"},{contentType:"application/trig",name:"TriG",type:"application/trig"},{contentType:"application/n-quads",name:"N-Quads",type:"application/n-quads"},{contentType:"application/n-triples",name:"N-Triples",type:"application/n-triples"},{contentType:"application/rdf+xml",name:"RDF/XML",type:"application/rdf+xml"}],eUe="com.zazuko.sketch",Hfe=`${eUe}.text`,Ufe=`${eUe}.format`,cNe=`${eUe}.prefix`,esr=5e3,tsr={class:"editor-container"},nsr=[".value","format","customPrefixes"],hWt="rdf,rdfs,sh",rsr=Ka({__name:"RdfEditor",props:{format:{}},emits:["change","format-change"],setup(n,{emit:r}){const o=n,l=r,u=Fo([]),d=Fo(null),h=Fo(zpe.Turtle);Zs(()=>o.format,C=>{C!==h.value&&(h.value=C)});const w=Fo("");function v(C){console.error("Parsing failed",C.detail)}function y(C){var L,H;const R=(H=(L=d.value)==null?void 0:L.codeMirror)==null?void 0:H.value,O=C.detail.value,M={quads:O,rdfText:R,serializationFormat:o.format,prefix:u.value};O.length{const C={};return u.value.forEach(R=>{typeof R.uri=="string"?C[R.prefix]=R.uri:C[R.prefix]=R.uri.value}),hWt.split(",").forEach(R=>{delete C[R]}),C});return sm(()=>{const C=localStorage.getItem(Hfe),R=localStorage.getItem(Ufe),O=JSON.parse(localStorage.getItem(cNe)??"[]");C&&R&&DR.find(M=>M.type===R)&&Array.isArray(O)?(w.value=C,h.value=(DR.find(M=>M.type===R)??DR[0]).type,u.value=O,l("format-change",h.value)):(localStorage.removeItem(Hfe),localStorage.removeItem(Ufe),localStorage.removeItem(cNe))}),(C,R)=>(ze(),Lt("div",tsr,[mr("rdf-editor",{".value":w.value,format:h.value,ref_key:"editorElement",ref:d,prefixes:hWt,customPrefixes:A.value,"auto-parse":"",parseDelay:"1000",onParsingFailed:v,onQuadsChanged:y,onPrefixesParsed:E},null,40,nsr)]))}}),hJ=(n,r)=>{const o=n.__vccOpts||n;for(const[l,u]of r)o[l]=u;return o},isr=hJ(rsr,[["__scopeId","data-v-abcbd41c"]]);function pWt({parent:n,child:r}){return new Proxy({},{get(l,u){return r[u]||n[u]},set(l,u,d){return r[u]=d,!0},has(l,u){return u in r||u in n},ownKeys(){const l=Object.getOwnPropertyNames(n),u=Object.getOwnPropertyNames(r);return[...new Set([...l,...u]).values()]},getOwnPropertyDescriptor(l,u){return{enumerable:!u.toString().startsWith("_"),configurable:!0}}})}class EX{constructor(r,{parent:o,bind:l=!1}={}){if(this._parent=o,r instanceof WWe||r instanceof EX)return pWt({parent:o,child:r});this._factories=r.slice();const u=o?pWt({parent:o,child:this}):this;for(const d of this._factories){typeof d.prototype.init=="function"&&d.prototype.init.call(u);for(const h of d.exports||[])l?this[h]=d.prototype[h].bind(u):this[h]=d.prototype[h]}return u}clone(){const r=new EX(this._factories,this._parent);for(const o of r._factories)typeof o.prototype.clone=="function"&&o.prototype.clone.call(r,this);return r}}const{Readable:osr}=oHe;function ssr(n){const r=n[Symbol.iterator](),o=new osr({objectMode:!0,read:()=>{for(;;){const l=r.next().value;if(!l){o.push(null);return}if(!o.push(l))return}}});return o}var lsr=ssr;const Ann=cv(lsr);var Tnn={},$nn={},Inn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},o=Symbol("test"),l=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var u=42;r[o]=u;for(o in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var d=Object.getOwnPropertySymbols(r);if(d.length!==1||d[0]!==o||!Object.prototype.propertyIsEnumerable.call(r,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(r,o);if(h.value!==u||h.enumerable!==!0)return!1}return!0},asr=Inn,tUe=function(){return asr()&&!!Symbol.toStringTag},csr=Error,usr=EvalError,fsr=RangeError,dsr=ReferenceError,Pnn=SyntaxError,Kpe=TypeError,hsr=URIError,bWt=typeof Symbol<"u"&&Symbol,psr=Inn,bsr=function(){return typeof bWt!="function"||typeof Symbol!="function"||typeof bWt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:psr()},uNe={__proto__:null,foo:{}},gsr=Object,wsr=function(){return{__proto__:uNe}.foo===uNe.foo&&!(uNe instanceof gsr)},msr="Function.prototype.bind called on incompatible ",ysr=Object.prototype.toString,vsr=Math.max,_sr="[object Function]",gWt=function(r,o){for(var l=[],u=0;u"u"||!up?Fl:up(Uint8Array),iP={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Fl:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Fl:ArrayBuffer,"%ArrayIteratorPrototype%":sD&&up?up([][Symbol.iterator]()):Fl,"%AsyncFromSyncIteratorPrototype%":Fl,"%AsyncFunction%":SD,"%AsyncGenerator%":SD,"%AsyncGeneratorFunction%":SD,"%AsyncIteratorPrototype%":SD,"%Atomics%":typeof Atomics>"u"?Fl:Atomics,"%BigInt%":typeof BigInt>"u"?Fl:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Fl:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Fl:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Fl:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$sr,"%eval%":eval,"%EvalError%":Isr,"%Float32Array%":typeof Float32Array>"u"?Fl:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Fl:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Fl:FinalizationRegistry,"%Function%":Onn,"%GeneratorFunction%":SD,"%Int8Array%":typeof Int8Array>"u"?Fl:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Fl:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Fl:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sD&&up?up(up([][Symbol.iterator]())):Fl,"%JSON%":typeof JSON=="object"?JSON:Fl,"%Map%":typeof Map>"u"?Fl:Map,"%MapIteratorPrototype%":typeof Map>"u"||!sD||!up?Fl:up(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Fl:Promise,"%Proxy%":typeof Proxy>"u"?Fl:Proxy,"%RangeError%":Psr,"%ReferenceError%":Osr,"%Reflect%":typeof Reflect>"u"?Fl:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Fl:Set,"%SetIteratorPrototype%":typeof Set>"u"||!sD||!up?Fl:up(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Fl:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sD&&up?up(""[Symbol.iterator]()):Fl,"%Symbol%":sD?Symbol:Fl,"%SyntaxError%":FL,"%ThrowTypeError%":Msr,"%TypedArray%":Lsr,"%TypeError%":iL,"%Uint8Array%":typeof Uint8Array>"u"?Fl:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Fl:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Fl:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Fl:Uint32Array,"%URIError%":Nsr,"%WeakMap%":typeof WeakMap>"u"?Fl:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Fl:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Fl:WeakSet};if(up)try{null.error}catch(n){var jsr=up(up(n));iP["%Error.prototype%"]=jsr}var Fsr=function n(r){var o;if(r==="%AsyncFunction%")o=fNe("async function () {}");else if(r==="%GeneratorFunction%")o=fNe("function* () {}");else if(r==="%AsyncGeneratorFunction%")o=fNe("async function* () {}");else if(r==="%AsyncGenerator%"){var l=n("%AsyncGeneratorFunction%");l&&(o=l.prototype)}else if(r==="%AsyncIteratorPrototype%"){var u=n("%AsyncGenerator%");u&&up&&(o=up(u.prototype))}return iP[r]=o,o},wWt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},pJ=nUe,Kde=Tsr,Bsr=pJ.call(Function.call,Array.prototype.concat),Wsr=pJ.call(Function.apply,Array.prototype.splice),mWt=pJ.call(Function.call,String.prototype.replace),qde=pJ.call(Function.call,String.prototype.slice),Hsr=pJ.call(Function.call,RegExp.prototype.exec),Usr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Gsr=/\\(\\)?/g,Vsr=function(r){var o=qde(r,0,1),l=qde(r,-1);if(o==="%"&&l!=="%")throw new FL("invalid intrinsic syntax, expected closing `%`");if(l==="%"&&o!=="%")throw new FL("invalid intrinsic syntax, expected opening `%`");var u=[];return mWt(r,Usr,function(d,h,w,v){u[u.length]=w?mWt(v,Gsr,"$1"):h||d}),u},zsr=function(r,o){var l=r,u;if(Kde(wWt,l)&&(u=wWt[l],l="%"+u[0]+"%"),Kde(iP,l)){var d=iP[l];if(d===SD&&(d=Fsr(l)),typeof d>"u"&&!o)throw new iL("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:u,name:l,value:d}}throw new FL("intrinsic "+r+" does not exist!")},bJ=function(r,o){if(typeof r!="string"||r.length===0)throw new iL("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new iL('"allowMissing" argument must be a boolean');if(Hsr(/^%?[^%]*%?$/,r)===null)throw new FL("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var l=Vsr(r),u=l.length>0?l[0]:"",d=zsr("%"+u+"%",o),h=d.name,w=d.value,v=!1,y=d.alias;y&&(u=y[0],Wsr(l,Bsr([0,1],y)));for(var E=1,A=!0;E=l.length){var M=rP(w,C);A=!!M,A&&"get"in M&&!("originalValue"in M.get)?w=M.get:w=w[C]}else A=Kde(w,C),w=w[C];A&&!v&&(iP[h]=w)}}return w},Nnn={exports:{}},hNe,yWt;function rUe(){if(yWt)return hNe;yWt=1;var n=bJ,r=n("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return hNe=r,hNe}var Ksr=bJ,Gfe=Ksr("%Object.getOwnPropertyDescriptor%",!0);if(Gfe)try{Gfe([],"length")}catch{Gfe=null}var iUe=Gfe,vWt=rUe(),qsr=Pnn,lD=Kpe,_Wt=iUe,Xsr=function(r,o,l){if(!r||typeof r!="object"&&typeof r!="function")throw new lD("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new lD("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new lD("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new lD("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new lD("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new lD("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,w=arguments.length>6?arguments[6]:!1,v=!!_Wt&&_Wt(r,o);if(vWt)vWt(r,o,{configurable:h===null&&v?v.configurable:!h,enumerable:u===null&&v?v.enumerable:!u,value:l,writable:d===null&&v?v.writable:!d});else if(w||!u&&!d&&!h)r[o]=l;else throw new qsr("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Eje=rUe(),Mnn=function(){return!!Eje};Mnn.hasArrayLengthDefineBug=function(){if(!Eje)return null;try{return Eje([],"length",{value:1}).length!==1}catch{return!0}};var Jsr=Mnn,Ysr=bJ,SWt=Xsr,Qsr=Jsr(),EWt=iUe,kWt=Kpe,Zsr=Ysr("%Math.floor%"),elr=function(r,o){if(typeof r!="function")throw new kWt("`fn` is not a function");if(typeof o!="number"||o<0||o>4294967295||Zsr(o)!==o)throw new kWt("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],u=!0,d=!0;if("length"in r&&EWt){var h=EWt(r,"length");h&&!h.configurable&&(u=!1),h&&!h.writable&&(d=!1)}return(u||d||!l)&&(Qsr?SWt(r,"length",o,!0,!0):SWt(r,"length",o)),r};(function(n){var r=nUe,o=bJ,l=elr,u=Kpe,d=o("%Function.prototype.apply%"),h=o("%Function.prototype.call%"),w=o("%Reflect.apply%",!0)||r.call(h,d),v=rUe(),y=o("%Math.max%");n.exports=function(C){if(typeof C!="function")throw new u("a function is required");var R=w(r,h,arguments);return l(R,1+y(0,C.length-(arguments.length-1)),!0)};var E=function(){return w(r,d,arguments)};v?v(n.exports,"apply",{value:E}):n.exports.apply=E})(Nnn);var Dnn=Nnn.exports,Lnn=bJ,jnn=Dnn,tlr=jnn(Lnn("String.prototype.indexOf")),Fnn=function(r,o){var l=Lnn(r,!!o);return typeof l=="function"&&tlr(r,".prototype.")>-1?jnn(l):l},nlr=tUe(),rlr=Fnn,kje=rlr("Object.prototype.toString"),qpe=function(r){return nlr&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:kje(r)==="[object Arguments]"},Bnn=function(r){return qpe(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&kje(r)!=="[object Array]"&&kje(r.callee)==="[object Function]"},ilr=function(){return qpe(arguments)}();qpe.isLegacyArguments=Bnn;var olr=ilr?qpe:Bnn,slr=Object.prototype.toString,llr=Function.prototype.toString,alr=/^\s*(?:function)?\*/,Wnn=tUe(),pNe=Object.getPrototypeOf,clr=function(){if(!Wnn)return!1;try{return Function("return function*() {}")()}catch{}},bNe,ulr=function(r){if(typeof r!="function")return!1;if(alr.test(llr.call(r)))return!0;if(!Wnn){var o=slr.call(r);return o==="[object GeneratorFunction]"}if(!pNe)return!1;if(typeof bNe>"u"){var l=clr();bNe=l?pNe(l):!1}return pNe(r)===bNe},Hnn=Function.prototype.toString,WD=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Rje,Vfe;if(typeof WD=="function"&&typeof Object.defineProperty=="function")try{Rje=Object.defineProperty({},"length",{get:function(){throw Vfe}}),Vfe={},WD(function(){throw 42},null,Rje)}catch(n){n!==Vfe&&(WD=null)}else WD=null;var flr=/^\s*class\b/,xje=function(r){try{var o=Hnn.call(r);return flr.test(o)}catch{return!1}},gNe=function(r){try{return xje(r)?!1:(Hnn.call(r),!0)}catch{return!1}},zfe=Object.prototype.toString,dlr="[object Object]",hlr="[object Function]",plr="[object GeneratorFunction]",blr="[object HTMLAllCollection]",glr="[object HTML document.all class]",wlr="[object HTMLCollection]",mlr=typeof Symbol=="function"&&!!Symbol.toStringTag,ylr=!(0 in[,]),Cje=function(){return!1};if(typeof document=="object"){var vlr=document.all;zfe.call(vlr)===zfe.call(document.all)&&(Cje=function(r){if((ylr||!r)&&(typeof r>"u"||typeof r=="object"))try{var o=zfe.call(r);return(o===blr||o===glr||o===wlr||o===dlr)&&r("")==null}catch{}return!1})}var _lr=WD?function(r){if(Cje(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{WD(r,null,Rje)}catch(o){if(o!==Vfe)return!1}return!xje(r)&&gNe(r)}:function(r){if(Cje(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(mlr)return gNe(r);if(xje(r))return!1;var o=zfe.call(r);return o!==hlr&&o!==plr&&!/^\[object HTML/.test(o)?!1:gNe(r)},Slr=_lr,Elr=Object.prototype.toString,Unn=Object.prototype.hasOwnProperty,klr=function(r,o,l){for(var u=0,d=r.length;u=3&&(u=l),Elr.call(r)==="[object Array]"?klr(r,o,u):typeof r=="string"?Rlr(r,o,u):xlr(r,o,u)},Alr=Clr,Tlr=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],wNe=Tlr,$lr=typeof globalThis>"u"?window:globalThis,Ilr=function(){for(var r=[],o=0;o"u"?window:globalThis,Aje=Plr(),sUe=oUe("String.prototype.slice"),mNe=Object.getPrototypeOf,Nlr=oUe("Array.prototype.indexOf",!0)||function(r,o){for(var l=0;l-1?o:o!=="Object"?!1:Dlr(r)}return Kfe?Mlr(r):null},Llr=Vnn,jlr=function(r){return!!Llr(r)};(function(n){var r=olr,o=ulr,l=Vnn,u=jlr;function d(Re){return Re.call.bind(Re)}var h=typeof BigInt<"u",w=typeof Symbol<"u",v=d(Object.prototype.toString),y=d(Number.prototype.valueOf),E=d(String.prototype.valueOf),A=d(Boolean.prototype.valueOf);if(h)var C=d(BigInt.prototype.valueOf);if(w)var R=d(Symbol.prototype.valueOf);function O(Re,Ie){if(typeof Re!="object")return!1;try{return Ie(Re),!0}catch{return!1}}n.isArgumentsObject=r,n.isGeneratorFunction=o,n.isTypedArray=u;function M(Re){return typeof Promise<"u"&&Re instanceof Promise||Re!==null&&typeof Re=="object"&&typeof Re.then=="function"&&typeof Re.catch=="function"}n.isPromise=M;function L(Re){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Re):u(Re)||re(Re)}n.isArrayBufferView=L;function H(Re){return l(Re)==="Uint8Array"}n.isUint8Array=H;function G(Re){return l(Re)==="Uint8ClampedArray"}n.isUint8ClampedArray=G;function j(Re){return l(Re)==="Uint16Array"}n.isUint16Array=j;function Q(Re){return l(Re)==="Uint32Array"}n.isUint32Array=Q;function te(Re){return l(Re)==="Int8Array"}n.isInt8Array=te;function pe(Re){return l(Re)==="Int16Array"}n.isInt16Array=pe;function Le(Re){return l(Re)==="Int32Array"}n.isInt32Array=Le;function Ee(Re){return l(Re)==="Float32Array"}n.isFloat32Array=Ee;function le(Re){return l(Re)==="Float64Array"}n.isFloat64Array=le;function xe(Re){return l(Re)==="BigInt64Array"}n.isBigInt64Array=xe;function be(Re){return l(Re)==="BigUint64Array"}n.isBigUint64Array=be;function ae(Re){return v(Re)==="[object Map]"}ae.working=typeof Map<"u"&&ae(new Map);function F(Re){return typeof Map>"u"?!1:ae.working?ae(Re):Re instanceof Map}n.isMap=F;function me(Re){return v(Re)==="[object Set]"}me.working=typeof Set<"u"&&me(new Set);function ye(Re){return typeof Set>"u"?!1:me.working?me(Re):Re instanceof Set}n.isSet=ye;function we(Re){return v(Re)==="[object WeakMap]"}we.working=typeof WeakMap<"u"&&we(new WeakMap);function Be(Re){return typeof WeakMap>"u"?!1:we.working?we(Re):Re instanceof WeakMap}n.isWeakMap=Be;function He(Re){return v(Re)==="[object WeakSet]"}He.working=typeof WeakSet<"u"&&He(new WeakSet);function Ue(Re){return He(Re)}n.isWeakSet=Ue;function Ge(Re){return v(Re)==="[object ArrayBuffer]"}Ge.working=typeof ArrayBuffer<"u"&&Ge(new ArrayBuffer);function Me(Re){return typeof ArrayBuffer>"u"?!1:Ge.working?Ge(Re):Re instanceof ArrayBuffer}n.isArrayBuffer=Me;function vt(Re){return v(Re)==="[object DataView]"}vt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&vt(new DataView(new ArrayBuffer(1),0,1));function re(Re){return typeof DataView>"u"?!1:vt.working?vt(Re):Re instanceof DataView}n.isDataView=re;var Te=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ct(Re){return v(Re)==="[object SharedArrayBuffer]"}function at(Re){return typeof Te>"u"?!1:(typeof ct.working>"u"&&(ct.working=ct(new Te)),ct.working?ct(Re):Re instanceof Te)}n.isSharedArrayBuffer=at;function Ye(Re){return v(Re)==="[object AsyncFunction]"}n.isAsyncFunction=Ye;function mt(Re){return v(Re)==="[object Map Iterator]"}n.isMapIterator=mt;function jt(Re){return v(Re)==="[object Set Iterator]"}n.isSetIterator=jt;function rn(Re){return v(Re)==="[object Generator]"}n.isGeneratorObject=rn;function Pe(Re){return v(Re)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=Pe;function Oe(Re){return O(Re,y)}n.isNumberObject=Oe;function T(Re){return O(Re,E)}n.isStringObject=T;function $(Re){return O(Re,A)}n.isBooleanObject=$;function B(Re){return h&&O(Re,C)}n.isBigIntObject=B;function K(Re){return w&&O(Re,R)}n.isSymbolObject=K;function q(Re){return Oe(Re)||T(Re)||$(Re)||B(Re)||K(Re)}n.isBoxedPrimitive=q;function ke(Re){return typeof Uint8Array<"u"&&(Me(Re)||at(Re))}n.isAnyArrayBuffer=ke,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Re){Object.defineProperty(n,Re,{enumerable:!1,value:function(){throw new Error(Re+" is not supported in userland")}})})})($nn);var Flr=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"};(function(n){var r={},o=Object.getOwnPropertyDescriptors||function(Te){for(var ct=Object.keys(Te),at={},Ye=0;Ye=Ye)return rn;switch(rn){case"%s":return String(at[ct++]);case"%d":return Number(at[ct++]);case"%j":try{return JSON.stringify(at[ct++])}catch{return"[Circular]"}default:return rn}}),jt=at[ct];ct"u")return function(){return n.deprecate(re,Te).apply(this,arguments)};var ct=!1;function at(){if(!ct){if(Wl.throwDeprecation)throw new Error(Te);Wl.traceDeprecation?console.trace(Te):console.error(Te),ct=!0}return re.apply(this,arguments)}return at};var u={},d=/^$/;if(r.NODE_DEBUG){var h=r.NODE_DEBUG;h=h.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),d=new RegExp("^"+h+"$","i")}n.debuglog=function(re){if(re=re.toUpperCase(),!u[re])if(d.test(re)){var Te=Wl.pid;u[re]=function(){var ct=n.format.apply(n,arguments);console.error("%s %d: %s",re,Te,ct)}}else u[re]=function(){};return u[re]};function w(re,Te){var ct={seen:[],stylize:y};return arguments.length>=3&&(ct.depth=arguments[2]),arguments.length>=4&&(ct.colors=arguments[3]),G(Te)?ct.showHidden=Te:Te&&n._extend(ct,Te),Ee(ct.showHidden)&&(ct.showHidden=!1),Ee(ct.depth)&&(ct.depth=2),Ee(ct.colors)&&(ct.colors=!1),Ee(ct.customInspect)&&(ct.customInspect=!0),ct.colors&&(ct.stylize=v),A(ct,re,ct.depth)}n.inspect=w,w.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},w.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function v(re,Te){var ct=w.styles[Te];return ct?"\x1B["+w.colors[ct][0]+"m"+re+"\x1B["+w.colors[ct][1]+"m":re}function y(re,Te){return re}function E(re){var Te={};return re.forEach(function(ct,at){Te[ct]=!0}),Te}function A(re,Te,ct){if(re.customInspect&&Te&&F(Te.inspect)&&Te.inspect!==n.inspect&&!(Te.constructor&&Te.constructor.prototype===Te)){var at=Te.inspect(ct,re);return pe(at)||(at=A(re,at,ct)),at}var Ye=C(re,Te);if(Ye)return Ye;var mt=Object.keys(Te),jt=E(mt);if(re.showHidden&&(mt=Object.getOwnPropertyNames(Te)),ae(Te)&&(mt.indexOf("message")>=0||mt.indexOf("description")>=0))return R(Te);if(mt.length===0){if(F(Te)){var rn=Te.name?": "+Te.name:"";return re.stylize("[Function"+rn+"]","special")}if(le(Te))return re.stylize(RegExp.prototype.toString.call(Te),"regexp");if(be(Te))return re.stylize(Date.prototype.toString.call(Te),"date");if(ae(Te))return R(Te)}var Pe="",Oe=!1,T=["{","}"];if(H(Te)&&(Oe=!0,T=["[","]"]),F(Te)){var $=Te.name?": "+Te.name:"";Pe=" [Function"+$+"]"}if(le(Te)&&(Pe=" "+RegExp.prototype.toString.call(Te)),be(Te)&&(Pe=" "+Date.prototype.toUTCString.call(Te)),ae(Te)&&(Pe=" "+R(Te)),mt.length===0&&(!Oe||Te.length==0))return T[0]+Pe+T[1];if(ct<0)return le(Te)?re.stylize(RegExp.prototype.toString.call(Te),"regexp"):re.stylize("[Object]","special");re.seen.push(Te);var B;return Oe?B=O(re,Te,ct,jt,mt):B=mt.map(function(K){return M(re,Te,ct,jt,K,Oe)}),re.seen.pop(),L(B,Pe,T)}function C(re,Te){if(Ee(Te))return re.stylize("undefined","undefined");if(pe(Te)){var ct="'"+JSON.stringify(Te).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return re.stylize(ct,"string")}if(te(Te))return re.stylize(""+Te,"number");if(G(Te))return re.stylize(""+Te,"boolean");if(j(Te))return re.stylize("null","null")}function R(re){return"["+Error.prototype.toString.call(re)+"]"}function O(re,Te,ct,at,Ye){for(var mt=[],jt=0,rn=Te.length;jt-1&&(mt?rn=rn.split(` +`).map(function(Oe){return" "+Oe}).join(` +`).slice(2):rn=` +`+rn.split(` +`).map(function(Oe){return" "+Oe}).join(` +`))):rn=re.stylize("[Circular]","special")),Ee(jt)){if(mt&&Ye.match(/^\d+$/))return rn;jt=JSON.stringify(""+Ye),jt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(jt=jt.slice(1,-1),jt=re.stylize(jt,"name")):(jt=jt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),jt=re.stylize(jt,"string"))}return jt+": "+rn}function L(re,Te,ct){var at=re.reduce(function(Ye,mt){return mt.indexOf(` +`)>=0,Ye+mt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return at>60?ct[0]+(Te===""?"":Te+` + `)+" "+re.join(`, + `)+" "+ct[1]:ct[0]+Te+" "+re.join(", ")+" "+ct[1]}n.types=$nn;function H(re){return Array.isArray(re)}n.isArray=H;function G(re){return typeof re=="boolean"}n.isBoolean=G;function j(re){return re===null}n.isNull=j;function Q(re){return re==null}n.isNullOrUndefined=Q;function te(re){return typeof re=="number"}n.isNumber=te;function pe(re){return typeof re=="string"}n.isString=pe;function Le(re){return typeof re=="symbol"}n.isSymbol=Le;function Ee(re){return re===void 0}n.isUndefined=Ee;function le(re){return xe(re)&&ye(re)==="[object RegExp]"}n.isRegExp=le,n.types.isRegExp=le;function xe(re){return typeof re=="object"&&re!==null}n.isObject=xe;function be(re){return xe(re)&&ye(re)==="[object Date]"}n.isDate=be,n.types.isDate=be;function ae(re){return xe(re)&&(ye(re)==="[object Error]"||re instanceof Error)}n.isError=ae,n.types.isNativeError=ae;function F(re){return typeof re=="function"}n.isFunction=F;function me(re){return re===null||typeof re=="boolean"||typeof re=="number"||typeof re=="string"||typeof re=="symbol"||typeof re>"u"}n.isPrimitive=me,n.isBuffer=Flr;function ye(re){return Object.prototype.toString.call(re)}function we(re){return re<10?"0"+re.toString(10):re.toString(10)}var Be=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function He(){var re=new Date,Te=[we(re.getHours()),we(re.getMinutes()),we(re.getSeconds())].join(":");return[re.getDate(),Be[re.getMonth()],Te].join(" ")}n.log=function(){console.log("%s - %s",He(),n.format.apply(n,arguments))},n.inherits=sj,n._extend=function(re,Te){if(!Te||!xe(Te))return re;for(var ct=Object.keys(Te),at=ct.length;at--;)re[ct[at]]=Te[ct[at]];return re};function Ue(re,Te){return Object.prototype.hasOwnProperty.call(re,Te)}var Ge=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(Te){if(typeof Te!="function")throw new TypeError('The "original" argument must be of type Function');if(Ge&&Te[Ge]){var ct=Te[Ge];if(typeof ct!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ct,Ge,{value:ct,enumerable:!1,writable:!1,configurable:!0}),ct}function ct(){for(var at,Ye,mt=new Promise(function(Pe,Oe){at=Pe,Ye=Oe}),jt=[],rn=0;rnn.add(o)),await Blr(Wlr)(r),n}var Ulr=Hlr;const znn=cv(Ulr);var lUe=class Knn{constructor(r,o=new Map,l=0){this.prefix=r,this._existing=o,this.counter=l}clone(){const{prefix:r,_existing:o,counter:l}=this;return new Knn(r,new Map(o),l)}getId(r){const o=r&&this._existing.get(r);if(o)return o;const l=this.prefix+this.counter;return this.counter++,r&&this._existing.set(r,l),l}hasId(r){return this._existing.has(r)}getOldIds(){return[...this._existing.keys()]}};(function(n,r){if(n.setImmediate)return;var o=1,l={},u=!1,d=n.document,h;function w(G){typeof G!="function"&&(G=new Function(""+G));for(var j=new Array(arguments.length-1),Q=0;Q"u"?typeof window>"u"?fu:window:self);/*! + * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. + */const yNe=self.crypto||self.msCrypto;var Xpe=class{constructor(r){if(!(yNe&&yNe.subtle))throw new Error("crypto.subtle not found.");if(r==="sha256")this.algorithm={name:"SHA-256"};else if(r==="sha1")this.algorithm={name:"SHA-1"};else throw new Error(`Unsupported algorithm "${r}".`);this._content=""}update(r){this._content+=r}async digest(){const r=new TextEncoder().encode(this._content),o=new Uint8Array(await yNe.subtle.digest(this.algorithm,r));let l="";for(let u=0;uu)&&(y&&w>0&&v>r[w-1]||!y&&wr[w+1])&&(u=v,d=w)}if(u===null)this.done=!0;else{const w=o.get(u)?d-1:d+1;r[d]=r[w],r[w]=u;for(const v of r)v>u&&o.set(v,!o.get(v))}return l}};/*! + * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. + */const Glr="http://www.w3.org/1999/02/22-rdf-syntax-ns#",vNe=Glr+"langString",_Ne="http://www.w3.org/2001/XMLSchema#string",oS="NamedNode",i8="BlankNode",qfe="Literal",CWt="DefaultGraph",oL={};(()=>{const n="(?:<([^:]+:[^>]*)>)",o="A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�"+"_",l=o+"0-9-·̀-ͯ‿-⁀",d="(_:(?:["+o+"0-9])(?:(?:["+l+".])*(?:["+l+"]))?)",h='"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"',w="(?:\\^\\^"+n+")",y="(?:"+h+"(?:"+w+"|"+"(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*))"+")?)",E="[ \\t]+",A="[ \\t]*",C="(?:"+n+"|"+d+")"+E,R=n+E,O="(?:"+n+"|"+d+"|"+y+")"+A,M="(?:\\.|(?:(?:"+n+"|"+d+")"+A+"\\.))";oL.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,oL.empty=new RegExp("^"+A+"$"),oL.quad=new RegExp("^"+A+C+R+O+M+A+"$")})();var aUe=class Xfe{static parse(r){const o=[],l={},u=r.split(oL.eoln);let d=0;for(const h of u){if(d++,oL.empty.test(h))continue;const w=h.match(oL.quad);if(w===null)throw new Error("N-Quads parse error on line "+d+".");const v={subject:null,predicate:null,object:null,graph:null};if(w[1]!==void 0?v.subject={termType:oS,value:w[1]}:v.subject={termType:i8,value:w[2]},v.predicate={termType:oS,value:w[3]},w[4]!==void 0?v.object={termType:oS,value:w[4]}:w[5]!==void 0?v.object={termType:i8,value:w[5]}:(v.object={termType:qfe,value:void 0,datatype:{termType:oS}},w[7]!==void 0?v.object.datatype.value=w[7]:w[8]!==void 0?(v.object.datatype.value=vNe,v.object.language=w[8]):v.object.datatype.value=_Ne,v.object.value=Xlr(w[6])),w[9]!==void 0?v.graph={termType:oS,value:w[9]}:w[10]!==void 0?v.graph={termType:i8,value:w[10]}:v.graph={termType:CWt,value:""},!(v.graph.value in l))l[v.graph.value]=[v],o.push(v);else{let y=!0;const E=l[v.graph.value];for(const A of E)if(Vlr(A,v)){y=!1;break}y&&(E.push(v),o.push(v))}}return o}static serialize(r){Array.isArray(r)||(r=Xfe.legacyDatasetToQuads(r));const o=[];for(const l of r)o.push(Xfe.serializeQuad(l));return o.sort().join("")}static serializeQuadComponents(r,o,l,u){let d="";return r.termType===oS?d+=`<${r.value}>`:d+=`${r.value}`,d+=` <${o.value}> `,l.termType===oS?d+=`<${l.value}>`:l.termType===i8?d+=l.value:(d+=`"${Klr(l.value)}"`,l.datatype.value===vNe?l.language&&(d+=`@${l.language}`):l.datatype.value!==_Ne&&(d+=`^^<${l.datatype.value}>`)),u.termType===oS?d+=` <${u.value}>`:u.termType===i8&&(d+=` ${u.value}`),d+=` . +`,d}static serializeQuad(r){return Xfe.serializeQuadComponents(r.subject,r.predicate,r.object,r.graph)}static legacyDatasetToQuads(r){const o=[],l={"blank node":i8,IRI:oS,literal:qfe};for(const u in r)r[u].forEach(h=>{const w={};for(const v in h){const y=h[v],E={termType:l[y.type],value:y.value};E.termType===qfe&&(E.datatype={termType:oS},"datatype"in y&&(E.datatype.value=y.datatype),"language"in y?("datatype"in y||(E.datatype.value=vNe),E.language=y.language):"datatype"in y||(E.datatype.value=_Ne)),w[v]=E}u==="@default"?w.graph={termType:CWt,value:""}:w.graph={termType:u.startsWith("_:")?i8:oS,value:u},o.push(w)});return o}};function Vlr(n,r){return!(n.subject.termType===r.subject.termType&&n.object.termType===r.object.termType)||!(n.subject.value===r.subject.value&&n.predicate.value===r.predicate.value&&n.object.value===r.object.value)?!1:n.object.termType!==qfe?!0:n.object.datatype.termType===r.object.datatype.termType&&n.object.language===r.object.language&&n.object.datatype.value===r.object.datatype.value}const zlr=/["\\\n\r]/g;function Klr(n){return n.replace(zlr,function(r){switch(r){case'"':return'\\"';case"\\":return"\\\\";case` +`:return"\\n";case"\r":return"\\r"}})}const qlr=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function Xlr(n){return n.replace(qlr,function(r,o,l,u){if(o)switch(o){case"t":return" ";case"b":return"\b";case"n":return` +`;case"r":return"\r";case"f":return"\f";case'"':return'"';case"'":return"'";case"\\":return"\\"}if(l)return String.fromCharCode(parseInt(l,16));if(u)throw new Error("Unsupported U escape")})}/*! + * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. + */const AWt=lUe,Jlr=Xpe,Ylr=qnn,TWt=aUe;var cUe=class{constructor({createMessageDigest:r=()=>new Jlr("sha256"),canonicalIdMap:o=new Map,maxDeepIterations:l=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new AWt("_:c14n",o),this.createMessageDigest=r,this.maxDeepIterations=l,this.quads=null,this.deepIterations=null}main(r){this.deepIterations=new Map,this.quads=r;for(const w of r)this._addBlankNodeQuadInfo({quad:w,component:w.subject}),this._addBlankNodeQuadInfo({quad:w,component:w.object}),this._addBlankNodeQuadInfo({quad:w,component:w.graph});const o=new Map,l=[...this.blankNodeInfo.keys()];for(const w of l)this._hashAndTrackBlankNode({id:w,hashToBlankNodes:o});const u=[...o.keys()].sort(),d=[];for(const w of u){const v=o.get(w);if(v.length>1){d.push(v);continue}const y=v[0];this.canonicalIssuer.getId(y)}for(const w of d){const v=[];for(const y of w){if(this.canonicalIssuer.hasId(y))continue;const E=new AWt("_:b");E.getId(y);const A=this.hashNDegreeQuads(y,E);v.push(A)}v.sort(Qlr);for(const y of v){const E=y.issuer.getOldIds();for(const A of E)this.canonicalIssuer.getId(A)}}const h=[];for(const w of this.quads){const v=TWt.serializeQuadComponents(this._componentWithCanonicalId({component:w.subject}),w.predicate,this._componentWithCanonicalId({component:w.object}),this._componentWithCanonicalId({component:w.graph}));h.push(v)}return h.sort(),h.join("")}hashFirstDegreeQuads(r){const o=[],l=this.blankNodeInfo.get(r),u=l.quads;for(const h of u){const w={subject:null,predicate:h.predicate,object:null,graph:null};w.subject=this.modifyFirstDegreeComponent(r,h.subject,"subject"),w.object=this.modifyFirstDegreeComponent(r,h.object,"object"),w.graph=this.modifyFirstDegreeComponent(r,h.graph,"graph"),o.push(TWt.serializeQuad(w))}o.sort();const d=this.createMessageDigest();for(const h of o)d.update(h);return l.hash=d.digest(),l.hash}hashRelatedBlankNode(r,o,l,u){let d;this.canonicalIssuer.hasId(r)?d=this.canonicalIssuer.getId(r):l.hasId(r)?d=l.getId(r):d=this.blankNodeInfo.get(r).hash;const h=this.createMessageDigest();return h.update(u),u!=="g"&&h.update(this.getRelatedPredicate(o)),h.update(d),h.digest()}hashNDegreeQuads(r,o){const l=this.deepIterations.get(r)||0;if(l>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(r,l+1);const u=this.createMessageDigest(),d=this.createHashToRelated(r,o),h=[...d.keys()].sort();for(const w of h){u.update(w);let v="",y;const E=new Ylr(d.get(w));for(;E.hasNext();){const A=E.next();let C=o.clone(),R="";const O=[];let M=!1;for(const L of A)if(this.canonicalIssuer.hasId(L)?R+=this.canonicalIssuer.getId(L):(C.hasId(L)||O.push(L),R+=C.getId(L)),v.length!==0&&R>v){M=!0;break}if(!M){for(const L of O){const H=this.hashNDegreeQuads(L,C);if(R+=C.getId(L),R+=`<${H.hash}>`,C=H.issuer,v.length!==0&&R>v){M=!0;break}}M||(v.length===0||R`}createHashToRelated(r,o){const l=new Map,u=this.blankNodeInfo.get(r).quads;for(const d of u)this._addRelatedBlankNodeHash({quad:d,component:d.subject,position:"s",id:r,issuer:o,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:d,component:d.object,position:"o",id:r,issuer:o,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:d,component:d.graph,position:"g",id:r,issuer:o,hashToRelated:l});return l}_hashAndTrackBlankNode({id:r,hashToBlankNodes:o}){const l=this.hashFirstDegreeQuads(r),u=o.get(l);u?u.push(r):o.set(l,[r])}_addBlankNodeQuadInfo({quad:r,component:o}){if(o.termType!=="BlankNode")return;const l=o.value,u=this.blankNodeInfo.get(l);u?u.quads.add(r):this.blankNodeInfo.set(l,{quads:new Set([r]),hash:null})}_addRelatedBlankNodeHash({quad:r,component:o,position:l,id:u,issuer:d,hashToRelated:h}){if(!(o.termType==="BlankNode"&&o.value!==u))return;const w=o.value,v=this.hashRelatedBlankNode(w,r,d,l),y=h.get(v);y?y.push(w):h.set(v,[w])}_componentWithCanonicalId({component:r}){return r.termType==="BlankNode"&&!r.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(r.value)}:r}};function Qlr(n,r){return n.hashr.hash?1:0}const Zlr=cUe;function ear(n){return new Zlr().main(n)}var tar=ear;const Xnn=cv(tar);function nar(n,r){for(const o of r)n.add(o);return n}var rar=nar;const Tje=cv(rar);function iar(n,r,o,l,u){const d=n.match(r,o,l,u);for(const h of d)n.delete(h);return n}var oar=iar;const Jnn=cv(oar);function sar(n,r){if(n.size!==r.size)return!1;for(const o of n)if(!r.has(o))return!1;return!0}var lar=sar;const Ynn=cv(lar),aar=n=>class{constructor(){n7e(this,"dataset")}init(){const r=n(this);this.dataset=(o=[])=>new r([...o]),this.dataset.Class=r,this.dataset.addAll=Tje,this.dataset.deleteMatch=Jnn,this.dataset.equals=Ynn}},car=n=>class extends aar(n){init(){super.init(),this.dataset.toCanonical=Xnn,this.dataset.toStream=Ann,this.dataset.fromStream=r=>znn(this.dataset(),r)}};let uUe=class{namespace(r){return Kn(r,{factory:this})}};uUe.exports=["namespace"];const fUe=n=>{const r=n.namespace("http://www.w3.org/2001/XMLSchema#"),o=n.namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#");return{first:o.first,nil:o.nil,rest:o.rest,langString:o.langString,xsd:r}};function S0(n,r){return typeof n>"u"||n===null?r:Array.isArray(n)?n:typeof n!="string"&&n[Symbol.iterator]?[...n]:[n]}const QP=new WWe([uUe,tJ]),{xsd:$je}=fUe(QP);function uar(n,r=QP){return typeof n!="boolean"?null:r.literal(n.toString(),$je("boolean"))}function far(n,r=QP){return typeof n!="number"?null:Number.isInteger(n)?r.literal(n.toString(10),$je("integer")):r.literal(n.toString(10),$je("double"))}function dar(n,r=QP){return typeof n!="string"?null:r.literal(n)}function har(n,r=QP){return uar(n,r)||far(n,r)||dar(n,r)}function par(n,r){if(n&&typeof n!="string")throw new Error("Blank node identifier must be a string");return r.blankNode(n)}function bar(n,r,o){if(typeof n=="string")return r=r&&(r.value||r.toString()),r&&r.indexOf(":")!==-1&&(r=o.namedNode(r)),o.literal(n.toString(),r);const l=har(n,o);if(!l)throw new Error("The value cannot be converted to a literal node");return l}function $Wt(n,r){if(typeof n!="string")throw new Error("Named node must be an IRI string");return r.namedNode(n)}function Qnn(n,r="Literal",o,l){if(n&&typeof n=="object"&&n.termType)return n;if(n&&n.constructor.name==="URL")return $Wt(n.toString(),l);if(r==="BlankNode")return par(n,l);if(!(n===null||typeof n>"u")){if(r==="Literal")return bar(n,o,l);if(r==="NamedNode")return $Wt(n,l);throw new Error("unknown type")}}function gar(n,r,o,l){return(typeof n>"u"||n===null)&&!r?n:(S0(n)||[void 0]).reduce((u,d)=>typeof d=="object"&&d.terms?u.concat(d.terms):(u.push(Qnn(d,r,o,l)),u),[])}const IWt=fUe(QP);function war(n,r){const o=r.termType!=="Literal",l=IWt.langString.equals(r.datatype)||IWt.xsd.string.equals(r.datatype);if(o||!l)return n;const u=r.language.toLowerCase();return n.has(u)?n.get(u).push(r):n.set(u,[r]),n}function mar(n){const r=n.reduce(war,new Map),o=[...r.entries()];return l=>{const u=l.toLowerCase();if(u==="*")return o[0]&&o[0][1];const d=r.get(u);if(d)return d;const h=o.find(([w])=>w.startsWith(u));return h&&h[1]}}function yar(n,{language:r}){const o=typeof r=="string"?[r]:r,l=mar(n);return o.map(l).find(Boolean)||[]}class dUe{constructor({dataset:r,graph:o,value:l,factory:u,namespace:d}){this.dataset=r,this.graph=o,this.factory=u,this.namespace=d,this.term=Qnn(l,void 0,void 0,u)}clone({dataset:r=this.dataset,graph:o=this.graph,value:l,factory:u=this.factory,namespace:d=this.namespace}){return new dUe({dataset:r,graph:o,value:l,factory:u,namespace:d})}has(r,o){return this.matchProperty(S0(this.term),r,o,S0(this.graph),"subject").map(l=>this.clone({value:l}))}in(r){return this.matchProperty(null,r,S0(this.term),S0(this.graph),"subject").map(o=>this.clone({value:o}))}out(r,{language:o}={}){let l=this.matchProperty(S0(this.term),r,null,S0(this.graph),"object");return typeof o<"u"&&(l=yar(l,{language:o})),l.map(u=>this.clone({value:u}))}addIn(r,o){const l=[];return this.term&&o.forEach(u=>{r.forEach(d=>{this.dataset.add(this.factory.quad(u,d,this.term,this.graph))}),l.push(this.clone({value:u}))}),l}addOut(r,o){const l=[];return this.term&&o.forEach(u=>{r.forEach(d=>{this.dataset.add(this.factory.quad(this.term,d,u,this.graph))}),l.push(this.clone({value:u}))}),l}addList(r,o){this.term&&r.forEach(l=>{const u=o.map(()=>this.factory.blankNode());this.dataset.add(this.factory.quad(this.term,l,u[0]||this.namespace.nil,this.graph));for(let d=0;d{for(const l of this.dataset.match(this.term,o))this.deleteItems(l)})}deleteItems(r){let o=[r];for(;!o[o.length-1].object.equals(this.namespace.nil);){const l=o[o.length-1].object;o=o.concat([...this.dataset.match(l)])}o.forEach(l=>{this.dataset.delete(l)})}match(r,o,l,u){if(!r&&!o&&!l&&!u)return[...this.dataset];r=r||[null],o=o||[null],l=l||[null],u=u||[null];const d=[];for(const h of u)for(const w of r)for(const v of o)for(const y of l)for(const E of this.dataset.match(w,v,y,h))d.push(E);return d}matchProperty(r,o,l,u,d){return this.match(r,o,l,u).map(h=>h[d])}deleteMatch(r,o,l,u){this.match(r,o,l,u).forEach(d=>{this.dataset.delete(d)})}}class _0{constructor({dataset:r,graph:o,term:l,value:u,factory:d,_context:h}){if(this.factory=d,this.namespace=fUe(d),h){this._context=h;return}const w=l&&S0(l)||u&&S0(u)||[null];this._context=w.map(v=>new dUe({dataset:r,graph:o,value:v,factory:this.factory,namespace:this.namespace}))}get term(){const r=this.terms;if(r.length===1)return r[0]}get terms(){return this._context.map(r=>r.term).filter(Boolean)}get value(){const r=this.term;return r&&r.value}get values(){return this.terms.map(r=>r.value)}get dataset(){const r=this.datasets;if(r.length===1)return r[0]}get datasets(){return this._context.map(r=>r.dataset).filter(Boolean)}any(){return _0.fromContext(this._context.map(r=>r.clone({})),this)}isList(){return this.term?!!(this.term.equals(this.namespace.nil)||this.out(this.namespace.first).term):!1}list(){if(this.terms.length>1)throw new Error("iterator over multiple terms is not supported");if(this.term&&(this.term.termType!=="NamedNode"&&this.term.termType!=="BlankNode"||!this.term.equals(this.namespace.nil)&&!this.out(this.namespace.first).term))return null;let r=this;return{[Symbol.iterator]:()=>({next:()=>{if(!r.term||r.term.equals(this.namespace.nil))return{done:!0};const o=r.out(this.namespace.first);if(o.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:first on ${r.value}`);const l=r.out(this.namespace.rest);if(l.terms.length>1)throw new Error(`Invalid list: multiple values for rdf:rest on ${r.value}`);return r=l,{done:!1,value:o}}})}}toArray(){return this._context.map(r=>_0.fromContext(r,this)).filter(r=>r.terms.some(Boolean))}filter(r){const o=this._context.map(l=>_0.fromContext(l,this));return _0.fromContext(this._context.filter((l,u)=>r(_0.fromContext(l,this),u,o)),this)}forEach(r){return this.toArray().forEach(r),this}map(r){return this.toArray().map(r)}toString(){return this.values.join()}node(r,{type:o,datatype:l,language:u}={}){r=this._toTermArray(r,o,l||u)||[null];const d=r.reduce((h,w)=>h.concat(this._context.reduce((v,y)=>v.concat([y.clone({value:w})]),[])),[]);return _0.fromContext(d,{factory:this.factory})}blankNode(r){return this.node(r,{type:"BlankNode"})}literal(r,o){return this.node(r,{type:"Literal",datatype:o})}namedNode(r){return this.node(r,{type:"NamedNode"})}in(r){r=this._toTermArray(r);const o=this._context.reduce((l,u)=>l.concat(u.in(r)),[]);return _0.fromContext(o,this)}out(r,o={}){r=this._toTermArray(r);const l=this._context.reduce((u,d)=>u.concat(d.out(r,o)),[]);return _0.fromContext(l,this)}has(r,o){r=this._toTermArray(r),o=this._toTermArray(o);const l=this._context.reduce((u,d)=>u.concat(d.has(r,o)),[]);return _0.fromContext(l,this)}addIn(r,o,l){if(!r)throw new Error("predicate parameter is required");typeof o=="function"&&(l=o,o=null),r=this._toTermArray(r),o=this._toTermArray(o)||[this.factory.blankNode()];const u=this._context.map(d=>d.addIn(r,o));return l&&_0.fromContext(u,this).forEach(l),this}addOut(r,o,l){if(!r)throw new Error("predicate parameter is required");typeof o=="function"&&(l=o,o=null),r=this._toTermArray(r),o=this._toTermArray(o)||[this.factory.blankNode()];const u=this._context.map(d=>d.addOut(r,o));return l&&_0.fromContext(u,this).forEach(l),this}addList(r,o){if(!r||!o)throw new Error("predicate and items parameter is required");return r=this._toTermArray(r),o=this._toTermArray(o),this._context.forEach(l=>l.addList(r,o)),this}deleteIn(r,o){return r=this._toTermArray(r),o=this._toTermArray(o),this._context.forEach(l=>l.deleteIn(r,o)),this}deleteOut(r,o){return r=this._toTermArray(r),o=this._toTermArray(o),this._context.forEach(l=>l.deleteOut(r,o)),this}deleteList(r){if(!r)throw new Error("predicate parameter is required");return r=this._toTermArray(r),this._context.forEach(o=>o.deleteList(r)),this}_toTermArray(r,o,l){return gar(r,o,l,this.factory)}static fromContext(r,{factory:o}){return new _0({_context:S0(r),factory:o})}}function _ar({dataset:n,graph:r,term:o,value:l,factory:u=QP,_context:d}){return new _0({dataset:n,graph:r,term:o,value:l,factory:u,_context:d})}class Znn{clownface({...r}={}){return!r.dataset&&typeof this.dataset=="function"&&(r.dataset=this.dataset()),_ar({...r,factory:this})}}Znn.exports=["clownface"];let ern=class{termMap(r){return new kK(r)}};ern.exports=["termMap"];function PWt(n){try{return _S(n)}catch{return null}}class Yde{constructor(r){if(this.index=new Map,r)for(const o of r)this.add(o)}get size(){return this.index.size}add(r){const o=_S(r);return this.index.has(o)||this.index.set(o,r),this}clear(){this.index.clear()}delete(r){return r?this.index.delete(PWt(r)):!1}entries(){return this.values().entries()}forEach(r,o){return this.values().forEach(r,o)}has(r){return r?this.index.has(PWt(r)):!1}values(){return new Set(this.index.values())}keys(){return this.values()}[Symbol.iterator](){return this.index.values()}}let trn=class{termSet(r){return new Yde(r)}};trn.exports=["termSet"];class Sar{constructor(){this.quadLevel=new Map}add(r,o){this.quadLevel.set(_S(r),o)}has(r,o){const l=this.quadLevel.get(_S(r));return l===void 0?!1:l<=o}}function SNe({backward:n,callback:r,dataset:o,filter:l,forward:u,term:d,visited:h=new Sar}){const w=(v,y)=>{const E=A=>{for(const C of A){if(h.has(C,y))continue;h.add(C,y);const R={dataset:o,level:y,quad:C};l(R)&&(r(R),u&&w(C.object,y+1),n&&w(C.subject,y+1))}};u&&E(o.match(v)),n&&E(o.match(null,null,v))};w(d,0)}class Ear{constructor(r,{backward:o=!1,factory:l,forward:u=!0}){this.backward=o,this.factory=l,this.filter=r,this.forward=u}forEach({term:r,dataset:o},l){SNe({backward:this.backward,callback:l,dataset:o,filter:this.filter,forward:this.forward,term:r})}match({term:r,dataset:o}){const l=this.factory.dataset();return SNe({backward:this.backward,callback:({quad:u})=>l.add(u),dataset:o,filter:this.filter,forward:this.forward,term:r}),l}reduce({term:r,dataset:o},l,u){let d=u;return SNe({backward:this.backward,callback:h=>{d=l(h,d)},dataset:o,filter:this.filter,forward:this.forward,term:r}),d}}class nrn{traverser(r,{backward:o=!1,forward:l=!0}={}){return new Ear(r,{backward:o,factory:this,forward:l})}}nrn.exports=["traverser"];const kar=new EX([tJ,rZt,uUe,_en,Znn,ern,trn,nrn]);function Rar(n,{checkOpen:r=!0}={}){return n!==null&&typeof n=="object"&&(n.writable||n.readable||!r||n.writable===void 0&&n.readable===void 0)&&typeof n.pipe=="function"}function xar(n,{checkOpen:r=!0}={}){return Rar(n,{checkOpen:r})&&(n.readable||!r)&&typeof n.read=="function"&&typeof n.readable=="boolean"&&typeof n.readableObjectMode=="boolean"&&typeof n.destroy=="function"&&typeof n.destroyed=="boolean"}const Car=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype);var NE,VX,dT,bS,tj,rrn,irn;class Aar{constructor(r,o){J5(this,tj);J5(this,NE);J5(this,VX);J5(this,dT,!1);J5(this,bS);_E(this,NE,r),_E(this,VX,o)}next(){const r=()=>i7e(this,tj,rrn).call(this);return _E(this,bS,Hp(this,bS)?Hp(this,bS).then(r,r):r()),Hp(this,bS)}return(r){const o=()=>i7e(this,tj,irn).call(this,r);return Hp(this,bS)?Hp(this,bS).then(o,o):o()}}NE=new WeakMap,VX=new WeakMap,dT=new WeakMap,bS=new WeakMap,tj=new WeakSet,rrn=async function(){if(Hp(this,dT))return{done:!0,value:void 0};let r;try{r=await Hp(this,NE).read()}catch(o){throw _E(this,bS,void 0),_E(this,dT,!0),Hp(this,NE).releaseLock(),o}return r.done&&(_E(this,bS,void 0),_E(this,dT,!0),Hp(this,NE).releaseLock()),r},irn=async function(r){if(Hp(this,dT))return{done:!0,value:r};if(_E(this,dT,!0),!Hp(this,VX)){const o=Hp(this,NE).cancel(r);return Hp(this,NE).releaseLock(),await o,{done:!0,value:r}}return Hp(this,NE).releaseLock(),{done:!0,value:r}};const hUe=Symbol();function orn(){return this[hUe].next()}Object.defineProperty(orn,"name",{value:"next"});function srn(n){return this[hUe].return(n)}Object.defineProperty(srn,"name",{value:"return"});const Tar=Object.create(Car,{next:{enumerable:!0,configurable:!0,writable:!0,value:orn},return:{enumerable:!0,configurable:!0,writable:!0,value:srn}});function $ar({preventCancel:n=!1}={}){const r=this.getReader(),o=new Aar(r,n),l=Object.create(Tar);return l[hUe]=o,l}const Iar=n=>{if(xar(n,{checkOpen:!1})&&pUe.on!==void 0)return Oar(n);if(typeof(n==null?void 0:n[Symbol.asyncIterator])=="function")return n;if(Par.call(n)==="[object ReadableStream]")return $ar.call(n);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:Par}=Object.prototype,Oar=async function*(n){const r=new AbortController,o={};Nar(n,r,o);try{for await(const[l]of pUe.on(n,"data",{signal:r.signal}))yield l}catch(l){if(o.error!==void 0)throw o.error;if(!r.signal.aborted)throw l}finally{n.destroy()}},Nar=async(n,r,o)=>{try{await pUe.finished(n,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(l){o.error=l}finally{r.abort()}},pUe={},Mar=async(n,{init:r,convertChunk:o,getSize:l,truncateChunk:u,addChunk:d,getFinalChunk:h,finalize:w},{maxBuffer:v=Number.POSITIVE_INFINITY}={})=>{const y=Iar(n),E=r();E.length=0;try{for await(const A of y){const C=Lar(A),R=o[C](A,E);lrn({convertedChunk:R,state:E,getSize:l,truncateChunk:u,addChunk:d,maxBuffer:v})}return Dar({state:E,convertChunk:o,getSize:l,truncateChunk:u,addChunk:d,getFinalChunk:h,maxBuffer:v}),w(E)}catch(A){const C=typeof A=="object"&&A!==null?A:new Error(A);throw C.bufferedData=w(E),C}},Dar=({state:n,getSize:r,truncateChunk:o,addChunk:l,getFinalChunk:u,maxBuffer:d})=>{const h=u(n);h!==void 0&&lrn({convertedChunk:h,state:n,getSize:r,truncateChunk:o,addChunk:l,maxBuffer:d})},lrn=({convertedChunk:n,state:r,getSize:o,truncateChunk:l,addChunk:u,maxBuffer:d})=>{const h=o(n),w=r.length+h;if(w<=d){OWt(n,r,u,w);return}const v=l(n,d-r.length);throw v!==void 0&&OWt(v,r,u,d),new jar},OWt=(n,r,o,l)=>{r.contents=o(n,r,l),r.length=l},Lar=n=>{var l;const r=typeof n;if(r==="string")return"string";if(r!=="object"||n===null)return"others";if((l=globalThis.Buffer)!=null&&l.isBuffer(n))return"buffer";const o=NWt.call(n);return o==="[object ArrayBuffer]"?"arrayBuffer":o==="[object DataView]"?"dataView":Number.isInteger(n.byteLength)&&Number.isInteger(n.byteOffset)&&NWt.call(n.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:NWt}=Object.prototype;class jar extends Error{constructor(){super("maxBuffer exceeded");n7e(this,"name","MaxBufferError")}}const Far=n=>n,Bar=({contents:n})=>n,War=n=>{throw new Error(`Streams in object mode are not supported: ${String(n)}`)},Har=n=>n.length;async function Uar(n,r){return Mar(n,qar,r)}const Gar=()=>({contents:"",textDecoder:new TextDecoder}),uue=(n,{textDecoder:r})=>r.decode(n,{stream:!0}),Var=(n,{contents:r})=>r+n,zar=(n,r)=>n.slice(0,r),Kar=({textDecoder:n})=>{const r=n.decode();return r===""?void 0:r},qar={init:Gar,convertChunk:{string:Far,buffer:uue,arrayBuffer:uue,dataView:uue,typedArray:uue,others:War},getSize:Har,truncateChunk:zar,addChunk:Var,getFinalChunk:Kar,finalize:Bar};function o8(n){return typeof n=="string"||n instanceof String}const Xar="http://www.w3.org/2001/XMLSchema#string";function Hd(n){if(typeof n=="string")return n;if(!n)return"";if(typeof n.id<"u"&&n.termType!=="Quad")return n.id;let r,o,l,u;switch(n.termType){case"NamedNode":return n.value;case"BlankNode":return`_:${n.value}`;case"Variable":return`?${n.value}`;case"DefaultGraph":return"";case"Literal":return n.language?`"${n.value}"@${n.language}`:`"${n.value}"${n.datatype&&n.datatype.value!==Xar?`^^${n.datatype.value}`:""}`;case"Quad":return r=ENe(Hd(n.subject)),o=ENe(Hd(n.predicate)),l=ENe(Hd(n.object)),u=n.graph.termType==="DefaultGraph"?"":` ${Hd(n.graph)}`,`<<${r} ${o} ${l}${u}>>`;default:throw new Error(`Unexpected termType: ${n.termType}`)}}const Jar=/^"(.*".*)(?="[^"]*$)/;function ENe(n){return n.replace(Jar,(r,o)=>`"${o.replace(/"/g,'""')}`)}class Yar{constructor(r){if(this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._ids["><"]=0,this._entities=Object.create(null),this._quads=new Map,r)for(const o of r)this.add(o)}get size(){let r=this._size;if(r!==null)return r;r=0;const o=this._graphs;let l,u;for(const d in o)for(const h in l=o[d].subjects)for(const w in u=l[h])r+=Object.keys(u[w]).length;return this._size=r,this._size}add(r){let o=Hd(r.subject),l=Hd(r.predicate),u=Hd(r.object);const d=Hd(r.graph);let h=this._graphs[d];h||(h=this._graphs[d]={subjects:{},predicates:{},objects:{}},Object.freeze(h));const w=this._ids,v=this._entities;return o=w[o]||(w[v[++this._id]=o]=this._id),l=w[l]||(w[v[++this._id]=l]=this._id),u=w[u]||(w[v[++this._id]=u]=this._id),this._addToIndex(h.subjects,o,l,u),this._addToIndex(h.predicates,l,u,o),this._addToIndex(h.objects,u,o,l),this._setQuad(o,l,u,d,r),this._size=null,this}delete(r){let o=Hd(r.subject),l=Hd(r.predicate),u=Hd(r.object);const d=Hd(r.graph),h=this._ids,w=this._graphs;let v,y,E;if(!(o=h[o])||!(l=h[l])||!(u=h[u])||!(v=w[d])||!(y=v.subjects[o])||!(E=y[l])||!(u in E))return this;this._removeFromIndex(v.subjects,o,l,u),this._removeFromIndex(v.predicates,l,u,o),this._removeFromIndex(v.objects,u,o,l),this._size!==null&&this._size--,this._deleteQuad(o,l,u,d);for(o in v.subjects)return this;return delete w[d],this}has(r){const o=Hd(r.subject),l=Hd(r.predicate),u=Hd(r.object),d=Hd(r.graph),h=this._graphs[d];if(!h)return!1;const w=this._ids;let v,y,E;return o8(o)&&!(v=w[o])||o8(l)&&!(y=w[l])||o8(u)&&!(E=w[u])?!1:this._countInIndex(h.objects,E,v,y)===1}match(r,o,l,u){return this._createDataset(this._match(r,o,l,u))}[Symbol.iterator](){return this._match()[Symbol.iterator]()}_addToIndex(r,o,l,u){const d=r[o]||(r[o]={}),h=d[l]||(d[l]={}),w=u in h;return w||(h[u]=null),!w}_removeFromIndex(r,o,l,u){const d=r[o],h=d[l];delete h[u];for(const w in h)return;delete d[l];for(const w in d)return;delete r[o]}_findInIndex(r,o,l,u,d,h,w,v,y,E){let A,C,R;o&&((A=r,r={})[o]=A[o]);for(const O in r)if(C=r[O],C){l&&((A=C,C={})[l]=A[l]);for(const M in C)if(R=C[M],R){const L=u?u in R?[u]:[]:Object.keys(R);for(let H=0;Hr(o,this))}filter(r){return new this.constructor([...this].filter(o=>r(o,this)))}map(r){return new this.constructor([...this].map(o=>r(o,this)))}match(...r){return super.match(...r)}merge(...[r]){return Tje(new this.constructor([...this]),r)}}function Zar(n){return class extends Qar{import(...[r]){return znn(this,r)}toCanonical(){return Xnn(this)}toStream(){return Ann(this)}async serialize({format:r,prefixes:o=[]}){const l=n.formats.serializers.get(r);return l?Uar(l.import(this.toStream(),{prefixes:o.reduce((u,d)=>Array.isArray(d)?{...u,[d[0]]:d[1]}:d in tje?{...u,[d]:tje[d]}:u,{})})):this.toCanonical()}}}function ecr(){return new EX([car(Zar)],{parent:kar})}const arn=ecr();class Jpe{constructor(r,o){this.Impl=r,this.options=o}import(r,o){const l=new this.Impl(r,{...this.options,...o});return r.on("end",()=>{l.readable||l.emit("end")}),r.on("error",u=>{l.emit("error",u)}),l}}const kNe=new Set(["_write","_writableState","writable"]);function bUe(n){return new Proxy(n,{has(r,o){return kNe.has(o)?!1:Reflect.has(...arguments)},get(r,o){if(kNe.has(o))return;const l=Reflect.get(...arguments);return l&&typeof l.bind=="function"?l.bind(r):l},set(r,o,l){if(!kNe.has(o))return Reflect.set(...arguments)}})}var crn={},nK={},{Buffer:uT}=Kr,gl={},urn=gl.LEFT_BRACE=1,Jfe=gl.RIGHT_BRACE=2,frn=gl.LEFT_BRACKET=3,Ije=gl.RIGHT_BRACKET=4,Yfe=gl.COLON=5,Qde=gl.COMMA=6,drn=gl.TRUE=7,hrn=gl.FALSE=8,prn=gl.NULL=9,Zde=gl.STRING=10,brn=gl.NUMBER=11,k8=gl.START=17,grn=gl.STOP=18,MWt=gl.TRUE1=33,DWt=gl.TRUE2=34,LWt=gl.TRUE3=35,jWt=gl.FALSE1=49,FWt=gl.FALSE2=50,BWt=gl.FALSE3=51,WWt=gl.FALSE4=52,HWt=gl.NULL1=65,UWt=gl.NULL2=66,GWt=gl.NULL3=67,VWt=gl.NUMBER1=81,RNe=gl.NUMBER3=83,sS=gl.STRING1=97,zWt=gl.STRING2=98,KWt=gl.STRING3=99,tcr=gl.STRING4=100,ncr=gl.STRING5=101,qWt=gl.STRING6=102,HD=gl.VALUE=113,xNe=gl.KEY=114,fue=gl.OBJECT=129,due=gl.ARRAY=130,rcr=92,icr=47,ocr=8,scr=12,lcr=10,acr=13,ccr=9,gUe=64*1024;function hue(n){return uT.alloc?uT.alloc(n):new uT(n)}function TT(){this.tState=k8,this.value=void 0,this.string=void 0,this.stringBuffer=hue(gUe),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=HD,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:hue(2),3:hue(3),4:hue(4)},this.offset=-1}TT.toknam=function(n){for(var r=Object.keys(gl),o=0,l=r.length;o=gUe&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=n};am.appendStringBuf=function(n,r,o){var l=n.length;typeof r=="number"&&(typeof o=="number"?o<0?l=n.length-r+o:l=o-r:l=n.length-r),l<0&&(l=0),this.stringBufferOffset+l>gUe&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),n.copy(this.stringBuffer,this.stringBufferOffset,r,o),this.stringBufferOffset+=l};am.write=function(n){typeof n=="string"&&(n=new uT(n));for(var r,o=0,l=n.length;o=48&&r<64)this.string=String.fromCharCode(r),this.tState=RNe;else if(!(r===32||r===9||r===10||r===13))return this.charError(n,o)}else if(this.tState===sS)if(r=n[o],this.bytes_remaining>0){for(var u=0;u=128){if(r<=193||r>244)return this.onError(new Error("Invalid UTF-8 character at position "+o+" in state "+TT.toknam(this.tState)));if(r>=194&&r<=223&&(this.bytes_in_sequence=2),r>=224&&r<=239&&(this.bytes_in_sequence=3),r>=240&&r<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+o>n.length){for(var d=0;d<=n.length-1-o;d++)this.temp_buffs[this.bytes_in_sequence][d]=n[o+d];this.bytes_remaining=o+this.bytes_in_sequence-n.length,o=n.length-1}else this.appendStringBuf(n,o,o+this.bytes_in_sequence),o=o+this.bytes_in_sequence-1}else if(r===34)this.tState=k8,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(Zde,this.string),this.offset+=uT.byteLength(this.string,"utf8")+1,this.string=void 0;else if(r===92)this.tState=zWt;else if(r>=32)this.appendStringChar(r);else return this.charError(n,o);else if(this.tState===zWt)if(r=n[o],r===34)this.appendStringChar(r),this.tState=sS;else if(r===92)this.appendStringChar(rcr),this.tState=sS;else if(r===47)this.appendStringChar(icr),this.tState=sS;else if(r===98)this.appendStringChar(ocr),this.tState=sS;else if(r===102)this.appendStringChar(scr),this.tState=sS;else if(r===110)this.appendStringChar(lcr),this.tState=sS;else if(r===114)this.appendStringChar(acr),this.tState=sS;else if(r===116)this.appendStringChar(ccr),this.tState=sS;else if(r===117)this.unicode="",this.tState=KWt;else return this.charError(n,o);else if(this.tState===KWt||this.tState===tcr||this.tState===ncr||this.tState===qWt)if(r=n[o],r>=48&&r<64||r>64&&r<=70||r>96&&r<=102){if(this.unicode+=String.fromCharCode(r),this.tState++===qWt){var h=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&h>=56320&&h<57344?(this.appendStringBuf(new uT(String.fromCharCode(this.highSurrogate,h))),this.highSurrogate=void 0):this.highSurrogate===void 0&&h>=55296&&h<56320?this.highSurrogate=h:(this.highSurrogate!==void 0&&(this.appendStringBuf(new uT(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new uT(String.fromCharCode(h)))),this.tState=sS}}else return this.charError(n,o);else if(this.tState===VWt||this.tState===RNe)switch(r=n[o],r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(r),this.tState=RNe;break;default:this.tState=k8;var w=this.numberReviver(this.string,n,o);if(w)return w;this.offset+=this.string.length-1,this.string=void 0,o--;break}else if(this.tState===MWt)if(n[o]===114)this.tState=DWt;else return this.charError(n,o);else if(this.tState===DWt)if(n[o]===117)this.tState=LWt;else return this.charError(n,o);else if(this.tState===LWt)if(n[o]===101)this.tState=k8,this.onToken(drn,!0),this.offset+=3;else return this.charError(n,o);else if(this.tState===jWt)if(n[o]===97)this.tState=FWt;else return this.charError(n,o);else if(this.tState===FWt)if(n[o]===108)this.tState=BWt;else return this.charError(n,o);else if(this.tState===BWt)if(n[o]===115)this.tState=WWt;else return this.charError(n,o);else if(this.tState===WWt)if(n[o]===101)this.tState=k8,this.onToken(hrn,!1),this.offset+=4;else return this.charError(n,o);else if(this.tState===HWt)if(n[o]===117)this.tState=UWt;else return this.charError(n,o);else if(this.tState===UWt)if(n[o]===108)this.tState=GWt;else return this.charError(n,o);else if(this.tState===GWt)if(n[o]===108)this.tState=k8,this.onToken(prn,null),this.offset+=3;else return this.charError(n,o)};am.onToken=function(n,r){};am.parseError=function(n,r){this.tState=grn,this.onError(new Error("Unexpected "+TT.toknam(n)+(r?"("+JSON.stringify(r)+")":"")+" in state "+TT.toknam(this.state)))};am.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})};am.pop=function(){var n=this.value,r=this.stack.pop();this.value=r.value,this.key=r.key,this.mode=r.mode,this.emit(n),this.mode||(this.state=HD)};am.emit=function(n){this.mode&&(this.state=Qde),this.onValue(n)};am.onValue=function(n){};am.onToken=function(n,r){if(this.state===HD)if(n===Zde||n===brn||n===drn||n===hrn||n===prn)this.value&&(this.value[this.key]=r),this.emit(r);else if(n===urn)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=xNe,this.mode=fue;else if(n===frn)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=due,this.state=HD;else if(n===Jfe)if(this.mode===fue)this.pop();else return this.parseError(n,r);else if(n===Ije)if(this.mode===due)this.pop();else return this.parseError(n,r);else return this.parseError(n,r);else if(this.state===xNe)if(n===Zde)this.key=r,this.state=Yfe;else if(n===Jfe)this.pop();else return this.parseError(n,r);else if(this.state===Yfe)if(n===Yfe)this.state=HD;else return this.parseError(n,r);else if(this.state===Qde)if(n===Qde)this.mode===due?(this.key++,this.state=HD):this.mode===fue&&(this.state=xNe);else if(n===Ije&&this.mode===due||n===Jfe&&this.mode===fue)this.pop();else return this.parseError(n,r);else return this.parseError(n,r)};am.numberReviver=function(n,r,o){var l=Number(n);if(isNaN(l))return this.charError(r,o);n.match(/[0-9]+/)==n&&l.toString()!=n?this.onToken(Zde,n):this.onToken(brn,l)};TT.C=gl;var ucr=TT,a1={},Ype={},gJ={},vT={};Object.defineProperty(vT,"__esModule",{value:!0});vT.removeDotSegmentsOfPath=vT.removeDotSegments=vT.resolve=void 0;function fcr(n,r){r=r||"";const o=r.indexOf("#");if(o>0&&(r=r.substr(0,o)),!n.length){if(r.indexOf(":")<0)throw new Error(`Found invalid baseIRI '${r}' for value '${n}'`);return r}if(n.startsWith("?")){const y=r.indexOf("?");return y>0&&(r=r.substr(0,y)),r+n}if(n.startsWith("#"))return r+n;if(!r.length){const y=n.indexOf(":");if(y<0)throw new Error(`Found invalid relative IRI '${n}' for a missing baseIRI`);return R8(n,y)}const l=n.indexOf(":");if(l>=0)return R8(n,l);const u=r.indexOf(":");if(u<0)throw new Error(`Found invalid baseIRI '${r}' for value '${n}'`);const d=r.substr(0,u+1);if(n.indexOf("//")===0)return d+R8(n,l);let h;if(r.indexOf("//",u)===u+1){if(h=r.indexOf("/",u+3),h<0)return r.length>u+3?r+"/"+R8(n,l):d+R8(n,l)}else if(h=r.indexOf("/",u+1),h<0)return d+R8(n,l);if(n.indexOf("/")===0)return r.substr(0,h)+ehe(n);let w=r.substr(h);const v=w.lastIndexOf("/");return v>=0&&vl.join("")).join("/")}vT.removeDotSegments=ehe;function R8(n,r){let o=r+1;r>=0?n[r+1]==="/"&&n[r+2]==="/"&&(o=r+3):n[0]==="/"&&n[1]==="/"&&(o=2);const l=n.indexOf("/",o);if(l<0)return n;const u=n.substr(0,l),d=n.substr(l);return u+ehe(d)}vT.removeDotSegmentsOfPath=R8;function XWt(n){return!n||n==="#"||n==="?"||n==="/"}(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d),Object.defineProperty(l,h,{enumerable:!0,get:function(){return u[d]}})}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(vT,n)})(gJ);var pj={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.ERROR_CODES=n.ErrorCoded=void 0;class r extends Error{constructor(l,u){super(l),this.code=u}}n.ErrorCoded=r,function(o){o.COLLIDING_KEYWORDS="colliding keywords",o.CONFLICTING_INDEXES="conflicting indexes",o.CYCLIC_IRI_MAPPING="cyclic IRI mapping",o.INVALID_ID_VALUE="invalid @id value",o.INVALID_INDEX_VALUE="invalid @index value",o.INVALID_NEST_VALUE="invalid @nest value",o.INVALID_PREFIX_VALUE="invalid @prefix value",o.INVALID_PROPAGATE_VALUE="invalid @propagate value",o.INVALID_REVERSE_VALUE="invalid @reverse value",o.INVALID_IMPORT_VALUE="invalid @import value",o.INVALID_VERSION_VALUE="invalid @version value",o.INVALID_BASE_IRI="invalid base IRI",o.INVALID_CONTAINER_MAPPING="invalid container mapping",o.INVALID_CONTEXT_ENTRY="invalid context entry",o.INVALID_CONTEXT_NULLIFICATION="invalid context nullification",o.INVALID_DEFAULT_LANGUAGE="invalid default language",o.INVALID_INCLUDED_VALUE="invalid @included value",o.INVALID_IRI_MAPPING="invalid IRI mapping",o.INVALID_JSON_LITERAL="invalid JSON literal",o.INVALID_KEYWORD_ALIAS="invalid keyword alias",o.INVALID_LANGUAGE_MAP_VALUE="invalid language map value",o.INVALID_LANGUAGE_MAPPING="invalid language mapping",o.INVALID_LANGUAGE_TAGGED_STRING="invalid language-tagged string",o.INVALID_LANGUAGE_TAGGED_VALUE="invalid language-tagged value",o.INVALID_LOCAL_CONTEXT="invalid local context",o.INVALID_REMOTE_CONTEXT="invalid remote context",o.INVALID_REVERSE_PROPERTY="invalid reverse property",o.INVALID_REVERSE_PROPERTY_MAP="invalid reverse property map",o.INVALID_REVERSE_PROPERTY_VALUE="invalid reverse property value",o.INVALID_SCOPED_CONTEXT="invalid scoped context",o.INVALID_SCRIPT_ELEMENT="invalid script element",o.INVALID_SET_OR_LIST_OBJECT="invalid set or list object",o.INVALID_TERM_DEFINITION="invalid term definition",o.INVALID_TYPE_MAPPING="invalid type mapping",o.INVALID_TYPE_VALUE="invalid type value",o.INVALID_TYPED_VALUE="invalid typed value",o.INVALID_VALUE_OBJECT="invalid value object",o.INVALID_VALUE_OBJECT_VALUE="invalid value object value",o.INVALID_VOCAB_MAPPING="invalid vocab mapping",o.IRI_CONFUSED_WITH_PREFIX="IRI confused with prefix",o.KEYWORD_REDEFINITION="keyword redefinition",o.LOADING_DOCUMENT_FAILED="loading document failed",o.LOADING_REMOTE_CONTEXT_FAILED="loading remote context failed",o.MULTIPLE_CONTEXT_LINK_HEADERS="multiple context link headers",o.PROCESSING_MODE_CONFLICT="processing mode conflict",o.PROTECTED_TERM_REDEFINITION="protected term redefinition",o.CONTEXT_OVERFLOW="context overflow",o.INVALID_BASE_DIRECTION="invalid base direction",o.RECURSIVE_CONTEXT_INCLUSION="recursive context inclusion",o.INVALID_STREAMING_KEY_ORDER="invalid streaming key order",o.INVALID_EMBEDDED_NODE="invalid embedded node",o.INVALID_ANNOTATION="invalid annotation"}(n.ERROR_CODES||(n.ERROR_CODES={}))})(pj);var wJ={},dcr=/^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i,hcr=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,pcr=/\s|\uFEFF|\xA0/,bcr=/\r?\n[\x20\x09]+/g,gcr=/[;,"]/,wcr=/[;,"]|\s/,mcr=/^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/,kR={IDLE:1,URI:2,ATTR:4};function JWt(n){return n.replace(hcr,"")}function Qfe(n){return pcr.test(n)}function ycr(n,r){for(;Qfe(n[r]);)r++;return r}function YWt(n){return wcr.test(n)||!mcr.test(n)}function vcr(n,r){return Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every(o=>o in r&&n[o]===r[o])}class cu{constructor(r){this.refs=[],r&&this.parse(r)}rel(r){for(var o=[],l=r.toLowerCase(),u=0;uvcr(o,r))||this.refs.push(r),this}has(r,o){r=r.toLowerCase(),o=o.toLowerCase();for(var l=0;l",d);if(w===-1)throw new Error("Expected end of URI delimiter at offset "+d);h={uri:r.slice(d+1,w)},d=w,l=kR.URI}else throw new Error('Unexpected character "'+r[d]+'" at offset '+d);d++}else if(l===kR.URI)if(Qfe(r[d])){d++;continue}else if(r[d]===";")l=kR.ATTR,d++;else if(r[d]===",")l=kR.IDLE,d++;else throw new Error('Unexpected character "'+r[d]+'" at offset '+d);else if(l===kR.ATTR){if(r[d]===";"||Qfe(r[d])){d++;continue}var w=r.indexOf("=",d);w===-1&&(w=r.indexOf(";",d)),w===-1&&(w=r.length);var v=JWt(r.slice(d,w)).toLowerCase(),y="";if(d=w+1,d=ycr(r,d),r[d]==='"')for(d++;d"),r.push(o);return r.join(", ")}}cu.isCompatibleEncoding=function(n){return dcr.test(n)};cu.parse=function(n,r){return new cu().parse(n,r)};cu.isSingleOccurenceAttr=function(n){return n==="rel"||n==="type"||n==="media"||n==="title"||n==="title*"};cu.isTokenAttr=function(n){return n==="rel"||n==="type"||n==="anchor"};cu.escapeQuotes=function(n){return n.replace(/"/g,'\\"')};cu.expandRelations=function(n){var r=n.rel.split(" ");return r.map(function(o){var l=Object.assign({},n);return l.rel=o,l})};cu.parseExtendedValue=function(n){var r=/([^']+)?(?:'([^']*)')?(.+)/.exec(n);return{language:r[2].toLowerCase(),encoding:cu.isCompatibleEncoding(r[1])?null:r[1].toLowerCase(),value:cu.isCompatibleEncoding(r[1])?decodeURIComponent(r[3]):r[3]}};cu.formatExtendedAttribute=function(n,r){var o=(r.encoding||"utf-8").toUpperCase(),l=r.language||"en",u="";return Kr.Buffer.isBuffer(r.value)&&cu.isCompatibleEncoding(o)?u=r.value.toString(o):Kr.Buffer.isBuffer(r.value)?u=r.value.toString("hex").replace(/[0-9a-f]{2}/gi,"%$1"):u=encodeURIComponent(r.value),n+"="+o+"'"+l+"'"+u};cu.formatAttribute=function(n,r){return Array.isArray(r)?r.map(o=>cu.formatAttribute(n,o)).join("; "):n[n.length-1]==="*"||typeof r!="string"?cu.formatExtendedAttribute(n,r):(cu.isTokenAttr(n)?r=YWt(r)?'"'+cu.escapeQuotes(r)+'"':cu.escapeQuotes(r):YWt(r)&&(r=encodeURIComponent(r),r=r.replace(/%20/g," ").replace(/%2C/g,",").replace(/%3B/g,";"),r='"'+r+'"'),n+"="+r)};var wrn=cu;Object.defineProperty(wJ,"__esModule",{value:!0});wJ.FetchDocumentLoader=void 0;const QWt=pj,_cr=wrn,Scr=gJ;class Ecr{constructor(r){this.fetcher=r}async load(r){const o=await(this.fetcher||fetch)(r,{headers:new Headers({accept:"application/ld+json"})});if(o.ok&&o.headers){let l=o.headers.get("Content-Type");if(l){const u=l.indexOf(";");u>0&&(l=l.substr(0,u))}if(l==="application/ld+json")return await o.json();if(o.headers.has("Link")){let u;if(o.headers.forEach((d,h)=>{if(h==="link"){const w=(0,_cr.parse)(d);for(const v of w.get("type","application/ld+json"))if(v.rel==="alternate"){if(u)throw new Error("Multiple JSON-LD alternate links were found on "+r);u=(0,Scr.resolve)(v.uri,r)}}}),u)return this.load(u)}throw new QWt.ErrorCoded(`Unsupported JSON-LD media type ${l}`,QWt.ERROR_CODES.LOADING_DOCUMENT_FAILED)}else throw new Error(o.statusText||`Status code: ${o.status}`)}}wJ.FetchDocumentLoader=Ecr;var wUe={},bj={};Object.defineProperty(bj,"__esModule",{value:!0});bj.Util=void 0;let cm=class CR{static isCompactIri(r){return r.indexOf(":")>0&&!(r&&r[0]==="#")}static getPrefix(r,o){if(r&&r[0]==="#")return null;const l=r.indexOf(":");if(l>=0){if(r.length>l+1&&r.charAt(l+1)==="/"&&r.charAt(l+2)==="/")return null;const u=r.substr(0,l);if(u==="_")return null;if(o[u])return u}return null}static getContextValueId(r){if(r===null||typeof r=="string")return r;const o=r["@id"];return o||null}static isSimpleTermDefinitionPrefix(r,o){return!CR.isPotentialKeyword(r)&&(o.allowPrefixNonGenDelims||typeof r=="string"&&(r[0]==="_"||CR.isPrefixIriEndingWithGenDelim(r)))}static isPotentialKeyword(r){return typeof r=="string"&&CR.KEYWORD_REGEX.test(r)}static isPrefixIriEndingWithGenDelim(r){return CR.ENDS_WITH_GEN_DELIM.test(r)}static isPrefixValue(r){return r&&(typeof r=="string"||r&&typeof r=="object")}static isValidIri(r){return!!(r&&CR.IRI_REGEX.test(r))}static isValidIriWeak(r){return!!r&&r[0]!==":"&&CR.IRI_REGEX_WEAK.test(r)}static isValidKeyword(r){return CR.VALID_KEYWORDS[r]}static isTermProtected(r,o){const l=r[o];return typeof l!="string"&&l&&l["@protected"]}static hasProtectedTerms(r){for(const o of Object.keys(r))if(CR.isTermProtected(r,o))return!0;return!1}static isReservedInternalKeyword(r){return r.startsWith("@__")}static deepEqual(r,o){const l=Object.keys(r),u=Object.keys(o);return l.length!==u.length?!1:l.every(d=>{const h=r[d],w=o[d];return h===w||h!==null&&w!==null&&typeof h=="object"&&typeof w=="object"&&this.deepEqual(h,w)})}};cm.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`#]*(#[^#]*)?$/;cm.IRI_REGEX_WEAK=/(?::[^:])|\//;cm.KEYWORD_REGEX=/^@[a-z]+$/i;cm.ENDS_WITH_GEN_DELIM=/[:/?#\[\]@]$/;cm.REGEX_LANGUAGE_TAG=/^[a-zA-Z]+(-[a-zA-Z0-9]+)*$/;cm.REGEX_DIRECTION_TAG=/^(ltr)|(rtl)$/;cm.VALID_KEYWORDS={"@annotation":!0,"@base":!0,"@container":!0,"@context":!0,"@direction":!0,"@graph":!0,"@id":!0,"@import":!0,"@included":!0,"@index":!0,"@json":!0,"@language":!0,"@list":!0,"@nest":!0,"@none":!0,"@prefix":!0,"@propagate":!0,"@protected":!0,"@reverse":!0,"@set":!0,"@type":!0,"@value":!0,"@version":!0,"@vocab":!0};cm.EXPAND_KEYS_BLACKLIST=["@base","@vocab","@language","@version","@direction"];cm.ALIAS_DOMAIN_BLACKLIST=["@container","@graph","@id","@index","@list","@nest","@none","@prefix","@reverse","@set","@type","@value","@version"];cm.ALIAS_RANGE_BLACKLIST=["@context","@preserve"];cm.CONTAINERS=["@list","@set","@index","@language","@graph","@id","@type"];cm.CONTAINERS_1_0=["@list","@set","@index"];bj.Util=cm;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultExpandOptions=n.JsonLdContextNormalized=void 0;const r=gJ,o=pj,l=bj;class u{constructor(h){this.contextRaw=h}getContextRaw(){return this.contextRaw}expandTerm(h,w,v=n.defaultExpandOptions){const y=this.contextRaw[h];if(y===null||y&&y["@id"]===null)return null;let E=!0;if(y&&w){const L=l.Util.getContextValueId(y);if(L&&L!==h)if(typeof L!="string"||!l.Util.isValidIri(L)&&!l.Util.isValidKeyword(L))l.Util.isPotentialKeyword(L)||(E=!1);else return L}const A=l.Util.getPrefix(h,this.contextRaw),C=this.contextRaw["@vocab"],R=(!!C||C==="")&&C.indexOf(":")<0,O=this.contextRaw["@base"],M=l.Util.isPotentialKeyword(h);if(A){const L=this.contextRaw[A],H=l.Util.getContextValueId(L);if(H){if(typeof L=="string"||!v.allowPrefixForcing){if(!l.Util.isSimpleTermDefinitionPrefix(H,v))return h}else if(H[0]!=="_"&&!M&&!L["@prefix"]&&!(h in this.contextRaw))return h;return H+h.substr(A.length+1)}}else if(w&&(C||C===""||v.allowVocabRelativeToBase&&O&&R)&&!M&&!l.Util.isCompactIri(h))if(R){if(v.allowVocabRelativeToBase)return(C||O?(0,r.resolve)(C,O):"")+h;throw new o.ErrorCoded(`Relative vocab expansion for term '${h}' with vocab '${C}' is not allowed.`,o.ERROR_CODES.INVALID_VOCAB_MAPPING)}else return C+h;else if(!w&&O&&!M&&!l.Util.isCompactIri(h))return(0,r.resolve)(h,O);if(E)return h;throw new o.ErrorCoded(`Invalid IRI mapping found for context entry '${h}': '${JSON.stringify(y)}'`,o.ERROR_CODES.INVALID_IRI_MAPPING)}compactIri(h,w){if(w&&this.contextRaw["@vocab"]&&h.startsWith(this.contextRaw["@vocab"]))return h.substr(this.contextRaw["@vocab"].length);if(!w&&this.contextRaw["@base"]&&h.startsWith(this.contextRaw["@base"]))return h.substr(this.contextRaw["@base"].length);const v={prefix:"",suffix:h};for(const y in this.contextRaw){const E=this.contextRaw[y];if(E&&!l.Util.isPotentialKeyword(y)){const A=l.Util.getContextValueId(E);if(h.startsWith(A)){const C=h.substr(A.length);if(C)C.length=0&&(d!=="@type"||typeof u[d]=="object"&&!(u[d]["@protected"]||u[d]["@container"]==="@set")))throw new Sr.ErrorCoded(`Keywords can not be aliased to something else. +Tried mapping ${d} to ${JSON.stringify(h)}`,Sr.ERROR_CODES.KEYWORD_REDEFINITION);if(Xo.Util.ALIAS_RANGE_BLACKLIST.indexOf(Xo.Util.getContextValueId(h))>=0)throw new Sr.ErrorCoded(`Aliasing to certain keywords is not allowed. +Tried mapping ${d} to ${JSON.stringify(h)}`,Sr.ERROR_CODES.INVALID_KEYWORD_ALIAS);if(h&&Xo.Util.isPotentialKeyword(Xo.Util.getContextValueId(h))&&h["@prefix"]===!0)throw new Sr.ErrorCoded(`Tried to use keyword aliases as prefix: '${d}': '${JSON.stringify(h)}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION);for(;Xo.Util.isPrefixValue(u[d]);){const w=u[d];let v=!1;if(typeof w=="string")u[d]=r.expandTerm(w,!0),v=v||w!==u[d];else{const y=w["@id"],E=w["@type"],A=!("@prefix"in w)||Xo.Util.isValidIri(d);if("@id"in w)y!=null&&typeof y=="string"&&(u[d]=Object.assign(Object.assign({},u[d]),{"@id":r.expandTerm(y,!0)}),v=v||y!==u[d]["@id"]);else if(!Xo.Util.isPotentialKeyword(d)&&A){const C=r.expandTerm(d,!0);C!==d&&(u[d]=Object.assign(Object.assign({},u[d]),{"@id":C}),v=!0)}if(E&&typeof E=="string"&&E!=="@vocab"&&(!w["@container"]||!w["@container"]["@type"])&&A){let C=r.expandTerm(E,!0);o&&E===C&&(C=r.expandTerm(E,!1)),C!==E&&(v=!0,u[d]=Object.assign(Object.assign({},u[d]),{"@type":C}))}}if(!v)break}}}normalize(r,{processingMode:o,normalizeLanguageTags:l}){if(l||o===1)for(const u of Object.keys(r))if(u==="@language"&&typeof r[u]=="string")r[u]=r[u].toLowerCase();else{const d=r[u];if(d&&typeof d=="object"&&typeof d["@language"]=="string"){const h=d["@language"].toLowerCase();h!==d["@language"]&&(r[u]=Object.assign(Object.assign({},d),{"@language":h}))}}}containersToHash(r){for(const o of Object.keys(r)){const l=r[o];if(l&&typeof l=="object"){if(typeof l["@container"]=="string")r[o]=Object.assign(Object.assign({},l),{"@container":{[l["@container"]]:!0}});else if(Array.isArray(l["@container"])){const u={};for(const d of l["@container"])u[d]=!0;r[o]=Object.assign(Object.assign({},l),{"@container":u})}}}}applyScopedProtected(r,{processingMode:o},l){if(o&&o>=1.1&&r["@protected"]){for(const u of Object.keys(r))if(!Xo.Util.isReservedInternalKeyword(u)&&!Xo.Util.isPotentialKeyword(u)&&!Xo.Util.isTermProtected(r,u)){const d=r[u];d&&typeof d=="object"?"@protected"in r[u]||(r[u]=Object.assign(Object.assign({},r[u]),{"@protected":!0})):(r[u]={"@id":d,"@protected":!0},Xo.Util.isSimpleTermDefinitionPrefix(d,l)&&(r[u]=Object.assign(Object.assign({},r[u]),{"@prefix":!0})))}delete r["@protected"]}}validateKeywordRedefinitions(r,o,l,u){for(const d of u??Object.keys(o))if(Xo.Util.isTermProtected(r,d)&&(typeof o[d]=="string"?o[d]={"@id":o[d],"@protected":!0}:o[d]=Object.assign(Object.assign({},o[d]),{"@protected":!0}),!Xo.Util.deepEqual(r[d],o[d])))throw new Sr.ErrorCoded(`Attempted to override the protected keyword ${d} from ${JSON.stringify(Xo.Util.getContextValueId(r[d]))} to ${JSON.stringify(Xo.Util.getContextValueId(o[d]))}`,Sr.ERROR_CODES.PROTECTED_TERM_REDEFINITION)}validate(r,{processingMode:o}){for(const l of Object.keys(r)){if(Xo.Util.isReservedInternalKeyword(l))continue;if(l==="")throw new Sr.ErrorCoded(`The empty term is not allowed, got: '${l}': '${JSON.stringify(r[l])}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION);const u=r[l],d=typeof u;if(Xo.Util.isPotentialKeyword(l)){switch(l.substr(1)){case"vocab":if(u!==null&&d!=="string")throw new Sr.ErrorCoded(`Found an invalid @vocab IRI: ${u}`,Sr.ERROR_CODES.INVALID_VOCAB_MAPPING);break;case"base":if(u!==null&&d!=="string")throw new Sr.ErrorCoded(`Found an invalid @base IRI: ${r[l]}`,Sr.ERROR_CODES.INVALID_BASE_IRI);break;case"language":u!==null&&IR.validateLanguage(u,!0,Sr.ERROR_CODES.INVALID_DEFAULT_LANGUAGE);break;case"version":if(u!==null&&d!=="number")throw new Sr.ErrorCoded(`Found an invalid @version number: ${u}`,Sr.ERROR_CODES.INVALID_VERSION_VALUE);break;case"direction":u!==null&&IR.validateDirection(u,!0);break;case"propagate":if(o===1)throw new Sr.ErrorCoded(`Found an illegal @propagate keyword: ${u}`,Sr.ERROR_CODES.INVALID_CONTEXT_ENTRY);if(u!==null&&d!=="boolean")throw new Sr.ErrorCoded(`Found an invalid @propagate value: ${u}`,Sr.ERROR_CODES.INVALID_PROPAGATE_VALUE);break}if(Xo.Util.isValidKeyword(l)&&Xo.Util.isValidKeyword(Xo.Util.getContextValueId(u)))throw new Sr.ErrorCoded(`Illegal keyword alias in term value, found: '${l}': '${Xo.Util.getContextValueId(u)}'`,Sr.ERROR_CODES.KEYWORD_REDEFINITION);continue}if(u!==null)switch(d){case"string":if(Xo.Util.getPrefix(u,r)===l)throw new Sr.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.CYCLIC_IRI_MAPPING);if(Xo.Util.isValidIriWeak(l)){if(u==="@type")throw new Sr.ErrorCoded(`IRIs can not be mapped to @type, found: '${l}': '${u}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);if(Xo.Util.isValidIri(u)&&u!==new lS.JsonLdContextNormalized(r).expandTerm(l))throw new Sr.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${l}': '${u}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING)}break;case"object":if(!Xo.Util.isCompactIri(l)&&!("@id"in u)&&(u["@type"]==="@id"?!r["@base"]:!r["@vocab"]))throw new Sr.ErrorCoded(`Missing @id in context entry: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);for(const h of Object.keys(u)){const w=u[h];if(w)switch(h){case"@id":if(Xo.Util.isValidKeyword(w)&&w!=="@type"&&w!=="@id"&&w!=="@graph"&&w!=="@nest")throw new Sr.ErrorCoded(`Illegal keyword alias in term value, found: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);if(Xo.Util.isValidIriWeak(l)){if(w==="@type")throw new Sr.ErrorCoded(`IRIs can not be mapped to @type, found: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);if(Xo.Util.isValidIri(w)&&w!==new lS.JsonLdContextNormalized(r).expandTerm(l))throw new Sr.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING)}if(typeof w!="string")throw new Sr.ErrorCoded(`Detected non-string @id in context entry: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_IRI_MAPPING);if(Xo.Util.getPrefix(w,r)===l)throw new Sr.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.CYCLIC_IRI_MAPPING);break;case"@type":if(u["@container"]==="@type"&&w!=="@id"&&w!=="@vocab")throw new Sr.ErrorCoded(`@container: @type only allows @type: @id or @vocab, but got: '${l}': '${w}'`,Sr.ERROR_CODES.INVALID_TYPE_MAPPING);if(typeof w!="string")throw new Sr.ErrorCoded(`The value of an '@type' must be a string, got '${JSON.stringify(d)}'`,Sr.ERROR_CODES.INVALID_TYPE_MAPPING);if(w!=="@id"&&w!=="@vocab"&&(o===1||w!=="@json")&&(o===1||w!=="@none")&&(w[0]==="_"||!Xo.Util.isValidIri(w)))throw new Sr.ErrorCoded(`A context @type must be an absolute IRI, found: '${l}': '${w}'`,Sr.ERROR_CODES.INVALID_TYPE_MAPPING);break;case"@reverse":if(typeof w=="string"&&u["@id"]&&u["@id"]!==w)throw new Sr.ErrorCoded(`Found non-matching @id and @reverse term values in '${l}':'${w}' and '${u["@id"]}'`,Sr.ERROR_CODES.INVALID_REVERSE_PROPERTY);if("@nest"in u)throw new Sr.ErrorCoded(`@nest is not allowed in the reverse property '${l}'`,Sr.ERROR_CODES.INVALID_REVERSE_PROPERTY);break;case"@container":if(o===1&&(Object.keys(w).length>1||Xo.Util.CONTAINERS_1_0.indexOf(Object.keys(w)[0])<0))throw new Sr.ErrorCoded(`Invalid term @container for '${l}' ('${Object.keys(w)}') in 1.0, must be only one of ${Xo.Util.CONTAINERS_1_0.join(", ")}`,Sr.ERROR_CODES.INVALID_CONTAINER_MAPPING);for(const v of Object.keys(w)){if(v==="@list"&&u["@reverse"])throw new Sr.ErrorCoded(`Term value can not be @container: @list and @reverse at the same time on '${l}'`,Sr.ERROR_CODES.INVALID_REVERSE_PROPERTY);if(Xo.Util.CONTAINERS.indexOf(v)<0)throw new Sr.ErrorCoded(`Invalid term @container for '${l}' ('${v}'), must be one of ${Xo.Util.CONTAINERS.join(", ")}`,Sr.ERROR_CODES.INVALID_CONTAINER_MAPPING)}break;case"@language":IR.validateLanguage(w,!0,Sr.ERROR_CODES.INVALID_LANGUAGE_MAPPING);break;case"@direction":IR.validateDirection(w,!0);break;case"@prefix":if(w!==null&&typeof w!="boolean")throw new Sr.ErrorCoded(`Found an invalid term @prefix boolean in: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_PREFIX_VALUE);if(!("@id"in u)&&!Xo.Util.isValidIri(l))throw new Sr.ErrorCoded(`Invalid @prefix definition for '${l}' ('${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@index":if(o===1||!u["@container"]||!u["@container"]["@index"])throw new Sr.ErrorCoded(`Attempt to add illegal key to value object: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@nest":if(Xo.Util.isPotentialKeyword(w)&&w!=="@nest")throw new Sr.ErrorCoded(`Found an invalid term @nest value in: '${l}': '${JSON.stringify(u)}'`,Sr.ERROR_CODES.INVALID_NEST_VALUE)}}break;default:throw new Sr.ErrorCoded(`Found an invalid term value: '${l}': '${u}'`,Sr.ERROR_CODES.INVALID_TERM_DEFINITION)}}}applyBaseEntry(r,o,l){return typeof r=="string"||(l&&!("@base"in r)&&o.parentContext&&typeof o.parentContext=="object"&&"@base"in o.parentContext&&(r["@base"]=o.parentContext["@base"],o.parentContext["@__baseDocument"]&&(r["@__baseDocument"]=!0)),o.baseIRI&&!o.external&&("@base"in r?r["@base"]!==null&&typeof r["@base"]=="string"&&!Xo.Util.isValidIri(r["@base"])&&(r["@base"]=(0,ZWt.resolve)(r["@base"],o.parentContext&&o.parentContext["@base"]||o.baseIRI)):(r["@base"]=o.baseIRI,r["@__baseDocument"]=!0))),r}normalizeContextIri(r,o){if(!Xo.Util.isValidIri(r))try{r=(0,ZWt.resolve)(r,o)}catch{throw new Error(`Invalid context IRI: ${r}`)}return this.redirectSchemaOrgHttps&&r.startsWith("http://schema.org")&&(r="https://schema.org/"),r}async parseInnerContexts(r,o,l){for(const u of l??Object.keys(r)){const d=r[u];if(d&&typeof d=="object"&&"@context"in d&&d["@context"]!==null&&!o.ignoreScopedContexts){if(this.validateContext)try{const h=Object.assign(Object.assign({},r),{[u]:Object.assign({},r[u])});delete h[u]["@context"],await this.parse(d["@context"],Object.assign(Object.assign({},o),{external:!1,parentContext:h,ignoreProtection:!0,ignoreRemoteScopedContexts:!0,ignoreScopedContexts:!0}))}catch(h){throw new Sr.ErrorCoded(h.message,Sr.ERROR_CODES.INVALID_SCOPED_CONTEXT)}r[u]=Object.assign(Object.assign({},d),{"@context":(await this.parse(d["@context"],Object.assign(Object.assign({},o),{external:!1,minimalProcessing:!0,ignoreRemoteScopedContexts:!0,parentContext:r}))).getContextRaw()})}}return r}async parse(r,o={},l={}){const{baseIRI:u,parentContext:d,external:h,processingMode:w=IR.DEFAULT_PROCESSING_MODE,normalizeLanguageTags:v,ignoreProtection:y,minimalProcessing:E}=o,A=o.remoteContexts||{};if(Object.keys(A).length>=this.remoteContextsDepthLimit)throw new Sr.ErrorCoded("Detected an overflow in remote context inclusions: "+Object.keys(A),Sr.ERROR_CODES.CONTEXT_OVERFLOW);if(r==null){if(!y&&d&&Xo.Util.hasProtectedTerms(d))throw new Sr.ErrorCoded("Illegal context nullification when terms are protected",Sr.ERROR_CODES.INVALID_CONTEXT_NULLIFICATION);return new lS.JsonLdContextNormalized(this.applyBaseEntry({},o,!1))}else if(typeof r=="string"){const C=this.normalizeContextIri(r,u),R=this.getOverriddenLoad(C,o);if(R)return new lS.JsonLdContextNormalized(R);const O=await this.parse(await this.load(C),Object.assign(Object.assign({},o),{baseIRI:C,external:!0,remoteContexts:Object.assign(Object.assign({},A),{[C]:!0})}));return this.applyBaseEntry(O.getContextRaw(),o,!0),O}else if(Array.isArray(r)){const C=[],R=await Promise.all(r.map((M,L)=>{if(typeof M=="string"){const H=this.normalizeContextIri(M,u);C[L]=H;const G=this.getOverriddenLoad(H,o);return G||this.load(H)}else return M}));if(E)return new lS.JsonLdContextNormalized(R);const O=await R.reduce((M,L,H)=>M.then(G=>this.parse(L,Object.assign(Object.assign({},o),{baseIRI:C[H]||o.baseIRI,external:!!C[H]||o.external,parentContext:G.getContextRaw(),remoteContexts:C[H]?Object.assign(Object.assign({},A),{[C[H]]:!0}):A}),{skipValidation:H=1.1){if(typeof r["@import"]!="string")throw new Sr.ErrorCoded("An @import value must be a string, but got "+typeof r["@import"],Sr.ERROR_CODES.INVALID_IMPORT_VALUE);C=await this.loadImportContext(this.normalizeContextIri(r["@import"],u)),delete r["@import"]}else throw new Sr.ErrorCoded("Context importing is not supported in JSON-LD 1.0",Sr.ERROR_CODES.INVALID_CONTEXT_ENTRY);this.applyScopedProtected(C,{processingMode:w},lS.defaultExpandOptions);const R=Object.assign(C,r);this.idifyReverseTerms(R),this.normalize(R,{processingMode:w,normalizeLanguageTags:v}),this.applyScopedProtected(R,{processingMode:w},lS.defaultExpandOptions);const O=Object.keys(R),M=[];if(typeof d=="object")for(const H in d)H in R?M.push(H):R[H]=d[H];await this.parseInnerContexts(R,o,O);const L=new lS.JsonLdContextNormalized(R);return(R&&R["@version"]||IR.DEFAULT_PROCESSING_MODE)>=1.1&&(r["@vocab"]&&typeof r["@vocab"]=="string"||r["@vocab"]==="")&&(d&&"@vocab"in d&&r["@vocab"].indexOf(":")<0?R["@vocab"]=d["@vocab"]+r["@vocab"]:(Xo.Util.isCompactIri(r["@vocab"])||r["@vocab"]in R)&&(R["@vocab"]=L.expandTerm(r["@vocab"],!0))),this.expandPrefixedTerms(L,this.expandContentTypeToBase,O),!y&&d&&w>=1.1&&this.validateKeywordRedefinitions(d,R,lS.defaultExpandOptions,M),this.validateContext&&!l.skipValidation&&this.validate(R,{processingMode:w}),L}else throw new Sr.ErrorCoded(`Tried parsing a context that is not a string, array or object, but got ${r}`,Sr.ERROR_CODES.INVALID_LOCAL_CONTEXT)}async load(r){const o=this.documentCache[r];if(o)return o;let l;try{l=await this.documentLoader.load(r)}catch(u){throw new Sr.ErrorCoded(`Failed to load remote context ${r}: ${u.message}`,Sr.ERROR_CODES.LOADING_REMOTE_CONTEXT_FAILED)}if(!("@context"in l))throw new Sr.ErrorCoded(`Missing @context in remote context at ${r}`,Sr.ERROR_CODES.INVALID_REMOTE_CONTEXT);return this.documentCache[r]=l["@context"]}getOverriddenLoad(r,o){if(r in(o.remoteContexts||{})){if(o.ignoreRemoteScopedContexts)return r;throw new Sr.ErrorCoded("Detected a cyclic context inclusion of "+r,Sr.ERROR_CODES.RECURSIVE_CONTEXT_INCLUSION)}return null}async loadImportContext(r){let o=await this.load(r);if(typeof o!="object"||Array.isArray(o))throw new Sr.ErrorCoded("An imported context must be a single object: "+r,Sr.ERROR_CODES.INVALID_REMOTE_CONTEXT);if("@import"in o)throw new Sr.ErrorCoded("An imported context can not import another context: "+r,Sr.ERROR_CODES.INVALID_CONTEXT_ENTRY);return o=Object.assign({},o),this.containersToHash(o),o}}IR.DEFAULT_PROCESSING_MODE=1.1;Ype.ContextParser=IR;var mrn={};Object.defineProperty(mrn,"__esModule",{value:!0});var yrn={};Object.defineProperty(yrn,"__esModule",{value:!0});(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var w=Object.getOwnPropertyDescriptor(u,d);(!w||("get"in w?!u.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,w)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(Ype,n),o(pj,n),o(wJ,n),o(mrn,n),o(yrn,n),o(wUe,n),o(bj,n)})(a1);var vrn={exports:{}},CNe={exports:{}},Lf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},_rn={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Lf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(_rn);var c1=_rn.exports,mUe={};const{format:Rcr,inspect:the,AggregateError:xcr}=c1,Ccr=globalThis.AggregateError||xcr,Acr=Symbol("kIsNodeError"),Tcr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],$cr=/^([A-Z][a-z0-9]*)+$/,Icr="__node_internal_",Qpe={};function oP(n,r){if(!n)throw new Qpe.ERR_INTERNAL_ASSERTION(r)}function eHt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function Pcr(n,r,o){if(typeof r=="function")return oP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return oP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:Rcr(r,...o)}function Jp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(Pcr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[Acr]=!0,Qpe[n]=l}function tHt(n){const r=Icr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function Ocr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new Ccr([r,n],r.message);return o.code=r.code,o}return n||r}let Ncr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Qpe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Jp("ERR_ASSERTION","%s",Error);Jp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{oP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)oP(typeof v=="string","All expected entries have to be of type string"),Tcr.includes(v)?u.push(v.toLowerCase()):$cr.test(v)?d.push(v):(oP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=the(o,{depth:-1});l+=`. Received ${v}`}}else{let v=the(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Jp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=the(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Jp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Jp("ERR_MISSING_ARGS",(...n)=>{oP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Jp("ERR_OUT_OF_RANGE",(n,r,o)=>{oP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=eHt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=eHt(l)),l+="n"):l=the(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Jp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Jp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Jp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Jp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Jp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Jp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Jp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Jp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Jp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Jp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Jp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var T0={AbortError:Ncr,aggregateTwoErrors:tHt(Ocr),hideStackFrames:tHt,codes:Qpe};const{ArrayIsArray:yUe,ArrayPrototypeIncludes:Srn,ArrayPrototypeJoin:Ern,ArrayPrototypeMap:Mcr,NumberIsInteger:vUe,NumberIsNaN:Dcr,NumberMAX_SAFE_INTEGER:Lcr,NumberMIN_SAFE_INTEGER:jcr,NumberParseInt:Fcr,ObjectPrototypeHasOwnProperty:Bcr,RegExpPrototypeExec:krn,String:Wcr,StringPrototypeToUpperCase:Hcr,StringPrototypeTrim:Ucr}=Lf,{hideStackFrames:pv,codes:{ERR_SOCKET_BAD_PORT:Gcr,ERR_INVALID_ARG_TYPE:Kb,ERR_INVALID_ARG_VALUE:gj,ERR_OUT_OF_RANGE:CP,ERR_UNKNOWN_SIGNAL:nHt}}=T0,{normalizeEncoding:Vcr}=c1,{isAsyncFunction:zcr,isArrayBufferView:Kcr}=c1.types,rHt={};function qcr(n){return n===(n|0)}function Xcr(n){return n===n>>>0}const Jcr=/^[0-7]+$/,Ycr="must be a 32-bit unsigned integer or an octal string";function Qcr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(krn(Jcr,n)===null)throw new gj(r,n,Ycr);n=Fcr(n,8)}return Rrn(n,r),n}const Zcr=pv((n,r,o=jcr,l=Lcr)=>{if(typeof n!="number")throw new Kb(r,"number",n);if(!vUe(n))throw new CP(r,"an integer",n);if(nl)throw new CP(r,`>= ${o} && <= ${l}`,n)}),eur=pv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Kb(r,"number",n);if(!vUe(n))throw new CP(r,"an integer",n);if(nl)throw new CP(r,`>= ${o} && <= ${l}`,n)}),Rrn=pv((n,r,o=!1)=>{if(typeof n!="number")throw new Kb(r,"number",n);if(!vUe(n))throw new CP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new CP(r,`>= ${l} && <= ${u}`,n)});function _Ue(n,r){if(typeof n!="string")throw new Kb(r,"string",n)}function tur(n,r,o=void 0,l){if(typeof n!="number")throw new Kb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&Dcr(n))throw new CP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const nur=pv((n,r,o)=>{if(!Srn(o,n)){const u="must be one of: "+Ern(Mcr(o,d=>typeof d=="string"?`'${d}'`:Wcr(d)),", ");throw new gj(r,n,u)}});function xrn(n,r){if(typeof n!="boolean")throw new Kb(r,"boolean",n)}function ANe(n,r,o){return n==null||!Bcr(n,r)?o:n[r]}const rur=pv((n,r,o=null)=>{const l=ANe(o,"allowArray",!1),u=ANe(o,"allowFunction",!1);if(!ANe(o,"nullable",!1)&&n===null||!l&&yUe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Kb(r,"Object",n)}),iur=pv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Kb(r,"a dictionary",n)}),Zpe=pv((n,r,o=0)=>{if(!yUe(n))throw new Kb(r,"Array",n);if(n.length{if(!Kcr(n))throw new Kb(r,["Buffer","TypedArray","DataView"],n)});function uur(n,r){const o=Vcr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new gj("encoding",r,`is invalid for data of length ${l}`)}function fur(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&Ucr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new Gcr(r,n,o);return n|0}const Crn=pv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Kb(r,"AbortSignal",n)}),dur=pv((n,r)=>{if(typeof n!="function")throw new Kb(r,"Function",n)}),hur=pv((n,r)=>{if(typeof n!="function"||zcr(n))throw new Kb(r,"Function",n)}),pur=pv((n,r)=>{if(n!==void 0)throw new Kb(r,"undefined",n)});function bur(n,r,o){if(!Srn(o,n))throw new Kb(r,`('${Ern(o,"|")}')`,n)}const gur=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function iHt(n,r){if(typeof n>"u"||!krn(gur,n))throw new gj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function wur(n){if(typeof n=="string")return iHt(n,"hints"),n;if(yUe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var mJ={isInt32:qcr,isUint32:Xcr,parseFileMode:Qcr,validateArray:Zpe,validateStringArray:our,validateBooleanArray:sur,validateAbortSignalArray:lur,validateBoolean:xrn,validateBuffer:cur,validateDictionary:iur,validateEncoding:uur,validateFunction:dur,validateInt32:eur,validateInteger:Zcr,validateNumber:tur,validateObject:rur,validateOneOf:nur,validatePlainFunction:hur,validatePort:fur,validateSignalName:aur,validateString:_Ue,validateUint32:Rrn,validateUndefined:pur,validateUnion:bur,validateAbortSignal:Crn,validateLinkHeaderValue:wur},SUe={exports:{}};const{SymbolAsyncIterator:oHt,SymbolIterator:sHt,SymbolFor:ZP}=Lf,Arn=ZP("nodejs.stream.destroyed"),Trn=ZP("nodejs.stream.errored"),Pje=ZP("nodejs.stream.readable"),Oje=ZP("nodejs.stream.writable"),$rn=ZP("nodejs.stream.disturbed"),mur=ZP("nodejs.webstream.isClosedPromise"),yur=ZP("nodejs.webstream.controllerErrorFunction");function ebe(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function tbe(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function vur(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function wk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function Irn(n){return!!(n&&!wk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function Prn(n){return!!(n&&!wk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function Orn(n){return!!(n&&!wk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function _ur(n){return Irn(n)||Prn(n)||Orn(n)}function Sur(n,r){return n==null?!1:r===!0?typeof n[oHt]=="function":r===!1?typeof n[sHt]=="function":typeof n[oHt]=="function"||typeof n[sHt]=="function"}function nbe(n){if(!wk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[Arn]||l!=null&&l.destroyed)}function Nrn(n){if(!tbe(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Eur(n,r){if(!tbe(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function kur(n){if(!ebe(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Mrn(n,r){if(!ebe(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Drn(n){return n&&n[Pje]!=null?n[Pje]:typeof(n==null?void 0:n.readable)!="boolean"?null:nbe(n)?!1:ebe(n)&&n.readable&&!Mrn(n)}function Lrn(n){return n&&n[Oje]!=null?n[Oje]:typeof(n==null?void 0:n.writable)!="boolean"?null:nbe(n)?!1:tbe(n)&&n.writable&&!Nrn(n)}function Rur(n,r){return wk(n)?nbe(n)?!0:!((r==null?void 0:r.readable)!==!1&&Drn(n)||(r==null?void 0:r.writable)!==!1&&Lrn(n)):null}function xur(n){var r,o;return wk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function Cur(n){var r,o;return wk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function Aur(n){if(!wk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&jrn(n)?n._closed:null}function jrn(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Frn(n){return typeof n._sent100=="boolean"&&jrn(n)}function Tur(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function $ur(n){if(!wk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Frn(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function Iur(n){var r;return!!(n&&((r=n[$rn])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function Pur(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[Trn])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var xx={isDestroyed:nbe,kIsDestroyed:Arn,isDisturbed:Iur,kIsDisturbed:$rn,isErrored:Pur,kIsErrored:Trn,isReadable:Drn,kIsReadable:Pje,kIsClosedPromise:mur,kControllerErrorFunction:yur,kIsWritable:Oje,isClosed:Aur,isDuplexNodeStream:vur,isFinished:Rur,isIterable:Sur,isReadableNodeStream:ebe,isReadableStream:Irn,isReadableEnded:kur,isReadableFinished:Mrn,isReadableErrored:Cur,isNodeStream:wk,isWebStream:_ur,isWritable:Lrn,isWritableNodeStream:tbe,isWritableStream:Prn,isWritableEnded:Nrn,isWritableFinished:Eur,isWritableErrored:xur,isServerRequest:Tur,isServerResponse:Frn,willEmitClose:$ur,isTransformStream:Orn};const K4=ui,{AbortError:Brn,codes:Our}=T0,{ERR_INVALID_ARG_TYPE:Nur,ERR_STREAM_PREMATURE_CLOSE:lHt}=Our,{kEmptyObject:Nje,once:Mje}=c1,{validateAbortSignal:Mur,validateFunction:Dur,validateObject:Lur,validateBoolean:jur}=mJ,{Promise:Fur,PromisePrototypeThen:Bur,SymbolDispose:Wrn}=Lf,{isClosed:Wur,isReadable:aHt,isReadableNodeStream:TNe,isReadableStream:Hur,isReadableFinished:cHt,isReadableErrored:uHt,isWritable:fHt,isWritableNodeStream:dHt,isWritableStream:Uur,isWritableFinished:hHt,isWritableErrored:pHt,isNodeStream:Gur,willEmitClose:Vur,kIsClosedPromise:zur}=xx;let sL;function Kur(n){return n.setHeader&&typeof n.abort=="function"}const Dje=()=>{};function Hrn(n,r,o){var l,u;if(arguments.length===2?(o=r,r=Nje):r==null?r=Nje:Lur(r,"options"),Dur(o,"callback"),Mur(r.signal,"options.signal"),o=Mje(o),Hur(n)||Uur(n))return qur(n,r,o);if(!Gur(n))throw new Nur("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:TNe(n),h=(u=r.writable)!==null&&u!==void 0?u:dHt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=Vur(n)&&TNe(n)===d&&dHt(n)===h,A=hHt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=cHt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=Wur(n);const H=()=>{L=!0;const te=pHt(n)||uHt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&TNe(n,!0)&&!cHt(n,!1))return o.call(n,new lHt);if(h&&!A&&!hHt(n,!1))return o.call(n,new lHt);o.call(n)},G=()=>{L=!0;const te=pHt(n)||uHt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};Kur(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?K4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||K4.nextTick(G):(!d&&(!E||aHt(n))&&(A||fHt(n)===!1)||!h&&(!E||fHt(n))&&(R||aHt(n)===!1)||v&&n.req&&n.aborted)&&K4.nextTick(G);const Q=()=>{o=Dje,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new Brn(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)K4.nextTick(te);else{sL=sL||c1.addAbortListener;const pe=sL(r.signal,te),Le=o;o=Mje((...Ee)=>{pe[Wrn](),Le.apply(n,Ee)})}}return Q}function qur(n,r,o){let l=!1,u=Dje;if(r.signal)if(u=()=>{l=!0,o.call(n,new Brn(void 0,{cause:r.signal.reason}))},r.signal.aborted)K4.nextTick(u);else{sL=sL||c1.addAbortListener;const h=sL(r.signal,u),w=o;o=Mje((...v)=>{h[Wrn](),w.apply(n,v)})}const d=(...h)=>{l||K4.nextTick(()=>o.apply(n,h))};return Bur(n[zur].promise,d,d),Dje}function Xur(n,r){var o;let l=!1;return r===null&&(r=Nje),(o=r)!==null&&o!==void 0&&o.cleanup&&(jur(r.cleanup,"cleanup"),l=r.cleanup),new Fur((u,d)=>{const h=Hrn(n,r,w=>{l&&h(),w?d(w):u()})})}SUe.exports=Hrn;SUe.exports.finished=Xur;var FT=SUe.exports;const UE=ui,{aggregateTwoErrors:Jur,codes:{ERR_MULTIPLE_CALLBACK:Yur},AbortError:Qur}=T0,{Symbol:Urn}=Lf,{kIsDestroyed:Zur,isDestroyed:efr,isFinished:tfr,isServerRequest:nfr}=xx,Grn=Urn("kDestroy"),Lje=Urn("kConstruct");function Vrn(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function rfr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Vrn(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?bHt(this,n,r):this.once(Grn,function(d){bHt(this,Jur(d,n),r)}),this)}function bHt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Vrn(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?UE.nextTick(ifr,n,d):UE.nextTick(zrn,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function ifr(n,r){jje(n,r),zrn(n)}function zrn(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function jje(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function ofr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function Fje(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?UE.nextTick(jje,n,r):jje(n,r))}function sfr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(Lje,r),!(n.listenerCount(Lje)>1)&&UE.nextTick(lfr,n)}function lfr(n){let r=!1;function o(l){if(r){Fje(n,l??new Yur);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Grn,l):l?Fje(n,l,!0):UE.nextTick(afr,n)}try{n._construct(l=>{UE.nextTick(o,l)})}catch(l){UE.nextTick(o,l)}}function afr(n){n.emit(Lje)}function gHt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Krn(n){n.emit("close")}function cfr(n,r){n.emit("error",r),UE.nextTick(Krn,n)}function ufr(n,r){!n||efr(n)||(!r&&!tfr(n)&&(r=new Qur),nfr(n)?(n.socket=null,n.destroy(r)):gHt(n)?n.abort():gHt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?UE.nextTick(cfr,n,r):UE.nextTick(Krn,n),n.destroyed||(n[Zur]=!0))}var wj={construct:sfr,destroyer:ufr,destroy:rfr,undestroy:ofr,errorOrDestroy:Fje};const{ArrayIsArray:ffr,ObjectSetPrototypeOf:qrn}=Lf,{EventEmitter:rbe}=Ns;function ibe(n){rbe.call(this,n)}qrn(ibe.prototype,rbe.prototype);qrn(ibe,rbe);ibe.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),rbe.listenerCount(this,"error")===0&&this.emit("error",E)}Bje(o,"error",v),Bje(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function Bje(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):ffr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var EUe={Stream:ibe,prependListener:Bje},Xrn={exports:{}};(function(n){const{SymbolDispose:r}=Lf,{AbortError:o,codes:l}=T0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=xx,w=FT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||c1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Xrn);var obe=Xrn.exports;const{StringPrototypeSlice:wHt,SymbolIterator:dfr,TypedArrayPrototypeSet:pue,Uint8Array:hfr}=Lf,{Buffer:$Ne}=Kr,{inspect:pfr}=c1;var bfr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return $Ne.alloc(0);const o=$Ne.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)pue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=wHt(d,0,r),this.head=l,l.data=wHt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=$Ne.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)pue(o,h,l-r),r-=h.length;else{r===h.length?(pue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(pue(o,new hfr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return pfr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:gfr,NumberIsInteger:wfr}=Lf,{validateInteger:mfr}=mJ,{ERR_INVALID_ARG_VALUE:yfr}=T0.codes;let Jrn=16*1024,Yrn=16;function vfr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Qrn(n){return n?Yrn:Jrn}function _fr(n,r){mfr(r,"value",0),n?Yrn=r:Jrn=r}function Sfr(n,r,o,l){const u=vfr(r,l,o);if(u!=null){if(!wfr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new yfr(d,u)}return gfr(u)}return Qrn(n.objectMode)}var sbe={getHighWaterMark:Sfr,getDefaultHighWaterMark:Qrn,setDefaultHighWaterMark:_fr};const mHt=ui,{PromisePrototypeThen:Efr,SymbolAsyncIterator:yHt,SymbolIterator:vHt}=Lf,{Buffer:kfr}=Kr,{ERR_INVALID_ARG_TYPE:Rfr,ERR_STREAM_NULL_VALUES:xfr}=T0.codes;function Cfr(n,r,o){let l;if(typeof r=="string"||r instanceof kfr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[yHt])u=!0,l=r[yHt]();else if(r&&r[vHt])u=!1,l=r[vHt]();else throw new Rfr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){Efr(w(y),()=>mHt.nextTick(E,y),A=>mHt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new xfr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Zrn=Cfr,INe,_Ht;function lbe(){if(_Ht)return INe;_Ht=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Lf;INe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=EUe,{Buffer:L}=Kr,{addAbortSignal:H}=obe,G=FT;let j=c1.debuglog("stream",S=>{j=S});const Q=bfr,te=wj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=sbe,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=T0,{validateObject:ye}=mJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Zrn;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof tx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof tx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},INe}var PNe,SHt;function kUe(){if(SHt)return PNe;SHt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Lf;PNe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=EUe.Stream,{Buffer:C}=Kr,R=wj,{addAbortSignal:O}=obe,{getHighWaterMark:M,getDefaultHighWaterMark:L}=sbe,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=T0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof tx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof tx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return ONe}var NNe,kHt;function tx(){if(kHt)return NNe;kHt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Lf;NNe=h;const u=lbe(),d=kUe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function Pfr(){this._final!==Wje&&Wje.call(this)}nx.prototype._final=Wje;nx.prototype._transform=function(n,r,o){throw new $fr("_transform()")};nx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=nhe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,jfr.destroyer(n,d||new Wfr("pipe")))},cleanup:u}}function Xfr(n){return Gfr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function WNe(n){if(x8(n))return n;if(Zfe(n))return Jfr(n);throw new Hje("val",["Readable","Iterable","AsyncIterable"],n)}async function*Jfr(n){FNe||(FNe=lbe()),yield*FNe.prototype[Mfr].call(n)}async function bue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new Nfr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=nhe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?Ffr(u,y):y)}finally{v(),r.off("drain",h)}}async function HNe(n,r,o,{end:l}){ED(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function Yfr(...n){return iin(n,Lfr(Xfr(n)))}function iin(n,r,o){if(n.length===1&&Ofr(n[0])&&(n=n[0]),n.length<2)throw new Bfr("streams");const l=new qfr,u=l.signal,d=o==null?void 0:o.signal,h=[];Vfr(d,"options.signal");function w(){O(new Ufr)}BNe=BNe||c1.addAbortListener;let v;d&&(v=BNe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[Dfr](),l.abort(),j&&(y||h.forEach(te=>te()),$K.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(xHt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=CHt(j,Q,te);A.push(le),DNe(j)&&Le&&h.push(xe)}j.on("error",Ee),DNe(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!x8(M))throw new MNe("Iterable, AsyncIterable or Stream","source",M)}else x8(j)||Zfe(j)||ED(j)?M=j:M=RHt.from(j);else if(typeof j=="function"){if(ED(M)){var L;M=WNe((L=M)===null||L===void 0?void 0:L.readable)}else M=WNe(M);if(M=j(M,{signal:u}),Q){if(!x8(M,!0))throw new MNe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;jNe||(jNe=rin);const Ee=new jNe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),$K.nextTick(R)},ae=>{Ee.destroy(ae),$K.nextTick(R,ae)});else if(x8(M,!0))C++,bue(M,Ee,R,{end:pe});else if(LNe(M)||ED(M)){const ae=M.readable||M;C++,bue(ae,Ee,R,{end:pe})}else throw new MNe("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=CHt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(xHt(j)){if(Zfe(M)){C+=2;const Ee=Qfr(M,j,R,{end:pe});DNe(j)&&Le&&h.push(Ee)}else if(ED(M)||LNe(M)){const Ee=M.readable||M;C++,bue(Ee,j,R,{end:pe})}else if(x8(M))C++,bue(M,j,R,{end:pe});else throw new Hje("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(zfr(j)){if(Zfe(M))C++,HNe(WNe(M),j,R,{end:pe});else if(LNe(M)||x8(M))C++,HNe(M,j,R,{end:pe});else if(ED(M))C++,HNe(M.readable,j,R,{end:pe});else throw new Hje("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=RHt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&$K.nextTick(w),M}function Qfr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new Hfr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};Kfr(n)?$K.nextTick(d):n.once("end",d)}else o();return nhe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),nhe(r,{readable:!1,writable:!0},o)}var CUe={pipelineImpl:iin,pipeline:Yfr};const{pipeline:Zfr}=CUe,gue=tx(),{destroyer:edr}=wj,{isNodeStream:wue,isReadable:AHt,isWritable:THt,isWebStream:UNe,isTransformStream:s8,isWritableStream:$Ht,isReadableStream:IHt}=xx,{AbortError:tdr,codes:{ERR_INVALID_ARG_VALUE:PHt,ERR_MISSING_ARGS:ndr}}=T0,rdr=FT;var oin=function(...r){if(r.length===0)throw new ndr("streams");if(r.length===1)return gue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=gue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=gue.from(r[R])}for(let R=0;R0&&!(THt(r[R])||$Ht(r[R])||s8(r[R])))throw new PHt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=Zfr(r,v),A=!!(THt(y)||$Ht(y)||s8(y)),C=!!(AHt(E)||IHt(E)||s8(E));if(w=new gue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(wue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(UNe(y)){const M=(s8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=s8(E)?E.readable:E;rdr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(wue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(UNe(E)){const O=(s8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new tdr),d=null,l=null,u=null,h===null?O(R):(h=O,wue(E)&&edr(E,R))},w};const idr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:odr,ERR_INVALID_ARG_TYPE:yJ,ERR_MISSING_ARGS:sdr,ERR_OUT_OF_RANGE:ldr},AbortError:sk}=T0,{validateAbortSignal:eO,validateInteger:OHt,validateObject:tO}=mJ,adr=Lf.Symbol("kWeak"),cdr=Lf.Symbol("kResistStopPropagation"),{finished:udr}=FT,fdr=oin,{addAbortSignalNoValidate:ddr}=obe,{isWritable:hdr,isNodeStream:pdr}=xx,{deprecate:bdr}=c1,{ArrayPrototypePush:gdr,Boolean:wdr,MathFloor:NHt,Number:mdr,NumberIsNaN:ydr,Promise:MHt,PromiseReject:DHt,PromiseResolve:vdr,PromisePrototypeThen:LHt,Symbol:sin}=Lf,rhe=sin("kEmpty"),jHt=sin("kEof");function _dr(n,r){if(r!=null&&tO(r,"options"),(r==null?void 0:r.signal)!=null&&eO(r.signal,"options.signal"),pdr(n)&&!hdr(n))throw new odr("stream",n,"must be writable");const o=fdr(this,n);return r!=null&&r.signal&&ddr(r.signal,o),o}function abe(n,r){if(typeof n!="function")throw new yJ("fn",["Function","AsyncFunction"],n);r!=null&&tO(r,"options"),(r==null?void 0:r.signal)!=null&&eO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=NHt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=NHt(r.highWaterMark)),OHt(o,"options.concurrency",1),OHt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=c1.AbortSignalAny([r==null?void 0:r.signal].filter(wdr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new MHt(G=>{E=G})}w.push(jHt)}catch(H){const G=DHt(H);LHt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===jHt)return;if(d.aborted)throw new sk;H!==rhe&&(yield H),w.shift(),M()}await new MHt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function Sdr(n=void 0){return n!=null&&tO(n,"options"),(n==null?void 0:n.signal)!=null&&eO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new sk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function lin(n,r=void 0){for await(const o of AUe.call(this,n,r))return!0;return!1}async function Edr(n,r=void 0){if(typeof n!="function")throw new yJ("fn",["Function","AsyncFunction"],n);return!await lin.call(this,async(...o)=>!await n(...o),r)}async function kdr(n,r){for await(const o of AUe.call(this,n,r))return o}async function Rdr(n,r){if(typeof n!="function")throw new yJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),rhe}for await(const l of abe.call(this,o,r));}function AUe(n,r){if(typeof n!="function")throw new yJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:rhe}return abe.call(this,o,r)}let xdr=class extends sdr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function Cdr(n,r,o){var l;if(typeof n!="function")throw new yJ("reducer",["Function","AsyncFunction"],n);o!=null&&tO(o,"options"),(o==null?void 0:o.signal)!=null&&eO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new sk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await udr(this.destroy(y)),y}const d=new idr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[adr]:this,[cdr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new sk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new xdr}finally{d.abort()}return r}async function Adr(n){n!=null&&tO(n,"options"),(n==null?void 0:n.signal)!=null&&eO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new sk(void 0,{cause:n.signal.reason});gdr(r,l)}return r}function Tdr(n,r){const o=abe.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function ain(n){if(n=mdr(n),ydr(n))return 0;if(n<0)throw new ldr("number",">= 0",n);return n}function $dr(n,r=void 0){return r!=null&&tO(r,"options"),(r==null?void 0:r.signal)!=null&&eO(r.signal,"options.signal"),n=ain(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new sk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new sk;n--<=0&&(yield d)}}).call(this)}function Idr(n,r=void 0){return r!=null&&tO(r,"options"),(r==null?void 0:r.signal)!=null&&eO(r.signal,"options.signal"),n=ain(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new sk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new sk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}mUe.streamReturningOperators={asIndexedPairs:bdr(Sdr,"readable.asIndexedPairs will be removed in a future version."),drop:$dr,filter:AUe,flatMap:Tdr,map:abe,take:Idr,compose:_dr};mUe.promiseReturningOperators={every:Edr,forEach:Rdr,reduce:Cdr,toArray:Adr,some:lin,find:kdr};var GNe,FHt;function cin(){if(FHt)return GNe;FHt=1;const{ArrayPrototypePop:n,Promise:r}=Lf,{isIterable:o,isNodeStream:l,isWebStream:u}=xx,{pipelineImpl:d}=CUe,{finished:h}=FT;uin();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return GNe={finished:h,pipeline:w},GNe}var BHt;function uin(){if(BHt)return CNe.exports;BHt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Lf,{promisify:{custom:u}}=c1,{streamReturningOperators:d,promiseReturningOperators:h}=mUe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=T0,v=oin,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=sbe,{pipeline:A}=CUe,{destroyer:C}=wj,R=FT,O=cin(),M=xx,L=CNe.exports=EUe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=lbe();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=kUe(),L.Duplex=tx(),L.Transform=tin,L.PassThrough=rin,L.pipeline=A;const{addAbortSignal:H}=obe;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},CNe.exports}(function(n){const r=uin(),o=cin(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(vrn);var Pdr=vrn.exports,cbe={},rK={},TUe={},vJ={};Object.defineProperty(vJ,"__esModule",{value:!0});vJ.BlankNode=void 0;let Odr=class{constructor(r){this.termType="BlankNode",this.value=r}equals(r){return!!r&&r.termType==="BlankNode"&&r.value===this.value}};vJ.BlankNode=Odr;var ube={},_J={};Object.defineProperty(_J,"__esModule",{value:!0});_J.DefaultGraph=void 0;let Uje=class{constructor(){this.termType="DefaultGraph",this.value=""}equals(r){return!!r&&r.termType==="DefaultGraph"}};_J.DefaultGraph=Uje;Uje.INSTANCE=new Uje;var SJ={},mj={};Object.defineProperty(mj,"__esModule",{value:!0});mj.NamedNode=void 0;let Ndr=class{constructor(r){this.termType="NamedNode",this.value=r}equals(r){return!!r&&r.termType==="NamedNode"&&r.value===this.value}};mj.NamedNode=Ndr;Object.defineProperty(SJ,"__esModule",{value:!0});SJ.Literal=void 0;const fin=mj;let $Ue=class Gje{constructor(r,o){this.termType="Literal",this.value=r,typeof o=="string"?(this.language=o,this.datatype=Gje.RDF_LANGUAGE_STRING):o?(this.language="",this.datatype=o):(this.language="",this.datatype=Gje.XSD_STRING)}equals(r){return!!r&&r.termType==="Literal"&&r.value===this.value&&r.language===this.language&&this.datatype.equals(r.datatype)}};SJ.Literal=$Ue;$Ue.RDF_LANGUAGE_STRING=new fin.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");$Ue.XSD_STRING=new fin.NamedNode("http://www.w3.org/2001/XMLSchema#string");var EJ={};Object.defineProperty(EJ,"__esModule",{value:!0});EJ.Quad=void 0;let Mdr=class{constructor(r,o,l,u){this.termType="Quad",this.value="",this.subject=r,this.predicate=o,this.object=l,this.graph=u}equals(r){return!!r&&(r.termType==="Quad"||!r.termType)&&this.subject.equals(r.subject)&&this.predicate.equals(r.predicate)&&this.object.equals(r.object)&&this.graph.equals(r.graph)}};EJ.Quad=Mdr;var kJ={};Object.defineProperty(kJ,"__esModule",{value:!0});kJ.Variable=void 0;let Ddr=class{constructor(r){this.termType="Variable",this.value=r}equals(r){return!!r&&r.termType==="Variable"&&r.value===this.value}};kJ.Variable=Ddr;Object.defineProperty(ube,"__esModule",{value:!0});ube.DataFactory=void 0;const Ldr=vJ,jdr=_J,WHt=SJ,Fdr=mj,Bdr=EJ,Wdr=kJ;let Hdr=0,Udr=class{constructor(r){this.blankNodeCounter=0,r=r||{},this.blankNodePrefix=r.blankNodePrefix||`df_${Hdr++}_`}namedNode(r){return new Fdr.NamedNode(r)}blankNode(r){return new Ldr.BlankNode(r||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(r,o){return new WHt.Literal(r,o)}variable(r){return new Wdr.Variable(r)}defaultGraph(){return jdr.DefaultGraph.INSTANCE}quad(r,o,l,u){return new Bdr.Quad(r,o,l,u||this.defaultGraph())}fromTerm(r){switch(r.termType){case"NamedNode":return this.namedNode(r.value);case"BlankNode":return this.blankNode(r.value);case"Literal":return r.language?this.literal(r.value,r.language):r.datatype.equals(WHt.Literal.XSD_STRING)?this.literal(r.value):this.literal(r.value,this.fromTerm(r.datatype));case"Variable":return this.variable(r.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(r.subject),this.fromTerm(r.predicate),this.fromTerm(r.object),this.fromTerm(r.graph))}}fromQuad(r){return this.fromTerm(r)}resetBlankNodeCounter(){this.blankNodeCounter=0}};ube.DataFactory=Udr;(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d),Object.defineProperty(l,h,{enumerable:!0,get:function(){return u[d]}})}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(vJ,n),o(ube,n),o(_J,n),o(SJ,n),o(mj,n),o(EJ,n),o(kJ,n)})(TUe);var iK={},fbe={};Object.defineProperty(fbe,"__esModule",{value:!0});fbe.ContainerHandlerIdentifier=void 0;class Gdr{canCombineWithGraph(){return!0}async handle(r,o,l,u,d,h){let w;if(o.emittedStack[h+1]&&o.idStack[h+1])w=o.idStack[h+1][0];else{const E=await l.getContainerKey(u[h],u,h)!==null?await l.resourceToTerm(await o.getContext(u),u[h]):l.dataFactory.blankNode();if(!E){o.emittedStack[h]=!1;return}w=E,o.idStack[h+1]=[w]}let v=o.idStack[h];v||(v=o.idStack[h]=[]),v.some(y=>y.equals(w))||v.push(w),await o.handlePendingContainerFlushBuffers()||(o.emittedStack[h]=!1)}}fbe.ContainerHandlerIdentifier=Gdr;var oK={},sK={},HHt;function dbe(){if(HHt)return sK;HHt=1,Object.defineProperty(sK,"__esModule",{value:!0}),sK.EntryHandlerPredicate=void 0;const n=a1,r=nO();let o=class din{static async handlePredicateObject(u,d,h,w,v,y,E,A,C){const R=await d.getPropertiesDepth(h,w),O=await d.getDepthOffsetGraph(w,h),M=w-O,L=u.idStack[R];if(L&&!C)for(const H of L)if(O>=0){const j=u.idStack[M-1];if(j)for(const Q of j)d.emitQuadChecked(w,H,v,y,Q,E,A);else E?(d.validateReverseSubject(y),u.getUnidentifiedGraphBufferSafe(M-1).push({subject:y,predicate:v,object:H,isEmbedded:A})):u.getUnidentifiedGraphBufferSafe(M-1).push({subject:H,predicate:v,object:y,isEmbedded:A})}else{const j=await d.getGraphContainerValue(h,R);d.emitQuadChecked(w,H,v,y,j,E,A)}else if(E&&d.validateReverseSubject(y),C){if(u.rdfstar){u.idStack[w]&&u.emitError(new n.ErrorCoded(`Found an illegal @id inside an annotation: ${u.idStack[w][0].value}`,n.ERROR_CODES.INVALID_ANNOTATION));for(let j=0;j=0;j--){const Q=H[j];Q.depth>R&&(G.nestedAnnotations.push(Q),H.splice(j,1))}}}else u.getUnidentifiedValueBufferSafe(R).push({predicate:v,object:y,reverse:E,isEmbedded:A})}isPropertyHandler(){return!0}isStackProcessor(){return!0}async validate(u,d,h,w,v){const y=h[w];if(y){const E=await u.getContext(h);if(!u.jsonLiteralStack[w]&&await d.predicateToTerm(E,h[w]))return r.Util.getContextValueType(E,y)==="@json"&&(u.jsonLiteralStack[w+1]=!0),!0}return!1}async test(u,d,h,w,v){return w[v]}async handle(u,d,h,w,v,y,E){const A=w[y],C=await u.getContext(w),R=await d.predicateToTerm(C,h);if(R){const O=await d.valueToTerm(C,h,v,y,w);if(O.length)for(let M of O){let L=await d.unaliasKeywordParent(w,y);const H=r.Util.isPropertyReverse(C,A,L);let G=0;for(;L==="@reverse"||typeof L=="number";)typeof L=="number"?G++:y--,L=await d.unaliasKeywordParent(w,y-G);const j=r.Util.isPropertyInEmbeddedNode(L);d.validateReverseInEmbeddedNode(h,H,j);const Q=r.Util.isPropertyInAnnotationObject(L);if(v){const te="@list"in r.Util.getContextValueContainer(C,h);if(te||v["@list"]){if((te&&!Array.isArray(v)&&!v["@list"]||v["@list"]&&!Array.isArray(v["@list"]))&&M!==d.rdfNil){const pe=d.dataFactory.blankNode();u.emitQuad(y,d.dataFactory.quad(pe,d.rdfRest,d.rdfNil,d.getDefaultGraph())),u.emitQuad(y,d.dataFactory.quad(pe,d.rdfFirst,M,d.getDefaultGraph())),M=pe}if(H&&!u.allowSubjectList)throw new n.ErrorCoded(`Found illegal list value in subject position at ${h}`,n.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}}await din.handlePredicateObject(u,d,w,y,R,M,H,j,Q)}}}};return sK.EntryHandlerPredicate=o,sK}var UHt;function Vdr(){if(UHt)return oK;UHt=1,Object.defineProperty(oK,"__esModule",{value:!0}),oK.ContainerHandlerIndex=void 0;const n=a1,r=dbe(),o=nO();let l=class{canCombineWithGraph(){return!0}async handle(d,h,w,v,y,E){if(!Array.isArray(y)){const A="@graph"in d,C=await h.getContext(v),R=v[E-1],O=o.Util.getContextValueIndex(C,R);if(O){if(n.Util.isPotentialKeyword(O))throw new n.ErrorCoded(`Keywords can not be used as @index value, got: ${O}`,n.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof O!="string")throw new n.ErrorCoded(`@index values must be strings, got: ${O}`,n.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof y!="object"){if(o.Util.getContextValueType(C,R)!=="@id")throw new n.ErrorCoded(`Property-based index containers require nodes as values or strings with @type: @id, but got: ${y}`,n.ERROR_CODES.INVALID_VALUE_OBJECT);const H=w.resourceToTerm(C,y);H&&(h.idStack[E+1]=[H])}const L=w.createVocabOrBaseTerm(C,O);if(L){const H=await w.valueToTerm(C,O,await w.getContainerKey(v[E],v,E),E,v);if(A){const G=await w.getGraphContainerValue(v,E+1);for(const j of H)h.emitQuad(E,w.dataFactory.quad(G,L,j,w.getDefaultGraph()))}else for(const G of H)await r.EntryHandlerPredicate.handlePredicateObject(h,w,v,E+1,L,G,!1,!1,!1)}}const M=A?2:1;await h.newOnValueJob(v.slice(0,v.length-M),y,E-M,!0),await h.handlePendingContainerFlushBuffers()}h.emittedStack[E]=!1}};return oK.ContainerHandlerIndex=l,oK}var hbe={};Object.defineProperty(hbe,"__esModule",{value:!0});hbe.ContainerHandlerLanguage=void 0;const GHt=a1;class zdr{canCombineWithGraph(){return!1}async handle(r,o,l,u,d,h){const w=await l.getContainerKey(u[h],u,h);if(Array.isArray(d))d=d.map(v=>({"@value":v,"@language":w}));else{if(typeof d!="string")throw new GHt.ErrorCoded(`Got invalid language map value, got '${JSON.stringify(d)}', but expected string`,GHt.ERROR_CODES.INVALID_LANGUAGE_MAP_VALUE);d={"@value":d,"@language":w}}await o.newOnValueJob(u.slice(0,u.length-1),d,h-1,!0),o.emittedStack[h]=!1}}hbe.ContainerHandlerLanguage=zdr;var lK={},VHt;function Kdr(){if(VHt)return lK;VHt=1,Object.defineProperty(lK,"__esModule",{value:!0}),lK.ContainerHandlerType=void 0;const n=dbe(),r=nO();let o=class{canCombineWithGraph(){return!1}async handle(u,d,h,w,v,y){if(!Array.isArray(v)){if(typeof v=="string"){const C=await d.getContext(w),O=r.Util.getContextValueType(C,w[y-1])==="@vocab"?await h.createVocabOrBaseTerm(C,v):await h.resourceToTerm(C,v);if(O){const M={"@id":O.termType==="NamedNode"?O.value:v};await d.newOnValueJob(w.slice(0,w.length-1),M,y-1,!0),d.idStack[y+1]=[O]}}else{const C=!!d.idStack[y+1];C||delete d.idStack[y],await d.newOnValueJob(w.slice(0,w.length-1),v,y-1,!0),C||(d.idStack[y+1]=d.idStack[y])}const E=await h.getContainerKey(w[y],w,y),A=E!==null?h.createVocabOrBaseTerm(await d.getContext(w),E):null;A&&await n.EntryHandlerPredicate.handlePredicateObject(d,h,w,y+1,h.rdfType,A,!1,!1,!1),await d.handlePendingContainerFlushBuffers()}d.emittedStack[y]=!1}};return lK.ContainerHandlerType=o,lK}var zHt;function hin(){if(zHt)return iK;zHt=1,Object.defineProperty(iK,"__esModule",{value:!0}),iK.EntryHandlerContainer=void 0;const n=fbe,r=Vdr(),o=hbe,l=Kdr(),u=nO();let d=class F4{static isSimpleGraphContainer(w){return"@graph"in w&&("@set"in w&&Object.keys(w).length===2||Object.keys(w).length===1)}static isComplexGraphContainer(w){return"@graph"in w&&("@set"in w&&Object.keys(w).length>2||!("@set"in w)&&Object.keys(w).length>1)}static getContainerGraphIndex(w,v,y){let E=F4.isSimpleGraphContainer(w),A="";for(let C=v;C=0;R--)if(typeof v[R]!="number"){const O=u.Util.getContextValue(C,"@container",v[R],!1);if(O&&F4.isSimpleGraphContainer(O))return{containers:O,depth:R+1,fallback:!1};const M=u.Util.getContextValue(C,"@container",v[R-1],!1);if(M){const L="@graph"in M;for(const H in F4.CONTAINER_HANDLERS)if(M[H])return L?F4.CONTAINER_HANDLERS[H].canCombineWithGraph()?{containers:M,depth:R,fallback:!1}:E:A?E:{containers:M,depth:R,fallback:!1};return E}else{if(A)return E;A=!0}}return E}static async isBufferableContainerHandler(w,v,y){const E=await F4.getContainerHandler(w,v,y);return!E.fallback&&!("@graph"in E.containers)}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(w,v,y,E,A){return!!await this.test(w,v,null,y,E)}async test(w,v,y,E,A){const C=u.Util.getContextValueContainer(await w.getContext(E,2),E[A-1]);for(const R in F4.CONTAINER_HANDLERS)if(C[R])return{containers:C,handler:F4.CONTAINER_HANDLERS[R]};return null}async handle(w,v,y,E,A,C,R){return R.handler.handle(R.containers,w,v,E,A,C)}};return d.CONTAINER_HANDLERS={"@id":new n.ContainerHandlerIdentifier,"@index":new r.ContainerHandlerIndex,"@language":new o.ContainerHandlerLanguage,"@type":new l.ContainerHandlerType},iK.EntryHandlerContainer=d,iK}var pin=function n(r){return r===null||typeof r!="object"||r.toJSON!=null?JSON.stringify(r):Array.isArray(r)?"["+r.reduce((o,l,u)=>{const d=u===0?"":",",h=l===void 0||typeof l=="symbol"?null:l;return o+d+n(h)},"")+"]":"{"+Object.keys(r).sort().reduce((o,l,u)=>{if(r[l]===void 0||typeof r[l]=="symbol")return o;const d=o.length===0?"":",";return o+d+n(l)+":"+n(r[l])},"")+"}"},KHt;function nO(){if(KHt)return rK;KHt=1,Object.defineProperty(rK,"__esModule",{value:!0}),rK.Util=void 0;const n=a1,r=TUe,o=hin(),l=pin;let u=class ic{constructor(h){this.parsingContext=h.parsingContext,this.dataFactory=h.dataFactory||new r.DataFactory,this.rdfFirst=this.dataFactory.namedNode(ic.RDF+"first"),this.rdfRest=this.dataFactory.namedNode(ic.RDF+"rest"),this.rdfNil=this.dataFactory.namedNode(ic.RDF+"nil"),this.rdfType=this.dataFactory.namedNode(ic.RDF+"type"),this.rdfJson=this.dataFactory.namedNode(ic.RDF+"JSON")}static getContextValue(h,w,v,y){const E=h.getContextRaw()[v];if(!E)return y;const A=E[w];return A===void 0?y:A}static getContextValueContainer(h,w){return ic.getContextValue(h,"@container",w,{"@set":!0})}static getContextValueType(h,w){const v=ic.getContextValue(h,"@type",w,null);return v==="@none"?null:v}static getContextValueLanguage(h,w){return ic.getContextValue(h,"@language",w,h.getContextRaw()["@language"]||null)}static getContextValueDirection(h,w){return ic.getContextValue(h,"@direction",w,h.getContextRaw()["@direction"]||null)}static isContextValueReverse(h,w){return!!ic.getContextValue(h,"@reverse",w,null)}static getContextValueIndex(h,w){return ic.getContextValue(h,"@index",w,h.getContextRaw()["@index"]||null)}static isPropertyReverse(h,w,v){return v==="@reverse"!==ic.isContextValueReverse(h,w)}static isPropertyInEmbeddedNode(h){return h==="@id"}static isPropertyInAnnotationObject(h){return h==="@annotation"}static isValidIri(h){return h!==null&&n.Util.isValidIri(h)}static isPrefixArray(h,w){if(h.length>w.length)return!1;for(let v=0;v1)throw new n.ErrorCoded(`Found illegal neighbouring entries next to @set for key: '${w}'`,n.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);return[]}else if("@list"in v){if(Object.keys(v).length>1)throw new n.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${w}'`,n.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);const C=v["@list"];return Array.isArray(C)?C.length===0?[this.rdfNil]:this.parsingContext.idStack[y+1]||[]:await this.valueToTerm(await this.parsingContext.getContext(E),w,C,y-1,E.slice(0,-1))}else{if("@reverse"in v&&typeof v["@reverse"]=="boolean")return[];if("@graph"in ic.getContextValueContainer(await this.parsingContext.getContext(E),w)){const C=this.parsingContext.graphContainerTermStack[y+1];return C?Object.values(C):[this.dataFactory.blankNode()]}else if("@id"in v){if(Object.keys(v).length>1&&(h=await this.parsingContext.getContext(E,0)),"@context"in v&&(h=await this.parsingContext.parseContext(v["@context"],h.getContextRaw())),v["@type"]==="@vocab")return this.nullableTermToArray(this.createVocabOrBaseTerm(h,v["@id"]));{const C=v["@id"];let R;if(typeof C=="object")if(this.parsingContext.rdfstar)R=this.parsingContext.idStack[y+1][0];else throw new n.ErrorCoded(`Found illegal @id '${v}'`,n.ERROR_CODES.INVALID_ID_VALUE);else R=this.resourceToTerm(h,C);return this.nullableTermToArray(R)}}else return this.parsingContext.emittedStack[y+1]||v&&typeof v=="object"&&Object.keys(v).length===0?this.parsingContext.idStack[y+1]||(this.parsingContext.idStack[y+1]=[this.dataFactory.blankNode()]):[]}case"string":return this.nullableTermToArray(this.stringValueToTerm(y,await this.getContextSelfOrPropertyScoped(h,w),w,v,null));case"boolean":return this.nullableTermToArray(this.stringValueToTerm(y,await this.getContextSelfOrPropertyScoped(h,w),w,(!!v).toString(),this.dataFactory.namedNode(ic.XSD_BOOLEAN)));case"number":return this.nullableTermToArray(this.stringValueToTerm(y,await this.getContextSelfOrPropertyScoped(h,w),w,v,this.dataFactory.namedNode(v%1===0&&v<1e21?ic.XSD_INTEGER:ic.XSD_DOUBLE)));default:return this.parsingContext.emitError(new Error(`Could not determine the RDF type of a ${A}`)),[]}}async getContextSelfOrPropertyScoped(h,w){const v=h.getContextRaw()[w];return v&&typeof v=="object"&&"@context"in v&&(h=await this.parsingContext.parseContext(v,h.getContextRaw(),!0)),h}nullableTermToArray(h){return h?[h]:[]}predicateToTerm(h,w){const v=h.expandTerm(w,!0,this.parsingContext.getExpandOptions());if(!v)return null;if(v[0]==="_"&&v[1]===":")return this.parsingContext.produceGeneralizedRdf?this.dataFactory.blankNode(v.substr(2)):null;if(ic.isValidIri(v))return this.dataFactory.namedNode(v);if(v&&this.parsingContext.strictValues)this.parsingContext.emitError(new n.ErrorCoded(`Invalid predicate IRI: ${v}`,n.ERROR_CODES.INVALID_IRI_MAPPING));else return null;return null}resourceToTerm(h,w){if(w.startsWith("_:"))return this.dataFactory.blankNode(w.substr(2));const v=h.expandTerm(w,!1,this.parsingContext.getExpandOptions());if(!ic.isValidIri(v))if(v&&this.parsingContext.strictValues)this.parsingContext.emitError(new Error(`Invalid resource IRI: ${v}`));else return null;return this.dataFactory.namedNode(v)}createVocabOrBaseTerm(h,w){if(w.startsWith("_:"))return this.dataFactory.blankNode(w.substr(2));const v=this.parsingContext.getExpandOptions();let y=h.expandTerm(w,!0,v);if(y===w&&(y=h.expandTerm(w,!1,v)),!ic.isValidIri(y))if(y&&this.parsingContext.strictValues&&!y.startsWith("@"))this.parsingContext.emitError(new Error(`Invalid term IRI: ${y}`));else return null;return this.dataFactory.namedNode(y)}intToString(h,w){return typeof h=="number"?Number.isFinite(h)?h%1===0&&(!w||w.value!==ic.XSD_DOUBLE)?Number(h).toString():h.toExponential(15).replace(/(\d)0*e\+?/,"$1E"):h>0?"INF":"-INF":h}stringValueToTerm(h,w,v,y,E){const A=ic.getContextValueType(w,v);if(A)if(A==="@id"){if(!E)return this.resourceToTerm(w,this.intToString(y,E))}else if(A==="@vocab"){if(!E)return this.createVocabOrBaseTerm(w,this.intToString(y,E))}else E=this.dataFactory.namedNode(A);if(!E){const C=ic.getContextValueLanguage(w,v),R=ic.getContextValueDirection(w,v);return R&&this.parsingContext.rdfDirection?this.createLanguageDirectionLiteral(h,this.intToString(y,E),C,R):this.dataFactory.literal(this.intToString(y,E),C)}return this.dataFactory.literal(this.intToString(y,E),E)}createLanguageDirectionLiteral(h,w,v,y){if(this.parsingContext.rdfDirection==="i18n-datatype")return v||(v=""),this.dataFactory.literal(w,this.dataFactory.namedNode(`https://www.w3.org/ns/i18n#${v}_${y}`));{const E=this.dataFactory.blankNode(),A=this.getDefaultGraph();return this.parsingContext.emitQuad(h,this.dataFactory.quad(E,this.dataFactory.namedNode(ic.RDF+"value"),this.dataFactory.literal(w),A)),v&&this.parsingContext.emitQuad(h,this.dataFactory.quad(E,this.dataFactory.namedNode(ic.RDF+"language"),this.dataFactory.literal(v),A)),this.parsingContext.emitQuad(h,this.dataFactory.quad(E,this.dataFactory.namedNode(ic.RDF+"direction"),this.dataFactory.literal(y),A)),E}}valueToJsonString(h){return l(h)}async unaliasKeyword(h,w,v,y,E){if(Number.isInteger(h))return h;if(!y){const A=this.parsingContext.unaliasedKeywordCacheStack[v];if(A)return A}if(!n.Util.isPotentialKeyword(h)){E=E||await this.parsingContext.getContext(w);let A=E.getContextRaw()[h];A&&typeof A=="object"&&(A=A["@id"]),n.Util.isValidKeyword(A)&&(h=A)}return y?h:this.parsingContext.unaliasedKeywordCacheStack[v]=h}async unaliasKeywordParent(h,w){return await this.unaliasKeyword(w>0&&h[w-1],h,w-1)}async unaliasKeywords(h,w,v,y){const E={};for(const A in h)E[await this.unaliasKeyword(A,w,v+1,!0,y)]=h[A];return E}async isLiteral(h,w){for(let v=w;v>=0;v--){if(await this.unaliasKeyword(h[v],h,v)==="@annotation")return!1;if(this.parsingContext.literalStack[v]||this.parsingContext.jsonLiteralStack[v])return!0}return!1}async getDepthOffsetGraph(h,w){for(let v=h-1;v>0;v--)if(await this.unaliasKeyword(w[v],w,v)==="@graph"){const y=(await o.EntryHandlerContainer.getContainerHandler(this.parsingContext,w,v)).containers;return o.EntryHandlerContainer.isComplexGraphContainer(y)?-1:h-v-1}return-1}validateReverseSubject(h){if(h.termType==="Literal")throw new n.ErrorCoded(`Found illegal literal in subject position: ${h.value}`,n.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}getDefaultGraph(){return this.parsingContext.defaultGraph||this.dataFactory.defaultGraph()}async getGraphContainerValue(h,w){let v=this.getDefaultGraph();const{containers:y,depth:E}=await o.EntryHandlerContainer.getContainerHandler(this.parsingContext,h,w);if("@graph"in y){const A=o.EntryHandlerContainer.getContainerGraphIndex(y,E,h),C=this.parsingContext.graphContainerTermStack[E];if(v=C?C[A]:null,!v){let R=null;if("@id"in y){const O=await this.getContainerKey(h[E],h,E);O!==null&&(R=await this.resourceToTerm(await this.parsingContext.getContext(h),O))}R||(R=this.dataFactory.blankNode()),this.parsingContext.graphContainerTermStack[E]||(this.parsingContext.graphContainerTermStack[E]={}),v=this.parsingContext.graphContainerTermStack[E][A]=R}}return v}async getPropertiesDepth(h,w){let v=w;for(let y=w-1;y>0;y--)if(typeof h[y]!="number"){const E=await this.unaliasKeyword(h[y],h,y);if(E==="@reverse")return y;if(E==="@nest")v=y;else return v}return v}async getContainerKey(h,w,v){const y=await this.unaliasKeyword(h,w,v);return y==="@none"?null:y}validateReverseInEmbeddedNode(h,w,v){if(v&&w&&!this.parsingContext.rdfstarReverseInEmbedded)throw new n.ErrorCoded(`Illegal reverse property in embedded node in ${h}`,n.ERROR_CODES.INVALID_EMBEDDED_NODE)}emitQuadChecked(h,w,v,y,E,A,C){let R;if(A?(this.validateReverseSubject(y),R=this.dataFactory.quad(y,v,w,E)):R=this.dataFactory.quad(w,v,y,E),C){if(R.graph.termType!=="DefaultGraph"&&(R=this.dataFactory.quad(R.subject,R.predicate,R.object)),this.parsingContext.idStack[h-1])throw new n.ErrorCoded("Illegal multiple properties in an embedded node",n.ERROR_CODES.INVALID_EMBEDDED_NODE);this.parsingContext.idStack[h-1]=[R]}else this.parsingContext.emitQuad(h,R);const O=this.parsingContext.annotationsBuffer[h];if(O){for(const M of O)this.emitAnnotation(h,R,M);delete this.parsingContext.annotationsBuffer[h]}}emitAnnotation(h,w,v){let y;v.reverse?(this.validateReverseSubject(v.object),y=this.dataFactory.quad(v.object,v.predicate,w)):y=this.dataFactory.quad(w,v.predicate,v.object),this.parsingContext.emitQuad(h,y);for(const E of v.nestedAnnotations)this.emitAnnotation(h,y,E)}};return u.XSD="http://www.w3.org/2001/XMLSchema#",u.XSD_BOOLEAN=u.XSD+"boolean",u.XSD_INTEGER=u.XSD+"integer",u.XSD_DOUBLE=u.XSD+"double",u.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",rK.Util=u,rK}Object.defineProperty(cbe,"__esModule",{value:!0});cbe.EntryHandlerArrayValue=void 0;const qdr=nO(),qHt=a1;class Xdr{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(r,o,l,u,d){return this.test(r,o,null,l,u)}async test(r,o,l,u,d){return typeof u[d]=="number"}async handle(r,o,l,u,d,h){let w=await o.unaliasKeywordParent(u,h);if(w==="@list"){let v=null,y=0;for(let E=h-2;E>0;E--){const A=u[E];if(typeof A=="string"||typeof A=="number"){y=E,v=A;break}}if(v!==null){const E=await o.valueToTerm(await r.getContext(u),v,d,h,u);for(const A of E)await this.handleListElement(r,o,A,d,h,u.slice(0,y),y);E.length===0&&await this.handleListElement(r,o,null,d,h,u.slice(0,y),y)}}else if(w==="@set")await r.newOnValueJob(u.slice(0,-2),d,h-2,!1);else if(w!==void 0&&w!=="@type"){for(let y=h-1;y>0;y--)if(typeof u[y]!="number"){w=await o.unaliasKeyword(u[y],u,y);break}const v=await r.getContext(u.slice(0,-1));if("@list"in qdr.Util.getContextValueContainer(v,w)){r.emittedStack[h+1]=!0;const y=await o.valueToTerm(await r.getContext(u),w,d,h,u);for(const E of y)await this.handleListElement(r,o,E,d,h,u.slice(0,-1),h-1);y.length===0&&await this.handleListElement(r,o,null,d,h,u.slice(0,-1),h-1)}else r.shiftStack(h,1),await r.newOnValueJob(u.slice(0,-1),d,h-1,!1),r.contextTree.removeContext(u.slice(0,-1))}}async handleListElement(r,o,l,u,d,h,w){let v=r.listPointerStack[d];if(u!==null&&(await o.unaliasKeywords(u,h,d))["@value"]!==null){if(!v||!v.value){const y=o.dataFactory.blankNode();v={value:y,listRootDepth:w,listId:y}}else{const y=o.dataFactory.blankNode();r.emitQuad(d,o.dataFactory.quad(v.value,o.rdfRest,y,o.getDefaultGraph())),v.value=y}l&&r.emitQuad(d,o.dataFactory.quad(v.value,o.rdfFirst,l,o.getDefaultGraph()))}else v||(v={listRootDepth:w,listId:o.rdfNil});r.listPointerStack[d]=v,r.rdfstar&&r.annotationsBuffer[d]&&r.emitError(new qHt.ErrorCoded("Found an illegal annotation inside a list",qHt.ERROR_CODES.INVALID_ANNOTATION))}}cbe.EntryHandlerArrayValue=Xdr;var pbe={};Object.defineProperty(pbe,"__esModule",{value:!0});pbe.EntryHandlerInvalidFallback=void 0;class Jdr{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(r,o,l,u,d){return!1}async test(r,o,l,u,d){return!0}async handle(r,o,l,u,d,h){r.emittedStack[h]=!1}}pbe.EntryHandlerInvalidFallback=Jdr;var bbe={},IS={};Object.defineProperty(IS,"__esModule",{value:!0});IS.EntryHandlerKeyword=void 0;class Ydr{constructor(r){this.keyword=r}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(r,o,l,u,d){return!1}async test(r,o,l,u,d){return l===this.keyword}}IS.EntryHandlerKeyword=Ydr;Object.defineProperty(bbe,"__esModule",{value:!0});bbe.EntryHandlerKeywordContext=void 0;const XHt=a1,Qdr=IS;class Zdr extends Qdr.EntryHandlerKeyword{constructor(){super("@context")}isStackProcessor(){return!1}async handle(r,o,l,u,d,h){r.streamingProfile&&(r.processingStack[h]||r.processingType[h]||r.idStack[h]!==void 0)&&r.emitError(new XHt.ErrorCoded("Found an out-of-order context, while streaming is enabled.(disable `streamingProfile`)",XHt.ERROR_CODES.INVALID_STREAMING_KEY_ORDER));const w=r.getContext(u),v=r.parseContext(d,(await w).getContextRaw());r.contextTree.setContext(u.slice(0,-1),v),r.emitContext(d),await r.validateContext(await v)}}bbe.EntryHandlerKeywordContext=Zdr;var gbe={};Object.defineProperty(gbe,"__esModule",{value:!0});gbe.EntryHandlerKeywordGraph=void 0;const ehr=IS;class thr extends ehr.EntryHandlerKeyword{constructor(){super("@graph")}async handle(r,o,l,u,d,h){r.graphStack[h+1]=!0}}gbe.EntryHandlerKeywordGraph=thr;var wbe={};Object.defineProperty(wbe,"__esModule",{value:!0});wbe.EntryHandlerKeywordId=void 0;const kE=a1,nhr=IS;class rhr extends nhr.EntryHandlerKeyword{constructor(){super("@id")}isStackProcessor(){return!1}async handle(r,o,l,u,d,h){if(typeof d!="string"){if(r.rdfstar&&typeof d=="object"){const v=Object.keys(d);v.length===1&&v[0]==="@id"&&r.emitError(new kE.ErrorCoded(`Invalid embedded node without property with @id ${d["@id"]}`,kE.ERROR_CODES.INVALID_EMBEDDED_NODE))}else r.emitError(new kE.ErrorCoded(`Found illegal @id '${d}'`,kE.ERROR_CODES.INVALID_ID_VALUE));return}const w=await o.getPropertiesDepth(u,h);if(r.idStack[w]!==void 0&&(r.idStack[w][0].listHead?r.emitError(new kE.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${u[h-1]}'`,kE.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT)):r.emitError(new kE.ErrorCoded(`Found duplicate @ids '${r.idStack[w][0].value}' and '${d}'`,kE.ERROR_CODES.COLLIDING_KEYWORDS))),r.rdfstar&&r.annotationsBuffer[h])for(const v of r.annotationsBuffer[h])v.depth===h&&r.emitError(new kE.ErrorCoded(`Found an illegal @id inside an annotation: ${d}`,kE.ERROR_CODES.INVALID_ANNOTATION));r.idStack[w]=o.nullableTermToArray(await o.resourceToTerm(await r.getContext(u),d))}}wbe.EntryHandlerKeywordId=rhr;var mbe={};Object.defineProperty(mbe,"__esModule",{value:!0});mbe.EntryHandlerKeywordIncluded=void 0;const aD=a1,ihr=IS;class ohr extends ihr.EntryHandlerKeyword{constructor(){super("@included")}async handle(r,o,l,u,d,h){typeof d!="object"&&r.emitError(new aD.ErrorCoded(`Found illegal @included '${d}'`,aD.ERROR_CODES.INVALID_INCLUDED_VALUE));const w=await o.unaliasKeywords(d,u,h,await r.getContext(u));"@value"in w&&r.emitError(new aD.ErrorCoded(`Found an illegal @included @value node '${JSON.stringify(d)}'`,aD.ERROR_CODES.INVALID_INCLUDED_VALUE)),"@list"in w&&r.emitError(new aD.ErrorCoded(`Found an illegal @included @list node '${JSON.stringify(d)}'`,aD.ERROR_CODES.INVALID_INCLUDED_VALUE)),r.emittedStack[h]=!1}}mbe.EntryHandlerKeywordIncluded=ohr;var ybe={};Object.defineProperty(ybe,"__esModule",{value:!0});ybe.EntryHandlerKeywordNest=void 0;const mue=a1,shr=IS;class lhr extends shr.EntryHandlerKeyword{constructor(){super("@nest")}async handle(r,o,l,u,d,h){typeof d!="object"&&r.emitError(new mue.ErrorCoded(`Found invalid @nest entry for '${l}': '${d}'`,mue.ERROR_CODES.INVALID_NEST_VALUE)),"@value"in await o.unaliasKeywords(d,u,h,await r.getContext(u))&&r.emitError(new mue.ErrorCoded(`Found an invalid @value node for '${l}'`,mue.ERROR_CODES.INVALID_NEST_VALUE)),r.emittedStack[h]=!1}}ybe.EntryHandlerKeywordNest=lhr;var vbe={};Object.defineProperty(vbe,"__esModule",{value:!0});vbe.EntryHandlerKeywordType=void 0;const aK=a1,yue=nO(),ahr=dbe(),chr=IS;class uhr extends chr.EntryHandlerKeyword{constructor(){super("@type")}isStackProcessor(){return!1}async handle(r,o,l,u,d,h){const w=u[h],v=await r.getContext(u),y=o.rdfType,E=await o.unaliasKeywordParent(u,h),A=yue.Util.isPropertyReverse(v,w,E),C=yue.Util.isPropertyInEmbeddedNode(E);o.validateReverseInEmbeddedNode(l,A,C);const R=yue.Util.isPropertyInAnnotationObject(E),O=Array.isArray(d)?d:[d];for(const H of O){typeof H!="string"&&r.emitError(new aK.ErrorCoded(`Found illegal @type '${H}'`,aK.ERROR_CODES.INVALID_TYPE_VALUE));const G=o.createVocabOrBaseTerm(v,H);G&&await ahr.EntryHandlerPredicate.handlePredicateObject(r,o,u,h,y,G,A,C,R)}let M=Promise.resolve(v),L=!1;for(const H of O.sort()){const G=yue.Util.getContextValue(v,"@context",H,null);G&&(L=!0,M=M.then(j=>r.parseContext(G,j.getContextRaw())))}r.streamingProfile&&(L||!r.streamingProfileAllowOutOfOrderPlainType)&&(r.processingStack[h]||r.idStack[h])&&r.emitError(new aK.ErrorCoded("Found an out-of-order type-scoped context, while streaming is enabled.(disable `streamingProfile`)",aK.ERROR_CODES.INVALID_STREAMING_KEY_ORDER)),L&&(M=M.then(H=>H.getContextRaw()["@propagate"]!==!0?new aK.JsonLdContextNormalized(Object.assign(Object.assign({},H.getContextRaw()),{"@propagate":!1,"@__propagateFallback":v.getContextRaw()})):H),r.contextTree.setContext(u.slice(0,u.length-1),M)),r.processingType[h]=!0}}vbe.EntryHandlerKeywordType=uhr;var _be={};Object.defineProperty(_be,"__esModule",{value:!0});_be.EntryHandlerKeywordUnknownFallback=void 0;const wq=a1;class Sbe{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(r,o,l,u,d){const h=await o.unaliasKeyword(l[u],l,u);return wq.Util.isPotentialKeyword(h)?!(!d&&h==="@list"):!1}async test(r,o,l,u,d){return wq.Util.isPotentialKeyword(l)}async handle(r,o,l,u,d,h){const w=Sbe.VALID_KEYWORDS_TYPES[l];w!==void 0?w&&typeof d!==w.type&&r.emitError(new wq.ErrorCoded(`Invalid value type for '${l}' with value '${d}'`,w.errorCode)):r.strictValues&&r.emitError(new Error(`Unknown keyword '${l}' with value '${d}'`)),r.emittedStack[h]=!1}}Sbe.VALID_KEYWORDS_TYPES={"@index":{type:"string",errorCode:wq.ERROR_CODES.INVALID_INDEX_VALUE},"@list":null,"@reverse":{type:"object",errorCode:wq.ERROR_CODES.INVALID_REVERSE_VALUE},"@set":null,"@value":null};_be.EntryHandlerKeywordUnknownFallback=Sbe;var Ebe={};Object.defineProperty(Ebe,"__esModule",{value:!0});Ebe.EntryHandlerKeywordValue=void 0;const fhr=IS;class dhr extends fhr.EntryHandlerKeyword{constructor(){super("@value")}async validate(r,o,l,u,d){const h=l[u];return h&&!r.literalStack[u]&&await this.test(r,o,h,l,u)&&(r.literalStack[u]=!0),super.validate(r,o,l,u,d)}async test(r,o,l,u,d){return await o.unaliasKeyword(u[d],u.slice(0,u.length-1),d-1,!0)==="@value"}async handle(r,o,l,u,d,h){r.literalStack[h]=!0,delete r.unidentifiedValuesBuffer[h],delete r.unidentifiedGraphsBuffer[h],r.emittedStack[h]=!1}}Ebe.EntryHandlerKeywordValue=dhr;var cK={},kbe={};Object.defineProperty(kbe,"__esModule",{value:!0});kbe.ContextTree=void 0;class IUe{constructor(){this.subTrees={}}getContext(r){if(r.length>0){const[o,...l]=r,u=this.subTrees[o];if(u){const d=u.getContext(l);if(d)return d.then(({context:h,depth:w})=>({context:h,depth:w+1}))}}return this.context?this.context.then(o=>({context:o,depth:0})):null}setContext(r,o){if(r.length===0)this.context=o;else{const[l,...u]=r;let d=this.subTrees[l];d||(d=this.subTrees[l]=new IUe),d.setContext(u,o)}}removeContext(r){this.setContext(r,null)}}kbe.ContextTree=IUe;var JHt;function hhr(){if(JHt)return cK;JHt=1,Object.defineProperty(cK,"__esModule",{value:!0}),cK.ParsingContext=void 0;const n=a1,r=pj,o=kbe,l=gin();let u=class bin{constructor(h){this.contextParser=new n.ContextParser({documentLoader:h.documentLoader,skipValidation:h.skipContextValidation}),this.streamingProfile=!!h.streamingProfile,this.baseIRI=h.baseIRI,this.produceGeneralizedRdf=!!h.produceGeneralizedRdf,this.allowSubjectList=!!h.allowSubjectList,this.processingMode=h.processingMode||l.JsonLdParser.DEFAULT_PROCESSING_MODE,this.strictValues=!!h.strictValues,this.validateValueIndexes=!!h.validateValueIndexes,this.defaultGraph=h.defaultGraph,this.rdfDirection=h.rdfDirection,this.normalizeLanguageTags=h.normalizeLanguageTags,this.streamingProfileAllowOutOfOrderPlainType=h.streamingProfileAllowOutOfOrderPlainType,this.rdfstar=h.rdfstar!==!1,this.rdfstarReverseInEmbedded=h.rdfstarReverseInEmbedded,this.topLevelProperties=!1,this.activeProcessingMode=parseFloat(this.processingMode),this.processingStack=[],this.processingType=[],this.emittedStack=[],this.idStack=[],this.graphStack=[],this.graphContainerTermStack=[],this.listPointerStack=[],this.contextTree=new o.ContextTree,this.literalStack=[],this.validationStack=[],this.unaliasedKeywordCacheStack=[],this.jsonLiteralStack=[],this.unidentifiedValuesBuffer=[],this.unidentifiedGraphsBuffer=[],this.annotationsBuffer=[],this.pendingContainerFlushBuffers=[],this.parser=h.parser,h.context?(this.rootContext=this.parseContext(h.context),this.rootContext.then(w=>this.validateContext(w))):this.rootContext=Promise.resolve(new n.JsonLdContextNormalized(this.baseIRI?{"@base":this.baseIRI,"@__baseDocument":!0}:{}))}async parseContext(h,w,v){return this.contextParser.parse(h,{baseIRI:this.baseIRI,ignoreProtection:v,normalizeLanguageTags:this.normalizeLanguageTags,parentContext:w,processingMode:this.activeProcessingMode})}validateContext(h){const w=h.getContextRaw()["@version"];if(w){if(this.activeProcessingMode&&w>this.activeProcessingMode)throw new r.ErrorCoded(`Unsupported JSON-LD version '${w}' under active processing mode ${this.activeProcessingMode}.`,r.ERROR_CODES.PROCESSING_MODE_CONFLICT);if(this.activeProcessingMode&&w0&&v.context.getContextRaw()["@propagate"]===!1&&v.depth!==w&&!y);return v.depth===0&&v.context.getContextRaw()["@propagate"]===!1&&v.depth!==w&&(v.context=new n.JsonLdContextNormalized({})),v}async newOnValueJob(h,w,v,y){await this.parser.newOnValueJob(h,w,v,y)}async handlePendingContainerFlushBuffers(){if(this.pendingContainerFlushBuffers.length>0){for(const h of this.pendingContainerFlushBuffers)await this.parser.flushBuffer(h.depth,h.keys),this.parser.flushStacks(h.depth);return this.pendingContainerFlushBuffers.splice(0,this.pendingContainerFlushBuffers.length),!0}else return!1}emitQuad(h,w){h===1&&(this.topLevelProperties=!0),this.parser.push(w)}emitError(h){this.parser.emit("error",h)}emitContext(h){this.parser.emit("context",h)}getUnidentifiedValueBufferSafe(h){let w=this.unidentifiedValuesBuffer[h];return w||(w=[],this.unidentifiedValuesBuffer[h]=w),w}getUnidentifiedGraphBufferSafe(h){let w=this.unidentifiedGraphsBuffer[h];return w||(w=[],this.unidentifiedGraphsBuffer[h]=w),w}getAnnotationsBufferSafe(h){let w=this.annotationsBuffer[h];return w||(w=[],this.annotationsBuffer[h]=w),w}getExpandOptions(){return bin.EXPAND_OPTIONS[this.activeProcessingMode]}shiftStack(h,w){const v=this.idStack[h+w];if(v&&(this.idStack[h]=v,this.emittedStack[h]=!0,delete this.idStack[h+w]),this.pendingContainerFlushBuffers.length)for(const y of this.pendingContainerFlushBuffers)y.depth>=h+w&&(y.depth-=w,y.keys.splice(h,w));this.unidentifiedValuesBuffer[h+w]&&(this.unidentifiedValuesBuffer[h]=this.unidentifiedValuesBuffer[h+w],delete this.unidentifiedValuesBuffer[h+w]),this.annotationsBuffer[h+w-1]&&(this.annotationsBuffer[h-1]||(this.annotationsBuffer[h-1]=[]),this.annotationsBuffer[h-1]=[...this.annotationsBuffer[h-1],...this.annotationsBuffer[h+w-1]],delete this.annotationsBuffer[h+w-1])}};return u.EXPAND_OPTIONS={1:{allowPrefixForcing:!1,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!1},1.1:{allowPrefixForcing:!0,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!0}},cK.ParsingContext=u,cK}var Rbe={};Object.defineProperty(Rbe,"__esModule",{value:!0});Rbe.EntryHandlerKeywordAnnotation=void 0;const phr=IS,YHt=a1;class bhr extends phr.EntryHandlerKeyword{constructor(){super("@annotation")}async handle(r,o,l,u,d,h){(typeof d=="string"||typeof d=="object"&&d["@value"])&&r.emitError(new YHt.ErrorCoded(`Found illegal annotation value: ${JSON.stringify(d)}`,YHt.ERROR_CODES.INVALID_ANNOTATION))}}Rbe.EntryHandlerKeywordAnnotation=bhr;var QHt;function gin(){if(QHt)return nK;QHt=1,Object.defineProperty(nK,"__esModule",{value:!0}),nK.JsonLdParser=void 0;const n=ucr,r=a1,o=Pdr,l=cbe,u=hin(),d=pbe,h=dbe(),w=bbe,v=gbe,y=wbe,E=mbe,A=ybe,C=vbe,R=_be,O=Ebe,M=hhr(),L=nO(),H=wrn,G=Rbe;let j=class kD extends o.Transform{constructor(te){super({readableObjectMode:!0}),te=te||{},this.options=te,this.parsingContext=new M.ParsingContext(Object.assign({parser:this},te)),this.util=new L.Util({dataFactory:te.dataFactory,parsingContext:this.parsingContext}),this.jsonParser=new n,this.contextJobs=[],this.typeJobs=[],this.contextAwaitingJobs=[],this.lastDepth=0,this.lastKeys=[],this.lastOnValueJob=Promise.resolve(),this.attachJsonParserListeners(),this.on("end",()=>{typeof this.jsonParser.mode<"u"&&this.emit("error",new Error("Unclosed document"))})}static fromHttpResponse(te,pe,Le,Ee){let le,xe=["application/activity+json"];if(Ee&&Ee.wellKnownMediaTypes&&(xe=Ee.wellKnownMediaTypes),pe!=="application/ld+json"&&!xe.includes(pe)){if(pe!=="application/json"&&!pe.endsWith("+json"))throw new r.ErrorCoded(`Unsupported JSON-LD media type ${pe}`,r.ERROR_CODES.LOADING_DOCUMENT_FAILED);if(Le&&Le.has("Link")&&Le.forEach((ae,F)=>{if(F==="link"){const me=(0,H.parse)(ae);for(const ye of me.get("rel","http://www.w3.org/ns/json-ld#context")){if(le)throw new r.ErrorCoded("Multiple JSON-LD context link headers were found on "+te,r.ERROR_CODES.MULTIPLE_CONTEXT_LINK_HEADERS);le=ye.uri}}}),!le&&!(Ee!=null&&Ee.ignoreMissingContextLinkHeader))throw new r.ErrorCoded(`Missing context link header for media type ${pe} on ${te}`,r.ERROR_CODES.LOADING_DOCUMENT_FAILED)}let be;if(Le&&Le.has("Content-Type")){const ae=Le.get("Content-Type"),F=/; *profile=([^"]*)/.exec(ae);F&&F[1]==="http://www.w3.org/ns/json-ld#streaming"&&(be=!0)}return new kD(Object.assign({baseIRI:te,context:le,streamingProfile:be},Ee||{}))}import(te){if("pipe"in te){te.on("error",Le=>pe.emit("error",Le));const pe=te.pipe(new kD(this.options));return pe}else{const pe=new o.PassThrough({readableObjectMode:!0});te.on("error",Ee=>Le.emit("error",Ee)),te.on("data",Ee=>pe.push(Ee)),te.on("end",()=>pe.push(null));const Le=pe.pipe(new kD(this.options));return Le}}_transform(te,pe,Le){this.jsonParser.write(te),this.lastOnValueJob.then(()=>Le(),Ee=>Le(Ee))}async newOnValueJob(te,pe,Le,Ee){let le=!0;if(Ee&&Le1&&(F=this.parsingContext.validationStack[this.parsingContext.validationStack.length-1].property);for(let me=Math.max(1,this.parsingContext.validationStack.length-1);me=0?this.parsingContext.idStack[te-F-1]:[await this.util.getGraphContainerValue(pe,te)];if(me)for(const ye of me){this.parsingContext.emittedStack[te]=!0;for(const we of le)this.util.emitQuadChecked(te,ae,we.predicate,we.object,ye,we.reverse,we.isEmbedded)}else{const ye=this.parsingContext.getUnidentifiedGraphBufferSafe(te-await this.util.getDepthOffsetGraph(te,pe)-1);for(const we of le)we.reverse?ye.push({object:ae,predicate:we.predicate,subject:we.object,isEmbedded:we.isEmbedded}):ye.push({object:we.object,predicate:we.predicate,subject:ae,isEmbedded:we.isEmbedded})}}this.parsingContext.unidentifiedValuesBuffer.splice(te,1),this.parsingContext.literalStack.splice(te,1),this.parsingContext.jsonLiteralStack.splice(te,1)}const xe=this.parsingContext.unidentifiedGraphsBuffer[te];if(xe){for(const ae of Le){const F=te===1&&ae.termType==="BlankNode"&&!this.parsingContext.topLevelProperties?this.util.getDefaultGraph():ae;this.parsingContext.emittedStack[te]=!0;for(const me of xe)this.parsingContext.emitQuad(te,this.util.dataFactory.quad(me.subject,me.predicate,me.object,F))}this.parsingContext.unidentifiedGraphsBuffer.splice(te,1)}const be=this.parsingContext.annotationsBuffer[te];if(be){be.length>0&&te===1&&this.parsingContext.emitError(new r.ErrorCoded("Annotations can not be made on top-level nodes",r.ERROR_CODES.INVALID_ANNOTATION));const ae=this.parsingContext.getAnnotationsBufferSafe(te-1);for(const F of be)ae.push(F);delete this.parsingContext.annotationsBuffer[te]}}async validateKey(te,pe,Le){for(const Ee of kD.ENTRY_HANDLERS)if(await Ee.validate(this.parsingContext,this.util,te,pe,Le))return{valid:!0,property:Le||Ee.isPropertyHandler()};return{valid:!1,property:!1}}attachJsonParserListeners(){this.jsonParser.onValue=te=>{const pe=this.jsonParser.stack.length,Le=new Array(pe+1).fill(0).map((Ee,le)=>le===pe?this.jsonParser.key:this.jsonParser.stack[le].key);if(!this.isParsingContextInner(pe)){const Ee=()=>this.newOnValueJob(Le,te,pe,!0);if(!this.parsingContext.streamingProfile&&!this.parsingContext.contextTree.getContext(Le.slice(0,-1)))if(Le[pe]==="@context"){let le=this.contextJobs[pe];le||(le=this.contextJobs[pe]=[]),le.push(Ee)}else this.contextAwaitingJobs.push({job:Ee,keys:Le,depth:pe});else this.lastOnValueJob=this.lastOnValueJob.then(Ee);!this.parsingContext.streamingProfile&&pe===0&&(this.lastOnValueJob=this.lastOnValueJob.then(()=>this.executeBufferedJobs()))}},this.jsonParser.onError=te=>{this.emit("error",te)}}isParsingContextInner(te){for(let pe=te;pe>0;pe--)if(this.jsonParser.stack[pe-1].key==="@context")return!0;return!1}async executeBufferedJobs(){for(const pe of this.contextJobs)if(pe)for(const Le of pe)await Le();this.parsingContext.unaliasedKeywordCacheStack.splice(0);const te=[];for(const pe of this.contextAwaitingJobs)await this.util.unaliasKeyword(pe.keys[pe.depth],pe.keys,pe.depth,!0)==="@type"||typeof pe.keys[pe.depth]=="number"&&await this.util.unaliasKeyword(pe.keys[pe.depth-1],pe.keys,pe.depth-1,!0)==="@type"?this.typeJobs.push({job:pe.job,keys:pe.keys.slice(0,pe.keys.length-1)}):te.push(pe);for(const pe of te){if(this.typeJobs.length>0){const Le=[],Ee=[];for(let be=0;bebe.keys.length-ae.keys.length);for(const be of le)await be.job();const xe=Ee.sort().reverse();for(const be of xe)this.typeJobs.splice(be,1)}await pe.job()}}};return j.DEFAULT_PROCESSING_MODE="1.1",j.ENTRY_HANDLERS=[new l.EntryHandlerArrayValue,new w.EntryHandlerKeywordContext,new y.EntryHandlerKeywordId,new E.EntryHandlerKeywordIncluded,new v.EntryHandlerKeywordGraph,new A.EntryHandlerKeywordNest,new C.EntryHandlerKeywordType,new O.EntryHandlerKeywordValue,new G.EntryHandlerKeywordAnnotation,new u.EntryHandlerContainer,new R.EntryHandlerKeywordUnknownFallback,new h.EntryHandlerPredicate,new d.EntryHandlerInvalidFallback],nK.JsonLdParser=j,nK}(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var w=Object.getOwnPropertyDescriptor(u,d);(!w||("get"in w?!u.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,w)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(gin(),n)})(crn);var win={exports:{}},VNe={exports:{}},jf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},min={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=jf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(min);var u1=min.exports,PUe={};const{format:ghr,inspect:ihe,AggregateError:whr}=u1,mhr=globalThis.AggregateError||whr,yhr=Symbol("kIsNodeError"),vhr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],_hr=/^([A-Z][a-z0-9]*)+$/,Shr="__node_internal_",xbe={};function sP(n,r){if(!n)throw new xbe.ERR_INTERNAL_ASSERTION(r)}function ZHt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function Ehr(n,r,o){if(typeof r=="function")return sP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return sP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:ghr(r,...o)}function Yp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(Ehr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[yhr]=!0,xbe[n]=l}function eUt(n){const r=Shr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function khr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new mhr([r,n],r.message);return o.code=r.code,o}return n||r}let Rhr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new xbe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Yp("ERR_ASSERTION","%s",Error);Yp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{sP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)sP(typeof v=="string","All expected entries have to be of type string"),vhr.includes(v)?u.push(v.toLowerCase()):_hr.test(v)?d.push(v):(sP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=ihe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=ihe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Yp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=ihe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Yp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Yp("ERR_MISSING_ARGS",(...n)=>{sP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Yp("ERR_OUT_OF_RANGE",(n,r,o)=>{sP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=ZHt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=ZHt(l)),l+="n"):l=ihe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Yp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Yp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Yp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Yp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Yp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Yp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Yp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Yp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Yp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Yp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Yp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var $0={AbortError:Rhr,aggregateTwoErrors:eUt(khr),hideStackFrames:eUt,codes:xbe};const{ArrayIsArray:OUe,ArrayPrototypeIncludes:yin,ArrayPrototypeJoin:vin,ArrayPrototypeMap:xhr,NumberIsInteger:NUe,NumberIsNaN:Chr,NumberMAX_SAFE_INTEGER:Ahr,NumberMIN_SAFE_INTEGER:Thr,NumberParseInt:$hr,ObjectPrototypeHasOwnProperty:Ihr,RegExpPrototypeExec:_in,String:Phr,StringPrototypeToUpperCase:Ohr,StringPrototypeTrim:Nhr}=jf,{hideStackFrames:bv,codes:{ERR_SOCKET_BAD_PORT:Mhr,ERR_INVALID_ARG_TYPE:qb,ERR_INVALID_ARG_VALUE:yj,ERR_OUT_OF_RANGE:AP,ERR_UNKNOWN_SIGNAL:tUt}}=$0,{normalizeEncoding:Dhr}=u1,{isAsyncFunction:Lhr,isArrayBufferView:jhr}=u1.types,nUt={};function Fhr(n){return n===(n|0)}function Bhr(n){return n===n>>>0}const Whr=/^[0-7]+$/,Hhr="must be a 32-bit unsigned integer or an octal string";function Uhr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(_in(Whr,n)===null)throw new yj(r,n,Hhr);n=$hr(n,8)}return Sin(n,r),n}const Ghr=bv((n,r,o=Thr,l=Ahr)=>{if(typeof n!="number")throw new qb(r,"number",n);if(!NUe(n))throw new AP(r,"an integer",n);if(nl)throw new AP(r,`>= ${o} && <= ${l}`,n)}),Vhr=bv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new qb(r,"number",n);if(!NUe(n))throw new AP(r,"an integer",n);if(nl)throw new AP(r,`>= ${o} && <= ${l}`,n)}),Sin=bv((n,r,o=!1)=>{if(typeof n!="number")throw new qb(r,"number",n);if(!NUe(n))throw new AP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new AP(r,`>= ${l} && <= ${u}`,n)});function MUe(n,r){if(typeof n!="string")throw new qb(r,"string",n)}function zhr(n,r,o=void 0,l){if(typeof n!="number")throw new qb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&Chr(n))throw new AP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const Khr=bv((n,r,o)=>{if(!yin(o,n)){const u="must be one of: "+vin(xhr(o,d=>typeof d=="string"?`'${d}'`:Phr(d)),", ");throw new yj(r,n,u)}});function Ein(n,r){if(typeof n!="boolean")throw new qb(r,"boolean",n)}function zNe(n,r,o){return n==null||!Ihr(n,r)?o:n[r]}const qhr=bv((n,r,o=null)=>{const l=zNe(o,"allowArray",!1),u=zNe(o,"allowFunction",!1);if(!zNe(o,"nullable",!1)&&n===null||!l&&OUe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new qb(r,"Object",n)}),Xhr=bv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new qb(r,"a dictionary",n)}),Cbe=bv((n,r,o=0)=>{if(!OUe(n))throw new qb(r,"Array",n);if(n.length{if(!jhr(n))throw new qb(r,["Buffer","TypedArray","DataView"],n)});function tpr(n,r){const o=Dhr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new yj("encoding",r,`is invalid for data of length ${l}`)}function npr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&Nhr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new Mhr(r,n,o);return n|0}const kin=bv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new qb(r,"AbortSignal",n)}),rpr=bv((n,r)=>{if(typeof n!="function")throw new qb(r,"Function",n)}),ipr=bv((n,r)=>{if(typeof n!="function"||Lhr(n))throw new qb(r,"Function",n)}),opr=bv((n,r)=>{if(n!==void 0)throw new qb(r,"undefined",n)});function spr(n,r,o){if(!yin(o,n))throw new qb(r,`('${vin(o,"|")}')`,n)}const lpr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function rUt(n,r){if(typeof n>"u"||!_in(lpr,n))throw new yj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function apr(n){if(typeof n=="string")return rUt(n,"hints"),n;if(OUe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var RJ={isInt32:Fhr,isUint32:Bhr,parseFileMode:Uhr,validateArray:Cbe,validateStringArray:Jhr,validateBooleanArray:Yhr,validateAbortSignalArray:Qhr,validateBoolean:Ein,validateBuffer:epr,validateDictionary:Xhr,validateEncoding:tpr,validateFunction:rpr,validateInt32:Vhr,validateInteger:Ghr,validateNumber:zhr,validateObject:qhr,validateOneOf:Khr,validatePlainFunction:ipr,validatePort:npr,validateSignalName:Zhr,validateString:MUe,validateUint32:Sin,validateUndefined:opr,validateUnion:spr,validateAbortSignal:kin,validateLinkHeaderValue:apr},DUe={exports:{}};const{SymbolAsyncIterator:iUt,SymbolIterator:oUt,SymbolFor:rO}=jf,Rin=rO("nodejs.stream.destroyed"),xin=rO("nodejs.stream.errored"),Vje=rO("nodejs.stream.readable"),zje=rO("nodejs.stream.writable"),Cin=rO("nodejs.stream.disturbed"),cpr=rO("nodejs.webstream.isClosedPromise"),upr=rO("nodejs.webstream.controllerErrorFunction");function Abe(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Tbe(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function fpr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function mk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function Ain(n){return!!(n&&!mk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function Tin(n){return!!(n&&!mk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function $in(n){return!!(n&&!mk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function dpr(n){return Ain(n)||Tin(n)||$in(n)}function hpr(n,r){return n==null?!1:r===!0?typeof n[iUt]=="function":r===!1?typeof n[oUt]=="function":typeof n[iUt]=="function"||typeof n[oUt]=="function"}function $be(n){if(!mk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[Rin]||l!=null&&l.destroyed)}function Iin(n){if(!Tbe(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function ppr(n,r){if(!Tbe(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function bpr(n){if(!Abe(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Pin(n,r){if(!Abe(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Oin(n){return n&&n[Vje]!=null?n[Vje]:typeof(n==null?void 0:n.readable)!="boolean"?null:$be(n)?!1:Abe(n)&&n.readable&&!Pin(n)}function Nin(n){return n&&n[zje]!=null?n[zje]:typeof(n==null?void 0:n.writable)!="boolean"?null:$be(n)?!1:Tbe(n)&&n.writable&&!Iin(n)}function gpr(n,r){return mk(n)?$be(n)?!0:!((r==null?void 0:r.readable)!==!1&&Oin(n)||(r==null?void 0:r.writable)!==!1&&Nin(n)):null}function wpr(n){var r,o;return mk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function mpr(n){var r,o;return mk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function ypr(n){if(!mk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Min(n)?n._closed:null}function Min(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Din(n){return typeof n._sent100=="boolean"&&Min(n)}function vpr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function _pr(n){if(!mk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Din(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function Spr(n){var r;return!!(n&&((r=n[Cin])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function Epr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[xin])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Cx={isDestroyed:$be,kIsDestroyed:Rin,isDisturbed:Spr,kIsDisturbed:Cin,isErrored:Epr,kIsErrored:xin,isReadable:Oin,kIsReadable:Vje,kIsClosedPromise:cpr,kControllerErrorFunction:upr,kIsWritable:zje,isClosed:ypr,isDuplexNodeStream:fpr,isFinished:gpr,isIterable:hpr,isReadableNodeStream:Abe,isReadableStream:Ain,isReadableEnded:bpr,isReadableFinished:Pin,isReadableErrored:mpr,isNodeStream:mk,isWebStream:dpr,isWritable:Nin,isWritableNodeStream:Tbe,isWritableStream:Tin,isWritableEnded:Iin,isWritableFinished:ppr,isWritableErrored:wpr,isServerRequest:vpr,isServerResponse:Din,willEmitClose:_pr,isTransformStream:$in};const q4=ui,{AbortError:Lin,codes:kpr}=$0,{ERR_INVALID_ARG_TYPE:Rpr,ERR_STREAM_PREMATURE_CLOSE:sUt}=kpr,{kEmptyObject:Kje,once:qje}=u1,{validateAbortSignal:xpr,validateFunction:Cpr,validateObject:Apr,validateBoolean:Tpr}=RJ,{Promise:$pr,PromisePrototypeThen:Ipr,SymbolDispose:jin}=jf,{isClosed:Ppr,isReadable:lUt,isReadableNodeStream:KNe,isReadableStream:Opr,isReadableFinished:aUt,isReadableErrored:cUt,isWritable:uUt,isWritableNodeStream:fUt,isWritableStream:Npr,isWritableFinished:dUt,isWritableErrored:hUt,isNodeStream:Mpr,willEmitClose:Dpr,kIsClosedPromise:Lpr}=Cx;let lL;function jpr(n){return n.setHeader&&typeof n.abort=="function"}const Xje=()=>{};function Fin(n,r,o){var l,u;if(arguments.length===2?(o=r,r=Kje):r==null?r=Kje:Apr(r,"options"),Cpr(o,"callback"),xpr(r.signal,"options.signal"),o=qje(o),Opr(n)||Npr(n))return Fpr(n,r,o);if(!Mpr(n))throw new Rpr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:KNe(n),h=(u=r.writable)!==null&&u!==void 0?u:fUt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=Dpr(n)&&KNe(n)===d&&fUt(n)===h,A=dUt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=aUt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=Ppr(n);const H=()=>{L=!0;const te=hUt(n)||cUt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&KNe(n,!0)&&!aUt(n,!1))return o.call(n,new sUt);if(h&&!A&&!dUt(n,!1))return o.call(n,new sUt);o.call(n)},G=()=>{L=!0;const te=hUt(n)||cUt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};jpr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?q4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||q4.nextTick(G):(!d&&(!E||lUt(n))&&(A||uUt(n)===!1)||!h&&(!E||uUt(n))&&(R||lUt(n)===!1)||v&&n.req&&n.aborted)&&q4.nextTick(G);const Q=()=>{o=Xje,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new Lin(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)q4.nextTick(te);else{lL=lL||u1.addAbortListener;const pe=lL(r.signal,te),Le=o;o=qje((...Ee)=>{pe[jin](),Le.apply(n,Ee)})}}return Q}function Fpr(n,r,o){let l=!1,u=Xje;if(r.signal)if(u=()=>{l=!0,o.call(n,new Lin(void 0,{cause:r.signal.reason}))},r.signal.aborted)q4.nextTick(u);else{lL=lL||u1.addAbortListener;const h=lL(r.signal,u),w=o;o=qje((...v)=>{h[jin](),w.apply(n,v)})}const d=(...h)=>{l||q4.nextTick(()=>o.apply(n,h))};return Ipr(n[Lpr].promise,d,d),Xje}function Bpr(n,r){var o;let l=!1;return r===null&&(r=Kje),(o=r)!==null&&o!==void 0&&o.cleanup&&(Tpr(r.cleanup,"cleanup"),l=r.cleanup),new $pr((u,d)=>{const h=Fin(n,r,w=>{l&&h(),w?d(w):u()})})}DUe.exports=Fin;DUe.exports.finished=Bpr;var BT=DUe.exports;const GE=ui,{aggregateTwoErrors:Wpr,codes:{ERR_MULTIPLE_CALLBACK:Hpr},AbortError:Upr}=$0,{Symbol:Bin}=jf,{kIsDestroyed:Gpr,isDestroyed:Vpr,isFinished:zpr,isServerRequest:Kpr}=Cx,Win=Bin("kDestroy"),Jje=Bin("kConstruct");function Hin(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function qpr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Hin(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?pUt(this,n,r):this.once(Win,function(d){pUt(this,Wpr(d,n),r)}),this)}function pUt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Hin(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?GE.nextTick(Xpr,n,d):GE.nextTick(Uin,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function Xpr(n,r){Yje(n,r),Uin(n)}function Uin(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function Yje(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function Jpr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function Qje(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?GE.nextTick(Yje,n,r):Yje(n,r))}function Ypr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(Jje,r),!(n.listenerCount(Jje)>1)&&GE.nextTick(Qpr,n)}function Qpr(n){let r=!1;function o(l){if(r){Qje(n,l??new Hpr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Win,l):l?Qje(n,l,!0):GE.nextTick(Zpr,n)}try{n._construct(l=>{GE.nextTick(o,l)})}catch(l){GE.nextTick(o,l)}}function Zpr(n){n.emit(Jje)}function bUt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Gin(n){n.emit("close")}function ebr(n,r){n.emit("error",r),GE.nextTick(Gin,n)}function tbr(n,r){!n||Vpr(n)||(!r&&!zpr(n)&&(r=new Upr),Kpr(n)?(n.socket=null,n.destroy(r)):bUt(n)?n.abort():bUt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?GE.nextTick(ebr,n,r):GE.nextTick(Gin,n),n.destroyed||(n[Gpr]=!0))}var vj={construct:Ypr,destroyer:tbr,destroy:qpr,undestroy:Jpr,errorOrDestroy:Qje};const{ArrayIsArray:nbr,ObjectSetPrototypeOf:Vin}=jf,{EventEmitter:Ibe}=Ns;function Pbe(n){Ibe.call(this,n)}Vin(Pbe.prototype,Ibe.prototype);Vin(Pbe,Ibe);Pbe.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Ibe.listenerCount(this,"error")===0&&this.emit("error",E)}Zje(o,"error",v),Zje(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function Zje(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):nbr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var LUe={Stream:Pbe,prependListener:Zje},zin={exports:{}};(function(n){const{SymbolDispose:r}=jf,{AbortError:o,codes:l}=$0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Cx,w=BT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||u1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(zin);var Obe=zin.exports;const{StringPrototypeSlice:gUt,SymbolIterator:rbr,TypedArrayPrototypeSet:vue,Uint8Array:ibr}=jf,{Buffer:qNe}=Kr,{inspect:obr}=u1;var sbr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return qNe.alloc(0);const o=qNe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)vue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=gUt(d,0,r),this.head=l,l.data=gUt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=qNe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)vue(o,h,l-r),r-=h.length;else{r===h.length?(vue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(vue(o,new ibr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return obr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:lbr,NumberIsInteger:abr}=jf,{validateInteger:cbr}=RJ,{ERR_INVALID_ARG_VALUE:ubr}=$0.codes;let Kin=16*1024,qin=16;function fbr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Xin(n){return n?qin:Kin}function dbr(n,r){cbr(r,"value",0),n?qin=r:Kin=r}function hbr(n,r,o,l){const u=fbr(r,l,o);if(u!=null){if(!abr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new ubr(d,u)}return lbr(u)}return Xin(n.objectMode)}var Nbe={getHighWaterMark:hbr,getDefaultHighWaterMark:Xin,setDefaultHighWaterMark:dbr};const wUt=ui,{PromisePrototypeThen:pbr,SymbolAsyncIterator:mUt,SymbolIterator:yUt}=jf,{Buffer:bbr}=Kr,{ERR_INVALID_ARG_TYPE:gbr,ERR_STREAM_NULL_VALUES:wbr}=$0.codes;function mbr(n,r,o){let l;if(typeof r=="string"||r instanceof bbr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[mUt])u=!0,l=r[mUt]();else if(r&&r[yUt])u=!1,l=r[yUt]();else throw new gbr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){pbr(w(y),()=>wUt.nextTick(E,y),A=>wUt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new wbr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Jin=mbr,XNe,vUt;function Mbe(){if(vUt)return XNe;vUt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=jf;XNe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=LUe,{Buffer:L}=Kr,{addAbortSignal:H}=Obe,G=BT;let j=u1.debuglog("stream",S=>{j=S});const Q=sbr,te=vj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=Nbe,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=$0,{validateObject:ye}=RJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Jin;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof rx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof rx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},XNe}var JNe,_Ut;function jUe(){if(_Ut)return JNe;_Ut=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=jf;JNe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=LUe.Stream,{Buffer:C}=Kr,R=vj,{addAbortSignal:O}=Obe,{getHighWaterMark:M,getDefaultHighWaterMark:L}=Nbe,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=$0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof rx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof rx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return YNe}var QNe,EUt;function rx(){if(EUt)return QNe;EUt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=jf;QNe=h;const u=Mbe(),d=jUe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function Ebr(){this._final!==eFe&&eFe.call(this)}ix.prototype._final=eFe;ix.prototype._transform=function(n,r,o){throw new _br("_transform()")};ix.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=ohe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,Tbr.destroyer(n,d||new Pbr("pipe")))},cleanup:u}}function Bbr(n){return Mbr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function oMe(n){if(C8(n))return n;if(ede(n))return Wbr(n);throw new tFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*Wbr(n){rMe||(rMe=Mbe()),yield*rMe.prototype[xbr].call(n)}async function _ue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new Rbr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=ohe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?$br(u,y):y)}finally{v(),r.off("drain",h)}}async function sMe(n,r,o,{end:l}){RD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function Hbr(...n){return ton(n,Abr(Bbr(n)))}function ton(n,r,o){if(n.length===1&&kbr(n[0])&&(n=n[0]),n.length<2)throw new Ibr("streams");const l=new Fbr,u=l.signal,d=o==null?void 0:o.signal,h=[];Dbr(d,"options.signal");function w(){O(new Nbr)}iMe=iMe||u1.addAbortListener;let v;d&&(v=iMe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[Cbr](),l.abort(),j&&(y||h.forEach(te=>te()),IK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(RUt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=xUt(j,Q,te);A.push(le),eMe(j)&&Le&&h.push(xe)}j.on("error",Ee),eMe(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!C8(M))throw new ZNe("Iterable, AsyncIterable or Stream","source",M)}else C8(j)||ede(j)||RD(j)?M=j:M=kUt.from(j);else if(typeof j=="function"){if(RD(M)){var L;M=oMe((L=M)===null||L===void 0?void 0:L.readable)}else M=oMe(M);if(M=j(M,{signal:u}),Q){if(!C8(M,!0))throw new ZNe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;nMe||(nMe=eon);const Ee=new nMe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),IK.nextTick(R)},ae=>{Ee.destroy(ae),IK.nextTick(R,ae)});else if(C8(M,!0))C++,_ue(M,Ee,R,{end:pe});else if(tMe(M)||RD(M)){const ae=M.readable||M;C++,_ue(ae,Ee,R,{end:pe})}else throw new ZNe("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=xUt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(RUt(j)){if(ede(M)){C+=2;const Ee=Ubr(M,j,R,{end:pe});eMe(j)&&Le&&h.push(Ee)}else if(RD(M)||tMe(M)){const Ee=M.readable||M;C++,_ue(Ee,j,R,{end:pe})}else if(C8(M))C++,_ue(M,j,R,{end:pe});else throw new tFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(Lbr(j)){if(ede(M))C++,sMe(oMe(M),j,R,{end:pe});else if(tMe(M)||C8(M))C++,sMe(M,j,R,{end:pe});else if(RD(M))C++,sMe(M.readable,j,R,{end:pe});else throw new tFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=kUt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&IK.nextTick(w),M}function Ubr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new Obr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};jbr(n)?IK.nextTick(d):n.once("end",d)}else o();return ohe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),ohe(r,{readable:!1,writable:!0},o)}var WUe={pipelineImpl:ton,pipeline:Hbr};const{pipeline:Gbr}=WUe,Sue=rx(),{destroyer:Vbr}=vj,{isNodeStream:Eue,isReadable:CUt,isWritable:AUt,isWebStream:lMe,isTransformStream:l8,isWritableStream:TUt,isReadableStream:$Ut}=Cx,{AbortError:zbr,codes:{ERR_INVALID_ARG_VALUE:IUt,ERR_MISSING_ARGS:Kbr}}=$0,qbr=BT;var non=function(...r){if(r.length===0)throw new Kbr("streams");if(r.length===1)return Sue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=Sue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=Sue.from(r[R])}for(let R=0;R0&&!(AUt(r[R])||TUt(r[R])||l8(r[R])))throw new IUt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=Gbr(r,v),A=!!(AUt(y)||TUt(y)||l8(y)),C=!!(CUt(E)||$Ut(E)||l8(E));if(w=new Sue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Eue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(lMe(y)){const M=(l8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=l8(E)?E.readable:E;qbr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Eue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(lMe(E)){const O=(l8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new zbr),d=null,l=null,u=null,h===null?O(R):(h=O,Eue(E)&&Vbr(E,R))},w};const Xbr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Jbr,ERR_INVALID_ARG_TYPE:xJ,ERR_MISSING_ARGS:Ybr,ERR_OUT_OF_RANGE:Qbr},AbortError:lk}=$0,{validateAbortSignal:iO,validateInteger:PUt,validateObject:oO}=RJ,Zbr=jf.Symbol("kWeak"),egr=jf.Symbol("kResistStopPropagation"),{finished:tgr}=BT,ngr=non,{addAbortSignalNoValidate:rgr}=Obe,{isWritable:igr,isNodeStream:ogr}=Cx,{deprecate:sgr}=u1,{ArrayPrototypePush:lgr,Boolean:agr,MathFloor:OUt,Number:cgr,NumberIsNaN:ugr,Promise:NUt,PromiseReject:MUt,PromiseResolve:fgr,PromisePrototypeThen:DUt,Symbol:ron}=jf,she=ron("kEmpty"),LUt=ron("kEof");function dgr(n,r){if(r!=null&&oO(r,"options"),(r==null?void 0:r.signal)!=null&&iO(r.signal,"options.signal"),ogr(n)&&!igr(n))throw new Jbr("stream",n,"must be writable");const o=ngr(this,n);return r!=null&&r.signal&&rgr(r.signal,o),o}function Dbe(n,r){if(typeof n!="function")throw new xJ("fn",["Function","AsyncFunction"],n);r!=null&&oO(r,"options"),(r==null?void 0:r.signal)!=null&&iO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=OUt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=OUt(r.highWaterMark)),PUt(o,"options.concurrency",1),PUt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=u1.AbortSignalAny([r==null?void 0:r.signal].filter(agr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new NUt(G=>{E=G})}w.push(LUt)}catch(H){const G=MUt(H);DUt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===LUt)return;if(d.aborted)throw new lk;H!==she&&(yield H),w.shift(),M()}await new NUt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function hgr(n=void 0){return n!=null&&oO(n,"options"),(n==null?void 0:n.signal)!=null&&iO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new lk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function ion(n,r=void 0){for await(const o of HUe.call(this,n,r))return!0;return!1}async function pgr(n,r=void 0){if(typeof n!="function")throw new xJ("fn",["Function","AsyncFunction"],n);return!await ion.call(this,async(...o)=>!await n(...o),r)}async function bgr(n,r){for await(const o of HUe.call(this,n,r))return o}async function ggr(n,r){if(typeof n!="function")throw new xJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),she}for await(const l of Dbe.call(this,o,r));}function HUe(n,r){if(typeof n!="function")throw new xJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:she}return Dbe.call(this,o,r)}let wgr=class extends Ybr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function mgr(n,r,o){var l;if(typeof n!="function")throw new xJ("reducer",["Function","AsyncFunction"],n);o!=null&&oO(o,"options"),(o==null?void 0:o.signal)!=null&&iO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new lk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await tgr(this.destroy(y)),y}const d=new Xbr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[Zbr]:this,[egr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new lk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new wgr}finally{d.abort()}return r}async function ygr(n){n!=null&&oO(n,"options"),(n==null?void 0:n.signal)!=null&&iO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new lk(void 0,{cause:n.signal.reason});lgr(r,l)}return r}function vgr(n,r){const o=Dbe.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function oon(n){if(n=cgr(n),ugr(n))return 0;if(n<0)throw new Qbr("number",">= 0",n);return n}function _gr(n,r=void 0){return r!=null&&oO(r,"options"),(r==null?void 0:r.signal)!=null&&iO(r.signal,"options.signal"),n=oon(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new lk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new lk;n--<=0&&(yield d)}}).call(this)}function Sgr(n,r=void 0){return r!=null&&oO(r,"options"),(r==null?void 0:r.signal)!=null&&iO(r.signal,"options.signal"),n=oon(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new lk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new lk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}PUe.streamReturningOperators={asIndexedPairs:sgr(hgr,"readable.asIndexedPairs will be removed in a future version."),drop:_gr,filter:HUe,flatMap:vgr,map:Dbe,take:Sgr,compose:dgr};PUe.promiseReturningOperators={every:pgr,forEach:ggr,reduce:mgr,toArray:ygr,some:ion,find:bgr};var aMe,jUt;function son(){if(jUt)return aMe;jUt=1;const{ArrayPrototypePop:n,Promise:r}=jf,{isIterable:o,isNodeStream:l,isWebStream:u}=Cx,{pipelineImpl:d}=WUe,{finished:h}=BT;lon();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return aMe={finished:h,pipeline:w},aMe}var FUt;function lon(){if(FUt)return VNe.exports;FUt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=jf,{promisify:{custom:u}}=u1,{streamReturningOperators:d,promiseReturningOperators:h}=PUe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=$0,v=non,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=Nbe,{pipeline:A}=WUe,{destroyer:C}=vj,R=BT,O=son(),M=Cx,L=VNe.exports=LUe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Mbe();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=jUe(),L.Duplex=rx(),L.Transform=Qin,L.PassThrough=eon,L.pipeline=A;const{addAbortSignal:H}=Obe;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},VNe.exports}(function(n){const r=lon(),o=son(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(win);var Egr=win.exports;const nFe="null:";function kgr(n){return r=>r.termType!=="NamedNode"||!r.value.startsWith(nFe)?null:n.namedNode(r.value.slice(nFe.length))}function Rgr(n){const r=kgr(n);return o=>{const l=r(o.subject),u=r(o.predicate),d=r(o.object),h=r(o.graph);return l||u||d||h?n.quad(l||o.subject,u||o.predicate,d||o.object,h||o.graph):o}}let xgr=class{constructor(r,{baseIRI:o=nFe,context:l=null,documentLoader:u,factory:d=sHe}={}){const h=new crn.JsonLdParser({baseIRI:o,context:l,dataFactory:d,documentLoader:u,streamingProfile:!1});r.pipe(h);const w=Rgr(d),v=new Egr.Transform({objectMode:!0,transform:(y,E,A)=>{A(null,w(y))}});return h.on("context",y=>{Object.entries(y).forEach(([E,A])=>{v.emit("prefix",E,d.namedNode(A))})}),h.on("error",y=>v.destroy(y)),h.pipe(v),bUe(v)}},aon=class extends Jpe{constructor(r){super(xgr,r)}};const Cgr=Object.freeze(Object.defineProperty({__proto__:null,default:aon},Symbol.toStringTag,{value:"Module"}));/*! queue-microtask. MIT License. Feross Aboukhadijeh */let BUt;var Agr=typeof queueMicrotask=="function"?queueMicrotask.bind(window):n=>(BUt||(BUt=Promise.resolve())).then(n).catch(r=>setTimeout(()=>{throw r},0));const Tgr=cv(Agr),uK="http://www.w3.org/1999/02/22-rdf-syntax-ns#",fK="http://www.w3.org/2001/XMLSchema#",cMe="http://www.w3.org/2000/10/swap/",$E={xsd:{decimal:`${fK}decimal`,boolean:`${fK}boolean`,double:`${fK}double`,integer:`${fK}integer`,string:`${fK}string`},rdf:{type:`${uK}type`,nil:`${uK}nil`,first:`${uK}first`,rest:`${uK}rest`,langString:`${uK}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${cMe}reify#forSome`,forAll:`${cMe}reify#forAll`},log:{implies:`${cMe}log#implies`}},{xsd:kue}=$E,$gr=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,WUt={"\\":"\\","'":"'",'"':'"',n:` +`,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},Igr=/[\x00-\x20<>\\"\{\}\|\^\`]/,Pgr={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},Ogr=/$0^/;class Ngr{constructor(r){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]*)?$/,r=r||{},this._lineMode=!!r.lineMode){this._n3Mode=!1;for(const o in this)!(o in Pgr)&&this[o]instanceof RegExp&&(this[o]=Ogr)}else this._n3Mode=r.n3!==!1;this.comments=!!r.comments,this._literalClosingPos=0}_tokenizeToEnd(r,o){let l=this._input,u=l.length;for(;;){let w,v;for(;w=this._newline.exec(l);)this.comments&&(v=this._comment.exec(w[0]))&&d("comment",v[1],"",this._line,w[0].length),l=l.substr(w[0].length,l.length),u=l.length,this._line++;if(!w&&(w=this._whitespace.exec(l))&&(l=l.substr(w[0].length,l.length)),this._endOfFile.test(l))return o&&(this.comments&&(v=this._comment.exec(l))&&d("comment",v[1],"",this._line,l.length),l=null,d("eof","","",this._line,0)),this._input=l;const y=this._line,E=l[0];let A="",C="",R="",O=null,M=0,L=!1;switch(E){case"^":if(l.length<3)break;if(l[1]==="^"){if(this._previousMarker="^^",l=l.substr(2),l[0]!=="<"){L=!0;break}}else{this._n3Mode&&(M=1,A="^");break}case"<":if(O=this._unescapedIri.exec(l))A="IRI",C=O[1];else if(O=this._iri.exec(l)){if(C=this._unescape(O[1]),C===null||Igr.test(C))return h(this);A="IRI"}else l.length>1&&l[1]==="<"?(A="<<",M=2):this._n3Mode&&l.length>1&&l[1]==="="&&(A="inverse",M=2,C=">");break;case">":l.length>1&&l[1]===">"&&(A=">>",M=2);break;case"_":((O=this._blank.exec(l))||o&&(O=this._blank.exec(`${l} `)))&&(A="blank",R="_",C=O[1]);break;case'"':if(O=this._simpleQuotedString.exec(l))C=O[1];else if({value:C,matchLength:M}=this._parseLiteral(l),C===null)return h(this);(O!==null||M!==0)&&(A="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(O=this._simpleApostropheString.exec(l))C=O[1];else if({value:C,matchLength:M}=this._parseLiteral(l),C===null)return h(this);(O!==null||M!==0)&&(A="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(O=this._variable.exec(l))&&(A="var",C=O[0]);break;case"@":this._previousMarker==="literal"&&(O=this._langcode.exec(l))?(A="langcode",C=O[1]):(O=this._keyword.exec(l))&&(A=O[0]);break;case".":if(l.length===1?o:l[1]<"0"||l[1]>"9"){A=".",M=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(O=this._number.exec(l)||o&&(O=this._number.exec(`${l} `)))&&(A="literal",C=O[0],R=typeof O[1]=="string"?kue.double:typeof O[2]=="string"?kue.decimal:kue.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(O=this._sparqlKeyword.exec(l))?A=O[0].toUpperCase():L=!0;break;case"f":case"t":(O=this._boolean.exec(l))?(A="literal",C=O[0],R=kue.boolean):L=!0;break;case"a":(O=this._shortPredicates.exec(l))?(A="abbreviation",C="a"):L=!0;break;case"=":this._n3Mode&&l.length>1&&(A="abbreviation",l[1]!==">"?(M=1,C="="):(M=2,C=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(M=1,A=E);break;case"{":!this._lineMode&&l.length>=2&&(l[1]==="|"?(A="{|",M=2):(A=E,M=1));break;case"|":l.length>=2&&l[1]==="}"&&(A="|}",M=2);break;default:L=!0}if(L&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(O=this._prefix.exec(l))?(A="prefix",C=O[1]||""):((O=this._prefixed.exec(l))||o&&(O=this._prefixed.exec(`${l} `)))&&(A="prefixed",R=O[1]||"",C=this._unescape(O[2]))),this._previousMarker==="^^")switch(A){case"prefixed":A="type";break;case"IRI":A="typeIRI";break;default:A=""}if(!A)return o||!/^'''|^"""/.test(l)&&/\n|\r/.test(l)?h(this):this._input=l;const H=M||O[0].length,G=d(A,C,R,y,H);this.previousToken=G,this._previousMarker=A,l=l.substr(H,l.length)}function d(w,v,y,E,A){const C=l?u-l.length:u,R=C+A,O={type:w,value:v,prefix:y,line:E,start:C,end:R};return r(null,O),O}function h(w){r(w._syntaxError(/^\S*/.exec(l)[0]))}}_unescape(r){let o=!1;const l=r.replace($gr,(u,d,h,w)=>{if(typeof d=="string")return String.fromCharCode(Number.parseInt(d,16));if(typeof h=="string"){let v=Number.parseInt(h,16);return v<=65535?String.fromCharCode(Number.parseInt(h,16)):String.fromCharCode(55296+((v-=65536)>>10),56320+(v&1023))}return w in WUt?WUt[w]:(o=!0,"")});return o?null:l}_parseLiteral(r){if(r.length>=3){const o=r.match(/^(?:"""|"|'''|'|)/)[0],l=o.length;let u=Math.max(this._literalClosingPos,l);for(;(u=r.indexOf(o,u))>0;){let d=0;for(;r[u-d-1]==="\\";)d++;if(d%2===0){const h=r.substring(l,u),w=h.split(/\r\n|\r|\n/).length-1,v=u+l;if(l===1&&w!==0||l===3&&this._lineMode)break;return this._line+=w,{value:this._unescape(h),matchLength:v}}u++}this._literalClosingPos=r.length-l+1}return{value:"",matchLength:0}}_syntaxError(r){this._input=null;const o=new Error(`Unexpected "${r}" on line ${this._line}.`);return o.context={token:void 0,line:this._line,previousToken:this.previousToken},o}_readStartingBom(r){return r.startsWith("\uFEFF")?r.substr(1):r}tokenize(r,o){if(this._line=1,typeof r=="string")if(this._input=this._readStartingBom(r),typeof o=="function")Tgr(()=>this._tokenizeToEnd(o,!0));else{const l=[];let u;if(this._tokenizeToEnd((d,h)=>d?u=d:l.push(h),!0),u)throw u;return l}else this._pendingBuffer=null,typeof r.setEncoding=="function"&&r.setEncoding("utf8"),r.on("data",l=>{this._input!==null&&l.length!==0&&(this._pendingBuffer&&(l=Kr.Buffer.concat([this._pendingBuffer,l]),this._pendingBuffer=null),l[l.length-1]&128?this._pendingBuffer=l:(typeof this._input>"u"?this._input=this._readStartingBom(typeof l=="string"?l:l.toString()):this._input+=l,this._tokenizeToEnd(o,!1)))}),r.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(o,!0)}),r.on("error",o)}}const{rdf:Mgr,xsd:L8}=$E;let _j,Dgr=0;const rFe={namedNode:fon,blankNode:don,variable:pon,literal:hon,defaultGraph:Bgr,quad:iFe,triple:iFe,fromTerm:PK,fromQuad:bon};class yk{constructor(r){this.id=r}get value(){return this.id}equals(r){return r instanceof yk?this.id===r.id:!!r&&this.termType===r.termType&&this.value===r.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}class con extends yk{get termType(){return"NamedNode"}}class aL extends yk{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const r=this.id;let o=r.lastIndexOf('"')+1;return o0?"INF":"-INF")))),o===""||o===L8.string?new aL(`"${n}"`):new aL(`"${n}"^^${o}`)}function pon(n){return new jgr(n)}function Bgr(){return _j}function iFe(n,r,o,l){return new uon(n,r,o,l)}function PK(n){if(n instanceof yk)return n;switch(n.termType){case"NamedNode":return fon(n.value);case"BlankNode":return don(n.value);case"Variable":return pon(n.value);case"DefaultGraph":return _j;case"Literal":return hon(n.value,n.language||n.datatype);case"Quad":return bon(n);default:throw new Error(`Unexpected termType: ${n.termType}`)}}function bon(n){if(n instanceof uon)return n;if(n.termType!=="Quad")throw new Error(`Unexpected termType: ${n.termType}`);return iFe(PK(n.subject),PK(n.predicate),PK(n.object),PK(n.graph))}let HUt=0;class gon{constructor(r){this._contextStack=[],this._graph=null,r=r||{},this._setBase(r.baseIRI),r.factory&&won(this,r.factory);const o=typeof r.format=="string"?r.format.match(/\w*$/)[0].toLowerCase():"",l=/turtle/.test(o),u=/trig/.test(o),d=/triple/.test(o),h=/quad/.test(o),w=this._n3Mode=/n3/.test(o),v=d||h;(this._supportsNamedGraphs=!(l||w))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(l||u||d||w),this._supportsRDFStar=o===""||/star|\*$/.test(o),v&&(this._resolveRelativeIRI=y=>null),this._blankNodePrefix=typeof r.blankNodePrefix!="string"?"":r.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=r.lexer||new Ngr({lineMode:v,n3:w}),this._explicitQuantifiers=!!r.explicitQuantifiers}static _resetBlankNodePrefix(){HUt=0}_setBase(r){if(!r)this._base="",this._basePath="";else{const o=r.indexOf("#");o>=0&&(r=r.substr(0,o)),this._base=r,this._basePath=r.indexOf("/")<0?r:r.replace(/[^\/?]*(?:\?.*)?$/,""),r=r.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=r[0],this._baseScheme=r[1]}}_saveContext(r,o,l,u,d){const h=this._n3Mode;this._contextStack.push({type:r,subject:l,predicate:u,object:d,graph:o,inverse:h?this._inversePredicate:!1,blankPrefix:h?this._prefixes._:"",quantified:h?this._quantified:null}),h&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(r,o){const l=this._contextStack.pop();if(!l||l.type!==r)return this._error(`Unexpected ${o.type}`,o);this._subject=l.subject,this._predicate=l.predicate,this._object=l.object,this._graph=l.graph,this._n3Mode&&(this._inversePredicate=l.inverse,this._prefixes._=l.blankPrefix,this._quantified=l.quantified)}_readInTopContext(r){switch(r.type){case"eof":return this._graph!==null?this._error("Unclosed graph",r):(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(r)}}_readEntity(r,o){let l;switch(r.type){case"IRI":case"typeIRI":const u=this._resolveIRI(r.value);if(u===null)return this._error("Invalid IRI",r);l=this._factory.namedNode(u);break;case"type":case"prefixed":const d=this._prefixes[r.prefix];if(d===void 0)return this._error(`Undefined prefix "${r.prefix}:"`,r);l=this._factory.namedNode(d+r.value);break;case"blank":l=this._factory.blankNode(this._prefixes[r.prefix]+r.value);break;case"var":l=this._factory.variable(r.value.substr(1));break;default:return this._error(`Expected entity but got ${r.type}`,r)}return!o&&this._n3Mode&&l.id in this._quantified&&(l=this._quantified[l.id]),l}_readSubject(r){switch(this._predicate=null,r.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",r);case"}":return this._readPunctuation(r);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',r);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="variable",this._readQuantifierList):this._error('Unexpected "@forAll"',r);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",r);if(r.prefix.length===0)return this._literalValue=r.value,this._completeSubjectLiteral;this._subject=this._factory.literal(r.value,this._factory.namedNode(r.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",r);default:if((this._subject=this._readEntity(r))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(r){const o=r.type;switch(o){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[r.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${o}`,r):(this._subject=null,o==="]"?this._readBlankNodeTail(r):this._readPunctuation(r));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",r);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",r);default:if((this._predicate=this._readEntity(r))===void 0)return}return this._readObject}_readObject(r){switch(r.type){case"literal":if(r.prefix.length===0)return this._literalValue=r.value,this._readDataTypeOrLang;this._object=this._factory.literal(r.value,this._factory.namedNode(r.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",r);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",r);default:if((this._object=this._readEntity(r))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(r){return r.type==="{"?this._readGraph(r):this._readPredicate(r)}_readGraph(r){return r.type!=="{"?this._error(`Expected graph but got ${r.type}`,r):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(r){return r.type==="]"?(this._subject=null,this._readBlankNodeTail(r)):(this._predicate=null,this._readPredicate(r))}_readBlankNodeTail(r){if(r.type!=="]")return this._readBlankNodePunctuation(r);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);const o=this._predicate===null;return this._restoreContext("blank",r),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:o?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(r){switch(r.type){case".":case"}":return this._subject=null,this._readPunctuation(r);default:return this._readPredicate(r)}}_readListItem(r){let o=null,l=null,u=this._readListItem;const d=this._subject,h=this._contextStack,w=h[h.length-1];switch(r.type){case"[":this._saveContext("blank",this._graph,l=this._factory.blankNode(),this.RDF_FIRST,this._subject=o=this._factory.blankNode()),u=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,l=this._factory.blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",r),h.length!==0&&h[h.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(u=this._readPredicate,this._subject===this.RDF_NIL)return u}else if(u=this._getContextEndReader(),this._object===this.RDF_NIL)return u;l=this.RDF_NIL;break;case"literal":r.prefix.length===0?(this._literalValue=r.value,u=this._readListItemDataTypeOrLang):(o=this._factory.literal(r.value,this._factory.namedNode(r.prefix)),u=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",r);default:if((o=this._readEntity(r))===void 0)return}if(l===null&&(this._subject=l=this._factory.blankNode()),d===null?w.predicate===null?w.subject=l:w.object=l:this._emit(d,this.RDF_REST,l,this._graph),o!==null){if(this._n3Mode&&(r.type==="IRI"||r.type==="prefixed"))return this._saveContext("item",this._graph,l,this.RDF_FIRST,o),this._subject=o,this._predicate=null,this._getPathReader(this._readListItem);this._emit(l,this.RDF_FIRST,o,this._graph)}return u}_readDataTypeOrLang(r){return this._completeObjectLiteral(r,!1)}_readListItemDataTypeOrLang(r){return this._completeObjectLiteral(r,!0)}_completeLiteral(r){let o=this._factory.literal(this._literalValue);switch(r.type){case"type":case"typeIRI":const l=this._readEntity(r);if(l===void 0)return;o=this._factory.literal(this._literalValue,l),r=null;break;case"langcode":o=this._factory.literal(this._literalValue,r.value),r=null;break}return{token:r,literal:o}}_completeSubjectLiteral(r){return this._subject=this._completeLiteral(r).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(r,o){const l=this._completeLiteral(r);if(l)return this._object=l.literal,o&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),l.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(l.token))}_readFormulaTail(r){return r.type!=="}"?this._readPunctuation(r):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",r),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(r){let o,l=this._graph;const u=this._subject,d=this._inversePredicate;switch(r.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",r);if(this._n3Mode)return this._readFormulaTail(r);this._graph=null;case".":this._subject=null,o=this._contextStack.length?this._readSubject:this._readInTopContext,d&&(this._inversePredicate=!1);break;case";":o=this._readPredicate;break;case",":o=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF-star syntax",r);const h=this._predicate,w=this._object;this._subject=this._factory.quad(u,h,w,this.DEFAULTGRAPH),o=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",r);this._subject=null,o=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(l=this._readEntity(r))!==void 0){o=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,r)}if(u!==null){const h=this._predicate,w=this._object;d?this._emit(w,h,u,l):this._emit(u,h,w,l)}return o}_readBlankNodePunctuation(r){let o;switch(r.type){case";":o=this._readPredicate;break;case",":o=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,r)}return this._emit(this._subject,this._predicate,this._object,this._graph),o}_readQuadPunctuation(r){return r.type!=="."?this._error("Expected dot to follow quad",r):this._readInTopContext}_readPrefix(r){return r.type!=="prefix"?this._error("Expected prefix to follow @prefix",r):(this._prefix=r.value,this._readPrefixIRI)}_readPrefixIRI(r){if(r.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,r);const o=this._readEntity(r);return this._prefixes[this._prefix]=o.value,this._prefixCallback(this._prefix,o),this._readDeclarationPunctuation}_readBaseIRI(r){const o=r.type==="IRI"&&this._resolveIRI(r.value);return o?(this._setBase(o),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",r)}_readNamedGraphLabel(r){switch(r.type){case"IRI":case"blank":case"prefixed":return this._readSubject(r),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",r)}}_readNamedGraphBlankLabel(r){return r.type!=="]"?this._error("Invalid graph label",r):(this._subject=this._factory.blankNode(),this._readGraph)}_readDeclarationPunctuation(r){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(r)):r.type!=="."?this._error("Expected declaration to end with a dot",r):this._readInTopContext}_readQuantifierList(r){let o;switch(r.type){case"IRI":case"prefixed":if((o=this._readEntity(r,!0))!==void 0)break;default:return this._error(`Unexpected ${r.type}`,r)}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,o,this.QUANTIFIERS_GRAPH)):this._quantified[o.id]=this._factory[this._quantifier](this._factory.blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(r){return r.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(r))}_getPathReader(r){return this._afterPath=r,this._readPath}_readPath(r){switch(r.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const o=this._contextStack,l=o.length&&o[o.length-1];if(l&&l.type==="item"){const u=this._subject;this._restoreContext("item",r),this._emit(this._subject,this.RDF_FIRST,u,this._graph)}return this._afterPath(r)}}_readForwardPath(r){let o,l;const u=this._factory.blankNode();if((l=this._readEntity(r))!==void 0)return this._predicate===null?(o=this._subject,this._subject=u):(o=this._object,this._object=u),this._emit(o,l,u,this._graph),this._readPath}_readBackwardPath(r){const o=this._factory.blankNode();let l,u;if((l=this._readEntity(r))!==void 0)return this._predicate===null?(u=this._subject,this._subject=o):(u=this._object,this._object=o),this._emit(o,l,u,this._graph),this._readPath}_readRDFStarTailOrGraph(r){return r.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(r))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,r):this._readRDFStarTail(r)}_readRDFStarTail(r){if(r.type!==">>")return this._error(`Expected >> but got ${r.type}`,r);const o=this._factory.quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",r),this._subject===null?(this._subject=o,this._readPredicate):(this._object=o,this._getContextEndReader())}_getContextEndReader(){const r=this._contextStack;if(!r.length)return this._readPunctuation;switch(r[r.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(r,o,l,u){this._callback(null,this._factory.quad(r,o,l,u||this.DEFAULTGRAPH))}_error(r,o){const l=new Error(`${r} on line ${o.line}.`);l.context={token:o,line:o.line,previousToken:this._lexer.previousToken},this._callback(l),this._callback=Cue}_resolveIRI(r){return/^[a-z][a-z0-9+.-]*:/i.test(r)?r:this._resolveRelativeIRI(r)}_resolveRelativeIRI(r){if(!r.length)return this._base;switch(r[0]){case"#":return this._base+r;case"?":return this._base.replace(/(?:\?.*)?$/,r);case"/":return(r[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(r);default:return/^[^/:]*:/.test(r)?null:this._removeDotSegments(this._basePath+r)}}_removeDotSegments(r){if(!/(^|\/)\.\.?($|[/#?])/.test(r))return r;const o=r.length;let l="",u=-1,d=-1,h=0,w="/";for(;u=d&&(l=l.substr(0,h)),w!=="/")return`${l}/${r.substr(u+1)}`;h=u+1}}}w=r[++u]}return l+r.substring(h)}parse(r,o,l){let u,d,h;if(o&&(o.onQuad||o.onPrefix||o.onComment)?(u=o.onQuad,d=o.onPrefix,h=o.onComment):(u=o,d=l),this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${HUt++}_`,this._prefixCallback=d||Cue,this._inversePredicate=!1,this._quantified=Object.create(null),!u){const v=[];let y;if(this._callback=(E,A)=>{E?y=E:A&&v.push(A)},this._lexer.tokenize(r).every(E=>this._readCallback=this._readCallback(E)),y)throw y;return v}let w=(v,y)=>{v!==null?(this._callback(v),this._callback=Cue):this._readCallback&&(this._readCallback=this._readCallback(y))};h&&(this._lexer.comments=!0,w=(v,y)=>{v!==null?(this._callback(v),this._callback=Cue):this._readCallback&&(y.type==="comment"?h(y.value):this._readCallback=this._readCallback(y))}),this._callback=u,this._lexer.tokenize(r,w)}}function Cue(){}function won(n,r){n._factory=r,n.DEFAULTGRAPH=r.defaultGraph(),n.RDF_FIRST=r.namedNode($E.rdf.first),n.RDF_REST=r.namedNode($E.rdf.rest),n.RDF_NIL=r.namedNode($E.rdf.nil),n.N3_FORALL=r.namedNode($E.r.forAll),n.N3_FORSOME=r.namedNode($E.r.forSome),n.ABBREVIATIONS={a:r.namedNode($E.rdf.type),"=":r.namedNode($E.owl.sameAs),">":r.namedNode($E.log.implies)},n.QUANTIFIERS_GRAPH=r.namedNode("urn:n3:quantifiers")}won(gon.prototype,rFe);var mon={exports:{}},uMe={exports:{}},Ff={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},yon={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Ff,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(yon);var f1=yon.exports,UUe={};const{format:Wgr,inspect:lhe,AggregateError:Hgr}=f1,Ugr=globalThis.AggregateError||Hgr,Ggr=Symbol("kIsNodeError"),Vgr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],zgr=/^([A-Z][a-z0-9]*)+$/,Kgr="__node_internal_",Lbe={};function lP(n,r){if(!n)throw new Lbe.ERR_INTERNAL_ASSERTION(r)}function UUt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function qgr(n,r,o){if(typeof r=="function")return lP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return lP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:Wgr(r,...o)}function Qp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(qgr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[Ggr]=!0,Lbe[n]=l}function GUt(n){const r=Kgr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function Xgr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new Ugr([r,n],r.message);return o.code=r.code,o}return n||r}let Jgr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Lbe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Qp("ERR_ASSERTION","%s",Error);Qp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{lP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)lP(typeof v=="string","All expected entries have to be of type string"),Vgr.includes(v)?u.push(v.toLowerCase()):zgr.test(v)?d.push(v):(lP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=lhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=lhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Qp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=lhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Qp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Qp("ERR_MISSING_ARGS",(...n)=>{lP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Qp("ERR_OUT_OF_RANGE",(n,r,o)=>{lP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=UUt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=UUt(l)),l+="n"):l=lhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Qp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Qp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Qp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Qp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Qp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Qp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Qp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Qp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Qp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Qp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Qp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var I0={AbortError:Jgr,aggregateTwoErrors:GUt(Xgr),hideStackFrames:GUt,codes:Lbe};const{ArrayIsArray:GUe,ArrayPrototypeIncludes:von,ArrayPrototypeJoin:_on,ArrayPrototypeMap:Ygr,NumberIsInteger:VUe,NumberIsNaN:Qgr,NumberMAX_SAFE_INTEGER:Zgr,NumberMIN_SAFE_INTEGER:e1r,NumberParseInt:t1r,ObjectPrototypeHasOwnProperty:n1r,RegExpPrototypeExec:Son,String:r1r,StringPrototypeToUpperCase:i1r,StringPrototypeTrim:o1r}=Ff,{hideStackFrames:gv,codes:{ERR_SOCKET_BAD_PORT:s1r,ERR_INVALID_ARG_TYPE:Xb,ERR_INVALID_ARG_VALUE:Sj,ERR_OUT_OF_RANGE:TP,ERR_UNKNOWN_SIGNAL:VUt}}=I0,{normalizeEncoding:l1r}=f1,{isAsyncFunction:a1r,isArrayBufferView:c1r}=f1.types,zUt={};function u1r(n){return n===(n|0)}function f1r(n){return n===n>>>0}const d1r=/^[0-7]+$/,h1r="must be a 32-bit unsigned integer or an octal string";function p1r(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(Son(d1r,n)===null)throw new Sj(r,n,h1r);n=t1r(n,8)}return Eon(n,r),n}const b1r=gv((n,r,o=e1r,l=Zgr)=>{if(typeof n!="number")throw new Xb(r,"number",n);if(!VUe(n))throw new TP(r,"an integer",n);if(nl)throw new TP(r,`>= ${o} && <= ${l}`,n)}),g1r=gv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Xb(r,"number",n);if(!VUe(n))throw new TP(r,"an integer",n);if(nl)throw new TP(r,`>= ${o} && <= ${l}`,n)}),Eon=gv((n,r,o=!1)=>{if(typeof n!="number")throw new Xb(r,"number",n);if(!VUe(n))throw new TP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new TP(r,`>= ${l} && <= ${u}`,n)});function zUe(n,r){if(typeof n!="string")throw new Xb(r,"string",n)}function w1r(n,r,o=void 0,l){if(typeof n!="number")throw new Xb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&Qgr(n))throw new TP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const m1r=gv((n,r,o)=>{if(!von(o,n)){const u="must be one of: "+_on(Ygr(o,d=>typeof d=="string"?`'${d}'`:r1r(d)),", ");throw new Sj(r,n,u)}});function kon(n,r){if(typeof n!="boolean")throw new Xb(r,"boolean",n)}function fMe(n,r,o){return n==null||!n1r(n,r)?o:n[r]}const y1r=gv((n,r,o=null)=>{const l=fMe(o,"allowArray",!1),u=fMe(o,"allowFunction",!1);if(!fMe(o,"nullable",!1)&&n===null||!l&&GUe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Xb(r,"Object",n)}),v1r=gv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Xb(r,"a dictionary",n)}),jbe=gv((n,r,o=0)=>{if(!GUe(n))throw new Xb(r,"Array",n);if(n.length{if(!c1r(n))throw new Xb(r,["Buffer","TypedArray","DataView"],n)});function x1r(n,r){const o=l1r(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Sj("encoding",r,`is invalid for data of length ${l}`)}function C1r(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&o1r(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new s1r(r,n,o);return n|0}const Ron=gv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Xb(r,"AbortSignal",n)}),A1r=gv((n,r)=>{if(typeof n!="function")throw new Xb(r,"Function",n)}),T1r=gv((n,r)=>{if(typeof n!="function"||a1r(n))throw new Xb(r,"Function",n)}),$1r=gv((n,r)=>{if(n!==void 0)throw new Xb(r,"undefined",n)});function I1r(n,r,o){if(!von(o,n))throw new Xb(r,`('${_on(o,"|")}')`,n)}const P1r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function KUt(n,r){if(typeof n>"u"||!Son(P1r,n))throw new Sj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function O1r(n){if(typeof n=="string")return KUt(n,"hints"),n;if(GUe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var CJ={isInt32:u1r,isUint32:f1r,parseFileMode:p1r,validateArray:jbe,validateStringArray:_1r,validateBooleanArray:S1r,validateAbortSignalArray:E1r,validateBoolean:kon,validateBuffer:R1r,validateDictionary:v1r,validateEncoding:x1r,validateFunction:A1r,validateInt32:g1r,validateInteger:b1r,validateNumber:w1r,validateObject:y1r,validateOneOf:m1r,validatePlainFunction:T1r,validatePort:C1r,validateSignalName:k1r,validateString:zUe,validateUint32:Eon,validateUndefined:$1r,validateUnion:I1r,validateAbortSignal:Ron,validateLinkHeaderValue:O1r},KUe={exports:{}};const{SymbolAsyncIterator:qUt,SymbolIterator:XUt,SymbolFor:sO}=Ff,xon=sO("nodejs.stream.destroyed"),Con=sO("nodejs.stream.errored"),oFe=sO("nodejs.stream.readable"),sFe=sO("nodejs.stream.writable"),Aon=sO("nodejs.stream.disturbed"),N1r=sO("nodejs.webstream.isClosedPromise"),M1r=sO("nodejs.webstream.controllerErrorFunction");function Fbe(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Bbe(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function D1r(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function vk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function Ton(n){return!!(n&&!vk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function $on(n){return!!(n&&!vk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function Ion(n){return!!(n&&!vk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function L1r(n){return Ton(n)||$on(n)||Ion(n)}function j1r(n,r){return n==null?!1:r===!0?typeof n[qUt]=="function":r===!1?typeof n[XUt]=="function":typeof n[qUt]=="function"||typeof n[XUt]=="function"}function Wbe(n){if(!vk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[xon]||l!=null&&l.destroyed)}function Pon(n){if(!Bbe(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function F1r(n,r){if(!Bbe(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function B1r(n){if(!Fbe(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Oon(n,r){if(!Fbe(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Non(n){return n&&n[oFe]!=null?n[oFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:Wbe(n)?!1:Fbe(n)&&n.readable&&!Oon(n)}function Mon(n){return n&&n[sFe]!=null?n[sFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:Wbe(n)?!1:Bbe(n)&&n.writable&&!Pon(n)}function W1r(n,r){return vk(n)?Wbe(n)?!0:!((r==null?void 0:r.readable)!==!1&&Non(n)||(r==null?void 0:r.writable)!==!1&&Mon(n)):null}function H1r(n){var r,o;return vk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function U1r(n){var r,o;return vk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function G1r(n){if(!vk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Don(n)?n._closed:null}function Don(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Lon(n){return typeof n._sent100=="boolean"&&Don(n)}function V1r(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function z1r(n){if(!vk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Lon(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function K1r(n){var r;return!!(n&&((r=n[Aon])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function q1r(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[Con])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Ax={isDestroyed:Wbe,kIsDestroyed:xon,isDisturbed:K1r,kIsDisturbed:Aon,isErrored:q1r,kIsErrored:Con,isReadable:Non,kIsReadable:oFe,kIsClosedPromise:N1r,kControllerErrorFunction:M1r,kIsWritable:sFe,isClosed:G1r,isDuplexNodeStream:D1r,isFinished:W1r,isIterable:j1r,isReadableNodeStream:Fbe,isReadableStream:Ton,isReadableEnded:B1r,isReadableFinished:Oon,isReadableErrored:U1r,isNodeStream:vk,isWebStream:L1r,isWritable:Mon,isWritableNodeStream:Bbe,isWritableStream:$on,isWritableEnded:Pon,isWritableFinished:F1r,isWritableErrored:H1r,isServerRequest:V1r,isServerResponse:Lon,willEmitClose:z1r,isTransformStream:Ion};const X4=ui,{AbortError:jon,codes:X1r}=I0,{ERR_INVALID_ARG_TYPE:J1r,ERR_STREAM_PREMATURE_CLOSE:JUt}=X1r,{kEmptyObject:lFe,once:aFe}=f1,{validateAbortSignal:Y1r,validateFunction:Q1r,validateObject:Z1r,validateBoolean:e0r}=CJ,{Promise:t0r,PromisePrototypeThen:n0r,SymbolDispose:Fon}=Ff,{isClosed:r0r,isReadable:YUt,isReadableNodeStream:dMe,isReadableStream:i0r,isReadableFinished:QUt,isReadableErrored:ZUt,isWritable:eGt,isWritableNodeStream:tGt,isWritableStream:o0r,isWritableFinished:nGt,isWritableErrored:rGt,isNodeStream:s0r,willEmitClose:l0r,kIsClosedPromise:a0r}=Ax;let cL;function c0r(n){return n.setHeader&&typeof n.abort=="function"}const cFe=()=>{};function Bon(n,r,o){var l,u;if(arguments.length===2?(o=r,r=lFe):r==null?r=lFe:Z1r(r,"options"),Q1r(o,"callback"),Y1r(r.signal,"options.signal"),o=aFe(o),i0r(n)||o0r(n))return u0r(n,r,o);if(!s0r(n))throw new J1r("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:dMe(n),h=(u=r.writable)!==null&&u!==void 0?u:tGt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=l0r(n)&&dMe(n)===d&&tGt(n)===h,A=nGt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=QUt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=r0r(n);const H=()=>{L=!0;const te=rGt(n)||ZUt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&dMe(n,!0)&&!QUt(n,!1))return o.call(n,new JUt);if(h&&!A&&!nGt(n,!1))return o.call(n,new JUt);o.call(n)},G=()=>{L=!0;const te=rGt(n)||ZUt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};c0r(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?X4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||X4.nextTick(G):(!d&&(!E||YUt(n))&&(A||eGt(n)===!1)||!h&&(!E||eGt(n))&&(R||YUt(n)===!1)||v&&n.req&&n.aborted)&&X4.nextTick(G);const Q=()=>{o=cFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new jon(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)X4.nextTick(te);else{cL=cL||f1.addAbortListener;const pe=cL(r.signal,te),Le=o;o=aFe((...Ee)=>{pe[Fon](),Le.apply(n,Ee)})}}return Q}function u0r(n,r,o){let l=!1,u=cFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new jon(void 0,{cause:r.signal.reason}))},r.signal.aborted)X4.nextTick(u);else{cL=cL||f1.addAbortListener;const h=cL(r.signal,u),w=o;o=aFe((...v)=>{h[Fon](),w.apply(n,v)})}const d=(...h)=>{l||X4.nextTick(()=>o.apply(n,h))};return n0r(n[a0r].promise,d,d),cFe}function f0r(n,r){var o;let l=!1;return r===null&&(r=lFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(e0r(r.cleanup,"cleanup"),l=r.cleanup),new t0r((u,d)=>{const h=Bon(n,r,w=>{l&&h(),w?d(w):u()})})}KUe.exports=Bon;KUe.exports.finished=f0r;var WT=KUe.exports;const VE=ui,{aggregateTwoErrors:d0r,codes:{ERR_MULTIPLE_CALLBACK:h0r},AbortError:p0r}=I0,{Symbol:Won}=Ff,{kIsDestroyed:b0r,isDestroyed:g0r,isFinished:w0r,isServerRequest:m0r}=Ax,Hon=Won("kDestroy"),uFe=Won("kConstruct");function Uon(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function y0r(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Uon(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?iGt(this,n,r):this.once(Hon,function(d){iGt(this,d0r(d,n),r)}),this)}function iGt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Uon(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?VE.nextTick(v0r,n,d):VE.nextTick(Gon,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function v0r(n,r){fFe(n,r),Gon(n)}function Gon(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function fFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function _0r(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function dFe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?VE.nextTick(fFe,n,r):fFe(n,r))}function S0r(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(uFe,r),!(n.listenerCount(uFe)>1)&&VE.nextTick(E0r,n)}function E0r(n){let r=!1;function o(l){if(r){dFe(n,l??new h0r);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Hon,l):l?dFe(n,l,!0):VE.nextTick(k0r,n)}try{n._construct(l=>{VE.nextTick(o,l)})}catch(l){VE.nextTick(o,l)}}function k0r(n){n.emit(uFe)}function oGt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Von(n){n.emit("close")}function R0r(n,r){n.emit("error",r),VE.nextTick(Von,n)}function x0r(n,r){!n||g0r(n)||(!r&&!w0r(n)&&(r=new p0r),m0r(n)?(n.socket=null,n.destroy(r)):oGt(n)?n.abort():oGt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?VE.nextTick(R0r,n,r):VE.nextTick(Von,n),n.destroyed||(n[b0r]=!0))}var Ej={construct:S0r,destroyer:x0r,destroy:y0r,undestroy:_0r,errorOrDestroy:dFe};const{ArrayIsArray:C0r,ObjectSetPrototypeOf:zon}=Ff,{EventEmitter:Hbe}=Ns;function Ube(n){Hbe.call(this,n)}zon(Ube.prototype,Hbe.prototype);zon(Ube,Hbe);Ube.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Hbe.listenerCount(this,"error")===0&&this.emit("error",E)}hFe(o,"error",v),hFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function hFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):C0r(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var qUe={Stream:Ube,prependListener:hFe},Kon={exports:{}};(function(n){const{SymbolDispose:r}=Ff,{AbortError:o,codes:l}=I0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Ax,w=WT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||f1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Kon);var Gbe=Kon.exports;const{StringPrototypeSlice:sGt,SymbolIterator:A0r,TypedArrayPrototypeSet:Aue,Uint8Array:T0r}=Ff,{Buffer:hMe}=Kr,{inspect:$0r}=f1;var I0r=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return hMe.alloc(0);const o=hMe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Aue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=sGt(d,0,r),this.head=l,l.data=sGt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=hMe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Aue(o,h,l-r),r-=h.length;else{r===h.length?(Aue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Aue(o,new T0r(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return $0r(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:P0r,NumberIsInteger:O0r}=Ff,{validateInteger:N0r}=CJ,{ERR_INVALID_ARG_VALUE:M0r}=I0.codes;let qon=16*1024,Xon=16;function D0r(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Jon(n){return n?Xon:qon}function L0r(n,r){N0r(r,"value",0),n?Xon=r:qon=r}function j0r(n,r,o,l){const u=D0r(r,l,o);if(u!=null){if(!O0r(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new M0r(d,u)}return P0r(u)}return Jon(n.objectMode)}var Vbe={getHighWaterMark:j0r,getDefaultHighWaterMark:Jon,setDefaultHighWaterMark:L0r};const lGt=ui,{PromisePrototypeThen:F0r,SymbolAsyncIterator:aGt,SymbolIterator:cGt}=Ff,{Buffer:B0r}=Kr,{ERR_INVALID_ARG_TYPE:W0r,ERR_STREAM_NULL_VALUES:H0r}=I0.codes;function U0r(n,r,o){let l;if(typeof r=="string"||r instanceof B0r)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[aGt])u=!0,l=r[aGt]();else if(r&&r[cGt])u=!1,l=r[cGt]();else throw new W0r("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){F0r(w(y),()=>lGt.nextTick(E,y),A=>lGt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new H0r;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Yon=U0r,pMe,uGt;function zbe(){if(uGt)return pMe;uGt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Ff;pMe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=qUe,{Buffer:L}=Kr,{addAbortSignal:H}=Gbe,G=WT;let j=f1.debuglog("stream",S=>{j=S});const Q=I0r,te=Ej,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=Vbe,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=I0,{validateObject:ye}=CJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Yon;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof ox()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof ox();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},pMe}var bMe,fGt;function XUe(){if(fGt)return bMe;fGt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Ff;bMe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=qUe.Stream,{Buffer:C}=Kr,R=Ej,{addAbortSignal:O}=Gbe,{getHighWaterMark:M,getDefaultHighWaterMark:L}=Vbe,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=I0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof ox()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof ox();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return gMe}var wMe,hGt;function ox(){if(hGt)return wMe;hGt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Ff;wMe=h;const u=zbe(),d=XUe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function q0r(){this._final!==pFe&&pFe.call(this)}sx.prototype._final=pFe;sx.prototype._transform=function(n,r,o){throw new z0r("_transform()")};sx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=ahe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,ewr.destroyer(n,d||new rwr("pipe")))},cleanup:u}}function fwr(n){return swr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function kMe(n){if(A8(n))return n;if(tde(n))return dwr(n);throw new bFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*dwr(n){SMe||(SMe=zbe()),yield*SMe.prototype[Y0r].call(n)}async function Tue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new J0r((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=ahe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?twr(u,y):y)}finally{v(),r.off("drain",h)}}async function RMe(n,r,o,{end:l}){xD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function hwr(...n){return nsn(n,Z0r(fwr(n)))}function nsn(n,r,o){if(n.length===1&&X0r(n[0])&&(n=n[0]),n.length<2)throw new nwr("streams");const l=new uwr,u=l.signal,d=o==null?void 0:o.signal,h=[];lwr(d,"options.signal");function w(){O(new owr)}EMe=EMe||f1.addAbortListener;let v;d&&(v=EMe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[Q0r](),l.abort(),j&&(y||h.forEach(te=>te()),OK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(bGt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=gGt(j,Q,te);A.push(le),yMe(j)&&Le&&h.push(xe)}j.on("error",Ee),yMe(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!A8(M))throw new mMe("Iterable, AsyncIterable or Stream","source",M)}else A8(j)||tde(j)||xD(j)?M=j:M=pGt.from(j);else if(typeof j=="function"){if(xD(M)){var L;M=kMe((L=M)===null||L===void 0?void 0:L.readable)}else M=kMe(M);if(M=j(M,{signal:u}),Q){if(!A8(M,!0))throw new mMe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;_Me||(_Me=tsn);const Ee=new _Me({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),OK.nextTick(R)},ae=>{Ee.destroy(ae),OK.nextTick(R,ae)});else if(A8(M,!0))C++,Tue(M,Ee,R,{end:pe});else if(vMe(M)||xD(M)){const ae=M.readable||M;C++,Tue(ae,Ee,R,{end:pe})}else throw new mMe("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=gGt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(bGt(j)){if(tde(M)){C+=2;const Ee=pwr(M,j,R,{end:pe});yMe(j)&&Le&&h.push(Ee)}else if(xD(M)||vMe(M)){const Ee=M.readable||M;C++,Tue(Ee,j,R,{end:pe})}else if(A8(M))C++,Tue(M,j,R,{end:pe});else throw new bFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(awr(j)){if(tde(M))C++,RMe(kMe(M),j,R,{end:pe});else if(vMe(M)||A8(M))C++,RMe(M,j,R,{end:pe});else if(xD(M))C++,RMe(M.readable,j,R,{end:pe});else throw new bFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=pGt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&OK.nextTick(w),M}function pwr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new iwr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};cwr(n)?OK.nextTick(d):n.once("end",d)}else o();return ahe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),ahe(r,{readable:!1,writable:!0},o)}var QUe={pipelineImpl:nsn,pipeline:hwr};const{pipeline:bwr}=QUe,$ue=ox(),{destroyer:gwr}=Ej,{isNodeStream:Iue,isReadable:wGt,isWritable:mGt,isWebStream:xMe,isTransformStream:a8,isWritableStream:yGt,isReadableStream:vGt}=Ax,{AbortError:wwr,codes:{ERR_INVALID_ARG_VALUE:_Gt,ERR_MISSING_ARGS:mwr}}=I0,ywr=WT;var rsn=function(...r){if(r.length===0)throw new mwr("streams");if(r.length===1)return $ue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=$ue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=$ue.from(r[R])}for(let R=0;R0&&!(mGt(r[R])||yGt(r[R])||a8(r[R])))throw new _Gt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=bwr(r,v),A=!!(mGt(y)||yGt(y)||a8(y)),C=!!(wGt(E)||vGt(E)||a8(E));if(w=new $ue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Iue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(xMe(y)){const M=(a8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=a8(E)?E.readable:E;ywr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Iue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(xMe(E)){const O=(a8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new wwr),d=null,l=null,u=null,h===null?O(R):(h=O,Iue(E)&&gwr(E,R))},w};const vwr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:_wr,ERR_INVALID_ARG_TYPE:AJ,ERR_MISSING_ARGS:Swr,ERR_OUT_OF_RANGE:Ewr},AbortError:ak}=I0,{validateAbortSignal:lO,validateInteger:SGt,validateObject:aO}=CJ,kwr=Ff.Symbol("kWeak"),Rwr=Ff.Symbol("kResistStopPropagation"),{finished:xwr}=WT,Cwr=rsn,{addAbortSignalNoValidate:Awr}=Gbe,{isWritable:Twr,isNodeStream:$wr}=Ax,{deprecate:Iwr}=f1,{ArrayPrototypePush:Pwr,Boolean:Owr,MathFloor:EGt,Number:Nwr,NumberIsNaN:Mwr,Promise:kGt,PromiseReject:RGt,PromiseResolve:Dwr,PromisePrototypeThen:xGt,Symbol:isn}=Ff,che=isn("kEmpty"),CGt=isn("kEof");function Lwr(n,r){if(r!=null&&aO(r,"options"),(r==null?void 0:r.signal)!=null&&lO(r.signal,"options.signal"),$wr(n)&&!Twr(n))throw new _wr("stream",n,"must be writable");const o=Cwr(this,n);return r!=null&&r.signal&&Awr(r.signal,o),o}function Kbe(n,r){if(typeof n!="function")throw new AJ("fn",["Function","AsyncFunction"],n);r!=null&&aO(r,"options"),(r==null?void 0:r.signal)!=null&&lO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=EGt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=EGt(r.highWaterMark)),SGt(o,"options.concurrency",1),SGt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=f1.AbortSignalAny([r==null?void 0:r.signal].filter(Owr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new kGt(G=>{E=G})}w.push(CGt)}catch(H){const G=RGt(H);xGt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===CGt)return;if(d.aborted)throw new ak;H!==che&&(yield H),w.shift(),M()}await new kGt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function jwr(n=void 0){return n!=null&&aO(n,"options"),(n==null?void 0:n.signal)!=null&&lO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new ak({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function osn(n,r=void 0){for await(const o of ZUe.call(this,n,r))return!0;return!1}async function Fwr(n,r=void 0){if(typeof n!="function")throw new AJ("fn",["Function","AsyncFunction"],n);return!await osn.call(this,async(...o)=>!await n(...o),r)}async function Bwr(n,r){for await(const o of ZUe.call(this,n,r))return o}async function Wwr(n,r){if(typeof n!="function")throw new AJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),che}for await(const l of Kbe.call(this,o,r));}function ZUe(n,r){if(typeof n!="function")throw new AJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:che}return Kbe.call(this,o,r)}let Hwr=class extends Swr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function Uwr(n,r,o){var l;if(typeof n!="function")throw new AJ("reducer",["Function","AsyncFunction"],n);o!=null&&aO(o,"options"),(o==null?void 0:o.signal)!=null&&lO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new ak(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await xwr(this.destroy(y)),y}const d=new vwr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[kwr]:this,[Rwr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new ak;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new Hwr}finally{d.abort()}return r}async function Gwr(n){n!=null&&aO(n,"options"),(n==null?void 0:n.signal)!=null&&lO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new ak(void 0,{cause:n.signal.reason});Pwr(r,l)}return r}function Vwr(n,r){const o=Kbe.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function ssn(n){if(n=Nwr(n),Mwr(n))return 0;if(n<0)throw new Ewr("number",">= 0",n);return n}function zwr(n,r=void 0){return r!=null&&aO(r,"options"),(r==null?void 0:r.signal)!=null&&lO(r.signal,"options.signal"),n=ssn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ak;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ak;n--<=0&&(yield d)}}).call(this)}function Kwr(n,r=void 0){return r!=null&&aO(r,"options"),(r==null?void 0:r.signal)!=null&&lO(r.signal,"options.signal"),n=ssn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ak;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ak;if(n-- >0&&(yield d),n<=0)return}}).call(this)}UUe.streamReturningOperators={asIndexedPairs:Iwr(jwr,"readable.asIndexedPairs will be removed in a future version."),drop:zwr,filter:ZUe,flatMap:Vwr,map:Kbe,take:Kwr,compose:Lwr};UUe.promiseReturningOperators={every:Fwr,forEach:Wwr,reduce:Uwr,toArray:Gwr,some:osn,find:Bwr};var CMe,AGt;function lsn(){if(AGt)return CMe;AGt=1;const{ArrayPrototypePop:n,Promise:r}=Ff,{isIterable:o,isNodeStream:l,isWebStream:u}=Ax,{pipelineImpl:d}=QUe,{finished:h}=WT;asn();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return CMe={finished:h,pipeline:w},CMe}var TGt;function asn(){if(TGt)return uMe.exports;TGt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Ff,{promisify:{custom:u}}=f1,{streamReturningOperators:d,promiseReturningOperators:h}=UUe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=I0,v=rsn,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=Vbe,{pipeline:A}=QUe,{destroyer:C}=Ej,R=WT,O=lsn(),M=Ax,L=uMe.exports=qUe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=zbe();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=XUe(),L.Duplex=ox(),L.Transform=Zon,L.PassThrough=tsn,L.pipeline=A;const{addAbortSignal:H}=Gbe;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},uMe.exports}(function(n){const r=asn(),o=lsn(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(mon);var qwr=mon.exports;class Xwr extends qwr.Transform{constructor(r){super({decodeStrings:!0}),this._readableState.objectMode=!0;const o=new gon(r);let l,u;const d={onQuad:(h,w)=>{h&&this.emit("error",h)||w&&this.push(w)},onPrefix:(h,w)=>{this.emit("prefix",h,w)}};r&&r.comments&&(d.onComment=h=>{this.emit("comment",h)}),o.parse({on:(h,w)=>{switch(h){case"data":l=w;break;case"end":u=w;break}}},d),this._transform=(h,w,v)=>{l(h),v()},this._flush=h=>{u(),h()}}import(r){return r.on("data",o=>{this.write(o)}),r.on("end",()=>{this.end()}),r.on("error",o=>{this.emit("error",o)}),this}}class Jwr{constructor(r,{baseIRI:o="",factory:l=sHe,...u}={}){const d={blankNode:l.blankNode.bind(l),defaultGraph:l.defaultGraph.bind(l),literal:l.literal.bind(l),namedNode:l.namedNode.bind(l),quad:l.quad.bind(l)},h=new Xwr({baseIRI:o,factory:d,...u});return r.pipe(h),bUe(h)}}class CD extends Jpe{constructor(r){super(Jwr,r)}}const Ywr=Object.freeze(Object.defineProperty({__proto__:null,default:CD},Symbol.toStringTag,{value:"Module"}));var csn={exports:{}},AMe={exports:{}},Bf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},usn={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Bf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(usn);var d1=usn.exports,eGe={};const{format:Qwr,inspect:uhe,AggregateError:Zwr}=d1,emr=globalThis.AggregateError||Zwr,tmr=Symbol("kIsNodeError"),nmr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],rmr=/^([A-Z][a-z0-9]*)+$/,imr="__node_internal_",qbe={};function aP(n,r){if(!n)throw new qbe.ERR_INTERNAL_ASSERTION(r)}function $Gt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function omr(n,r,o){if(typeof r=="function")return aP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return aP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:Qwr(r,...o)}function Zp(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(omr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[tmr]=!0,qbe[n]=l}function IGt(n){const r=imr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function smr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new emr([r,n],r.message);return o.code=r.code,o}return n||r}let lmr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new qbe.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};Zp("ERR_ASSERTION","%s",Error);Zp("ERR_INVALID_ARG_TYPE",(n,r,o)=>{aP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)aP(typeof v=="string","All expected entries have to be of type string"),nmr.includes(v)?u.push(v.toLowerCase()):rmr.test(v)?d.push(v):(aP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=uhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=uhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);Zp("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=uhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);Zp("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);Zp("ERR_MISSING_ARGS",(...n)=>{aP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);Zp("ERR_OUT_OF_RANGE",(n,r,o)=>{aP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=$Gt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=$Gt(l)),l+="n"):l=uhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);Zp("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Zp("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Zp("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Zp("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Zp("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Zp("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Zp("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Zp("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Zp("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Zp("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Zp("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var P0={AbortError:lmr,aggregateTwoErrors:IGt(smr),hideStackFrames:IGt,codes:qbe};const{ArrayIsArray:tGe,ArrayPrototypeIncludes:fsn,ArrayPrototypeJoin:dsn,ArrayPrototypeMap:amr,NumberIsInteger:nGe,NumberIsNaN:cmr,NumberMAX_SAFE_INTEGER:umr,NumberMIN_SAFE_INTEGER:fmr,NumberParseInt:dmr,ObjectPrototypeHasOwnProperty:hmr,RegExpPrototypeExec:hsn,String:pmr,StringPrototypeToUpperCase:bmr,StringPrototypeTrim:gmr}=Bf,{hideStackFrames:wv,codes:{ERR_SOCKET_BAD_PORT:wmr,ERR_INVALID_ARG_TYPE:Jb,ERR_INVALID_ARG_VALUE:kj,ERR_OUT_OF_RANGE:$P,ERR_UNKNOWN_SIGNAL:PGt}}=P0,{normalizeEncoding:mmr}=d1,{isAsyncFunction:ymr,isArrayBufferView:vmr}=d1.types,OGt={};function _mr(n){return n===(n|0)}function Smr(n){return n===n>>>0}const Emr=/^[0-7]+$/,kmr="must be a 32-bit unsigned integer or an octal string";function Rmr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(hsn(Emr,n)===null)throw new kj(r,n,kmr);n=dmr(n,8)}return psn(n,r),n}const xmr=wv((n,r,o=fmr,l=umr)=>{if(typeof n!="number")throw new Jb(r,"number",n);if(!nGe(n))throw new $P(r,"an integer",n);if(nl)throw new $P(r,`>= ${o} && <= ${l}`,n)}),Cmr=wv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Jb(r,"number",n);if(!nGe(n))throw new $P(r,"an integer",n);if(nl)throw new $P(r,`>= ${o} && <= ${l}`,n)}),psn=wv((n,r,o=!1)=>{if(typeof n!="number")throw new Jb(r,"number",n);if(!nGe(n))throw new $P(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new $P(r,`>= ${l} && <= ${u}`,n)});function rGe(n,r){if(typeof n!="string")throw new Jb(r,"string",n)}function Amr(n,r,o=void 0,l){if(typeof n!="number")throw new Jb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&cmr(n))throw new $P(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const Tmr=wv((n,r,o)=>{if(!fsn(o,n)){const u="must be one of: "+dsn(amr(o,d=>typeof d=="string"?`'${d}'`:pmr(d)),", ");throw new kj(r,n,u)}});function bsn(n,r){if(typeof n!="boolean")throw new Jb(r,"boolean",n)}function TMe(n,r,o){return n==null||!hmr(n,r)?o:n[r]}const $mr=wv((n,r,o=null)=>{const l=TMe(o,"allowArray",!1),u=TMe(o,"allowFunction",!1);if(!TMe(o,"nullable",!1)&&n===null||!l&&tGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Jb(r,"Object",n)}),Imr=wv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Jb(r,"a dictionary",n)}),Xbe=wv((n,r,o=0)=>{if(!tGe(n))throw new Jb(r,"Array",n);if(n.length{if(!vmr(n))throw new Jb(r,["Buffer","TypedArray","DataView"],n)});function Lmr(n,r){const o=mmr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new kj("encoding",r,`is invalid for data of length ${l}`)}function jmr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&gmr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new wmr(r,n,o);return n|0}const gsn=wv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Jb(r,"AbortSignal",n)}),Fmr=wv((n,r)=>{if(typeof n!="function")throw new Jb(r,"Function",n)}),Bmr=wv((n,r)=>{if(typeof n!="function"||ymr(n))throw new Jb(r,"Function",n)}),Wmr=wv((n,r)=>{if(n!==void 0)throw new Jb(r,"undefined",n)});function Hmr(n,r,o){if(!fsn(o,n))throw new Jb(r,`('${dsn(o,"|")}')`,n)}const Umr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function NGt(n,r){if(typeof n>"u"||!hsn(Umr,n))throw new kj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function Gmr(n){if(typeof n=="string")return NGt(n,"hints"),n;if(tGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var TJ={isInt32:_mr,isUint32:Smr,parseFileMode:Rmr,validateArray:Xbe,validateStringArray:Pmr,validateBooleanArray:Omr,validateAbortSignalArray:Nmr,validateBoolean:bsn,validateBuffer:Dmr,validateDictionary:Imr,validateEncoding:Lmr,validateFunction:Fmr,validateInt32:Cmr,validateInteger:xmr,validateNumber:Amr,validateObject:$mr,validateOneOf:Tmr,validatePlainFunction:Bmr,validatePort:jmr,validateSignalName:Mmr,validateString:rGe,validateUint32:psn,validateUndefined:Wmr,validateUnion:Hmr,validateAbortSignal:gsn,validateLinkHeaderValue:Gmr},iGe={exports:{}};const{SymbolAsyncIterator:MGt,SymbolIterator:DGt,SymbolFor:cO}=Bf,wsn=cO("nodejs.stream.destroyed"),msn=cO("nodejs.stream.errored"),gFe=cO("nodejs.stream.readable"),wFe=cO("nodejs.stream.writable"),ysn=cO("nodejs.stream.disturbed"),Vmr=cO("nodejs.webstream.isClosedPromise"),zmr=cO("nodejs.webstream.controllerErrorFunction");function Jbe(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Ybe(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function Kmr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function _k(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function vsn(n){return!!(n&&!_k(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function _sn(n){return!!(n&&!_k(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function Ssn(n){return!!(n&&!_k(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function qmr(n){return vsn(n)||_sn(n)||Ssn(n)}function Xmr(n,r){return n==null?!1:r===!0?typeof n[MGt]=="function":r===!1?typeof n[DGt]=="function":typeof n[MGt]=="function"||typeof n[DGt]=="function"}function Qbe(n){if(!_k(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[wsn]||l!=null&&l.destroyed)}function Esn(n){if(!Ybe(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Jmr(n,r){if(!Ybe(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function Ymr(n){if(!Jbe(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function ksn(n,r){if(!Jbe(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Rsn(n){return n&&n[gFe]!=null?n[gFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:Qbe(n)?!1:Jbe(n)&&n.readable&&!ksn(n)}function xsn(n){return n&&n[wFe]!=null?n[wFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:Qbe(n)?!1:Ybe(n)&&n.writable&&!Esn(n)}function Qmr(n,r){return _k(n)?Qbe(n)?!0:!((r==null?void 0:r.readable)!==!1&&Rsn(n)||(r==null?void 0:r.writable)!==!1&&xsn(n)):null}function Zmr(n){var r,o;return _k(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function eyr(n){var r,o;return _k(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function tyr(n){if(!_k(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Csn(n)?n._closed:null}function Csn(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Asn(n){return typeof n._sent100=="boolean"&&Csn(n)}function nyr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function ryr(n){if(!_k(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Asn(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function iyr(n){var r;return!!(n&&((r=n[ysn])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function oyr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[msn])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Tx={isDestroyed:Qbe,kIsDestroyed:wsn,isDisturbed:iyr,kIsDisturbed:ysn,isErrored:oyr,kIsErrored:msn,isReadable:Rsn,kIsReadable:gFe,kIsClosedPromise:Vmr,kControllerErrorFunction:zmr,kIsWritable:wFe,isClosed:tyr,isDuplexNodeStream:Kmr,isFinished:Qmr,isIterable:Xmr,isReadableNodeStream:Jbe,isReadableStream:vsn,isReadableEnded:Ymr,isReadableFinished:ksn,isReadableErrored:eyr,isNodeStream:_k,isWebStream:qmr,isWritable:xsn,isWritableNodeStream:Ybe,isWritableStream:_sn,isWritableEnded:Esn,isWritableFinished:Jmr,isWritableErrored:Zmr,isServerRequest:nyr,isServerResponse:Asn,willEmitClose:ryr,isTransformStream:Ssn};const J4=ui,{AbortError:Tsn,codes:syr}=P0,{ERR_INVALID_ARG_TYPE:lyr,ERR_STREAM_PREMATURE_CLOSE:LGt}=syr,{kEmptyObject:mFe,once:yFe}=d1,{validateAbortSignal:ayr,validateFunction:cyr,validateObject:uyr,validateBoolean:fyr}=TJ,{Promise:dyr,PromisePrototypeThen:hyr,SymbolDispose:$sn}=Bf,{isClosed:pyr,isReadable:jGt,isReadableNodeStream:$Me,isReadableStream:byr,isReadableFinished:FGt,isReadableErrored:BGt,isWritable:WGt,isWritableNodeStream:HGt,isWritableStream:gyr,isWritableFinished:UGt,isWritableErrored:GGt,isNodeStream:wyr,willEmitClose:myr,kIsClosedPromise:yyr}=Tx;let uL;function vyr(n){return n.setHeader&&typeof n.abort=="function"}const vFe=()=>{};function Isn(n,r,o){var l,u;if(arguments.length===2?(o=r,r=mFe):r==null?r=mFe:uyr(r,"options"),cyr(o,"callback"),ayr(r.signal,"options.signal"),o=yFe(o),byr(n)||gyr(n))return _yr(n,r,o);if(!wyr(n))throw new lyr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:$Me(n),h=(u=r.writable)!==null&&u!==void 0?u:HGt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=myr(n)&&$Me(n)===d&&HGt(n)===h,A=UGt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=FGt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=pyr(n);const H=()=>{L=!0;const te=GGt(n)||BGt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&$Me(n,!0)&&!FGt(n,!1))return o.call(n,new LGt);if(h&&!A&&!UGt(n,!1))return o.call(n,new LGt);o.call(n)},G=()=>{L=!0;const te=GGt(n)||BGt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};vyr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?J4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||J4.nextTick(G):(!d&&(!E||jGt(n))&&(A||WGt(n)===!1)||!h&&(!E||WGt(n))&&(R||jGt(n)===!1)||v&&n.req&&n.aborted)&&J4.nextTick(G);const Q=()=>{o=vFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new Tsn(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)J4.nextTick(te);else{uL=uL||d1.addAbortListener;const pe=uL(r.signal,te),Le=o;o=yFe((...Ee)=>{pe[$sn](),Le.apply(n,Ee)})}}return Q}function _yr(n,r,o){let l=!1,u=vFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new Tsn(void 0,{cause:r.signal.reason}))},r.signal.aborted)J4.nextTick(u);else{uL=uL||d1.addAbortListener;const h=uL(r.signal,u),w=o;o=yFe((...v)=>{h[$sn](),w.apply(n,v)})}const d=(...h)=>{l||J4.nextTick(()=>o.apply(n,h))};return hyr(n[yyr].promise,d,d),vFe}function Syr(n,r){var o;let l=!1;return r===null&&(r=mFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(fyr(r.cleanup,"cleanup"),l=r.cleanup),new dyr((u,d)=>{const h=Isn(n,r,w=>{l&&h(),w?d(w):u()})})}iGe.exports=Isn;iGe.exports.finished=Syr;var HT=iGe.exports;const zE=ui,{aggregateTwoErrors:Eyr,codes:{ERR_MULTIPLE_CALLBACK:kyr},AbortError:Ryr}=P0,{Symbol:Psn}=Bf,{kIsDestroyed:xyr,isDestroyed:Cyr,isFinished:Ayr,isServerRequest:Tyr}=Tx,Osn=Psn("kDestroy"),_Fe=Psn("kConstruct");function Nsn(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function $yr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(Nsn(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?VGt(this,n,r):this.once(Osn,function(d){VGt(this,Eyr(d,n),r)}),this)}function VGt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;Nsn(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?zE.nextTick(Iyr,n,d):zE.nextTick(Msn,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function Iyr(n,r){SFe(n,r),Msn(n)}function Msn(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function SFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function Pyr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function EFe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?zE.nextTick(SFe,n,r):SFe(n,r))}function Oyr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(_Fe,r),!(n.listenerCount(_Fe)>1)&&zE.nextTick(Nyr,n)}function Nyr(n){let r=!1;function o(l){if(r){EFe(n,l??new kyr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Osn,l):l?EFe(n,l,!0):zE.nextTick(Myr,n)}try{n._construct(l=>{zE.nextTick(o,l)})}catch(l){zE.nextTick(o,l)}}function Myr(n){n.emit(_Fe)}function zGt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Dsn(n){n.emit("close")}function Dyr(n,r){n.emit("error",r),zE.nextTick(Dsn,n)}function Lyr(n,r){!n||Cyr(n)||(!r&&!Ayr(n)&&(r=new Ryr),Tyr(n)?(n.socket=null,n.destroy(r)):zGt(n)?n.abort():zGt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?zE.nextTick(Dyr,n,r):zE.nextTick(Dsn,n),n.destroyed||(n[xyr]=!0))}var Rj={construct:Oyr,destroyer:Lyr,destroy:$yr,undestroy:Pyr,errorOrDestroy:EFe};const{ArrayIsArray:jyr,ObjectSetPrototypeOf:Lsn}=Bf,{EventEmitter:Zbe}=Ns;function ege(n){Zbe.call(this,n)}Lsn(ege.prototype,Zbe.prototype);Lsn(ege,Zbe);ege.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Zbe.listenerCount(this,"error")===0&&this.emit("error",E)}kFe(o,"error",v),kFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function kFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):jyr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var oGe={Stream:ege,prependListener:kFe},jsn={exports:{}};(function(n){const{SymbolDispose:r}=Bf,{AbortError:o,codes:l}=P0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Tx,w=HT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||d1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(jsn);var tge=jsn.exports;const{StringPrototypeSlice:KGt,SymbolIterator:Fyr,TypedArrayPrototypeSet:Pue,Uint8Array:Byr}=Bf,{Buffer:IMe}=Kr,{inspect:Wyr}=d1;var Hyr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return IMe.alloc(0);const o=IMe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Pue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=KGt(d,0,r),this.head=l,l.data=KGt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=IMe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Pue(o,h,l-r),r-=h.length;else{r===h.length?(Pue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Pue(o,new Byr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return Wyr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:Uyr,NumberIsInteger:Gyr}=Bf,{validateInteger:Vyr}=TJ,{ERR_INVALID_ARG_VALUE:zyr}=P0.codes;let Fsn=16*1024,Bsn=16;function Kyr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Wsn(n){return n?Bsn:Fsn}function qyr(n,r){Vyr(r,"value",0),n?Bsn=r:Fsn=r}function Xyr(n,r,o,l){const u=Kyr(r,l,o);if(u!=null){if(!Gyr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new zyr(d,u)}return Uyr(u)}return Wsn(n.objectMode)}var nge={getHighWaterMark:Xyr,getDefaultHighWaterMark:Wsn,setDefaultHighWaterMark:qyr};const qGt=ui,{PromisePrototypeThen:Jyr,SymbolAsyncIterator:XGt,SymbolIterator:JGt}=Bf,{Buffer:Yyr}=Kr,{ERR_INVALID_ARG_TYPE:Qyr,ERR_STREAM_NULL_VALUES:Zyr}=P0.codes;function evr(n,r,o){let l;if(typeof r=="string"||r instanceof Yyr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[XGt])u=!0,l=r[XGt]();else if(r&&r[JGt])u=!1,l=r[JGt]();else throw new Qyr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){Jyr(w(y),()=>qGt.nextTick(E,y),A=>qGt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new Zyr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Hsn=evr,PMe,YGt;function rge(){if(YGt)return PMe;YGt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Bf;PMe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=oGe,{Buffer:L}=Kr,{addAbortSignal:H}=tge,G=HT;let j=d1.debuglog("stream",S=>{j=S});const Q=Hyr,te=Rj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=nge,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=P0,{validateObject:ye}=TJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Hsn;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof lx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof lx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},PMe}var OMe,QGt;function sGe(){if(QGt)return OMe;QGt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Bf;OMe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=oGe.Stream,{Buffer:C}=Kr,R=Rj,{addAbortSignal:O}=tge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=nge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=P0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof lx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof lx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return NMe}var MMe,eVt;function lx(){if(eVt)return MMe;eVt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Bf;MMe=h;const u=rge(),d=sGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function ovr(){this._final!==RFe&&RFe.call(this)}ax.prototype._final=RFe;ax.prototype._transform=function(n,r,o){throw new rvr("_transform()")};ax.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=fhe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,fvr.destroyer(n,d||new pvr("pipe")))},cleanup:u}}function Svr(n){return wvr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function HMe(n){if(T8(n))return n;if(nde(n))return Evr(n);throw new xFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*Evr(n){BMe||(BMe=rge()),yield*BMe.prototype[avr].call(n)}async function Oue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new lvr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=fhe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?dvr(u,y):y)}finally{v(),r.off("drain",h)}}async function UMe(n,r,o,{end:l}){AD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function kvr(...n){return Ksn(n,uvr(Svr(n)))}function Ksn(n,r,o){if(n.length===1&&svr(n[0])&&(n=n[0]),n.length<2)throw new hvr("streams");const l=new _vr,u=l.signal,d=o==null?void 0:o.signal,h=[];mvr(d,"options.signal");function w(){O(new gvr)}WMe=WMe||d1.addAbortListener;let v;d&&(v=WMe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[cvr](),l.abort(),j&&(y||h.forEach(te=>te()),NK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(nVt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=rVt(j,Q,te);A.push(le),LMe(j)&&Le&&h.push(xe)}j.on("error",Ee),LMe(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!T8(M))throw new DMe("Iterable, AsyncIterable or Stream","source",M)}else T8(j)||nde(j)||AD(j)?M=j:M=tVt.from(j);else if(typeof j=="function"){if(AD(M)){var L;M=HMe((L=M)===null||L===void 0?void 0:L.readable)}else M=HMe(M);if(M=j(M,{signal:u}),Q){if(!T8(M,!0))throw new DMe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;FMe||(FMe=zsn);const Ee=new FMe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),NK.nextTick(R)},ae=>{Ee.destroy(ae),NK.nextTick(R,ae)});else if(T8(M,!0))C++,Oue(M,Ee,R,{end:pe});else if(jMe(M)||AD(M)){const ae=M.readable||M;C++,Oue(ae,Ee,R,{end:pe})}else throw new DMe("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=rVt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(nVt(j)){if(nde(M)){C+=2;const Ee=Rvr(M,j,R,{end:pe});LMe(j)&&Le&&h.push(Ee)}else if(AD(M)||jMe(M)){const Ee=M.readable||M;C++,Oue(Ee,j,R,{end:pe})}else if(T8(M))C++,Oue(M,j,R,{end:pe});else throw new xFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(yvr(j)){if(nde(M))C++,UMe(HMe(M),j,R,{end:pe});else if(jMe(M)||T8(M))C++,UMe(M,j,R,{end:pe});else if(AD(M))C++,UMe(M.readable,j,R,{end:pe});else throw new xFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=tVt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&NK.nextTick(w),M}function Rvr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new bvr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};vvr(n)?NK.nextTick(d):n.once("end",d)}else o();return fhe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),fhe(r,{readable:!1,writable:!0},o)}var cGe={pipelineImpl:Ksn,pipeline:kvr};const{pipeline:xvr}=cGe,Nue=lx(),{destroyer:Cvr}=Rj,{isNodeStream:Mue,isReadable:iVt,isWritable:oVt,isWebStream:GMe,isTransformStream:c8,isWritableStream:sVt,isReadableStream:lVt}=Tx,{AbortError:Avr,codes:{ERR_INVALID_ARG_VALUE:aVt,ERR_MISSING_ARGS:Tvr}}=P0,$vr=HT;var qsn=function(...r){if(r.length===0)throw new Tvr("streams");if(r.length===1)return Nue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=Nue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=Nue.from(r[R])}for(let R=0;R0&&!(oVt(r[R])||sVt(r[R])||c8(r[R])))throw new aVt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=xvr(r,v),A=!!(oVt(y)||sVt(y)||c8(y)),C=!!(iVt(E)||lVt(E)||c8(E));if(w=new Nue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Mue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(GMe(y)){const M=(c8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=c8(E)?E.readable:E;$vr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Mue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(GMe(E)){const O=(c8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new Avr),d=null,l=null,u=null,h===null?O(R):(h=O,Mue(E)&&Cvr(E,R))},w};const Ivr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Pvr,ERR_INVALID_ARG_TYPE:$J,ERR_MISSING_ARGS:Ovr,ERR_OUT_OF_RANGE:Nvr},AbortError:ck}=P0,{validateAbortSignal:uO,validateInteger:cVt,validateObject:fO}=TJ,Mvr=Bf.Symbol("kWeak"),Dvr=Bf.Symbol("kResistStopPropagation"),{finished:Lvr}=HT,jvr=qsn,{addAbortSignalNoValidate:Fvr}=tge,{isWritable:Bvr,isNodeStream:Wvr}=Tx,{deprecate:Hvr}=d1,{ArrayPrototypePush:Uvr,Boolean:Gvr,MathFloor:uVt,Number:Vvr,NumberIsNaN:zvr,Promise:fVt,PromiseReject:dVt,PromiseResolve:Kvr,PromisePrototypeThen:hVt,Symbol:Xsn}=Bf,dhe=Xsn("kEmpty"),pVt=Xsn("kEof");function qvr(n,r){if(r!=null&&fO(r,"options"),(r==null?void 0:r.signal)!=null&&uO(r.signal,"options.signal"),Wvr(n)&&!Bvr(n))throw new Pvr("stream",n,"must be writable");const o=jvr(this,n);return r!=null&&r.signal&&Fvr(r.signal,o),o}function ige(n,r){if(typeof n!="function")throw new $J("fn",["Function","AsyncFunction"],n);r!=null&&fO(r,"options"),(r==null?void 0:r.signal)!=null&&uO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=uVt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=uVt(r.highWaterMark)),cVt(o,"options.concurrency",1),cVt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=d1.AbortSignalAny([r==null?void 0:r.signal].filter(Gvr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new fVt(G=>{E=G})}w.push(pVt)}catch(H){const G=dVt(H);hVt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===pVt)return;if(d.aborted)throw new ck;H!==dhe&&(yield H),w.shift(),M()}await new fVt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function Xvr(n=void 0){return n!=null&&fO(n,"options"),(n==null?void 0:n.signal)!=null&&uO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new ck({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function Jsn(n,r=void 0){for await(const o of uGe.call(this,n,r))return!0;return!1}async function Jvr(n,r=void 0){if(typeof n!="function")throw new $J("fn",["Function","AsyncFunction"],n);return!await Jsn.call(this,async(...o)=>!await n(...o),r)}async function Yvr(n,r){for await(const o of uGe.call(this,n,r))return o}async function Qvr(n,r){if(typeof n!="function")throw new $J("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),dhe}for await(const l of ige.call(this,o,r));}function uGe(n,r){if(typeof n!="function")throw new $J("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:dhe}return ige.call(this,o,r)}let Zvr=class extends Ovr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function e_r(n,r,o){var l;if(typeof n!="function")throw new $J("reducer",["Function","AsyncFunction"],n);o!=null&&fO(o,"options"),(o==null?void 0:o.signal)!=null&&uO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new ck(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await Lvr(this.destroy(y)),y}const d=new Ivr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[Mvr]:this,[Dvr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new ck;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new Zvr}finally{d.abort()}return r}async function t_r(n){n!=null&&fO(n,"options"),(n==null?void 0:n.signal)!=null&&uO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new ck(void 0,{cause:n.signal.reason});Uvr(r,l)}return r}function n_r(n,r){const o=ige.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Ysn(n){if(n=Vvr(n),zvr(n))return 0;if(n<0)throw new Nvr("number",">= 0",n);return n}function r_r(n,r=void 0){return r!=null&&fO(r,"options"),(r==null?void 0:r.signal)!=null&&uO(r.signal,"options.signal"),n=Ysn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ck;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ck;n--<=0&&(yield d)}}).call(this)}function i_r(n,r=void 0){return r!=null&&fO(r,"options"),(r==null?void 0:r.signal)!=null&&uO(r.signal,"options.signal"),n=Ysn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ck;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new ck;if(n-- >0&&(yield d),n<=0)return}}).call(this)}eGe.streamReturningOperators={asIndexedPairs:Hvr(Xvr,"readable.asIndexedPairs will be removed in a future version."),drop:r_r,filter:uGe,flatMap:n_r,map:ige,take:i_r,compose:qvr};eGe.promiseReturningOperators={every:Jvr,forEach:Qvr,reduce:e_r,toArray:t_r,some:Jsn,find:Yvr};var VMe,bVt;function Qsn(){if(bVt)return VMe;bVt=1;const{ArrayPrototypePop:n,Promise:r}=Bf,{isIterable:o,isNodeStream:l,isWebStream:u}=Tx,{pipelineImpl:d}=cGe,{finished:h}=HT;Zsn();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return VMe={finished:h,pipeline:w},VMe}var gVt;function Zsn(){if(gVt)return AMe.exports;gVt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Bf,{promisify:{custom:u}}=d1,{streamReturningOperators:d,promiseReturningOperators:h}=eGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=P0,v=qsn,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=nge,{pipeline:A}=cGe,{destroyer:C}=Rj,R=HT,O=Qsn(),M=Tx,L=AMe.exports=oGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=rge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=sGe(),L.Duplex=lx(),L.Transform=Gsn,L.PassThrough=zsn,L.pipeline=A;const{addAbortSignal:H}=tge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},AMe.exports}(function(n){const r=Zsn(),o=Qsn(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(csn);var o_r=csn.exports;let s_r=class{constructor(r){const o=new o_r.Transform({objectMode:!0,transform:(l,u,d)=>{d(null,`${_S(l)} +`)}});return r.pipe(o),bUe(o)}},MK=class extends Jpe{constructor(){super(s_r)}};const l_r=Object.freeze(Object.defineProperty({__proto__:null,default:MK},Symbol.toStringTag,{value:"Module"}));var a_r={exports:{}},zMe={exports:{}},Wf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},eln={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Wf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(eln);var h1=eln.exports,fGe={};const{format:c_r,inspect:hhe,AggregateError:u_r}=h1,f_r=globalThis.AggregateError||u_r,d_r=Symbol("kIsNodeError"),h_r=["string","function","number","object","Function","Object","boolean","bigint","symbol"],p_r=/^([A-Z][a-z0-9]*)+$/,b_r="__node_internal_",oge={};function cP(n,r){if(!n)throw new oge.ERR_INTERNAL_ASSERTION(r)}function wVt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function g_r(n,r,o){if(typeof r=="function")return cP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return cP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:c_r(r,...o)}function eb(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(g_r(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[d_r]=!0,oge[n]=l}function mVt(n){const r=b_r+n.name;return Object.defineProperty(n,"name",{value:r}),n}function w_r(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new f_r([r,n],r.message);return o.code=r.code,o}return n||r}let m_r=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new oge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};eb("ERR_ASSERTION","%s",Error);eb("ERR_INVALID_ARG_TYPE",(n,r,o)=>{cP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)cP(typeof v=="string","All expected entries have to be of type string"),h_r.includes(v)?u.push(v.toLowerCase()):p_r.test(v)?d.push(v):(cP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=hhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=hhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);eb("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=hhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);eb("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);eb("ERR_MISSING_ARGS",(...n)=>{cP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);eb("ERR_OUT_OF_RANGE",(n,r,o)=>{cP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=wVt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=wVt(l)),l+="n"):l=hhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);eb("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);eb("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);eb("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);eb("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);eb("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);eb("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);eb("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);eb("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);eb("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);eb("ERR_STREAM_WRITE_AFTER_END","write after end",Error);eb("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var O0={AbortError:m_r,aggregateTwoErrors:mVt(w_r),hideStackFrames:mVt,codes:oge};const{ArrayIsArray:dGe,ArrayPrototypeIncludes:tln,ArrayPrototypeJoin:nln,ArrayPrototypeMap:y_r,NumberIsInteger:hGe,NumberIsNaN:v_r,NumberMAX_SAFE_INTEGER:__r,NumberMIN_SAFE_INTEGER:S_r,NumberParseInt:E_r,ObjectPrototypeHasOwnProperty:k_r,RegExpPrototypeExec:rln,String:R_r,StringPrototypeToUpperCase:x_r,StringPrototypeTrim:C_r}=Wf,{hideStackFrames:mv,codes:{ERR_SOCKET_BAD_PORT:A_r,ERR_INVALID_ARG_TYPE:Yb,ERR_INVALID_ARG_VALUE:xj,ERR_OUT_OF_RANGE:IP,ERR_UNKNOWN_SIGNAL:yVt}}=O0,{normalizeEncoding:T_r}=h1,{isAsyncFunction:$_r,isArrayBufferView:I_r}=h1.types,vVt={};function P_r(n){return n===(n|0)}function O_r(n){return n===n>>>0}const N_r=/^[0-7]+$/,M_r="must be a 32-bit unsigned integer or an octal string";function D_r(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(rln(N_r,n)===null)throw new xj(r,n,M_r);n=E_r(n,8)}return iln(n,r),n}const L_r=mv((n,r,o=S_r,l=__r)=>{if(typeof n!="number")throw new Yb(r,"number",n);if(!hGe(n))throw new IP(r,"an integer",n);if(nl)throw new IP(r,`>= ${o} && <= ${l}`,n)}),j_r=mv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Yb(r,"number",n);if(!hGe(n))throw new IP(r,"an integer",n);if(nl)throw new IP(r,`>= ${o} && <= ${l}`,n)}),iln=mv((n,r,o=!1)=>{if(typeof n!="number")throw new Yb(r,"number",n);if(!hGe(n))throw new IP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new IP(r,`>= ${l} && <= ${u}`,n)});function pGe(n,r){if(typeof n!="string")throw new Yb(r,"string",n)}function F_r(n,r,o=void 0,l){if(typeof n!="number")throw new Yb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&v_r(n))throw new IP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const B_r=mv((n,r,o)=>{if(!tln(o,n)){const u="must be one of: "+nln(y_r(o,d=>typeof d=="string"?`'${d}'`:R_r(d)),", ");throw new xj(r,n,u)}});function oln(n,r){if(typeof n!="boolean")throw new Yb(r,"boolean",n)}function KMe(n,r,o){return n==null||!k_r(n,r)?o:n[r]}const W_r=mv((n,r,o=null)=>{const l=KMe(o,"allowArray",!1),u=KMe(o,"allowFunction",!1);if(!KMe(o,"nullable",!1)&&n===null||!l&&dGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Yb(r,"Object",n)}),H_r=mv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Yb(r,"a dictionary",n)}),sge=mv((n,r,o=0)=>{if(!dGe(n))throw new Yb(r,"Array",n);if(n.length{if(!I_r(n))throw new Yb(r,["Buffer","TypedArray","DataView"],n)});function q_r(n,r){const o=T_r(r),l=n.length;if(o==="hex"&&l%2!==0)throw new xj("encoding",r,`is invalid for data of length ${l}`)}function X_r(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&C_r(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new A_r(r,n,o);return n|0}const sln=mv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Yb(r,"AbortSignal",n)}),J_r=mv((n,r)=>{if(typeof n!="function")throw new Yb(r,"Function",n)}),Y_r=mv((n,r)=>{if(typeof n!="function"||$_r(n))throw new Yb(r,"Function",n)}),Q_r=mv((n,r)=>{if(n!==void 0)throw new Yb(r,"undefined",n)});function Z_r(n,r,o){if(!tln(o,n))throw new Yb(r,`('${nln(o,"|")}')`,n)}const eSr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function _Vt(n,r){if(typeof n>"u"||!rln(eSr,n))throw new xj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function tSr(n){if(typeof n=="string")return _Vt(n,"hints"),n;if(dGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var IJ={isInt32:P_r,isUint32:O_r,parseFileMode:D_r,validateArray:sge,validateStringArray:U_r,validateBooleanArray:G_r,validateAbortSignalArray:V_r,validateBoolean:oln,validateBuffer:K_r,validateDictionary:H_r,validateEncoding:q_r,validateFunction:J_r,validateInt32:j_r,validateInteger:L_r,validateNumber:F_r,validateObject:W_r,validateOneOf:B_r,validatePlainFunction:Y_r,validatePort:X_r,validateSignalName:z_r,validateString:pGe,validateUint32:iln,validateUndefined:Q_r,validateUnion:Z_r,validateAbortSignal:sln,validateLinkHeaderValue:tSr},bGe={exports:{}};const{SymbolAsyncIterator:SVt,SymbolIterator:EVt,SymbolFor:dO}=Wf,lln=dO("nodejs.stream.destroyed"),aln=dO("nodejs.stream.errored"),CFe=dO("nodejs.stream.readable"),AFe=dO("nodejs.stream.writable"),cln=dO("nodejs.stream.disturbed"),nSr=dO("nodejs.webstream.isClosedPromise"),rSr=dO("nodejs.webstream.controllerErrorFunction");function lge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function age(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function iSr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function Sk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function uln(n){return!!(n&&!Sk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function fln(n){return!!(n&&!Sk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function dln(n){return!!(n&&!Sk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function oSr(n){return uln(n)||fln(n)||dln(n)}function sSr(n,r){return n==null?!1:r===!0?typeof n[SVt]=="function":r===!1?typeof n[EVt]=="function":typeof n[SVt]=="function"||typeof n[EVt]=="function"}function cge(n){if(!Sk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[lln]||l!=null&&l.destroyed)}function hln(n){if(!age(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function lSr(n,r){if(!age(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function aSr(n){if(!lge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function pln(n,r){if(!lge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function bln(n){return n&&n[CFe]!=null?n[CFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:cge(n)?!1:lge(n)&&n.readable&&!pln(n)}function gln(n){return n&&n[AFe]!=null?n[AFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:cge(n)?!1:age(n)&&n.writable&&!hln(n)}function cSr(n,r){return Sk(n)?cge(n)?!0:!((r==null?void 0:r.readable)!==!1&&bln(n)||(r==null?void 0:r.writable)!==!1&&gln(n)):null}function uSr(n){var r,o;return Sk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function fSr(n){var r,o;return Sk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function dSr(n){if(!Sk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&wln(n)?n._closed:null}function wln(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function mln(n){return typeof n._sent100=="boolean"&&wln(n)}function hSr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function pSr(n){if(!Sk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&mln(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function bSr(n){var r;return!!(n&&((r=n[cln])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function gSr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[aln])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var $x={isDestroyed:cge,kIsDestroyed:lln,isDisturbed:bSr,kIsDisturbed:cln,isErrored:gSr,kIsErrored:aln,isReadable:bln,kIsReadable:CFe,kIsClosedPromise:nSr,kControllerErrorFunction:rSr,kIsWritable:AFe,isClosed:dSr,isDuplexNodeStream:iSr,isFinished:cSr,isIterable:sSr,isReadableNodeStream:lge,isReadableStream:uln,isReadableEnded:aSr,isReadableFinished:pln,isReadableErrored:fSr,isNodeStream:Sk,isWebStream:oSr,isWritable:gln,isWritableNodeStream:age,isWritableStream:fln,isWritableEnded:hln,isWritableFinished:lSr,isWritableErrored:uSr,isServerRequest:hSr,isServerResponse:mln,willEmitClose:pSr,isTransformStream:dln};const Y4=ui,{AbortError:yln,codes:wSr}=O0,{ERR_INVALID_ARG_TYPE:mSr,ERR_STREAM_PREMATURE_CLOSE:kVt}=wSr,{kEmptyObject:TFe,once:$Fe}=h1,{validateAbortSignal:ySr,validateFunction:vSr,validateObject:_Sr,validateBoolean:SSr}=IJ,{Promise:ESr,PromisePrototypeThen:kSr,SymbolDispose:vln}=Wf,{isClosed:RSr,isReadable:RVt,isReadableNodeStream:qMe,isReadableStream:xSr,isReadableFinished:xVt,isReadableErrored:CVt,isWritable:AVt,isWritableNodeStream:TVt,isWritableStream:CSr,isWritableFinished:$Vt,isWritableErrored:IVt,isNodeStream:ASr,willEmitClose:TSr,kIsClosedPromise:$Sr}=$x;let fL;function ISr(n){return n.setHeader&&typeof n.abort=="function"}const IFe=()=>{};function _ln(n,r,o){var l,u;if(arguments.length===2?(o=r,r=TFe):r==null?r=TFe:_Sr(r,"options"),vSr(o,"callback"),ySr(r.signal,"options.signal"),o=$Fe(o),xSr(n)||CSr(n))return PSr(n,r,o);if(!ASr(n))throw new mSr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:qMe(n),h=(u=r.writable)!==null&&u!==void 0?u:TVt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=TSr(n)&&qMe(n)===d&&TVt(n)===h,A=$Vt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=xVt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=RSr(n);const H=()=>{L=!0;const te=IVt(n)||CVt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&qMe(n,!0)&&!xVt(n,!1))return o.call(n,new kVt);if(h&&!A&&!$Vt(n,!1))return o.call(n,new kVt);o.call(n)},G=()=>{L=!0;const te=IVt(n)||CVt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};ISr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?Y4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||Y4.nextTick(G):(!d&&(!E||RVt(n))&&(A||AVt(n)===!1)||!h&&(!E||AVt(n))&&(R||RVt(n)===!1)||v&&n.req&&n.aborted)&&Y4.nextTick(G);const Q=()=>{o=IFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new yln(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)Y4.nextTick(te);else{fL=fL||h1.addAbortListener;const pe=fL(r.signal,te),Le=o;o=$Fe((...Ee)=>{pe[vln](),Le.apply(n,Ee)})}}return Q}function PSr(n,r,o){let l=!1,u=IFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new yln(void 0,{cause:r.signal.reason}))},r.signal.aborted)Y4.nextTick(u);else{fL=fL||h1.addAbortListener;const h=fL(r.signal,u),w=o;o=$Fe((...v)=>{h[vln](),w.apply(n,v)})}const d=(...h)=>{l||Y4.nextTick(()=>o.apply(n,h))};return kSr(n[$Sr].promise,d,d),IFe}function OSr(n,r){var o;let l=!1;return r===null&&(r=TFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(SSr(r.cleanup,"cleanup"),l=r.cleanup),new ESr((u,d)=>{const h=_ln(n,r,w=>{l&&h(),w?d(w):u()})})}bGe.exports=_ln;bGe.exports.finished=OSr;var UT=bGe.exports;const KE=ui,{aggregateTwoErrors:NSr,codes:{ERR_MULTIPLE_CALLBACK:MSr},AbortError:DSr}=O0,{Symbol:Sln}=Wf,{kIsDestroyed:LSr,isDestroyed:jSr,isFinished:FSr,isServerRequest:BSr}=$x,Eln=Sln("kDestroy"),PFe=Sln("kConstruct");function kln(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function WSr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(kln(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?PVt(this,n,r):this.once(Eln,function(d){PVt(this,NSr(d,n),r)}),this)}function PVt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;kln(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?KE.nextTick(HSr,n,d):KE.nextTick(Rln,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function HSr(n,r){OFe(n,r),Rln(n)}function Rln(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function OFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function USr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function NFe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?KE.nextTick(OFe,n,r):OFe(n,r))}function GSr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(PFe,r),!(n.listenerCount(PFe)>1)&&KE.nextTick(VSr,n)}function VSr(n){let r=!1;function o(l){if(r){NFe(n,l??new MSr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(Eln,l):l?NFe(n,l,!0):KE.nextTick(zSr,n)}try{n._construct(l=>{KE.nextTick(o,l)})}catch(l){KE.nextTick(o,l)}}function zSr(n){n.emit(PFe)}function OVt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function xln(n){n.emit("close")}function KSr(n,r){n.emit("error",r),KE.nextTick(xln,n)}function qSr(n,r){!n||jSr(n)||(!r&&!FSr(n)&&(r=new DSr),BSr(n)?(n.socket=null,n.destroy(r)):OVt(n)?n.abort():OVt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?KE.nextTick(KSr,n,r):KE.nextTick(xln,n),n.destroyed||(n[LSr]=!0))}var Cj={construct:GSr,destroyer:qSr,destroy:WSr,undestroy:USr,errorOrDestroy:NFe};const{ArrayIsArray:XSr,ObjectSetPrototypeOf:Cln}=Wf,{EventEmitter:uge}=Ns;function fge(n){uge.call(this,n)}Cln(fge.prototype,uge.prototype);Cln(fge,uge);fge.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),uge.listenerCount(this,"error")===0&&this.emit("error",E)}MFe(o,"error",v),MFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function MFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):XSr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var gGe={Stream:fge,prependListener:MFe},Aln={exports:{}};(function(n){const{SymbolDispose:r}=Wf,{AbortError:o,codes:l}=O0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=$x,w=UT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||h1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Aln);var dge=Aln.exports;const{StringPrototypeSlice:NVt,SymbolIterator:JSr,TypedArrayPrototypeSet:Due,Uint8Array:YSr}=Wf,{Buffer:XMe}=Kr,{inspect:QSr}=h1;var ZSr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return XMe.alloc(0);const o=XMe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Due(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=NVt(d,0,r),this.head=l,l.data=NVt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=XMe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Due(o,h,l-r),r-=h.length;else{r===h.length?(Due(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Due(o,new YSr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return QSr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:e2r,NumberIsInteger:t2r}=Wf,{validateInteger:n2r}=IJ,{ERR_INVALID_ARG_VALUE:r2r}=O0.codes;let Tln=16*1024,$ln=16;function i2r(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Iln(n){return n?$ln:Tln}function o2r(n,r){n2r(r,"value",0),n?$ln=r:Tln=r}function s2r(n,r,o,l){const u=i2r(r,l,o);if(u!=null){if(!t2r(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new r2r(d,u)}return e2r(u)}return Iln(n.objectMode)}var hge={getHighWaterMark:s2r,getDefaultHighWaterMark:Iln,setDefaultHighWaterMark:o2r};const MVt=ui,{PromisePrototypeThen:l2r,SymbolAsyncIterator:DVt,SymbolIterator:LVt}=Wf,{Buffer:a2r}=Kr,{ERR_INVALID_ARG_TYPE:c2r,ERR_STREAM_NULL_VALUES:u2r}=O0.codes;function f2r(n,r,o){let l;if(typeof r=="string"||r instanceof a2r)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[DVt])u=!0,l=r[DVt]();else if(r&&r[LVt])u=!1,l=r[LVt]();else throw new c2r("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){l2r(w(y),()=>MVt.nextTick(E,y),A=>MVt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new u2r;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Pln=f2r,JMe,jVt;function pge(){if(jVt)return JMe;jVt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Wf;JMe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=gGe,{Buffer:L}=Kr,{addAbortSignal:H}=dge,G=UT;let j=h1.debuglog("stream",S=>{j=S});const Q=ZSr,te=Cj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=hge,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=O0,{validateObject:ye}=IJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Pln;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof cx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof cx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},JMe}var YMe,FVt;function wGe(){if(FVt)return YMe;FVt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Wf;YMe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=gGe.Stream,{Buffer:C}=Kr,R=Cj,{addAbortSignal:O}=dge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=hge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=O0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof cx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof cx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return QMe}var ZMe,WVt;function cx(){if(WVt)return ZMe;WVt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Wf;ZMe=h;const u=pge(),d=wGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function g2r(){this._final!==DFe&&DFe.call(this)}ux.prototype._final=DFe;ux.prototype._transform=function(n,r,o){throw new p2r("_transform()")};ux.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=phe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,S2r.destroyer(n,d||new R2r("pipe")))},cleanup:u}}function O2r(n){return A2r(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function s9e(n){if($8(n))return n;if(rde(n))return N2r(n);throw new LFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*N2r(n){i9e||(i9e=pge()),yield*i9e.prototype[y2r].call(n)}async function Lue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new m2r((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=phe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?E2r(u,y):y)}finally{v(),r.off("drain",h)}}async function l9e(n,r,o,{end:l}){TD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function M2r(...n){return Lln(n,_2r(O2r(n)))}function Lln(n,r,o){if(n.length===1&&w2r(n[0])&&(n=n[0]),n.length<2)throw new k2r("streams");const l=new P2r,u=l.signal,d=o==null?void 0:o.signal,h=[];T2r(d,"options.signal");function w(){O(new C2r)}o9e=o9e||h1.addAbortListener;let v;d&&(v=o9e(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[v2r](),l.abort(),j&&(y||h.forEach(te=>te()),DK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(UVt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=GVt(j,Q,te);A.push(le),t9e(j)&&Le&&h.push(xe)}j.on("error",Ee),t9e(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!$8(M))throw new e9e("Iterable, AsyncIterable or Stream","source",M)}else $8(j)||rde(j)||TD(j)?M=j:M=HVt.from(j);else if(typeof j=="function"){if(TD(M)){var L;M=s9e((L=M)===null||L===void 0?void 0:L.readable)}else M=s9e(M);if(M=j(M,{signal:u}),Q){if(!$8(M,!0))throw new e9e("AsyncIterable",`transform[${G-1}]`,M)}else{var H;r9e||(r9e=Dln);const Ee=new r9e({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),DK.nextTick(R)},ae=>{Ee.destroy(ae),DK.nextTick(R,ae)});else if($8(M,!0))C++,Lue(M,Ee,R,{end:pe});else if(n9e(M)||TD(M)){const ae=M.readable||M;C++,Lue(ae,Ee,R,{end:pe})}else throw new e9e("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=GVt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(UVt(j)){if(rde(M)){C+=2;const Ee=D2r(M,j,R,{end:pe});t9e(j)&&Le&&h.push(Ee)}else if(TD(M)||n9e(M)){const Ee=M.readable||M;C++,Lue(Ee,j,R,{end:pe})}else if($8(M))C++,Lue(M,j,R,{end:pe});else throw new LFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if($2r(j)){if(rde(M))C++,l9e(s9e(M),j,R,{end:pe});else if(n9e(M)||$8(M))C++,l9e(M,j,R,{end:pe});else if(TD(M))C++,l9e(M.readable,j,R,{end:pe});else throw new LFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=HVt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&DK.nextTick(w),M}function D2r(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new x2r)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};I2r(n)?DK.nextTick(d):n.once("end",d)}else o();return phe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),phe(r,{readable:!1,writable:!0},o)}var vGe={pipelineImpl:Lln,pipeline:M2r};const{pipeline:L2r}=vGe,jue=cx(),{destroyer:j2r}=Cj,{isNodeStream:Fue,isReadable:VVt,isWritable:zVt,isWebStream:a9e,isTransformStream:u8,isWritableStream:KVt,isReadableStream:qVt}=$x,{AbortError:F2r,codes:{ERR_INVALID_ARG_VALUE:XVt,ERR_MISSING_ARGS:B2r}}=O0,W2r=UT;var jln=function(...r){if(r.length===0)throw new B2r("streams");if(r.length===1)return jue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=jue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=jue.from(r[R])}for(let R=0;R0&&!(zVt(r[R])||KVt(r[R])||u8(r[R])))throw new XVt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=L2r(r,v),A=!!(zVt(y)||KVt(y)||u8(y)),C=!!(VVt(E)||qVt(E)||u8(E));if(w=new jue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Fue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(a9e(y)){const M=(u8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=u8(E)?E.readable:E;W2r(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Fue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(a9e(E)){const O=(u8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new F2r),d=null,l=null,u=null,h===null?O(R):(h=O,Fue(E)&&j2r(E,R))},w};const H2r=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:U2r,ERR_INVALID_ARG_TYPE:PJ,ERR_MISSING_ARGS:G2r,ERR_OUT_OF_RANGE:V2r},AbortError:uk}=O0,{validateAbortSignal:hO,validateInteger:JVt,validateObject:pO}=IJ,z2r=Wf.Symbol("kWeak"),K2r=Wf.Symbol("kResistStopPropagation"),{finished:q2r}=UT,X2r=jln,{addAbortSignalNoValidate:J2r}=dge,{isWritable:Y2r,isNodeStream:Q2r}=$x,{deprecate:Z2r}=h1,{ArrayPrototypePush:eEr,Boolean:tEr,MathFloor:YVt,Number:nEr,NumberIsNaN:rEr,Promise:QVt,PromiseReject:ZVt,PromiseResolve:iEr,PromisePrototypeThen:ezt,Symbol:Fln}=Wf,bhe=Fln("kEmpty"),tzt=Fln("kEof");function oEr(n,r){if(r!=null&&pO(r,"options"),(r==null?void 0:r.signal)!=null&&hO(r.signal,"options.signal"),Q2r(n)&&!Y2r(n))throw new U2r("stream",n,"must be writable");const o=X2r(this,n);return r!=null&&r.signal&&J2r(r.signal,o),o}function bge(n,r){if(typeof n!="function")throw new PJ("fn",["Function","AsyncFunction"],n);r!=null&&pO(r,"options"),(r==null?void 0:r.signal)!=null&&hO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=YVt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=YVt(r.highWaterMark)),JVt(o,"options.concurrency",1),JVt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=h1.AbortSignalAny([r==null?void 0:r.signal].filter(tEr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new QVt(G=>{E=G})}w.push(tzt)}catch(H){const G=ZVt(H);ezt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===tzt)return;if(d.aborted)throw new uk;H!==bhe&&(yield H),w.shift(),M()}await new QVt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function sEr(n=void 0){return n!=null&&pO(n,"options"),(n==null?void 0:n.signal)!=null&&hO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new uk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function Bln(n,r=void 0){for await(const o of _Ge.call(this,n,r))return!0;return!1}async function lEr(n,r=void 0){if(typeof n!="function")throw new PJ("fn",["Function","AsyncFunction"],n);return!await Bln.call(this,async(...o)=>!await n(...o),r)}async function aEr(n,r){for await(const o of _Ge.call(this,n,r))return o}async function cEr(n,r){if(typeof n!="function")throw new PJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),bhe}for await(const l of bge.call(this,o,r));}function _Ge(n,r){if(typeof n!="function")throw new PJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:bhe}return bge.call(this,o,r)}let uEr=class extends G2r{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function fEr(n,r,o){var l;if(typeof n!="function")throw new PJ("reducer",["Function","AsyncFunction"],n);o!=null&&pO(o,"options"),(o==null?void 0:o.signal)!=null&&hO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new uk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await q2r(this.destroy(y)),y}const d=new H2r,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[z2r]:this,[K2r]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new uk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new uEr}finally{d.abort()}return r}async function dEr(n){n!=null&&pO(n,"options"),(n==null?void 0:n.signal)!=null&&hO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new uk(void 0,{cause:n.signal.reason});eEr(r,l)}return r}function hEr(n,r){const o=bge.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Wln(n){if(n=nEr(n),rEr(n))return 0;if(n<0)throw new V2r("number",">= 0",n);return n}function pEr(n,r=void 0){return r!=null&&pO(r,"options"),(r==null?void 0:r.signal)!=null&&hO(r.signal,"options.signal"),n=Wln(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new uk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new uk;n--<=0&&(yield d)}}).call(this)}function bEr(n,r=void 0){return r!=null&&pO(r,"options"),(r==null?void 0:r.signal)!=null&&hO(r.signal,"options.signal"),n=Wln(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new uk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new uk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}fGe.streamReturningOperators={asIndexedPairs:Z2r(sEr,"readable.asIndexedPairs will be removed in a future version."),drop:pEr,filter:_Ge,flatMap:hEr,map:bge,take:bEr,compose:oEr};fGe.promiseReturningOperators={every:lEr,forEach:cEr,reduce:fEr,toArray:dEr,some:Bln,find:aEr};var c9e,nzt;function Hln(){if(nzt)return c9e;nzt=1;const{ArrayPrototypePop:n,Promise:r}=Wf,{isIterable:o,isNodeStream:l,isWebStream:u}=$x,{pipelineImpl:d}=vGe,{finished:h}=UT;Uln();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return c9e={finished:h,pipeline:w},c9e}var rzt;function Uln(){if(rzt)return zMe.exports;rzt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Wf,{promisify:{custom:u}}=h1,{streamReturningOperators:d,promiseReturningOperators:h}=fGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=O0,v=jln,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=hge,{pipeline:A}=vGe,{destroyer:C}=Cj,R=UT,O=Hln(),M=$x,L=zMe.exports=gGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=pge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=wGe(),L.Duplex=cx(),L.Transform=Nln,L.PassThrough=Dln,L.pipeline=A;const{addAbortSignal:H}=dge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},zMe.exports}(function(n){const r=Uln(),o=Hln(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(a_r);var gEr={exports:{}},u9e={exports:{}},Hf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},Gln={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Hf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Gln);var p1=Gln.exports,SGe={};const{format:wEr,inspect:ghe,AggregateError:mEr}=p1,yEr=globalThis.AggregateError||mEr,vEr=Symbol("kIsNodeError"),_Er=["string","function","number","object","Function","Object","boolean","bigint","symbol"],SEr=/^([A-Z][a-z0-9]*)+$/,EEr="__node_internal_",gge={};function uP(n,r){if(!n)throw new gge.ERR_INTERNAL_ASSERTION(r)}function izt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function kEr(n,r,o){if(typeof r=="function")return uP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return uP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:wEr(r,...o)}function tb(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(kEr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[vEr]=!0,gge[n]=l}function ozt(n){const r=EEr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function REr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new yEr([r,n],r.message);return o.code=r.code,o}return n||r}let xEr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new gge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};tb("ERR_ASSERTION","%s",Error);tb("ERR_INVALID_ARG_TYPE",(n,r,o)=>{uP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)uP(typeof v=="string","All expected entries have to be of type string"),_Er.includes(v)?u.push(v.toLowerCase()):SEr.test(v)?d.push(v):(uP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=ghe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=ghe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);tb("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=ghe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);tb("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);tb("ERR_MISSING_ARGS",(...n)=>{uP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);tb("ERR_OUT_OF_RANGE",(n,r,o)=>{uP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=izt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=izt(l)),l+="n"):l=ghe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);tb("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);tb("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);tb("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);tb("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);tb("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);tb("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);tb("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);tb("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);tb("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);tb("ERR_STREAM_WRITE_AFTER_END","write after end",Error);tb("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var N0={AbortError:xEr,aggregateTwoErrors:ozt(REr),hideStackFrames:ozt,codes:gge};const{ArrayIsArray:EGe,ArrayPrototypeIncludes:Vln,ArrayPrototypeJoin:zln,ArrayPrototypeMap:CEr,NumberIsInteger:kGe,NumberIsNaN:AEr,NumberMAX_SAFE_INTEGER:TEr,NumberMIN_SAFE_INTEGER:$Er,NumberParseInt:IEr,ObjectPrototypeHasOwnProperty:PEr,RegExpPrototypeExec:Kln,String:OEr,StringPrototypeToUpperCase:NEr,StringPrototypeTrim:MEr}=Hf,{hideStackFrames:yv,codes:{ERR_SOCKET_BAD_PORT:DEr,ERR_INVALID_ARG_TYPE:Qb,ERR_INVALID_ARG_VALUE:Aj,ERR_OUT_OF_RANGE:PP,ERR_UNKNOWN_SIGNAL:szt}}=N0,{normalizeEncoding:LEr}=p1,{isAsyncFunction:jEr,isArrayBufferView:FEr}=p1.types,lzt={};function BEr(n){return n===(n|0)}function WEr(n){return n===n>>>0}const HEr=/^[0-7]+$/,UEr="must be a 32-bit unsigned integer or an octal string";function GEr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(Kln(HEr,n)===null)throw new Aj(r,n,UEr);n=IEr(n,8)}return qln(n,r),n}const VEr=yv((n,r,o=$Er,l=TEr)=>{if(typeof n!="number")throw new Qb(r,"number",n);if(!kGe(n))throw new PP(r,"an integer",n);if(nl)throw new PP(r,`>= ${o} && <= ${l}`,n)}),zEr=yv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Qb(r,"number",n);if(!kGe(n))throw new PP(r,"an integer",n);if(nl)throw new PP(r,`>= ${o} && <= ${l}`,n)}),qln=yv((n,r,o=!1)=>{if(typeof n!="number")throw new Qb(r,"number",n);if(!kGe(n))throw new PP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new PP(r,`>= ${l} && <= ${u}`,n)});function RGe(n,r){if(typeof n!="string")throw new Qb(r,"string",n)}function KEr(n,r,o=void 0,l){if(typeof n!="number")throw new Qb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&AEr(n))throw new PP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const qEr=yv((n,r,o)=>{if(!Vln(o,n)){const u="must be one of: "+zln(CEr(o,d=>typeof d=="string"?`'${d}'`:OEr(d)),", ");throw new Aj(r,n,u)}});function Xln(n,r){if(typeof n!="boolean")throw new Qb(r,"boolean",n)}function f9e(n,r,o){return n==null||!PEr(n,r)?o:n[r]}const XEr=yv((n,r,o=null)=>{const l=f9e(o,"allowArray",!1),u=f9e(o,"allowFunction",!1);if(!f9e(o,"nullable",!1)&&n===null||!l&&EGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Qb(r,"Object",n)}),JEr=yv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Qb(r,"a dictionary",n)}),wge=yv((n,r,o=0)=>{if(!EGe(n))throw new Qb(r,"Array",n);if(n.length{if(!FEr(n))throw new Qb(r,["Buffer","TypedArray","DataView"],n)});function nkr(n,r){const o=LEr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Aj("encoding",r,`is invalid for data of length ${l}`)}function rkr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&MEr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new DEr(r,n,o);return n|0}const Jln=yv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Qb(r,"AbortSignal",n)}),ikr=yv((n,r)=>{if(typeof n!="function")throw new Qb(r,"Function",n)}),okr=yv((n,r)=>{if(typeof n!="function"||jEr(n))throw new Qb(r,"Function",n)}),skr=yv((n,r)=>{if(n!==void 0)throw new Qb(r,"undefined",n)});function lkr(n,r,o){if(!Vln(o,n))throw new Qb(r,`('${zln(o,"|")}')`,n)}const akr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function azt(n,r){if(typeof n>"u"||!Kln(akr,n))throw new Aj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function ckr(n){if(typeof n=="string")return azt(n,"hints"),n;if(EGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var OJ={isInt32:BEr,isUint32:WEr,parseFileMode:GEr,validateArray:wge,validateStringArray:YEr,validateBooleanArray:QEr,validateAbortSignalArray:ZEr,validateBoolean:Xln,validateBuffer:tkr,validateDictionary:JEr,validateEncoding:nkr,validateFunction:ikr,validateInt32:zEr,validateInteger:VEr,validateNumber:KEr,validateObject:XEr,validateOneOf:qEr,validatePlainFunction:okr,validatePort:rkr,validateSignalName:ekr,validateString:RGe,validateUint32:qln,validateUndefined:skr,validateUnion:lkr,validateAbortSignal:Jln,validateLinkHeaderValue:ckr},xGe={exports:{}};const{SymbolAsyncIterator:czt,SymbolIterator:uzt,SymbolFor:bO}=Hf,Yln=bO("nodejs.stream.destroyed"),Qln=bO("nodejs.stream.errored"),jFe=bO("nodejs.stream.readable"),FFe=bO("nodejs.stream.writable"),Zln=bO("nodejs.stream.disturbed"),ukr=bO("nodejs.webstream.isClosedPromise"),fkr=bO("nodejs.webstream.controllerErrorFunction");function mge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function yge(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function dkr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function Ek(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function ean(n){return!!(n&&!Ek(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function tan(n){return!!(n&&!Ek(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function nan(n){return!!(n&&!Ek(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function hkr(n){return ean(n)||tan(n)||nan(n)}function pkr(n,r){return n==null?!1:r===!0?typeof n[czt]=="function":r===!1?typeof n[uzt]=="function":typeof n[czt]=="function"||typeof n[uzt]=="function"}function vge(n){if(!Ek(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[Yln]||l!=null&&l.destroyed)}function ran(n){if(!yge(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function bkr(n,r){if(!yge(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function gkr(n){if(!mge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function ian(n,r){if(!mge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function oan(n){return n&&n[jFe]!=null?n[jFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:vge(n)?!1:mge(n)&&n.readable&&!ian(n)}function san(n){return n&&n[FFe]!=null?n[FFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:vge(n)?!1:yge(n)&&n.writable&&!ran(n)}function wkr(n,r){return Ek(n)?vge(n)?!0:!((r==null?void 0:r.readable)!==!1&&oan(n)||(r==null?void 0:r.writable)!==!1&&san(n)):null}function mkr(n){var r,o;return Ek(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function ykr(n){var r,o;return Ek(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function vkr(n){if(!Ek(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&lan(n)?n._closed:null}function lan(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function aan(n){return typeof n._sent100=="boolean"&&lan(n)}function _kr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function Skr(n){if(!Ek(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&aan(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function Ekr(n){var r;return!!(n&&((r=n[Zln])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function kkr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[Qln])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Ix={isDestroyed:vge,kIsDestroyed:Yln,isDisturbed:Ekr,kIsDisturbed:Zln,isErrored:kkr,kIsErrored:Qln,isReadable:oan,kIsReadable:jFe,kIsClosedPromise:ukr,kControllerErrorFunction:fkr,kIsWritable:FFe,isClosed:vkr,isDuplexNodeStream:dkr,isFinished:wkr,isIterable:pkr,isReadableNodeStream:mge,isReadableStream:ean,isReadableEnded:gkr,isReadableFinished:ian,isReadableErrored:ykr,isNodeStream:Ek,isWebStream:hkr,isWritable:san,isWritableNodeStream:yge,isWritableStream:tan,isWritableEnded:ran,isWritableFinished:bkr,isWritableErrored:mkr,isServerRequest:_kr,isServerResponse:aan,willEmitClose:Skr,isTransformStream:nan};const Q4=ui,{AbortError:can,codes:Rkr}=N0,{ERR_INVALID_ARG_TYPE:xkr,ERR_STREAM_PREMATURE_CLOSE:fzt}=Rkr,{kEmptyObject:BFe,once:WFe}=p1,{validateAbortSignal:Ckr,validateFunction:Akr,validateObject:Tkr,validateBoolean:$kr}=OJ,{Promise:Ikr,PromisePrototypeThen:Pkr,SymbolDispose:uan}=Hf,{isClosed:Okr,isReadable:dzt,isReadableNodeStream:d9e,isReadableStream:Nkr,isReadableFinished:hzt,isReadableErrored:pzt,isWritable:bzt,isWritableNodeStream:gzt,isWritableStream:Mkr,isWritableFinished:wzt,isWritableErrored:mzt,isNodeStream:Dkr,willEmitClose:Lkr,kIsClosedPromise:jkr}=Ix;let dL;function Fkr(n){return n.setHeader&&typeof n.abort=="function"}const HFe=()=>{};function fan(n,r,o){var l,u;if(arguments.length===2?(o=r,r=BFe):r==null?r=BFe:Tkr(r,"options"),Akr(o,"callback"),Ckr(r.signal,"options.signal"),o=WFe(o),Nkr(n)||Mkr(n))return Bkr(n,r,o);if(!Dkr(n))throw new xkr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:d9e(n),h=(u=r.writable)!==null&&u!==void 0?u:gzt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=Lkr(n)&&d9e(n)===d&&gzt(n)===h,A=wzt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=hzt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=Okr(n);const H=()=>{L=!0;const te=mzt(n)||pzt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&d9e(n,!0)&&!hzt(n,!1))return o.call(n,new fzt);if(h&&!A&&!wzt(n,!1))return o.call(n,new fzt);o.call(n)},G=()=>{L=!0;const te=mzt(n)||pzt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};Fkr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?Q4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||Q4.nextTick(G):(!d&&(!E||dzt(n))&&(A||bzt(n)===!1)||!h&&(!E||bzt(n))&&(R||dzt(n)===!1)||v&&n.req&&n.aborted)&&Q4.nextTick(G);const Q=()=>{o=HFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new can(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)Q4.nextTick(te);else{dL=dL||p1.addAbortListener;const pe=dL(r.signal,te),Le=o;o=WFe((...Ee)=>{pe[uan](),Le.apply(n,Ee)})}}return Q}function Bkr(n,r,o){let l=!1,u=HFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new can(void 0,{cause:r.signal.reason}))},r.signal.aborted)Q4.nextTick(u);else{dL=dL||p1.addAbortListener;const h=dL(r.signal,u),w=o;o=WFe((...v)=>{h[uan](),w.apply(n,v)})}const d=(...h)=>{l||Q4.nextTick(()=>o.apply(n,h))};return Pkr(n[jkr].promise,d,d),HFe}function Wkr(n,r){var o;let l=!1;return r===null&&(r=BFe),(o=r)!==null&&o!==void 0&&o.cleanup&&($kr(r.cleanup,"cleanup"),l=r.cleanup),new Ikr((u,d)=>{const h=fan(n,r,w=>{l&&h(),w?d(w):u()})})}xGe.exports=fan;xGe.exports.finished=Wkr;var GT=xGe.exports;const qE=ui,{aggregateTwoErrors:Hkr,codes:{ERR_MULTIPLE_CALLBACK:Ukr},AbortError:Gkr}=N0,{Symbol:dan}=Hf,{kIsDestroyed:Vkr,isDestroyed:zkr,isFinished:Kkr,isServerRequest:qkr}=Ix,han=dan("kDestroy"),UFe=dan("kConstruct");function pan(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function Xkr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(pan(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?yzt(this,n,r):this.once(han,function(d){yzt(this,Hkr(d,n),r)}),this)}function yzt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;pan(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?qE.nextTick(Jkr,n,d):qE.nextTick(ban,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function Jkr(n,r){GFe(n,r),ban(n)}function ban(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function GFe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function Ykr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function VFe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?qE.nextTick(GFe,n,r):GFe(n,r))}function Qkr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(UFe,r),!(n.listenerCount(UFe)>1)&&qE.nextTick(Zkr,n)}function Zkr(n){let r=!1;function o(l){if(r){VFe(n,l??new Ukr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(han,l):l?VFe(n,l,!0):qE.nextTick(e3r,n)}try{n._construct(l=>{qE.nextTick(o,l)})}catch(l){qE.nextTick(o,l)}}function e3r(n){n.emit(UFe)}function vzt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function gan(n){n.emit("close")}function t3r(n,r){n.emit("error",r),qE.nextTick(gan,n)}function n3r(n,r){!n||zkr(n)||(!r&&!Kkr(n)&&(r=new Gkr),qkr(n)?(n.socket=null,n.destroy(r)):vzt(n)?n.abort():vzt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?qE.nextTick(t3r,n,r):qE.nextTick(gan,n),n.destroyed||(n[Vkr]=!0))}var Tj={construct:Qkr,destroyer:n3r,destroy:Xkr,undestroy:Ykr,errorOrDestroy:VFe};const{ArrayIsArray:r3r,ObjectSetPrototypeOf:wan}=Hf,{EventEmitter:_ge}=Ns;function Sge(n){_ge.call(this,n)}wan(Sge.prototype,_ge.prototype);wan(Sge,_ge);Sge.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),_ge.listenerCount(this,"error")===0&&this.emit("error",E)}zFe(o,"error",v),zFe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function zFe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):r3r(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var CGe={Stream:Sge,prependListener:zFe},man={exports:{}};(function(n){const{SymbolDispose:r}=Hf,{AbortError:o,codes:l}=N0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Ix,w=GT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||p1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(man);var Ege=man.exports;const{StringPrototypeSlice:_zt,SymbolIterator:i3r,TypedArrayPrototypeSet:Bue,Uint8Array:o3r}=Hf,{Buffer:h9e}=Kr,{inspect:s3r}=p1;var l3r=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return h9e.alloc(0);const o=h9e.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Bue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=_zt(d,0,r),this.head=l,l.data=_zt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=h9e.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Bue(o,h,l-r),r-=h.length;else{r===h.length?(Bue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Bue(o,new o3r(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return s3r(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:a3r,NumberIsInteger:c3r}=Hf,{validateInteger:u3r}=OJ,{ERR_INVALID_ARG_VALUE:f3r}=N0.codes;let yan=16*1024,van=16;function d3r(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function _an(n){return n?van:yan}function h3r(n,r){u3r(r,"value",0),n?van=r:yan=r}function p3r(n,r,o,l){const u=d3r(r,l,o);if(u!=null){if(!c3r(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new f3r(d,u)}return a3r(u)}return _an(n.objectMode)}var kge={getHighWaterMark:p3r,getDefaultHighWaterMark:_an,setDefaultHighWaterMark:h3r};const Szt=ui,{PromisePrototypeThen:b3r,SymbolAsyncIterator:Ezt,SymbolIterator:kzt}=Hf,{Buffer:g3r}=Kr,{ERR_INVALID_ARG_TYPE:w3r,ERR_STREAM_NULL_VALUES:m3r}=N0.codes;function y3r(n,r,o){let l;if(typeof r=="string"||r instanceof g3r)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[Ezt])u=!0,l=r[Ezt]();else if(r&&r[kzt])u=!1,l=r[kzt]();else throw new w3r("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){b3r(w(y),()=>Szt.nextTick(E,y),A=>Szt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new m3r;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var San=y3r,p9e,Rzt;function Rge(){if(Rzt)return p9e;Rzt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Hf;p9e=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=CGe,{Buffer:L}=Kr,{addAbortSignal:H}=Ege,G=GT;let j=p1.debuglog("stream",S=>{j=S});const Q=l3r,te=Tj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=kge,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=N0,{validateObject:ye}=OJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=San;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof fx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof fx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},p9e}var b9e,xzt;function AGe(){if(xzt)return b9e;xzt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Hf;b9e=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=CGe.Stream,{Buffer:C}=Kr,R=Tj,{addAbortSignal:O}=Ege,{getHighWaterMark:M,getDefaultHighWaterMark:L}=kge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=N0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof fx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof fx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return g9e}var w9e,Azt;function fx(){if(Azt)return w9e;Azt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Hf;w9e=h;const u=Rge(),d=AGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function k3r(){this._final!==KFe&&KFe.call(this)}dx.prototype._final=KFe;dx.prototype._transform=function(n,r,o){throw new S3r("_transform()")};dx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=whe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,$3r.destroyer(n,d||new O3r("pipe")))},cleanup:u}}function W3r(n){return D3r(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function k9e(n){if(I8(n))return n;if(ide(n))return H3r(n);throw new qFe("val",["Readable","Iterable","AsyncIterable"],n)}async function*H3r(n){S9e||(S9e=Rge()),yield*S9e.prototype[C3r].call(n)}async function Wue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new x3r((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=whe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?I3r(u,y):y)}finally{v(),r.off("drain",h)}}async function R9e(n,r,o,{end:l}){$D(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function U3r(...n){return Can(n,T3r(W3r(n)))}function Can(n,r,o){if(n.length===1&&R3r(n[0])&&(n=n[0]),n.length<2)throw new P3r("streams");const l=new B3r,u=l.signal,d=o==null?void 0:o.signal,h=[];L3r(d,"options.signal");function w(){O(new M3r)}E9e=E9e||p1.addAbortListener;let v;d&&(v=E9e(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[A3r](),l.abort(),j&&(y||h.forEach(te=>te()),LK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if($zt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=Izt(j,Q,te);A.push(le),y9e(j)&&Le&&h.push(xe)}j.on("error",Ee),y9e(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!I8(M))throw new m9e("Iterable, AsyncIterable or Stream","source",M)}else I8(j)||ide(j)||$D(j)?M=j:M=Tzt.from(j);else if(typeof j=="function"){if($D(M)){var L;M=k9e((L=M)===null||L===void 0?void 0:L.readable)}else M=k9e(M);if(M=j(M,{signal:u}),Q){if(!I8(M,!0))throw new m9e("AsyncIterable",`transform[${G-1}]`,M)}else{var H;_9e||(_9e=xan);const Ee=new _9e({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),LK.nextTick(R)},ae=>{Ee.destroy(ae),LK.nextTick(R,ae)});else if(I8(M,!0))C++,Wue(M,Ee,R,{end:pe});else if(v9e(M)||$D(M)){const ae=M.readable||M;C++,Wue(ae,Ee,R,{end:pe})}else throw new m9e("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=Izt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if($zt(j)){if(ide(M)){C+=2;const Ee=G3r(M,j,R,{end:pe});y9e(j)&&Le&&h.push(Ee)}else if($D(M)||v9e(M)){const Ee=M.readable||M;C++,Wue(Ee,j,R,{end:pe})}else if(I8(M))C++,Wue(M,j,R,{end:pe});else throw new qFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(j3r(j)){if(ide(M))C++,R9e(k9e(M),j,R,{end:pe});else if(v9e(M)||I8(M))C++,R9e(M,j,R,{end:pe});else if($D(M))C++,R9e(M.readable,j,R,{end:pe});else throw new qFe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=Tzt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&LK.nextTick(w),M}function G3r(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new N3r)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};F3r(n)?LK.nextTick(d):n.once("end",d)}else o();return whe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),whe(r,{readable:!1,writable:!0},o)}var IGe={pipelineImpl:Can,pipeline:U3r};const{pipeline:V3r}=IGe,Hue=fx(),{destroyer:z3r}=Tj,{isNodeStream:Uue,isReadable:Pzt,isWritable:Ozt,isWebStream:x9e,isTransformStream:f8,isWritableStream:Nzt,isReadableStream:Mzt}=Ix,{AbortError:K3r,codes:{ERR_INVALID_ARG_VALUE:Dzt,ERR_MISSING_ARGS:q3r}}=N0,X3r=GT;var Aan=function(...r){if(r.length===0)throw new q3r("streams");if(r.length===1)return Hue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=Hue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=Hue.from(r[R])}for(let R=0;R0&&!(Ozt(r[R])||Nzt(r[R])||f8(r[R])))throw new Dzt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=V3r(r,v),A=!!(Ozt(y)||Nzt(y)||f8(y)),C=!!(Pzt(E)||Mzt(E)||f8(E));if(w=new Hue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Uue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(x9e(y)){const M=(f8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=f8(E)?E.readable:E;X3r(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Uue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(x9e(E)){const O=(f8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new K3r),d=null,l=null,u=null,h===null?O(R):(h=O,Uue(E)&&z3r(E,R))},w};const J3r=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Y3r,ERR_INVALID_ARG_TYPE:NJ,ERR_MISSING_ARGS:Q3r,ERR_OUT_OF_RANGE:Z3r},AbortError:fk}=N0,{validateAbortSignal:gO,validateInteger:Lzt,validateObject:wO}=OJ,eRr=Hf.Symbol("kWeak"),tRr=Hf.Symbol("kResistStopPropagation"),{finished:nRr}=GT,rRr=Aan,{addAbortSignalNoValidate:iRr}=Ege,{isWritable:oRr,isNodeStream:sRr}=Ix,{deprecate:lRr}=p1,{ArrayPrototypePush:aRr,Boolean:cRr,MathFloor:jzt,Number:uRr,NumberIsNaN:fRr,Promise:Fzt,PromiseReject:Bzt,PromiseResolve:dRr,PromisePrototypeThen:Wzt,Symbol:Tan}=Hf,mhe=Tan("kEmpty"),Hzt=Tan("kEof");function hRr(n,r){if(r!=null&&wO(r,"options"),(r==null?void 0:r.signal)!=null&&gO(r.signal,"options.signal"),sRr(n)&&!oRr(n))throw new Y3r("stream",n,"must be writable");const o=rRr(this,n);return r!=null&&r.signal&&iRr(r.signal,o),o}function xge(n,r){if(typeof n!="function")throw new NJ("fn",["Function","AsyncFunction"],n);r!=null&&wO(r,"options"),(r==null?void 0:r.signal)!=null&&gO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=jzt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=jzt(r.highWaterMark)),Lzt(o,"options.concurrency",1),Lzt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=p1.AbortSignalAny([r==null?void 0:r.signal].filter(cRr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new Fzt(G=>{E=G})}w.push(Hzt)}catch(H){const G=Bzt(H);Wzt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===Hzt)return;if(d.aborted)throw new fk;H!==mhe&&(yield H),w.shift(),M()}await new Fzt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function pRr(n=void 0){return n!=null&&wO(n,"options"),(n==null?void 0:n.signal)!=null&&gO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new fk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function $an(n,r=void 0){for await(const o of PGe.call(this,n,r))return!0;return!1}async function bRr(n,r=void 0){if(typeof n!="function")throw new NJ("fn",["Function","AsyncFunction"],n);return!await $an.call(this,async(...o)=>!await n(...o),r)}async function gRr(n,r){for await(const o of PGe.call(this,n,r))return o}async function wRr(n,r){if(typeof n!="function")throw new NJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),mhe}for await(const l of xge.call(this,o,r));}function PGe(n,r){if(typeof n!="function")throw new NJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:mhe}return xge.call(this,o,r)}let mRr=class extends Q3r{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function yRr(n,r,o){var l;if(typeof n!="function")throw new NJ("reducer",["Function","AsyncFunction"],n);o!=null&&wO(o,"options"),(o==null?void 0:o.signal)!=null&&gO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new fk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await nRr(this.destroy(y)),y}const d=new J3r,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[eRr]:this,[tRr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new fk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new mRr}finally{d.abort()}return r}async function vRr(n){n!=null&&wO(n,"options"),(n==null?void 0:n.signal)!=null&&gO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new fk(void 0,{cause:n.signal.reason});aRr(r,l)}return r}function _Rr(n,r){const o=xge.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Ian(n){if(n=uRr(n),fRr(n))return 0;if(n<0)throw new Z3r("number",">= 0",n);return n}function SRr(n,r=void 0){return r!=null&&wO(r,"options"),(r==null?void 0:r.signal)!=null&&gO(r.signal,"options.signal"),n=Ian(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new fk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new fk;n--<=0&&(yield d)}}).call(this)}function ERr(n,r=void 0){return r!=null&&wO(r,"options"),(r==null?void 0:r.signal)!=null&&gO(r.signal,"options.signal"),n=Ian(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new fk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new fk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}SGe.streamReturningOperators={asIndexedPairs:lRr(pRr,"readable.asIndexedPairs will be removed in a future version."),drop:SRr,filter:PGe,flatMap:_Rr,map:xge,take:ERr,compose:hRr};SGe.promiseReturningOperators={every:bRr,forEach:wRr,reduce:yRr,toArray:vRr,some:$an,find:gRr};var C9e,Uzt;function Pan(){if(Uzt)return C9e;Uzt=1;const{ArrayPrototypePop:n,Promise:r}=Hf,{isIterable:o,isNodeStream:l,isWebStream:u}=Ix,{pipelineImpl:d}=IGe,{finished:h}=GT;Oan();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return C9e={finished:h,pipeline:w},C9e}var Gzt;function Oan(){if(Gzt)return u9e.exports;Gzt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Hf,{promisify:{custom:u}}=p1,{streamReturningOperators:d,promiseReturningOperators:h}=SGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=N0,v=Aan,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=kge,{pipeline:A}=IGe,{destroyer:C}=Tj,R=GT,O=Pan(),M=Ix,L=u9e.exports=CGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Rge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=AGe(),L.Duplex=fx(),L.Transform=kan,L.PassThrough=xan,L.pipeline=A;const{addAbortSignal:H}=Ege;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},u9e.exports}(function(n){const r=Oan(),o=Pan(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(gEr);Kn("http://www.w3.org/1999/02/22-rdf-syntax-ns#");Kn("http://www.w3.org/1999/02/22-rdf-syntax-ns#");Kn("http://www.w3.org/2001/XMLSchema#");var Nan={exports:{}},A9e={exports:{}},Uf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},Man={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Uf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Man);var b1=Man.exports,OGe={};const{format:kRr,inspect:yhe,AggregateError:RRr}=b1,xRr=globalThis.AggregateError||RRr,CRr=Symbol("kIsNodeError"),ARr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],TRr=/^([A-Z][a-z0-9]*)+$/,$Rr="__node_internal_",Cge={};function fP(n,r){if(!n)throw new Cge.ERR_INTERNAL_ASSERTION(r)}function Vzt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function IRr(n,r,o){if(typeof r=="function")return fP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return fP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:kRr(r,...o)}function nb(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(IRr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[CRr]=!0,Cge[n]=l}function zzt(n){const r=$Rr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function PRr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new xRr([r,n],r.message);return o.code=r.code,o}return n||r}let ORr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Cge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};nb("ERR_ASSERTION","%s",Error);nb("ERR_INVALID_ARG_TYPE",(n,r,o)=>{fP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)fP(typeof v=="string","All expected entries have to be of type string"),ARr.includes(v)?u.push(v.toLowerCase()):TRr.test(v)?d.push(v):(fP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=yhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=yhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);nb("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=yhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);nb("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);nb("ERR_MISSING_ARGS",(...n)=>{fP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);nb("ERR_OUT_OF_RANGE",(n,r,o)=>{fP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=Vzt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=Vzt(l)),l+="n"):l=yhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);nb("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);nb("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);nb("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);nb("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);nb("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);nb("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);nb("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);nb("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);nb("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);nb("ERR_STREAM_WRITE_AFTER_END","write after end",Error);nb("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var M0={AbortError:ORr,aggregateTwoErrors:zzt(PRr),hideStackFrames:zzt,codes:Cge};const{ArrayIsArray:NGe,ArrayPrototypeIncludes:Dan,ArrayPrototypeJoin:Lan,ArrayPrototypeMap:NRr,NumberIsInteger:MGe,NumberIsNaN:MRr,NumberMAX_SAFE_INTEGER:DRr,NumberMIN_SAFE_INTEGER:LRr,NumberParseInt:jRr,ObjectPrototypeHasOwnProperty:FRr,RegExpPrototypeExec:jan,String:BRr,StringPrototypeToUpperCase:WRr,StringPrototypeTrim:HRr}=Uf,{hideStackFrames:vv,codes:{ERR_SOCKET_BAD_PORT:URr,ERR_INVALID_ARG_TYPE:Zb,ERR_INVALID_ARG_VALUE:$j,ERR_OUT_OF_RANGE:OP,ERR_UNKNOWN_SIGNAL:Kzt}}=M0,{normalizeEncoding:GRr}=b1,{isAsyncFunction:VRr,isArrayBufferView:zRr}=b1.types,qzt={};function KRr(n){return n===(n|0)}function qRr(n){return n===n>>>0}const XRr=/^[0-7]+$/,JRr="must be a 32-bit unsigned integer or an octal string";function YRr(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(jan(XRr,n)===null)throw new $j(r,n,JRr);n=jRr(n,8)}return Fan(n,r),n}const QRr=vv((n,r,o=LRr,l=DRr)=>{if(typeof n!="number")throw new Zb(r,"number",n);if(!MGe(n))throw new OP(r,"an integer",n);if(nl)throw new OP(r,`>= ${o} && <= ${l}`,n)}),ZRr=vv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new Zb(r,"number",n);if(!MGe(n))throw new OP(r,"an integer",n);if(nl)throw new OP(r,`>= ${o} && <= ${l}`,n)}),Fan=vv((n,r,o=!1)=>{if(typeof n!="number")throw new Zb(r,"number",n);if(!MGe(n))throw new OP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new OP(r,`>= ${l} && <= ${u}`,n)});function DGe(n,r){if(typeof n!="string")throw new Zb(r,"string",n)}function exr(n,r,o=void 0,l){if(typeof n!="number")throw new Zb(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&MRr(n))throw new OP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const txr=vv((n,r,o)=>{if(!Dan(o,n)){const u="must be one of: "+Lan(NRr(o,d=>typeof d=="string"?`'${d}'`:BRr(d)),", ");throw new $j(r,n,u)}});function Ban(n,r){if(typeof n!="boolean")throw new Zb(r,"boolean",n)}function T9e(n,r,o){return n==null||!FRr(n,r)?o:n[r]}const nxr=vv((n,r,o=null)=>{const l=T9e(o,"allowArray",!1),u=T9e(o,"allowFunction",!1);if(!T9e(o,"nullable",!1)&&n===null||!l&&NGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new Zb(r,"Object",n)}),rxr=vv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new Zb(r,"a dictionary",n)}),Age=vv((n,r,o=0)=>{if(!NGe(n))throw new Zb(r,"Array",n);if(n.length{if(!zRr(n))throw new Zb(r,["Buffer","TypedArray","DataView"],n)});function cxr(n,r){const o=GRr(r),l=n.length;if(o==="hex"&&l%2!==0)throw new $j("encoding",r,`is invalid for data of length ${l}`)}function uxr(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&HRr(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new URr(r,n,o);return n|0}const Wan=vv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new Zb(r,"AbortSignal",n)}),fxr=vv((n,r)=>{if(typeof n!="function")throw new Zb(r,"Function",n)}),dxr=vv((n,r)=>{if(typeof n!="function"||VRr(n))throw new Zb(r,"Function",n)}),hxr=vv((n,r)=>{if(n!==void 0)throw new Zb(r,"undefined",n)});function pxr(n,r,o){if(!Dan(o,n))throw new Zb(r,`('${Lan(o,"|")}')`,n)}const bxr=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Xzt(n,r){if(typeof n>"u"||!jan(bxr,n))throw new $j(r,n,'must be an array or string of format "; rel=preload; as=style"')}function gxr(n){if(typeof n=="string")return Xzt(n,"hints"),n;if(NGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var MJ={isInt32:KRr,isUint32:qRr,parseFileMode:YRr,validateArray:Age,validateStringArray:ixr,validateBooleanArray:oxr,validateAbortSignalArray:sxr,validateBoolean:Ban,validateBuffer:axr,validateDictionary:rxr,validateEncoding:cxr,validateFunction:fxr,validateInt32:ZRr,validateInteger:QRr,validateNumber:exr,validateObject:nxr,validateOneOf:txr,validatePlainFunction:dxr,validatePort:uxr,validateSignalName:lxr,validateString:DGe,validateUint32:Fan,validateUndefined:hxr,validateUnion:pxr,validateAbortSignal:Wan,validateLinkHeaderValue:gxr},LGe={exports:{}};const{SymbolAsyncIterator:Jzt,SymbolIterator:Yzt,SymbolFor:mO}=Uf,Han=mO("nodejs.stream.destroyed"),Uan=mO("nodejs.stream.errored"),XFe=mO("nodejs.stream.readable"),JFe=mO("nodejs.stream.writable"),Gan=mO("nodejs.stream.disturbed"),wxr=mO("nodejs.webstream.isClosedPromise"),mxr=mO("nodejs.webstream.controllerErrorFunction");function Tge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function $ge(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function yxr(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function kk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function Van(n){return!!(n&&!kk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function zan(n){return!!(n&&!kk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function Kan(n){return!!(n&&!kk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function vxr(n){return Van(n)||zan(n)||Kan(n)}function _xr(n,r){return n==null?!1:r===!0?typeof n[Jzt]=="function":r===!1?typeof n[Yzt]=="function":typeof n[Jzt]=="function"||typeof n[Yzt]=="function"}function Ige(n){if(!kk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[Han]||l!=null&&l.destroyed)}function qan(n){if(!$ge(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Sxr(n,r){if(!$ge(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function Exr(n){if(!Tge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function Xan(n,r){if(!Tge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function Jan(n){return n&&n[XFe]!=null?n[XFe]:typeof(n==null?void 0:n.readable)!="boolean"?null:Ige(n)?!1:Tge(n)&&n.readable&&!Xan(n)}function Yan(n){return n&&n[JFe]!=null?n[JFe]:typeof(n==null?void 0:n.writable)!="boolean"?null:Ige(n)?!1:$ge(n)&&n.writable&&!qan(n)}function kxr(n,r){return kk(n)?Ige(n)?!0:!((r==null?void 0:r.readable)!==!1&&Jan(n)||(r==null?void 0:r.writable)!==!1&&Yan(n)):null}function Rxr(n){var r,o;return kk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function xxr(n){var r,o;return kk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function Cxr(n){if(!kk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&Qan(n)?n._closed:null}function Qan(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function Zan(n){return typeof n._sent100=="boolean"&&Qan(n)}function Axr(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function Txr(n){if(!kk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&Zan(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function $xr(n){var r;return!!(n&&((r=n[Gan])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function Ixr(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[Uan])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Px={isDestroyed:Ige,kIsDestroyed:Han,isDisturbed:$xr,kIsDisturbed:Gan,isErrored:Ixr,kIsErrored:Uan,isReadable:Jan,kIsReadable:XFe,kIsClosedPromise:wxr,kControllerErrorFunction:mxr,kIsWritable:JFe,isClosed:Cxr,isDuplexNodeStream:yxr,isFinished:kxr,isIterable:_xr,isReadableNodeStream:Tge,isReadableStream:Van,isReadableEnded:Exr,isReadableFinished:Xan,isReadableErrored:xxr,isNodeStream:kk,isWebStream:vxr,isWritable:Yan,isWritableNodeStream:$ge,isWritableStream:zan,isWritableEnded:qan,isWritableFinished:Sxr,isWritableErrored:Rxr,isServerRequest:Axr,isServerResponse:Zan,willEmitClose:Txr,isTransformStream:Kan};const Z4=ui,{AbortError:ecn,codes:Pxr}=M0,{ERR_INVALID_ARG_TYPE:Oxr,ERR_STREAM_PREMATURE_CLOSE:Qzt}=Pxr,{kEmptyObject:YFe,once:QFe}=b1,{validateAbortSignal:Nxr,validateFunction:Mxr,validateObject:Dxr,validateBoolean:Lxr}=MJ,{Promise:jxr,PromisePrototypeThen:Fxr,SymbolDispose:tcn}=Uf,{isClosed:Bxr,isReadable:Zzt,isReadableNodeStream:$9e,isReadableStream:Wxr,isReadableFinished:eKt,isReadableErrored:tKt,isWritable:nKt,isWritableNodeStream:rKt,isWritableStream:Hxr,isWritableFinished:iKt,isWritableErrored:oKt,isNodeStream:Uxr,willEmitClose:Gxr,kIsClosedPromise:Vxr}=Px;let hL;function zxr(n){return n.setHeader&&typeof n.abort=="function"}const ZFe=()=>{};function ncn(n,r,o){var l,u;if(arguments.length===2?(o=r,r=YFe):r==null?r=YFe:Dxr(r,"options"),Mxr(o,"callback"),Nxr(r.signal,"options.signal"),o=QFe(o),Wxr(n)||Hxr(n))return Kxr(n,r,o);if(!Uxr(n))throw new Oxr("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:$9e(n),h=(u=r.writable)!==null&&u!==void 0?u:rKt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=Gxr(n)&&$9e(n)===d&&rKt(n)===h,A=iKt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=eKt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=Bxr(n);const H=()=>{L=!0;const te=oKt(n)||tKt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&$9e(n,!0)&&!eKt(n,!1))return o.call(n,new Qzt);if(h&&!A&&!iKt(n,!1))return o.call(n,new Qzt);o.call(n)},G=()=>{L=!0;const te=oKt(n)||tKt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};zxr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?Z4.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||Z4.nextTick(G):(!d&&(!E||Zzt(n))&&(A||nKt(n)===!1)||!h&&(!E||nKt(n))&&(R||Zzt(n)===!1)||v&&n.req&&n.aborted)&&Z4.nextTick(G);const Q=()=>{o=ZFe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new ecn(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)Z4.nextTick(te);else{hL=hL||b1.addAbortListener;const pe=hL(r.signal,te),Le=o;o=QFe((...Ee)=>{pe[tcn](),Le.apply(n,Ee)})}}return Q}function Kxr(n,r,o){let l=!1,u=ZFe;if(r.signal)if(u=()=>{l=!0,o.call(n,new ecn(void 0,{cause:r.signal.reason}))},r.signal.aborted)Z4.nextTick(u);else{hL=hL||b1.addAbortListener;const h=hL(r.signal,u),w=o;o=QFe((...v)=>{h[tcn](),w.apply(n,v)})}const d=(...h)=>{l||Z4.nextTick(()=>o.apply(n,h))};return Fxr(n[Vxr].promise,d,d),ZFe}function qxr(n,r){var o;let l=!1;return r===null&&(r=YFe),(o=r)!==null&&o!==void 0&&o.cleanup&&(Lxr(r.cleanup,"cleanup"),l=r.cleanup),new jxr((u,d)=>{const h=ncn(n,r,w=>{l&&h(),w?d(w):u()})})}LGe.exports=ncn;LGe.exports.finished=qxr;var VT=LGe.exports;const XE=ui,{aggregateTwoErrors:Xxr,codes:{ERR_MULTIPLE_CALLBACK:Jxr},AbortError:Yxr}=M0,{Symbol:rcn}=Uf,{kIsDestroyed:Qxr,isDestroyed:Zxr,isFinished:eCr,isServerRequest:tCr}=Px,icn=rcn("kDestroy"),eBe=rcn("kConstruct");function ocn(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function nCr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(ocn(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?sKt(this,n,r):this.once(icn,function(d){sKt(this,Xxr(d,n),r)}),this)}function sKt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;ocn(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?XE.nextTick(rCr,n,d):XE.nextTick(scn,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function rCr(n,r){tBe(n,r),scn(n)}function scn(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function tBe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function iCr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function nBe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?XE.nextTick(tBe,n,r):tBe(n,r))}function oCr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(eBe,r),!(n.listenerCount(eBe)>1)&&XE.nextTick(sCr,n)}function sCr(n){let r=!1;function o(l){if(r){nBe(n,l??new Jxr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(icn,l):l?nBe(n,l,!0):XE.nextTick(lCr,n)}try{n._construct(l=>{XE.nextTick(o,l)})}catch(l){XE.nextTick(o,l)}}function lCr(n){n.emit(eBe)}function lKt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function lcn(n){n.emit("close")}function aCr(n,r){n.emit("error",r),XE.nextTick(lcn,n)}function cCr(n,r){!n||Zxr(n)||(!r&&!eCr(n)&&(r=new Yxr),tCr(n)?(n.socket=null,n.destroy(r)):lKt(n)?n.abort():lKt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?XE.nextTick(aCr,n,r):XE.nextTick(lcn,n),n.destroyed||(n[Qxr]=!0))}var Ij={construct:oCr,destroyer:cCr,destroy:nCr,undestroy:iCr,errorOrDestroy:nBe};const{ArrayIsArray:uCr,ObjectSetPrototypeOf:acn}=Uf,{EventEmitter:Pge}=Ns;function Oge(n){Pge.call(this,n)}acn(Oge.prototype,Pge.prototype);acn(Oge,Pge);Oge.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Pge.listenerCount(this,"error")===0&&this.emit("error",E)}rBe(o,"error",v),rBe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function rBe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):uCr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var jGe={Stream:Oge,prependListener:rBe},ccn={exports:{}};(function(n){const{SymbolDispose:r}=Uf,{AbortError:o,codes:l}=M0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Px,w=VT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||b1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(ccn);var Nge=ccn.exports;const{StringPrototypeSlice:aKt,SymbolIterator:fCr,TypedArrayPrototypeSet:Gue,Uint8Array:dCr}=Uf,{Buffer:I9e}=Kr,{inspect:hCr}=b1;var pCr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return I9e.alloc(0);const o=I9e.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Gue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=aKt(d,0,r),this.head=l,l.data=aKt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=I9e.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Gue(o,h,l-r),r-=h.length;else{r===h.length?(Gue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Gue(o,new dCr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return hCr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:bCr,NumberIsInteger:gCr}=Uf,{validateInteger:wCr}=MJ,{ERR_INVALID_ARG_VALUE:mCr}=M0.codes;let ucn=16*1024,fcn=16;function yCr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function dcn(n){return n?fcn:ucn}function vCr(n,r){wCr(r,"value",0),n?fcn=r:ucn=r}function _Cr(n,r,o,l){const u=yCr(r,l,o);if(u!=null){if(!gCr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new mCr(d,u)}return bCr(u)}return dcn(n.objectMode)}var Mge={getHighWaterMark:_Cr,getDefaultHighWaterMark:dcn,setDefaultHighWaterMark:vCr};const cKt=ui,{PromisePrototypeThen:SCr,SymbolAsyncIterator:uKt,SymbolIterator:fKt}=Uf,{Buffer:ECr}=Kr,{ERR_INVALID_ARG_TYPE:kCr,ERR_STREAM_NULL_VALUES:RCr}=M0.codes;function xCr(n,r,o){let l;if(typeof r=="string"||r instanceof ECr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[uKt])u=!0,l=r[uKt]();else if(r&&r[fKt])u=!1,l=r[fKt]();else throw new kCr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){SCr(w(y),()=>cKt.nextTick(E,y),A=>cKt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new RCr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var hcn=xCr,P9e,dKt;function Dge(){if(dKt)return P9e;dKt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Uf;P9e=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=jGe,{Buffer:L}=Kr,{addAbortSignal:H}=Nge,G=VT;let j=b1.debuglog("stream",S=>{j=S});const Q=pCr,te=Ij,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=Mge,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=M0,{validateObject:ye}=MJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=hcn;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof hx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof hx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},P9e}var O9e,hKt;function FGe(){if(hKt)return O9e;hKt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Uf;O9e=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=jGe.Stream,{Buffer:C}=Kr,R=Ij,{addAbortSignal:O}=Nge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=Mge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=M0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof hx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof hx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return N9e}var M9e,bKt;function hx(){if(bKt)return M9e;bKt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Uf;M9e=h;const u=Dge(),d=FGe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function ICr(){this._final!==iBe&&iBe.call(this)}px.prototype._final=iBe;px.prototype._transform=function(n,r,o){throw new TCr("_transform()")};px.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=vhe(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,LCr.destroyer(n,d||new BCr("pipe")))},cleanup:u}}function qCr(n){return UCr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function H9e(n){if(P8(n))return n;if(ode(n))return XCr(n);throw new oBe("val",["Readable","Iterable","AsyncIterable"],n)}async function*XCr(n){B9e||(B9e=Dge()),yield*B9e.prototype[NCr].call(n)}async function Vue(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new OCr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=vhe(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?jCr(u,y):y)}finally{v(),r.off("drain",h)}}async function U9e(n,r,o,{end:l}){ID(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function JCr(...n){return mcn(n,DCr(qCr(n)))}function mcn(n,r,o){if(n.length===1&&PCr(n[0])&&(n=n[0]),n.length<2)throw new FCr("streams");const l=new KCr,u=l.signal,d=o==null?void 0:o.signal,h=[];GCr(d,"options.signal");function w(){O(new HCr)}W9e=W9e||b1.addAbortListener;let v;d&&(v=W9e(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[MCr](),l.abort(),j&&(y||h.forEach(te=>te()),jK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(wKt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=mKt(j,Q,te);A.push(le),L9e(j)&&Le&&h.push(xe)}j.on("error",Ee),L9e(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!P8(M))throw new D9e("Iterable, AsyncIterable or Stream","source",M)}else P8(j)||ode(j)||ID(j)?M=j:M=gKt.from(j);else if(typeof j=="function"){if(ID(M)){var L;M=H9e((L=M)===null||L===void 0?void 0:L.readable)}else M=H9e(M);if(M=j(M,{signal:u}),Q){if(!P8(M,!0))throw new D9e("AsyncIterable",`transform[${G-1}]`,M)}else{var H;F9e||(F9e=wcn);const Ee=new F9e({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),jK.nextTick(R)},ae=>{Ee.destroy(ae),jK.nextTick(R,ae)});else if(P8(M,!0))C++,Vue(M,Ee,R,{end:pe});else if(j9e(M)||ID(M)){const ae=M.readable||M;C++,Vue(ae,Ee,R,{end:pe})}else throw new D9e("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=mKt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(wKt(j)){if(ode(M)){C+=2;const Ee=YCr(M,j,R,{end:pe});L9e(j)&&Le&&h.push(Ee)}else if(ID(M)||j9e(M)){const Ee=M.readable||M;C++,Vue(Ee,j,R,{end:pe})}else if(P8(M))C++,Vue(M,j,R,{end:pe});else throw new oBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(VCr(j)){if(ode(M))C++,U9e(H9e(M),j,R,{end:pe});else if(j9e(M)||P8(M))C++,U9e(M,j,R,{end:pe});else if(ID(M))C++,U9e(M.readable,j,R,{end:pe});else throw new oBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=gKt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&jK.nextTick(w),M}function YCr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new WCr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};zCr(n)?jK.nextTick(d):n.once("end",d)}else o();return vhe(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),vhe(r,{readable:!1,writable:!0},o)}var HGe={pipelineImpl:mcn,pipeline:JCr};const{pipeline:QCr}=HGe,zue=hx(),{destroyer:ZCr}=Ij,{isNodeStream:Kue,isReadable:yKt,isWritable:vKt,isWebStream:G9e,isTransformStream:d8,isWritableStream:_Kt,isReadableStream:SKt}=Px,{AbortError:eAr,codes:{ERR_INVALID_ARG_VALUE:EKt,ERR_MISSING_ARGS:tAr}}=M0,nAr=VT;var ycn=function(...r){if(r.length===0)throw new tAr("streams");if(r.length===1)return zue.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=zue.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=zue.from(r[R])}for(let R=0;R0&&!(vKt(r[R])||_Kt(r[R])||d8(r[R])))throw new EKt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=QCr(r,v),A=!!(vKt(y)||_Kt(y)||d8(y)),C=!!(yKt(E)||SKt(E)||d8(E));if(w=new zue({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(Kue(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(G9e(y)){const M=(d8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=d8(E)?E.readable:E;nAr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(Kue(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(G9e(E)){const O=(d8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new eAr),d=null,l=null,u=null,h===null?O(R):(h=O,Kue(E)&&ZCr(E,R))},w};const rAr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:iAr,ERR_INVALID_ARG_TYPE:DJ,ERR_MISSING_ARGS:oAr,ERR_OUT_OF_RANGE:sAr},AbortError:dk}=M0,{validateAbortSignal:yO,validateInteger:kKt,validateObject:vO}=MJ,lAr=Uf.Symbol("kWeak"),aAr=Uf.Symbol("kResistStopPropagation"),{finished:cAr}=VT,uAr=ycn,{addAbortSignalNoValidate:fAr}=Nge,{isWritable:dAr,isNodeStream:hAr}=Px,{deprecate:pAr}=b1,{ArrayPrototypePush:bAr,Boolean:gAr,MathFloor:RKt,Number:wAr,NumberIsNaN:mAr,Promise:xKt,PromiseReject:CKt,PromiseResolve:yAr,PromisePrototypeThen:AKt,Symbol:vcn}=Uf,_he=vcn("kEmpty"),TKt=vcn("kEof");function vAr(n,r){if(r!=null&&vO(r,"options"),(r==null?void 0:r.signal)!=null&&yO(r.signal,"options.signal"),hAr(n)&&!dAr(n))throw new iAr("stream",n,"must be writable");const o=uAr(this,n);return r!=null&&r.signal&&fAr(r.signal,o),o}function Lge(n,r){if(typeof n!="function")throw new DJ("fn",["Function","AsyncFunction"],n);r!=null&&vO(r,"options"),(r==null?void 0:r.signal)!=null&&yO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=RKt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=RKt(r.highWaterMark)),kKt(o,"options.concurrency",1),kKt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=b1.AbortSignalAny([r==null?void 0:r.signal].filter(gAr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new xKt(G=>{E=G})}w.push(TKt)}catch(H){const G=CKt(H);AKt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===TKt)return;if(d.aborted)throw new dk;H!==_he&&(yield H),w.shift(),M()}await new xKt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function _Ar(n=void 0){return n!=null&&vO(n,"options"),(n==null?void 0:n.signal)!=null&&yO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new dk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function _cn(n,r=void 0){for await(const o of UGe.call(this,n,r))return!0;return!1}async function SAr(n,r=void 0){if(typeof n!="function")throw new DJ("fn",["Function","AsyncFunction"],n);return!await _cn.call(this,async(...o)=>!await n(...o),r)}async function EAr(n,r){for await(const o of UGe.call(this,n,r))return o}async function kAr(n,r){if(typeof n!="function")throw new DJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),_he}for await(const l of Lge.call(this,o,r));}function UGe(n,r){if(typeof n!="function")throw new DJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:_he}return Lge.call(this,o,r)}let RAr=class extends oAr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function xAr(n,r,o){var l;if(typeof n!="function")throw new DJ("reducer",["Function","AsyncFunction"],n);o!=null&&vO(o,"options"),(o==null?void 0:o.signal)!=null&&yO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new dk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await cAr(this.destroy(y)),y}const d=new rAr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[lAr]:this,[aAr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new dk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new RAr}finally{d.abort()}return r}async function CAr(n){n!=null&&vO(n,"options"),(n==null?void 0:n.signal)!=null&&yO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new dk(void 0,{cause:n.signal.reason});bAr(r,l)}return r}function AAr(n,r){const o=Lge.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function Scn(n){if(n=wAr(n),mAr(n))return 0;if(n<0)throw new sAr("number",">= 0",n);return n}function TAr(n,r=void 0){return r!=null&&vO(r,"options"),(r==null?void 0:r.signal)!=null&&yO(r.signal,"options.signal"),n=Scn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new dk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new dk;n--<=0&&(yield d)}}).call(this)}function $Ar(n,r=void 0){return r!=null&&vO(r,"options"),(r==null?void 0:r.signal)!=null&&yO(r.signal,"options.signal"),n=Scn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new dk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new dk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}OGe.streamReturningOperators={asIndexedPairs:pAr(_Ar,"readable.asIndexedPairs will be removed in a future version."),drop:TAr,filter:UGe,flatMap:AAr,map:Lge,take:$Ar,compose:vAr};OGe.promiseReturningOperators={every:SAr,forEach:kAr,reduce:xAr,toArray:CAr,some:_cn,find:EAr};var V9e,$Kt;function Ecn(){if($Kt)return V9e;$Kt=1;const{ArrayPrototypePop:n,Promise:r}=Uf,{isIterable:o,isNodeStream:l,isWebStream:u}=Px,{pipelineImpl:d}=HGe,{finished:h}=VT;kcn();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return V9e={finished:h,pipeline:w},V9e}var IKt;function kcn(){if(IKt)return A9e.exports;IKt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Uf,{promisify:{custom:u}}=b1,{streamReturningOperators:d,promiseReturningOperators:h}=OGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=M0,v=ycn,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=Mge,{pipeline:A}=HGe,{destroyer:C}=Ij,R=VT,O=Ecn(),M=Px,L=A9e.exports=jGe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Dge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=FGe(),L.Duplex=hx(),L.Transform=bcn,L.PassThrough=wcn,L.pipeline=A;const{addAbortSignal:H}=Nge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},A9e.exports}(function(n){const r=kcn(),o=Ecn(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(Nan);var IAr=Nan.exports;class PAr{constructor(r){this.stream=r,this.array=[]}push(r){this.array.push(r)}end(){this.stream.push(this.array),this.stream.push(null)}}class OAr{constructor(r){this.stream=r,this.first=!0,this.stream.push("[")}push(r){this.first?this.first=!1:this.stream.push(","),this.stream.push(JSON.stringify(r))}end(){this.stream.push("]"),this.stream.push(null)}}class kq extends IAr.Readable{constructor(r,{encoding:o="object"}={}){if(super({objectMode:!0,read:()=>{}}),o==="object"&&(this.encoder=new PAr(this)),o==="string"&&(this.encoder=new OAr(this)),!this.encoder)throw new Error(`unknown encoding: ${o}`);r.on("data",l=>{const u={};let d=u;l.graph.termType!=="DefaultGraph"&&(u["@id"]=l.graph.value,u["@graph"]={},d=u["@graph"]),d["@id"]=kq.subjectValue(l.subject),l.predicate.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"?d["@type"]=kq.subjectValue(l.object):d[l.predicate.value]=kq.objectValue(l.object),this.encoder.push(u)}),r.on("end",()=>this.encoder.end()),r.on("error",l=>this.emit("error",l))}static subjectValue(r){return r.termType==="BlankNode"?"_:"+r.value:r.value}static objectValue(r){return r.termType==="NamedNode"?{"@id":r.value}:r.termType==="BlankNode"?{"@id":"_:"+r.value}:r.language?{"@language":r.language,"@value":r.value}:r.datatype&&r.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"?{"@type":r.datatype.value,"@value":r.value}:r.value}}class NAr extends Jpe{constructor(r){super(kq,r)}}class MAr extends NAr{constructor({...r}={}){super({...r,encoding:"string"})}}var Rcn={};/*! + * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. + */const PKt=lUe,DAr=Xpe,LAr=qnn,OKt=aUe;var xcn=class{constructor({createMessageDigest:r=()=>new DAr("sha256"),canonicalIdMap:o=new Map,maxDeepIterations:l=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new PKt("_:c14n",o),this.createMessageDigest=r,this.maxDeepIterations=l,this.quads=null,this.deepIterations=null}async main(r){this.deepIterations=new Map,this.quads=r;for(const v of r)this._addBlankNodeQuadInfo({quad:v,component:v.subject}),this._addBlankNodeQuadInfo({quad:v,component:v.object}),this._addBlankNodeQuadInfo({quad:v,component:v.graph});const o=new Map,l=[...this.blankNodeInfo.keys()];let u=0;for(const v of l)++u%100===0&&await this._yield(),await this._hashAndTrackBlankNode({id:v,hashToBlankNodes:o});const d=[...o.keys()].sort(),h=[];for(const v of d){const y=o.get(v);if(y.length>1){h.push(y);continue}const E=y[0];this.canonicalIssuer.getId(E)}for(const v of h){const y=[];for(const E of v){if(this.canonicalIssuer.hasId(E))continue;const A=new PKt("_:b");A.getId(E);const C=await this.hashNDegreeQuads(E,A);y.push(C)}y.sort(jAr);for(const E of y){const A=E.issuer.getOldIds();for(const C of A)this.canonicalIssuer.getId(C)}}const w=[];for(const v of this.quads){const y=OKt.serializeQuadComponents(this._componentWithCanonicalId(v.subject),v.predicate,this._componentWithCanonicalId(v.object),this._componentWithCanonicalId(v.graph));w.push(y)}return w.sort(),w.join("")}async hashFirstDegreeQuads(r){const o=[],l=this.blankNodeInfo.get(r),u=l.quads;for(const h of u){const w={subject:null,predicate:h.predicate,object:null,graph:null};w.subject=this.modifyFirstDegreeComponent(r,h.subject,"subject"),w.object=this.modifyFirstDegreeComponent(r,h.object,"object"),w.graph=this.modifyFirstDegreeComponent(r,h.graph,"graph"),o.push(OKt.serializeQuad(w))}o.sort();const d=this.createMessageDigest();for(const h of o)d.update(h);return l.hash=await d.digest(),l.hash}async hashRelatedBlankNode(r,o,l,u){let d;this.canonicalIssuer.hasId(r)?d=this.canonicalIssuer.getId(r):l.hasId(r)?d=l.getId(r):d=this.blankNodeInfo.get(r).hash;const h=this.createMessageDigest();return h.update(u),u!=="g"&&h.update(this.getRelatedPredicate(o)),h.update(d),h.digest()}async hashNDegreeQuads(r,o){const l=this.deepIterations.get(r)||0;if(l>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(r,l+1);const u=this.createMessageDigest(),d=await this.createHashToRelated(r,o),h=[...d.keys()].sort();for(const w of h){u.update(w);let v="",y;const E=new LAr(d.get(w));let A=0;for(;E.hasNext();){const C=E.next();++A%3===0&&await this._yield();let R=o.clone(),O="";const M=[];let L=!1;for(const H of C)if(this.canonicalIssuer.hasId(H)?O+=this.canonicalIssuer.getId(H):(R.hasId(H)||M.push(H),O+=R.getId(H)),v.length!==0&&O>v){L=!0;break}if(!L){for(const H of M){const G=await this.hashNDegreeQuads(H,R);if(O+=R.getId(H),O+=`<${G.hash}>`,R=G.issuer,v.length!==0&&O>v){L=!0;break}}L||(v.length===0||O`}async createHashToRelated(r,o){const l=new Map,u=this.blankNodeInfo.get(r).quads;let d=0;for(const h of u)++d%100===0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:h,component:h.subject,position:"s",id:r,issuer:o,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:h,component:h.object,position:"o",id:r,issuer:o,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:h,component:h.graph,position:"g",id:r,issuer:o,hashToRelated:l})]);return l}async _hashAndTrackBlankNode({id:r,hashToBlankNodes:o}){const l=await this.hashFirstDegreeQuads(r),u=o.get(l);u?u.push(r):o.set(l,[r])}_addBlankNodeQuadInfo({quad:r,component:o}){if(o.termType!=="BlankNode")return;const l=o.value,u=this.blankNodeInfo.get(l);u?u.quads.add(r):this.blankNodeInfo.set(l,{quads:new Set([r]),hash:null})}async _addRelatedBlankNodeHash({quad:r,component:o,position:l,id:u,issuer:d,hashToRelated:h}){if(!(o.termType==="BlankNode"&&o.value!==u))return;const w=o.value,v=await this.hashRelatedBlankNode(w,r,d,l),y=h.get(v);y?y.push(w):h.set(v,[w])}_componentWithCanonicalId(r){return r.termType==="BlankNode"&&!r.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(r.value)}:r}async _yield(){return new Promise(r=>setImmediate(r))}};function jAr(n,r){return n.hashr.hash?1:0}/*! + * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved. + */const FAr=Xpe,BAr=xcn;var WAr=class extends BAr{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new FAr("sha1")}modifyFirstDegreeComponent(r,o,l){return o.termType!=="BlankNode"?o:l==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:o.value===r?"_:a":"_:z"}}getRelatedPredicate(r){return r.predicate.value}async createHashToRelated(r,o){const l=new Map,u=this.blankNodeInfo.get(r).quads;let d=0;for(const h of u){let w,v;if(h.subject.termType==="BlankNode"&&h.subject.value!==r)v=h.subject.value,w="p";else if(h.object.termType==="BlankNode"&&h.object.value!==r)v=h.object.value,w="r";else continue;++d%100===0&&await this._yield();const y=await this.hashRelatedBlankNode(v,h,o,w),E=l.get(y);E?E.push(v):l.set(y,[v])}return l}};/*! + * Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved. + */const HAr=Xpe,UAr=cUe;var GAr=class extends UAr{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new HAr("sha1")}modifyFirstDegreeComponent(r,o,l){return o.termType!=="BlankNode"?o:l==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:o.value===r?"_:a":"_:z"}}getRelatedPredicate(r){return r.predicate.value}createHashToRelated(r,o){const l=new Map,u=this.blankNodeInfo.get(r).quads;for(const d of u){let h,w;if(d.subject.termType==="BlankNode"&&d.subject.value!==r)w=d.subject.value,h="p";else if(d.object.termType==="BlankNode"&&d.object.value!==r)w=d.object.value,h="r";else continue;const v=this.hashRelatedBlankNode(w,d,o,h),y=l.get(v);y?y.push(w):l.set(v,[w])}return l}};(function(n){const r=xcn,o=WAr,l=cUe,u=GAr;let d;try{d=Epe}catch{}function h(w){return Array.isArray(w)?w:n.NQuads.legacyDatasetToQuads(w)}n.NQuads=aUe,n.IdentifierIssuer=lUe,n._rdfCanonizeNative=function(w){return w&&(d=w),d},n.canonize=async function(w,v){const y=h(w);if(v.useNative){if(!d)throw new Error("rdf-canonize-native not available");if(v.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return new Promise((E,A)=>d.canonize(y,v,(C,R)=>C?A(C):E(R)))}if(v.algorithm==="URDNA2015")return new r(v).main(y);if(v.algorithm==="URGNA2012"){if(v.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new o(v).main(y)}throw"algorithm"in v?new Error("Invalid RDF Dataset Canonicalization algorithm: "+v.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")},n._canonizeSync=function(w,v){const y=h(w);if(v.useNative){if(!d)throw new Error("rdf-canonize-native not available");if(v.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return d.canonizeSync(y,v)}if(v.algorithm==="URDNA2015")return new l(v).main(y);if(v.algorithm==="URGNA2012"){if(v.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new u(v).main(y)}throw"algorithm"in v?new Error("Invalid RDF Dataset Canonicalization algorithm: "+v.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")}})(Rcn);var GGe=Rcn;const av={};var um=av;av.isArray=Array.isArray;av.isBoolean=n=>typeof n=="boolean"||Object.prototype.toString.call(n)==="[object Boolean]";av.isDouble=n=>av.isNumber(n)&&(String(n).indexOf(".")!==-1||Math.abs(n)>=1e21);av.isEmptyObject=n=>av.isObject(n)&&Object.keys(n).length===0;av.isNumber=n=>typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]";av.isNumeric=n=>!isNaN(parseFloat(n))&&isFinite(n);av.isObject=n=>Object.prototype.toString.call(n)==="[object Object]";av.isString=n=>typeof n=="string"||Object.prototype.toString.call(n)==="[object String]";av.isUndefined=n=>typeof n>"u";const NP=um,bx={};var Ox=bx;bx.isSubject=n=>NP.isObject(n)&&!("@value"in n||"@set"in n||"@list"in n)?Object.keys(n).length>1||!("@id"in n):!1;bx.isSubjectReference=n=>NP.isObject(n)&&Object.keys(n).length===1&&"@id"in n;bx.isValue=n=>NP.isObject(n)&&"@value"in n;bx.isList=n=>NP.isObject(n)&&"@list"in n;bx.isGraph=n=>NP.isObject(n)&&"@graph"in n&&Object.keys(n).filter(r=>r!=="@id"&&r!=="@index").length===1;bx.isSimpleGraph=n=>bx.isGraph(n)&&!("@id"in n);bx.isBlankNode=n=>{if(NP.isObject(n)){if("@id"in n){const r=n["@id"];return!NP.isString(r)||r.indexOf("_:")===0}return Object.keys(n).length===0||!("@value"in n||"@set"in n||"@list"in n)}return!1};var _v=class extends Error{constructor(r="An unspecified JSON-LD error occurred.",o="jsonld.Error",l={}){super(r),this.name=o,this.message=r,this.details=l}};const kX=Ox,Hb=um,Ccn=GGe.IdentifierIssuer,VAr=_v,zAr=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/,KAr=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,qAr=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,XAr=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,JAr=/^@[a-zA-Z]+$/,NKt={headers:{accept:"application/ld+json, application/json"}},Ia={};var Sv=Ia;Ia.IdentifierIssuer=Ccn;Ia.REGEX_BCP47=zAr;Ia.REGEX_KEYWORD=JAr;Ia.clone=function(n){if(n&&typeof n=="object"){let r;if(Hb.isArray(n)){r=[];for(let o=0;o{if(Object.keys(n).some(o=>o.toLowerCase()==="accept"))throw new RangeError('Accept header may not be specified; only "'+NKt.headers.accept+'" is supported.');return Object.assign({Accept:NKt.headers.accept},n)};Ia.parseLinkHeader=n=>{const r={},o=n.match(KAr);for(let l=0;l{if(!Hb.isString(n)&&!(Hb.isArray(n)&&n.every(o=>Hb.isString(o)))){if(r&&Hb.isObject(n))switch(Object.keys(n).length){case 0:return;case 1:if("@default"in n&&Ia.asArray(n["@default"]).every(o=>Hb.isString(o)))return}throw new VAr('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:n})}};Ia.hasProperty=(n,r)=>{if(n.hasOwnProperty(r)){const o=n[r];return!Hb.isArray(o)||o.length>0}return!1};Ia.hasValue=(n,r,o)=>{if(Ia.hasProperty(n,r)){let l=n[r];const u=kX.isList(l);if(Hb.isArray(l)||u){u&&(l=l["@list"]);for(let d=0;d{if(l=l||{},"propertyIsArray"in l||(l.propertyIsArray=!1),"valueIsArray"in l||(l.valueIsArray=!1),"allowDuplicate"in l||(l.allowDuplicate=!0),"prependValue"in l||(l.prependValue=!1),l.valueIsArray)n[r]=o;else if(Hb.isArray(o)){o.length===0&&l.propertyIsArray&&!n.hasOwnProperty(r)&&(n[r]=[]),l.prependValue&&(o=o.concat(n[r]),n[r]=[]);for(let u=0;u[].concat(n[r]||[]);Ia.removeProperty=(n,r)=>{delete n[r]};Ia.removeValue=(n,r,o,l)=>{l=l||{},"propertyIsArray"in l||(l.propertyIsArray=!1);const u=Ia.getValues(n,r).filter(d=>!Ia.compareValues(d,o));u.length===0?Ia.removeProperty(n,r):u.length===1&&!l.propertyIsArray?n[r]=u[0]:n[r]=u};Ia.relabelBlankNodes=(n,r)=>{r=r||{};const o=r.issuer||new Ccn("_:b");return sde(o,n)};Ia.compareValues=(n,r)=>n===r||kX.isValue(n)&&kX.isValue(r)&&n["@value"]===r["@value"]&&n["@type"]===r["@type"]&&n["@language"]===r["@language"]&&n["@index"]===r["@index"]?!0:Hb.isObject(n)&&"@id"in n&&Hb.isObject(r)&&"@id"in r?n["@id"]===r["@id"]:!1;Ia.compareShortestLeast=(n,r)=>n.length{const o={},l=Ub.parsers[r||"full"],u=l.regex.exec(n);let d=l.keys.length;for(;d--;)o[l.keys[d]]=u[d]===void 0?null:u[d];return(o.scheme==="https"&&o.port==="443"||o.scheme==="http"&&o.port==="80")&&(o.href=o.href.replace(":"+o.port,""),o.authority=o.authority.replace(":"+o.port,""),o.port=null),o.normalizedPath=Ub.removeDotSegments(o.path),o};Ub.prependBase=(n,r)=>{if(n===null||Ub.isAbsolute(r))return r;(!n||jge.isString(n))&&(n=Ub.parse(n||""));const o=Ub.parse(r),l={protocol:n.protocol||""};if(o.authority!==null)l.authority=o.authority,l.path=o.path,l.query=o.query;else if(l.authority=n.authority,o.path==="")l.path=n.path,o.query!==null?l.query=o.query:l.query=n.query;else{if(o.path.indexOf("/")===0)l.path=o.path;else{let d=n.path;d=d.substr(0,d.lastIndexOf("/")+1),(d.length>0||n.authority)&&d.substr(-1)!=="/"&&(d+="/"),d+=o.path,l.path=d}l.query=o.query}o.path!==""&&(l.path=Ub.removeDotSegments(l.path));let u=l.protocol;return l.authority!==null&&(u+="//"+l.authority),u+=l.path,l.query!==null&&(u+="?"+l.query),o.fragment!==null&&(u+="#"+o.fragment),u===""&&(u="./"),u};Ub.removeBase=(n,r)=>{if(n===null)return r;(!n||jge.isString(n))&&(n=Ub.parse(n||""));let o="";if(n.href!==""?o+=(n.protocol||"")+"//"+(n.authority||""):r.indexOf("//")&&(o+="//"),r.indexOf(o)!==0)return r;const l=Ub.parse(r.substr(o.length)),u=n.normalizedPath.split("/"),d=l.normalizedPath.split("/"),h=l.fragment||l.query?0:1;for(;u.length>0&&d.length>h&&u[0]===d[0];)u.shift(),d.shift();let w="";if(u.length>0){u.pop();for(let v=0;v{if(n.length===0)return"";const r=n.split("/"),o=[];for(;r.length>0;){const l=r.shift(),u=r.length===0;if(l==="."){u&&o.push("");continue}if(l===".."){o.pop(),u&&o.push("");continue}o.push(l)}return n[0]==="/"&&o.length>0&&o[0]!==""&&o.unshift(""),o.length===1&&o[0]===""?"/":o.join("/")};const YAr=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;Ub.isAbsolute=n=>jge.isString(n)&&YAr.test(n);Ub.isRelative=n=>jge.isString(n);const{parseLinkHeader:QAr,buildHeaders:ZAr}=Sv,{LINK_HEADER_CONTEXT:e4r}=VGe,hK=_v,t4r=Acn(),{prependBase:n4r}=zT,r4r=/(^|(\r\n))link:/i;var i4r=({secure:n,headers:r={},xhr:o}={headers:{}})=>{return r=ZAr(r),new t4r().wrapLoader(u);async function u(d){if(d.indexOf("http:")!==0&&d.indexOf("https:")!==0)throw new hK('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:d});if(n&&d.indexOf("https")!==0)throw new hK(`URL could not be dereferenced; secure mode is enabled and the URL's scheme is not "https".`,"jsonld.InvalidUrl",{code:"loading document failed",url:d});let h;try{h=await o4r(o,d,r)}catch(A){throw new hK("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:d,cause:A})}if(h.status>=400)throw new hK("URL could not be dereferenced: "+h.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:d,httpStatusCode:h.status});let w={contextUrl:null,documentUrl:d,document:h.response},v=null;const y=h.getResponseHeader("Content-Type");let E;if(r4r.test(h.getAllResponseHeaders())&&(E=h.getResponseHeader("Link")),E&&y!=="application/ld+json"){const A=QAr(E),C=A[e4r];if(Array.isArray(C))throw new hK("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:d});C&&(w.contextUrl=C.target),v=A.alternate,v&&v.type=="application/ld+json"&&!(y||"").match(/^application\/(\w*\+)?json$/)&&(w=await u(n4r(d,v.target)))}return w}};function o4r(n,r,o){n=n||XMLHttpRequest;const l=new n;return new Promise((u,d)=>{l.onload=()=>u(l),l.onerror=h=>d(h),l.open("GET",r,!0);for(const h in o)l.setRequestHeader(h,o[h]);l.send()})}const s4r=i4r,zGe={};var l4r=zGe;zGe.setupDocumentLoaders=function(n){typeof XMLHttpRequest<"u"&&(n.documentLoaders.xhr=s4r,n.useDocumentLoader("xhr"))};zGe.setupGlobals=function(n){typeof globalThis.JsonLdProcessor>"u"&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:n.JsonLdProcessor})};var K9e,DKt;function a4r(){return DKt||(DKt=1,K9e=function(n){n.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}),K9e}var c4r=Ea;Ea.Node=MP;Ea.create=Ea;function Ea(n){var r=this;if(r instanceof Ea||(r=new Ea),r.tail=null,r.head=null,r.length=0,n&&typeof n.forEach=="function")n.forEach(function(u){r.push(u)});else if(arguments.length>0)for(var o=0,l=arguments.length;o1)o=r;else if(this.head)l=this.head.next,o=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=0;l!==null;u++)o=n(o,l.value,u),l=l.next;return o};Ea.prototype.reduceReverse=function(n,r){var o,l=this.tail;if(arguments.length>1)o=r;else if(this.tail)l=this.tail.prev,o=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=this.length-1;l!==null;u--)o=n(o,l.value,u),l=l.prev;return o};Ea.prototype.toArray=function(){for(var n=new Array(this.length),r=0,o=this.head;o!==null;r++)n[r]=o.value,o=o.next;return n};Ea.prototype.toArrayReverse=function(){for(var n=new Array(this.length),r=0,o=this.tail;o!==null;r++)n[r]=o.value,o=o.prev;return n};Ea.prototype.slice=function(n,r){r=r||this.length,r<0&&(r+=this.length),n=n||0,n<0&&(n+=this.length);var o=new Ea;if(rthis.length&&(r=this.length);for(var l=0,u=this.head;u!==null&&lthis.length&&(r=this.length);for(var l=this.length,u=this.tail;u!==null&&l>r;l--)u=u.prev;for(;u!==null&&l>n;l--,u=u.prev)o.push(u.value);return o};Ea.prototype.splice=function(n,r,...o){n>this.length&&(n=this.length-1),n<0&&(n=this.length+n);for(var l=0,u=this.head;u!==null&&l1;class p4r{constructor(r){if(typeof r=="number"&&(r={max:r}),r||(r={}),r.max&&(typeof r.max!="number"||r.max<0))throw new TypeError("max must be a non-negative number");this[j8]=r.max||1/0;const o=r.length||q9e;if(this[cD]=typeof o!="function"?q9e:o,this[Rq]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[z8]=r.maxAge||0,this[TR]=r.dispose,this[LKt]=r.noDisposeOnSet||!1,this[Tcn]=r.updateAgeOnGet||!1,this.reset()}set max(r){if(typeof r!="number"||r<0)throw new TypeError("max must be a non-negative number");this[j8]=r||1/0,pK(this)}get max(){return this[j8]}set allowStale(r){this[Rq]=!!r}get allowStale(){return this[Rq]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[z8]=r,pK(this)}get maxAge(){return this[z8]}set lengthCalculator(r){typeof r!="function"&&(r=q9e),r!==this[cD]&&(this[cD]=r,this[PR]=0,this[ap].forEach(o=>{o.length=this[cD](o.value,o.key),this[PR]+=o.length})),pK(this)}get lengthCalculator(){return this[cD]}get length(){return this[PR]}get itemCount(){return this[ap].length}rforEach(r,o){o=o||this;for(let l=this[ap].tail;l!==null;){const u=l.prev;jKt(this,r,l,o),l=u}}forEach(r,o){o=o||this;for(let l=this[ap].head;l!==null;){const u=l.next;jKt(this,r,l,o),l=u}}keys(){return this[ap].toArray().map(r=>r.key)}values(){return this[ap].toArray().map(r=>r.value)}reset(){this[TR]&&this[ap]&&this[ap].length&&this[ap].forEach(r=>this[TR](r.key,r.value)),this[dS]=new Map,this[ap]=new h4r,this[PR]=0}dump(){return this[ap].map(r=>She(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[ap]}set(r,o,l){if(l=l||this[z8],l&&typeof l!="number")throw new TypeError("maxAge must be a number");const u=l?Date.now():0,d=this[cD](o,r);if(this[dS].has(r)){if(d>this[j8])return pL(this,this[dS].get(r)),!1;const v=this[dS].get(r).value;return this[TR]&&(this[LKt]||this[TR](r,v.value)),v.now=u,v.maxAge=l,v.value=o,this[PR]+=d-v.length,v.length=d,this.get(r),pK(this),!0}const h=new b4r(r,o,d,u,l);return h.length>this[j8]?(this[TR]&&this[TR](r,o),!1):(this[PR]+=h.length,this[ap].unshift(h),this[dS].set(r,this[ap].head),pK(this),!0)}has(r){if(!this[dS].has(r))return!1;const o=this[dS].get(r).value;return!She(this,o)}get(r){return X9e(this,r,!0)}peek(r){return X9e(this,r,!1)}pop(){const r=this[ap].tail;return r?(pL(this,r),r.value):null}del(r){pL(this,this[dS].get(r))}load(r){this.reset();const o=Date.now();for(let l=r.length-1;l>=0;l--){const u=r[l],d=u.e||0;if(d===0)this.set(u.k,u.v);else{const h=d-o;h>0&&this.set(u.k,u.v,h)}}}prune(){this[dS].forEach((r,o)=>X9e(this,o,!1))}}const X9e=(n,r,o)=>{const l=n[dS].get(r);if(l){const u=l.value;if(She(n,u)){if(pL(n,l),!n[Rq])return}else o&&(n[Tcn]&&(l.value.now=Date.now()),n[ap].unshiftNode(l));return u.value}},She=(n,r)=>{if(!r||!r.maxAge&&!n[z8])return!1;const o=Date.now()-r.now;return r.maxAge?o>r.maxAge:n[z8]&&o>n[z8]},pK=n=>{if(n[PR]>n[j8])for(let r=n[ap].tail;n[PR]>n[j8]&&r!==null;){const o=r.prev;pL(n,r),r=o}},pL=(n,r)=>{if(r){const o=r.value;n[TR]&&n[TR](o.key,o.value),n[PR]-=o.length,n[dS].delete(o.key),n[ap].removeNode(r)}};class b4r{constructor(r,o,l,u,d){this.key=r,this.value=o,this.length=l,this.now=u,this.maxAge=d||0}}const jKt=(n,r,o,l)=>{let u=o.value;She(n,u)&&(pL(n,o),n[Rq]||(u=void 0)),u&&r.call(l,u.value,u.key,n)};var $cn=p4r;const g4r=$cn,w4r=10;var m4r=class{constructor({document:r}){this.document=r,this.cache=new g4r({max:w4r})}getProcessed(r){return this.cache.get(r)}setProcessed(r,o){this.cache.set(r,o)}};const{isArray:sBe,isObject:xq,isString:Ehe}=um,{asArray:y4r}=Sv,{prependBase:lBe}=zT,FK=_v,FKt=m4r,BKt=10;var v4r=class{constructor({sharedCache:r}){this.perOpCache=new Map,this.sharedCache=r}async resolve({activeCtx:r,context:o,documentLoader:l,base:u,cycles:d=new Set}){o&&xq(o)&&o["@context"]&&(o=o["@context"]),o=y4r(o);const h=[];for(const w of o){if(Ehe(w)){let E=this._get(w);E||(E=await this._resolveRemoteContext({activeCtx:r,url:w,documentLoader:l,base:u,cycles:d})),sBe(E)?h.push(...E):h.push(E);continue}if(w===null){h.push(new FKt({document:null}));continue}xq(w)||_4r(o);const v=JSON.stringify(w);let y=this._get(v);y||(y=new FKt({document:w}),this._cacheResolvedContext({key:v,resolved:y,tag:"static"})),h.push(y)}return h}_get(r){let o=this.perOpCache.get(r);if(!o){const l=this.sharedCache.get(r);l&&(o=l.get("static"),o&&this.perOpCache.set(r,o))}return o}_cacheResolvedContext({key:r,resolved:o,tag:l}){if(this.perOpCache.set(r,o),l!==void 0){let u=this.sharedCache.get(r);u||(u=new Map,this.sharedCache.set(r,u)),u.set(l,o)}return o}async _resolveRemoteContext({activeCtx:r,url:o,documentLoader:l,base:u,cycles:d}){o=lBe(u,o);const{context:h,remoteDoc:w}=await this._fetchContext({activeCtx:r,url:o,documentLoader:l,cycles:d});u=w.documentUrl||o,aBe({context:h,base:u});const v=await this.resolve({activeCtx:r,context:h,documentLoader:l,base:u,cycles:d});return this._cacheResolvedContext({key:o,resolved:v,tag:w.tag}),v}async _fetchContext({activeCtx:r,url:o,documentLoader:l,cycles:u}){if(u.size>BKt)throw new FK("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:r.processingMode==="json-ld-1.0"?"loading remote context failed":"context overflow",max:BKt});if(u.has(o))throw new FK("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:r.processingMode==="json-ld-1.0"?"recursive context inclusion":"context overflow",url:o});u.add(o);let d,h;try{h=await l(o),d=h.document||null,Ehe(d)&&(d=JSON.parse(d))}catch(w){throw new FK("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.","jsonld.InvalidUrl",{code:"loading remote context failed",url:o,cause:w})}if(!xq(d))throw new FK("Dereferencing a URL did not result in a JSON object. The response was valid JSON, but it was not a JSON object.","jsonld.InvalidUrl",{code:"invalid remote context",url:o});return"@context"in d?d={"@context":d["@context"]}:d={"@context":{}},h.contextUrl&&(sBe(d["@context"])||(d["@context"]=[d["@context"]]),d["@context"].push(h.contextUrl)),{context:d,remoteDoc:h}}};function _4r(n){throw new FK("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:n})}function aBe({context:n,base:r}){if(!n)return;const o=n["@context"];if(Ehe(o)){n["@context"]=lBe(r,o);return}if(sBe(o)){for(let l=0;l{const r=[].concat(n.safe?tm.safeEventHandler:[],n.eventHandler?Icn(n.eventHandler):[],tm.defaultEventHandler?tm.defaultEventHandler:[]);return r.length===0?null:r};tm.handleEvent=({event:n,options:r})=>{Pcn({event:n,handlers:r.eventHandler})};function Pcn({event:n,handlers:r}){let o=!0;for(let l=0;o&&l{o=!0}});else if(typeof u=="object")n.code in u?u[n.code]({event:n,next:()=>{o=!0}}):o=!0;else throw new KGe("Invalid event handler.","jsonld.InvalidEventHandler",{event:n})}return o}const k4r=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"]);tm.safeEventHandler=function({event:r,next:o}){if(r.level==="warning"&&k4r.has(r.code))throw new KGe("Safe mode validation error.","jsonld.ValidationError",{event:r});o()};tm.logEventHandler=function({event:r,next:o}){console.log(`EVENT: ${r.message}`,{event:r}),o()};tm.logWarningEventHandler=function({event:r,next:o}){r.level==="warning"&&console.warn(`WARNING: ${r.message}`,{event:r}),o()};tm.unhandledEventHandler=function({event:r}){throw new KGe("No handler for event.","jsonld.UnhandledEvent",{event:r})};tm.setDefaultEventHandler=function({eventHandler:n}={}){tm.defaultEventHandler=n?Icn(n):null};const WKt=Sv,Ao=_v,{isArray:Ocn,isObject:fT,isString:E0,isUndefined:R4r}=um,{isAbsolute:dP,isRelative:x4r,prependBase:Cq}=zT,{handleEvent:bL}=LJ,{REGEX_BCP47:C4r,REGEX_KEYWORD:lde,asArray:Ncn,compareShortestLeast:A4r}=Sv,que=new Map,T4r=1e4,au={};var _O=au;au.process=async({activeCtx:n,localCtx:r,options:o,propagate:l=!0,overrideProtected:u=!1,cycles:d=new Set})=>{if(fT(r)&&"@context"in r&&Ocn(r["@context"])&&(r=r["@context"]),Ncn(r).length===0)return n;const w=[],v=[({event:C,next:R})=>{w.push(C),R()}];o.eventHandler&&v.push(o.eventHandler);const y=o;o={...o,eventHandler:v};const E=await o.contextResolver.resolve({activeCtx:n,context:r,documentLoader:o.documentLoader,base:o.base});fT(E[0].document)&&typeof E[0].document["@propagate"]=="boolean"&&(l=E[0].document["@propagate"]);let A=n;!l&&!A.previousContext&&(A=A.clone(),A.previousContext=n);for(const C of E){let{document:R}=C;if(n=A,R===null){if(!u&&Object.keys(n.protected).length!==0)throw new Ao("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});A=n=au.getInitialContext(o).clone();continue}const O=C.getProcessed(n);if(O){if(y.eventHandler)for(const L of O.events)bL({event:L,options:y});A=n=O.context;continue}if(fT(R)&&"@context"in R&&(R=R["@context"]),!fT(R))throw new Ao("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:R});A=A.clone();const M=new Map;if("@version"in R){if(R["@version"]!==1.1)throw new Ao("Unsupported JSON-LD version: "+R["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:R});if(n.processingMode&&n.processingMode==="json-ld-1.0")throw new Ao("@version: "+R["@version"]+" not compatible with "+n.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:R});A.processingMode="json-ld-1.1",A["@version"]=R["@version"],M.set("@version",!0)}if(A.processingMode=A.processingMode||n.processingMode,"@base"in R){let L=R["@base"];if(!(L===null||dP(L)))if(x4r(L))L=Cq(A["@base"],L);else throw new Ao('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:R});A["@base"]=L,M.set("@base",!0)}if("@vocab"in R){const L=R["@vocab"];if(L===null)delete A["@vocab"];else if(E0(L)){if(!dP(L)&&au.processingMode(A,1))throw new Ao('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:R});{const H=UD(A,L,{vocab:!0,base:!0},void 0,void 0,o);dP(H)||o.eventHandler&&bL({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:H}},options:o}),A["@vocab"]=H}}else throw new Ao('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:R});M.set("@vocab",!0)}if("@language"in R){const L=R["@language"];if(L===null)delete A["@language"];else if(E0(L))L.match(C4r)||o.eventHandler&&bL({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:L}},options:o}),A["@language"]=L.toLowerCase();else throw new Ao('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:R});M.set("@language",!0)}if("@direction"in R){const L=R["@direction"];if(n.processingMode==="json-ld-1.0")throw new Ao("Invalid JSON-LD syntax; @direction not compatible with "+n.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:R});if(L===null)delete A["@direction"];else{if(L!=="ltr"&&L!=="rtl")throw new Ao('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:R});A["@direction"]=L}M.set("@direction",!0)}if("@propagate"in R){const L=R["@propagate"];if(n.processingMode==="json-ld-1.0")throw new Ao("Invalid JSON-LD syntax; @propagate not compatible with "+n.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:R});if(typeof L!="boolean")throw new Ao("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:r});M.set("@propagate",!0)}if("@import"in R){const L=R["@import"];if(n.processingMode==="json-ld-1.0")throw new Ao("Invalid JSON-LD syntax; @import not compatible with "+n.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:R});if(!E0(L))throw new Ao("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:r});const H=await o.contextResolver.resolve({activeCtx:n,context:L,documentLoader:o.documentLoader,base:o.base});if(H.length!==1)throw new Ao("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:r});const G=H[0].getProcessed(n);if(G)R=G;else{const j=H[0].document;if("@import"in j)throw new Ao("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:r});for(const Q in j)R.hasOwnProperty(Q)||(R[Q]=j[Q]);H[0].setProcessed(n,R)}M.set("@import",!0)}M.set("@protected",R["@protected"]||!1);for(const L in R)if(au.createTermDefinition({activeCtx:A,localCtx:R,term:L,defined:M,options:o,overrideProtected:u}),fT(R[L])&&"@context"in R[L]){const H=R[L]["@context"];let G=!0;if(E0(H)){const j=Cq(o.base,H);d.has(j)?G=!1:d.add(j)}if(G)try{await au.process({activeCtx:A.clone(),localCtx:R[L]["@context"],overrideProtected:!0,options:o,cycles:d})}catch{throw new Ao("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:R[L]["@context"],term:L})}}C.setProcessed(n,{context:A,events:w})}return A};au.createTermDefinition=({activeCtx:n,localCtx:r,term:o,defined:l,options:u,overrideProtected:d=!1})=>{if(l.has(o)){if(l.get(o))return;throw new Ao("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:r,term:o})}l.set(o,!1);let h;if(r.hasOwnProperty(o)&&(h=r[o]),o==="@type"&&fT(h)&&(h["@container"]||"@set")==="@set"&&au.processingMode(n,1.1)){const R=["@container","@id","@protected"],O=Object.keys(h);if(O.length===0||O.some(M=>!R.includes(M)))throw new Ao("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:r,term:o})}else{if(au.isKeyword(o))throw new Ao("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:r,term:o});if(o.match(lde)){u.eventHandler&&bL({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:o}},options:u});return}else if(o==="")throw new Ao("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:r})}const w=n.mappings.get(o);n.mappings.has(o)&&n.mappings.delete(o);let v=!1;if((E0(h)||h===null)&&(v=!0,h={"@id":h}),!fT(h))throw new Ao("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:r});const y={};n.mappings.set(o,y),y.reverse=!1;const E=["@container","@id","@language","@reverse","@type"];au.processingMode(n,1.1)&&E.push("@context","@direction","@index","@nest","@prefix","@protected");for(const R in h)if(!E.includes(R))throw new Ao("Invalid JSON-LD syntax; a term definition must not contain "+R,"jsonld.SyntaxError",{code:"invalid term definition",context:r});const A=o.indexOf(":");if(y._termHasColon=A>0,"@reverse"in h){if("@id"in h)throw new Ao("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:r});if("@nest"in h)throw new Ao("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:r});const R=h["@reverse"];if(!E0(R))throw new Ao("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:r});if(R.match(lde)){u.eventHandler&&bL({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:R}},options:u}),w?n.mappings.set(o,w):n.mappings.delete(o);return}const O=UD(n,R,{vocab:!0,base:!1},r,l,u);if(!dP(O))throw new Ao("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:r});y["@id"]=O,y.reverse=!0}else if("@id"in h){let R=h["@id"];if(R&&!E0(R))throw new Ao("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:r});if(R===null)y["@id"]=null;else if(!au.isKeyword(R)&&R.match(lde)){u.eventHandler&&bL({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:R}},options:u}),w?n.mappings.set(o,w):n.mappings.delete(o);return}else if(R!==o){if(R=UD(n,R,{vocab:!0,base:!1},r,l,u),!dP(R)&&!au.isKeyword(R))throw new Ao("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:r});if(o.match(/(?::[^:])|\//)){const O=new Map(l).set(o,!0);if(UD(n,o,{vocab:!0,base:!1},r,O,u)!==R)throw new Ao("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:r})}y["@id"]=R,y._prefix=v&&!y._termHasColon&&R.match(/[:\/\?#\[\]@]$/)!==null}}if(!("@id"in y))if(y._termHasColon){const R=o.substr(0,A);if(r.hasOwnProperty(R)&&au.createTermDefinition({activeCtx:n,localCtx:r,term:R,defined:l,options:u}),n.mappings.has(R)){const O=o.substr(A+1);y["@id"]=n.mappings.get(R)["@id"]+O}else y["@id"]=o}else if(o==="@type")y["@id"]=o;else{if(!("@vocab"in n))throw new Ao("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:r,term:o});y["@id"]=n["@vocab"]+o}if((h["@protected"]===!0||l.get("@protected")===!0&&h["@protected"]!==!1)&&(n.protected[o]=!0,y.protected=!0),l.set(o,!0),"@type"in h){let R=h["@type"];if(!E0(R))throw new Ao("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:r});if(R==="@json"||R==="@none"){if(au.processingMode(n,1))throw new Ao(`Invalid JSON-LD syntax; an @context @type value must not be "${R}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:r})}else if(R!=="@id"&&R!=="@vocab"){if(R=UD(n,R,{vocab:!0,base:!1},r,l,u),!dP(R))throw new Ao("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:r});if(R.indexOf("_:")===0)throw new Ao("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:r})}y["@type"]=R}if("@container"in h){const R=E0(h["@container"])?[h["@container"]]:h["@container"]||[],O=["@list","@set","@index","@language"];let M=!0;const L=R.includes("@set");if(au.processingMode(n,1.1)){if(O.push("@graph","@id","@type"),R.includes("@list")){if(R.length!==1)throw new Ao("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:r})}else if(R.includes("@graph")){if(R.some(H=>H!=="@graph"&&H!=="@id"&&H!=="@index"&&H!=="@set"))throw new Ao("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:r})}else M&=R.length<=(L?2:1);if(R.includes("@type")&&(y["@type"]=y["@type"]||"@id",!["@id","@vocab"].includes(y["@type"])))throw new Ao("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:r})}else M&=!Ocn(h["@container"]),M&=R.length<=1;if(M&=R.every(H=>O.includes(H)),M&=!(L&&R.includes("@list")),!M)throw new Ao("Invalid JSON-LD syntax; @context @container value must be one of the following: "+O.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:r});if(y.reverse&&!R.every(H=>["@index","@set"].includes(H)))throw new Ao("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:r});y["@container"]=R}if("@index"in h){if(!("@container"in h)||!y["@container"].includes("@index"))throw new Ao(`Invalid JSON-LD syntax; @index without @index in @container: "${h["@index"]}" on term "${o}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:r});if(!E0(h["@index"])||h["@index"].indexOf("@")===0)throw new Ao(`Invalid JSON-LD syntax; @index must expand to an IRI: "${h["@index"]}" on term "${o}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:r});y["@index"]=h["@index"]}if("@context"in h&&(y["@context"]=h["@context"]),"@language"in h&&!("@type"in h)){let R=h["@language"];if(R!==null&&!E0(R))throw new Ao("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:r});R!==null&&(R=R.toLowerCase()),y["@language"]=R}if("@prefix"in h){if(o.match(/:|\//))throw new Ao("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:r});if(au.isKeyword(y["@id"]))throw new Ao("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:r});if(typeof h["@prefix"]=="boolean")y._prefix=h["@prefix"]===!0;else throw new Ao("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:r})}if("@direction"in h){const R=h["@direction"];if(R!==null&&R!=="ltr"&&R!=="rtl")throw new Ao('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:r});y["@direction"]=R}if("@nest"in h){const R=h["@nest"];if(!E0(R)||R!=="@nest"&&R.indexOf("@")===0)throw new Ao("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:r});y["@nest"]=R}// disallow aliasing @context and @preserve +const C=y["@id"];if(C==="@context"||C==="@preserve")throw new Ao("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:r});if(w&&w.protected&&!d&&(n.protected[o]=!0,y.protected=!0,!cBe(w,y)))throw new Ao("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:r,term:o})};au.expandIri=(n,r,o,l)=>UD(n,r,o,void 0,void 0,l);function UD(n,r,o,l,u,d){if(r===null||!E0(r)||au.isKeyword(r))return r;if(r.match(lde))return null;if(l&&l.hasOwnProperty(r)&&u.get(r)!==!0&&au.createTermDefinition({activeCtx:n,localCtx:l,term:r,defined:u,options:d}),o=o||{},o.vocab){const w=n.mappings.get(r);if(w===null)return null;if(fT(w)&&"@id"in w)return w["@id"]}const h=r.indexOf(":");if(h>0){const w=r.substr(0,h),v=r.substr(h+1);if(w==="_"||v.indexOf("//")===0)return r;l&&l.hasOwnProperty(w)&&au.createTermDefinition({activeCtx:n,localCtx:l,term:w,defined:u,options:d});const y=n.mappings.get(w);if(y&&y._prefix)return y["@id"]+v;if(dP(r))return r}if(o.vocab&&"@vocab"in n)r=n["@vocab"]+r;else if(o.base){let w,v;"@base"in n?n["@base"]?(v=Cq(d.base,n["@base"]),w=Cq(v,r)):(v=n["@base"],w=r):(v=d.base,w=Cq(d.base,r)),r=w}return r}au.getInitialContext=n=>{const r=JSON.stringify({processingMode:n.processingMode}),o=que.get(r);if(o)return o;const l={processingMode:n.processingMode,mappings:new Map,inverse:null,getInverse:u,clone:w,revertToPreviousContext:v,protected:{}};return que.size===T4r&&que.clear(),que.set(r,l),l;function u(){const y=this;if(y.inverse)return y.inverse;const E=y.inverse={},A=y.fastCurieMap={},C={},R=(y["@language"]||"@none").toLowerCase(),O=y["@direction"],M=y.mappings,L=[...M.keys()].sort(A4r);for(const H of L){const G=M.get(H);if(G===null)continue;let j=G["@container"]||"@none";if(j=[].concat(j).sort().join(""),G["@id"]===null)continue;const Q=Ncn(G["@id"]);for(const te of Q){let pe=E[te];const Le=au.isKeyword(te);if(pe)!Le&&!G._termHasColon&&C[te].push(H);else if(E[te]=pe={},!Le&&!G._termHasColon){C[te]=[H];const Ee={iri:te,terms:C[te]};te[0]in A?A[te[0]].push(Ee):A[te[0]]=[Ee]}if(pe[j]||(pe[j]={"@language":{},"@type":{},"@any":{}}),pe=pe[j],h(H,pe["@any"],"@none"),G.reverse)h(H,pe["@type"],"@reverse");else if(G["@type"]==="@none")h(H,pe["@any"],"@none"),h(H,pe["@language"],"@none"),h(H,pe["@type"],"@none");else if("@type"in G)h(H,pe["@type"],G["@type"]);else if("@language"in G&&"@direction"in G){const Ee=G["@language"],le=G["@direction"];Ee&&le?h(H,pe["@language"],`${Ee}_${le}`.toLowerCase()):Ee?h(H,pe["@language"],Ee.toLowerCase()):le?h(H,pe["@language"],`_${le}`):h(H,pe["@language"],"@null")}else"@language"in G?h(H,pe["@language"],(G["@language"]||"@null").toLowerCase()):"@direction"in G?G["@direction"]?h(H,pe["@language"],`_${G["@direction"]}`):h(H,pe["@language"],"@none"):O?(h(H,pe["@language"],`_${O}`),h(H,pe["@language"],"@none"),h(H,pe["@type"],"@none")):(h(H,pe["@language"],R),h(H,pe["@language"],"@none"),h(H,pe["@type"],"@none"))}}for(const H in A)d(A,H,1);return E}function d(y,E,A){const C=y[E],R=y[E]={};let O,M;for(const L of C)O=L.iri,A>=O.length?M="":M=O[A],M in R?R[M].push(L):R[M]=[L];for(const L in R)L!==""&&d(R,L,A+1)}function h(y,E,A){E.hasOwnProperty(A)||(E[A]=y)}function w(){const y={};return y.mappings=WKt.clone(this.mappings),y.clone=this.clone,y.inverse=null,y.getInverse=this.getInverse,y.protected=WKt.clone(this.protected),this.previousContext&&(y.previousContext=this.previousContext.clone()),y.revertToPreviousContext=this.revertToPreviousContext,"@base"in this&&(y["@base"]=this["@base"]),"@language"in this&&(y["@language"]=this["@language"]),"@vocab"in this&&(y["@vocab"]=this["@vocab"]),y}function v(){return this.previousContext?this.previousContext.clone():this}};au.getContextValue=(n,r,o)=>{if(r===null)return o==="@context"?void 0:null;if(n.mappings.has(r)){const l=n.mappings.get(r);if(R4r(o))return l;if(l.hasOwnProperty(o))return l[o]}if(o==="@language"&&o in n||o==="@direction"&&o in n)return n[o];if(o!=="@context")return null};au.processingMode=(n,r)=>r.toString()>="1.1"?!n.processingMode||n.processingMode>="json-ld-"+r.toString():n.processingMode==="json-ld-1.0";au.isKeyword=n=>{if(!E0(n)||n[0]!=="@")return!1;switch(n){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 cBe(n,r){if(!(n&&typeof n=="object")||!(r&&typeof r=="object"))return n===r;const o=Array.isArray(n);if(o!==Array.isArray(r))return!1;if(o){if(n.length!==r.length)return!1;for(let d=0;d{if(o==null)return null;if(r==="@default"&&(l=Object.assign({},l,{isFrame:!1})),!Yy(o)&&!Vy(o))return!u&&(r===null||Ud(n,r,{vocab:!0},l)==="@graph")?(l.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:o}},options:l}),null):jcn({activeCtx:n,activeProperty:r,value:o,options:l});if(Yy(o)){let O=[];const M=Zw(n,r,"@container")||[];u=u||M.includes("@list");for(let L=0;L1?L.slice().sort():L:[L];for(const G of H){const j=Zw(h,G,"@context");khe(j)||(n=await Aq({activeCtx:n,localCtx:j,options:l,propagate:!1}))}}let C={};await Lcn({activeCtx:n,activeProperty:r,expandedActiveProperty:w,element:o,expandedParent:C,options:l,insideList:u,typeKey:A,typeScopedContext:h}),y=Object.keys(C);let R=y.length;if("@value"in C){if("@type"in C&&("@language"in C||"@direction"in C))throw new ju('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:C});let O=R-1;if("@type"in C&&(O-=1),"@index"in C&&(O-=1),"@language"in C&&(O-=1),"@direction"in C&&(O-=1),O!==0)throw new ju('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:C});const M=C["@value"]===null?[]:uS(C["@value"]),L=O4r(C,"@type");if(!(ade(n,1.1)&&L.includes("@json")&&L.length===1))if(M.length===0)l.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:C}},options:l}),C=null;else{if(!M.every(H=>Fb(H)||uBe(H))&&"@language"in C)throw new ju("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:C});if(!L.every(H=>cde(H)&&!(Fb(H)&&H.indexOf("_:")===0)||uBe(H)))throw new ju('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:C})}}else if("@type"in C&&!Yy(C["@type"]))C["@type"]=[C["@type"]];else if("@set"in C||"@list"in C){if(R>1&&!(R===2&&"@index"in C))throw new ju('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:C});"@set"in C&&(C=C["@set"],y=Object.keys(C),R=y.length)}else R===1&&"@language"in C&&(l.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:C}},options:l}),C=null);return Vy(C)&&!l.keepFreeFloatingNodes&&!u&&(r===null||w==="@graph"||(Zw(n,r,"@container")||[]).includes("@graph"))&&(C=Dcn({value:C,count:R,options:l})),C};function Dcn({value:n,count:r,options:o}){if(r===0||"@value"in n||"@list"in n||r===1&&"@id"in n){if(o.eventHandler){let l,u;r===0?(l="empty object",u="Dropping empty object."):"@value"in n?(l="object with only @value",u="Dropping object with only @value."):"@list"in n?(l="object with only @list",u="Dropping object with only @list."):r===1&&"@id"in n&&(l="object with only @id",u="Dropping object with only @id."),qy({event:{type:["JsonLdEvent"],code:l,level:"warning",message:u,details:{value:n}},options:o})}return null}return n}async function Lcn({activeCtx:n,activeProperty:r,expandedActiveProperty:o,element:l,expandedParent:u,options:d={},insideList:h,typeKey:w,typeScopedContext:v}){const y=Object.keys(l).sort(),E=[];let A;const C=l[w]&&Ud(n,Yy(l[w])?l[w][0]:l[w],{vocab:!0},{...d,typeExpansion:!0})==="@json";for(const R of y){let O=l[R],M;if(R==="@context")continue;const L=Ud(n,R,{vocab:!0},d);if(L===null||!(cde(L)||dBe(L))){d.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:R,expandedProperty:L}},options:d});continue}if(dBe(L)){if(o==="@reverse")throw new ju("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:O});if(L in u&&L!=="@included"&&L!=="@type")throw new ju("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:L})}if(L==="@id"){if(!Fb(O)){if(!d.isFrame)throw new ju('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:O});if(Vy(O)){if(!uBe(O))throw new ju('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:O})}else if(Yy(O)){if(!O.every(Q=>Fb(Q)))throw new ju('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:O})}else throw new ju('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:O})}Yw(u,"@id",uS(O).map(Q=>{if(Fb(Q)){const te=Ud(n,Q,{base:!0},d);return d.eventHandler&&(te===null?qy(Q===null?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:Q}},options:d}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:Q}},options:d}):cde(te)||qy({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:Q,expandedId:te}},options:d})),te}return Q}),{propertyIsArray:d.isFrame});continue}if(L==="@type"){Vy(O)&&(O=Object.fromEntries(Object.entries(O).map(([Q,te])=>[Ud(v,Q,{vocab:!0}),uS(te).map(pe=>Ud(v,pe,{base:!0,vocab:!0},{...d,typeExpansion:!0}))]))),N4r(O,d.isFrame),Yw(u,"@type",uS(O).map(Q=>{if(Fb(Q)){const te=Ud(v,Q,{base:!0,vocab:!0},{...d,typeExpansion:!0});return te!=="@json"&&!cde(te)&&d.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:Q}},options:d}),te}return Q}),{propertyIsArray:!!d.isFrame});continue}if(L==="@included"&&ade(n,1.1)){const Q=uS(await gT.expand({activeCtx:n,activeProperty:r,element:O,options:d}));if(!Q.every(te=>I4r(te)))throw new ju("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:O});Yw(u,"@included",Q,{propertyIsArray:!0});continue}if(L==="@graph"&&!(Vy(O)||Yy(O)))throw new ju('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:O});if(L==="@value"){A=O,C&&ade(n,1.1)?u["@value"]=O:Yw(u,"@value",O,{propertyIsArray:d.isFrame});continue}if(L==="@language"){if(O===null)continue;if(!Fb(O)&&!d.isFrame)throw new ju('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:O});O=uS(O).map(Q=>Fb(Q)?Q.toLowerCase():Q);for(const Q of O)Fb(Q)&&!Q.match(Mcn)&&d.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:Q}},options:d});Yw(u,"@language",O,{propertyIsArray:d.isFrame});continue}if(L==="@direction"){if(!Fb(O)&&!d.isFrame)throw new ju('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:O});O=uS(O);for(const Q of O)if(Fb(Q)&&Q!=="ltr"&&Q!=="rtl")throw new ju('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:O});Yw(u,"@direction",O,{propertyIsArray:d.isFrame});continue}if(L==="@index"){if(!Fb(O))throw new ju('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:O});Yw(u,"@index",O);continue}if(L==="@reverse"){if(!Vy(O))throw new ju('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:O});if(M=await gT.expand({activeCtx:n,activeProperty:"@reverse",element:O,options:d}),"@reverse"in M)for(const te in M["@reverse"])Yw(u,te,M["@reverse"][te],{propertyIsArray:!0});let Q=u["@reverse"]||null;for(const te in M){if(te==="@reverse")continue;Q===null&&(Q=u["@reverse"]={}),Yw(Q,te,[],{propertyIsArray:!0});const pe=M[te];for(let Le=0;LeQ==="@id"||Q==="@index")){if(M=uS(M),d.isFrame||(M=M.filter(Q=>{const te=Object.keys(Q).length;return Dcn({value:Q,count:te,options:d})!==null})),M.length===0)continue;M=M.map(Q=>({"@graph":uS(Q)}))}if(H.mappings.has(R)&&H.mappings.get(R).reverse){const Q=u["@reverse"]=u["@reverse"]||{};M=uS(M);for(let te=0;teUd(n,L,{vocab:!0},d)==="@value"))throw new ju("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:M});await Lcn({activeCtx:n,activeProperty:r,expandedActiveProperty:o,element:M,expandedParent:u,options:d,insideList:h,typeScopedContext:v,typeKey:w})}}}function jcn({activeCtx:n,activeProperty:r,value:o,options:l}){if(o==null)return null;const u=Ud(n,r,{vocab:!0},l);if(u==="@id")return Ud(n,o,{base:!0},l);if(u==="@type")return Ud(n,o,{vocab:!0,base:!0},{...l,typeExpansion:!0});const d=Zw(n,r,"@type");if((d==="@id"||u==="@graph")&&Fb(o)){const w=Ud(n,o,{base:!0},l);return w===null&&o.match(P4r)&&l.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:r}},options:l}),{"@id":w}}if(d==="@vocab"&&Fb(o))return{"@id":Ud(n,o,{vocab:!0,base:!0},l)};if(dBe(u))return o;const h={};if(d&&!["@id","@vocab","@none"].includes(d))h["@type"]=d;else if(Fb(o)){const w=Zw(n,r,"@language");w!==null&&(h["@language"]=w);const v=Zw(n,r,"@direction");v!==null&&(h["@direction"]=v)}return["boolean","number","string"].includes(typeof o)||(o=o.toString()),h["@value"]=o,h}function D4r(n,r,o,l){const u=[],d=Object.keys(r).sort();for(const h of d){const w=Ud(n,h,{vocab:!0},l);let v=r[h];Yy(v)||(v=[v]);for(const y of v){if(y===null)continue;if(!Fb(y))throw new ju("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:r});const E={"@value":y};w!=="@none"&&(h.match(Mcn)||l.eventHandler&&qy({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:h}},options:l}),E["@language"]=h.toLowerCase()),o&&(E["@direction"]=o),u.push(E)}}return u}async function Y9e({activeCtx:n,options:r,activeProperty:o,value:l,asGraph:u,indexKey:d,propertyIndex:h}){const w=[],v=Object.keys(l).sort(),y=d==="@type";for(let E of v){if(y){const R=Zw(n,E,"@context");khe(R)||(n=await Aq({activeCtx:n,localCtx:R,propagate:!1,options:r}))}let A=l[E];Yy(A)||(A=[A]),A=await gT.expand({activeCtx:n,activeProperty:o,element:A,options:r,insideList:!1,insideIndex:!0});let C;h?E==="@none"?C="@none":C=jcn({activeCtx:n,activeProperty:d,value:E,options:r}):C=Ud(n,E,{vocab:!0},r),d==="@id"?E=Ud(n,E,{base:!0},r):y&&(E=C);for(let R of A){if(u&&!$4r(R)&&(R={"@graph":[R]}),d==="@type")C==="@none"||(R["@type"]?R["@type"]=[E].concat(R["@type"]):R["@type"]=[E]);else{if(fBe(R)&&!["@language","@type","@index"].includes(d))throw new ju(`Invalid JSON-LD syntax; Attempt to add illegal key to value object: "${d}".`,"jsonld.SyntaxError",{code:"invalid value object",value:R});h?C!=="@none"&&Yw(R,h,C,{propertyIsArray:!0,prependValue:!0}):C!=="@none"&&!(d in R)&&(R[d]=E)}w.push(R)}}return w}const{isKeyword:Fcn}=_O,AE=Ox,Q9e=um,LE=Sv,L4r=_v,e1={};var Fge=e1;e1.createMergedNodeMap=(n,r)=>{r=r||{};const o=r.issuer||new LE.IdentifierIssuer("_:b"),l={"@default":{}};return e1.createNodeMap(n,l,"@default",o),e1.mergeNodeMaps(l)};e1.createNodeMap=(n,r,o,l,u,d)=>{if(Q9e.isArray(n)){for(const y of n)e1.createNodeMap(y,r,o,l,void 0,d);return}if(!Q9e.isObject(n)){d&&d.push(n);return}if(AE.isValue(n)){if("@type"in n){let y=n["@type"];y.indexOf("_:")===0&&(n["@type"]=y=l.getId(y))}d&&d.push(n);return}else if(d&&AE.isList(n)){const y=[];e1.createNodeMap(n["@list"],r,o,l,u,y),d.push({"@list":y});return}if("@type"in n){const y=n["@type"];for(const E of y)E.indexOf("_:")===0&&l.getId(E)}Q9e.isUndefined(u)&&(u=AE.isBlankNode(n)?l.getId(n["@id"]):n["@id"]),d&&d.push({"@id":u});const h=r[o],w=h[u]=h[u]||{};w["@id"]=u;const v=Object.keys(n).sort();for(let y of v){if(y==="@id")continue;if(y==="@reverse"){const A={"@id":u},C=n["@reverse"];for(const R in C){const O=C[R];for(const M of O){let L=M["@id"];AE.isBlankNode(M)&&(L=l.getId(L)),e1.createNodeMap(M,r,o,l,L),LE.addValue(h[L],R,A,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if(y==="@graph"){u in r||(r[u]={}),e1.createNodeMap(n[y],r,u,l);continue}if(y==="@included"){e1.createNodeMap(n[y],r,o,l);continue}if(y!=="@type"&&Fcn(y)){if(y==="@index"&&y in w&&(n[y]!==w[y]||n[y]["@id"]!==w[y]["@id"]))throw new L4r("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:w});w[y]=n[y];continue}const E=n[y];if(y.indexOf("_:")===0&&(y=l.getId(y)),E.length===0){LE.addValue(w,y,[],{propertyIsArray:!0});continue}for(let A of E)if(y==="@type"&&(A=A.indexOf("_:")===0?l.getId(A):A),AE.isSubject(A)||AE.isSubjectReference(A)){if("@id"in A&&!A["@id"])continue;const C=AE.isBlankNode(A)?l.getId(A["@id"]):A["@id"];LE.addValue(w,y,{"@id":C},{propertyIsArray:!0,allowDuplicate:!1}),e1.createNodeMap(A,r,o,l,C)}else if(AE.isValue(A))LE.addValue(w,y,A,{propertyIsArray:!0,allowDuplicate:!1});else if(AE.isList(A)){const C=[];e1.createNodeMap(A["@list"],r,o,l,u,C),A={"@list":C},LE.addValue(w,y,A,{propertyIsArray:!0,allowDuplicate:!1})}else e1.createNodeMap(A,r,o,l,u),LE.addValue(w,y,A,{propertyIsArray:!0,allowDuplicate:!1})}};e1.mergeNodeMapGraphs=n=>{const r={};for(const o of Object.keys(n).sort())for(const l of Object.keys(n[o]).sort()){const u=n[o][l];l in r||(r[l]={"@id":l});const d=r[l];for(const h of Object.keys(u).sort())if(Fcn(h)&&h!=="@type")d[h]=LE.clone(u[h]);else for(const w of u[h])LE.addValue(d,h,LE.clone(w),{propertyIsArray:!0,allowDuplicate:!1})}return r};e1.mergeNodeMaps=n=>{const r=n["@default"],o=Object.keys(n).sort();for(const l of o){if(l==="@default")continue;const u=n[l];let d=r[l];d?"@graph"in d||(d["@graph"]=[]):r[l]=d={"@id":l,"@graph":[]};const h=d["@graph"];for(const w of Object.keys(u).sort()){const v=u[w];AE.isSubjectReference(v)||h.push(v)}}return r};const{isSubjectReference:j4r}=Ox,{createMergedNodeMap:F4r}=Fge,Bcn={};var B4r=Bcn;Bcn.flatten=n=>{const r=F4r(n),o=[],l=Object.keys(r).sort();for(let u=0;u{const{useRdfType:o=!1,useNativeTypes:l=!1,rdfDirection:u=null}=r,d={},h={"@default":d},w={};if(u){if(u==="compound-literal")throw new hBe("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:u});if(u!=="i18n-datatype")throw new hBe("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:u})}for(const E of n){const A=E.graph.termType==="DefaultGraph"?"@default":E.graph.value;A in h||(h[A]={}),A!=="@default"&&!(A in d)&&(d[A]={"@id":A});const C=h[A],R=E.subject.value,O=E.predicate.value,M=E.object;R in C||(C[R]={"@id":R});const L=C[R],H=M.termType.endsWith("Node");if(H&&!(M.value in C)&&(C[M.value]={"@id":M.value}),O===H4r&&!o&&H){UKt(L,"@type",M.value,{propertyIsArray:!0});continue}const G=V4r(M,l,u,r);if(UKt(L,O,G,{propertyIsArray:!0}),H)if(M.value===nDe){const j=C[M.value];"usages"in j||(j.usages=[]),j.usages.push({node:L,property:O,value:G})}else M.value in w?w[M.value]=!1:w[M.value]={node:L,property:O,value:G}}for(const E in h){const A=h[E];if(!(nDe in A))continue;const C=A[nDe];if(C.usages){for(let R of C.usages){let O=R.node,M=R.property,L=R.value;const H=[],G=[];let j=Object.keys(O).length;for(;M===tDe&&BK.isObject(w[O["@id"]])&&BK.isArray(O[eDe])&&O[eDe].length===1&&BK.isArray(O[tDe])&&O[tDe].length===1&&(j===3||j===4&&BK.isArray(O["@type"])&&O["@type"].length===1&&O["@type"][0]===W4r)&&(H.push(O[eDe][0]),G.push(O["@id"]),R=w[O["@id"]],O=R.node,M=R.property,L=R.value,j=Object.keys(O).length,!!Z9e.isBlankNode(O)););delete L["@id"],L["@list"]=H.reverse();for(const Q of G)delete A[Q]}delete C.usages}}const v=[],y=Object.keys(d).sort();for(const E of y){const A=d[E];if(E in h){const C=A["@graph"]=[],R=h[E],O=Object.keys(R).sort();for(const M of O){const L=R[M];Z9e.isSubjectReference(L)||C.push(L)}}Z9e.isSubjectReference(A)||v.push(A)}return v};function V4r(n,r,o,l){if(n.termType.endsWith("Node"))return{"@id":n.value};const u={"@value":n.value};if(n.language)n.language.match(HKt)||l.eventHandler&&GKt({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:n.language}},options:l}),u["@language"]=n.language;else{let d=n.datatype.value;if(d||(d=rDe),d===U4r){d="@json";try{u["@value"]=JSON.parse(u["@value"])}catch(h){throw new hBe("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:u["@value"],cause:h})}}if(r){if(d===VKt)u["@value"]==="true"?u["@value"]=!0:u["@value"]==="false"&&(u["@value"]=!1);else if(BK.isNumeric(u["@value"]))if(d===KKt){const h=parseInt(u["@value"],10);h.toFixed(0)===u["@value"]&&(u["@value"]=h)}else d===zKt&&(u["@value"]=parseFloat(u["@value"]));[VKt,KKt,zKt,rDe].includes(d)||(u["@type"]=d)}else if(o==="i18n-datatype"&&d.startsWith("https://www.w3.org/ns/i18n#")){const[,h,w]=d.split(/[#_]/);h.length>0&&(u["@language"]=h,h.match(HKt)||l.eventHandler&&GKt({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:h}},options:l})),u["@direction"]=w}else d!==rDe&&(u["@type"]=d)}return u}const{createNodeMap:z4r}=Fge,{isKeyword:K4r}=_O,qKt=Ox,q4r=pin,XKt=_v,bK=um,X4r=Sv,{handleEvent:hP}=LJ,{RDF_FIRST:J4r,RDF_REST:Y4r,RDF_NIL:Q4r,RDF_TYPE:Z4r,RDF_JSON_LITERAL:eTr,RDF_LANGSTRING:tTr,XSD_BOOLEAN:nTr,XSD_DOUBLE:JKt,XSD_INTEGER:rTr,XSD_STRING:iTr}=VGe,{isAbsolute:Rhe}=zT,Hcn={};var oTr=Hcn;Hcn.toRDF=(n,r)=>{const o=new X4r.IdentifierIssuer("_:b"),l={"@default":{}};z4r(n,l,"@default",o);const u=[],d=Object.keys(l).sort();for(const h of d){let w;if(h==="@default")w={termType:"DefaultGraph",value:""};else if(Rhe(h))h.startsWith("_:")?w={termType:"BlankNode"}:w={termType:"NamedNode"},w.value=h;else{r.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:h}},options:r});continue}sTr(u,l[h],w,o,r)}return u};function sTr(n,r,o,l,u){const d=Object.keys(r).sort();for(const h of d){const w=r[h],v=Object.keys(w).sort();for(let y of v){const E=w[y];if(y==="@type")y=Z4r;else if(K4r(y))continue;for(const A of E){const C={termType:h.startsWith("_:")?"BlankNode":"NamedNode",value:h};if(!Rhe(h)){u.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:h}},options:u});continue}const R={termType:y.startsWith("_:")?"BlankNode":"NamedNode",value:y};if(!Rhe(y)){u.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:y}},options:u});continue}if(R.termType==="BlankNode"&&!u.produceGeneralizedRdf){u.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:l.getOldIds().find(M=>l.getId(M)===y)}},options:u});continue}const O=pBe(A,l,n,o,u.rdfDirection,u);O&&n.push({subject:C,predicate:R,object:O,graph:o})}}}}function lTr(n,r,o,l,u,d){const h={termType:"NamedNode",value:J4r},w={termType:"NamedNode",value:Y4r},v={termType:"NamedNode",value:Q4r},y=n.pop(),E=y?{termType:"BlankNode",value:r.getId()}:v;let A=E;for(const C of n){const R=pBe(C,r,o,l,u,d),O={termType:"BlankNode",value:r.getId()};o.push({subject:A,predicate:h,object:R,graph:l}),o.push({subject:A,predicate:w,object:O,graph:l}),A=O}if(y){const C=pBe(y,r,o,l,u,d);o.push({subject:A,predicate:h,object:C,graph:l}),o.push({subject:A,predicate:w,object:v,graph:l})}return E}function pBe(n,r,o,l,u,d){const h={};if(qKt.isValue(n)){h.termType="Literal",h.value=void 0,h.datatype={termType:"NamedNode"};let w=n["@value"];const v=n["@type"]||null;if(v==="@json")h.value=q4r(w),h.datatype.value=eTr;else if(bK.isBoolean(w))h.value=w.toString(),h.datatype.value=v||nTr;else if(bK.isDouble(w)||v===JKt)bK.isDouble(w)||(w=parseFloat(w)),h.value=w.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),h.datatype.value=v||JKt;else if(bK.isNumber(w))h.value=w.toFixed(0),h.datatype.value=v||rTr;else if("@direction"in n&&u==="i18n-datatype"){const y=(n["@language"]||"").toLowerCase(),E=n["@direction"],A=`https://www.w3.org/ns/i18n#${y}_${E}`;h.datatype.value=A,h.value=w}else{if("@direction"in n&&u==="compound-literal")throw new XKt("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:u});if("@direction"in n&&u)throw new XKt("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:u});"@language"in n?("@direction"in n&&!u&&d.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:h.value}},options:d}),h.value=w,h.datatype.value=v||tTr,h.language=n["@language"]):("@direction"in n&&!u&&d.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:h.value}},options:d}),h.value=w,h.datatype.value=v||iTr)}}else if(qKt.isList(n)){const w=lTr(n["@list"],r,o,l,u,d);h.termType=w.termType,h.value=w.value}else{const w=bK.isObject(n)?n["@id"]:n;h.termType=w.startsWith("_:")?"BlankNode":"NamedNode",h.value=w}return h.termType==="NamedNode"&&!Rhe(h.value)?(d.eventHandler&&hP({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:h.value}},options:d}),null):h}const{isKeyword:bBe}=_O,Ky=Ox,jc=um,fp=Sv,YKt=zT,Tq=_v,{createNodeMap:aTr,mergeNodeMapGraphs:cTr}=Fge,Xy={};var uTr=Xy;Xy.frameMergedOrDefault=(n,r,o)=>{const l={options:o,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},u=new fp.IdentifierIssuer("_:b");aTr(n,l.graphMap,"@default",u),o.merged&&(l.graphMap["@merged"]=cTr(l.graphMap),l.graph="@merged"),l.subjects=l.graphMap[l.graph];const d=[];Xy.frame(l,Object.keys(l.subjects).sort(),r,d),o.pruneBlankNodeIdentifiers&&(o.bnodesToClear=Object.keys(l.bnodeMap).filter(h=>l.bnodeMap[h].length===1));// remove @preserve from results +return o.link={},ude(d,o)};Xy.frame=(n,r,o,l,u=null)=>{Ucn(o),o=o[0];const d=n.options,h={embed:Xue(o,d,"embed"),explicit:Xue(o,d,"explicit"),requireAll:Xue(o,d,"requireAll")};n.link.hasOwnProperty(n.graph)||(n.link[n.graph]={});const w=n.link[n.graph],v=dTr(n,r,o,h),y=Object.keys(v).sort();for(const E of y){const A=v[E];if(u===null?n.uniqueEmbeds={[n.graph]:{}}:n.uniqueEmbeds[n.graph]=n.uniqueEmbeds[n.graph]||{},h.embed==="@link"&&E in w){h8(l,u,w[E]);continue}const C={"@id":E};if(E.indexOf("_:")===0&&fp.addValue(n.bnodeMap,E,C,{propertyIsArray:!0}),w[E]=C,(h.embed==="@first"||h.embed==="@last")&&n.is11)throw new Tq("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:o});if(!(!n.embedded&&n.uniqueEmbeds[n.graph].hasOwnProperty(E))){if(n.embedded&&(h.embed==="@never"||fTr(A,n.graph,n.subjectStack))){h8(l,u,C);continue}if(n.embedded&&(h.embed=="@first"||h.embed=="@once")&&n.uniqueEmbeds[n.graph].hasOwnProperty(E)){h8(l,u,C);continue}if(h.embed==="@last"&&E in n.uniqueEmbeds[n.graph]&&hTr(n,E),n.uniqueEmbeds[n.graph][E]={parent:l,property:u},n.subjectStack.push({subject:A,graph:n.graph}),E in n.graphMap){let R=!1,O=null;"@graph"in o?(O=o["@graph"][0],R=!(E==="@merged"||E==="@default"),jc.isObject(O)||(O={})):(R=n.graph!=="@merged",O={}),R&&Xy.frame({...n,graph:E,embedded:!1},Object.keys(n.graphMap[E]).sort(),[O],C,"@graph")}"@included"in o&&Xy.frame({...n,embedded:!1},r,o["@included"],C,"@included");for(const R of Object.keys(A).sort()){if(bBe(R)){if(C[R]=fp.clone(A[R]),R==="@type")for(const O of A["@type"])O.indexOf("_:")===0&&fp.addValue(n.bnodeMap,O,C,{propertyIsArray:!0});continue}if(!(h.explicit&&!(R in o)))for(const O of A[R]){const M=R in o?o[R]:QKt(h);if(Ky.isList(O)){const L=o[R]&&o[R][0]&&o[R][0]["@list"]?o[R][0]["@list"]:QKt(h),H={"@list":[]};h8(C,R,H);const G=O["@list"];for(const j of G)Ky.isSubjectReference(j)?Xy.frame({...n,embedded:!0},[j["@id"]],L,H,"@list"):h8(H,"@list",fp.clone(j))}else Ky.isSubjectReference(O)?Xy.frame({...n,embedded:!0},[O["@id"]],M,C,R):gBe(M[0],O)&&h8(C,R,fp.clone(O))}}for(const R of Object.keys(o).sort()){if(R==="@type"){if(!jc.isObject(o[R][0])||!("@default"in o[R][0]))continue}else if(bBe(R))continue;const O=o[R][0]||{};if(!Xue(O,d,"omitDefault")&&!(R in C)){let L="@null";"@default"in O&&(L=fp.clone(O["@default"])),jc.isArray(L)||(L=[L]),C[R]=[{"@preserve":L}]}}for(const R of Object.keys(o["@reverse"]||{}).sort()){const O=o["@reverse"][R];for(const M of Object.keys(n.subjects))fp.getValues(n.subjects[M],R).some(H=>H["@id"]===E)&&(C["@reverse"]=C["@reverse"]||{},fp.addValue(C["@reverse"],R,[],{propertyIsArray:!0}),Xy.frame({...n,embedded:!0},[M],O,C["@reverse"][R],u))}h8(l,u,C),n.subjectStack.pop()}}};Xy.cleanupNull=(n,r)=>{if(jc.isArray(n))return n.map(l=>Xy.cleanupNull(l,r)).filter(l=>l);if(n==="@null")return null;if(jc.isObject(n)){if("@id"in n){const o=n["@id"];if(r.link.hasOwnProperty(o)){const l=r.link[o].indexOf(n);if(l!==-1)return r.link[o][l];r.link[o].push(n)}else r.link[o]=[n]}for(const o in n)n[o]=Xy.cleanupNull(n[o],r)}return n};function QKt(n){const r={};for(const o in n)n[o]!==void 0&&(r["@"+o]=[n[o]]);return[r]}function fTr(n,r,o){for(let l=o.length-1;l>=0;--l){const u=o[l];if(u.graph===r&&u.subject["@id"]===n["@id"])return!0}return!1}function Xue(n,r,o){const l="@"+o;let u=l in n?n[l][0]:r[o];if(o==="embed"){if(u===!0)u="@once";else if(u===!1)u="@never";else if(u!=="@always"&&u!=="@never"&&u!=="@link"&&u!=="@first"&&u!=="@last"&&u!=="@once")throw new Tq("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:n})}return u}function Ucn(n){if(!jc.isArray(n)||n.length!==1||!jc.isObject(n[0]))throw new Tq("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:n});if("@id"in n[0]){for(const r of fp.asArray(n[0]["@id"]))if(!(jc.isObject(r)||YKt.isAbsolute(r))||jc.isString(r)&&r.indexOf("_:")===0)throw new Tq("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:n})}if("@type"in n[0]){for(const r of fp.asArray(n[0]["@type"]))if(!(jc.isObject(r)||YKt.isAbsolute(r)||r==="@json")||jc.isString(r)&&r.indexOf("_:")===0)throw new Tq("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:n})}}function dTr(n,r,o,l){const u={};for(const d of r){const h=n.graphMap[n.graph][d];Gcn(n,h,o,l)&&(u[d]=h)}return u}function Gcn(n,r,o,l){let u=!0,d=!1;for(const h in o){let w=!1;const v=fp.getValues(r,h),y=fp.getValues(o,h).length===0;if(h==="@id"){if(jc.isEmptyObject(o["@id"][0]||{})?w=!0:o["@id"].length>=0&&(w=o["@id"].includes(v[0])),!l.requireAll)return w}else if(h==="@type"){if(u=!1,y){if(v.length>0)return!1;w=!0}else if(o["@type"].length===1&&jc.isEmptyObject(o["@type"][0]))w=v.length>0;else for(const E of o["@type"])jc.isObject(E)&&"@default"in E?w=!0:w=w||v.some(A=>A===E);if(!l.requireAll)return w}else{if(bBe(h))continue;{const E=fp.getValues(o,h)[0];let A=!1;if(E&&(Ucn([E]),A="@default"in E),u=!1,v.length===0&&A)continue;if(v.length>0&&y)return!1;if(E===void 0){if(v.length>0)return!1;w=!0}else if(Ky.isList(E)){const C=E["@list"][0];if(Ky.isList(v[0])){const R=v[0]["@list"];Ky.isValue(C)?w=R.some(O=>gBe(C,O)):(Ky.isSubject(C)||Ky.isSubjectReference(C))&&(w=R.some(O=>ZKt(n,C,O,l)))}}else Ky.isValue(E)?w=v.some(C=>gBe(E,C)):Ky.isSubjectReference(E)?w=v.some(C=>ZKt(n,E,C,l)):jc.isObject(E)?w=v.length>0:w=!1}}if(!w&&l.requireAll)return!1;d=d||w}return u||d}function hTr(n,r){const o=n.uniqueEmbeds[n.graph],l=o[r],u=l.parent,d=l.property,h={"@id":r};if(jc.isArray(u)){for(let v=0;v{const y=Object.keys(o);for(const E of y)E in o&&jc.isObject(o[E].parent)&&o[E].parent["@id"]===v&&(delete o[E],w(E))};w(r)}/** + * Removes the @preserve keywords from expanded result of framing. + * + * @param input the framed, framed output. + * @param options the framing options used. + * + * @return the resulting output. + */function ude(n,r){if(jc.isArray(n))return n.map(o=>ude(o,r));if(jc.isObject(n)){// remove @preserve +if("@preserve"in n)return n["@preserve"][0];if(Ky.isValue(n))return n;if(Ky.isList(n))return n["@list"]=ude(n["@list"],r),n;if("@id"in n){const o=n["@id"];if(r.link.hasOwnProperty(o)){const l=r.link[o].indexOf(n);if(l!==-1)return r.link[o][l];r.link[o].push(n)}else r.link[o]=[n]}for(const o in n){if(o==="@id"&&r.bnodesToClear.includes(n[o])){delete n["@id"];continue}n[o]=ude(n[o],r)}}return n}function h8(n,r,o){jc.isObject(n)?fp.addValue(n,r,o,{propertyIsArray:!0}):n.push(o)}function ZKt(n,r,o,l){if(!("@id"in o))return!1;const u=n.subjects[o["@id"]];return u&&Gcn(n,u,r,l)}function gBe(n,r){const o=r["@value"],l=r["@type"],u=r["@language"],d=n["@value"]?jc.isArray(n["@value"])?n["@value"]:[n["@value"]]:[],h=n["@type"]?jc.isArray(n["@type"])?n["@type"]:[n["@type"]]:[],w=n["@language"]?jc.isArray(n["@language"])?n["@language"]:[n["@language"]]:[];return d.length===0&&h.length===0&&w.length===0?!0:!(!(d.includes(o)||jc.isEmptyObject(d[0]))||!(!l&&h.length===0||h.includes(l)||l&&jc.isEmptyObject(h[0]))||!(!u&&w.length===0||w.includes(u)||u&&jc.isEmptyObject(w[0])))}const qGe=_v,{isArray:D4,isObject:wT,isString:Vcn,isUndefined:iDe}=um,{isList:wBe,isValue:LR,isGraph:zcn,isSimpleGraph:eqt,isSubjectReference:oDe}=Ox,{expandIri:Kcn,getContextValue:Qg,isKeyword:qcn,process:sDe,processingMode:pTr}=_O,{removeBase:tqt,prependBase:bTr}=zT,{REGEX_KEYWORD:gTr,addValue:Xw,asArray:Jue,compareShortestLeast:wTr}=Sv,Qs={};var mTr=Qs;Qs.compact=async({activeCtx:n,activeProperty:r=null,element:o,options:l={}})=>{if(D4(o)){let d=[];for(let h=0;h1&&(y=Array.from(y).sort());const E=n;for(const C of y){const R=Qs.compactIri({activeCtx:E,iri:C,relativeTo:{vocab:!0}}),O=Qg(w,R,"@context");iDe(O)||(n=await sDe({activeCtx:n,localCtx:O,options:l,propagate:!1}))}const A=Object.keys(o).sort();for(const C of A){const R=o[C];if(C==="@id"){let O=Jue(R).map(L=>Qs.compactIri({activeCtx:n,iri:L,relativeTo:{vocab:!1},base:l.base}));O.length===1&&(O=O[0]);const M=Qs.compactIri({activeCtx:n,iri:"@id",relativeTo:{vocab:!0}});h[M]=O;continue}if(C==="@type"){let O=Jue(R).map(j=>Qs.compactIri({activeCtx:w,iri:j,relativeTo:{vocab:!0}}));O.length===1&&(O=O[0]);const M=Qs.compactIri({activeCtx:n,iri:"@type",relativeTo:{vocab:!0}}),G=(Qg(n,M,"@container")||[]).includes("@set")&&pTr(n,1.1)||D4(O)&&R.length===0;Xw(h,M,O,{propertyIsArray:G});continue}if(C==="@reverse"){const O=await Qs.compact({activeCtx:n,activeProperty:"@reverse",element:R,options:l});for(const M in O)if(n.mappings.has(M)&&n.mappings.get(M).reverse){const L=O[M],G=(Qg(n,M,"@container")||[]).includes("@set")||!l.compactArrays;Xw(h,M,L,{propertyIsArray:G}),delete O[M]}if(Object.keys(O).length>0){const M=Qs.compactIri({activeCtx:n,iri:C,relativeTo:{vocab:!0}});Xw(h,M,O)}continue}if(C==="@preserve"){const O=await Qs.compact({activeCtx:n,activeProperty:r,element:R,options:l});D4(O)&&O.length===0||Xw(h,C,O);continue}if(C==="@index"){if((Qg(n,r,"@container")||[]).includes("@index"))continue;const M=Qs.compactIri({activeCtx:n,iri:C,relativeTo:{vocab:!0}});Xw(h,M,R);continue}if(C!=="@graph"&&C!=="@list"&&C!=="@included"&&qcn(C)){const O=Qs.compactIri({activeCtx:n,iri:C,relativeTo:{vocab:!0}});Xw(h,O,R);continue}if(!D4(R))throw new qGe("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(R.length===0){const O=Qs.compactIri({activeCtx:n,iri:C,value:R,relativeTo:{vocab:!0},reverse:d}),M=n.mappings.has(O)?n.mappings.get(O)["@nest"]:null;let L=h;M&&(nqt(n,M,l),wT(h[M])||(h[M]={}),L=h[M]),Xw(L,O,R,{propertyIsArray:!0})}for(const O of R){const M=Qs.compactIri({activeCtx:n,iri:C,value:O,relativeTo:{vocab:!0},reverse:d}),L=n.mappings.has(M)?n.mappings.get(M)["@nest"]:null;let H=h;L&&(nqt(n,L,l),wT(h[L])||(h[L]={}),H=h[L]);const G=Qg(n,M,"@container")||[],j=zcn(O),Q=wBe(O);let te;Q?te=O["@list"]:j&&(te=O["@graph"]);let pe=await Qs.compact({activeCtx:n,activeProperty:M,element:Q||j?te:O,options:l});if(Q)if(D4(pe)||(pe=[pe]),!G.includes("@list"))pe={[Qs.compactIri({activeCtx:n,iri:"@list",relativeTo:{vocab:!0}})]:pe},"@index"in O&&(pe[Qs.compactIri({activeCtx:n,iri:"@index",relativeTo:{vocab:!0}})]=O["@index"]);else{Xw(H,M,pe,{valueIsArray:!0,allowDuplicate:!0});continue}if(j)if(G.includes("@graph")&&(G.includes("@id")||G.includes("@index")&&eqt(O))){let Le;H.hasOwnProperty(M)?Le=H[M]:H[M]=Le={};const Ee=(G.includes("@id")?O["@id"]:O["@index"])||Qs.compactIri({activeCtx:n,iri:"@none",relativeTo:{vocab:!0}});Xw(Le,Ee,pe,{propertyIsArray:!l.compactArrays||G.includes("@set")})}else G.includes("@graph")&&eqt(O)?(D4(pe)&&pe.length>1&&(pe={"@included":pe}),Xw(H,M,pe,{propertyIsArray:!l.compactArrays||G.includes("@set")})):(D4(pe)&&pe.length===1&&l.compactArrays&&(pe=pe[0]),pe={[Qs.compactIri({activeCtx:n,iri:"@graph",relativeTo:{vocab:!0}})]:pe},"@id"in O&&(pe[Qs.compactIri({activeCtx:n,iri:"@id",relativeTo:{vocab:!0}})]=O["@id"]),"@index"in O&&(pe[Qs.compactIri({activeCtx:n,iri:"@index",relativeTo:{vocab:!0}})]=O["@index"]),Xw(H,M,pe,{propertyIsArray:!l.compactArrays||G.includes("@set")}));else if(G.includes("@language")||G.includes("@index")||G.includes("@id")||G.includes("@type")){let Le;H.hasOwnProperty(M)?Le=H[M]:H[M]=Le={};let Ee;if(G.includes("@language"))LR(pe)&&(pe=pe["@value"]),Ee=O["@language"];else if(G.includes("@index")){const le=Qg(n,M,"@index")||"@index",xe=Qs.compactIri({activeCtx:n,iri:le,relativeTo:{vocab:!0}});if(le==="@index")Ee=O["@index"],delete pe[xe];else{let be;if([Ee,...be]=Jue(pe[le]||[]),!Vcn(Ee))Ee=null;else switch(be.length){case 0:delete pe[le];break;case 1:pe[le]=be[0];break;default:pe[le]=be;break}}}else if(G.includes("@id")){const le=Qs.compactIri({activeCtx:n,iri:"@id",relativeTo:{vocab:!0}});Ee=pe[le],delete pe[le]}else if(G.includes("@type")){const le=Qs.compactIri({activeCtx:n,iri:"@type",relativeTo:{vocab:!0}});let xe;switch([Ee,...xe]=Jue(pe[le]||[]),xe.length){case 0:delete pe[le];break;case 1:pe[le]=xe[0];break;default:pe[le]=xe;break}Object.keys(pe).length===1&&"@id"in O&&(pe=await Qs.compact({activeCtx:n,activeProperty:M,element:{"@id":O["@id"]},options:l}))}Ee||(Ee=Qs.compactIri({activeCtx:n,iri:"@none",relativeTo:{vocab:!0}})),Xw(Le,Ee,pe,{propertyIsArray:G.includes("@set")})}else{const Le=!l.compactArrays||G.includes("@set")||G.includes("@list")||D4(pe)&&pe.length===0||C==="@list"||C==="@graph";Xw(H,M,pe,{propertyIsArray:Le})}}}return h}return o};Qs.compactIri=({activeCtx:n,iri:r,value:o=null,relativeTo:l={vocab:!1},reverse:u=!1,base:d=null})=>{if(r===null)return r;n.isPropertyTermScoped&&n.previousContext&&(n=n.previousContext);const h=n.getInverse();if(qcn(r)&&r in h&&"@none"in h[r]&&"@type"in h[r]["@none"]&&"@none"in h[r]["@none"]["@type"])return h[r]["@none"]["@type"]["@none"];if(l.vocab&&r in h){const A=n["@language"]||"@none",C=[];wT(o)&&"@index"in o&&!("@graph"in o)&&C.push("@index","@index@set"),wT(o)&&"@preserve"in o&&(o=o["@preserve"][0]),zcn(o)?("@index"in o&&C.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in o&&C.push("@graph@id","@graph@id@set"),C.push("@graph","@graph@set","@set"),"@index"in o||C.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in o||C.push("@graph@id","@graph@id@set")):wT(o)&&!LR(o)&&C.push("@id","@id@set","@type","@set@type");let R="@language",O="@null";if(u)R="@type",O="@reverse",C.push("@set");else if(wBe(o)){"@index"in o||C.push("@list");const L=o["@list"];if(L.length===0)R="@any",O="@none";else{let H=L.length===0?A:null,G=null;for(let j=0;j=0;--A){const C=v[A],R=C.terms;for(const O of R){const M=O+":"+r.substr(C.iri.length);n.mappings.get(O)._prefix&&(!n.mappings.has(M)||o===null&&n.mappings.get(M)["@id"]===r)&&(w===null||wTr(M,w)<0)&&(w=M)}}if(w!==null)return w;for(const[A,C]of n.mappings)if(C&&C._prefix&&r.startsWith(A+":"))throw new qGe(`Absolute IRI "${r}" confused with prefix "${A}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:n});if(!l.vocab)if("@base"in n)if(n["@base"]){const A=tqt(bTr(d,n["@base"]),r);return gTr.test(A)?`./${A}`:A}else return r;else return tqt(d,r);return r};Qs.compactValue=({activeCtx:n,activeProperty:r,value:o,options:l})=>{if(LR(o)){const w=Qg(n,r,"@type"),v=Qg(n,r,"@language"),y=Qg(n,r,"@direction"),E=Qg(n,r,"@container")||[],A="@index"in o&&!E.includes("@index");if(!A&&w!=="@none"&&(o["@type"]===w||"@language"in o&&o["@language"]===v&&"@direction"in o&&o["@direction"]===y||"@language"in o&&o["@language"]===v||"@direction"in o&&o["@direction"]===y))return o["@value"];const C=Object.keys(o).length,R=C===1||C===2&&"@index"in o&&!A,O="@language"in n,M=Vcn(o["@value"]),L=n.mappings.has(r)&&n.mappings.get(r)["@language"]===null;if(R&&w!=="@none"&&(!O||!M||L))return o["@value"];const H={};return A&&(H[Qs.compactIri({activeCtx:n,iri:"@index",relativeTo:{vocab:!0}})]=o["@index"]),"@type"in o?H[Qs.compactIri({activeCtx:n,iri:"@type",relativeTo:{vocab:!0}})]=Qs.compactIri({activeCtx:n,iri:o["@type"],relativeTo:{vocab:!0}}):"@language"in o&&(H[Qs.compactIri({activeCtx:n,iri:"@language",relativeTo:{vocab:!0}})]=o["@language"]),"@direction"in o&&(H[Qs.compactIri({activeCtx:n,iri:"@direction",relativeTo:{vocab:!0}})]=o["@direction"]),H[Qs.compactIri({activeCtx:n,iri:"@value",relativeTo:{vocab:!0}})]=o["@value"],H}const u=Kcn(n,r,{vocab:!0},l),d=Qg(n,r,"@type"),h=Qs.compactIri({activeCtx:n,iri:o["@id"],relativeTo:{vocab:d==="@vocab"},base:l.base});return d==="@id"||d==="@vocab"||u==="@graph"?h:{[Qs.compactIri({activeCtx:n,iri:"@id",relativeTo:{vocab:!0}})]:h}};function yTr(n,r,o,l,u,d){d===null&&(d="@null");const h=[];if((d==="@id"||d==="@reverse")&&wT(o)&&"@id"in o){d==="@reverse"&&h.push("@reverse");const v=Qs.compactIri({activeCtx:n,iri:o["@id"],relativeTo:{vocab:!0}});n.mappings.has(v)&&n.mappings.get(v)&&n.mappings.get(v)["@id"]===o["@id"]?h.push.apply(h,["@vocab","@id"]):h.push.apply(h,["@id","@vocab"])}else{h.push(d);const v=h.find(y=>y.includes("_"));v&&h.push(v.replace(/^[^_]+_/,"_"))}h.push("@none");const w=n.inverse[r];for(const v of l){if(!(v in w))continue;const y=w[v][u];for(const E of h)if(E in y)return y[E]}return null}function nqt(n,r,o){if(Kcn(n,r,{vocab:!0},o)!=="@nest")throw new qGe("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}var lDe,rqt;function vTr(){return rqt||(rqt=1,lDe=n=>{class r{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(r,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(r.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:r}),r.compact=function(o,l){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):n.compact(o,l)},r.expand=function(o){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):n.expand(o)},r.flatten=function(o){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):n.flatten(o)},r}),lDe}/** + * A JavaScript implementation of the JSON-LD API. + * + * @author Dave Longley + * + * @license BSD 3-Clause License + * Copyright (c) 2011-2022 Digital Bazaar, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * Neither the name of the Digital Bazaar, Inc. nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */const iqt=GGe,oqt=l4r,B4=Sv,RR=v4r,aDe=B4.IdentifierIssuer,RE=_v,_Tr=$cn,Yue=S4r,{expand:STr}=M4r,{flatten:ETr}=B4r,{fromRDF:kTr}=G4r,{toRDF:RTr}=oTr,{frameMergedOrDefault:xTr,cleanupNull:CTr}=uTr,{isArray:uD,isObject:p8,isString:xE}=um,{isSubjectReference:ATr}=Ox,{expandIri:TTr,getInitialContext:Que,process:sqt,processingMode:cDe}=_O,{compact:$Tr,compactIri:ITr}=mTr,{createNodeMap:PTr,createMergedNodeMap:OTr,mergeNodeMaps:NTr}=Fge,{logEventHandler:MTr,logWarningEventHandler:DTr,safeEventHandler:LTr,setDefaultEventHandler:jTr,setupEventHandler:FTr,strictEventHandler:BTr,unhandledEventHandler:WTr}=LJ,Xcn=function(n){const r={},l=new _Tr({max:100});n.compact=async function(d,h,w){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(h===null)throw new RE("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(d===null)return null;w=u(w,{base:xE(d)?d:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new aDe("_:b"),contextResolver:new RR({sharedCache:l})}),w.link&&(w.skipExpansion=!0),w.compactToRelative||delete w.base;let v;w.skipExpansion?v=d:v=await n.expand(d,w);const y=await n.processContext(Que(w),h,w);let E=await $Tr({activeCtx:y,element:v,options:w});w.compactArrays&&!w.graph&&uD(E)?E.length===1?E=E[0]:E.length===0&&(E={}):w.graph&&p8(E)&&(E=[E]),p8(h)&&"@context"in h&&(h=h["@context"]),h=B4.clone(h),uD(h)||(h=[h]);const A=h;h=[];for(let R=0;R0)&&h.push(A[R]);const C=h.length>0;if(h.length===1&&(h=h[0]),uD(E)){const R=ITr({activeCtx:y,iri:"@graph",relativeTo:{vocab:!0}}),O=E;E={},C&&(E["@context"]=h),E[R]=O}else if(p8(E)&&C){const R=E;E={"@context":h};for(const O in R)E[O]=R[O]}return E},n.expand=async function(d,h){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");h=u(h,{keepFreeFloatingNodes:!1,contextResolver:new RR({sharedCache:l})});const w={},v=[];if("expandContext"in h){const C=B4.clone(h.expandContext);p8(C)&&"@context"in C?w.expandContext=C:w.expandContext={"@context":C},v.push(w.expandContext)}let y;if(!xE(d))w.input=B4.clone(d);else{const C=await n.get(d,h);y=C.documentUrl,w.input=C.document,C.contextUrl&&(w.remoteContext={"@context":C.contextUrl},v.push(w.remoteContext))}"base"in h||(h.base=y||"");let E=Que(h);for(const C of v)E=await sqt({activeCtx:E,localCtx:C,options:h});let A=await STr({activeCtx:E,element:w.input,options:h});return p8(A)&&"@graph"in A&&Object.keys(A).length===1?A=A["@graph"]:A===null&&(A=[]),uD(A)||(A=[A]),A},n.flatten=async function(d,h,w){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");typeof h=="function"?h=null:h=h||null,w=u(w,{base:xE(d)?d:"",contextResolver:new RR({sharedCache:l})});const v=await n.expand(d,w),y=ETr(v);return h===null?y:(w.graph=!0,w.skipExpansion=!0,await n.compact(y,h,w))},n.frame=async function(d,h,w){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(w=u(w,{base:xE(d)?d:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new RR({sharedCache:l})}),xE(h)){const L=await n.get(h,w);if(h=L.document,L.contextUrl){let H=h["@context"];H?uD(H)?H.push(L.contextUrl):H=[H,L.contextUrl]:H=L.contextUrl,h["@context"]=H}}const v=h?h["@context"]||{}:{},y=await n.processContext(Que(w),v,w);w.hasOwnProperty("omitGraph")||(w.omitGraph=cDe(y,1.1)),w.hasOwnProperty("pruneBlankNodeIdentifiers")||(w.pruneBlankNodeIdentifiers=cDe(y,1.1));const E=await n.expand(d,w),A={...w};A.isFrame=!0,A.keepFreeFloatingNodes=!0;const C=await n.expand(h,A),R=Object.keys(h).map(L=>TTr(y,L,{vocab:!0}));A.merged=!R.includes("@graph"),A.is11=cDe(y,1.1);const O=xTr(E,C,A);A.graph=!w.omitGraph,A.skipExpansion=!0,A.link={},A.framing=!0;let M=await n.compact(O,v,A);return A.link={},M=CTr(M,A),M},n.link=async function(d,h,w){const v={};return h&&(v["@context"]=h),v["@embed"]="@link",n.frame(d,v,w)},n.normalize=n.canonize=async function(d,h){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");if(h=u(h,{base:xE(d)?d:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new RR({sharedCache:l})}),"inputFormat"in h){if(h.inputFormat!=="application/n-quads"&&h.inputFormat!=="application/nquads")throw new RE("Unknown canonicalization input format.","jsonld.CanonizeError");const y=Yue.parse(d);return iqt.canonize(y,h)}const w={...h};delete w.format,w.produceGeneralizedRdf=!1;const v=await n.toRDF(d,w);return iqt.canonize(v,h)},n.fromRDF=async function(d,h){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");h=u(h,{format:xE(d)?"application/n-quads":void 0});const{format:w}=h;let{rdfParser:v}=h;if(w){if(v=v||r[w],!v)throw new RE("Unknown input format.","jsonld.UnknownFormat",{format:w})}else v=()=>d;const y=await v(d);return kTr(y,h)},n.toRDF=async function(d,h){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");h=u(h,{base:xE(d)?d:"",skipExpansion:!1,contextResolver:new RR({sharedCache:l})});let w;h.skipExpansion?w=d:w=await n.expand(d,h);const v=RTr(w,h);if(h.format){if(h.format==="application/n-quads"||h.format==="application/nquads")return Yue.serialize(v);throw new RE("Unknown output format.","jsonld.UnknownFormat",{format:h.format})}return v},n.createNodeMap=async function(d,h){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");h=u(h,{base:xE(d)?d:"",contextResolver:new RR({sharedCache:l})});const w=await n.expand(d,h);return OTr(w,h)},n.merge=async function(d,h,w){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!uD(d))throw new TypeError('Could not merge, "docs" must be an array.');typeof h=="function"?h=null:h=h||null,w=u(w,{contextResolver:new RR({sharedCache:l})});const v=await Promise.all(d.map(L=>{const H={...w};return n.expand(L,H)}));let y=!0;"mergeNodes"in w&&(y=w.mergeNodes);const E=w.issuer||new aDe("_:b"),A={"@default":{}};for(let L=0;Ln._documentLoader,set:d=>n._documentLoader=d}),n.documentLoader=async d=>{throw new RE("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:d})},n.get=async function(d,h){let w;typeof h.documentLoader=="function"?w=h.documentLoader:w=n.documentLoader;const v=await w(d);try{if(!v.document)throw new RE("No remote document found at the given URL.","jsonld.NullRemoteDocument");xE(v.document)&&(v.document=JSON.parse(v.document))}catch(y){throw new RE("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:y,remoteDoc:v})}return v},n.processContext=async function(d,h,w){return w=u(w,{base:"",contextResolver:new RR({sharedCache:l})}),h===null?Que(w):(h=B4.clone(h),p8(h)&&"@context"in h||(h={"@context":h}),sqt({activeCtx:d,localCtx:h,options:w}))},n.getContextValue=_O.getContextValue,n.documentLoaders={},n.useDocumentLoader=function(d){if(!(d in n.documentLoaders))throw new RE('Unknown document loader type: "'+d+'"',"jsonld.UnknownDocumentLoader",{type:d});n.documentLoader=n.documentLoaders[d].apply(n,Array.prototype.slice.call(arguments,1))},n.registerRDFParser=function(d,h){r[d]=h},n.unregisterRDFParser=function(d){delete r[d]},n.registerRDFParser("application/n-quads",Yue.parse),n.registerRDFParser("application/nquads",Yue.parse),n.url=zT,n.logEventHandler=MTr,n.logWarningEventHandler=DTr,n.safeEventHandler=LTr,n.setDefaultEventHandler=jTr,n.strictEventHandler=BTr,n.unhandledEventHandler=WTr,n.util=B4,Object.assign(n,B4),n.promises=n,n.RequestQueue=Acn(),n.JsonLdProcessor=vTr()(n),oqt.setupGlobals(n),oqt.setupDocumentLoaders(n);function u(d,{documentLoader:h=n.documentLoader,...w}){if(d&&"compactionMap"in d)throw new RE('"compactionMap" not supported.',"jsonld.OptionsError");if(d&&"expansionMap"in d)throw new RE('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:h},w,d,{eventHandler:FTr({options:d})})}return n},XGe=function(){return Xcn(function(){return XGe()})};Xcn(XGe);var HTr=XGe;const rUr=cv(HTr);var Jcn={exports:{}},uDe={exports:{}},Gf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},Ycn={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Gf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Ycn);var g1=Ycn.exports,JGe={};const{format:UTr,inspect:xhe,AggregateError:GTr}=g1,VTr=globalThis.AggregateError||GTr,zTr=Symbol("kIsNodeError"),KTr=["string","function","number","object","Function","Object","boolean","bigint","symbol"],qTr=/^([A-Z][a-z0-9]*)+$/,XTr="__node_internal_",Bge={};function pP(n,r){if(!n)throw new Bge.ERR_INTERNAL_ASSERTION(r)}function lqt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function JTr(n,r,o){if(typeof r=="function")return pP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return pP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:UTr(r,...o)}function rb(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(JTr(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[zTr]=!0,Bge[n]=l}function aqt(n){const r=XTr+n.name;return Object.defineProperty(n,"name",{value:r}),n}function YTr(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new VTr([r,n],r.message);return o.code=r.code,o}return n||r}let QTr=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Bge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};rb("ERR_ASSERTION","%s",Error);rb("ERR_INVALID_ARG_TYPE",(n,r,o)=>{pP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)pP(typeof v=="string","All expected entries have to be of type string"),KTr.includes(v)?u.push(v.toLowerCase()):qTr.test(v)?d.push(v):(pP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=xhe(o,{depth:-1});l+=`. Received ${v}`}}else{let v=xhe(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);rb("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=xhe(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);rb("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);rb("ERR_MISSING_ARGS",(...n)=>{pP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);rb("ERR_OUT_OF_RANGE",(n,r,o)=>{pP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=lqt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=lqt(l)),l+="n"):l=xhe(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);rb("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);rb("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);rb("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);rb("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);rb("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);rb("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);rb("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);rb("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);rb("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);rb("ERR_STREAM_WRITE_AFTER_END","write after end",Error);rb("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var D0={AbortError:QTr,aggregateTwoErrors:aqt(YTr),hideStackFrames:aqt,codes:Bge};const{ArrayIsArray:YGe,ArrayPrototypeIncludes:Qcn,ArrayPrototypeJoin:Zcn,ArrayPrototypeMap:ZTr,NumberIsInteger:QGe,NumberIsNaN:e$r,NumberMAX_SAFE_INTEGER:t$r,NumberMIN_SAFE_INTEGER:n$r,NumberParseInt:r$r,ObjectPrototypeHasOwnProperty:i$r,RegExpPrototypeExec:eun,String:o$r,StringPrototypeToUpperCase:s$r,StringPrototypeTrim:l$r}=Gf,{hideStackFrames:Ev,codes:{ERR_SOCKET_BAD_PORT:a$r,ERR_INVALID_ARG_TYPE:eg,ERR_INVALID_ARG_VALUE:Pj,ERR_OUT_OF_RANGE:DP,ERR_UNKNOWN_SIGNAL:cqt}}=D0,{normalizeEncoding:c$r}=g1,{isAsyncFunction:u$r,isArrayBufferView:f$r}=g1.types,uqt={};function d$r(n){return n===(n|0)}function h$r(n){return n===n>>>0}const p$r=/^[0-7]+$/,b$r="must be a 32-bit unsigned integer or an octal string";function g$r(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(eun(p$r,n)===null)throw new Pj(r,n,b$r);n=r$r(n,8)}return tun(n,r),n}const w$r=Ev((n,r,o=n$r,l=t$r)=>{if(typeof n!="number")throw new eg(r,"number",n);if(!QGe(n))throw new DP(r,"an integer",n);if(nl)throw new DP(r,`>= ${o} && <= ${l}`,n)}),m$r=Ev((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new eg(r,"number",n);if(!QGe(n))throw new DP(r,"an integer",n);if(nl)throw new DP(r,`>= ${o} && <= ${l}`,n)}),tun=Ev((n,r,o=!1)=>{if(typeof n!="number")throw new eg(r,"number",n);if(!QGe(n))throw new DP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new DP(r,`>= ${l} && <= ${u}`,n)});function ZGe(n,r){if(typeof n!="string")throw new eg(r,"string",n)}function y$r(n,r,o=void 0,l){if(typeof n!="number")throw new eg(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&e$r(n))throw new DP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const v$r=Ev((n,r,o)=>{if(!Qcn(o,n)){const u="must be one of: "+Zcn(ZTr(o,d=>typeof d=="string"?`'${d}'`:o$r(d)),", ");throw new Pj(r,n,u)}});function nun(n,r){if(typeof n!="boolean")throw new eg(r,"boolean",n)}function fDe(n,r,o){return n==null||!i$r(n,r)?o:n[r]}const _$r=Ev((n,r,o=null)=>{const l=fDe(o,"allowArray",!1),u=fDe(o,"allowFunction",!1);if(!fDe(o,"nullable",!1)&&n===null||!l&&YGe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new eg(r,"Object",n)}),S$r=Ev((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new eg(r,"a dictionary",n)}),Wge=Ev((n,r,o=0)=>{if(!YGe(n))throw new eg(r,"Array",n);if(n.length{if(!f$r(n))throw new eg(r,["Buffer","TypedArray","DataView"],n)});function A$r(n,r){const o=c$r(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Pj("encoding",r,`is invalid for data of length ${l}`)}function T$r(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&l$r(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new a$r(r,n,o);return n|0}const run=Ev((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new eg(r,"AbortSignal",n)}),$$r=Ev((n,r)=>{if(typeof n!="function")throw new eg(r,"Function",n)}),I$r=Ev((n,r)=>{if(typeof n!="function"||u$r(n))throw new eg(r,"Function",n)}),P$r=Ev((n,r)=>{if(n!==void 0)throw new eg(r,"undefined",n)});function O$r(n,r,o){if(!Qcn(o,n))throw new eg(r,`('${Zcn(o,"|")}')`,n)}const N$r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function fqt(n,r){if(typeof n>"u"||!eun(N$r,n))throw new Pj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function M$r(n){if(typeof n=="string")return fqt(n,"hints"),n;if(YGe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var jJ={isInt32:d$r,isUint32:h$r,parseFileMode:g$r,validateArray:Wge,validateStringArray:E$r,validateBooleanArray:k$r,validateAbortSignalArray:R$r,validateBoolean:nun,validateBuffer:C$r,validateDictionary:S$r,validateEncoding:A$r,validateFunction:$$r,validateInt32:m$r,validateInteger:w$r,validateNumber:y$r,validateObject:_$r,validateOneOf:v$r,validatePlainFunction:I$r,validatePort:T$r,validateSignalName:x$r,validateString:ZGe,validateUint32:tun,validateUndefined:P$r,validateUnion:O$r,validateAbortSignal:run,validateLinkHeaderValue:M$r},eVe={exports:{}};const{SymbolAsyncIterator:dqt,SymbolIterator:hqt,SymbolFor:SO}=Gf,iun=SO("nodejs.stream.destroyed"),oun=SO("nodejs.stream.errored"),mBe=SO("nodejs.stream.readable"),yBe=SO("nodejs.stream.writable"),sun=SO("nodejs.stream.disturbed"),D$r=SO("nodejs.webstream.isClosedPromise"),L$r=SO("nodejs.webstream.controllerErrorFunction");function Hge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function Uge(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function j$r(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function Rk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function lun(n){return!!(n&&!Rk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function aun(n){return!!(n&&!Rk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function cun(n){return!!(n&&!Rk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function F$r(n){return lun(n)||aun(n)||cun(n)}function B$r(n,r){return n==null?!1:r===!0?typeof n[dqt]=="function":r===!1?typeof n[hqt]=="function":typeof n[dqt]=="function"||typeof n[hqt]=="function"}function Gge(n){if(!Rk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[iun]||l!=null&&l.destroyed)}function uun(n){if(!Uge(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function W$r(n,r){if(!Uge(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function H$r(n){if(!Hge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function fun(n,r){if(!Hge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function dun(n){return n&&n[mBe]!=null?n[mBe]:typeof(n==null?void 0:n.readable)!="boolean"?null:Gge(n)?!1:Hge(n)&&n.readable&&!fun(n)}function hun(n){return n&&n[yBe]!=null?n[yBe]:typeof(n==null?void 0:n.writable)!="boolean"?null:Gge(n)?!1:Uge(n)&&n.writable&&!uun(n)}function U$r(n,r){return Rk(n)?Gge(n)?!0:!((r==null?void 0:r.readable)!==!1&&dun(n)||(r==null?void 0:r.writable)!==!1&&hun(n)):null}function G$r(n){var r,o;return Rk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function V$r(n){var r,o;return Rk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function z$r(n){if(!Rk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&pun(n)?n._closed:null}function pun(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function bun(n){return typeof n._sent100=="boolean"&&pun(n)}function K$r(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function q$r(n){if(!Rk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&bun(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function X$r(n){var r;return!!(n&&((r=n[sun])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function J$r(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[oun])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Nx={isDestroyed:Gge,kIsDestroyed:iun,isDisturbed:X$r,kIsDisturbed:sun,isErrored:J$r,kIsErrored:oun,isReadable:dun,kIsReadable:mBe,kIsClosedPromise:D$r,kControllerErrorFunction:L$r,kIsWritable:yBe,isClosed:z$r,isDuplexNodeStream:j$r,isFinished:U$r,isIterable:B$r,isReadableNodeStream:Hge,isReadableStream:lun,isReadableEnded:H$r,isReadableFinished:fun,isReadableErrored:V$r,isNodeStream:Rk,isWebStream:F$r,isWritable:hun,isWritableNodeStream:Uge,isWritableStream:aun,isWritableEnded:uun,isWritableFinished:W$r,isWritableErrored:G$r,isServerRequest:K$r,isServerResponse:bun,willEmitClose:q$r,isTransformStream:cun};const eT=ui,{AbortError:gun,codes:Y$r}=D0,{ERR_INVALID_ARG_TYPE:Q$r,ERR_STREAM_PREMATURE_CLOSE:pqt}=Y$r,{kEmptyObject:vBe,once:_Be}=g1,{validateAbortSignal:Z$r,validateFunction:e6r,validateObject:t6r,validateBoolean:n6r}=jJ,{Promise:r6r,PromisePrototypeThen:i6r,SymbolDispose:wun}=Gf,{isClosed:o6r,isReadable:bqt,isReadableNodeStream:dDe,isReadableStream:s6r,isReadableFinished:gqt,isReadableErrored:wqt,isWritable:mqt,isWritableNodeStream:yqt,isWritableStream:l6r,isWritableFinished:vqt,isWritableErrored:_qt,isNodeStream:a6r,willEmitClose:c6r,kIsClosedPromise:u6r}=Nx;let gL;function f6r(n){return n.setHeader&&typeof n.abort=="function"}const SBe=()=>{};function mun(n,r,o){var l,u;if(arguments.length===2?(o=r,r=vBe):r==null?r=vBe:t6r(r,"options"),e6r(o,"callback"),Z$r(r.signal,"options.signal"),o=_Be(o),s6r(n)||l6r(n))return d6r(n,r,o);if(!a6r(n))throw new Q$r("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:dDe(n),h=(u=r.writable)!==null&&u!==void 0?u:yqt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=c6r(n)&&dDe(n)===d&&yqt(n)===h,A=vqt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=gqt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=o6r(n);const H=()=>{L=!0;const te=_qt(n)||wqt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&dDe(n,!0)&&!gqt(n,!1))return o.call(n,new pqt);if(h&&!A&&!vqt(n,!1))return o.call(n,new pqt);o.call(n)},G=()=>{L=!0;const te=_qt(n)||wqt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};f6r(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?eT.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||eT.nextTick(G):(!d&&(!E||bqt(n))&&(A||mqt(n)===!1)||!h&&(!E||mqt(n))&&(R||bqt(n)===!1)||v&&n.req&&n.aborted)&&eT.nextTick(G);const Q=()=>{o=SBe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new gun(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)eT.nextTick(te);else{gL=gL||g1.addAbortListener;const pe=gL(r.signal,te),Le=o;o=_Be((...Ee)=>{pe[wun](),Le.apply(n,Ee)})}}return Q}function d6r(n,r,o){let l=!1,u=SBe;if(r.signal)if(u=()=>{l=!0,o.call(n,new gun(void 0,{cause:r.signal.reason}))},r.signal.aborted)eT.nextTick(u);else{gL=gL||g1.addAbortListener;const h=gL(r.signal,u),w=o;o=_Be((...v)=>{h[wun](),w.apply(n,v)})}const d=(...h)=>{l||eT.nextTick(()=>o.apply(n,h))};return i6r(n[u6r].promise,d,d),SBe}function h6r(n,r){var o;let l=!1;return r===null&&(r=vBe),(o=r)!==null&&o!==void 0&&o.cleanup&&(n6r(r.cleanup,"cleanup"),l=r.cleanup),new r6r((u,d)=>{const h=mun(n,r,w=>{l&&h(),w?d(w):u()})})}eVe.exports=mun;eVe.exports.finished=h6r;var KT=eVe.exports;const JE=ui,{aggregateTwoErrors:p6r,codes:{ERR_MULTIPLE_CALLBACK:b6r},AbortError:g6r}=D0,{Symbol:yun}=Gf,{kIsDestroyed:w6r,isDestroyed:m6r,isFinished:y6r,isServerRequest:v6r}=Nx,vun=yun("kDestroy"),EBe=yun("kConstruct");function _un(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function _6r(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(_un(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?Sqt(this,n,r):this.once(vun,function(d){Sqt(this,p6r(d,n),r)}),this)}function Sqt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;_un(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?JE.nextTick(S6r,n,d):JE.nextTick(Sun,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function S6r(n,r){kBe(n,r),Sun(n)}function Sun(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function kBe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function E6r(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function RBe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?JE.nextTick(kBe,n,r):kBe(n,r))}function k6r(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(EBe,r),!(n.listenerCount(EBe)>1)&&JE.nextTick(R6r,n)}function R6r(n){let r=!1;function o(l){if(r){RBe(n,l??new b6r);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(vun,l):l?RBe(n,l,!0):JE.nextTick(x6r,n)}try{n._construct(l=>{JE.nextTick(o,l)})}catch(l){JE.nextTick(o,l)}}function x6r(n){n.emit(EBe)}function Eqt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Eun(n){n.emit("close")}function C6r(n,r){n.emit("error",r),JE.nextTick(Eun,n)}function A6r(n,r){!n||m6r(n)||(!r&&!y6r(n)&&(r=new g6r),v6r(n)?(n.socket=null,n.destroy(r)):Eqt(n)?n.abort():Eqt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?JE.nextTick(C6r,n,r):JE.nextTick(Eun,n),n.destroyed||(n[w6r]=!0))}var Oj={construct:k6r,destroyer:A6r,destroy:_6r,undestroy:E6r,errorOrDestroy:RBe};const{ArrayIsArray:T6r,ObjectSetPrototypeOf:kun}=Gf,{EventEmitter:Vge}=Ns;function zge(n){Vge.call(this,n)}kun(zge.prototype,Vge.prototype);kun(zge,Vge);zge.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),Vge.listenerCount(this,"error")===0&&this.emit("error",E)}xBe(o,"error",v),xBe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function xBe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):T6r(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var tVe={Stream:zge,prependListener:xBe},Run={exports:{}};(function(n){const{SymbolDispose:r}=Gf,{AbortError:o,codes:l}=D0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Nx,w=KT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||g1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Run);var Kge=Run.exports;const{StringPrototypeSlice:kqt,SymbolIterator:$6r,TypedArrayPrototypeSet:Zue,Uint8Array:I6r}=Gf,{Buffer:hDe}=Kr,{inspect:P6r}=g1;var O6r=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return hDe.alloc(0);const o=hDe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)Zue(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=kqt(d,0,r),this.head=l,l.data=kqt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=hDe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)Zue(o,h,l-r),r-=h.length;else{r===h.length?(Zue(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(Zue(o,new I6r(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return P6r(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:N6r,NumberIsInteger:M6r}=Gf,{validateInteger:D6r}=jJ,{ERR_INVALID_ARG_VALUE:L6r}=D0.codes;let xun=16*1024,Cun=16;function j6r(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Aun(n){return n?Cun:xun}function F6r(n,r){D6r(r,"value",0),n?Cun=r:xun=r}function B6r(n,r,o,l){const u=j6r(r,l,o);if(u!=null){if(!M6r(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new L6r(d,u)}return N6r(u)}return Aun(n.objectMode)}var qge={getHighWaterMark:B6r,getDefaultHighWaterMark:Aun,setDefaultHighWaterMark:F6r};const Rqt=ui,{PromisePrototypeThen:W6r,SymbolAsyncIterator:xqt,SymbolIterator:Cqt}=Gf,{Buffer:H6r}=Kr,{ERR_INVALID_ARG_TYPE:U6r,ERR_STREAM_NULL_VALUES:G6r}=D0.codes;function V6r(n,r,o){let l;if(typeof r=="string"||r instanceof H6r)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[xqt])u=!0,l=r[xqt]();else if(r&&r[Cqt])u=!1,l=r[Cqt]();else throw new U6r("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){W6r(w(y),()=>Rqt.nextTick(E,y),A=>Rqt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new G6r;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Tun=V6r,pDe,Aqt;function Xge(){if(Aqt)return pDe;Aqt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Gf;pDe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=tVe,{Buffer:L}=Kr,{addAbortSignal:H}=Kge,G=KT;let j=g1.debuglog("stream",S=>{j=S});const Q=O6r,te=Oj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=qge,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=D0,{validateObject:ye}=jJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Tun;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof gx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof gx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},pDe}var bDe,Tqt;function nVe(){if(Tqt)return bDe;Tqt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Gf;bDe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=tVe.Stream,{Buffer:C}=Kr,R=Oj,{addAbortSignal:O}=Kge,{getHighWaterMark:M,getDefaultHighWaterMark:L}=qge,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=D0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof gx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof gx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return gDe}var wDe,Iqt;function gx(){if(Iqt)return wDe;Iqt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Gf;wDe=h;const u=Xge(),d=nVe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function J6r(){this._final!==CBe&&CBe.call(this)}wx.prototype._final=CBe;wx.prototype._transform=function(n,r,o){throw new q6r("_transform()")};wx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=Che(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,nIr.destroyer(n,d||new oIr("pipe")))},cleanup:u}}function hIr(n){return aIr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function kDe(n){if(O8(n))return n;if(fde(n))return pIr(n);throw new ABe("val",["Readable","Iterable","AsyncIterable"],n)}async function*pIr(n){SDe||(SDe=Xge()),yield*SDe.prototype[Z6r].call(n)}async function efe(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new Q6r((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=Che(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?rIr(u,y):y)}finally{v(),r.off("drain",h)}}async function RDe(n,r,o,{end:l}){PD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function bIr(...n){return Nun(n,tIr(hIr(n)))}function Nun(n,r,o){if(n.length===1&&Y6r(n[0])&&(n=n[0]),n.length<2)throw new iIr("streams");const l=new dIr,u=l.signal,d=o==null?void 0:o.signal,h=[];cIr(d,"options.signal");function w(){O(new lIr)}EDe=EDe||g1.addAbortListener;let v;d&&(v=EDe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[eIr](),l.abort(),j&&(y||h.forEach(te=>te()),WK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(Oqt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=Nqt(j,Q,te);A.push(le),yDe(j)&&Le&&h.push(xe)}j.on("error",Ee),yDe(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!O8(M))throw new mDe("Iterable, AsyncIterable or Stream","source",M)}else O8(j)||fde(j)||PD(j)?M=j:M=Pqt.from(j);else if(typeof j=="function"){if(PD(M)){var L;M=kDe((L=M)===null||L===void 0?void 0:L.readable)}else M=kDe(M);if(M=j(M,{signal:u}),Q){if(!O8(M,!0))throw new mDe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;_De||(_De=Oun);const Ee=new _De({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),WK.nextTick(R)},ae=>{Ee.destroy(ae),WK.nextTick(R,ae)});else if(O8(M,!0))C++,efe(M,Ee,R,{end:pe});else if(vDe(M)||PD(M)){const ae=M.readable||M;C++,efe(ae,Ee,R,{end:pe})}else throw new mDe("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=Nqt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(Oqt(j)){if(fde(M)){C+=2;const Ee=gIr(M,j,R,{end:pe});yDe(j)&&Le&&h.push(Ee)}else if(PD(M)||vDe(M)){const Ee=M.readable||M;C++,efe(Ee,j,R,{end:pe})}else if(O8(M))C++,efe(M,j,R,{end:pe});else throw new ABe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(uIr(j)){if(fde(M))C++,RDe(kDe(M),j,R,{end:pe});else if(vDe(M)||O8(M))C++,RDe(M,j,R,{end:pe});else if(PD(M))C++,RDe(M.readable,j,R,{end:pe});else throw new ABe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=Pqt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&WK.nextTick(w),M}function gIr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new sIr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};fIr(n)?WK.nextTick(d):n.once("end",d)}else o();return Che(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),Che(r,{readable:!1,writable:!0},o)}var oVe={pipelineImpl:Nun,pipeline:bIr};const{pipeline:wIr}=oVe,tfe=gx(),{destroyer:mIr}=Oj,{isNodeStream:nfe,isReadable:Mqt,isWritable:Dqt,isWebStream:xDe,isTransformStream:b8,isWritableStream:Lqt,isReadableStream:jqt}=Nx,{AbortError:yIr,codes:{ERR_INVALID_ARG_VALUE:Fqt,ERR_MISSING_ARGS:vIr}}=D0,_Ir=KT;var Mun=function(...r){if(r.length===0)throw new vIr("streams");if(r.length===1)return tfe.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=tfe.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=tfe.from(r[R])}for(let R=0;R0&&!(Dqt(r[R])||Lqt(r[R])||b8(r[R])))throw new Fqt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=wIr(r,v),A=!!(Dqt(y)||Lqt(y)||b8(y)),C=!!(Mqt(E)||jqt(E)||b8(E));if(w=new tfe({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(nfe(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(xDe(y)){const M=(b8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=b8(E)?E.readable:E;_Ir(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(nfe(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(xDe(E)){const O=(b8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new yIr),d=null,l=null,u=null,h===null?O(R):(h=O,nfe(E)&&mIr(E,R))},w};const SIr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:EIr,ERR_INVALID_ARG_TYPE:FJ,ERR_MISSING_ARGS:kIr,ERR_OUT_OF_RANGE:RIr},AbortError:hk}=D0,{validateAbortSignal:EO,validateInteger:Bqt,validateObject:kO}=jJ,xIr=Gf.Symbol("kWeak"),CIr=Gf.Symbol("kResistStopPropagation"),{finished:AIr}=KT,TIr=Mun,{addAbortSignalNoValidate:$Ir}=Kge,{isWritable:IIr,isNodeStream:PIr}=Nx,{deprecate:OIr}=g1,{ArrayPrototypePush:NIr,Boolean:MIr,MathFloor:Wqt,Number:DIr,NumberIsNaN:LIr,Promise:Hqt,PromiseReject:Uqt,PromiseResolve:jIr,PromisePrototypeThen:Gqt,Symbol:Dun}=Gf,Ahe=Dun("kEmpty"),Vqt=Dun("kEof");function FIr(n,r){if(r!=null&&kO(r,"options"),(r==null?void 0:r.signal)!=null&&EO(r.signal,"options.signal"),PIr(n)&&!IIr(n))throw new EIr("stream",n,"must be writable");const o=TIr(this,n);return r!=null&&r.signal&&$Ir(r.signal,o),o}function Jge(n,r){if(typeof n!="function")throw new FJ("fn",["Function","AsyncFunction"],n);r!=null&&kO(r,"options"),(r==null?void 0:r.signal)!=null&&EO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=Wqt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=Wqt(r.highWaterMark)),Bqt(o,"options.concurrency",1),Bqt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=g1.AbortSignalAny([r==null?void 0:r.signal].filter(MIr)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new Hqt(G=>{E=G})}w.push(Vqt)}catch(H){const G=Uqt(H);Gqt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===Vqt)return;if(d.aborted)throw new hk;H!==Ahe&&(yield H),w.shift(),M()}await new Hqt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function BIr(n=void 0){return n!=null&&kO(n,"options"),(n==null?void 0:n.signal)!=null&&EO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new hk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function Lun(n,r=void 0){for await(const o of sVe.call(this,n,r))return!0;return!1}async function WIr(n,r=void 0){if(typeof n!="function")throw new FJ("fn",["Function","AsyncFunction"],n);return!await Lun.call(this,async(...o)=>!await n(...o),r)}async function HIr(n,r){for await(const o of sVe.call(this,n,r))return o}async function UIr(n,r){if(typeof n!="function")throw new FJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),Ahe}for await(const l of Jge.call(this,o,r));}function sVe(n,r){if(typeof n!="function")throw new FJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:Ahe}return Jge.call(this,o,r)}let GIr=class extends kIr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function VIr(n,r,o){var l;if(typeof n!="function")throw new FJ("reducer",["Function","AsyncFunction"],n);o!=null&&kO(o,"options"),(o==null?void 0:o.signal)!=null&&EO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new hk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await AIr(this.destroy(y)),y}const d=new SIr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[xIr]:this,[CIr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new hk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new GIr}finally{d.abort()}return r}async function zIr(n){n!=null&&kO(n,"options"),(n==null?void 0:n.signal)!=null&&EO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new hk(void 0,{cause:n.signal.reason});NIr(r,l)}return r}function KIr(n,r){const o=Jge.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function jun(n){if(n=DIr(n),LIr(n))return 0;if(n<0)throw new RIr("number",">= 0",n);return n}function qIr(n,r=void 0){return r!=null&&kO(r,"options"),(r==null?void 0:r.signal)!=null&&EO(r.signal,"options.signal"),n=jun(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new hk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new hk;n--<=0&&(yield d)}}).call(this)}function XIr(n,r=void 0){return r!=null&&kO(r,"options"),(r==null?void 0:r.signal)!=null&&EO(r.signal,"options.signal"),n=jun(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new hk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new hk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}JGe.streamReturningOperators={asIndexedPairs:OIr(BIr,"readable.asIndexedPairs will be removed in a future version."),drop:qIr,filter:sVe,flatMap:KIr,map:Jge,take:XIr,compose:FIr};JGe.promiseReturningOperators={every:WIr,forEach:UIr,reduce:VIr,toArray:zIr,some:Lun,find:HIr};var CDe,zqt;function Fun(){if(zqt)return CDe;zqt=1;const{ArrayPrototypePop:n,Promise:r}=Gf,{isIterable:o,isNodeStream:l,isWebStream:u}=Nx,{pipelineImpl:d}=oVe,{finished:h}=KT;Bun();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return CDe={finished:h,pipeline:w},CDe}var Kqt;function Bun(){if(Kqt)return uDe.exports;Kqt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Gf,{promisify:{custom:u}}=g1,{streamReturningOperators:d,promiseReturningOperators:h}=JGe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=D0,v=Mun,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=qge,{pipeline:A}=oVe,{destroyer:C}=Oj,R=KT,O=Fun(),M=Nx,L=uDe.exports=tVe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=Xge();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=nVe(),L.Duplex=gx(),L.Transform=Iun,L.PassThrough=Oun,L.pipeline=A;const{addAbortSignal:H}=Kge;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},uDe.exports}(function(n){const r=Bun(),o=Fun(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(Jcn);var lUr=Jcn.exports,Wun={},qL={},XL={},Hun={};(function(n){/** + * Character classes and associated utilities for the 5th edition of XML 1.0. + * + * @author Louis-Dominique Dubeau + * @license MIT + * @copyright Louis-Dominique Dubeau + */Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR=` +\r -퟿-�𐀀-􏿿`,n.S=` \r +`,n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u");var r=9,o=10,l=13,u=32;n.S_LIST=[u,o,l,r];function d(y){return y>=u&&y<=55295||y===o||y===l||y===r||y>=57344&&y<=65533||y>=65536&&y<=1114111}n.isChar=d;function h(y){return y===u||y===o||y===l||y===r}n.isS=h;function w(y){return y>=65&&y<=90||y>=97&&y<=122||y===58||y===95||y===8204||y===8205||y>=192&&y<=214||y>=216&&y<=246||y>=248&&y<=767||y>=880&&y<=893||y>=895&&y<=8191||y>=8304&&y<=8591||y>=11264&&y<=12271||y>=12289&&y<=55295||y>=63744&&y<=64975||y>=65008&&y<=65533||y>=65536&&y<=983039}n.isNameStartChar=w;function v(y){return w(y)||y>=48&&y<=57||y===45||y===46||y===183||y>=768&&y<=879||y>=8255&&y<=8256}n.isNameChar=v})(Hun);var Uun={};(function(n){/** + * Character classes and associated utilities for the 2nd edition of XML 1.1. + * + * @author Louis-Dominique Dubeau + * @license MIT + * @copyright Louis-Dominique Dubeau + */Object.defineProperty(n,"__esModule",{value:!0}),n.CHAR="-퟿-�𐀀-􏿿",n.RESTRICTED_CHAR="-\b\v\f--„†-Ÿ",n.S=` \r +`,n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.RESTRICTED_CHAR_RE=new RegExp("^["+n.RESTRICTED_CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u");var r=9,o=10,l=13,u=32;n.S_LIST=[u,o,l,r];function d(A){return A>=1&&A<=55295||A>=57344&&A<=65533||A>=65536&&A<=1114111}n.isChar=d;function h(A){return A>=1&&A<=8||A===11||A===12||A>=14&&A<=31||A>=127&&A<=132||A>=134&&A<=159}n.isRestrictedChar=h;function w(A){return A===9||A===10||A===13||A>31&&A<127||A===133||A>159&&A<=55295||A>=57344&&A<=65533||A>=65536&&A<=1114111}n.isCharAndNotRestricted=w;function v(A){return A===u||A===o||A===l||A===r}n.isS=v;function y(A){return A>=65&&A<=90||A>=97&&A<=122||A===58||A===95||A===8204||A===8205||A>=192&&A<=214||A>=216&&A<=246||A>=248&&A<=767||A>=880&&A<=893||A>=895&&A<=8191||A>=8304&&A<=8591||A>=11264&&A<=12271||A>=12289&&A<=55295||A>=63744&&A<=64975||A>=65008&&A<=65533||A>=65536&&A<=983039}n.isNameStartChar=y;function E(A){return y(A)||A>=48&&A<=57||A===45||A===46||A===183||A>=768&&A<=879||A>=8255&&A<=8256}n.isNameChar=E})(Uun);var Gun={};(function(n){/** + * Character class utilities for XML NS 1.0 edition 3. + * + * @author Louis-Dominique Dubeau + * @license MIT + * @copyright Louis-Dominique Dubeau + */Object.defineProperty(n,"__esModule",{value:!0}),n.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NC_NAME_CHAR="-"+n.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.NC_NAME_START_CHAR_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]$","u"),n.NC_NAME_CHAR_RE=new RegExp("^["+n.NC_NAME_CHAR+"]$","u"),n.NC_NAME_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]["+n.NC_NAME_CHAR+"]*$","u");function r(l){return l>=65&&l<=90||l===95||l>=97&&l<=122||l>=192&&l<=214||l>=216&&l<=246||l>=248&&l<=767||l>=880&&l<=893||l>=895&&l<=8191||l>=8204&&l<=8205||l>=8304&&l<=8591||l>=11264&&l<=12271||l>=12289&&l<=55295||l>=63744&&l<=64975||l>=65008&&l<=65533||l>=65536&&l<=983039}n.isNCNameStartChar=r;function o(l){return r(l)||l===45||l===46||l>=48&&l<=57||l===183||l>=768&&l<=879||l>=8255&&l<=8256}n.isNCNameChar=o})(Gun);Object.defineProperty(XL,"__esModule",{value:!0});XL.SaxesParser=XL.EVENTS=void 0;const Nj=Hun,JIr=Uun,lVe=Gun;var v0=Nj.isS,YIr=Nj.isChar,gK=Nj.isNameStartChar,qqt=Nj.isNameChar,Vun=Nj.S_LIST,QIr=Nj.NAME_RE,ZIr=JIr.isChar,e5r=lVe.isNCNameStartChar,t5r=lVe.isNCNameChar,n5r=lVe.NC_NAME_RE;const dde="http://www.w3.org/XML/1998/namespace",GD="http://www.w3.org/2000/xmlns/",r5r={__proto__:null,xml:dde,xmlns:GD},i5r={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},Du=-1,CE=-2,Xqt=0,o5r=1,ADe=2,s5r=3,fD=4,l5r=5,a5r=6,c5r=7,TDe=8,u5r=9,f5r=10,d5r=11,h5r=12,Xg=13,rfe=14,$De=15,p5r=16,IDe=17,b5r=18,g5r=19,PDe=20,w5r=21,m5r=22,y5r=23,Jqt=24,ODe=25,ife=26,Yqt=27,v5r=28,_5r=29,Qqt=30,S5r=31,E5r=32,g8=33,k5r=34,NDe=35,wK=36,MDe=37,R5r=38,Zqt=39,eXt=40,x5r=41,tXt=42,C5r=43,A5r=44,DDe=9,cS=10,LDe=13,nXt=32,rXt=33,zun=34,HK=38,Kun=39,ofe=45,sfe=47,T5r=59,tT=60,OD=61,Eh=62,Up=63,qun=91,ND=93,iXt=133,oXt=8232,lfe=n=>n===zun||n===Kun,Xun=[zun,Kun],$5r=[...Xun,qun,Eh],I5r=[...Xun,tT,ND],P5r=[OD,Up,...Vun],O5r=[...Vun,Eh,HK,tT];function TBe(n,r,o){switch(r){case"xml":o!==dde&&n.fail(`xml prefix must be bound to ${dde}.`);break;case"xmlns":o!==GD&&n.fail(`xmlns prefix must be bound to ${GD}.`);break}switch(o){case GD:n.fail(r===""?`the default namespace may not be set to ${o}.`:`may not assign a prefix (even "xmlns") to the URI ${GD}.`);break;case dde:switch(r){case"xml":break;case"":n.fail(`the default namespace may not be set to ${o}.`);break;default:n.fail("may not assign the xml namespace to another prefix.")}break}}function N5r(n,r){for(const o of Object.keys(r))TBe(n,o,r[o])}const M5r=n=>n5r.test(n),D5r=n=>QIr.test(n),w8=0,sXt=1,jDe=2;XL.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const lXt={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class L5r{get closed(){return this._closed}constructor(r){this.opt=r??{},this.fragmentOpt=!!this.opt.fragment;const o=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,o){this.nameStartCheck=e5r,this.nameCheck=t5r,this.isName=M5r,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},r5r);const l=this.opt.additionalNamespaces;l!=null&&(N5r(this,l),Object.assign(this.ns,l))}else this.nameStartCheck=gK,this.nameCheck=qqt,this.isName=D5r,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}_init(){var r;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=w8,this.attribList=[];const{fragmentOpt:o}=this;this.state=o?Xg:Xqt,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=o,this.xmlDeclPossible=!o,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:l}=this.opt;if(l===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");l="1.0"}this.setXMLVersion(l),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(i5r),(r=this.readyHandler)===null||r===void 0||r.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(r,o){this[lXt[r]]=o}off(r){this[lXt[r]]=void 0}makeError(r){var o;let l=(o=this.fileName)!==null&&o!==void 0?o:"";return this.trackPosition&&(l.length>0&&(l+=":"),l+=`${this.line}:${this.column}`),l.length>0&&(l+=": "),new Error(l+r)}fail(r){const o=this.makeError(r),l=this.errorHandler;if(l===void 0)throw o;return l(o),this}write(r){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let o=!1;r===null?(o=!0,r=""):typeof r=="object"&&(r=r.toString()),this.carriedFromPrevious!==void 0&&(r=`${this.carriedFromPrevious}${r}`,this.carriedFromPrevious=void 0);let l=r.length;const u=r.charCodeAt(l-1);!o&&(u===LDe||u>=55296&&u<=56319)&&(this.carriedFromPrevious=r[l-1],l--,r=r.slice(0,l));const{stateTable:d}=this;for(this.chunk=r,this.i=0;this.i=r.length)return Du;const l=r.charCodeAt(o);if(this.column++,l<55296){if(l>=nXt||l===DDe)return l;switch(l){case cS:return this.line++,this.column=0,this.positionAtNewLine=this.position,cS;case LDe:return r.charCodeAt(o+1)===cS&&(this.i=o+2),this.line++,this.column=0,this.positionAtNewLine=this.position,CE;default:return this.fail("disallowed character."),l}}if(l>56319)return l>=57344&&l<=65533||this.fail("disallowed character."),l;const u=65536+(l-55296)*1024+(r.charCodeAt(o+1)-56320);return this.i=o+2,u>1114111&&this.fail("disallowed character."),u}getCode11(){const{chunk:r,i:o}=this;if(this.prevI=o,this.i=o+1,o>=r.length)return Du;const l=r.charCodeAt(o);if(this.column++,l<55296){if(l>31&&l<127||l>159&&l!==oXt||l===DDe)return l;switch(l){case cS:return this.line++,this.column=0,this.positionAtNewLine=this.position,cS;case LDe:{const d=r.charCodeAt(o+1);(d===cS||d===iXt)&&(this.i=o+2)}case iXt:case oXt:return this.line++,this.column=0,this.positionAtNewLine=this.position,CE;default:return this.fail("disallowed character."),l}}if(l>56319)return l>=57344&&l<=65533||this.fail("disallowed character."),l;const u=65536+(l-55296)*1024+(r.charCodeAt(o+1)-56320);return this.i=o+2,u>1114111&&this.fail("disallowed character."),u}getCodeNorm(){const r=this.getCode();return r===CE?cS:r}unget(){this.i=this.prevI,this.column--}captureTo(r){let{i:o}=this;const{chunk:l}=this;for(;;){const u=this.getCode(),d=u===CE,h=d?cS:u;if(h===Du||r.includes(h))return this.text+=l.slice(o,this.prevI),h;d&&(this.text+=`${l.slice(o,this.prevI)} +`,o=this.i)}}captureToChar(r){let{i:o}=this;const{chunk:l}=this;for(;;){let u=this.getCode();switch(u){case CE:this.text+=`${l.slice(o,this.prevI)} +`,o=this.i,u=cS;break;case Du:return this.text+=l.slice(o),!1}if(u===r)return this.text+=l.slice(o,this.prevI),!0}}captureNameChars(){const{chunk:r,i:o}=this;for(;;){const l=this.getCode();if(l===Du)return this.name+=r.slice(o),Du;if(!qqt(l))return this.name+=r.slice(o,this.prevI),l===CE?cS:l}}skipSpaces(){for(;;){const r=this.getCodeNorm();if(r===Du||!v0(r))return r}}setXMLVersion(r){this.currentXMLVersion=r,r==="1.0"?(this.isChar=YIr,this.getCode=this.getCode10):(this.isChar=ZIr,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=o5r}sBeginWhitespace(){const r=this.i,o=this.skipSpaces();switch(this.prevI!==r&&(this.xmlDeclPossible=!1),o){case tT:if(this.state=$De,this.text.length!==0)throw new Error("no-empty text at start");break;case Du:break;default:this.unget(),this.state=Xg,this.xmlDeclPossible=!1}}sDoctype(){var r;const o=this.captureTo($5r);switch(o){case Eh:{(r=this.doctypeHandler)===null||r===void 0||r.call(this,this.text),this.text="",this.state=Xg,this.doctype=!0;break}case Du:break;default:this.text+=String.fromCodePoint(o),o===qun?this.state=fD:lfe(o)&&(this.state=s5r,this.q=o)}}sDoctypeQuote(){const r=this.q;this.captureToChar(r)&&(this.text+=String.fromCodePoint(r),this.q=null,this.state=ADe)}sDTD(){const r=this.captureTo(I5r);r!==Du&&(this.text+=String.fromCodePoint(r),r===ND?this.state=ADe:r===tT?this.state=a5r:lfe(r)&&(this.state=l5r,this.q=r))}sDTDQuoted(){const r=this.q;this.captureToChar(r)&&(this.text+=String.fromCodePoint(r),this.state=fD,this.q=null)}sDTDOpenWaka(){const r=this.getCodeNorm();switch(this.text+=String.fromCodePoint(r),r){case rXt:this.state=c5r,this.openWakaBang="";break;case Up:this.state=d5r;break;default:this.state=fD}}sDTDOpenWakaBang(){const r=String.fromCodePoint(this.getCodeNorm()),o=this.openWakaBang+=r;this.text+=r,o!=="-"&&(this.state=o==="--"?TDe:fD,this.openWakaBang="")}sDTDComment(){this.captureToChar(ofe)&&(this.text+="-",this.state=u5r)}sDTDCommentEnding(){const r=this.getCodeNorm();this.text+=String.fromCodePoint(r),this.state=r===ofe?f5r:TDe}sDTDCommentEnded(){const r=this.getCodeNorm();this.text+=String.fromCodePoint(r),r===Eh?this.state=fD:(this.fail("malformed comment."),this.state=TDe)}sDTDPI(){this.captureToChar(Up)&&(this.text+="?",this.state=h5r)}sDTDPIEnding(){const r=this.getCodeNorm();this.text+=String.fromCodePoint(r),r===Eh&&(this.state=fD)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:r}=this;const{chunk:o}=this;e:for(;;)switch(this.getCode()){case CE:this.entity+=`${o.slice(r,this.prevI)} +`,r=this.i;break;case T5r:{const{entityReturnState:l}=this,u=this.entity+o.slice(r,this.prevI);this.state=l;let d;u===""?(this.fail("empty entity name."),d="&;"):(d=this.parseEntity(u),this.entity=""),(l!==Xg||this.textHandler!==void 0)&&(this.text+=d);break e}case Du:this.entity+=o.slice(r);break e}}sOpenWaka(){const r=this.getCode();if(gK(r))this.state=k5r,this.unget(),this.xmlDeclPossible=!1;else switch(r){case sfe:this.state=C5r,this.xmlDeclPossible=!1;break;case rXt:this.state=p5r,this.openWakaBang="",this.xmlDeclPossible=!1;break;case Up:this.state=y5r;break;default:this.fail("disallowed character in tag name"),this.state=Xg,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=PDe,this.openWakaBang="";break;case"--":this.state=IDe,this.openWakaBang="";break;case"DOCTYPE":this.state=ADe,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(ofe)&&(this.state=b5r)}sCommentEnding(){var r;const o=this.getCodeNorm();o===ofe?(this.state=g5r,(r=this.commentHandler)===null||r===void 0||r.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(o)}`,this.state=IDe)}sCommentEnded(){const r=this.getCodeNorm();r!==Eh?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(r)}`,this.state=IDe):this.state=Xg}sCData(){this.captureToChar(ND)&&(this.state=w5r)}sCDataEnding(){const r=this.getCodeNorm();r===ND?this.state=m5r:(this.text+=`]${String.fromCodePoint(r)}`,this.state=PDe)}sCDataEnding2(){var r;const o=this.getCodeNorm();switch(o){case Eh:{(r=this.cdataHandler)===null||r===void 0||r.call(this,this.text),this.text="",this.state=Xg;break}case ND:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(o)}`,this.state=PDe}}sPIFirstChar(){const r=this.getCodeNorm();this.nameStartCheck(r)?(this.piTarget+=String.fromCodePoint(r),this.state=Jqt):r===Up||v0(r)?(this.fail("processing instruction without a target."),this.state=r===Up?ife:ODe):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(r),this.state=Jqt)}sPIRest(){const{chunk:r,i:o}=this;for(;;){const l=this.getCodeNorm();if(l===Du){this.piTarget+=r.slice(o);return}if(!this.nameCheck(l)){this.piTarget+=r.slice(o,this.prevI);const u=l===Up;u||v0(l)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=u?g8:Yqt):this.state=u?ife:ODe:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(l));break}}}sPIBody(){if(this.text.length===0){const r=this.getCodeNorm();r===Up?this.state=ife:v0(r)||(this.text=String.fromCodePoint(r))}else this.captureToChar(Up)&&(this.state=ife)}sPIEnding(){var r;const o=this.getCodeNorm();if(o===Eh){const{piTarget:l}=this;l.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(r=this.piHandler)===null||r===void 0||r.call(this,{target:l,body:this.text}),this.piTarget=this.text="",this.state=Xg}else o===Up?this.text+="?":(this.text+=`?${String.fromCodePoint(o)}`,this.state=ODe);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const r=this.skipSpaces();if(r===Up){this.state=g8;return}r!==Du&&(this.state=v5r,this.name=String.fromCodePoint(r))}sXMLDeclName(){const r=this.captureTo(P5r);if(r===Up){this.state=g8,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(v0(r)||r===OD){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=r===OD?Qqt:_5r}}sXMLDeclEq(){const r=this.getCodeNorm();if(r===Up){this.state=g8,this.fail("XML declaration is incomplete.");return}v0(r)||(r!==OD&&this.fail("value required."),this.state=Qqt)}sXMLDeclValueStart(){const r=this.getCodeNorm();if(r===Up){this.state=g8,this.fail("XML declaration is incomplete.");return}v0(r)||(lfe(r)?this.q=r:(this.fail("value must be quoted."),this.q=nXt),this.state=S5r)}sXMLDeclValue(){const r=this.captureTo([this.q,Up]);if(r===Up){this.state=g8,this.text="",this.fail("XML declaration is incomplete.");return}if(r===Du)return;const o=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const l=o;this.xmlDecl.version=l,/^1\.[0-9]+$/.test(l)?this.opt.forceXMLVersion||this.setXMLVersion(l):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(o)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=o;break;case"standalone":o!=="yes"&&o!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=o;break}this.name="",this.state=E5r}sXMLDeclSeparator(){const r=this.getCodeNorm();if(r===Up){this.state=g8;return}v0(r)||(this.fail("whitespace required."),this.unget()),this.state=Yqt}sXMLDeclEnding(){var r;this.getCodeNorm()===Eh?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(r=this.xmldeclHandler)===null||r===void 0||r.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=Xg):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var r;const o=this.captureNameChars();if(o===Du)return;const l=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=l.ns=Object.create(null)),(r=this.openTagStartHandler)===null||r===void 0||r.call(this,l),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),o){case Eh:this.openTag();break;case sfe:this.state=NDe;break;default:v0(o)||this.fail("disallowed character in tag name."),this.state=wK}}sOpenTagSlash(){this.getCode()===Eh?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=wK)}sAttrib(){const r=this.skipSpaces();r!==Du&&(gK(r)?(this.unget(),this.state=MDe):r===Eh?this.openTag():r===sfe?this.state=NDe:this.fail("disallowed character in attribute name."))}sAttribName(){const r=this.captureNameChars();r===OD?this.state=Zqt:v0(r)?this.state=R5r:r===Eh?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):r!==Du&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const r=this.skipSpaces();switch(r){case Du:return;case OD:this.state=Zqt;break;default:this.fail("attribute without value."),this.text="",this.name="",r===Eh?this.openTag():gK(r)?(this.unget(),this.state=MDe):(this.fail("disallowed character in attribute name."),this.state=wK)}}sAttribValue(){const r=this.getCodeNorm();lfe(r)?(this.q=r,this.state=eXt):v0(r)||(this.fail("unquoted attribute value."),this.state=tXt,this.unget())}sAttribValueQuoted(){const{q:r,chunk:o}=this;let{i:l}=this;for(;;)switch(this.getCode()){case r:this.pushAttrib(this.name,this.text+o.slice(l,this.prevI)),this.name=this.text="",this.q=null,this.state=x5r;return;case HK:this.text+=o.slice(l,this.prevI),this.state=rfe,this.entityReturnState=eXt;return;case cS:case CE:case DDe:this.text+=`${o.slice(l,this.prevI)} `,l=this.i;break;case tT:this.text+=o.slice(l,this.prevI),this.fail("disallowed character.");return;case Du:this.text+=o.slice(l);return}}sAttribValueClosed(){const r=this.getCodeNorm();v0(r)?this.state=wK:r===Eh?this.openTag():r===sfe?this.state=NDe:gK(r)?(this.fail("no whitespace between attributes."),this.unget(),this.state=MDe):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const r=this.captureTo(O5r);switch(r){case HK:this.state=rfe,this.entityReturnState=tXt;break;case tT:this.fail("disallowed character.");break;case Du:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",r===Eh?this.openTag():this.state=wK}}sCloseTag(){const r=this.captureNameChars();r===Eh?this.closeTag():v0(r)?this.state=A5r:r!==Du&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case Eh:this.closeTag();break;case Du:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:r,forbiddenState:o}=this;const{chunk:l,textHandler:u}=this;e:for(;;)switch(this.getCode()){case tT:{if(this.state=$De,u!==void 0){const{text:d}=this,h=l.slice(r,this.prevI);d.length!==0?(u(d+h),this.text=""):h.length!==0&&u(h)}o=w8;break e}case HK:this.state=rfe,this.entityReturnState=Xg,u!==void 0&&(this.text+=l.slice(r,this.prevI)),o=w8;break e;case ND:switch(o){case w8:o=sXt;break;case sXt:o=jDe;break;case jDe:break;default:throw new Error("impossible state")}break;case Eh:o===jDe&&this.fail('the string "]]>" is disallowed in char data.'),o=w8;break;case CE:u!==void 0&&(this.text+=`${l.slice(r,this.prevI)} +`),r=this.i,o=w8;break;case Du:u!==void 0&&(this.text+=l.slice(r));break e;default:o=w8}this.forbiddenState=o}handleTextOutsideRoot(){let{i:r}=this;const{chunk:o,textHandler:l}=this;let u=!1;e:for(;;){const d=this.getCode();switch(d){case tT:{if(this.state=$De,l!==void 0){const{text:h}=this,w=o.slice(r,this.prevI);h.length!==0?(l(h+w),this.text=""):w.length!==0&&l(w)}break e}case HK:this.state=rfe,this.entityReturnState=Xg,l!==void 0&&(this.text+=o.slice(r,this.prevI)),u=!0;break e;case CE:l!==void 0&&(this.text+=`${o.slice(r,this.prevI)} +`),r=this.i;break;case Du:l!==void 0&&(this.text+=o.slice(r));break e;default:v0(d)||(u=!0)}}u&&(!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(r,o){var l;const{prefix:u,local:d}=this.qname(r),h={name:r,prefix:u,local:d,value:o};if(this.attribList.push(h),(l=this.attributeHandler)===null||l===void 0||l.call(this,h),u==="xmlns"){const w=o.trim();this.currentXMLVersion==="1.0"&&w===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[d]=w,TBe(this,d,w)}else if(r==="xmlns"){const w=o.trim();this.topNS[""]=w,TBe(this,"",w)}}pushAttribPlain(r,o){var l;const u={name:r,value:o};this.attribList.push(u),(l=this.attributeHandler)===null||l===void 0||l.call(this,u)}end(){var r,o;this.sawRoot||this.fail("document must contain a root element.");const{tags:l}=this;for(;l.length>0;){const d=l.pop();this.fail(`unclosed tag: ${d.name}`)}this.state!==Xqt&&this.state!==Xg&&this.fail("unexpected end.");const{text:u}=this;return u.length!==0&&((r=this.textHandler)===null||r===void 0||r.call(this,u),this.text=""),this._closed=!0,(o=this.endHandler)===null||o===void 0||o.call(this),this._init(),this}resolve(r){var o,l;let u=this.topNS[r];if(u!==void 0)return u;const{tags:d}=this;for(let h=d.length-1;h>=0;h--)if(u=d[h].ns[r],u!==void 0)return u;return u=this.ns[r],u!==void 0?u:(l=(o=this.opt).resolvePrefix)===null||l===void 0?void 0:l.call(o,r)}qname(r){const o=r.indexOf(":");if(o===-1)return{prefix:"",local:r};const l=r.slice(o+1),u=r.slice(0,o);return(u===""||l===""||l.includes(":"))&&this.fail(`malformed name: ${r}.`),{prefix:u,local:l}}processAttribsNS(){var r;const{attribList:o}=this,l=this.tag;{const{prefix:h,local:w}=this.qname(l.name);l.prefix=h,l.local=w;const v=l.uri=(r=this.resolve(h))!==null&&r!==void 0?r:"";h!==""&&(h==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),v===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(h)}.`),l.uri=h))}if(o.length===0)return;const{attributes:u}=l,d=new Set;for(const h of o){const{name:w,prefix:v,local:y}=h;let E,A;v===""?(E=w==="xmlns"?GD:"",A=w):(E=this.resolve(v),E===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(v)}.`),E=v),A=`{${E}}${y}`),d.has(A)&&this.fail(`duplicate attribute: ${A}.`),d.add(A),h.uri=E,u[w]=h}this.attribList=[]}processAttribsPlain(){const{attribList:r}=this,o=this.tag.attributes;for(const{name:l,value:u}of r)o[l]!==void 0&&this.fail(`duplicate attribute: ${l}.`),o[l]=u;this.attribList=[]}openTag(){var r;this.processAttribs();const{tags:o}=this,l=this.tag;l.isSelfClosing=!1,(r=this.openTagHandler)===null||r===void 0||r.call(this,l),o.push(l),this.state=Xg,this.name=""}openSelfClosingTag(){var r,o,l;this.processAttribs();const{tags:u}=this,d=this.tag;d.isSelfClosing=!0,(r=this.openTagHandler)===null||r===void 0||r.call(this,d),(o=this.closeTagHandler)===null||o===void 0||o.call(this,d),(this.tag=(l=u[u.length-1])!==null&&l!==void 0?l:null)===null&&(this.closedRoot=!0),this.state=Xg,this.name=""}closeTag(){const{tags:r,name:o}=this;if(this.state=Xg,this.name="",o===""){this.fail("weird empty close tag."),this.text+="";return}const l=this.closeTagHandler;let u=r.length;for(;u-- >0;){const d=this.tag=r.pop();if(this.topNS=d.ns,l==null||l(d),d.name===o)break;this.fail("unexpected close tag.")}u===0?this.closedRoot=!0:u<0&&(this.fail(`unmatched closing tag: ${o}.`),this.text+=``)}parseEntity(r){if(r[0]!=="#"){const l=this.ENTITIES[r];return l!==void 0?l:(this.fail(this.isName(r)?"undefined entity.":"disallowed character in entity name."),`&${r};`)}let o=NaN;return r[1]==="x"&&/^#x[0-9a-f]+$/i.test(r)?o=parseInt(r.slice(2),16):/^#[0-9]+$/.test(r)&&(o=parseInt(r.slice(1),10)),this.isChar(o)?String.fromCodePoint(o):(this.fail("malformed character entity."),`&${r};`)}}XL.SaxesParser=L5r;var Jun={exports:{}},FDe={exports:{}},Vf={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},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(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},PromiseResolve(n){return Promise.resolve(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.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(n,r,o){return n.set(r,o)},Boolean,Uint8Array},Yun={exports:{}};(function(n){const r=Kr,{kResistStopPropagation:o,SymbolDispose:l}=Vf,u=globalThis.AbortSignal||$o().AbortSignal,d=globalThis.AbortController||$o().AbortController,h=Object.getPrototypeOf(async function(){}).constructor,w=globalThis.Blob||r.Blob,v=typeof w<"u"?function(R){return R instanceof w}:function(R){return!1},y=(C,R)=>{if(C!==void 0&&(C===null||typeof C!="object"||!("aborted"in C)))throw new ERR_INVALID_ARG_TYPE(R,"AbortSignal",C)},E=(C,R)=>{if(typeof C!="function")throw new ERR_INVALID_ARG_TYPE(R,"Function",C)};class A extends Error{constructor(R){if(!Array.isArray(R))throw new TypeError(`Expected input to be an Array, got ${typeof R}`);let O="";for(let M=0;M{C=M,R=L}),resolve:C,reject:R}},promisify(C){return new Promise((R,O)=>{C((M,...L)=>M?O(M):R(...L))})},debuglog(){return function(){}},format(C,...R){return C.replace(/%([sdifj])/g,function(...[O,M]){const L=R.shift();return M==="f"?L.toFixed(6):M==="j"?JSON.stringify(L):M==="s"&&typeof L=="object"?`${L.constructor!==Object?L.constructor.name:""} {}`.trim():L.toString()})},inspect(C){switch(typeof C){case"string":if(C.includes("'"))if(C.includes('"')){if(!C.includes("`")&&!C.includes("${"))return`\`${C}\``}else return`"${C}"`;return`'${C}'`;case"number":return isNaN(C)?"NaN":Object.is(C,-0)?String(C):C;case"bigint":return`${String(C)}n`;case"boolean":case"undefined":return String(C);case"object":return"{}"}},types:{isAsyncFunction(C){return C instanceof h},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:v,deprecate(C,R){return C},addAbortListener:Ns.addAbortListener||function(R,O){if(R===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",R);y(R,"signal"),E(O,"listener");let M;return R.aborted?queueMicrotask(()=>O()):(R.addEventListener("abort",O,{__proto__:null,once:!0,[o]:!0}),M=()=>{R.removeEventListener("abort",O)}),{__proto__:null,[l](){var L;(L=M)===null||L===void 0||L()}}},AbortSignalAny:u.any||function(R){if(R.length===1)return R[0];const O=new d,M=()=>O.abort();return R.forEach(L=>{y(L,"signals"),L.addEventListener("abort",M,{once:!0})}),O.signal.addEventListener("abort",()=>{R.forEach(L=>L.removeEventListener("abort",M))},{once:!0}),O.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Yun);var w1=Yun.exports,aVe={};const{format:j5r,inspect:The,AggregateError:F5r}=w1,B5r=globalThis.AggregateError||F5r,W5r=Symbol("kIsNodeError"),H5r=["string","function","number","object","Function","Object","boolean","bigint","symbol"],U5r=/^([A-Z][a-z0-9]*)+$/,G5r="__node_internal_",Yge={};function bP(n,r){if(!n)throw new Yge.ERR_INTERNAL_ASSERTION(r)}function aXt(n){let r="",o=n.length;const l=n[0]==="-"?1:0;for(;o>=l+4;o-=3)r=`_${n.slice(o-3,o)}${r}`;return`${n.slice(0,o)}${r}`}function V5r(n,r,o){if(typeof r=="function")return bP(r.length<=o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${r.length}).`),r(...o);const l=(r.match(/%[dfijoOs]/g)||[]).length;return bP(l===o.length,`Code: ${n}; The provided arguments length (${o.length}) does not match the required ones (${l}).`),o.length===0?r:j5r(r,...o)}function ib(n,r,o){o||(o=Error);class l extends o{constructor(...d){super(V5r(n,r,d))}toString(){return`${this.name} [${n}]: ${this.message}`}}Object.defineProperties(l.prototype,{name:{value:o.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),l.prototype.code=n,l.prototype[W5r]=!0,Yge[n]=l}function cXt(n){const r=G5r+n.name;return Object.defineProperty(n,"name",{value:r}),n}function z5r(n,r){if(n&&r&&n!==r){if(Array.isArray(r.errors))return r.errors.push(n),r;const o=new B5r([r,n],r.message);return o.code=r.code,o}return n||r}let K5r=class extends Error{constructor(r="The operation was aborted",o=void 0){if(o!==void 0&&typeof o!="object")throw new Yge.ERR_INVALID_ARG_TYPE("options","Object",o);super(r,o),this.code="ABORT_ERR",this.name="AbortError"}};ib("ERR_ASSERTION","%s",Error);ib("ERR_INVALID_ARG_TYPE",(n,r,o)=>{bP(typeof n=="string","'name' must be a string"),Array.isArray(r)||(r=[r]);let l="The ";n.endsWith(" argument")?l+=`${n} `:l+=`"${n}" ${n.includes(".")?"property":"argument"} `,l+="must be ";const u=[],d=[],h=[];for(const v of r)bP(typeof v=="string","All expected entries have to be of type string"),H5r.includes(v)?u.push(v.toLowerCase()):U5r.test(v)?d.push(v):(bP(v!=="object",'The value "object" should be written as "Object"'),h.push(v));if(d.length>0){const v=u.indexOf("object");v!==-1&&(u.splice(u,v,1),d.push("Object"))}if(u.length>0){switch(u.length){case 1:l+=`of type ${u[0]}`;break;case 2:l+=`one of type ${u[0]} or ${u[1]}`;break;default:{const v=u.pop();l+=`one of type ${u.join(", ")}, or ${v}`}}(d.length>0||h.length>0)&&(l+=" or ")}if(d.length>0){switch(d.length){case 1:l+=`an instance of ${d[0]}`;break;case 2:l+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const v=d.pop();l+=`an instance of ${d.join(", ")}, or ${v}`}}h.length>0&&(l+=" or ")}switch(h.length){case 0:break;case 1:h[0].toLowerCase()!==h[0]&&(l+="an "),l+=`${h[0]}`;break;case 2:l+=`one of ${h[0]} or ${h[1]}`;break;default:{const v=h.pop();l+=`one of ${h.join(", ")}, or ${v}`}}if(o==null)l+=`. Received ${o}`;else if(typeof o=="function"&&o.name)l+=`. Received function ${o.name}`;else if(typeof o=="object"){var w;if((w=o.constructor)!==null&&w!==void 0&&w.name)l+=`. Received an instance of ${o.constructor.name}`;else{const v=The(o,{depth:-1});l+=`. Received ${v}`}}else{let v=The(o,{colors:!1});v.length>25&&(v=`${v.slice(0,25)}...`),l+=`. Received type ${typeof o} (${v})`}return l},TypeError);ib("ERR_INVALID_ARG_VALUE",(n,r,o="is invalid")=>{let l=The(r);return l.length>128&&(l=l.slice(0,128)+"..."),`The ${n.includes(".")?"property":"argument"} '${n}' ${o}. Received ${l}`},TypeError);ib("ERR_INVALID_RETURN_VALUE",(n,r,o)=>{var l;const u=o!=null&&(l=o.constructor)!==null&&l!==void 0&&l.name?`instance of ${o.constructor.name}`:`type ${typeof o}`;return`Expected ${n} to be returned from the "${r}" function but got ${u}.`},TypeError);ib("ERR_MISSING_ARGS",(...n)=>{bP(n.length>0,"At least one arg needs to be specified");let r;const o=n.length;switch(n=(Array.isArray(n)?n:[n]).map(l=>`"${l}"`).join(" or "),o){case 1:r+=`The ${n[0]} argument`;break;case 2:r+=`The ${n[0]} and ${n[1]} arguments`;break;default:{const l=n.pop();r+=`The ${n.join(", ")}, and ${l} arguments`}break}return`${r} must be specified`},TypeError);ib("ERR_OUT_OF_RANGE",(n,r,o)=>{bP(r,'Missing "range" argument');let l;return Number.isInteger(o)&&Math.abs(o)>2**32?l=aXt(String(o)):typeof o=="bigint"?(l=String(o),(o>2n**32n||o<-(2n**32n))&&(l=aXt(l)),l+="n"):l=The(o),`The value of "${n}" is out of range. It must be ${r}. Received ${l}`},RangeError);ib("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);ib("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);ib("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);ib("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);ib("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);ib("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ib("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);ib("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);ib("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);ib("ERR_STREAM_WRITE_AFTER_END","write after end",Error);ib("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var L0={AbortError:K5r,aggregateTwoErrors:cXt(z5r),hideStackFrames:cXt,codes:Yge};const{ArrayIsArray:cVe,ArrayPrototypeIncludes:Qun,ArrayPrototypeJoin:Zun,ArrayPrototypeMap:q5r,NumberIsInteger:uVe,NumberIsNaN:X5r,NumberMAX_SAFE_INTEGER:J5r,NumberMIN_SAFE_INTEGER:Y5r,NumberParseInt:Q5r,ObjectPrototypeHasOwnProperty:Z5r,RegExpPrototypeExec:efn,String:e8r,StringPrototypeToUpperCase:t8r,StringPrototypeTrim:n8r}=Vf,{hideStackFrames:kv,codes:{ERR_SOCKET_BAD_PORT:r8r,ERR_INVALID_ARG_TYPE:tg,ERR_INVALID_ARG_VALUE:Mj,ERR_OUT_OF_RANGE:LP,ERR_UNKNOWN_SIGNAL:uXt}}=L0,{normalizeEncoding:i8r}=w1,{isAsyncFunction:o8r,isArrayBufferView:s8r}=w1.types,fXt={};function l8r(n){return n===(n|0)}function a8r(n){return n===n>>>0}const c8r=/^[0-7]+$/,u8r="must be a 32-bit unsigned integer or an octal string";function f8r(n,r,o){if(typeof n>"u"&&(n=o),typeof n=="string"){if(efn(c8r,n)===null)throw new Mj(r,n,u8r);n=Q5r(n,8)}return tfn(n,r),n}const d8r=kv((n,r,o=Y5r,l=J5r)=>{if(typeof n!="number")throw new tg(r,"number",n);if(!uVe(n))throw new LP(r,"an integer",n);if(nl)throw new LP(r,`>= ${o} && <= ${l}`,n)}),h8r=kv((n,r,o=-2147483648,l=2147483647)=>{if(typeof n!="number")throw new tg(r,"number",n);if(!uVe(n))throw new LP(r,"an integer",n);if(nl)throw new LP(r,`>= ${o} && <= ${l}`,n)}),tfn=kv((n,r,o=!1)=>{if(typeof n!="number")throw new tg(r,"number",n);if(!uVe(n))throw new LP(r,"an integer",n);const l=o?1:0,u=4294967295;if(nu)throw new LP(r,`>= ${l} && <= ${u}`,n)});function fVe(n,r){if(typeof n!="string")throw new tg(r,"string",n)}function p8r(n,r,o=void 0,l){if(typeof n!="number")throw new tg(r,"number",n);if(o!=null&&nl||(o!=null||l!=null)&&X5r(n))throw new LP(r,`${o!=null?`>= ${o}`:""}${o!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,n)}const b8r=kv((n,r,o)=>{if(!Qun(o,n)){const u="must be one of: "+Zun(q5r(o,d=>typeof d=="string"?`'${d}'`:e8r(d)),", ");throw new Mj(r,n,u)}});function nfn(n,r){if(typeof n!="boolean")throw new tg(r,"boolean",n)}function BDe(n,r,o){return n==null||!Z5r(n,r)?o:n[r]}const g8r=kv((n,r,o=null)=>{const l=BDe(o,"allowArray",!1),u=BDe(o,"allowFunction",!1);if(!BDe(o,"nullable",!1)&&n===null||!l&&cVe(n)||typeof n!="object"&&(!u||typeof n!="function"))throw new tg(r,"Object",n)}),w8r=kv((n,r)=>{if(n!=null&&typeof n!="object"&&typeof n!="function")throw new tg(r,"a dictionary",n)}),Qge=kv((n,r,o=0)=>{if(!cVe(n))throw new tg(r,"Array",n);if(n.length{if(!s8r(n))throw new tg(r,["Buffer","TypedArray","DataView"],n)});function E8r(n,r){const o=i8r(r),l=n.length;if(o==="hex"&&l%2!==0)throw new Mj("encoding",r,`is invalid for data of length ${l}`)}function k8r(n,r="Port",o=!0){if(typeof n!="number"&&typeof n!="string"||typeof n=="string"&&n8r(n).length===0||+n!==+n>>>0||n>65535||n===0&&!o)throw new r8r(r,n,o);return n|0}const rfn=kv((n,r)=>{if(n!==void 0&&(n===null||typeof n!="object"||!("aborted"in n)))throw new tg(r,"AbortSignal",n)}),R8r=kv((n,r)=>{if(typeof n!="function")throw new tg(r,"Function",n)}),x8r=kv((n,r)=>{if(typeof n!="function"||o8r(n))throw new tg(r,"Function",n)}),C8r=kv((n,r)=>{if(n!==void 0)throw new tg(r,"undefined",n)});function A8r(n,r,o){if(!Qun(o,n))throw new tg(r,`('${Zun(o,"|")}')`,n)}const T8r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function dXt(n,r){if(typeof n>"u"||!efn(T8r,n))throw new Mj(r,n,'must be an array or string of format "; rel=preload; as=style"')}function $8r(n){if(typeof n=="string")return dXt(n,"hints"),n;if(cVe(n)){const r=n.length;let o="";if(r===0)return o;for(let l=0;l; rel=preload; as=style"')}var BJ={isInt32:l8r,isUint32:a8r,parseFileMode:f8r,validateArray:Qge,validateStringArray:m8r,validateBooleanArray:y8r,validateAbortSignalArray:v8r,validateBoolean:nfn,validateBuffer:S8r,validateDictionary:w8r,validateEncoding:E8r,validateFunction:R8r,validateInt32:h8r,validateInteger:d8r,validateNumber:p8r,validateObject:g8r,validateOneOf:b8r,validatePlainFunction:x8r,validatePort:k8r,validateSignalName:_8r,validateString:fVe,validateUint32:tfn,validateUndefined:C8r,validateUnion:A8r,validateAbortSignal:rfn,validateLinkHeaderValue:$8r},dVe={exports:{}};const{SymbolAsyncIterator:hXt,SymbolIterator:pXt,SymbolFor:RO}=Vf,ifn=RO("nodejs.stream.destroyed"),ofn=RO("nodejs.stream.errored"),$Be=RO("nodejs.stream.readable"),IBe=RO("nodejs.stream.writable"),sfn=RO("nodejs.stream.disturbed"),I8r=RO("nodejs.webstream.isClosedPromise"),P8r=RO("nodejs.webstream.controllerErrorFunction");function Zge(n,r=!1){var o;return!!(n&&typeof n.pipe=="function"&&typeof n.on=="function"&&(!r||typeof n.pause=="function"&&typeof n.resume=="function")&&(!n._writableState||((o=n._readableState)===null||o===void 0?void 0:o.readable)!==!1)&&(!n._writableState||n._readableState))}function e1e(n){var r;return!!(n&&typeof n.write=="function"&&typeof n.on=="function"&&(!n._readableState||((r=n._writableState)===null||r===void 0?void 0:r.writable)!==!1))}function O8r(n){return!!(n&&typeof n.pipe=="function"&&n._readableState&&typeof n.on=="function"&&typeof n.write=="function")}function xk(n){return n&&(n._readableState||n._writableState||typeof n.write=="function"&&typeof n.on=="function"||typeof n.pipe=="function"&&typeof n.on=="function")}function lfn(n){return!!(n&&!xk(n)&&typeof n.pipeThrough=="function"&&typeof n.getReader=="function"&&typeof n.cancel=="function")}function afn(n){return!!(n&&!xk(n)&&typeof n.getWriter=="function"&&typeof n.abort=="function")}function cfn(n){return!!(n&&!xk(n)&&typeof n.readable=="object"&&typeof n.writable=="object")}function N8r(n){return lfn(n)||afn(n)||cfn(n)}function M8r(n,r){return n==null?!1:r===!0?typeof n[hXt]=="function":r===!1?typeof n[pXt]=="function":typeof n[hXt]=="function"||typeof n[pXt]=="function"}function t1e(n){if(!xk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!!(n.destroyed||n[ifn]||l!=null&&l.destroyed)}function ufn(n){if(!e1e(n))return null;if(n.writableEnded===!0)return!0;const r=n._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function D8r(n,r){if(!e1e(n))return null;if(n.writableFinished===!0)return!0;const o=n._writableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.finished)!="boolean"?null:!!(o.finished||r===!1&&o.ended===!0&&o.length===0)}function L8r(n){if(!Zge(n))return null;if(n.readableEnded===!0)return!0;const r=n._readableState;return!r||r.errored?!1:typeof(r==null?void 0:r.ended)!="boolean"?null:r.ended}function ffn(n,r){if(!Zge(n))return null;const o=n._readableState;return o!=null&&o.errored?!1:typeof(o==null?void 0:o.endEmitted)!="boolean"?null:!!(o.endEmitted||r===!1&&o.ended===!0&&o.length===0)}function dfn(n){return n&&n[$Be]!=null?n[$Be]:typeof(n==null?void 0:n.readable)!="boolean"?null:t1e(n)?!1:Zge(n)&&n.readable&&!ffn(n)}function hfn(n){return n&&n[IBe]!=null?n[IBe]:typeof(n==null?void 0:n.writable)!="boolean"?null:t1e(n)?!1:e1e(n)&&n.writable&&!ufn(n)}function j8r(n,r){return xk(n)?t1e(n)?!0:!((r==null?void 0:r.readable)!==!1&&dfn(n)||(r==null?void 0:r.writable)!==!1&&hfn(n)):null}function F8r(n){var r,o;return xk(n)?n.writableErrored?n.writableErrored:(r=(o=n._writableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function B8r(n){var r,o;return xk(n)?n.readableErrored?n.readableErrored:(r=(o=n._readableState)===null||o===void 0?void 0:o.errored)!==null&&r!==void 0?r:null:null}function W8r(n){if(!xk(n))return null;if(typeof n.closed=="boolean")return n.closed;const r=n._writableState,o=n._readableState;return typeof(r==null?void 0:r.closed)=="boolean"||typeof(o==null?void 0:o.closed)=="boolean"?(r==null?void 0:r.closed)||(o==null?void 0:o.closed):typeof n._closed=="boolean"&&pfn(n)?n._closed:null}function pfn(n){return typeof n._closed=="boolean"&&typeof n._defaultKeepAlive=="boolean"&&typeof n._removedConnection=="boolean"&&typeof n._removedContLen=="boolean"}function bfn(n){return typeof n._sent100=="boolean"&&pfn(n)}function H8r(n){var r;return typeof n._consuming=="boolean"&&typeof n._dumped=="boolean"&&((r=n.req)===null||r===void 0?void 0:r.upgradeOrConnect)===void 0}function U8r(n){if(!xk(n))return null;const r=n._writableState,o=n._readableState,l=r||o;return!l&&bfn(n)||!!(l&&l.autoDestroy&&l.emitClose&&l.closed===!1)}function G8r(n){var r;return!!(n&&((r=n[sfn])!==null&&r!==void 0?r:n.readableDidRead||n.readableAborted))}function V8r(n){var r,o,l,u,d,h,w,v,y,E;return!!(n&&((r=(o=(l=(u=(d=(h=n[ofn])!==null&&h!==void 0?h:n.readableErrored)!==null&&d!==void 0?d:n.writableErrored)!==null&&u!==void 0?u:(w=n._readableState)===null||w===void 0?void 0:w.errorEmitted)!==null&&l!==void 0?l:(v=n._writableState)===null||v===void 0?void 0:v.errorEmitted)!==null&&o!==void 0?o:(y=n._readableState)===null||y===void 0?void 0:y.errored)!==null&&r!==void 0?r:!((E=n._writableState)===null||E===void 0)&&E.errored))}var Mx={isDestroyed:t1e,kIsDestroyed:ifn,isDisturbed:G8r,kIsDisturbed:sfn,isErrored:V8r,kIsErrored:ofn,isReadable:dfn,kIsReadable:$Be,kIsClosedPromise:I8r,kControllerErrorFunction:P8r,kIsWritable:IBe,isClosed:W8r,isDuplexNodeStream:O8r,isFinished:j8r,isIterable:M8r,isReadableNodeStream:Zge,isReadableStream:lfn,isReadableEnded:L8r,isReadableFinished:ffn,isReadableErrored:B8r,isNodeStream:xk,isWebStream:N8r,isWritable:hfn,isWritableNodeStream:e1e,isWritableStream:afn,isWritableEnded:ufn,isWritableFinished:D8r,isWritableErrored:F8r,isServerRequest:H8r,isServerResponse:bfn,willEmitClose:U8r,isTransformStream:cfn};const nT=ui,{AbortError:gfn,codes:z8r}=L0,{ERR_INVALID_ARG_TYPE:K8r,ERR_STREAM_PREMATURE_CLOSE:bXt}=z8r,{kEmptyObject:PBe,once:OBe}=w1,{validateAbortSignal:q8r,validateFunction:X8r,validateObject:J8r,validateBoolean:Y8r}=BJ,{Promise:Q8r,PromisePrototypeThen:Z8r,SymbolDispose:wfn}=Vf,{isClosed:ePr,isReadable:gXt,isReadableNodeStream:WDe,isReadableStream:tPr,isReadableFinished:wXt,isReadableErrored:mXt,isWritable:yXt,isWritableNodeStream:vXt,isWritableStream:nPr,isWritableFinished:_Xt,isWritableErrored:SXt,isNodeStream:rPr,willEmitClose:iPr,kIsClosedPromise:oPr}=Mx;let wL;function sPr(n){return n.setHeader&&typeof n.abort=="function"}const NBe=()=>{};function mfn(n,r,o){var l,u;if(arguments.length===2?(o=r,r=PBe):r==null?r=PBe:J8r(r,"options"),X8r(o,"callback"),q8r(r.signal,"options.signal"),o=OBe(o),tPr(n)||nPr(n))return lPr(n,r,o);if(!rPr(n))throw new K8r("stream",["ReadableStream","WritableStream","Stream"],n);const d=(l=r.readable)!==null&&l!==void 0?l:WDe(n),h=(u=r.writable)!==null&&u!==void 0?u:vXt(n),w=n._writableState,v=n._readableState,y=()=>{n.writable||C()};let E=iPr(n)&&WDe(n)===d&&vXt(n)===h,A=_Xt(n,!1);const C=()=>{A=!0,n.destroyed&&(E=!1),!(E&&(!n.readable||d))&&(!d||R)&&o.call(n)};let R=wXt(n,!1);const O=()=>{R=!0,n.destroyed&&(E=!1),!(E&&(!n.writable||h))&&(!h||A)&&o.call(n)},M=te=>{o.call(n,te)};let L=ePr(n);const H=()=>{L=!0;const te=SXt(n)||mXt(n);if(te&&typeof te!="boolean")return o.call(n,te);if(d&&!R&&WDe(n,!0)&&!wXt(n,!1))return o.call(n,new bXt);if(h&&!A&&!_Xt(n,!1))return o.call(n,new bXt);o.call(n)},G=()=>{L=!0;const te=SXt(n)||mXt(n);if(te&&typeof te!="boolean")return o.call(n,te);o.call(n)},j=()=>{n.req.on("finish",C)};sPr(n)?(n.on("complete",C),E||n.on("abort",H),n.req?j():n.on("request",j)):h&&!w&&(n.on("end",y),n.on("close",y)),!E&&typeof n.aborted=="boolean"&&n.on("aborted",H),n.on("end",O),n.on("finish",C),r.error!==!1&&n.on("error",M),n.on("close",H),L?nT.nextTick(H):w!=null&&w.errorEmitted||v!=null&&v.errorEmitted?E||nT.nextTick(G):(!d&&(!E||gXt(n))&&(A||yXt(n)===!1)||!h&&(!E||yXt(n))&&(R||gXt(n)===!1)||v&&n.req&&n.aborted)&&nT.nextTick(G);const Q=()=>{o=NBe,n.removeListener("aborted",H),n.removeListener("complete",C),n.removeListener("abort",H),n.removeListener("request",j),n.req&&n.req.removeListener("finish",C),n.removeListener("end",y),n.removeListener("close",y),n.removeListener("finish",C),n.removeListener("end",O),n.removeListener("error",M),n.removeListener("close",H)};if(r.signal&&!L){const te=()=>{const pe=o;Q(),pe.call(n,new gfn(void 0,{cause:r.signal.reason}))};if(r.signal.aborted)nT.nextTick(te);else{wL=wL||w1.addAbortListener;const pe=wL(r.signal,te),Le=o;o=OBe((...Ee)=>{pe[wfn](),Le.apply(n,Ee)})}}return Q}function lPr(n,r,o){let l=!1,u=NBe;if(r.signal)if(u=()=>{l=!0,o.call(n,new gfn(void 0,{cause:r.signal.reason}))},r.signal.aborted)nT.nextTick(u);else{wL=wL||w1.addAbortListener;const h=wL(r.signal,u),w=o;o=OBe((...v)=>{h[wfn](),w.apply(n,v)})}const d=(...h)=>{l||nT.nextTick(()=>o.apply(n,h))};return Z8r(n[oPr].promise,d,d),NBe}function aPr(n,r){var o;let l=!1;return r===null&&(r=PBe),(o=r)!==null&&o!==void 0&&o.cleanup&&(Y8r(r.cleanup,"cleanup"),l=r.cleanup),new Q8r((u,d)=>{const h=mfn(n,r,w=>{l&&h(),w?d(w):u()})})}dVe.exports=mfn;dVe.exports.finished=aPr;var qT=dVe.exports;const YE=ui,{aggregateTwoErrors:cPr,codes:{ERR_MULTIPLE_CALLBACK:uPr},AbortError:fPr}=L0,{Symbol:yfn}=Vf,{kIsDestroyed:dPr,isDestroyed:hPr,isFinished:pPr,isServerRequest:bPr}=Mx,vfn=yfn("kDestroy"),MBe=yfn("kConstruct");function _fn(n,r,o){n&&(n.stack,r&&!r.errored&&(r.errored=n),o&&!o.errored&&(o.errored=n))}function gPr(n,r){const o=this._readableState,l=this._writableState,u=l||o;return l!=null&&l.destroyed||o!=null&&o.destroyed?(typeof r=="function"&&r(),this):(_fn(n,l,o),l&&(l.destroyed=!0),o&&(o.destroyed=!0),u.constructed?EXt(this,n,r):this.once(vfn,function(d){EXt(this,cPr(d,n),r)}),this)}function EXt(n,r,o){let l=!1;function u(d){if(l)return;l=!0;const h=n._readableState,w=n._writableState;_fn(d,w,h),w&&(w.closed=!0),h&&(h.closed=!0),typeof o=="function"&&o(d),d?YE.nextTick(wPr,n,d):YE.nextTick(Sfn,n)}try{n._destroy(r||null,u)}catch(d){u(d)}}function wPr(n,r){DBe(n,r),Sfn(n)}function Sfn(n){const r=n._readableState,o=n._writableState;o&&(o.closeEmitted=!0),r&&(r.closeEmitted=!0),(o!=null&&o.emitClose||r!=null&&r.emitClose)&&n.emit("close")}function DBe(n,r){const o=n._readableState,l=n._writableState;l!=null&&l.errorEmitted||o!=null&&o.errorEmitted||(l&&(l.errorEmitted=!0),o&&(o.errorEmitted=!0),n.emit("error",r))}function mPr(){const n=this._readableState,r=this._writableState;n&&(n.constructed=!0,n.closed=!1,n.closeEmitted=!1,n.destroyed=!1,n.errored=null,n.errorEmitted=!1,n.reading=!1,n.ended=n.readable===!1,n.endEmitted=n.readable===!1),r&&(r.constructed=!0,r.destroyed=!1,r.closed=!1,r.closeEmitted=!1,r.errored=null,r.errorEmitted=!1,r.finalCalled=!1,r.prefinished=!1,r.ended=r.writable===!1,r.ending=r.writable===!1,r.finished=r.writable===!1)}function LBe(n,r,o){const l=n._readableState,u=n._writableState;if(u!=null&&u.destroyed||l!=null&&l.destroyed)return this;l!=null&&l.autoDestroy||u!=null&&u.autoDestroy?n.destroy(r):r&&(r.stack,u&&!u.errored&&(u.errored=r),l&&!l.errored&&(l.errored=r),o?YE.nextTick(DBe,n,r):DBe(n,r))}function yPr(n,r){if(typeof n._construct!="function")return;const o=n._readableState,l=n._writableState;o&&(o.constructed=!1),l&&(l.constructed=!1),n.once(MBe,r),!(n.listenerCount(MBe)>1)&&YE.nextTick(vPr,n)}function vPr(n){let r=!1;function o(l){if(r){LBe(n,l??new uPr);return}r=!0;const u=n._readableState,d=n._writableState,h=d||u;u&&(u.constructed=!0),d&&(d.constructed=!0),h.destroyed?n.emit(vfn,l):l?LBe(n,l,!0):YE.nextTick(_Pr,n)}try{n._construct(l=>{YE.nextTick(o,l)})}catch(l){YE.nextTick(o,l)}}function _Pr(n){n.emit(MBe)}function kXt(n){return(n==null?void 0:n.setHeader)&&typeof n.abort=="function"}function Efn(n){n.emit("close")}function SPr(n,r){n.emit("error",r),YE.nextTick(Efn,n)}function EPr(n,r){!n||hPr(n)||(!r&&!pPr(n)&&(r=new fPr),bPr(n)?(n.socket=null,n.destroy(r)):kXt(n)?n.abort():kXt(n.req)?n.req.abort():typeof n.destroy=="function"?n.destroy(r):typeof n.close=="function"?n.close():r?YE.nextTick(SPr,n,r):YE.nextTick(Efn,n),n.destroyed||(n[dPr]=!0))}var Dj={construct:yPr,destroyer:EPr,destroy:gPr,undestroy:mPr,errorOrDestroy:LBe};const{ArrayIsArray:kPr,ObjectSetPrototypeOf:kfn}=Vf,{EventEmitter:n1e}=Ns;function r1e(n){n1e.call(this,n)}kfn(r1e.prototype,n1e.prototype);kfn(r1e,n1e);r1e.prototype.pipe=function(n,r){const o=this;function l(E){n.writable&&n.write(E)===!1&&o.pause&&o.pause()}o.on("data",l);function u(){o.readable&&o.resume&&o.resume()}n.on("drain",u),!n._isStdio&&(!r||r.end!==!1)&&(o.on("end",h),o.on("close",w));let d=!1;function h(){d||(d=!0,n.end())}function w(){d||(d=!0,typeof n.destroy=="function"&&n.destroy())}function v(E){y(),n1e.listenerCount(this,"error")===0&&this.emit("error",E)}jBe(o,"error",v),jBe(n,"error",v);function y(){o.removeListener("data",l),n.removeListener("drain",u),o.removeListener("end",h),o.removeListener("close",w),o.removeListener("error",v),n.removeListener("error",v),o.removeListener("end",y),o.removeListener("close",y),n.removeListener("close",y)}return o.on("end",y),o.on("close",y),n.on("close",y),n.emit("pipe",o),n};function jBe(n,r,o){if(typeof n.prependListener=="function")return n.prependListener(r,o);!n._events||!n._events[r]?n.on(r,o):kPr(n._events[r])?n._events[r].unshift(o):n._events[r]=[o,n._events[r]]}var hVe={Stream:r1e,prependListener:jBe},Rfn={exports:{}};(function(n){const{SymbolDispose:r}=Vf,{AbortError:o,codes:l}=L0,{isNodeStream:u,isWebStream:d,kControllerErrorFunction:h}=Mx,w=qT,{ERR_INVALID_ARG_TYPE:v}=l;let y;const E=(A,C)=>{if(typeof A!="object"||!("aborted"in A))throw new v(C,"AbortSignal",A)};n.exports.addAbortSignal=function(C,R){if(E(C,"signal"),!u(R)&&!d(R))throw new v("stream",["ReadableStream","WritableStream","Stream"],R);return n.exports.addAbortSignalNoValidate(C,R)},n.exports.addAbortSignalNoValidate=function(A,C){if(typeof A!="object"||!("aborted"in A))return C;const R=u(C)?()=>{C.destroy(new o(void 0,{cause:A.reason}))}:()=>{C[h](new o(void 0,{cause:A.reason}))};if(A.aborted)R();else{y=y||w1.addAbortListener;const O=y(A,R);w(C,O[r])}return C}})(Rfn);var i1e=Rfn.exports;const{StringPrototypeSlice:RXt,SymbolIterator:RPr,TypedArrayPrototypeSet:afe,Uint8Array:xPr}=Vf,{Buffer:HDe}=Kr,{inspect:CPr}=w1;var APr=class{constructor(){this.head=null,this.tail=null,this.length=0}push(r){const o={data:r,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length}unshift(r){const o={data:r,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}shift(){if(this.length===0)return;const r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}clear(){this.head=this.tail=null,this.length=0}join(r){if(this.length===0)return"";let o=this.head,l=""+o.data;for(;(o=o.next)!==null;)l+=r+o.data;return l}concat(r){if(this.length===0)return HDe.alloc(0);const o=HDe.allocUnsafe(r>>>0);let l=this.head,u=0;for(;l;)afe(o,l.data,u),u+=l.data.length,l=l.next;return o}consume(r,o){const l=this.head.data;if(rd.length)o+=d,r-=d.length;else{r===d.length?(o+=d,++u,l.next?this.head=l.next:this.head=this.tail=null):(o+=RXt(d,0,r),this.head=l,l.data=RXt(d,r));break}++u}while((l=l.next)!==null);return this.length-=u,o}_getBuffer(r){const o=HDe.allocUnsafe(r),l=r;let u=this.head,d=0;do{const h=u.data;if(r>h.length)afe(o,h,l-r),r-=h.length;else{r===h.length?(afe(o,h,l-r),++d,u.next?this.head=u.next:this.head=this.tail=null):(afe(o,new xPr(h.buffer,h.byteOffset,r),l-r),this.head=u,u.data=h.slice(r));break}++d}while((u=u.next)!==null);return this.length-=d,o}[Symbol.for("nodejs.util.inspect.custom")](r,o){return CPr(this,{...o,depth:0,customInspect:!1})}};const{MathFloor:TPr,NumberIsInteger:$Pr}=Vf,{validateInteger:IPr}=BJ,{ERR_INVALID_ARG_VALUE:PPr}=L0.codes;let xfn=16*1024,Cfn=16;function OPr(n,r,o){return n.highWaterMark!=null?n.highWaterMark:r?n[o]:null}function Afn(n){return n?Cfn:xfn}function NPr(n,r){IPr(r,"value",0),n?Cfn=r:xfn=r}function MPr(n,r,o,l){const u=OPr(r,l,o);if(u!=null){if(!$Pr(u)||u<0){const d=l?`options.${o}`:"options.highWaterMark";throw new PPr(d,u)}return TPr(u)}return Afn(n.objectMode)}var o1e={getHighWaterMark:MPr,getDefaultHighWaterMark:Afn,setDefaultHighWaterMark:NPr};const xXt=ui,{PromisePrototypeThen:DPr,SymbolAsyncIterator:CXt,SymbolIterator:AXt}=Vf,{Buffer:LPr}=Kr,{ERR_INVALID_ARG_TYPE:jPr,ERR_STREAM_NULL_VALUES:FPr}=L0.codes;function BPr(n,r,o){let l;if(typeof r=="string"||r instanceof LPr)return new n({objectMode:!0,...o,read(){this.push(r),this.push(null)}});let u;if(r&&r[CXt])u=!0,l=r[CXt]();else if(r&&r[AXt])u=!1,l=r[AXt]();else throw new jPr("iterable",["Iterable"],r);const d=new n({objectMode:!0,highWaterMark:1,...o});let h=!1;d._read=function(){h||(h=!0,v())},d._destroy=function(y,E){DPr(w(y),()=>xXt.nextTick(E,y),A=>xXt.nextTick(E,A||y))};async function w(y){const E=y!=null,A=typeof l.throw=="function";if(E&&A){const{value:C,done:R}=await l.throw(y);if(await C,R)return}if(typeof l.return=="function"){const{value:C}=await l.return();await C}}async function v(){for(;;){try{const{value:y,done:E}=u?await l.next():l.next();if(E)d.push(null);else{const A=y&&typeof y.then=="function"?await y:y;if(A===null)throw h=!1,new FPr;if(d.push(A))continue;h=!1}}catch(y){d.destroy(y)}break}}return d}var Tfn=BPr,UDe,TXt;function s1e(){if(TXt)return UDe;TXt=1;const n=ui,{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:l,NumberParseInt:u,ObjectDefineProperties:d,ObjectKeys:h,ObjectSetPrototypeOf:w,Promise:v,SafeSet:y,SymbolAsyncDispose:E,SymbolAsyncIterator:A,Symbol:C}=Vf;UDe=he,he.ReadableState=St;const{EventEmitter:R}=Ns,{Stream:O,prependListener:M}=hVe,{Buffer:L}=Kr,{addAbortSignal:H}=i1e,G=qT;let j=w1.debuglog("stream",S=>{j=S});const Q=APr,te=Dj,{getHighWaterMark:pe,getDefaultHighWaterMark:Le}=o1e,{aggregateTwoErrors:Ee,codes:{ERR_INVALID_ARG_TYPE:le,ERR_METHOD_NOT_IMPLEMENTED:xe,ERR_OUT_OF_RANGE:be,ERR_STREAM_PUSH_AFTER_EOF:ae,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:F},AbortError:me}=L0,{validateObject:ye}=BJ,we=C("kPaused"),{StringDecoder:Be}=rm,He=Tfn;w(he.prototype,O.prototype),w(he,O);const Ue=()=>{},{errorOrDestroy:Ge}=te,Me=1,vt=2,re=4,Te=8,ct=16,at=32,Ye=64,mt=128,jt=256,rn=512,Pe=1024,Oe=2048,T=4096,$=8192,B=16384,K=32768,q=65536,ke=1<<17,Re=1<<18;function Ie(S){return{enumerable:!1,get(){return(this.state&S)!==0},set(x){x?this.state|=S:this.state&=~S}}}d(St.prototype,{objectMode:Ie(Me),ended:Ie(vt),endEmitted:Ie(re),reading:Ie(Te),constructed:Ie(ct),sync:Ie(at),needReadable:Ie(Ye),emittedReadable:Ie(mt),readableListening:Ie(jt),resumeScheduled:Ie(rn),errorEmitted:Ie(Pe),emitClose:Ie(Oe),autoDestroy:Ie(T),destroyed:Ie($),closed:Ie(B),closeEmitted:Ie(K),multiAwaitDrain:Ie(q),readingMore:Ie(ke),dataEmitted:Ie(Re)});function St(S,x,Y){typeof Y!="boolean"&&(Y=x instanceof mx()),this.state=Oe|T|ct|at,S&&S.objectMode&&(this.state|=Me),Y&&S&&S.readableObjectMode&&(this.state|=Me),this.highWaterMark=S?pe(this,S,"readableHighWaterMark",Y):Le(!1),this.buffer=new Q,this.length=0,this.pipes=[],this.flowing=null,this[we]=null,S&&S.emitClose===!1&&(this.state&=~Oe),S&&S.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,S&&S.encoding&&(this.decoder=new Be(S.encoding),this.encoding=S.encoding)}function he(S){if(!(this instanceof he))return new he(S);const x=this instanceof mx();this._readableState=new St(S,this,x),S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&!x&&H(S.signal,this)),O.call(this,S),te.construct(this,()=>{this._readableState.needReadable&&ht(this,this._readableState)})}he.prototype.destroy=te.destroy,he.prototype._undestroy=te.undestroy,he.prototype._destroy=function(S,x){x(S)},he.prototype[R.captureRejectionSymbol]=function(S){this.destroy(S)},he.prototype[E]=function(){let S;return this.destroyed||(S=this.readableEnded?null:new me,this.destroy(S)),new v((x,Y)=>G(this,J=>J&&J!==S?Y(J):x(null)))},he.prototype.push=function(S,x){return zt(this,S,x,!1)},he.prototype.unshift=function(S,x){return zt(this,S,x,!0)};function zt(S,x,Y,J){j("readableAddChunk",x);const ue=S._readableState;let Yt;if(ue.state&Me||(typeof x=="string"?(Y=Y||ue.defaultEncoding,ue.encoding!==Y&&(J&&ue.encoding?x=L.from(x,Y).toString(ue.encoding):(x=L.from(x,Y),Y=""))):x instanceof L?Y="":O._isUint8Array(x)?(x=O._uint8ArrayToBuffer(x),Y=""):x!=null&&(Yt=new le("chunk",["string","Buffer","Uint8Array"],x))),Yt)Ge(S,Yt);else if(x===null)ue.state&=~Te,ce(S,ue);else if(ue.state&Me||x&&x.length>0)if(J)if(ue.state&re)Ge(S,new F);else{if(ue.destroyed||ue.errored)return!1;Qt(S,ue,x,!0)}else if(ue.ended)Ge(S,new ae);else{if(ue.destroyed||ue.errored)return!1;ue.state&=~Te,ue.decoder&&!Y?(x=ue.decoder.write(x),ue.objectMode||x.length!==0?Qt(S,ue,x,!1):ht(S,ue)):Qt(S,ue,x,!1)}else J||(ue.state&=~Te,ht(S,ue));return!ue.ended&&(ue.length0?(x.state&q?x.awaitDrainWriters.clear():x.awaitDrainWriters=null,x.dataEmitted=!0,S.emit("data",Y)):(x.length+=x.objectMode?1:Y.length,J?x.buffer.unshift(Y):x.buffer.push(Y),x.state&Ye&&de(S)),ht(S,x)}he.prototype.isPaused=function(){const S=this._readableState;return S[we]===!0||S.flowing===!1},he.prototype.setEncoding=function(S){const x=new Be(S);this._readableState.decoder=x,this._readableState.encoding=this._readableState.decoder.encoding;const Y=this._readableState.buffer;let J="";for(const ue of Y)J+=x.write(ue);return Y.clear(),J!==""&&Y.push(J),this._readableState.length=J.length,this};const $n=1073741824;function Gn(S){if(S>$n)throw new be("size","<= 1GiB",S);return S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++,S}function $e(S,x){return S<=0||x.length===0&&x.ended?0:x.state&Me?1:l(S)?x.flowing&&x.length?x.buffer.first().length:x.length:S<=x.length?S:x.ended?x.length:0}he.prototype.read=function(S){j("read",S),S===void 0?S=NaN:o(S)||(S=u(S,10));const x=this._readableState,Y=S;if(S>x.highWaterMark&&(x.highWaterMark=Gn(S)),S!==0&&(x.state&=~mt),S===0&&x.needReadable&&((x.highWaterMark!==0?x.length>=x.highWaterMark:x.length>0)||x.ended))return j("read: emitReadable",x.length,x.ended),x.length===0&&x.ended?co(this):de(this),null;if(S=$e(S,x),S===0&&x.ended)return x.length===0&&co(this),null;let J=(x.state&Ye)!==0;if(j("need readable",J),(x.length===0||x.length-S0?ue=Al(S,x):ue=null,ue===null?(x.needReadable=x.length<=x.highWaterMark,S=0):(x.length-=S,x.multiAwaitDrain?x.awaitDrainWriters.clear():x.awaitDrainWriters=null),x.length===0&&(x.ended||(x.needReadable=!0),Y!==S&&x.ended&&co(this)),ue!==null&&!x.errorEmitted&&!x.closeEmitted&&(x.dataEmitted=!0,this.emit("data",ue)),ue};function ce(S,x){if(j("onEofChunk"),!x.ended){if(x.decoder){const Y=x.decoder.end();Y&&Y.length&&(x.buffer.push(Y),x.length+=x.objectMode?1:Y.length)}x.ended=!0,x.sync?de(S):(x.needReadable=!1,x.emittedReadable=!0,et(S))}}function de(S){const x=S._readableState;j("emitReadable",x.needReadable,x.emittedReadable),x.needReadable=!1,x.emittedReadable||(j("emitReadable",x.flowing),x.emittedReadable=!0,n.nextTick(et,S))}function et(S){const x=S._readableState;j("emitReadable_",x.destroyed,x.length,x.ended),!x.destroyed&&!x.errored&&(x.length||x.ended)&&(S.emit("readable"),x.emittedReadable=!1),x.needReadable=!x.flowing&&!x.ended&&x.length<=x.highWaterMark,xi(S)}function ht(S,x){!x.readingMore&&x.constructed&&(x.readingMore=!0,n.nextTick(Jt,S,x))}function Jt(S,x){for(;!x.reading&&!x.ended&&(x.length1&&J.pipes.includes(S)&&(j("false write response, pause",J.awaitDrainWriters.size),J.awaitDrainWriters.add(S)),Y.pause()),Fr||(Fr=Zt(Y,S),S.on("drain",Fr))}Y.on("data",ml);function ml(jr){j("ondata");const lr=S.write(jr);j("dest.write",lr),lr===!1&&Rs()}function gs(jr){if(j("onerror",jr),wi(),S.removeListener("error",gs),S.listenerCount("error")===0){const lr=S._writableState||S._readableState;lr&&!lr.errorEmitted?Ge(S,jr):S.emit("error",jr)}}M(S,"error",gs);function as(){S.removeListener("finish",ws),wi()}S.once("close",as);function ws(){j("onfinish"),S.removeListener("close",as),wi()}S.once("finish",ws);function wi(){j("unpipe"),Y.unpipe(S)}return S.emit("pipe",Y),S.writableNeedDrain===!0?Rs():J.flowing||(j("pipe resume"),Y.resume()),S};function Zt(S,x){return function(){const J=S._readableState;J.awaitDrainWriters===x?(j("pipeOnDrain",1),J.awaitDrainWriters=null):J.multiAwaitDrain&&(j("pipeOnDrain",J.awaitDrainWriters.size),J.awaitDrainWriters.delete(x)),(!J.awaitDrainWriters||J.awaitDrainWriters.size===0)&&S.listenerCount("data")&&S.resume()}}he.prototype.unpipe=function(S){const x=this._readableState,Y={hasUnpiped:!1};if(x.pipes.length===0)return this;if(!S){const ue=x.pipes;x.pipes=[],this.pause();for(let Yt=0;Yt0,J.flowing!==!1&&this.resume()):S==="readable"&&!J.endEmitted&&!J.readableListening&&(J.readableListening=J.needReadable=!0,J.flowing=!1,J.emittedReadable=!1,j("on readable",J.length,J.reading),J.length?de(this):J.reading||n.nextTick(ao,this)),Y},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(S,x){const Y=O.prototype.removeListener.call(this,S,x);return S==="readable"&&n.nextTick(qr,this),Y},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(S){const x=O.prototype.removeAllListeners.apply(this,arguments);return(S==="readable"||S===void 0)&&n.nextTick(qr,this),x};function qr(S){const x=S._readableState;x.readableListening=S.listenerCount("readable")>0,x.resumeScheduled&&x[we]===!1?x.flowing=!0:S.listenerCount("data")>0?S.resume():x.readableListening||(x.flowing=null)}function ao(S){j("readable nexttick read 0"),S.read(0)}he.prototype.resume=function(){const S=this._readableState;return S.flowing||(j("resume"),S.flowing=!S.readableListening,ki(this,S)),S[we]=!1,this};function ki(S,x){x.resumeScheduled||(x.resumeScheduled=!0,n.nextTick(Ri,S,x))}function Ri(S,x){j("resume",x.reading),x.reading||S.read(0),x.resumeScheduled=!1,S.emit("resume"),xi(S),x.flowing&&!x.reading&&S.read(0)}he.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[we]=!0,this};function xi(S){const x=S._readableState;for(j("flow",x.flowing);x.flowing&&S.read()!==null;);}he.prototype.wrap=function(S){let x=!1;S.on("data",J=>{!this.push(J)&&S.pause&&(x=!0,S.pause())}),S.on("end",()=>{this.push(null)}),S.on("error",J=>{Ge(this,J)}),S.on("close",()=>{this.destroy()}),S.on("destroy",()=>{this.destroy()}),this._read=()=>{x&&S.resume&&(x=!1,S.resume())};const Y=h(S);for(let J=1;J{ue=An?Ee(ue,An):null,Y(),Y=Ue});try{for(;;){const An=S.destroyed?null:S.read();if(An!==null)yield An;else{if(ue)throw ue;if(ue===null)return;await new v(J)}}}catch(An){throw ue=Ee(ue,An),ue}finally{(ue||(x==null?void 0:x.destroyOnReturn)!==!1)&&(ue===void 0||S._readableState.autoDestroy)?te.destroyer(S,null):(S.off("readable",J),Yt())}}d(he.prototype,{readable:{__proto__:null,get(){const S=this._readableState;return!!S&&S.readable!==!1&&!S.destroyed&&!S.errorEmitted&&!S.endEmitted},set(S){this._readableState&&(this._readableState.readable=!!S)}},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(S){this._readableState&&(this._readableState.flowing=S)}},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(S){this._readableState&&(this._readableState.destroyed=S)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(St.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[we]!==!1},set(S){this[we]=!!S}}}),he._fromList=Al;function Al(S,x){if(x.length===0)return null;let Y;return x.objectMode?Y=x.buffer.shift():!S||S>=x.length?(x.decoder?Y=x.buffer.join(""):x.buffer.length===1?Y=x.buffer.first():Y=x.buffer.concat(x.length),x.buffer.clear()):Y=x.buffer.consume(S,x.decoder),Y}function co(S){const x=S._readableState;j("endReadable",x.endEmitted),x.endEmitted||(x.ended=!0,n.nextTick(Zc,x,S))}function Zc(S,x){if(j("endReadableNT",S.endEmitted,S.length),!S.errored&&!S.closeEmitted&&!S.endEmitted&&S.length===0){if(S.endEmitted=!0,x.emit("end"),x.writable&&x.allowHalfOpen===!1)n.nextTick(bu,x);else if(S.autoDestroy){const Y=x._writableState;(!Y||Y.autoDestroy&&(Y.finished||Y.writable===!1))&&x.destroy()}}}function bu(S){S.writable&&!S.writableEnded&&!S.destroyed&&S.end()}he.from=function(S,x){return He(he,S,x)};let So;function ql(){return So===void 0&&(So={}),So}return he.fromWeb=function(S,x){return ql().newStreamReadableFromReadableStream(S,x)},he.toWeb=function(S,x){return ql().newReadableStreamFromStreamReadable(S,x)},he.wrap=function(S,x){var Y,J;return new he({objectMode:(Y=(J=S.readableObjectMode)!==null&&J!==void 0?J:S.objectMode)!==null&&Y!==void 0?Y:!0,...x,destroy(ue,Yt){te.destroyer(S,ue),Yt(ue)}}).wrap(S)},UDe}var GDe,$Xt;function pVe(){if($Xt)return GDe;$Xt=1;const n=ui,{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:l,ObjectDefineProperty:u,ObjectDefineProperties:d,ObjectSetPrototypeOf:h,StringPrototypeToLowerCase:w,Symbol:v,SymbolHasInstance:y}=Vf;GDe=ye,ye.WritableState=F;const{EventEmitter:E}=Ns,A=hVe.Stream,{Buffer:C}=Kr,R=Dj,{addAbortSignal:O}=i1e,{getHighWaterMark:M,getDefaultHighWaterMark:L}=o1e,{ERR_INVALID_ARG_TYPE:H,ERR_METHOD_NOT_IMPLEMENTED:G,ERR_MULTIPLE_CALLBACK:j,ERR_STREAM_CANNOT_PIPE:Q,ERR_STREAM_DESTROYED:te,ERR_STREAM_ALREADY_FINISHED:pe,ERR_STREAM_NULL_VALUES:Le,ERR_STREAM_WRITE_AFTER_END:Ee,ERR_UNKNOWN_ENCODING:le}=L0.codes,{errorOrDestroy:xe}=R;h(ye.prototype,A.prototype),h(ye,A);function be(){}const ae=v("kOnFinished");function F(T,$,B){typeof B!="boolean"&&(B=$ instanceof mx()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?M(this,T,"writableHighWaterMark",B):L(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const K=!!(T&&T.decodeStrings===!1);this.decodeStrings=!K,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Ge.bind(void 0,$),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,me(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[ae]=[]}function me(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},u(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ye(T){const $=this instanceof mx();if(!$&&!l(ye,this))return new ye(T);this._writableState=new F(T,this,$),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&O(T.signal,this)),A.call(this,T),R.construct(this,()=>{const B=this._writableState;B.writing||Te(this,B),mt(this,B)})}u(ye,y,{__proto__:null,value:function(T){return l(this,T)?!0:this!==ye?!1:T&&T._writableState instanceof F}}),ye.prototype.pipe=function(){xe(this,new Q)};function we(T,$,B,K){const q=T._writableState;if(typeof B=="function")K=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!C.isEncoding(B))throw new le(B);typeof K!="function"&&(K=be)}if($===null)throw new Le;if(!q.objectMode)if(typeof $=="string")q.decodeStrings!==!1&&($=C.from($,B),B="buffer");else if($ instanceof C)B="buffer";else if(A._isUint8Array($))$=A._uint8ArrayToBuffer($),B="buffer";else throw new H("chunk",["string","Buffer","Uint8Array"],$);let ke;return q.ending?ke=new Ee:q.destroyed&&(ke=new te("write")),ke?(n.nextTick(K,ke),xe(T,ke,!0),ke):(q.pendingcb++,Be(T,q,$,B,K))}ye.prototype.write=function(T,$,B){return we(this,T,$,B)===!0},ye.prototype.cork=function(){this._writableState.corked++},ye.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||Te(this,T))},ye.prototype.setDefaultEncoding=function($){if(typeof $=="string"&&($=w($)),!C.isEncoding($))throw new le($);return this._writableState.defaultEncoding=$,this};function Be(T,$,B,K,q){const ke=$.objectMode?1:B.length;$.length+=ke;const Re=$.length<$.highWaterMark;return Re||($.needDrain=!0),$.writing||$.corked||$.errored||!$.constructed?($.buffered.push({chunk:B,encoding:K,callback:q}),$.allBuffers&&K!=="buffer"&&($.allBuffers=!1),$.allNoop&&q!==be&&($.allNoop=!1)):($.writelen=ke,$.writecb=q,$.writing=!0,$.sync=!0,T._write(B,K,$.onwrite),$.sync=!1),Re&&!$.errored&&!$.destroyed}function He(T,$,B,K,q,ke,Re){$.writelen=K,$.writecb=Re,$.writing=!0,$.sync=!0,$.destroyed?$.onwrite(new te("write")):B?T._writev(q,$.onwrite):T._write(q,ke,$.onwrite),$.sync=!1}function Ue(T,$,B,K){--$.pendingcb,K(B),re($),xe(T,B)}function Ge(T,$){const B=T._writableState,K=B.sync,q=B.writecb;if(typeof q!="function"){xe(T,new j);return}B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0,$?($.stack,B.errored||(B.errored=$),T._readableState&&!T._readableState.errored&&(T._readableState.errored=$),K?n.nextTick(Ue,T,B,$,q):Ue(T,B,$,q)):(B.buffered.length>B.bufferedIndex&&Te(T,B),K?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:T,state:B},n.nextTick(Me,B.afterWriteTickInfo)):vt(T,B,1,q))}function Me({stream:T,state:$,count:B,cb:K}){return $.afterWriteTickInfo=null,vt(T,$,B,K)}function vt(T,$,B,K){for(!$.ending&&!T.destroyed&&$.length===0&&$.needDrain&&($.needDrain=!1,T.emit("drain"));B-- >0;)$.pendingcb--,K();$.destroyed&&re($),mt(T,$)}function re(T){if(T.writing)return;for(let q=T.bufferedIndex;q1&&T._writev){$.pendingcb-=ke-1;const Ie=$.allNoop?be:he=>{for(let zt=Re;zt256?(B.splice(0,Re),$.bufferedIndex=0):$.bufferedIndex=Re}$.bufferProcessing=!1}ye.prototype._write=function(T,$,B){if(this._writev)this._writev([{chunk:T,encoding:$}],B);else throw new G("_write()")},ye.prototype._writev=null,ye.prototype.end=function(T,$,B){const K=this._writableState;typeof T=="function"?(B=T,T=null,$=null):typeof $=="function"&&(B=$,$=null);let q;if(T!=null){const ke=we(this,T,$);ke instanceof o&&(q=ke)}return K.corked&&(K.corked=1,this.uncork()),q||(!K.errored&&!K.ending?(K.ending=!0,mt(this,K,!0),K.ended=!0):K.finished?q=new pe("end"):K.destroyed&&(q=new te("end"))),typeof B=="function"&&(q||K.finished?n.nextTick(B,q):K[ae].push(B)),this};function ct(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function at(T,$){let B=!1;function K(q){if(B){xe(T,q??j());return}if(B=!0,$.pendingcb--,q){const ke=$[ae].splice(0);for(let Re=0;Re{ct(q)?jt(K,q):q.pendingcb--},T,$)):ct($)&&($.pendingcb++,jt(T,$))))}function jt(T,$){$.pendingcb--,$.finished=!0;const B=$[ae].splice(0);for(let K=0;K{if(re!=null)throw new O("nully","body",re)},re=>{M(Me,re)});return Me=new le({objectMode:!0,readable:!1,write:Be,final(re){He(async()=>{try{await vt,n.nextTick(re,null)}catch(Te){n.nextTick(re,Te)}})},destroy:Ue})}throw new O("Iterable, AsyncIterable or AsyncFunction",me,we)}if(pe(F))return ae(F.arrayBuffer());if(u(F))return Q(le,F,{objectMode:!0,writable:!1});if(y(F==null?void 0:F.readable)&&E(F==null?void 0:F.writable))return le.fromWeb(F);if(typeof(F==null?void 0:F.writable)=="object"||typeof(F==null?void 0:F.readable)=="object"){const we=F!=null&&F.readable?h(F==null?void 0:F.readable)?F==null?void 0:F.readable:ae(F.readable):void 0,Be=F!=null&&F.writable?w(F==null?void 0:F.writable)?F==null?void 0:F.writable:ae(F.writable):void 0;return be({readable:we,writable:Be})}const ye=F==null?void 0:F.then;if(typeof ye=="function"){let we;return Ee(ye,F,Be=>{Be!=null&&we.push(Be),we.push(null)},Be=>{M(we,Be)}),we=new le({objectMode:!0,writable:!1,read(){}})}throw new R(me,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function xe(ae){let{promise:F,resolve:me}=j();const ye=new Le,we=ye.signal;return{value:ae(async function*(){for(;;){const He=F;F=null;const{chunk:Ue,done:Ge,cb:Me}=await He;if(n.nextTick(Me),Ge)return;if(we.aborted)throw new C(void 0,{cause:we.reason});({promise:F,resolve:me}=j()),yield Ue}}(),{signal:we}),write(He,Ue,Ge){const Me=me;me=null,Me({chunk:He,done:!1,cb:Ge})},final(He){const Ue=me;me=null,Ue({done:!0,cb:He})},destroy(He,Ue){ye.abort(),Ue(He)}}}function be(ae){const F=ae.readable&&typeof ae.readable.read!="function"?H.wrap(ae.readable):ae.readable,me=ae.writable;let ye=!!o(F),we=!!l(me),Be,He,Ue,Ge,Me;function vt(re){const Te=Ge;Ge=null,Te?Te(re):re&&Me.destroy(re)}return Me=new le({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(me!=null&&me.writableObjectMode),readable:ye,writable:we}),we&&(A(me,re=>{we=!1,re&&M(F,re),vt(re)}),Me._write=function(re,Te,ct){me.write(re,Te)?ct():Be=ct},Me._final=function(re){me.end(),He=re},me.on("drain",function(){if(Be){const re=Be;Be=null,re()}}),me.on("finish",function(){if(He){const re=He;He=null,re()}})),ye&&(A(F,re=>{ye=!1,re&&M(F,re),vt(re)}),F.on("readable",function(){if(Ue){const re=Ue;Ue=null,re()}}),F.on("end",function(){Me.push(null)}),Me._read=function(){for(;;){const re=F.read();if(re===null){Ue=Me._read;return}if(!Me.push(re))return}}),Me._destroy=function(re,Te){!re&&Ge!==null&&(re=new C),Ue=null,Be=null,He=null,Ge===null?Te(re):(Ge=Te,M(me,re),M(F,re))},Me}return VDe}var zDe,PXt;function mx(){if(PXt)return zDe;PXt=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:l}=Vf;zDe=h;const u=s1e(),d=pVe();l(h.prototype,u.prototype),l(h,u);{const E=o(d.prototype);for(let A=0;A{if(r){n?n(r):this.destroy(r);return}o!=null&&this.push(o),this.push(null),n&&n()}):(this.push(null),n&&n())}function VPr(){this._final!==FBe&&FBe.call(this)}yx.prototype._final=FBe;yx.prototype._transform=function(n,r,o){throw new UPr("_transform()")};yx.prototype._write=function(n,r,o){const l=this._readableState,u=this._writableState,d=l.length;this._transform(n,r,(h,w)=>{if(h){o(h);return}w!=null&&this.push(w),u.ended||d===l.length||l.length{l=!0});const u=$he(n,{readable:r,writable:o},d=>{l=!d});return{destroy:d=>{l||(l=!0,YPr.destroyer(n,d||new eOr("pipe")))},cleanup:u}}function aOr(n){return rOr(n[n.length-1],"streams[stream.length - 1]"),n.pop()}function ZDe(n){if(N8(n))return n;if(hde(n))return cOr(n);throw new BBe("val",["Readable","Iterable","AsyncIterable"],n)}async function*cOr(n){YDe||(YDe=s1e()),yield*YDe.prototype[qPr].call(n)}async function cfe(n,r,o,{end:l}){let u,d=null;const h=y=>{if(y&&(u=y),d){const E=d;d=null,E()}},w=()=>new KPr((y,E)=>{u?E(u):d=()=>{u?E(u):y()}});r.on("drain",h);const v=$he(r,{readable:!1},h);try{r.writableNeedDrain&&await w();for await(const y of n)r.write(y)||await w();l&&(r.end(),await w()),o()}catch(y){o(u!==y?QPr(u,y):y)}finally{v(),r.off("drain",h)}}async function eLe(n,r,o,{end:l}){MD(r)&&(r=r.writable);const u=r.getWriter();try{for await(const d of n)await u.ready,u.write(d).catch(()=>{});await u.ready,l&&await u.close(),o()}catch(d){try{await u.abort(d),o(d)}catch(h){o(h)}}}function uOr(...n){return Nfn(n,JPr(aOr(n)))}function Nfn(n,r,o){if(n.length===1&&zPr(n[0])&&(n=n[0]),n.length<2)throw new ZPr("streams");const l=new lOr,u=l.signal,d=o==null?void 0:o.signal,h=[];iOr(d,"options.signal");function w(){O(new nOr)}QDe=QDe||w1.addAbortListener;let v;d&&(v=QDe(d,w));let y,E;const A=[];let C=0;function R(G){O(G,--C===0)}function O(G,j){var Q;if(G&&(!y||y.code==="ERR_STREAM_PREMATURE_CLOSE")&&(y=G),!(!y&&!j)){for(;A.length;)A.shift()(y);(Q=v)===null||Q===void 0||Q[XPr](),l.abort(),j&&(y||h.forEach(te=>te()),UK.nextTick(r,y,E))}}let M;for(let G=0;G0,pe=Q||(o==null?void 0:o.end)!==!1,Le=G===n.length-1;if(NXt(j)){let Ee=function(le){le&&le.name!=="AbortError"&&le.code!=="ERR_STREAM_PREMATURE_CLOSE"&&R(le)};if(pe){const{destroy:le,cleanup:xe}=MXt(j,Q,te);A.push(le),qDe(j)&&Le&&h.push(xe)}j.on("error",Ee),qDe(j)&&Le&&h.push(()=>{j.removeListener("error",Ee)})}if(G===0)if(typeof j=="function"){if(M=j({signal:u}),!N8(M))throw new KDe("Iterable, AsyncIterable or Stream","source",M)}else N8(j)||hde(j)||MD(j)?M=j:M=OXt.from(j);else if(typeof j=="function"){if(MD(M)){var L;M=ZDe((L=M)===null||L===void 0?void 0:L.readable)}else M=ZDe(M);if(M=j(M,{signal:u}),Q){if(!N8(M,!0))throw new KDe("AsyncIterable",`transform[${G-1}]`,M)}else{var H;JDe||(JDe=Ofn);const Ee=new JDe({objectMode:!0}),le=(H=M)===null||H===void 0?void 0:H.then;if(typeof le=="function")C++,le.call(M,ae=>{E=ae,ae!=null&&Ee.write(ae),pe&&Ee.end(),UK.nextTick(R)},ae=>{Ee.destroy(ae),UK.nextTick(R,ae)});else if(N8(M,!0))C++,cfe(M,Ee,R,{end:pe});else if(XDe(M)||MD(M)){const ae=M.readable||M;C++,cfe(ae,Ee,R,{end:pe})}else throw new KDe("AsyncIterable or Promise","destination",M);M=Ee;const{destroy:xe,cleanup:be}=MXt(M,!1,!0);A.push(xe),Le&&h.push(be)}}else if(NXt(j)){if(hde(M)){C+=2;const Ee=fOr(M,j,R,{end:pe});qDe(j)&&Le&&h.push(Ee)}else if(MD(M)||XDe(M)){const Ee=M.readable||M;C++,cfe(Ee,j,R,{end:pe})}else if(N8(M))C++,cfe(M,j,R,{end:pe});else throw new BBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else if(oOr(j)){if(hde(M))C++,eLe(ZDe(M),j,R,{end:pe});else if(XDe(M)||N8(M))C++,eLe(M,j,R,{end:pe});else if(MD(M))C++,eLe(M.readable,j,R,{end:pe});else throw new BBe("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M);M=j}else M=OXt.from(j)}return(u!=null&&u.aborted||d!=null&&d.aborted)&&UK.nextTick(w),M}function fOr(n,r,o,{end:l}){let u=!1;if(r.on("close",()=>{u||o(new tOr)}),n.pipe(r,{end:!1}),l){let d=function(){u=!0,r.end()};sOr(n)?UK.nextTick(d):n.once("end",d)}else o();return $he(n,{readable:!0,writable:!1},d=>{const h=n._readableState;d&&d.code==="ERR_STREAM_PREMATURE_CLOSE"&&h&&h.ended&&!h.errored&&!h.errorEmitted?n.once("end",o).once("error",o):o(d)}),$he(r,{readable:!1,writable:!0},o)}var wVe={pipelineImpl:Nfn,pipeline:uOr};const{pipeline:dOr}=wVe,ufe=mx(),{destroyer:hOr}=Dj,{isNodeStream:ffe,isReadable:DXt,isWritable:LXt,isWebStream:tLe,isTransformStream:m8,isWritableStream:jXt,isReadableStream:FXt}=Mx,{AbortError:pOr,codes:{ERR_INVALID_ARG_VALUE:BXt,ERR_MISSING_ARGS:bOr}}=L0,gOr=qT;var Mfn=function(...r){if(r.length===0)throw new bOr("streams");if(r.length===1)return ufe.from(r[0]);const o=[...r];if(typeof r[0]=="function"&&(r[0]=ufe.from(r[0])),typeof r[r.length-1]=="function"){const R=r.length-1;r[R]=ufe.from(r[R])}for(let R=0;R0&&!(LXt(r[R])||jXt(r[R])||m8(r[R])))throw new BXt(`streams[${R}]`,o[R],"must be writable")}let l,u,d,h,w;function v(R){const O=h;h=null,O?O(R):R?w.destroy(R):!C&&!A&&w.destroy()}const y=r[0],E=dOr(r,v),A=!!(LXt(y)||jXt(y)||m8(y)),C=!!(DXt(E)||FXt(E)||m8(E));if(w=new ufe({writableObjectMode:!!(y!=null&&y.writableObjectMode),readableObjectMode:!!(E!=null&&E.readableObjectMode),writable:A,readable:C}),A){if(ffe(y))w._write=function(O,M,L){y.write(O,M)?L():l=L},w._final=function(O){y.end(),u=O},y.on("drain",function(){if(l){const O=l;l=null,O()}});else if(tLe(y)){const M=(m8(y)?y.writable:y).getWriter();w._write=async function(L,H,G){try{await M.ready,M.write(L).catch(()=>{}),G()}catch(j){G(j)}},w._final=async function(L){try{await M.ready,M.close().catch(()=>{}),u=L}catch(H){L(H)}}}const R=m8(E)?E.readable:E;gOr(R,()=>{if(u){const O=u;u=null,O()}})}if(C){if(ffe(E))E.on("readable",function(){if(d){const R=d;d=null,R()}}),E.on("end",function(){w.push(null)}),w._read=function(){for(;;){const R=E.read();if(R===null){d=w._read;return}if(!w.push(R))return}};else if(tLe(E)){const O=(m8(E)?E.readable:E).getReader();w._read=async function(){for(;;)try{const{value:M,done:L}=await O.read();if(!w.push(M))return;if(L){w.push(null);return}}catch{return}}}}return w._destroy=function(R,O){!R&&h!==null&&(R=new pOr),d=null,l=null,u=null,h===null?O(R):(h=O,ffe(E)&&hOr(E,R))},w};const wOr=globalThis.AbortController||$o().AbortController,{codes:{ERR_INVALID_ARG_VALUE:mOr,ERR_INVALID_ARG_TYPE:WJ,ERR_MISSING_ARGS:yOr,ERR_OUT_OF_RANGE:vOr},AbortError:pk}=L0,{validateAbortSignal:xO,validateInteger:WXt,validateObject:CO}=BJ,_Or=Vf.Symbol("kWeak"),SOr=Vf.Symbol("kResistStopPropagation"),{finished:EOr}=qT,kOr=Mfn,{addAbortSignalNoValidate:ROr}=i1e,{isWritable:xOr,isNodeStream:COr}=Mx,{deprecate:AOr}=w1,{ArrayPrototypePush:TOr,Boolean:$Or,MathFloor:HXt,Number:IOr,NumberIsNaN:POr,Promise:UXt,PromiseReject:GXt,PromiseResolve:OOr,PromisePrototypeThen:VXt,Symbol:Dfn}=Vf,Ihe=Dfn("kEmpty"),zXt=Dfn("kEof");function NOr(n,r){if(r!=null&&CO(r,"options"),(r==null?void 0:r.signal)!=null&&xO(r.signal,"options.signal"),COr(n)&&!xOr(n))throw new mOr("stream",n,"must be writable");const o=kOr(this,n);return r!=null&&r.signal&&ROr(r.signal,o),o}function l1e(n,r){if(typeof n!="function")throw new WJ("fn",["Function","AsyncFunction"],n);r!=null&&CO(r,"options"),(r==null?void 0:r.signal)!=null&&xO(r.signal,"options.signal");let o=1;(r==null?void 0:r.concurrency)!=null&&(o=HXt(r.concurrency));let l=o-1;return(r==null?void 0:r.highWaterMark)!=null&&(l=HXt(r.highWaterMark)),WXt(o,"options.concurrency",1),WXt(l,"options.highWaterMark",0),l+=o,(async function*(){const d=w1.AbortSignalAny([r==null?void 0:r.signal].filter($Or)),h=this,w=[],v={signal:d};let y,E,A=!1,C=0;function R(){A=!0,O()}function O(){C-=1,M()}function M(){E&&!A&&C=l||C>=o)&&await new UXt(G=>{E=G})}w.push(zXt)}catch(H){const G=GXt(H);VXt(G,O,R),w.push(G)}finally{A=!0,y&&(y(),y=null)}}L();try{for(;;){for(;w.length>0;){const H=await w[0];if(H===zXt)return;if(d.aborted)throw new pk;H!==Ihe&&(yield H),w.shift(),M()}await new UXt(H=>{y=H})}}finally{A=!0,E&&(E(),E=null)}}).call(this)}function MOr(n=void 0){return n!=null&&CO(n,"options"),(n==null?void 0:n.signal)!=null&&xO(n.signal,"options.signal"),(async function*(){let o=0;for await(const u of this){var l;if(n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new pk({cause:n.signal.reason});yield[o++,u]}}).call(this)}async function Lfn(n,r=void 0){for await(const o of mVe.call(this,n,r))return!0;return!1}async function DOr(n,r=void 0){if(typeof n!="function")throw new WJ("fn",["Function","AsyncFunction"],n);return!await Lfn.call(this,async(...o)=>!await n(...o),r)}async function LOr(n,r){for await(const o of mVe.call(this,n,r))return o}async function jOr(n,r){if(typeof n!="function")throw new WJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u),Ihe}for await(const l of l1e.call(this,o,r));}function mVe(n,r){if(typeof n!="function")throw new WJ("fn",["Function","AsyncFunction"],n);async function o(l,u){return await n(l,u)?l:Ihe}return l1e.call(this,o,r)}class FOr extends yOr{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function BOr(n,r,o){var l;if(typeof n!="function")throw new WJ("reducer",["Function","AsyncFunction"],n);o!=null&&CO(o,"options"),(o==null?void 0:o.signal)!=null&&xO(o.signal,"options.signal");let u=arguments.length>1;if(o!=null&&(l=o.signal)!==null&&l!==void 0&&l.aborted){const y=new pk(void 0,{cause:o.signal.reason});throw this.once("error",()=>{}),await EOr(this.destroy(y)),y}const d=new wOr,h=d.signal;if(o!=null&&o.signal){const y={once:!0,[_Or]:this,[SOr]:!0};o.signal.addEventListener("abort",()=>d.abort(),y)}let w=!1;try{for await(const y of this){var v;if(w=!0,o!=null&&(v=o.signal)!==null&&v!==void 0&&v.aborted)throw new pk;u?r=await n(r,y,{signal:h}):(r=y,u=!0)}if(!w&&!u)throw new FOr}finally{d.abort()}return r}async function WOr(n){n!=null&&CO(n,"options"),(n==null?void 0:n.signal)!=null&&xO(n.signal,"options.signal");const r=[];for await(const l of this){var o;if(n!=null&&(o=n.signal)!==null&&o!==void 0&&o.aborted)throw new pk(void 0,{cause:n.signal.reason});TOr(r,l)}return r}function HOr(n,r){const o=l1e.call(this,n,r);return(async function*(){for await(const u of o)yield*u}).call(this)}function jfn(n){if(n=IOr(n),POr(n))return 0;if(n<0)throw new vOr("number",">= 0",n);return n}function UOr(n,r=void 0){return r!=null&&CO(r,"options"),(r==null?void 0:r.signal)!=null&&xO(r.signal,"options.signal"),n=jfn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new pk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new pk;n--<=0&&(yield d)}}).call(this)}function GOr(n,r=void 0){return r!=null&&CO(r,"options"),(r==null?void 0:r.signal)!=null&&xO(r.signal,"options.signal"),n=jfn(n),(async function*(){var l;if(r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new pk;for await(const d of this){var u;if(r!=null&&(u=r.signal)!==null&&u!==void 0&&u.aborted)throw new pk;if(n-- >0&&(yield d),n<=0)return}}).call(this)}aVe.streamReturningOperators={asIndexedPairs:AOr(MOr,"readable.asIndexedPairs will be removed in a future version."),drop:UOr,filter:mVe,flatMap:HOr,map:l1e,take:GOr,compose:NOr};aVe.promiseReturningOperators={every:DOr,forEach:jOr,reduce:BOr,toArray:WOr,some:Lfn,find:LOr};var nLe,KXt;function Ffn(){if(KXt)return nLe;KXt=1;const{ArrayPrototypePop:n,Promise:r}=Vf,{isIterable:o,isNodeStream:l,isWebStream:u}=Mx,{pipelineImpl:d}=wVe,{finished:h}=qT;Bfn();function w(...v){return new r((y,E)=>{let A,C;const R=v[v.length-1];if(R&&typeof R=="object"&&!l(R)&&!o(R)&&!u(R)){const O=n(v);A=O.signal,C=O.end}d(v,(O,M)=>{O?E(O):y(M)},{signal:A,end:C})})}return nLe={finished:h,pipeline:w},nLe}var qXt;function Bfn(){if(qXt)return FDe.exports;qXt=1;const{Buffer:n}=Kr,{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:l}=Vf,{promisify:{custom:u}}=w1,{streamReturningOperators:d,promiseReturningOperators:h}=aVe,{codes:{ERR_ILLEGAL_CONSTRUCTOR:w}}=L0,v=Mfn,{setDefaultHighWaterMark:y,getDefaultHighWaterMark:E}=o1e,{pipeline:A}=wVe,{destroyer:C}=Dj,R=qT,O=Ffn(),M=Mx,L=FDe.exports=hVe.Stream;L.isDestroyed=M.isDestroyed,L.isDisturbed=M.isDisturbed,L.isErrored=M.isErrored,L.isReadable=M.isReadable,L.isWritable=M.isWritable,L.Readable=s1e();for(const G of o(d)){let Q=function(...te){if(new.target)throw w();return L.Readable.from(l(j,this,te))};const j=d[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}for(const G of o(h)){let Q=function(...te){if(new.target)throw w();return l(j,this,te)};const j=h[G];r(Q,"name",{__proto__:null,value:j.name}),r(Q,"length",{__proto__:null,value:j.length}),r(L.Readable.prototype,G,{__proto__:null,value:Q,enumerable:!1,configurable:!0,writable:!0})}L.Writable=pVe(),L.Duplex=mx(),L.Transform=Ifn,L.PassThrough=Ofn,L.pipeline=A;const{addAbortSignal:H}=i1e;return L.addAbortSignal=H,L.finished=R,L.destroy=C,L.compose=v,L.setDefaultHighWaterMark=y,L.getDefaultHighWaterMark=E,r(L,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),r(A,u,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),r(R,u,{__proto__:null,enumerable:!0,get(){return O.finished}}),L.Stream=L,L._isUint8Array=function(j){return j instanceof Uint8Array},L._uint8ArrayToBuffer=function(j){return n.from(j.buffer,j.byteOffset,j.byteLength)},FDe.exports}(function(n){const r=Bfn(),o=Ffn(),l=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=l,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return o}}),n.exports.Stream=r.Stream,n.exports.default=n.exports})(Jun);var VOr=Jun.exports,a1e={};Object.defineProperty(a1e,"__esModule",{value:!0});a1e.ParseError=void 0;class zOr extends Error{constructor(r,o){const l=r.saxParser;super(r.trackPosition?`Line ${l.line} column ${l.column+1}: ${o}`:o)}}a1e.ParseError=zOr;var Wfn={},Hfn={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.validateIri=n.IriValidationStrategy=void 0;function r(){const w="[!$&'()*+,;=]",v="%[a-fA-F0-9]{2}",y="([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",E=`${y}\\.${y}\\.${y}\\.${y}`,A="[a-fA-F0-9]{1,4}",C=`(${A}:${A}|${E})`,R=`((${A}:){6}${C}|::(${A}:){5}${C}|(${A})?::(${A}:){4}${C}|((${A}:){0,1}${A})?::(${A}:){3}${C}|((${A}:){0,2}${A})?::(${A}:){2}${C}|((${A}:){0,3}${A})?::${A}:${C}|((${A}:){0,4}${A})?::${C}|((${A}:){0,5}${A})?::${A}|((${A}:){0,6}${A})?::)`,O=`v[a-fA-F0-9]+\\.(${w}|${w}|":)+`,M=`\\[(${R}|${O})\\]`,L="[0-9]*",H="[a-zA-Z][a-zA-Z0-9+\\-.]*",j="[-󰀀-󿿽􀀀-􏿽]",pe="[a-zA-Z0-9\\-._~ -퟿豈-﷏ﷰ-￯𐀀-🿽𠀀-𯿽𰀀-𿿽񀀀-񏿽񐀀-񟿽񠀀-񯿽񰀀-񿿽򀀀-򏿽򐀀-򟿽򠀀-򯿽򰀀-򿿽󀀀-󏿽󐀀-󟿽󡀀-󯿽]",Le=`(${pe}|${v}|${w}|[:@])*`,Ee=`(${Le}|[\\/?])*`,le=`(${Le}|${j}|[\\/?])*`,xe=`(${Le})+`,be=`(${Le})*`,ae="",F=`${xe}(\\/${be})*`,me=`\\/(${xe}(\\/${be})*)?`,ye=`(\\/${be})*`,we=`(${pe}|${v}|${w})*`,Be=`(${M}|${E}|${we})`,Ge=`(\\/\\/${`(${`(${pe}|${v}|${w}|:)*`}@)?${Be}(:${L})?`}${ye}|${me}|${F}|${ae})`,Me=`^${H}:${Ge}(\\?${le})?(#${Ee})?$`;return new RegExp(Me,"u")}const o=r(),l=/^[A-Za-z][\d+-.A-Za-z]*:[^\u0000-\u0020"<>\\^`{|}]*$/u;var u;(function(h){h.Strict="strict",h.Pragmatic="pragmatic",h.None="none"})(u=n.IriValidationStrategy||(n.IriValidationStrategy={}));function d(h,w=u.Strict){switch(w){case u.Strict:return o.test(h)?void 0:new Error(`Invalid IRI according to RFC 3987: '${h}'`);case u.Pragmatic:return l.test(h)?void 0:new Error(`Invalid IRI according to RDF Turtle: '${h}'`);case u.None:return;default:return new Error(`Not supported validation strategy "${w}"`)}}n.validateIri=d})(Hfn);(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var w=Object.getOwnPropertyDescriptor(u,d);(!w||("get"in w?!u.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,w)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(Hfn,n)})(Wfn);Object.defineProperty(qL,"__esModule",{value:!0});qL.ParseType=qL.RdfXmlParser=void 0;const XXt=gJ,KOr=XL,JXt=VOr,qOr=a1e,XOr=TUe,rLe=Wfn;let AO=class hf extends JXt.Transform{constructor(r){super({readableObjectMode:!0}),this.activeTagStack=[],this.nodeIds={},r&&(Object.assign(this,r),this.options=r),this.dataFactory||(this.dataFactory=new XOr.DataFactory),this.baseIRI||(this.baseIRI=""),this.defaultGraph||(this.defaultGraph=this.dataFactory.defaultGraph()),this.validateUri!==!1&&(this.validateUri=!0),this.iriValidationStrategy||(this.iriValidationStrategy=this.validateUri?rLe.IriValidationStrategy.Pragmatic:rLe.IriValidationStrategy.None),this.saxParser=new KOr.SaxesParser({xmlns:!0,position:this.trackPosition}),this.attachSaxListeners()}import(r){const o=new JXt.PassThrough({readableObjectMode:!0});r.on("error",u=>l.emit("error",u)),r.on("data",u=>o.push(u)),r.on("end",()=>o.push(null));const l=o.pipe(new hf(this.options));return l}_transform(r,o,l){try{this.saxParser.write(r)}catch(u){return l(u)}l()}newParseError(r){return new qOr.ParseError(this,r)}valueToUri(r,o){return this.uriToNamedNode((0,XXt.resolve)(r,o.baseIRI))}uriToNamedNode(r){const o=(0,rLe.validateIri)(r,this.iriValidationStrategy);if(o instanceof Error)throw this.newParseError(o.message);return this.dataFactory.namedNode(r)}validateNcname(r){if(!hf.NCNAME_MATCHER.test(r))throw this.newParseError(`Not a valid NCName: ${r}`)}attachSaxListeners(){this.saxParser.on("error",r=>this.emit("error",r)),this.saxParser.on("opentag",this.onTag.bind(this)),this.saxParser.on("text",this.onText.bind(this)),this.saxParser.on("cdata",this.onText.bind(this)),this.saxParser.on("closetag",this.onCloseTag.bind(this)),this.saxParser.on("doctype",this.onDoctype.bind(this))}onTag(r){const o=this.activeTagStack.length?this.activeTagStack[this.activeTagStack.length-1]:null;let l=$R.RESOURCE;if(o&&(o.hadChildren=!0,l=o.childrenParseType),o&&o.childrenStringTags){const d=r.name;let h="";for(const E in r.attributes)h+=` ${E}="${r.attributes[E].value}"`;const v=`<${`${d}${h}`}>`;o.childrenStringTags.push(v);const y={childrenStringTags:o.childrenStringTags};y.childrenStringEmitClosingTag=``,this.activeTagStack.push(y);return}const u={};o?(u.language=o.language,u.baseIRI=o.baseIRI):u.baseIRI=this.baseIRI,this.activeTagStack.push(u),l===$R.RESOURCE?this.onTagResource(r,u,o,!o):this.onTagProperty(r,u,o)}onTagResource(r,o,l,u){o.childrenParseType=$R.PROPERTY;let d=!0;if(r.uri===hf.RDF){if(!u&&hf.FORBIDDEN_NODE_ELEMENTS.indexOf(r.local)>=0)throw this.newParseError(`Illegal node element name: ${r.local}`);switch(r.local){case"RDF":o.childrenParseType=$R.RESOURCE;case"Description":d=!1}}const h=[],w=[];let v=null,y=!1,E=!1,A=null;for(const C in r.attributes){const R=r.attributes[C];if(l&&R.uri===hf.RDF)switch(R.local){case"about":if(v)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${R.value} and ${v} where found.`);v=R.value;continue;case"ID":if(v)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${R.value} and ${v} where found.`);this.validateNcname(R.value),v="#"+R.value,y=!0;continue;case"nodeID":if(v)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${R.value} and ${v} where found.`);this.validateNcname(R.value),v=R.value,E=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"type":A=R.value;continue;case"aboutEach":throw this.newParseError("rdf:aboutEach is not supported.");case"aboutEachPrefix":throw this.newParseError("rdf:aboutEachPrefix is not supported.");case"li":throw this.newParseError("rdf:li on node elements are not supported.")}else if(R.uri===hf.XML){if(R.local==="lang"){o.language=R.value===""?null:R.value.toLowerCase();continue}else if(R.local==="base"){o.baseIRI=(0,XXt.resolve)(R.value,o.baseIRI);continue}}R.prefix!=="xml"&&R.prefix!=="xmlns"&&(R.prefix!==""||R.local!=="xmlns")&&R.uri&&(h.push(this.uriToNamedNode(R.uri+R.local)),w.push(R.value))}if(v!==null&&(o.subject=E?this.dataFactory.blankNode(v):this.valueToUri(v,o),y&&this.claimNodeId(o.subject)),o.subject||(o.subject=this.dataFactory.blankNode()),d){const C=this.uriToNamedNode(r.uri+r.local);this.emitTriple(o.subject,this.dataFactory.namedNode(hf.RDF+"type"),C,l?l.reifiedStatementId:null)}if(l){if(l.predicate)if(l.childrenCollectionSubject){const C=this.dataFactory.blankNode();this.emitTriple(l.childrenCollectionSubject,l.childrenCollectionPredicate,C,l.reifiedStatementId),this.emitTriple(C,this.dataFactory.namedNode(hf.RDF+"first"),o.subject,o.reifiedStatementId),l.childrenCollectionSubject=C,l.childrenCollectionPredicate=this.dataFactory.namedNode(hf.RDF+"rest")}else{this.emitTriple(l.subject,l.predicate,o.subject,l.reifiedStatementId);for(let C=0;C=0)throw this.newParseError(`Illegal property element name: ${r.local}`);o.predicateSubPredicates=[],o.predicateSubObjects=[];let u=!1,d=!1,h=null,w=!0;const v=[],y=[];for(const E in r.attributes){const A=r.attributes[E];if(A.uri===hf.RDF)switch(A.local){case"resource":if(h)throw this.newParseError(`Found both rdf:resource (${A.value}) and rdf:nodeID (${h}).`);if(u)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:resource (${A.value})`);o.hadChildren=!0,h=A.value,w=!1;continue;case"datatype":if(d)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:datatype (${A.value}).`);if(u)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${A.value})`);o.datatype=this.valueToUri(A.value,o);continue;case"nodeID":if(d)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:nodeID (${A.value}).`);if(o.hadChildren)throw this.newParseError(`Found both rdf:resource and rdf:nodeID (${A.value}).`);if(u)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID (${A.value})`);this.validateNcname(A.value),o.hadChildren=!0,h=A.value,w=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"parseType":if(d)throw this.newParseError("rdf:parseType is not allowed when non-rdf:* property attributes are present");if(o.datatype)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${o.datatype.value})`);if(h)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID or rdf:resource (${h})`);if(A.value==="Resource"){u=!0,o.childrenParseType=$R.PROPERTY;const C=this.dataFactory.blankNode();this.emitTriple(o.subject,o.predicate,C,o.reifiedStatementId),o.subject=C,o.predicate=null}else A.value==="Collection"?(u=!0,o.hadChildren=!0,o.childrenCollectionSubject=o.subject,o.childrenCollectionPredicate=o.predicate,w=!1):A.value==="Literal"&&(u=!0,o.childrenTagsToString=!0,o.childrenStringTags=[]);continue;case"ID":this.validateNcname(A.value),o.reifiedStatementId=this.valueToUri("#"+A.value,o),this.claimNodeId(o.reifiedStatementId);continue}else if(A.uri===hf.XML&&A.local==="lang"){o.language=A.value===""?null:A.value.toLowerCase();continue}if(A.prefix!=="xml"&&A.prefix!=="xmlns"&&(A.prefix!==""||A.local!=="xmlns")&&A.uri){if(u||o.datatype)throw this.newParseError(`Found illegal rdf:* properties on property element with attribute: ${A.value}`);o.hadChildren=!0,d=!0,v.push(this.uriToNamedNode(A.uri+A.local)),y.push(this.dataFactory.literal(A.value,o.datatype||o.language))}}if(h!==null){const E=o.subject;o.subject=w?this.dataFactory.blankNode(h):this.valueToUri(h,o),this.emitTriple(E,o.predicate,o.subject,o.reifiedStatementId);for(let A=0;A/g,(o,l,u)=>(this.saxParser.ENTITIES[l]=u,""))}};qL.RdfXmlParser=AO;AO.MIME_TYPE="application/rdf+xml";AO.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";AO.XML="http://www.w3.org/XML/1998/namespace";AO.FORBIDDEN_NODE_ELEMENTS=["RDF","ID","about","bagID","parseType","resource","nodeID","li","aboutEach","aboutEachPrefix"];AO.FORBIDDEN_PROPERTY_ELEMENTS=["Description","RDF","ID","about","bagID","parseType","resource","nodeID","aboutEach","aboutEachPrefix"];AO.NCNAME_MATCHER=/^([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_])([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_\-.0-9#xB7\u{0300}-\u{036F}\u{203F}-\u{2040}])*$/u;var $R;(function(n){n[n.RESOURCE=0]="RESOURCE",n[n.PROPERTY=1]="PROPERTY"})($R||(qL.ParseType=$R={}));(function(n){var r=fu&&fu.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var w=Object.getOwnPropertyDescriptor(u,d);(!w||("get"in w?!u.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,w)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),o=fu&&fu.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&r(u,l,d)};Object.defineProperty(n,"__esModule",{value:!0}),o(qL,n)})(Wun);class JOr extends Wun.RdfXmlParser{constructor({factory:r,...o}={}){super({...o,dataFactory:r})}}const YOr=new AL([["application/ld+json",new aon],["application/trig",new CD],["application/n-quads",new CD],["application/n-triples",new CD],["text/n3",new CD],["text/turtle",new CD],["application/rdf+xml",new JOr]]),QOr=new AL([["application/ld+json",new MAr],["application/n-quads",new MK],["application/n-triples",new MK],["text/n3",new MK],["text/turtle",new MK]]),ZOr={parsers:YOr,serializers:QOr};arn.formats.import(ZOr);const WBe=arn;var SL;class e7r{constructor(){J5(this,SL,{})}update(r){_E(this,SL,{}),r.forEach(o=>{Hp(this,SL)[o.prefix]=o.uri})}get prefixes(){return Hp(this,SL)}}SL=new WeakMap;const Ufn=new e7r;function mL(n){if(n.termType==="NamedNode"){const r=Den(n.value,Ufn.prefixes);return r||n.value}return n.value}function t7r(n){const r=[...n].map(d=>d.subject),o=[...n].filter(d=>!d.predicate.equals(WBe.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"))).map(d=>d.object).filter(d=>d.termType==="BlankNode"||d.termType==="NamedNode");return[...new Yde([...r,...o])].map(d=>{const v=[...[...n.match(d)].reduce((y,{predicate:E,object:A})=>{if(!y.has(E.value)){const C={id:E.value,term:E,name:mL(E),values:new Yde};y.set(E.value,C)}return y.get(E.value).values.add(A),y},new Map).values()].sort((y,E)=>y.name==="rdf:type"?-1:E.name==="rdf:type"?1:y.name.localeCompare(E.name));return{id:d.value===""?"_:nobody":d.value,term:d,name:mL(d),properties:v}})}function n7r(n){const r=new Yde(n.map(l=>l.term));return n.flatMap(l=>l.properties.map(u=>({...u,resource:l}))).reduce((l,u)=>(u.values.forEach(d=>{const h=u.resource.term,w=d;r.has(w)&&l.push({source:h.value,target:w.value,sourceProperty:u.id,label:u.name})}),l),[])}function c1e(n){return zhe()?(qK(n),!0):!1}function jR(n){return typeof n=="function"?n():Wr(n)}const r7r=typeof window<"u"&&typeof document<"u",i7r=n=>typeof n<"u",o7r=Object.prototype.toString,s7r=n=>o7r.call(n)==="[object Object]",l7r=()=>{};function a7r(n,r){function o(...l){return new Promise((u,d)=>{Promise.resolve(n(()=>r.apply(this,l),{fn:r,thisArg:this,args:l})).then(u).catch(d)})}return o}const Gfn=n=>n();function c7r(n=Gfn){const r=Fo(!0);function o(){r.value=!1}function l(){r.value=!0}const u=(...d)=>{r.value&&n(...d)};return{isActive:zX(r),pause:o,resume:l,eventFilter:u}}function YXt(n,r=!1,o="Timeout"){return new Promise((l,u)=>{setTimeout(r?()=>u(o):l,n)})}function u7r(n,r,o={}){const{eventFilter:l=Gfn,...u}=o;return Zs(n,a7r(l,r),u)}function dD(n,r,o={}){const{eventFilter:l,...u}=o,{eventFilter:d,pause:h,resume:w,isActive:v}=c7r(l);return{stop:u7r(n,r,{...u,eventFilter:d}),pause:h,resume:w,isActive:v}}function f7r(n,r={}){if(!_d(n))return yBn(n);const o=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const l in n.value)o[l]=mBn(()=>({get(){return n.value[l]},set(u){var d;if((d=jR(r.replaceRef))!=null?d:!0)if(Array.isArray(n.value)){const w=[...n.value];w[l]=u,n.value=w}else{const w={...n.value,[l]:u};Object.setPrototypeOf(w,Object.getPrototypeOf(n.value)),n.value=w}else n.value[l]=u}}));return o}function HBe(n,r=!1){function o(A,{flush:C="sync",deep:R=!1,timeout:O,throwOnTimeout:M}={}){let L=null;const G=[new Promise(j=>{L=Zs(n,Q=>{A(Q)!==r&&(L==null||L(),j(Q))},{flush:C,deep:R,immediate:!0})})];return O!=null&&G.push(YXt(O,M).then(()=>jR(n)).finally(()=>L==null?void 0:L())),Promise.race(G)}function l(A,C){if(!_d(A))return o(Q=>Q===A,C);const{flush:R="sync",deep:O=!1,timeout:M,throwOnTimeout:L}=C??{};let H=null;const j=[new Promise(Q=>{H=Zs([n,A],([te,pe])=>{r!==(te===pe)&&(H==null||H(),Q(te))},{flush:R,deep:O,immediate:!0})})];return M!=null&&j.push(YXt(M,L).then(()=>jR(n)).finally(()=>(H==null||H(),jR(n)))),Promise.race(j)}function u(A){return o(C=>!!C,A)}function d(A){return l(null,A)}function h(A){return l(void 0,A)}function w(A){return o(Number.isNaN,A)}function v(A,C){return o(R=>{const O=Array.from(R);return O.includes(A)||O.includes(jR(A))},C)}function y(A){return E(1,A)}function E(A=1,C){let R=-1;return o(()=>(R+=1,R>=A),C)}return Array.isArray(jR(n))?{toMatch:o,toContains:v,changed:y,changedTimes:E,get not(){return HBe(n,!r)}}:{toMatch:o,toBe:l,toBeTruthy:u,toBeNull:d,toBeNaN:w,toBeUndefined:h,changed:y,changedTimes:E,get not(){return HBe(n,!r)}}}function UBe(n){return HBe(n)}function d7r(n){var r;const o=jR(n);return(r=o==null?void 0:o.$el)!=null?r:o}const Vfn=r7r?window:void 0;function zfn(...n){let r,o,l,u;if(typeof n[0]=="string"||Array.isArray(n[0])?([o,l,u]=n,r=Vfn):[r,o,l,u]=n,!r)return l7r;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const d=[],h=()=>{d.forEach(E=>E()),d.length=0},w=(E,A,C,R)=>(E.addEventListener(A,C,R),()=>E.removeEventListener(A,C,R)),v=Zs(()=>[d7r(r),jR(u)],([E,A])=>{if(h(),!E)return;const C=s7r(A)?{...A}:A;d.push(...o.flatMap(R=>l.map(O=>w(E,R,O,C))))},{immediate:!0,flush:"post"}),y=()=>{v(),h()};return c1e(y),y}function h7r(n){return typeof n=="function"?n:typeof n=="string"?r=>r.key===n:Array.isArray(n)?r=>n.includes(r.key):()=>!0}function QXt(...n){let r,o,l={};n.length===3?(r=n[0],o=n[1],l=n[2]):n.length===2?typeof n[1]=="object"?(r=!0,o=n[0],l=n[1]):(r=n[0],o=n[1]):(r=!0,o=n[0]);const{target:u=Vfn,eventName:d="keydown",passive:h=!1,dedupe:w=!1}=l,v=h7r(r);return zfn(u,d,E=>{E.repeat&&jR(w)||v(E)&&o(E)},h)}function p7r(n){return JSON.parse(JSON.stringify(n))}function iLe(n,r,o,l={}){var u,d,h;const{clone:w=!1,passive:v=!1,eventName:y,deep:E=!1,defaultValue:A,shouldEmit:C}=l,R=NT(),O=o||(R==null?void 0:R.emit)||((u=R==null?void 0:R.$emit)==null?void 0:u.bind(R))||((h=(d=R==null?void 0:R.proxy)==null?void 0:d.$emit)==null?void 0:h.bind(R==null?void 0:R.proxy));let M=y;r||(r="modelValue"),M=M||`update:${r.toString()}`;const L=j=>w?typeof w=="function"?w(j):p7r(j):j,H=()=>i7r(n[r])?L(n[r]):A,G=j=>{C?C(j)&&O(M,j):O(M,j)};if(v){const j=H(),Q=Fo(j);let te=!1;return Zs(()=>n[r],pe=>{te||(te=!0,Q.value=L(pe),RS(()=>te=!1))}),Zs(Q,pe=>{!te&&(pe!==n[r]||E)&&G(pe)},{deep:E}),Q}else return To({get(){return H()},set(j){G(j)}})}var b7r={value:()=>{}};function u1e(){for(var n=0,r=arguments.length,o={},l;n=0&&(l=o.slice(u+1),o=o.slice(0,u)),o&&!r.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:l}})}pde.prototype=u1e.prototype={constructor:pde,on:function(n,r){var o=this._,l=g7r(n+"",o),u,d=-1,h=l.length;if(arguments.length<2){for(;++d0)for(var o=new Array(u),l=0,u,d;l=0&&(r=n.slice(0,o))!=="xmlns"&&(n=n.slice(o+1)),eJt.hasOwnProperty(r)?{space:eJt[r],local:n}:n}function m7r(n){return function(){var r=this.ownerDocument,o=this.namespaceURI;return o===GBe&&r.documentElement.namespaceURI===GBe?r.createElement(n):r.createElementNS(o,n)}}function y7r(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Kfn(n){var r=f1e(n);return(r.local?y7r:m7r)(r)}function v7r(){}function yVe(n){return n==null?v7r:function(){return this.querySelector(n)}}function _7r(n){typeof n!="function"&&(n=yVe(n));for(var r=this._groups,o=r.length,l=new Array(o),u=0;u=j&&(j=G+1);!(te=L[j])&&++j=0;)(h=l[u])&&(d&&h.compareDocumentPosition(d)^4&&d.parentNode.insertBefore(h,d),d=h);return this}function z7r(n){n||(n=K7r);function r(A,C){return A&&C?n(A.__data__,C.__data__):!A-!C}for(var o=this._groups,l=o.length,u=new Array(l),d=0;dr?1:n>=r?0:NaN}function q7r(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function X7r(){return Array.from(this)}function J7r(){for(var n=this._groups,r=0,o=n.length;r1?this.each((r==null?lNr:typeof r=="function"?cNr:aNr)(n,r,o??"")):YL(this.node(),n)}function YL(n,r){return n.style.getPropertyValue(r)||Qfn(n).getComputedStyle(n,null).getPropertyValue(r)}function fNr(n){return function(){delete this[n]}}function dNr(n,r){return function(){this[n]=r}}function hNr(n,r){return function(){var o=r.apply(this,arguments);o==null?delete this[n]:this[n]=o}}function pNr(n,r){return arguments.length>1?this.each((r==null?fNr:typeof r=="function"?hNr:dNr)(n,r)):this.node()[n]}function Zfn(n){return n.trim().split(/^|\s+/)}function vVe(n){return n.classList||new edn(n)}function edn(n){this._node=n,this._names=Zfn(n.getAttribute("class")||"")}edn.prototype={add:function(n){var r=this._names.indexOf(n);r<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var r=this._names.indexOf(n);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function tdn(n,r){for(var o=vVe(n),l=-1,u=r.length;++l=0&&(o=r.slice(l+1),r=r.slice(0,l)),{type:r,name:o}})}function HNr(n){return function(){var r=this.__on;if(r){for(var o=0,l=-1,u=r.length,d;o()=>n;function VBe(n,{sourceEvent:r,subject:o,target:l,identifier:u,active:d,x:h,y:w,dx:v,dy:y,dispatch:E}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:o,enumerable:!0,configurable:!0},target:{value:l,enumerable:!0,configurable:!0},identifier:{value:u,enumerable:!0,configurable:!0},active:{value:d,enumerable:!0,configurable:!0},x:{value:h,enumerable:!0,configurable:!0},y:{value:w,enumerable:!0,configurable:!0},dx:{value:v,enumerable:!0,configurable:!0},dy:{value:y,enumerable:!0,configurable:!0},_:{value:E}})}VBe.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function QNr(n){return!n.ctrlKey&&!n.button}function ZNr(){return this.parentNode}function eMr(n,r){return r??{x:n.x,y:n.y}}function tMr(){return navigator.maxTouchPoints||"ontouchstart"in this}function nMr(){var n=QNr,r=ZNr,o=eMr,l=tMr,u={},d=u1e("start","drag","end"),h=0,w,v,y,E,A=0;function C(Q){Q.on("mousedown.drag",R).filter(l).on("touchstart.drag",L).on("touchmove.drag",H,YNr).on("touchend.drag touchcancel.drag",G).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(Q,te){if(!(E||!n.call(this,Q,te))){var pe=j(this,r.call(this,Q,te),Q,te,"mouse");pe&&(yS(Q.view).on("mousemove.drag",O,RX).on("mouseup.drag",M,RX),odn(Q.view),oLe(Q),y=!1,w=Q.clientX,v=Q.clientY,pe("start",Q))}}function O(Q){if(yL(Q),!y){var te=Q.clientX-w,pe=Q.clientY-v;y=te*te+pe*pe>A}u.mouse("drag",Q)}function M(Q){yS(Q.view).on("mousemove.drag mouseup.drag",null),sdn(Q.view,y),yL(Q),u.mouse("end",Q)}function L(Q,te){if(n.call(this,Q,te)){var pe=Q.changedTouches,Le=r.call(this,Q,te),Ee=pe.length,le,xe;for(le=0;le>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):o===8?hfe(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):o===4?hfe(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=iMr.exec(n))?new k0(r[1],r[2],r[3],1):(r=oMr.exec(n))?new k0(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=sMr.exec(n))?hfe(r[1],r[2],r[3],r[4]):(r=lMr.exec(n))?hfe(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=aMr.exec(n))?lJt(r[1],r[2]/100,r[3]/100,1):(r=cMr.exec(n))?lJt(r[1],r[2]/100,r[3]/100,r[4]):tJt.hasOwnProperty(n)?iJt(tJt[n]):n==="transparent"?new k0(NaN,NaN,NaN,0):null}function iJt(n){return new k0(n>>16&255,n>>8&255,n&255,1)}function hfe(n,r,o,l){return l<=0&&(n=r=o=NaN),new k0(n,r,o,l)}function dMr(n){return n instanceof UJ||(n=AX(n)),n?(n=n.rgb(),new k0(n.r,n.g,n.b,n.opacity)):new k0}function zBe(n,r,o,l){return arguments.length===1?dMr(n):new k0(n,r,o,l??1)}function k0(n,r,o,l){this.r=+n,this.g=+r,this.b=+o,this.opacity=+l}_Ve(k0,zBe,ldn(UJ,{brighter(n){return n=n==null?Ohe:Math.pow(Ohe,n),new k0(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?xX:Math.pow(xX,n),new k0(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new k0(gP(this.r),gP(this.g),gP(this.b),Nhe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:oJt,formatHex:oJt,formatHex8:hMr,formatRgb:sJt,toString:sJt}));function oJt(){return`#${K8(this.r)}${K8(this.g)}${K8(this.b)}`}function hMr(){return`#${K8(this.r)}${K8(this.g)}${K8(this.b)}${K8((isNaN(this.opacity)?1:this.opacity)*255)}`}function sJt(){const n=Nhe(this.opacity);return`${n===1?"rgb(":"rgba("}${gP(this.r)}, ${gP(this.g)}, ${gP(this.b)}${n===1?")":`, ${n})`}`}function Nhe(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function gP(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function K8(n){return n=gP(n),(n<16?"0":"")+n.toString(16)}function lJt(n,r,o,l){return l<=0?n=r=o=NaN:o<=0||o>=1?n=r=NaN:r<=0&&(n=NaN),new vS(n,r,o,l)}function adn(n){if(n instanceof vS)return new vS(n.h,n.s,n.l,n.opacity);if(n instanceof UJ||(n=AX(n)),!n)return new vS;if(n instanceof vS)return n;n=n.rgb();var r=n.r/255,o=n.g/255,l=n.b/255,u=Math.min(r,o,l),d=Math.max(r,o,l),h=NaN,w=d-u,v=(d+u)/2;return w?(r===d?h=(o-l)/w+(o0&&v<1?0:h,new vS(h,w,v,n.opacity)}function pMr(n,r,o,l){return arguments.length===1?adn(n):new vS(n,r,o,l??1)}function vS(n,r,o,l){this.h=+n,this.s=+r,this.l=+o,this.opacity=+l}_Ve(vS,pMr,ldn(UJ,{brighter(n){return n=n==null?Ohe:Math.pow(Ohe,n),new vS(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?xX:Math.pow(xX,n),new vS(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,r=isNaN(n)||isNaN(this.s)?0:this.s,o=this.l,l=o+(o<.5?o:1-o)*r,u=2*o-l;return new k0(sLe(n>=240?n-240:n+120,u,l),sLe(n,u,l),sLe(n<120?n+240:n-120,u,l),this.opacity)},clamp(){return new vS(aJt(this.h),pfe(this.s),pfe(this.l),Nhe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=Nhe(this.opacity);return`${n===1?"hsl(":"hsla("}${aJt(this.h)}, ${pfe(this.s)*100}%, ${pfe(this.l)*100}%${n===1?")":`, ${n})`}`}}));function aJt(n){return n=(n||0)%360,n<0?n+360:n}function pfe(n){return Math.max(0,Math.min(1,n||0))}function sLe(n,r,o){return(n<60?r+(o-r)*n/60:n<180?o:n<240?r+(o-r)*(240-n)/60:r)*255}const cdn=n=>()=>n;function bMr(n,r){return function(o){return n+o*r}}function gMr(n,r,o){return n=Math.pow(n,o),r=Math.pow(r,o)-n,o=1/o,function(l){return Math.pow(n+l*r,o)}}function wMr(n){return(n=+n)==1?udn:function(r,o){return o-r?gMr(r,o,n):cdn(isNaN(r)?o:r)}}function udn(n,r){var o=r-n;return o?bMr(n,o):cdn(isNaN(n)?r:n)}const cJt=function n(r){var o=wMr(r);function l(u,d){var h=o((u=zBe(u)).r,(d=zBe(d)).r),w=o(u.g,d.g),v=o(u.b,d.b),y=udn(u.opacity,d.opacity);return function(E){return u.r=h(E),u.g=w(E),u.b=v(E),u.opacity=y(E),u+""}}return l.gamma=n,l}(1);function rT(n,r){return n=+n,r=+r,function(o){return n*(1-o)+r*o}}var KBe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lLe=new RegExp(KBe.source,"g");function mMr(n){return function(){return n}}function yMr(n){return function(r){return n(r)+""}}function vMr(n,r){var o=KBe.lastIndex=lLe.lastIndex=0,l,u,d,h=-1,w=[],v=[];for(n=n+"",r=r+"";(l=KBe.exec(n))&&(u=lLe.exec(r));)(d=u.index)>o&&(d=r.slice(o,d),w[h]?w[h]+=d:w[++h]=d),(l=l[0])===(u=u[0])?w[h]?w[h]+=u:w[++h]=u:(w[++h]=null,v.push({i:h,x:rT(l,u)})),o=lLe.lastIndex;return o180?E+=360:E-y>180&&(y+=360),C.push({i:A.push(u(A)+"rotate(",null,l)-2,x:rT(y,E)})):E&&A.push(u(A)+"rotate("+E+l)}function w(y,E,A,C){y!==E?C.push({i:A.push(u(A)+"skewX(",null,l)-2,x:rT(y,E)}):E&&A.push(u(A)+"skewX("+E+l)}function v(y,E,A,C,R,O){if(y!==A||E!==C){var M=R.push(u(R)+"scale(",null,",",null,")");O.push({i:M-4,x:rT(y,A)},{i:M-2,x:rT(E,C)})}else(A!==1||C!==1)&&R.push(u(R)+"scale("+A+","+C+")")}return function(y,E){var A=[],C=[];return y=n(y),E=n(E),d(y.translateX,y.translateY,E.translateX,E.translateY,A,C),h(y.rotate,E.rotate,A,C),w(y.skewX,E.skewX,A,C),v(y.scaleX,y.scaleY,E.scaleX,E.scaleY,A,C),y=E=null,function(R){for(var O=-1,M=C.length,L;++O=0&&n._call.call(void 0,r),n=n._next;--QL}function dJt(){jP=(Dhe=TX.now())+d1e,QL=GK=0;try{$Mr()}finally{QL=0,PMr(),jP=0}}function IMr(){var n=TX.now(),r=n-Dhe;r>hdn&&(d1e-=r,Dhe=n)}function PMr(){for(var n,r=Mhe,o,l=1/0;r;)r._call?(l>r._time&&(l=r._time),n=r,r=r._next):(o=r._next,r._next=null,r=n?n._next=o:Mhe=o);VK=n,XBe(l)}function XBe(n){if(!QL){GK&&(GK=clearTimeout(GK));var r=n-jP;r>24?(n<1/0&&(GK=setTimeout(dJt,n-TX.now()-d1e)),mK&&(mK=clearInterval(mK))):(mK||(Dhe=TX.now(),mK=setInterval(IMr,hdn)),QL=1,pdn(dJt))}}function hJt(n,r,o){var l=new Lhe;return r=r==null?0:+r,l.restart(u=>{l.stop(),n(u+r)},r,o),l}var OMr=u1e("start","end","cancel","interrupt"),NMr=[],gdn=0,pJt=1,JBe=2,bde=3,bJt=4,YBe=5,gde=6;function h1e(n,r,o,l,u,d){var h=n.__transition;if(!h)n.__transition={};else if(o in h)return;MMr(n,o,{name:r,index:l,group:u,on:OMr,tween:NMr,time:d.time,delay:d.delay,duration:d.duration,ease:d.ease,timer:null,state:gdn})}function EVe(n,r){var o=PS(n,r);if(o.state>gdn)throw new Error("too late; already scheduled");return o}function Ck(n,r){var o=PS(n,r);if(o.state>bde)throw new Error("too late; already running");return o}function PS(n,r){var o=n.__transition;if(!o||!(o=o[r]))throw new Error("transition not found");return o}function MMr(n,r,o){var l=n.__transition,u;l[r]=o,o.timer=bdn(d,0,o.time);function d(y){o.state=pJt,o.timer.restart(h,o.delay,o.time),o.delay<=y&&h(y-o.delay)}function h(y){var E,A,C,R;if(o.state!==pJt)return v();for(E in l)if(R=l[E],R.name===o.name){if(R.state===bde)return hJt(h);R.state===bJt?(R.state=gde,R.timer.stop(),R.on.call("interrupt",n,n.__data__,R.index,R.group),delete l[E]):+EJBe&&l.state=0&&(r=r.slice(0,o)),!r||r==="start"})}function f9r(n,r,o){var l,u,d=u9r(r)?EVe:Ck;return function(){var h=d(this,n),w=h.on;w!==l&&(u=(l=w).copy()).on(r,o),h.on=u}}function d9r(n,r){var o=this._id;return arguments.length<2?PS(this.node(),o).on.on(n):this.each(f9r(o,n,r))}function h9r(n){return function(){var r=this.parentNode;for(var o in this.__transition)if(+o!==n)return;r&&r.removeChild(this)}}function p9r(){return this.on("end.remove",h9r(this._id))}function b9r(n){var r=this._name,o=this._id;typeof n!="function"&&(n=yVe(n));for(var l=this._groups,u=l.length,d=new Array(u),h=0;h()=>n;function B9r(n,{sourceEvent:r,target:o,transform:l,dispatch:u}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},transform:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}function UR(n,r,o){this.k=n,this.x=r,this.y=o}UR.prototype={constructor:UR,scale:function(n){return n===1?this:new UR(this.k*n,this.x,this.y)},translate:function(n,r){return n===0&r===0?this:new UR(this.k,this.x+this.k*n,this.y+this.k*r)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ZL=new UR(1,0,0);UR.prototype;function aLe(n){n.stopImmediatePropagation()}function yK(n){n.preventDefault(),n.stopImmediatePropagation()}function W9r(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function H9r(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function gJt(){return this.__zoom||ZL}function U9r(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function G9r(){return navigator.maxTouchPoints||"ontouchstart"in this}function V9r(n,r,o){var l=n.invertX(r[0][0])-o[0][0],u=n.invertX(r[1][0])-o[1][0],d=n.invertY(r[0][1])-o[0][1],h=n.invertY(r[1][1])-o[1][1];return n.translate(u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u),h>d?(d+h)/2:Math.min(0,d)||Math.max(0,h))}function z9r(){var n=W9r,r=H9r,o=V9r,l=U9r,u=G9r,d=[0,1/0],h=[[-1/0,-1/0],[1/0,1/0]],w=250,v=AMr,y=u1e("start","zoom","end"),E,A,C,R=500,O=150,M=0,L=10;function H(me){me.property("__zoom",gJt).on("wheel.zoom",Ee,{passive:!1}).on("mousedown.zoom",le).on("dblclick.zoom",xe).filter(u).on("touchstart.zoom",be).on("touchmove.zoom",ae).on("touchend.zoom touchcancel.zoom",F).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}H.transform=function(me,ye,we,Be){var He=me.selection?me.selection():me;He.property("__zoom",gJt),me!==He?te(me,ye,we,Be):He.interrupt().each(function(){pe(this,arguments).event(Be).start().zoom(null,typeof ye=="function"?ye.apply(this,arguments):ye).end()})},H.scaleBy=function(me,ye,we,Be){H.scaleTo(me,function(){var He=this.__zoom.k,Ue=typeof ye=="function"?ye.apply(this,arguments):ye;return He*Ue},we,Be)},H.scaleTo=function(me,ye,we,Be){H.transform(me,function(){var He=r.apply(this,arguments),Ue=this.__zoom,Ge=we==null?Q(He):typeof we=="function"?we.apply(this,arguments):we,Me=Ue.invert(Ge),vt=typeof ye=="function"?ye.apply(this,arguments):ye;return o(j(G(Ue,vt),Ge,Me),He,h)},we,Be)},H.translateBy=function(me,ye,we,Be){H.transform(me,function(){return o(this.__zoom.translate(typeof ye=="function"?ye.apply(this,arguments):ye,typeof we=="function"?we.apply(this,arguments):we),r.apply(this,arguments),h)},null,Be)},H.translateTo=function(me,ye,we,Be,He){H.transform(me,function(){var Ue=r.apply(this,arguments),Ge=this.__zoom,Me=Be==null?Q(Ue):typeof Be=="function"?Be.apply(this,arguments):Be;return o(ZL.translate(Me[0],Me[1]).scale(Ge.k).translate(typeof ye=="function"?-ye.apply(this,arguments):-ye,typeof we=="function"?-we.apply(this,arguments):-we),Ue,h)},Be,He)};function G(me,ye){return ye=Math.max(d[0],Math.min(d[1],ye)),ye===me.k?me:new UR(ye,me.x,me.y)}function j(me,ye,we){var Be=ye[0]-we[0]*me.k,He=ye[1]-we[1]*me.k;return Be===me.x&&He===me.y?me:new UR(me.k,Be,He)}function Q(me){return[(+me[0][0]+ +me[1][0])/2,(+me[0][1]+ +me[1][1])/2]}function te(me,ye,we,Be){me.on("start.zoom",function(){pe(this,arguments).event(Be).start()}).on("interrupt.zoom end.zoom",function(){pe(this,arguments).event(Be).end()}).tween("zoom",function(){var He=this,Ue=arguments,Ge=pe(He,Ue).event(Be),Me=r.apply(He,Ue),vt=we==null?Q(Me):typeof we=="function"?we.apply(He,Ue):we,re=Math.max(Me[1][0]-Me[0][0],Me[1][1]-Me[0][1]),Te=He.__zoom,ct=typeof ye=="function"?ye.apply(He,Ue):ye,at=v(Te.invert(vt).concat(re/Te.k),ct.invert(vt).concat(re/ct.k));return function(Ye){if(Ye===1)Ye=ct;else{var mt=at(Ye),jt=re/mt[2];Ye=new UR(jt,vt[0]-mt[0]*jt,vt[1]-mt[1]*jt)}Ge.zoom(null,Ye)}})}function pe(me,ye,we){return!we&&me.__zooming||new Le(me,ye)}function Le(me,ye){this.that=me,this.args=ye,this.active=0,this.sourceEvent=null,this.extent=r.apply(me,ye),this.taps=0}Le.prototype={event:function(me){return me&&(this.sourceEvent=me),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(me,ye){return this.mouse&&me!=="mouse"&&(this.mouse[1]=ye.invert(this.mouse[0])),this.touch0&&me!=="touch"&&(this.touch0[1]=ye.invert(this.touch0[0])),this.touch1&&me!=="touch"&&(this.touch1[1]=ye.invert(this.touch1[0])),this.that.__zoom=ye,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(me){var ye=yS(this.that).datum();y.call(me,this.that,new B9r(me,{sourceEvent:this.sourceEvent,target:H,type:me,transform:this.that.__zoom,dispatch:y}),ye)}};function Ee(me,...ye){if(!n.apply(this,arguments))return;var we=pe(this,ye).event(me),Be=this.__zoom,He=Math.max(d[0],Math.min(d[1],Be.k*Math.pow(2,l.apply(this,arguments)))),Ue=OE(me);if(we.wheel)(we.mouse[0][0]!==Ue[0]||we.mouse[0][1]!==Ue[1])&&(we.mouse[1]=Be.invert(we.mouse[0]=Ue)),clearTimeout(we.wheel);else{if(Be.k===He)return;we.mouse=[Ue,Be.invert(Ue)],wde(this),we.start()}yK(me),we.wheel=setTimeout(Ge,O),we.zoom("mouse",o(j(G(Be,He),we.mouse[0],we.mouse[1]),we.extent,h));function Ge(){we.wheel=null,we.end()}}function le(me,...ye){if(C||!n.apply(this,arguments))return;var we=me.currentTarget,Be=pe(this,ye,!0).event(me),He=yS(me.view).on("mousemove.zoom",vt,!0).on("mouseup.zoom",re,!0),Ue=OE(me,we),Ge=me.clientX,Me=me.clientY;odn(me.view),aLe(me),Be.mouse=[Ue,this.__zoom.invert(Ue)],wde(this),Be.start();function vt(Te){if(yK(Te),!Be.moved){var ct=Te.clientX-Ge,at=Te.clientY-Me;Be.moved=ct*ct+at*at>M}Be.event(Te).zoom("mouse",o(j(Be.that.__zoom,Be.mouse[0]=OE(Te,we),Be.mouse[1]),Be.extent,h))}function re(Te){He.on("mousemove.zoom mouseup.zoom",null),sdn(Te.view,Be.moved),yK(Te),Be.event(Te).end()}}function xe(me,...ye){if(n.apply(this,arguments)){var we=this.__zoom,Be=OE(me.changedTouches?me.changedTouches[0]:me,this),He=we.invert(Be),Ue=we.k*(me.shiftKey?.5:2),Ge=o(j(G(we,Ue),Be,He),r.apply(this,ye),h);yK(me),w>0?yS(this).transition().duration(w).call(te,Ge,Be,me):yS(this).call(H.transform,Ge,Be,me)}}function be(me,...ye){if(n.apply(this,arguments)){var we=me.touches,Be=we.length,He=pe(this,ye,me.changedTouches.length===Be).event(me),Ue,Ge,Me,vt;for(aLe(me),Ge=0;Ge(n.Left="left",n.Top="top",n.Right="right",n.Bottom="bottom",n))($i||{}),RVe=(n=>(n.Partial="partial",n.Full="full",n))(RVe||{}),F8=(n=>(n.Bezier="default",n.SimpleBezier="simple-bezier",n.Straight="straight",n.Step="step",n.SmoothStep="smoothstep",n))(F8||{}),FP=(n=>(n.Strict="strict",n.Loose="loose",n))(FP||{}),jhe=(n=>(n.Arrow="arrow",n.ArrowClosed="arrowclosed",n))(jhe||{}),Pq=(n=>(n.Free="free",n.Vertical="vertical",n.Horizontal="horizontal",n))(Pq||{});function QBe(n){var r,o;const l=((o=(r=n.composedPath)==null?void 0:r.call(n))==null?void 0:o[0])||n.target,u=typeof(l==null?void 0:l.hasAttribute)=="function"?l.hasAttribute("contenteditable"):!1,d=typeof(l==null?void 0:l.closest)=="function"?l.closest(".nokey"):null;return["INPUT","SELECT","TEXTAREA"].includes(l==null?void 0:l.nodeName)||u||!!d}function K9r(n){return n.ctrlKey||n.metaKey||n.shiftKey}function wJt(n,r,o,l){const u=r.replace("+",` +`).replace(` + +`,` ++`).split(` +`).map(h=>h.trim().toLowerCase());if(u.length===1)return n.toLowerCase()===r.toLowerCase();l||o.add(n.toLowerCase());const d=u.every((h,w)=>o.has(h)&&Array.from(o.values())[w]===u[w]);return l&&o.delete(n.toLowerCase()),d}function q9r(n,r){return o=>{if(!o.code&&!o.key)return!1;const l=X9r(o.code,n);return Array.isArray(n)?n.some(u=>wJt(o[l],u,r,o.type==="keyup")):wJt(o[l],n,r,o.type==="keyup")}}function X9r(n,r){return r.includes(n)?"code":"key"}function Oq(n,r){const o=bf(()=>_a(r==null?void 0:r.actInsideInputWithModifier)??!1),l=bf(()=>_a(r==null?void 0:r.target)??window),u=Fo(_a(n)===!0);let d=!1;const h=new Set;let w=y(_a(n));Zs(()=>_a(n),(E,A)=>{typeof A=="boolean"&&typeof E!="boolean"&&v(),w=y(E)},{immediate:!0}),sm(()=>{zfn(window,["blur","contextmenu"],v)}),QXt((...E)=>w(...E),E=>{d=K9r(E),!((!d||d&&!o.value)&&QBe(E))&&(E.preventDefault(),u.value=!0)},{eventName:"keydown",target:l}),QXt((...E)=>w(...E),E=>{if(u.value){if((!d||d&&!o.value)&&QBe(E))return;d=!1,u.value=!1}},{eventName:"keyup",target:l});function v(){d=!1,h.clear(),u.value=_a(n)===!0}function y(E){return E===null?(v(),()=>!1):typeof E=="boolean"?(v(),u.value=E,()=>!1):Array.isArray(E)||typeof E=="string"?q9r(E,h):E}return u}const vdn="vue-flow__node-desc",_dn="vue-flow__edge-desc",J9r="vue-flow__aria-live",Sdn=["Enter"," ","Escape"],_L={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function ZBe(n){return{...n.computedPosition||{x:0,y:0},width:n.dimensions.width||0,height:n.dimensions.height||0}}function eWe(n,r){const o=Math.max(0,Math.min(n.x+n.width,r.x+r.width)-Math.max(n.x,r.x)),l=Math.max(0,Math.min(n.y+n.height,r.y+r.height)-Math.max(n.y,r.y));return Math.ceil(o*l)}function p1e(n){return{width:n.offsetWidth,height:n.offsetHeight}}function BP(n,r=0,o=1){return Math.min(Math.max(n,r),o)}function Edn(n,r){return{x:BP(n.x,r[0][0],r[1][0]),y:BP(n.y,r[0][1],r[1][1])}}function mJt(n){const r=n.getRootNode();return"elementFromPoint"in r?r:window.document}function $T(n){return n&&typeof n=="object"&&"id"in n&&"source"in n&&"target"in n}function wP(n){return n&&typeof n=="object"&&"id"in n&&"position"in n&&!$T(n)}function zK(n){return wP(n)&&"computedPosition"in n}function wfe(n){return!Number.isNaN(n)&&Number.isFinite(n)}function Y9r(n){return wfe(n.width)&&wfe(n.height)&&wfe(n.x)&&wfe(n.y)}function Q9r(n,r,o){const l={id:n.id.toString(),type:n.type??"default",dimensions:X8({width:0,height:0}),computedPosition:X8({z:0,...n.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:Gd(n.data)?n.data:{},events:X8(Gd(n.events)?n.events:{})};return Object.assign(r??l,n,{id:n.id.toString(),parentNode:o})}function kdn(n,r,o){var l,u;const d={id:n.id.toString(),type:n.type??(r==null?void 0:r.type)??"default",source:n.source.toString(),target:n.target.toString(),sourceHandle:(l=n.sourceHandle)==null?void 0:l.toString(),targetHandle:(u=n.targetHandle)==null?void 0:u.toString(),updatable:n.updatable??(o==null?void 0:o.updatable),selectable:n.selectable??(o==null?void 0:o.selectable),focusable:n.focusable??(o==null?void 0:o.focusable),data:Gd(n.data)?n.data:{},events:X8(Gd(n.events)?n.events:{}),label:n.label??"",interactionWidth:n.interactionWidth??(o==null?void 0:o.interactionWidth),...o??{}};return Object.assign(r??d,n,{id:n.id.toString()})}function Rdn(n,r,o,l){const u=typeof n=="string"?n:n.id,d=new Set,h=l==="source"?"target":"source";for(const w of o)w[h]===u&&d.add(w[l]);return r.filter(w=>d.has(w.id))}function Z9r(...n){if(n.length===3){const[d,h,w]=n;return Rdn(d,h,w,"target")}const[r,o]=n,l=typeof r=="string"?r:r.id;return o.filter(d=>$T(d)&&d.source===l).map(d=>o.find(h=>wP(h)&&h.id===d.target))}function eDr(...n){if(n.length===3){const[d,h,w]=n;return Rdn(d,h,w,"source")}const[r,o]=n,l=typeof r=="string"?r:r.id;return o.filter(d=>$T(d)&&d.target===l).map(d=>o.find(h=>wP(h)&&h.id===d.source))}function xdn({source:n,sourceHandle:r,target:o,targetHandle:l}){return`vueflow__edge-${n}${r??""}-${o}${l??""}`}function tDr(n,r){return r.some(o=>$T(o)&&o.source===n.source&&o.target===n.target&&(o.sourceHandle===n.sourceHandle||!o.sourceHandle&&!n.sourceHandle)&&(o.targetHandle===n.targetHandle||!o.targetHandle&&!n.targetHandle))}function Cdn({x:n,y:r},{x:o,y:l,zoom:u}){return{x:n*u+o,y:r*u+l}}function $X({x:n,y:r},{x:o,y:l,zoom:u},d=!1,h=[1,1]){const w={x:(n-o)/u,y:(r-l)/u};return d?b1e(w,h):w}function nDr(n,r){return{x:Math.min(n.x,r.x),y:Math.min(n.y,r.y),x2:Math.max(n.x2,r.x2),y2:Math.max(n.y2,r.y2)}}function Adn({x:n,y:r,width:o,height:l}){return{x:n,y:r,x2:n+o,y2:r+l}}function rDr({x:n,y:r,x2:o,y2:l}){return{x:n,y:r,width:o-n,height:l-r}}function Tdn(n){let r={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let o=0;o0,L=(A??0)*(C??0);(O||M||R>=L||w.dragging)&&h.push(w)}return h}function Idn(n,r){const o=new Set;if(typeof n=="string")o.add(n);else if(n.length>=1)for(const l of n)o.add(l.id);return r.filter(l=>o.has(l.source)||o.has(l.target))}function yJt(n,r,o,l,u,d=.1,h={x:0,y:0}){const w=r/(n.width*(1+d)),v=o/(n.height*(1+d)),y=Math.min(w,v),E=BP(y,l,u),A=n.x+n.width/2,C=n.y+n.height/2,R=r/2-A*E+(h.x??0),O=o/2-C*E+(h.y??0);return{x:R,y:O,zoom:E}}function iDr(n,r){return{x:r.x+n.x,y:r.y+n.y,z:(n.z>r.z?n.z:r.z)+1}}function Pdn(n,r){if(!n.parentNode)return!1;const o=r(n.parentNode);return o?o.selected?!0:Pdn(o,r):!1}function IX(n,r){return typeof n>"u"?"":typeof n=="string"?n:`${r?`${r}__`:""}${Object.keys(n).sort().map(l=>`${l}=${n[l]}`).join("&")}`}function vJt(n,r,o){return no?-BP(Math.abs(n-o),1,r)/r:0}function Odn(n,r,o=15,l=40){const u=vJt(n.x,l,r.width-l)*o,d=vJt(n.y,l,r.height-l)*o;return[u,d]}function cLe(n,r){if(r){const o=n.position.x+n.dimensions.width-r.dimensions.width,l=n.position.y+n.dimensions.height-r.dimensions.height;if(o>0||l>0||n.position.x<0||n.position.y<0){let u={};if(typeof r.style=="function"?u={...r.style(r)}:r.style&&(u={...r.style}),u.width=u.width??`${r.dimensions.width}px`,u.height=u.height??`${r.dimensions.height}px`,o>0)if(typeof u.width=="string"){const d=Number(u.width.replace("px",""));u.width=`${d+o}px`}else u.width+=o;if(l>0)if(typeof u.height=="string"){const d=Number(u.height.replace("px",""));u.height=`${d+l}px`}else u.height+=l;if(n.position.x<0){const d=Math.abs(n.position.x);if(r.position.x=r.position.x-d,typeof u.width=="string"){const h=Number(u.width.replace("px",""));u.width=`${h+d}px`}else u.width+=d;n.position.x=0}if(n.position.y<0){const d=Math.abs(n.position.y);if(r.position.y=r.position.y-d,typeof u.height=="string"){const h=Number(u.height.replace("px",""));u.height=`${h+d}px`}else u.height+=d;n.position.y=0}r.dimensions.width=Number(u.width.toString().replace("px","")),r.dimensions.height=Number(u.height.toString().replace("px","")),typeof r.style=="function"?r.style=d=>{const h=r.style;return{...h(d),...u}}:r.style={...r.style,...u}}}}function _Jt(n,r){var o,l;const u=n.filter(h=>h.type==="add"||h.type==="remove");for(const h of u)if(h.type==="add")r.findIndex(v=>v.id===h.item.id)===-1&&r.push(h.item);else if(h.type==="remove"){const w=r.findIndex(v=>v.id===h.id);w!==-1&&r.splice(w,1)}const d=r.map(h=>h.id);for(const h of r)for(const w of n)if(w.id===h.id)switch(w.type){case"select":h.selected=w.selected;break;case"position":if(zK(h)&&(typeof w.position<"u"&&(h.position=w.position),typeof w.dragging<"u"&&(h.dragging=w.dragging),h.expandParent&&h.parentNode)){const v=r[d.indexOf(h.parentNode)];v&&zK(v)&&cLe(h,v)}break;case"dimensions":if(zK(h)&&(typeof w.dimensions<"u"&&(h.dimensions=w.dimensions),typeof w.updateStyle<"u"&&w.updateStyle&&(h.style={...h.style||{},width:`${(o=w.dimensions)==null?void 0:o.width}px`,height:`${(l=w.dimensions)==null?void 0:l.height}px`}),typeof w.resizing<"u"&&(h.resizing=w.resizing),h.expandParent&&h.parentNode)){const v=r[d.indexOf(h.parentNode)];v&&zK(v)&&(!!v.dimensions.width&&!!v.dimensions.height?cLe(h,v):RS(()=>{cLe(h,v)}))}break}return r}function W4(n,r){return{id:n,type:"select",selected:r}}function SJt(n){return{item:n,type:"add"}}function EJt(n){return{id:n,type:"remove"}}function kJt(n,r,o,l,u){return{id:n,source:r,target:o,sourceHandle:l||null,targetHandle:u||null,type:"remove"}}function iT(n,r=new Set,o=!1){const l=[];for(const[u,d]of n){const h=r.has(u);!(d.selected===void 0&&!h)&&d.selected!==h&&(o&&(d.selected=h),l.push(W4(d.id,h)))}return l}function ci(n){const r=new Set;let o=!1;const l=()=>r.size>0;n&&(o=!0,r.add(n));const u=w=>{r.delete(w)};return{on:w=>{n&&o&&r.delete(n),r.add(w);const v=()=>{u(w),n&&o&&r.add(n)};return c1e(v),{off:v}},off:u,trigger:w=>Promise.all(Array.from(r).map(v=>v(w))),hasListeners:l,fns:r}}function RJt(n,r,o){let l=n;do{if(l&&l.matches(r))return!0;if(l===o)return!1;l=l.parentElement}while(l);return!1}function oDr(n,r,o,l,u){var d,h;const w=[];for(const v of n)(v.selected||v.id===u)&&(!v.parentNode||!Pdn(v,l))&&(v.draggable||r&&typeof v.draggable>"u")&&w.push(X8({id:v.id,position:v.position||{x:0,y:0},distance:{x:o.x-((d=v.computedPosition)==null?void 0:d.x)||0,y:o.y-((h=v.computedPosition)==null?void 0:h.y)||0},from:v.computedPosition,extent:v.extent,parentNode:v.parentNode,dimensions:v.dimensions,expandParent:v.expandParent}));return w}function uLe({id:n,dragItems:r,findNode:o}){const l=[];for(const u of r){const d=o(u.id);d&&l.push(d)}return[n?l.find(u=>u.id===n):l[0],l]}function Ndn(n){if(Array.isArray(n))switch(n.length){case 1:return[n[0],n[0],n[0],n[0]];case 2:return[n[0],n[1],n[0],n[1]];case 3:return[n[0],n[1],n[2],n[1]];case 4:return n;default:return[0,0,0,0]}return[n,n,n,n]}function sDr(n,r,o){const[l,u,d,h]=typeof n!="string"?Ndn(n.padding):[0,0,0,0];return o&&typeof o.computedPosition.x<"u"&&typeof o.computedPosition.y<"u"&&typeof o.dimensions.width<"u"&&typeof o.dimensions.height<"u"?[[o.computedPosition.x+h,o.computedPosition.y+l],[o.computedPosition.x+o.dimensions.width-u,o.computedPosition.y+o.dimensions.height-d]]:!1}function lDr(n,r,o,l){let u=n.extent||o;if((u==="parent"||!Array.isArray(u)&&(u==null?void 0:u.range)==="parent")&&!n.expandParent)if(n.parentNode&&l&&n.dimensions.width&&n.dimensions.height){const d=sDr(u,n,l);d&&(u=d)}else r(new Ch(Vd.NODE_EXTENT_INVALID,n.id)),u=o;else if(Array.isArray(u)){const d=(l==null?void 0:l.computedPosition.x)||0,h=(l==null?void 0:l.computedPosition.y)||0;u=[[u[0][0]+d,u[0][1]+h],[u[1][0]+d,u[1][1]+h]]}else if(u!=="parent"&&(u!=null&&u.range)&&Array.isArray(u.range)){const[d,h,w,v]=Ndn(u.padding),y=(l==null?void 0:l.computedPosition.x)||0,E=(l==null?void 0:l.computedPosition.y)||0;u=[[u.range[0][0]+y+v,u.range[0][1]+E+d],[u.range[1][0]+y-h,u.range[1][1]+E-w]]}return u==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:u}function aDr({width:n,height:r},o){return[o[0],[o[1][0]-(n||0),o[1][1]-(r||0)]]}function xVe(n,r,o,l,u){const d=aDr(n.dimensions,lDr(n,o,l,u)),h=Edn(r,d);return{position:{x:h.x-((u==null?void 0:u.computedPosition.x)||0),y:h.y-((u==null?void 0:u.computedPosition.y)||0)},computedPosition:h}}function Fhe(n,r,o=$i.Left){const l=((r==null?void 0:r.x)??0)+n.computedPosition.x,u=((r==null?void 0:r.y)??0)+n.computedPosition.y,{width:d,height:h}=r??fDr(n);switch((r==null?void 0:r.position)??o){case $i.Top:return{x:l+d/2,y:u};case $i.Right:return{x:l+d,y:u+h/2};case $i.Bottom:return{x:l+d/2,y:u+h};case $i.Left:return{x:l,y:u+h/2}}}function xJt(n=[],r){return n.length&&(r?n.find(o=>o.id===r):n[0])||null}function cDr({sourcePos:n,targetPos:r,sourceWidth:o,sourceHeight:l,targetWidth:u,targetHeight:d,width:h,height:w,viewport:v}){const y={x:Math.min(n.x,r.x),y:Math.min(n.y,r.y),x2:Math.max(n.x+o,r.x+u),y2:Math.max(n.y+l,r.y+d)};y.x===y.x2&&(y.x2+=1),y.y===y.y2&&(y.y2+=1);const E=Adn({x:(0-v.x)/v.zoom,y:(0-v.y)/v.zoom,width:h/v.zoom,height:w/v.zoom}),A=Math.max(0,Math.min(E.x2,y.x2)-Math.max(E.x,y.x)),C=Math.max(0,Math.min(E.y2,y.y2)-Math.max(E.y,y.y));return Math.ceil(A*C)>0}function uDr(n,r,o=!1){const l=typeof n.zIndex=="number";let u=l?n.zIndex:0;const d=r(n.source),h=r(n.target);return!d||!h?0:(o&&(u=l?n.zIndex:Math.max(d.computedPosition.z||0,h.computedPosition.z||0)),u)}var Vd=(n=>(n.MISSING_STYLES="MISSING_STYLES",n.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",n.NODE_INVALID="NODE_INVALID",n.NODE_NOT_FOUND="NODE_NOT_FOUND",n.NODE_MISSING_PARENT="NODE_MISSING_PARENT",n.NODE_TYPE_MISSING="NODE_TYPE_MISSING",n.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",n.EDGE_INVALID="EDGE_INVALID",n.EDGE_NOT_FOUND="EDGE_NOT_FOUND",n.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",n.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",n.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",n.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",n.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",n.EDGE_ORPHANED="EDGE_ORPHANED",n.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",n))(Vd||{});const CJt={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:n=>`Node is invalid +Node: ${n}`,NODE_NOT_FOUND:n=>`Node not found +Node: ${n}`,NODE_MISSING_PARENT:(n,r)=>`Node is missing a parent +Node: ${n} +Parent: ${r}`,NODE_TYPE_MISSING:n=>`Node type is missing +Type: ${n}`,NODE_EXTENT_INVALID:n=>`Only child nodes can use a parent extent +Node: ${n}`,EDGE_INVALID:n=>`An edge needs a source and a target +Edge: ${n}`,EDGE_SOURCE_MISSING:(n,r)=>`Edge source is missing +Edge: ${n} +Source: ${r}`,EDGE_TARGET_MISSING:(n,r)=>`Edge target is missing +Edge: ${n} +Target: ${r}`,EDGE_TYPE_MISSING:n=>`Edge type is missing +Type: ${n}`,EDGE_SOURCE_TARGET_SAME:(n,r,o)=>`Edge source and target are the same +Edge: ${n} +Source: ${r} +Target: ${o}`,EDGE_SOURCE_TARGET_MISSING:(n,r,o)=>`Edge source or target is missing +Edge: ${n} +Source: ${r} +Target: ${o}`,EDGE_ORPHANED:n=>`Edge was orphaned (suddenly missing source or target) and has been removed +Edge: ${n}`,EDGE_NOT_FOUND:n=>`Edge not found +Edge: ${n}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"};class Ch extends Error{constructor(r,...o){var l;super((l=CJt[r])==null?void 0:l.call(CJt,...o)),this.name="VueFlowError",this.code=r,this.args=o}}function CVe(n){return"clientX"in n}function Mdn(n){return"sourceEvent"in n}function zR(n,r){var o,l;const u=CVe(n),d=u?n.clientX:(o=n.touches)==null?void 0:o[0].clientX,h=u?n.clientY:(l=n.touches)==null?void 0:l[0].clientY;return{x:d-((r==null?void 0:r.left)??0),y:h-((r==null?void 0:r.top)??0)}}const Bhe=()=>{var n;return typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)==null?void 0:n.indexOf("Mac"))>=0};function fDr(n){var r,o;return{width:((r=n.dimensions)==null?void 0:r.width)??n.width??0,height:((o=n.dimensions)==null?void 0:o.height)??n.height??0}}function b1e(n,r=[1,1]){return{x:r[0]*Math.round(n.x/r[0]),y:r[1]*Math.round(n.y/r[1])}}function Ddn(){return{handleDomNode:null,isValid:!1,connection:{source:"",target:"",sourceHandle:null,targetHandle:null},endHandle:null}}function fLe(n){n==null||n.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function AJt(n,r,o,l){const u=[];for(const d of r[o]||[])if(`${n.id}-${d.id}-${o}`!==l){const{x:h,y:w}=Fhe(n,d);u.push({id:d.id||null,type:o,nodeId:n.id,x:h,y:w})}return u}function dDr(n,r,o,l,u,d){const{x:h,y:w}=zR(n),y=r.elementsFromPoint(h,w).find(O=>O.classList.contains("vue-flow__handle"));if(y){const O=y.getAttribute("data-nodeid");if(O){const M=AVe(void 0,y),L=y.getAttribute("data-handleid"),H=d({nodeId:O,id:L,type:M});if(H){const G=u.find(j=>j.nodeId===O&&j.type===M&&j.id===L);return{handle:{id:L,type:M,nodeId:O,x:(G==null?void 0:G.x)||o.x,y:(G==null?void 0:G.y)||o.y},validHandleResult:H}}}}let E=[],A=Number.POSITIVE_INFINITY;for(const O of u){const M=Math.sqrt((O.x-o.x)**2+(O.y-o.y)**2);if(M<=l){const L=d(O);M<=A&&(MO.isValid),R=E.some(({handle:O})=>O.type==="target");return E.find(({handle:O,validHandleResult:M})=>R?O.type==="target":C?M.isValid:!0)||E[0]}function TJt(n,r,o,l,u,d,h,w,v,y,E){const A=d==="target",C=w.querySelector(`.vue-flow__handle[data-id="${r==null?void 0:r.nodeId}-${r==null?void 0:r.id}-${r==null?void 0:r.type}"]`),{x:R,y:O}=zR(n),M=w.elementFromPoint(R,O),L=M!=null&&M.classList.contains("vue-flow__handle")?M:C,H=Ddn();if(L){H.handleDomNode=L;const G=AVe(void 0,L),j=L.getAttribute("data-nodeid"),Q=L.getAttribute("data-handleid"),te=L.classList.contains("connectable"),pe=L.classList.contains("connectableend"),Le={source:A?j:l,sourceHandle:A?Q:u,target:A?l:j,targetHandle:A?u:Q};H.connection=Le,te&&pe&&(o===FP.Strict?A&&G==="source"||!A&&G==="target":j!==l||Q!==u)&&(H.isValid=h(Le,{edges:v,nodes:y,sourceNode:E(Le.source),targetNode:E(Le.target)}),H.endHandle={nodeId:j,handleId:Q,type:G,position:H.isValid?L.getAttribute("data-handlepos"):null})}return H}function hDr({nodes:n,nodeId:r,handleId:o,handleType:l}){const u=[];for(let d=0;d{const w=h.getBoundingClientRect();return{id:h.getAttribute("data-handleid"),position:h.getAttribute("data-handlepos"),x:(w.left-o.left)/l,y:(w.top-o.top)/l,...p1e(h)}})}function tWe(n,r,o,l,u,d=!1,h){u.value=!1,n.selected?(d||n.selected&&r)&&(l([n]),RS(()=>{h.blur()})):o([n])}function Gd(n){return typeof Wr(n)<"u"}function gDr(n,r,o,l){if(!n||!n.source||!n.target)return o(new Ch(Vd.EDGE_INVALID,(n==null?void 0:n.id)??"[ID UNKNOWN]")),!1;let u;return $T(n)?u=n:u={...n,id:xdn(n)},u=kdn(u,void 0,l),tDr(u,r)?!1:u}function wDr(n,r,o,l,u,d){if(!r.source||!r.target)return d(new Ch(Vd.EDGE_INVALID,n.id)),!1;const h=l(n.id);if(!h)return d(new Ch(Vd.EDGE_NOT_FOUND,n.id)),!1;const{id:w,...v}=n,y={...v,id:u?xdn(r):w,source:r.source,target:r.target,sourceHandle:r.sourceHandle,targetHandle:r.targetHandle};return o.splice(o.indexOf(h),1,y),y}function IJt(n,r,o){const l={},u=[];for(let d=0;dw.id===d.parentNode);d.parentNode&&!h&&o(new Ch(Vd.NODE_MISSING_PARENT,d.id,d.parentNode)),(d.parentNode||l[d.id])&&(l[d.id]&&(d.isParent=!0),h&&(h.isParent=!0))}return u}function PJt(n,r){n.clear();for(const o of r){const{id:l,source:u,target:d,sourceHandle:h=null,targetHandle:w=null}=o,v=`${u}-source-${h}`,y=`${d}-target-${w}`,E=n.get(v)||new Map,A=n.get(y)||new Map,C=X8({edgeId:l,source:u,target:d,sourceHandle:h,targetHandle:w});n.set(v,E.set(`${d}-${w}`,C)),n.set(y,A.set(`${u}-${h}`,C))}}function OJt(n,r,o,l,u,d,h,w){const v=[];for(const y of n){const E=$T(y)?y:gDr(y,w,u,d);if(!E)continue;const A=o(E.source),C=o(E.target);if(!A||!C){u(new Ch(Vd.EDGE_SOURCE_TARGET_MISSING,E.id,E.source,E.target));continue}if(!A){u(new Ch(Vd.EDGE_SOURCE_MISSING,E.id,E.source));continue}if(!C){u(new Ch(Vd.EDGE_TARGET_MISSING,E.id,E.target));continue}if(r&&!r(E,{edges:w,nodes:h,sourceNode:A,targetNode:C})){u(new Ch(Vd.EDGE_INVALID,E.id));continue}const R=l(E.id);v.push({...kdn(E,R,d),sourceNode:A,targetNode:C})}return v}const NJt=Symbol("vueFlow"),jdn=Symbol("nodeId"),Fdn=Symbol("nodeRef"),mDr=Symbol("edgeId"),yDr=Symbol("edgeRef"),w1e=Symbol("slots");function Bdn(n){const{vueFlowRef:r,snapToGrid:o,snapGrid:l,noDragClassName:u,nodes:d,nodeExtent:h,nodeDragThreshold:w,viewport:v,autoPanOnNodeDrag:y,autoPanSpeed:E,nodesDraggable:A,panBy:C,findNode:R,multiSelectionActive:O,nodesSelectionActive:M,selectNodesOnDrag:L,removeSelectedElements:H,addSelectedNodes:G,updateNodePositions:j,emits:Q}=hu(),{onStart:te,onDrag:pe,onStop:Le,onClick:Ee,el:le,disabled:xe,id:be,selectable:ae,dragHandle:F}=n,me=Fo(!1);let ye=[],we,Be=null,He={x:void 0,y:void 0},Ue={x:0,y:0},Ge=null,Me=!1,vt=0,re=!1;const Te=SDr(),ct=({x:Pe,y:Oe})=>{He={x:Pe,y:Oe};let T=!1;if(ye=ye.map($=>{const B={x:Pe-$.distance.x,y:Oe-$.distance.y},{computedPosition:K}=xVe($,o.value?b1e(B,l.value):B,Q.error,h.value,$.parentNode?R($.parentNode):void 0);return T=T||$.position.x!==K.x||$.position.y!==K.y,$.position=K,$}),!!T&&(j(ye,!0,!0),me.value=!0,Ge)){const[$,B]=uLe({id:be,dragItems:ye,findNode:R});pe({event:Ge,node:$,nodes:B})}},at=()=>{if(!Be)return;const[Pe,Oe]=Odn(Ue,Be,E.value);if(Pe!==0||Oe!==0){const T={x:(He.x??0)-Pe/v.value.zoom,y:(He.y??0)-Oe/v.value.zoom};C({x:Pe,y:Oe})&&ct(T)}vt=requestAnimationFrame(at)},Ye=(Pe,Oe)=>{Me=!0;const T=R(be);!L.value&&!O.value&&T&&(T.selected||H()),T&&_a(ae)&&L.value&&tWe(T,O.value,G,H,M,!1,Oe);const $=Te(Pe.sourceEvent);if(He=$,ye=oDr(d.value,A.value,$,R,be),ye.length){const[B,K]=uLe({id:be,dragItems:ye,findNode:R});te({event:Pe.sourceEvent,node:B,nodes:K})}},mt=(Pe,Oe)=>{var T;Pe.sourceEvent.type==="touchmove"&&Pe.sourceEvent.touches.length>1||(w.value===0&&Ye(Pe,Oe),He=Te(Pe.sourceEvent),Be=((T=r.value)==null?void 0:T.getBoundingClientRect())||null,Ue=zR(Pe.sourceEvent,Be))},jt=(Pe,Oe)=>{const T=Te(Pe.sourceEvent);if(!re&&Me&&y.value&&(re=!0,at()),!Me){const $=T.xSnapped-(He.x??0),B=T.ySnapped-(He.y??0);Math.sqrt($*$+B*B)>w.value&&Ye(Pe,Oe)}(He.x!==T.xSnapped||He.y!==T.ySnapped)&&ye.length&&Me&&(Ge=Pe.sourceEvent,Ue=zR(Pe.sourceEvent,Be),ct(T))},rn=Pe=>{if(!Mdn(Pe)&&!Me&&!me.value&&!O.value){const Oe=Pe,T=Te(Oe),$=T.xSnapped-(He.x??0),B=T.ySnapped-(He.y??0),K=Math.sqrt($*$+B*B);K!==0&&K<=w.value&&(Ee==null||Ee(Oe));return}if(me.value=!1,re=!1,Me=!1,He={x:void 0,y:void 0},cancelAnimationFrame(vt),ye.length){j(ye,!1,!1);const[Oe,T]=uLe({id:be,dragItems:ye,findNode:R});Le({event:Pe.sourceEvent,node:Oe,nodes:T})}};return Zs([()=>_a(xe),le],([Pe,Oe],T,$)=>{if(Oe){const B=yS(Oe);Pe||(we=nMr().on("start",K=>mt(K,Oe)).on("drag",K=>jt(K,Oe)).on("end",K=>rn(K)).filter(K=>{const q=K.target,ke=_a(F);return!K.button&&(!u.value||!RJt(q,`.${u.value}`,Oe)&&(!ke||RJt(q,ke,Oe)))}),B.call(we)),$(()=>{B.on(".drag",null),we&&(we.on("start",null),we.on("drag",null),we.on("end",null))})}}),me}function vDr(){return{doubleClick:ci(),click:ci(),mouseEnter:ci(),mouseMove:ci(),mouseLeave:ci(),contextMenu:ci(),updateStart:ci(),update:ci(),updateEnd:ci()}}function _Dr(n,r){const o=vDr();return o.doubleClick.on(l=>{var u,d;r.edgeDoubleClick(l),(d=(u=n.events)==null?void 0:u.doubleClick)==null||d.call(u,l)}),o.click.on(l=>{var u,d;r.edgeClick(l),(d=(u=n.events)==null?void 0:u.click)==null||d.call(u,l)}),o.mouseEnter.on(l=>{var u,d;r.edgeMouseEnter(l),(d=(u=n.events)==null?void 0:u.mouseEnter)==null||d.call(u,l)}),o.mouseMove.on(l=>{var u,d;r.edgeMouseMove(l),(d=(u=n.events)==null?void 0:u.mouseMove)==null||d.call(u,l)}),o.mouseLeave.on(l=>{var u,d;r.edgeMouseLeave(l),(d=(u=n.events)==null?void 0:u.mouseLeave)==null||d.call(u,l)}),o.contextMenu.on(l=>{var u,d;r.edgeContextMenu(l),(d=(u=n.events)==null?void 0:u.contextMenu)==null||d.call(u,l)}),o.updateStart.on(l=>{var u,d;r.edgeUpdateStart(l),(d=(u=n.events)==null?void 0:u.updateStart)==null||d.call(u,l)}),o.update.on(l=>{var u,d;r.edgeUpdate(l),(d=(u=n.events)==null?void 0:u.update)==null||d.call(u,l)}),o.updateEnd.on(l=>{var u,d;r.edgeUpdateEnd(l),(d=(u=n.events)==null?void 0:u.updateEnd)==null||d.call(u,l)}),Object.entries(o).reduce((l,[u,d])=>(l.emit[u]=d.trigger,l.on[u]=d.on,l),{emit:{},on:{}})}function SDr(){const{viewport:n,snapGrid:r,snapToGrid:o}=hu();return l=>{const u=Mdn(l)?l.sourceEvent:l,{x:d,y:h}=zR(u),w=$X({x:d,y:h},n.value),{x:v,y}=o.value?b1e(w,r.value):w;return{xSnapped:v,ySnapped:y,...w}}}function mfe(){return!0}function Wdn({handleId:n,nodeId:r,type:o,isValidConnection:l,edgeUpdaterType:u,onEdgeUpdate:d,onEdgeUpdateEnd:h}){const{vueFlowRef:w,connectionMode:v,connectionRadius:y,connectOnClick:E,connectionClickStartHandle:A,nodesConnectable:C,autoPanOnConnect:R,autoPanSpeed:O,findNode:M,panBy:L,startConnection:H,updateConnection:G,endConnection:j,emits:Q,viewport:te,edges:pe,nodes:Le,isValidConnection:Ee}=hu();let le=null,xe=!1,be=null,ae=null;function F(ye){var we;const Be=_a(o)==="target",He=CVe(ye),Ue=mJt(ye.target);if(He&&ye.button===0||!He){let Ge=function(K){Oe=zR(K,rn);const{handle:q,validHandleResult:ke}=dDr(K,Ue,$X(Oe,te.value,!1,[1,1]),y.value,$,Re=>TJt(K,Re,v.value,_a(r),_a(n),Be?"target":"source",re,Ue,pe.value,Le.value,M));if(Te=q,T||(B(),T=!0),le=ke.connection,xe=ke.isValid,be=ke.handleDomNode,!(xe&&Te&&(ae!=null&&ae.endHandle)&&ke.endHandle&&ae.endHandle.type===ke.endHandle.type&&ae.endHandle.nodeId===ke.endHandle.nodeId&&ae.endHandle.handleId===ke.endHandle.handleId)){if(G(Te&&xe?Cdn({x:Te.x,y:Te.y},te.value):Oe,ke.endHandle,pDr(!!Te,xe)),ae=ke,!Te&&!xe&&!be)return fLe(Pe);le&&le.source!==le.target&&be&&(fLe(Pe),Pe=be,be.classList.add("connecting","vue-flow__handle-connecting"),be.classList.toggle("valid",xe),be.classList.toggle("vue-flow__handle-valid",xe))}},Me=function(K){(Te||be)&&le&&xe&&(d?d(K,le):Q.connect(le)),Q.connectEnd(K),u&&(h==null||h(K)),fLe(Pe),cancelAnimationFrame(ct),j(K),T=!1,xe=!1,le=null,be=null,Ue.removeEventListener("mousemove",Ge),Ue.removeEventListener("mouseup",Me),Ue.removeEventListener("touchmove",Ge),Ue.removeEventListener("touchend",Me)};const vt=M(_a(r));let re=_a(l)||Ee.value||mfe;!re&&vt&&(re=(Be?vt.isValidSourcePos:vt.isValidTargetPos)||mfe);let Te,ct=0;const{x:at,y:Ye}=zR(ye),mt=Ue==null?void 0:Ue.elementFromPoint(at,Ye),jt=AVe(_a(u),mt),rn=(we=w.value)==null?void 0:we.getBoundingClientRect();if(!rn||!jt)return;let Pe,Oe=zR(ye,rn),T=!1;const $=hDr({nodes:Le.value,nodeId:_a(r),handleId:_a(n),handleType:jt}),B=()=>{if(!R.value)return;const[K,q]=Odn(Oe,rn,O.value);L({x:K,y:q}),ct=requestAnimationFrame(B)};H({nodeId:_a(r),handleId:_a(n),type:jt,position:(mt==null?void 0:mt.getAttribute("data-handlepos"))||$i.Top},{x:at-rn.left,y:Ye-rn.top}),Q.connectStart({event:ye,nodeId:_a(r),handleId:_a(n),handleType:jt}),Ue.addEventListener("mousemove",Ge),Ue.addEventListener("mouseup",Me),Ue.addEventListener("touchmove",Ge),Ue.addEventListener("touchend",Me)}}function me(ye){if(!E.value)return;const we=_a(o)==="target";if(!A.value)Q.clickConnectStart({event:ye,nodeId:_a(r),handleId:_a(n)}),H({nodeId:_a(r),type:_a(o),handleId:_a(n)},void 0,!0);else{let Be=_a(l)||Ee.value||mfe;const He=M(_a(r));if(!Be&&He&&(Be=(we?He.isValidSourcePos:He.isValidTargetPos)||mfe),He&&(typeof He.connectable>"u"?C.value:He.connectable)===!1)return;const Ue=mJt(ye.target),{connection:Ge,isValid:Me}=TJt(ye,{nodeId:_a(r),id:_a(n),type:_a(o)},v.value,A.value.nodeId,A.value.handleId||null,A.value.type,Be,Ue,pe.value,Le.value,M),vt=Ge.source===Ge.target;Me&&!vt&&Q.connect(Ge),Q.clickConnectEnd(ye),j(ye,!0)}}return{handlePointerDown:F,handleClick:me}}function EDr(){return BE(jdn,"")}function Hdn(n){const r=n??EDr()??"",o=BE(Fdn,Fo(null)),{findNode:l,edges:u,emits:d}=hu(),h=l(r);return h||d.error(new Ch(Vd.NODE_NOT_FOUND,r)),{id:r,nodeEl:o,node:h,parentNode:To(()=>l(h.parentNode)),connectedEdges:To(()=>Idn([h],u.value))}}function kDr(){return{doubleClick:ci(),click:ci(),mouseEnter:ci(),mouseMove:ci(),mouseLeave:ci(),contextMenu:ci(),dragStart:ci(),drag:ci(),dragStop:ci()}}function RDr(n,r){const o=kDr();return o.doubleClick.on(l=>{var u,d;r.nodeDoubleClick(l),(d=(u=n.events)==null?void 0:u.doubleClick)==null||d.call(u,l)}),o.click.on(l=>{var u,d;r.nodeClick(l),(d=(u=n.events)==null?void 0:u.click)==null||d.call(u,l)}),o.mouseEnter.on(l=>{var u,d;r.nodeMouseEnter(l),(d=(u=n.events)==null?void 0:u.mouseEnter)==null||d.call(u,l)}),o.mouseMove.on(l=>{var u,d;r.nodeMouseMove(l),(d=(u=n.events)==null?void 0:u.mouseMove)==null||d.call(u,l)}),o.mouseLeave.on(l=>{var u,d;r.nodeMouseLeave(l),(d=(u=n.events)==null?void 0:u.mouseLeave)==null||d.call(u,l)}),o.contextMenu.on(l=>{var u,d;r.nodeContextMenu(l),(d=(u=n.events)==null?void 0:u.contextMenu)==null||d.call(u,l)}),o.dragStart.on(l=>{var u,d;r.nodeDragStart(l),(d=(u=n.events)==null?void 0:u.dragStart)==null||d.call(u,l)}),o.drag.on(l=>{var u,d;r.nodeDrag(l),(d=(u=n.events)==null?void 0:u.drag)==null||d.call(u,l)}),o.dragStop.on(l=>{var u,d;r.nodeDragStop(l),(d=(u=n.events)==null?void 0:u.dragStop)==null||d.call(u,l)}),Object.entries(o).reduce((l,[u,d])=>(l.emit[u]=d.trigger,l.on[u]=d.on,l),{emit:{},on:{}})}function Udn(){const{getSelectedNodes:n,nodeExtent:r,updateNodePositions:o,findNode:l,snapGrid:u,snapToGrid:d,nodesDraggable:h,emits:w}=hu();return(v,y=!1)=>{const E=d.value?u.value[0]:5,A=d.value?u.value[1]:5,C=y?4:1,R=v.x*E*C,O=v.y*A*C,M=[];for(const L of n.value)if(L.draggable||h&&typeof L.draggable>"u"){const H={x:L.computedPosition.x+R,y:L.computedPosition.y+O},{computedPosition:G}=xVe(L,H,w.error,r.value,L.parentNode?l(L.parentNode):void 0);M.push({id:L.id,position:G,from:L.position,distance:{x:v.x,y:v.y},dimensions:L.dimensions})}o(M,!0,!1)}}const dLe=.1;function L4(){return g1e("Viewport not initialized yet."),Promise.resolve(!1)}const xDr={zoomIn:L4,zoomOut:L4,zoomTo:L4,fitView:L4,setCenter:L4,fitBounds:L4,project:n=>n,screenToFlowCoordinate:n=>n,flowToScreenCoordinate:n=>n,setViewport:L4,setTransform:L4,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function CDr(n){function r(l,u){return new Promise(d=>{n.d3Selection&&n.d3Zoom?n.d3Zoom.scaleBy(hLe(n.d3Selection,u,()=>{d(!0)}),l):d(!1)})}function o(l,u,d,h){return new Promise(w=>{const{x:v,y}=Edn({x:-l,y:-u},n.translateExtent),E=ZL.translate(-v,-y).scale(d);n.d3Selection&&n.d3Zoom?n.d3Zoom.transform(hLe(n.d3Selection,h,()=>{w(!0)}),E):w(!1)})}return To(()=>n.d3Zoom&&n.d3Selection&&n.dimensions.width&&n.dimensions.height?{viewportInitialized:!0,zoomIn:u=>r(1.2,u==null?void 0:u.duration),zoomOut:u=>r(1/1.2,u==null?void 0:u.duration),zoomTo:(u,d)=>new Promise(h=>{n.d3Selection&&n.d3Zoom?n.d3Zoom.scaleTo(hLe(n.d3Selection,d==null?void 0:d.duration,()=>{h(!0)}),u):h(!1)}),setViewport:(u,d)=>o(u.x,u.y,u.zoom,d==null?void 0:d.duration),setTransform:(u,d)=>o(u.x,u.y,u.zoom,d==null?void 0:d.duration),getViewport:()=>({x:n.viewport.x,y:n.viewport.y,zoom:n.viewport.zoom}),getTransform:()=>({x:n.viewport.x,y:n.viewport.y,zoom:n.viewport.zoom}),fitView:(u={padding:dLe,includeHiddenNodes:!1,duration:0})=>{var d,h;const w=[];for(const C of n.nodes)C.dimensions.width&&C.dimensions.height&&((u==null?void 0:u.includeHiddenNodes)||!C.hidden)&&(!((d=u.nodes)!=null&&d.length)||(h=u.nodes)!=null&&h.length&&u.nodes.includes(C.id))&&w.push(C);if(!w.length)return Promise.resolve(!1);const v=Tdn(w),{x:y,y:E,zoom:A}=yJt(v,n.dimensions.width,n.dimensions.height,u.minZoom??n.minZoom,u.maxZoom??n.maxZoom,u.padding??dLe,u.offset);return o(y,E,A,u==null?void 0:u.duration)},setCenter:(u,d,h)=>{const w=typeof(h==null?void 0:h.zoom)<"u"?h.zoom:n.maxZoom,v=n.dimensions.width/2-u*w,y=n.dimensions.height/2-d*w;return o(v,y,w,h==null?void 0:h.duration)},fitBounds:(u,d={padding:dLe})=>{const{x:h,y:w,zoom:v}=yJt(u,n.dimensions.width,n.dimensions.height,n.minZoom,n.maxZoom,d.padding);return o(h,w,v,d==null?void 0:d.duration)},project:u=>$X(u,n.viewport,n.snapToGrid,n.snapGrid),screenToFlowCoordinate:u=>{if(n.vueFlowRef){const{x:d,y:h}=n.vueFlowRef.getBoundingClientRect(),w={x:u.x-d,y:u.y-h};return $X(w,n.viewport,n.snapToGrid,n.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:u=>{if(n.vueFlowRef){const{x:d,y:h}=n.vueFlowRef.getBoundingClientRect(),w={x:u.x+d,y:u.y+h};return Cdn(w,n.viewport)}return{x:0,y:0}}}:xDr)}function hLe(n,r=0,o){return n.transition().duration(r).on("end",o)}function ADr(n,r,o){const l=SYt(!0);return l.run(()=>{const u=()=>{l.run(()=>{let M,L,H=!!(o.nodes.value.length||o.edges.value.length);M=dD([n.modelValue,()=>{var G,j;return(j=(G=n.modelValue)==null?void 0:G.value)==null?void 0:j.length}],([G])=>{G&&Array.isArray(G)&&(L==null||L.pause(),o.setElements(G),!L&&!H&&G.length?H=!0:L==null||L.resume())}),L=dD([o.nodes,o.edges,()=>o.edges.value.length,()=>o.nodes.value.length],([G,j])=>{var Q;(Q=n.modelValue)!=null&&Q.value&&Array.isArray(n.modelValue.value)&&(M==null||M.pause(),n.modelValue.value=[...G,...j],RS(()=>{M==null||M.resume()}))},{immediate:H}),qK(()=>{M==null||M.stop(),L==null||L.stop()})})},d=()=>{l.run(()=>{let M,L,H=!!o.nodes.value.length;M=dD([n.nodes,()=>{var G,j;return(j=(G=n.nodes)==null?void 0:G.value)==null?void 0:j.length}],([G])=>{G&&Array.isArray(G)&&(L==null||L.pause(),o.setNodes(G),!L&&!H&&G.length?H=!0:L==null||L.resume())}),L=dD([o.nodes,()=>o.nodes.value.length],([G])=>{var j;(j=n.nodes)!=null&&j.value&&Array.isArray(n.nodes.value)&&(M==null||M.pause(),n.nodes.value=[...G],RS(()=>{M==null||M.resume()}))},{immediate:H}),qK(()=>{M==null||M.stop(),L==null||L.stop()})})},h=()=>{l.run(()=>{let M,L,H=!!o.edges.value.length;M=dD([n.edges,()=>{var G,j;return(j=(G=n.edges)==null?void 0:G.value)==null?void 0:j.length}],([G])=>{G&&Array.isArray(G)&&(L==null||L.pause(),o.setEdges(G),!L&&!H&&G.length?H=!0:L==null||L.resume())}),L=dD([o.edges,()=>o.edges.value.length],([G])=>{var j;(j=n.edges)!=null&&j.value&&Array.isArray(n.edges.value)&&(M==null||M.pause(),n.edges.value=[...G],RS(()=>{M==null||M.resume()}))},{immediate:H}),qK(()=>{M==null||M.stop(),L==null||L.stop()})})},w=()=>{l.run(()=>{Zs(()=>r.maxZoom,()=>{r.maxZoom&&Gd(r.maxZoom)&&o.setMaxZoom(r.maxZoom)},{immediate:!0})})},v=()=>{l.run(()=>{Zs(()=>r.minZoom,()=>{r.minZoom&&Gd(r.minZoom)&&o.setMinZoom(r.minZoom)},{immediate:!0})})},y=()=>{l.run(()=>{Zs(()=>r.translateExtent,()=>{r.translateExtent&&Gd(r.translateExtent)&&o.setTranslateExtent(r.translateExtent)},{immediate:!0})})},E=()=>{l.run(()=>{Zs(()=>r.nodeExtent,()=>{r.nodeExtent&&Gd(r.nodeExtent)&&o.setNodeExtent(r.nodeExtent)},{immediate:!0})})},A=()=>{l.run(()=>{Zs(()=>r.applyDefault,()=>{Gd(r.applyDefault)&&(o.applyDefault.value=r.applyDefault)},{immediate:!0})})},C=()=>{l.run(()=>{const M=async L=>{let H=L;typeof r.autoConnect=="function"&&(H=await r.autoConnect(L)),H!==!1&&o.addEdges([H])};Zs(()=>r.autoConnect,()=>{Gd(r.autoConnect)&&(o.autoConnect.value=r.autoConnect)},{immediate:!0}),Zs(o.autoConnect,(L,H,G)=>{L?o.onConnect(M):o.hooks.value.connect.off(M),G(()=>{o.hooks.value.connect.off(M)})},{immediate:!0})})},R=()=>{const M=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const L of Object.keys(r)){const H=L;if(!M.includes(H)){const G=bf(()=>r[H]),j=o[H];_d(j)&&l.run(()=>{Zs(G,Q=>{Gd(Q)&&(j.value=Q)},{immediate:!0})})}}};(()=>{u(),d(),h(),v(),w(),y(),E(),A(),C(),R()})()}),()=>l.stop()}function TDr(){return{edgesChange:ci(),nodesChange:ci(),nodeDoubleClick:ci(),nodeClick:ci(),nodeMouseEnter:ci(),nodeMouseMove:ci(),nodeMouseLeave:ci(),nodeContextMenu:ci(),nodeDragStart:ci(),nodeDrag:ci(),nodeDragStop:ci(),nodesInitialized:ci(),miniMapNodeClick:ci(),miniMapNodeDoubleClick:ci(),miniMapNodeMouseEnter:ci(),miniMapNodeMouseMove:ci(),miniMapNodeMouseLeave:ci(),connect:ci(),connectStart:ci(),connectEnd:ci(),clickConnectStart:ci(),clickConnectEnd:ci(),paneReady:ci(),init:ci(),move:ci(),moveStart:ci(),moveEnd:ci(),selectionDragStart:ci(),selectionDrag:ci(),selectionDragStop:ci(),selectionContextMenu:ci(),selectionStart:ci(),selectionEnd:ci(),viewportChangeStart:ci(),viewportChange:ci(),viewportChangeEnd:ci(),paneScroll:ci(),paneClick:ci(),paneContextMenu:ci(),paneMouseEnter:ci(),paneMouseMove:ci(),paneMouseLeave:ci(),edgeContextMenu:ci(),edgeMouseEnter:ci(),edgeMouseMove:ci(),edgeMouseLeave:ci(),edgeDoubleClick:ci(),edgeClick:ci(),edgeUpdateStart:ci(),edgeUpdate:ci(),edgeUpdateEnd:ci(),updateNodeInternals:ci(),error:ci(n=>g1e(n.message))}}function $Dr(n,r){tQt(()=>{for(const[o,l]of Object.entries(r.value)){const u=d=>{n(o,d)};l.fns.add(u),c1e(()=>{l.off(u)})}})}function Gdn(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:RVe.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:Pq.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:F8.Bezier,style:{}},connectionMode:FP.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:Number.NaN,y:Number.NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:Bhe()?"Meta":"Control",zoomActivationKeyCode:Bhe()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:TDr(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}const IDr=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function PDr(n,r,o){const l=CDr(n),u=$=>{const B=$??[];n.hooks.updateNodeInternals.trigger(B)},d=$=>eDr($,n.nodes,n.edges),h=$=>Z9r($,n.nodes,n.edges),w=$=>Idn($,n.edges),v=({id:$,type:B,nodeId:K})=>{var q;return Array.from(((q=n.connectionLookup.get(`${K}-${B}-${$??null}`))==null?void 0:q.values())??[])},y=$=>{if($)return r.value.get($)},E=$=>{if($)return o.value.get($)},A=($,B,K)=>{var q,ke;const Re=[];for(const Ie of $){const St={id:Ie.id,type:"position",dragging:K,from:Ie.from};if(B&&(St.position=Ie.position,Ie.parentNode)){const he=y(Ie.parentNode);St.position={x:St.position.x-(((q=he==null?void 0:he.computedPosition)==null?void 0:q.x)??0),y:St.position.y-(((ke=he==null?void 0:he.computedPosition)==null?void 0:ke.y)??0)}}Re.push(St)}Re!=null&&Re.length&&n.hooks.nodesChange.trigger(Re)},C=$=>{if(!n.vueFlowRef)return;const B=n.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!B)return;const K=window.getComputedStyle(B),{m22:q}=new window.DOMMatrixReadOnly(K.transform),ke=[];for(let Re=0;Re<$.length;++Re){const Ie=$[Re],St=y(Ie.id);if(St){const he=p1e(Ie.nodeElement);if(!!(he.width&&he.height&&(St.dimensions.width!==he.width||St.dimensions.height!==he.height||Ie.forceUpdate))){const Qt=Ie.nodeElement.getBoundingClientRect();St.dimensions=he,St.handleBounds.source=$Jt(".source",Ie.nodeElement,Qt,q),St.handleBounds.target=$Jt(".target",Ie.nodeElement,Qt,q),ke.push({id:St.id,type:"dimensions",dimensions:he})}}}!n.fitViewOnInitDone&&n.fitViewOnInit&&l.value.fitView().then(()=>{n.fitViewOnInitDone=!0}),ke.length&&n.hooks.nodesChange.trigger(ke)},R=($,B)=>{const K=new Set,q=new Set;for(const Ie of $)wP(Ie)?K.add(Ie.id):$T(Ie)&&q.add(Ie.id);const ke=iT(r.value,K,!0),Re=iT(o.value,q);if(n.multiSelectionActive){for(const Ie of K)ke.push(W4(Ie,B));for(const Ie of q)Re.push(W4(Ie,B))}ke.length&&n.hooks.nodesChange.trigger(ke),Re.length&&n.hooks.edgesChange.trigger(Re)},O=$=>{if(n.multiSelectionActive){const B=$.map(K=>W4(K.id,!0));n.hooks.nodesChange.trigger(B);return}n.hooks.nodesChange.trigger(iT(r.value,new Set($.map(B=>B.id)),!0)),n.hooks.edgesChange.trigger(iT(o.value))},M=$=>{if(n.multiSelectionActive){const B=$.map(K=>W4(K.id,!0));n.hooks.edgesChange.trigger(B);return}n.hooks.edgesChange.trigger(iT(o.value,new Set($.map(B=>B.id)))),n.hooks.nodesChange.trigger(iT(r.value,new Set,!0))},L=$=>{R($,!0)},H=$=>{const K=($||n.nodes).map(q=>(q.selected=!1,W4(q.id,!1)));n.hooks.nodesChange.trigger(K)},G=$=>{const K=($||n.edges).map(q=>(q.selected=!1,W4(q.id,!1)));n.hooks.edgesChange.trigger(K)},j=$=>{if(!$||!$.length)return R([],!1);const B=$.reduce((K,q)=>{const ke=W4(q.id,!1);return wP(q)?K.nodes.push(ke):K.edges.push(ke),K},{nodes:[],edges:[]});B.nodes.length&&n.hooks.nodesChange.trigger(B.nodes),B.edges.length&&n.hooks.edgesChange.trigger(B.edges)},Q=$=>{var B;(B=n.d3Zoom)==null||B.scaleExtent([$,n.maxZoom]),n.minZoom=$},te=$=>{var B;(B=n.d3Zoom)==null||B.scaleExtent([n.minZoom,$]),n.maxZoom=$},pe=$=>{var B;(B=n.d3Zoom)==null||B.translateExtent($),n.translateExtent=$},Le=$=>{n.nodeExtent=$,u()},Ee=$=>{var B;(B=n.d3Zoom)==null||B.clickDistance($)},le=$=>{n.nodesDraggable=$,n.nodesConnectable=$,n.elementsSelectable=$},xe=$=>{const B=$ instanceof Function?$(n.nodes):$;!n.initialized&&!B.length||(n.nodes=IJt(B,y,n.hooks.error.trigger))},be=$=>{const B=$ instanceof Function?$(n.edges):$;if(!n.initialized&&!B.length)return;const K=OJt(B,n.isValidConnection,y,E,n.hooks.error.trigger,n.defaultEdgeOptions,n.nodes,n.edges);PJt(n.connectionLookup,K),n.edges=K},ae=$=>{const B=$ instanceof Function?$([...n.nodes,...n.edges]):$;!n.initialized&&!B.length||(xe(B.filter(wP)),be(B.filter($T)))},F=$=>{let B=$ instanceof Function?$(n.nodes):$;B=Array.isArray(B)?B:[B];const K=IJt(B,y,n.hooks.error.trigger),q=[];for(const ke of K)q.push(SJt(ke));q.length&&n.hooks.nodesChange.trigger(q)},me=$=>{let B=$ instanceof Function?$(n.edges):$;B=Array.isArray(B)?B:[B];const K=OJt(B,n.isValidConnection,y,E,n.hooks.error.trigger,n.defaultEdgeOptions,n.nodes,n.edges),q=[];for(const ke of K)q.push(SJt(ke));q.length&&n.hooks.edgesChange.trigger(q)},ye=($,B=!0,K=!1)=>{const q=$ instanceof Function?$(n.nodes):$,ke=Array.isArray(q)?q:[q],Re=[],Ie=[];function St(zt){const Qt=w(zt);for(const $n of Qt)(!Gd($n.deletable)||$n.deletable)&&Ie.push(kJt($n.id,$n.source,$n.target,$n.sourceHandle,$n.targetHandle))}function he(zt){const Qt=[];for(const $n of n.nodes)$n.parentNode===zt&&Qt.push($n);if(Qt.length){for(const $n of Qt)Re.push(EJt($n.id));B&&St(Qt);for(const $n of Qt)he($n.id)}}for(const zt of ke){const Qt=typeof zt=="string"?y(zt):zt;Qt&&(Gd(Qt.deletable)&&!Qt.deletable||(Re.push(EJt(Qt.id)),B&&St([Qt]),K&&he(Qt.id)))}Ie.length&&n.hooks.edgesChange.trigger(Ie),Re.length&&n.hooks.nodesChange.trigger(Re)},we=$=>{const B=$ instanceof Function?$(n.edges):$,K=Array.isArray(B)?B:[B],q=[];for(const ke of K){const Re=typeof ke=="string"?E(ke):ke;Re&&(Gd(Re.deletable)&&!Re.deletable||q.push(kJt(typeof ke=="string"?ke:ke.id,Re.source,Re.target,Re.sourceHandle,Re.targetHandle)))}n.hooks.edgesChange.trigger(q)},Be=($,B,K=!0)=>wDr($,B,n.edges,E,K,n.hooks.error.trigger),He=($,B,K={replace:!1})=>{const q=E($);if(!q)return;const ke=typeof B=="function"?B(q):B;q.data=K.replace?ke:{...q.data,...ke}},Ue=$=>_Jt($,n.nodes),Ge=$=>{const B=_Jt($,n.edges);return PJt(n.connectionLookup,B),B},Me=($,B,K={replace:!1})=>{const q=y($);if(!q)return;const ke=typeof B=="function"?B(q):B;K.replace?n.nodes.splice(n.nodes.indexOf(q),1,ke):Object.assign(q,ke)},vt=($,B,K={replace:!1})=>{const q=y($);if(!q)return;const ke=typeof B=="function"?B(q):B;q.data=K.replace?ke:{...q.data,...ke}},re=($,B,K=!1)=>{K?n.connectionClickStartHandle=$:n.connectionStartHandle=$,n.connectionEndHandle=null,n.connectionStatus=null,B&&(n.connectionPosition=B)},Te=($,B=null,K=null)=>{n.connectionStartHandle&&(n.connectionPosition=$,n.connectionEndHandle=B,n.connectionStatus=K)},ct=($,B)=>{n.connectionPosition={x:Number.NaN,y:Number.NaN},n.connectionEndHandle=null,n.connectionStatus=null,B?n.connectionClickStartHandle=null:n.connectionStartHandle=null},at=$=>{const B=Y9r($),K=B?null:zK($)?$:y($.id);return!B&&!K?[null,null,B]:[B?$:ZBe(K),K,B]},Ye=($,B=!0,K=n.nodes)=>{const[q,ke,Re]=at($);if(!q)return[];const Ie=[];for(const St of K||n.nodes){if(!Re&&(St.id===ke.id||!St.computedPosition))continue;const he=ZBe(St),zt=eWe(he,q);(B&&zt>0||zt>=Number(q.width)*Number(q.height))&&Ie.push(St)}return Ie},mt=($,B,K=!0)=>{const[q]=at($);if(!q)return!1;const ke=eWe(q,B);return K&&ke>0||ke>=Number(q.width)*Number(q.height)},jt=$=>{const{viewport:B,dimensions:K,d3Zoom:q,d3Selection:ke,translateExtent:Re}=n;if(!q||!ke||!$.x&&!$.y)return!1;const Ie=ZL.translate(B.x+$.x,B.y+$.y).scale(B.zoom),St=[[0,0],[K.width,K.height]],he=q.constrain()(Ie,St,Re),zt=n.viewport.x!==he.x||n.viewport.y!==he.y||n.viewport.zoom!==he.k;return q.transform(ke,he),zt},rn=$=>{const B=$ instanceof Function?$(n):$,K=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];Gd(B.defaultEdgeOptions)&&(n.defaultEdgeOptions=B.defaultEdgeOptions);const q=B.modelValue||B.nodes||B.edges?[]:void 0;q&&(B.modelValue&&q.push(...B.modelValue),B.nodes&&q.push(...B.nodes),B.edges&&q.push(...B.edges),ae(q));const ke=()=>{Gd(B.maxZoom)&&te(B.maxZoom),Gd(B.minZoom)&&Q(B.minZoom),Gd(B.translateExtent)&&pe(B.translateExtent)};for(const Re of Object.keys(B)){const Ie=Re,St=B[Ie];![...IDr,...K].includes(Ie)&&Gd(St)&&(n[Ie]=St)}UBe(()=>n.d3Zoom).not.toBeNull().then(ke),n.initialized||(n.initialized=!0)};return{updateNodePositions:A,updateNodeDimensions:C,setElements:ae,setNodes:xe,setEdges:be,addNodes:F,addEdges:me,removeNodes:ye,removeEdges:we,findNode:y,findEdge:E,updateEdge:Be,updateEdgeData:He,updateNode:Me,updateNodeData:vt,applyEdgeChanges:Ge,applyNodeChanges:Ue,addSelectedElements:L,addSelectedNodes:O,addSelectedEdges:M,setMinZoom:Q,setMaxZoom:te,setTranslateExtent:pe,setNodeExtent:Le,setPaneClickDistance:Ee,removeSelectedElements:j,removeSelectedNodes:H,removeSelectedEdges:G,startConnection:re,updateConnection:Te,endConnection:ct,setInteractive:le,setState:rn,getIntersectingNodes:Ye,getIncomers:d,getOutgoers:h,getConnectedEdges:w,getHandleConnections:v,isNodeIntersecting:mt,panBy:jt,fitView:$=>l.value.fitView($),zoomIn:$=>l.value.zoomIn($),zoomOut:$=>l.value.zoomOut($),zoomTo:($,B)=>l.value.zoomTo($,B),setViewport:($,B)=>l.value.setViewport($,B),setTransform:($,B)=>l.value.setTransform($,B),getViewport:()=>l.value.getViewport(),getTransform:()=>l.value.getTransform(),setCenter:($,B,K)=>l.value.setCenter($,B,K),fitBounds:($,B)=>l.value.fitBounds($,B),project:$=>l.value.project($),screenToFlowCoordinate:$=>l.value.screenToFlowCoordinate($),flowToScreenCoordinate:$=>l.value.flowToScreenCoordinate($),toObject:()=>{const $=[],B=[];for(const K of n.nodes){const{computedPosition:q,handleBounds:ke,selected:Re,dimensions:Ie,isParent:St,resizing:he,dragging:zt,events:Qt,...$n}=K;$.push($n)}for(const K of n.edges){const{selected:q,sourceNode:ke,targetNode:Re,events:Ie,...St}=K;B.push(St)}return JSON.parse(JSON.stringify({nodes:$,edges:B,position:[n.viewport.x,n.viewport.y],zoom:n.viewport.zoom,viewport:n.viewport}))},fromObject:$=>new Promise(B=>{const{nodes:K,edges:q,position:ke,zoom:Re,viewport:Ie}=$;if(K&&xe(K),q&&be(q),Ie!=null&&Ie.x&&(Ie!=null&&Ie.y)||ke){const St=(Ie==null?void 0:Ie.x)||ke[0],he=(Ie==null?void 0:Ie.y)||ke[1],zt=(Ie==null?void 0:Ie.zoom)||Re||n.viewport.zoom;return UBe(()=>l.value.viewportInitialized).toBe(!0).then(()=>{l.value.setViewport({x:St,y:he,zoom:zt}).then(()=>{B(!0)})})}else B(!0)}),updateNodeInternals:u,viewportHelper:l,$reset:()=>{const $=Gdn();if(n.edges=[],n.nodes=[],n.d3Zoom&&n.d3Selection){const B=ZL.translate($.defaultViewport.x??0,$.defaultViewport.y??0).scale(BP($.defaultViewport.zoom??1,$.minZoom,$.maxZoom)),K=n.viewportRef.getBoundingClientRect(),q=[[0,0],[K.width,K.height]],ke=n.d3Zoom.constrain()(B,q,$.translateExtent);n.d3Zoom.transform(n.d3Selection,ke)}rn($)},$destroy:()=>{}}}const ODr=["data-id","data-handleid","data-nodeid","data-handlepos"],NDr={name:"Handle",compatConfig:{MODE:3}},ej=Ka({...NDr,props:{id:{default:null},type:{},position:{default:()=>$i.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(n,{expose:r}){const o=oQt(n,["position","connectable","connectableStart","connectableEnd","id"]),l=bf(()=>o.type??"source"),u=bf(()=>o.isValidConnection??null),{connectionStartHandle:d,connectionClickStartHandle:h,connectionEndHandle:w,vueFlowRef:v,nodesConnectable:y,noDragClassName:E,noPanClassName:A}=hu(),{id:C,node:R,nodeEl:O,connectedEdges:M}=Hdn(),L=Fo(),H=bf(()=>typeof n.connectableStart<"u"?n.connectableStart:!0),G=bf(()=>typeof n.connectableEnd<"u"?n.connectableEnd:!0),j=bf(()=>{var xe,be,ae,F,me,ye;return((xe=d.value)==null?void 0:xe.nodeId)===C&&((be=d.value)==null?void 0:be.handleId)===n.id&&((ae=d.value)==null?void 0:ae.type)===l.value||((F=w.value)==null?void 0:F.nodeId)===C&&((me=w.value)==null?void 0:me.handleId)===n.id&&((ye=w.value)==null?void 0:ye.type)===l.value}),Q=bf(()=>{var xe,be,ae;return((xe=h.value)==null?void 0:xe.nodeId)===C&&((be=h.value)==null?void 0:be.handleId)===n.id&&((ae=h.value)==null?void 0:ae.type)===l.value}),{handlePointerDown:te,handleClick:pe}=Wdn({nodeId:C,handleId:n.id,isValidConnection:u,type:l}),Le=To(()=>typeof n.connectable=="string"&&n.connectable==="single"?!M.value.some(xe=>{const be=xe[`${l.value}Handle`];return xe[l.value]!==C?!1:be?be===n.id:!0}):typeof n.connectable=="number"?M.value.filter(xe=>{const be=xe[`${l.value}Handle`];return xe[l.value]!==C?!1:be?be===n.id:!0}).length{var xe;if(!R.dimensions.width||!R.dimensions.height)return;const be=(xe=R.handleBounds[l.value])==null?void 0:xe.find(He=>He.id===n.id);if(!v.value||be)return;const ae=v.value.querySelector(".vue-flow__transformationpane");if(!O.value||!L.value||!ae||!n.id)return;const F=O.value.getBoundingClientRect(),me=L.value.getBoundingClientRect(),ye=window.getComputedStyle(ae),{m22:we}=new window.DOMMatrixReadOnly(ye.transform),Be={id:n.id,position:n.position,x:(me.left-F.left)/we,y:(me.top-F.top)/we,...p1e(L.value)};R.handleBounds[l.value]=[...R.handleBounds[l.value]??[],Be]}),Zhe(()=>{const xe=R.handleBounds[l.value];xe&&(R.handleBounds[l.value]=xe.filter(be=>be.id!==n.id))});function Ee(xe){const be=CVe(xe);Le.value&&H.value&&(be&&xe.button===0||!be)&&te(xe)}function le(xe){!C||!h.value&&!H.value||Le.value&&pe(xe)}return r({handleClick:pe,handlePointerDown:te,onClick:le,onPointerDown:Ee}),(xe,be)=>(ze(),Lt("div",{ref_key:"handle",ref:L,"data-id":`${Wr(C)}-${n.id}-${l.value}`,"data-handleid":n.id,"data-nodeid":Wr(C),"data-handlepos":xe.position,class:Lo(["vue-flow__handle",[`vue-flow__handle-${xe.position}`,`vue-flow__handle-${n.id}`,Wr(E),Wr(A),l.value,{connectable:Le.value,connecting:Q.value,connectablestart:H.value,connectableend:G.value,connectionindicator:Le.value&&(H.value&&!j.value||G.value&&j.value)}]]),onMousedown:Ee,onTouchstartPassive:Ee,onClick:le},[Vr(xe.$slots,"default",{id:xe.id})],42,ODr))}}),m1e=function({sourcePosition:n=$i.Bottom,targetPosition:r=$i.Top,label:o,connectable:l=!0,isValidTargetPos:u,isValidSourcePos:d,data:h}){const w=h.label||o;return[sc(ej,{type:"target",position:r,connectable:l,isValidConnection:u}),typeof w!="string"&&w?sc(w):sc(gi,[w]),sc(ej,{type:"source",position:n,connectable:l,isValidConnection:d})]};m1e.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"];m1e.inheritAttrs=!1;m1e.compatConfig={MODE:3};const MDr=m1e,y1e=function({targetPosition:n=$i.Top,label:r,connectable:o=!0,isValidTargetPos:l,data:u}){const d=u.label||r;return[sc(ej,{type:"target",position:n,connectable:o,isValidConnection:l}),typeof d!="string"&&d?sc(d):sc(gi,[d])]};y1e.props=["targetPosition","label","isValidTargetPos","connectable","data"];y1e.inheritAttrs=!1;y1e.compatConfig={MODE:3};const DDr=y1e,v1e=function({sourcePosition:n=$i.Bottom,label:r,connectable:o=!0,isValidSourcePos:l,data:u}){const d=u.label||r;return[typeof d!="string"&&d?sc(d):sc(gi,[d]),sc(ej,{type:"source",position:n,connectable:o,isValidConnection:l})]};v1e.props=["sourcePosition","label","isValidSourcePos","connectable","data"];v1e.inheritAttrs=!1;v1e.compatConfig={MODE:3};const LDr=v1e,jDr=["transform"],FDr=["width","height","x","y","rx","ry"],BDr=["y"],WDr={name:"EdgeText",compatConfig:{MODE:3}},HDr=Ka({...WDr,props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(n){const r=Fo({x:0,y:0,width:0,height:0}),o=Fo(null),l=To(()=>`translate(${n.x-r.value.width/2} ${n.y-r.value.height/2})`);sm(u),Zs([()=>n.x,()=>n.y,o,()=>n.label],u);function u(){if(!o.value)return;const d=o.value.getBBox();(d.width!==r.value.width||d.height!==r.value.height)&&(r.value=d)}return(d,h)=>(ze(),Lt("g",{transform:l.value,class:"vue-flow__edge-textwrapper"},[d.labelShowBg?(ze(),Lt("rect",{key:0,class:"vue-flow__edge-textbg",width:`${r.value.width+2*d.labelBgPadding[0]}px`,height:`${r.value.height+2*d.labelBgPadding[1]}px`,x:-d.labelBgPadding[0],y:-d.labelBgPadding[1],style:Vb(d.labelBgStyle),rx:d.labelBgBorderRadius,ry:d.labelBgBorderRadius},null,12,FDr)):fr("",!0),mr("text",Et(d.$attrs,{ref_key:"el",ref:o,class:"vue-flow__edge-text",y:r.value.height/2,dy:"0.3em",style:d.labelStyle}),[Vr(d.$slots,"default",{},()=>[typeof d.label!="string"?(ze(),Nn(jo(d.label),{key:0})):(ze(),Lt(gi,{key:1},[nm(na(d.label),1)],64))])],16,BDr)],8,jDr))}}),UDr=["id","d","marker-end","marker-start"],GDr=["d","stroke-width"],VDr={name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3}},GJ=Ka({...VDr,props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},style:{},labelStyle:{},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(n,{expose:r}){const o=oQt(n,["interactionWidth","labelShowBg"]),l=Fo(null),u=Fo(null),d=Fo(null),h=zBn();return r({pathEl:l,interactionEl:u,labelEl:d}),(w,v)=>(ze(),Lt(gi,null,[mr("path",{id:w.id,ref_key:"pathEl",ref:l,d:w.path,style:Vb(o.style),class:Lo(["vue-flow__edge-path",Wr(h).class]),"marker-end":w.markerEnd,"marker-start":w.markerStart},null,14,UDr),w.interactionWidth?(ze(),Lt("path",{key:0,ref_key:"interactionEl",ref:u,fill:"none",d:w.path,"stroke-width":w.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,GDr)):fr("",!0),w.label&&w.labelX&&w.labelY?(ze(),Nn(HDr,{key:1,ref_key:"labelEl",ref:d,x:w.labelX,y:w.labelY,label:w.label,"label-show-bg":w.labelShowBg,"label-bg-style":w.labelBgStyle,"label-bg-padding":w.labelBgPadding,"label-bg-border-radius":w.labelBgBorderRadius,"label-style":w.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):fr("",!0)],64))}});function Vdn({sourceX:n,sourceY:r,targetX:o,targetY:l}){const u=Math.abs(o-n)/2,d=o=0?.5*n:r*25*Math.sqrt(-n)}function MJt({pos:n,x1:r,y1:o,x2:l,y2:u,c:d}){let h,w;switch(n){case $i.Left:h=r-yfe(r-l,d),w=o;break;case $i.Right:h=r+yfe(l-r,d),w=o;break;case $i.Top:h=r,w=o-yfe(o-u,d);break;case $i.Bottom:h=r,w=o+yfe(u-o,d);break}return[h,w]}function TVe(n){const{sourceX:r,sourceY:o,sourcePosition:l=$i.Bottom,targetX:u,targetY:d,targetPosition:h=$i.Top,curvature:w=.25}=n,[v,y]=MJt({pos:l,x1:r,y1:o,x2:u,y2:d,c:w}),[E,A]=MJt({pos:h,x1:u,y1:d,x2:r,y2:o,c:w}),[C,R,O,M]=zdn({sourceX:r,sourceY:o,targetX:u,targetY:d,sourceControlX:v,sourceControlY:y,targetControlX:E,targetControlY:A});return[`M${r},${o} C${v},${y} ${E},${A} ${u},${d}`,C,R,O,M]}function DJt({pos:n,x1:r,y1:o,x2:l,y2:u}){let d,h;switch(n){case $i.Left:case $i.Right:d=.5*(r+l),h=o;break;case $i.Top:case $i.Bottom:d=r,h=.5*(o+u);break}return[d,h]}function Kdn(n){const{sourceX:r,sourceY:o,sourcePosition:l=$i.Bottom,targetX:u,targetY:d,targetPosition:h=$i.Top}=n,[w,v]=DJt({pos:l,x1:r,y1:o,x2:u,y2:d}),[y,E]=DJt({pos:h,x1:u,y1:d,x2:r,y2:o}),[A,C,R,O]=zdn({sourceX:r,sourceY:o,targetX:u,targetY:d,sourceControlX:w,sourceControlY:v,targetControlX:y,targetControlY:E});return[`M${r},${o} C${w},${v} ${y},${E} ${u},${d}`,A,C,R,O]}const LJt={[$i.Left]:{x:-1,y:0},[$i.Right]:{x:1,y:0},[$i.Top]:{x:0,y:-1},[$i.Bottom]:{x:0,y:1}};function zDr({source:n,sourcePosition:r=$i.Bottom,target:o}){return r===$i.Left||r===$i.Right?n.xn[A]?-1:1)*me:H[A]=(y[A]>o[A]?-1:1)*me}}if(r!==l){const F=A==="x"?"y":"x",me=h[A]===w[F],ye=v[F]>y[F],we=v[F]=ae?(O=(le.x+xe.x)/2,M=R[0].y):(O=R[0].x,M=(le.y+xe.y)/2)}return[[n,{x:v.x+L.x,y:v.y+L.y},...R,{x:y.x+H.x,y:y.y+H.y},o],O,M,Q,te]}function qDr(n,r,o,l){const u=Math.min(jJt(n,r)/2,jJt(r,o)/2,l),{x:d,y:h}=r;if(n.x===d&&d===o.x||n.y===h&&h===o.y)return`L${d} ${h}`;if(n.y===h){const y=n.x{let Q;return j>0&&j{const[o,l,u]=XDr(n);return sc(GJ,{path:o,labelX:l,labelY:u,...r,...n})}}}),YDr=JDr,QDr=Ka({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(n,{attrs:r}){return()=>{const[o,l,u]=nWe({...n,sourcePosition:n.sourcePosition??$i.Bottom,targetPosition:n.targetPosition??$i.Top});return sc(GJ,{path:o,labelX:l,labelY:u,...r,...n})}}}),qdn=QDr,ZDr=Ka({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(n,{attrs:r}){return()=>sc(qdn,{...n,...r,borderRadius:0})}}),eLr=ZDr,tLr=Ka({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(n,{attrs:r}){return()=>{const[o,l,u]=TVe({...n,sourcePosition:n.sourcePosition??$i.Bottom,targetPosition:n.targetPosition??$i.Top});return sc(GJ,{path:o,labelX:l,labelY:u,...r,...n})}}}),nLr=tLr,rLr=Ka({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(n,{attrs:r}){return()=>{const[o,l,u]=Kdn({...n,sourcePosition:n.sourcePosition??$i.Bottom,targetPosition:n.targetPosition??$i.Top});return sc(GJ,{path:o,labelX:l,labelY:u,...r,...n})}}}),iLr=rLr,oLr={input:LDr,default:MDr,output:DDr},sLr={default:nLr,straight:YDr,step:eLr,smoothstep:qdn,simplebezier:iLr};function lLr(n,r,o){const l=To(()=>M=>r.value.get(M)),u=To(()=>M=>o.value.get(M)),d=To(()=>{const M={...sLr,...n.edgeTypes},L=Object.keys(M);for(const H of n.edges)H.type&&!L.includes(H.type)&&(M[H.type]=H.type);return M}),h=To(()=>{const M={...oLr,...n.nodeTypes},L=Object.keys(M);for(const H of n.nodes)H.type&&!L.includes(H.type)&&(M[H.type]=H.type);return M}),w=To(()=>n.onlyRenderVisibleElements?$dn(n.nodes,{x:0,y:0,width:n.dimensions.width,height:n.dimensions.height},n.viewport,!0):n.nodes),v=To(()=>{if(n.onlyRenderVisibleElements){const M=[];for(const L of n.edges){const H=r.value.get(L.source),G=r.value.get(L.target);cDr({sourcePos:H.computedPosition||{x:0,y:0},targetPos:G.computedPosition||{x:0,y:0},sourceWidth:H.dimensions.width,sourceHeight:H.dimensions.height,targetWidth:G.dimensions.width,targetHeight:G.dimensions.height,width:n.dimensions.width,height:n.dimensions.height,viewport:n.viewport})&&M.push(L)}return M}return n.edges}),y=To(()=>[...w.value,...v.value]),E=To(()=>{const M=[];for(const L of n.nodes)L.selected&&M.push(L);return M}),A=To(()=>{const M=[];for(const L of n.edges)L.selected&&M.push(L);return M}),C=To(()=>[...E.value,...A.value]),R=To(()=>{const M=[];for(const L of n.nodes)L.dimensions.width&&L.dimensions.height&&L.handleBounds!==void 0&&M.push(L);return M}),O=To(()=>w.value.length>0&&R.value.length===w.value.length);return{getNode:l,getEdge:u,getElements:y,getEdgeTypes:d,getNodeTypes:h,getEdges:v,getNodes:w,getSelectedElements:C,getSelectedNodes:E,getSelectedEdges:A,getNodesInitialized:R,areNodesInitialized:O}}class B8{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var r;const o=(r=NT())==null?void 0:r.appContext.app,l=(o==null?void 0:o.config.globalProperties.$vueFlowStorage)??B8.instance;return B8.instance=l??new B8,o&&(o.config.globalProperties.$vueFlowStorage=B8.instance),B8.instance}set(r,o){return this.flows.set(r,o)}get(r){return this.flows.get(r)}remove(r){return this.flows.delete(r)}create(r,o){const l=Gdn(),u=mP(l),d={};for(const[C,R]of Object.entries(u.hooks)){const O=`on${C.charAt(0).toUpperCase()+C.slice(1)}`;d[O]=R.on}const h={};for(const[C,R]of Object.entries(u.hooks))h[C]=R.trigger;const w=To(()=>{const C=new Map;for(const R of u.nodes)C.set(R.id,R);return C}),v=To(()=>{const C=new Map;for(const R of u.edges)C.set(R.id,R);return C}),y=lLr(u,w,v),E=PDr(u,w,v);E.setState({...u,...o});const A={...d,...y,...E,...f7r(u),nodeLookup:w,edgeLookup:v,emits:h,id:r,vueFlowVersion:"1.41.5",$destroy:()=>{this.remove(r)}};return this.set(r,A),A}getId(){return`vue-flow-${this.currentId++}`}}function hu(n){const r=B8.getInstance(),o=zhe(),l=typeof n=="object",u=l?n:{id:n},d=u.id,h=d??(o==null?void 0:o.vueFlowId);let w;if(o){const v=BE(NJt,null);typeof v<"u"&&v!==null&&(!h||v.id===h)&&(w=v)}if(w||h&&(w=r.get(h)),!w||h&&w.id!==h){const v=d??r.getId(),y=r.create(v,u);w=y,(o??SYt(!0)).run(()=>{Zs(y.applyDefault,(A,C,R)=>{const O=L=>{y.applyNodeChanges(L)},M=L=>{y.applyEdgeChanges(L)};A?(y.onNodesChange(O),y.onEdgesChange(M)):(y.hooks.value.nodesChange.off(O),y.hooks.value.edgesChange.off(M)),R(()=>{y.hooks.value.nodesChange.off(O),y.hooks.value.edgesChange.off(M)})},{immediate:!0}),c1e(()=>{if(w){const A=r.get(w.id);A?A.$destroy():g1e(`No store instance found for id ${w.id} in storage.`)}})})}else l&&w.setState(u);if(o&&(vP(NJt,w),o.vueFlowId=w.id),l){const v=NT();(v==null?void 0:v.type.name)!=="VueFlow"&&w.emits.error(new Ch(Vd.USEVUEFLOW_OPTIONS))}return w}function aLr(n){const{emits:r,dimensions:o}=hu();let l;sm(()=>{const u=n.value,d=()=>{if(!u)return;const h=p1e(u);(h.width===0||h.height===0)&&r.error(new Ch(Vd.MISSING_VIEWPORT_DIMENSIONS)),o.value={width:h.width||500,height:h.height||500}};d(),window.addEventListener("resize",d),u&&(l=new ResizeObserver(()=>d()),l.observe(u)),Qhe(()=>{window.removeEventListener("resize",d),l&&u&&l.unobserve(u)})})}const cLr={name:"UserSelection",compatConfig:{MODE:3}},uLr=Ka({...cLr,props:{userSelectionRect:{}},setup(n){return(r,o)=>(ze(),Lt("div",{class:"vue-flow__selection vue-flow__container",style:Vb({width:`${r.userSelectionRect.width}px`,height:`${r.userSelectionRect.height}px`,transform:`translate(${r.userSelectionRect.x}px, ${r.userSelectionRect.y}px)`})},null,4))}}),fLr=["tabIndex"],dLr={name:"NodesSelection",compatConfig:{MODE:3}},hLr=Ka({...dLr,setup(n){const{emits:r,viewport:o,getSelectedNodes:l,noPanClassName:u,disableKeyboardA11y:d,userSelectionActive:h}=hu(),w=Udn(),v=Fo(null),y=Bdn({el:v,onStart(O){r.selectionDragStart(O)},onDrag(O){r.selectionDrag(O)},onStop(O){r.selectionDragStop(O)}});sm(()=>{var O;d.value||(O=v.value)==null||O.focus({preventScroll:!0})});const E=To(()=>Tdn(l.value)),A=To(()=>({width:`${E.value.width}px`,height:`${E.value.height}px`,top:`${E.value.y}px`,left:`${E.value.x}px`}));function C(O){r.selectionContextMenu({event:O,nodes:l.value})}function R(O){d||_L[O.key]&&w({x:_L[O.key].x,y:_L[O.key].y},O.shiftKey)}return(O,M)=>!Wr(h)&&E.value.width&&E.value.height?(ze(),Lt("div",{key:0,class:Lo(["vue-flow__nodesselection vue-flow__container",Wr(u)]),style:Vb({transform:`translate(${Wr(o).x}px,${Wr(o).y}px) scale(${Wr(o).zoom})`})},[mr("div",{ref_key:"el",ref:v,class:Lo([{dragging:Wr(y)},"vue-flow__nodesselection-rect"]),style:Vb(A.value),tabIndex:Wr(d)?void 0:-1,onContextmenu:C,onKeydown:R},null,46,fLr)],6)):fr("",!0)}});function pLr(n,r){return{x:n.clientX-r.left,y:n.clientY-r.top}}const bLr={name:"Pane",compatConfig:{MODE:3}},gLr=Ka({...bLr,props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(n){const{vueFlowRef:r,nodes:o,viewport:l,emits:u,userSelectionActive:d,removeSelectedElements:h,panOnDrag:w,userSelectionRect:v,elementsSelectable:y,nodesSelectionActive:E,getSelectedEdges:A,getSelectedNodes:C,removeNodes:R,removeEdges:O,selectionMode:M,deleteKeyCode:L,multiSelectionKeyCode:H,multiSelectionActive:G,edgeLookup:j,nodeLookup:Q}=hu(),te=Fo(null),pe=Fo(0),Le=Fo(0),Ee=Fo(),le=Fo(new Map),xe=bf(()=>y.value&&(n.isSelecting||d.value));let be=!1,ae=!1;const F=Oq(L,{actInsideInputWithModifier:!1}),me=Oq(H);Zs(F,re=>{re&&(R(C.value),O(A.value),E.value=!1)}),Zs(me,re=>{G.value=re});function ye(re,Te){return ct=>{ct.target===Te&&(re==null||re(ct))}}function we(){d.value=!1,v.value=null,pe.value=0,Le.value=0}function Be(re){if(be){be=!1;return}u.paneClick(re),h(),E.value=!1}function He(re){var Te;if(Array.isArray(w.value)&&((Te=w.value)!=null&&Te.includes(2))){re.preventDefault();return}u.paneContextMenu(re)}function Ue(re){u.paneScroll(re)}function Ge(re){var Te,ct,at,Ye,mt;if(Ee.value=(Te=r.value)==null?void 0:Te.getBoundingClientRect(),!y.value||!n.isSelecting||re.button!==0||re.target!==te.value||!Ee.value)return;(at=(ct=re.target)==null?void 0:ct.setPointerCapture)==null||at.call(ct,re.pointerId);const{x:jt,y:rn}=pLr(re,Ee.value);ae=!0,be=!1,le.value=new Map;for(const[Pe,Oe]of j.value)le.value.set(Oe.source,((Ye=le.value.get(Oe.source))==null?void 0:Ye.add(Pe))||new Set([Pe])),le.value.set(Oe.target,((mt=le.value.get(Oe.target))==null?void 0:mt.add(Pe))||new Set([Pe]));h(),v.value={width:0,height:0,startX:jt,startY:rn,x:jt,y:rn},u.selectionStart(re)}function Me(re){if(!Ee.value||!v.value)return;be=!0;const{x:Te,y:ct}=zR(re,Ee.value),{startX:at=0,startY:Ye=0}=v.value,mt={startX:at,startY:Ye,x:Te0&&(E.value=!0),we(),u.selectionEnd(re),n.selectionKeyPressed&&(be=!1),ae=!1)}return(re,Te)=>(ze(),Lt("div",{ref_key:"container",ref:te,class:Lo(["vue-flow__pane vue-flow__container",{selection:re.isSelecting}]),onClick:Te[0]||(Te[0]=ct=>xe.value?void 0:ye(Be,te.value)(ct)),onContextmenu:Te[1]||(Te[1]=ct=>ye(He,te.value)(ct)),onWheelPassive:Te[2]||(Te[2]=ct=>ye(Ue,te.value)(ct)),onPointerenter:Te[3]||(Te[3]=ct=>xe.value?void 0:Wr(u).paneMouseEnter(ct)),onPointerdown:Te[4]||(Te[4]=ct=>xe.value?Ge(ct):Wr(u).paneMouseMove(ct)),onPointermove:Te[5]||(Te[5]=ct=>xe.value?Me(ct):Wr(u).paneMouseMove(ct)),onPointerup:Te[6]||(Te[6]=ct=>xe.value?vt(ct):void 0),onPointerleave:Te[7]||(Te[7]=ct=>Wr(u).paneMouseLeave(ct))},[Vr(re.$slots,"default"),Wr(d)&&Wr(v)?(ze(),Nn(uLr,{key:0,"user-selection-rect":Wr(v)},null,8,["user-selection-rect"])):fr("",!0),Wr(E)&&Wr(C).length?(ze(),Nn(hLr,{key:1})):fr("",!0)],34))}}),wLr={name:"Transform",compatConfig:{MODE:3}},mLr=Ka({...wLr,setup(n){const{viewport:r,fitViewOnInit:o,fitViewOnInitDone:l}=hu(),u=To(()=>o.value?!l.value:!1),d=To(()=>`translate(${r.value.x}px,${r.value.y}px) scale(${r.value.zoom})`);return(h,w)=>(ze(),Lt("div",{class:"vue-flow__transformationpane vue-flow__container",style:Vb({transform:d.value,opacity:u.value?0:void 0})},[Vr(h.$slots,"default")],4))}}),yLr={name:"Viewport",compatConfig:{MODE:3}},vLr=Ka({...yLr,setup(n){const{minZoom:r,maxZoom:o,defaultViewport:l,translateExtent:u,zoomActivationKeyCode:d,selectionKeyCode:h,panActivationKeyCode:w,panOnScroll:v,panOnScrollMode:y,panOnScrollSpeed:E,panOnDrag:A,zoomOnDoubleClick:C,zoomOnPinch:R,zoomOnScroll:O,preventScrolling:M,noWheelClassName:L,noPanClassName:H,emits:G,connectionStartHandle:j,userSelectionActive:Q,paneDragging:te,d3Zoom:pe,d3Selection:Le,d3ZoomHandler:Ee,viewport:le,viewportRef:xe,paneClickDistance:be}=hu();aLr(xe);const ae=Fo(!1),F=Fo(!1);let me=null,ye=!1,we=0,Be={x:0,y:0,zoom:0};const He=Oq(w),Ue=Oq(h),Ge=Oq(d),Me=bf(()=>(!Ue.value||Ue.value&&h.value===!0)&&(He.value||A.value)),vt=bf(()=>He.value||v.value),re=bf(()=>Ue.value||h.value===!0&&Me.value!==!0);sm(()=>{if(!xe.value){g1e("Viewport element is missing");return}const jt=xe.value,rn=jt.getBoundingClientRect(),Pe=z9r().clickDistance(be.value).scaleExtent([r.value,o.value]).translateExtent(u.value),Oe=yS(jt).call(Pe),T=Oe.on("wheel.zoom"),$=ZL.translate(l.value.x??0,l.value.y??0).scale(BP(l.value.zoom??1,r.value,o.value)),B=[[0,0],[rn.width,rn.height]],K=Pe.constrain()($,B,u.value);Pe.transform(Oe,K),Pe.wheelDelta(ct),pe.value=Pe,Le.value=Oe,Ee.value=T,le.value={x:K.x,y:K.y,zoom:K.k},Pe.on("start",q=>{var ke;if(!q.sourceEvent)return null;we=q.sourceEvent.button,ae.value=!0;const Re=Ye(q.transform);((ke=q.sourceEvent)==null?void 0:ke.type)==="mousedown"&&(te.value=!0),Be=Re,G.viewportChangeStart(Re),G.moveStart({event:q,flowTransform:Re})}),Pe.on("end",q=>{if(!q.sourceEvent)return null;if(ae.value=!1,te.value=!1,Te(Me.value,we??0)&&!ye&&G.paneContextMenu(q.sourceEvent),ye=!1,at(Be,q.transform)){const ke=Ye(q.transform);Be=ke,G.viewportChangeEnd(ke),G.moveEnd({event:q,flowTransform:ke})}}),Pe.filter(q=>{var ke,Re,Ie;const St=Ge.value||O.value,he=R.value&&q.ctrlKey,zt=q.button;if((Me.value===!0||Array.isArray(Me.value)&&Me.value.includes(1))&&zt===1&&q.type==="mousedown"&&((ke=q.target)!=null&&ke.closest(".vue-flow__node")||(Re=q.target)!=null&&Re.closest(".vue-flow__edge")))return!0;if(!Me.value&&!St&&!vt.value&&!C.value&&!R.value||Q.value||!C.value&&q.type==="dblclick"||mt(q,L.value)&&q.type==="wheel"||mt(q,H.value)&&(q.type!=="wheel"||vt.value&&q.type==="wheel"&&!Ge.value)||!R.value&&q.ctrlKey&&q.type==="wheel"||!St&&!vt.value&&!he&&q.type==="wheel")return!1;if(!R&&q.type==="touchstart"&&((Ie=q.touches)==null?void 0:Ie.length)>1)return q.preventDefault(),!1;if(!Me.value&&(q.type==="mousedown"||q.type==="touchstart")||h.value===!0&&Array.isArray(A.value)&&A.value.includes(0)&&zt===0||Array.isArray(Me.value)&&!Me.value.includes(zt)&&(q.type==="mousedown"||q.type==="touchstart"))return!1;const Qt=Array.isArray(Me.value)&&Me.value.includes(zt)||h.value===!0&&Array.isArray(Me.value)&&!Me.value.includes(0)||!zt||zt<=1;return(!q.ctrlKey||q.type==="wheel")&&Qt}),Zs([Q,Me],()=>{Q.value&&!ae.value?Pe.on("zoom",null):Q.value||Pe.on("zoom",q=>{le.value={x:q.transform.x,y:q.transform.y,zoom:q.transform.k};const ke=Ye(q.transform);ye=Te(Me.value,we??0),G.viewportChange(ke),G.move({event:q,flowTransform:ke})})},{immediate:!0}),Zs([Q,vt,y,Ge,R,M,L],()=>{vt.value&&!Ge.value&&!Q.value?Oe.on("wheel.zoom",q=>{if(mt(q,L.value))return!1;const ke=Ge.value||O.value,Re=R.value&&q.ctrlKey;if(!(!M.value||vt.value||ke||Re))return!1;q.preventDefault(),q.stopImmediatePropagation();const St=Oe.property("__zoom").k||1,he=Bhe();if(q.ctrlKey&&R.value&&he){const $e=OE(q),ce=ct(q),de=St*2**ce;Pe.scaleTo(Oe,de,$e,q);return}const zt=q.deltaMode===1?20:1;let Qt=y.value===Pq.Vertical?0:q.deltaX*zt,$n=y.value===Pq.Horizontal?0:q.deltaY*zt;!he&&q.shiftKey&&y.value!==Pq.Vertical&&!Qt&&$n&&(Qt=$n,$n=0),Pe.translateBy(Oe,-(Qt/St)*E.value,-($n/St)*E.value);const Gn=Ye(Oe.property("__zoom"));me&&clearTimeout(me),F.value?(G.move({event:q,flowTransform:Gn}),G.viewportChange(Gn),me=setTimeout(()=>{G.moveEnd({event:q,flowTransform:Gn}),G.viewportChangeEnd(Gn),F.value=!1},150)):(F.value=!0,G.moveStart({event:q,flowTransform:Gn}),G.viewportChangeStart(Gn))},{passive:!1}):typeof T<"u"&&Oe.on("wheel.zoom",function(q,ke){const Re=!M.value&&q.type==="wheel"&&!q.ctrlKey,Ie=Ge.value||O.value,St=R.value&&q.ctrlKey;if(!Ie&&!v.value&&!St&&q.type==="wheel"||Re||mt(q,L.value))return null;q.preventDefault(),T.call(this,q,ke)},{passive:!1})},{immediate:!0})});function Te(jt,rn){return rn===2&&Array.isArray(jt)&&jt.includes(2)}function ct(jt){const rn=jt.ctrlKey&&Bhe()?10:1;return-jt.deltaY*(jt.deltaMode===1?.05:jt.deltaMode?1:.002)*rn}function at(jt,rn){return jt.x!==rn.x&&!Number.isNaN(rn.x)||jt.y!==rn.y&&!Number.isNaN(rn.y)||jt.zoom!==rn.k&&!Number.isNaN(rn.k)}function Ye(jt){return{x:jt.x,y:jt.y,zoom:jt.k}}function mt(jt,rn){return jt.target.closest(`.${rn}`)}return(jt,rn)=>(ze(),Lt("div",{ref_key:"viewportRef",ref:xe,class:"vue-flow__viewport vue-flow__container"},[bi(gLr,{"is-selecting":re.value,"selection-key-pressed":Wr(Ue),class:Lo({connecting:!!Wr(j),dragging:Wr(te),draggable:Wr(A)===!0||Array.isArray(Wr(A))&&Wr(A).includes(0)})},{default:vi(()=>[bi(mLr,null,{default:vi(()=>[Vr(jt.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),_Lr=["id"],SLr=["id"],ELr=["id"],kLr={name:"A11yDescriptions",compatConfig:{MODE:3}},RLr=Ka({...kLr,setup(n){const{id:r,disableKeyboardA11y:o,ariaLiveMessage:l}=hu();return(u,d)=>(ze(),Lt(gi,null,[mr("div",{id:`${Wr(vdn)}-${Wr(r)}`,style:{display:"none"}}," Press enter or space to select a node. "+na(Wr(o)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,_Lr),mr("div",{id:`${Wr(_dn)}-${Wr(r)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,SLr),Wr(o)?fr("",!0):(ze(),Lt("div",{key:0,id:`${Wr(J9r)}-${Wr(r)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},na(Wr(l)),9,ELr))],64))}});function xLr(){const n=hu();Zs(()=>n.viewportHelper.value.viewportInitialized,r=>{r&&setTimeout(()=>{n.emits.init(n),n.emits.paneReady(n)},1)})}function CLr(n,r,o){return o===$i.Left?n-r:o===$i.Right?n+r:n}function ALr(n,r,o){return o===$i.Top?n-r:o===$i.Bottom?n+r:n}const $Ve=function({radius:n=10,centerX:r=0,centerY:o=0,position:l=$i.Top,type:u}){return sc("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${u}`,cx:CLr(r,n,l),cy:ALr(o,n,l),r:n,stroke:"transparent",fill:"transparent"})};$Ve.props=["radius","centerX","centerY","position","type"];$Ve.compatConfig={MODE:3};const FJt=$Ve,TLr=Ka({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(n){const{id:r,addSelectedEdges:o,connectionMode:l,edgeUpdaterRadius:u,emits:d,nodesSelectionActive:h,noPanClassName:w,getEdgeTypes:v,removeSelectedEdges:y,findEdge:E,findNode:A,isValidConnection:C,multiSelectionActive:R,disableKeyboardA11y:O,elementsSelectable:M,edgesUpdatable:L,edgesFocusable:H,hooks:G}=hu(),j=To(()=>E(n.id)),{emit:Q,on:te}=_Dr(j.value,d),pe=BE(w1e),Le=NT(),Ee=Fo(!1),le=Fo(!1),xe=Fo(""),be=Fo(null),ae=Fo("source"),F=Fo(null),me=bf(()=>typeof j.value.selectable>"u"?M.value:j.value.selectable),ye=bf(()=>typeof j.value.updatable>"u"?L.value:j.value.updatable),we=bf(()=>typeof j.value.focusable>"u"?H.value:j.value.focusable);vP(mDr,n.id),vP(yDr,F);const Be=To(()=>j.value.class instanceof Function?j.value.class(j.value):j.value.class),He=To(()=>j.value.style instanceof Function?j.value.style(j.value):j.value.style),Ue=To(()=>{const B=j.value.type||"default",K=pe==null?void 0:pe[`edge-${B}`];if(K)return K;let q=j.value.template??v.value[B];if(typeof q=="string"&&Le){const ke=Object.keys(Le.appContext.components);ke&&ke.includes(B)&&(q=Ni(B,!1))}return q&&typeof q!="string"?q:(d.error(new Ch(Vd.EDGE_TYPE_MISSING,q)),!1)}),{handlePointerDown:Ge}=Wdn({nodeId:xe,handleId:be,type:ae,isValidConnection:C,edgeUpdaterType:ae,onEdgeUpdate:re,onEdgeUpdateEnd:Te});return()=>{const B=A(j.value.source),K=A(j.value.target),q="pathOptions"in j.value?j.value.pathOptions:{};if(!B&&!K)return d.error(new Ch(Vd.EDGE_SOURCE_TARGET_MISSING,j.value.id,j.value.source,j.value.target)),null;if(!B)return d.error(new Ch(Vd.EDGE_SOURCE_MISSING,j.value.id,j.value.source)),null;if(!K)return d.error(new Ch(Vd.EDGE_TARGET_MISSING,j.value.id,j.value.target)),null;if(!j.value||j.value.hidden||B.hidden||K.hidden)return null;let ke;l.value===FP.Strict?ke=B.handleBounds.source:ke=[...B.handleBounds.source||[],...B.handleBounds.target||[]];const Re=xJt(ke,j.value.sourceHandle);let Ie;l.value===FP.Strict?Ie=K.handleBounds.target:Ie=[...K.handleBounds.target||[],...K.handleBounds.source||[]];const St=xJt(Ie,j.value.targetHandle),he=(Re==null?void 0:Re.position)||$i.Bottom,zt=(St==null?void 0:St.position)||$i.Top,{x:Qt,y:$n}=Fhe(B,Re,he),{x:Gn,y:$e}=Fhe(K,St,zt);return j.value.sourceX=Qt,j.value.sourceY=$n,j.value.targetX=Gn,j.value.targetY=$e,sc("g",{ref:F,key:n.id,"data-id":n.id,class:["vue-flow__edge",`vue-flow__edge-${Ue.value===!1?"default":j.value.type||"default"}`,w.value,Be.value,{updating:Ee.value,selected:j.value.selected,animated:j.value.animated,inactive:!me.value&&!G.value.edgeClick.hasListeners()}],onClick:at,onContextmenu:Ye,onDblclick:mt,onMouseenter:jt,onMousemove:rn,onMouseleave:Pe,onKeyDown:we.value?$:void 0,tabIndex:we.value?0:void 0,"aria-label":j.value.ariaLabel===null?void 0:j.value.ariaLabel||`Edge from ${j.value.source} to ${j.value.target}`,"aria-describedby":we.value?`${_dn}-${r}`:void 0,role:we.value?"button":"img"},[le.value?null:sc(Ue.value===!1?v.value.default:Ue.value,{id:n.id,sourceNode:B,targetNode:K,source:j.value.source,target:j.value.target,type:j.value.type,updatable:ye.value,selected:j.value.selected,animated:j.value.animated,label:j.value.label,labelStyle:j.value.labelStyle,labelShowBg:j.value.labelShowBg,labelBgStyle:j.value.labelBgStyle,labelBgPadding:j.value.labelBgPadding,labelBgBorderRadius:j.value.labelBgBorderRadius,data:j.value.data,events:{...j.value.events,...te},style:He.value,markerStart:`url('#${IX(j.value.markerStart,r)}')`,markerEnd:`url('#${IX(j.value.markerEnd,r)}')`,sourcePosition:he,targetPosition:zt,sourceX:Qt,sourceY:$n,targetX:Gn,targetY:$e,sourceHandleId:j.value.sourceHandle,targetHandleId:j.value.targetHandle,interactionWidth:j.value.interactionWidth,...q}),[ye.value==="source"||ye.value===!0?[sc("g",{onMousedown:Oe,onMouseenter:Me,onMouseout:vt},sc(FJt,{position:he,centerX:Qt,centerY:$n,radius:u.value,type:"source","data-type":"source"}))]:null,ye.value==="target"||ye.value===!0?[sc("g",{onMousedown:T,onMouseenter:Me,onMouseout:vt},sc(FJt,{position:zt,centerX:Gn,centerY:$e,radius:u.value,type:"target","data-type":"target"}))]:null]])};function Me(){Ee.value=!0}function vt(){Ee.value=!1}function re(B,K){Q.update({event:B,edge:j.value,connection:K})}function Te(B){Q.updateEnd({event:B,edge:j.value}),le.value=!1}function ct(B,K){B.button===0&&(le.value=!0,xe.value=K?j.value.target:j.value.source,be.value=(K?j.value.targetHandle:j.value.sourceHandle)??"",ae.value=K?"target":"source",Q.updateStart({event:B,edge:j.value}),Ge(B))}function at(B){var K;const q={event:B,edge:j.value};me.value&&(h.value=!1,j.value.selected&&R.value?(y([j.value]),(K=F.value)==null||K.blur()):o([j.value])),Q.click(q)}function Ye(B){Q.contextMenu({event:B,edge:j.value})}function mt(B){Q.doubleClick({event:B,edge:j.value})}function jt(B){Q.mouseEnter({event:B,edge:j.value})}function rn(B){Q.mouseMove({event:B,edge:j.value})}function Pe(B){Q.mouseLeave({event:B,edge:j.value})}function Oe(B){ct(B,!0)}function T(B){ct(B,!1)}function $(B){var K;!O.value&&Sdn.includes(B.key)&&me.value&&(B.key==="Escape"?((K=F.value)==null||K.blur(),y([E(n.id)])):o([E(n.id)]))}}}),$Lr=TLr,ILr={[$i.Left]:$i.Right,[$i.Right]:$i.Left,[$i.Top]:$i.Bottom,[$i.Bottom]:$i.Top},PLr=Ka({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var n;const{id:r,connectionMode:o,connectionStartHandle:l,connectionEndHandle:u,connectionPosition:d,connectionLineType:h,connectionLineStyle:w,connectionLineOptions:v,connectionStatus:y,viewport:E,findNode:A}=hu(),C=(n=BE(w1e))==null?void 0:n["connection-line"],R=To(()=>{var G;return A((G=l.value)==null?void 0:G.nodeId)}),O=To(()=>{var G;return A((G=u.value)==null?void 0:G.nodeId)??null}),M=To(()=>({x:(d.value.x-E.value.x)/E.value.zoom,y:(d.value.y-E.value.y)/E.value.zoom})),L=To(()=>v.value.markerStart?`url(#${IX(v.value.markerStart,r)})`:""),H=To(()=>v.value.markerEnd?`url(#${IX(v.value.markerEnd,r)})`:"");return()=>{var G,j,Q,te;if(!R.value||!l.value)return null;const pe=l.value.handleId,Le=l.value.type,Ee=R.value.handleBounds;let le=(Ee==null?void 0:Ee[Le])||[];if(o.value===FP.Loose){const Ue=(Ee==null?void 0:Ee[Le==="source"?"target":"source"])||[];le=[...le,...Ue]}if(!le)return null;const xe=(pe?le.find(Ue=>Ue.id===pe):le[0])??null,be=(xe==null?void 0:xe.position)||$i.Top,{x:ae,y:F}=Fhe(R.value,xe,be);let me=null;O.value&&((G=u.value)!=null&&G.handleId)&&(o.value===FP.Strict?me=((j=O.value.handleBounds[Le==="source"?"target":"source"])==null?void 0:j.find(Ue=>{var Ge;return Ue.id===((Ge=u.value)==null?void 0:Ge.handleId)}))||null:me=((Q=[...O.value.handleBounds.source||[],...O.value.handleBounds.target||[]])==null?void 0:Q.find(Ue=>{var Ge;return Ue.id===((Ge=u.value)==null?void 0:Ge.handleId)}))||null);const ye=((te=u.value)==null?void 0:te.position)??(be?ILr[be]:null);if(!be||!ye)return null;const we=h.value??v.value.type??F8.Bezier;let Be="";const He={sourceX:ae,sourceY:F,sourcePosition:be,targetX:M.value.x,targetY:M.value.y,targetPosition:ye};return we===F8.Bezier?[Be]=TVe(He):we===F8.Step?[Be]=nWe({...He,borderRadius:0}):we===F8.SmoothStep?[Be]=nWe(He):we===F8.SimpleBezier?[Be]=Kdn(He):Be=`M${ae},${F} ${M.value.x},${M.value.y}`,sc("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},sc("g",{class:"vue-flow__connection"},C?sc(C,{sourceX:ae,sourceY:F,sourcePosition:be,targetX:M.value.x,targetY:M.value.y,targetPosition:ye,sourceNode:R.value,sourceHandle:xe,targetNode:O.value,targetHandle:me,markerEnd:H.value,markerStart:L.value,connectionStatus:y.value}):sc("path",{d:Be,class:[v.value.class,y,"vue-flow__connection-path"],style:{...w.value,...v.value.style},"marker-end":H.value,"marker-start":L.value})))}}}),OLr=PLr,NLr=["id","markerWidth","markerHeight","markerUnits","orient"],MLr={name:"MarkerType",compatConfig:{MODE:3}},DLr=Ka({...MLr,props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(n){return(r,o)=>(ze(),Lt("marker",{id:r.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${r.width}`,markerHeight:`${r.height}`,markerUnits:r.markerUnits,orient:r.orient},[r.type===Wr(jhe).ArrowClosed?(ze(),Lt("polyline",{key:0,style:Vb({stroke:r.color,fill:r.color,strokeWidth:r.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):fr("",!0),r.type===Wr(jhe).Arrow?(ze(),Lt("polyline",{key:1,style:Vb({stroke:r.color,strokeWidth:r.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):fr("",!0)],8,NLr))}}),LLr={class:"vue-flow__marker vue-flow__container"},jLr={name:"MarkerDefinitions",compatConfig:{MODE:3}},FLr=Ka({...jLr,setup(n){const{id:r,edges:o,connectionLineOptions:l,defaultMarkerColor:u}=hu(),d=To(()=>{const h=new Set,w=[],v=y=>{if(y){const E=IX(y,r);h.has(E)||(typeof y=="object"?w.push({...y,id:E,color:y.color||u.value}):w.push({id:E,color:u.value,type:y}),h.add(E))}};for(const y of[l.value.markerEnd,l.value.markerStart])v(y);for(const y of o.value)for(const E of[y.markerStart,y.markerEnd])v(E);return w.sort((y,E)=>y.id.localeCompare(E.id))});return(h,w)=>(ze(),Lt("svg",LLr,[mr("defs",null,[(ze(!0),Lt(gi,null,uu(d.value,v=>(ze(),Nn(DLr,{id:v.id,key:v.id,type:v.type,color:v.color,width:v.width,height:v.height,markerUnits:v.markerUnits,"stroke-width":v.strokeWidth,orient:v.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),BLr={name:"Edges",compatConfig:{MODE:3}},WLr=Ka({...BLr,setup(n){const{findNode:r,getEdges:o,elevateEdgesOnSelect:l}=hu();return(u,d)=>(ze(),Lt(gi,null,[bi(FLr),(ze(!0),Lt(gi,null,uu(Wr(o),h=>(ze(),Lt("svg",{key:h.id,class:"vue-flow__edges vue-flow__container",style:Vb({zIndex:Wr(uDr)(h,Wr(r),Wr(l))})},[bi(Wr($Lr),{id:h.id},null,8,["id"])],4))),128)),bi(Wr(OLr))],64))}}),HLr=Ka({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(n){const{id:r,noPanClassName:o,selectNodesOnDrag:l,nodesSelectionActive:u,multiSelectionActive:d,emits:h,removeSelectedNodes:w,addSelectedNodes:v,updateNodeDimensions:y,onUpdateNodeInternals:E,getNodeTypes:A,nodeExtent:C,elevateNodesOnSelect:R,disableKeyboardA11y:O,ariaLiveMessage:M,snapToGrid:L,snapGrid:H,nodeDragThreshold:G,nodesDraggable:j,elementsSelectable:Q,nodesConnectable:te,nodesFocusable:pe,hooks:Le}=hu(),Ee=Fo(null);vP(Fdn,Ee),vP(jdn,n.id);const le=BE(w1e),xe=NT(),be=Udn(),{node:ae,parentNode:F}=Hdn(n.id),{emit:me,on:ye}=RDr(ae,h),we=bf(()=>typeof ae.draggable>"u"?j.value:ae.draggable),Be=bf(()=>typeof ae.selectable>"u"?Q.value:ae.selectable),He=bf(()=>typeof ae.connectable>"u"?te.value:ae.connectable),Ue=bf(()=>typeof ae.focusable>"u"?pe.value:ae.focusable),Ge=bf(()=>Be.value||we.value||Le.value.nodeClick.hasListeners()||Le.value.nodeDoubleClick.hasListeners()||Le.value.nodeMouseEnter.hasListeners()||Le.value.nodeMouseMove.hasListeners()||Le.value.nodeMouseLeave.hasListeners()),Me=bf(()=>!!ae.dimensions.width&&!!ae.dimensions.height),vt=To(()=>{const K=ae.type||"default",q=le==null?void 0:le[`node-${K}`];if(q)return q;let ke=ae.template||A.value[K];if(typeof ke=="string"&&xe){const Re=Object.keys(xe.appContext.components);Re&&Re.includes(K)&&(ke=Ni(K,!1))}return ke&&typeof ke!="string"?ke:(h.error(new Ch(Vd.NODE_TYPE_MISSING,ke)),!1)}),re=Bdn({id:n.id,el:Ee,disabled:()=>!we.value,selectable:Be,dragHandle:()=>ae.dragHandle,onStart(K){me.dragStart(K)},onDrag(K){me.drag(K)},onStop(K){me.dragStop(K)},onClick(K){$(K)}}),Te=To(()=>ae.class instanceof Function?ae.class(ae):ae.class),ct=To(()=>{const K=(ae.style instanceof Function?ae.style(ae):ae.style)||{},q=ae.width instanceof Function?ae.width(ae):ae.width,ke=ae.height instanceof Function?ae.height(ae):ae.height;return!K.width&&q&&(K.width=typeof q=="string"?q:`${q}px`),!K.height&&ke&&(K.height=typeof ke=="string"?ke:`${ke}px`),K}),at=bf(()=>Number(ae.zIndex??ct.value.zIndex??0));return E(K=>{(K.includes(n.id)||!K.length)&&mt()}),sm(()=>{Zs(()=>ae.hidden,(K=!1,q,ke)=>{!K&&Ee.value&&(n.resizeObserver.observe(Ee.value),ke(()=>{Ee.value&&n.resizeObserver.unobserve(Ee.value)}))},{immediate:!0,flush:"post"})}),Zs([()=>ae.type,()=>ae.sourcePosition,()=>ae.targetPosition],()=>{RS(()=>{y([{id:n.id,nodeElement:Ee.value,forceUpdate:!0}])})}),Zs([()=>ae.position.x,()=>ae.position.y,()=>{var K;return(K=F.value)==null?void 0:K.computedPosition.x},()=>{var K;return(K=F.value)==null?void 0:K.computedPosition.y},()=>{var K;return(K=F.value)==null?void 0:K.computedPosition.z},at,()=>ae.selected,()=>ae.dimensions.height,()=>ae.dimensions.width,()=>{var K;return(K=F.value)==null?void 0:K.dimensions.height},()=>{var K;return(K=F.value)==null?void 0:K.dimensions.width}],([K,q,ke,Re,Ie,St])=>{const he={x:K,y:q,z:St+(R.value&&ae.selected?1e3:0)};typeof ke<"u"&&typeof Re<"u"?ae.computedPosition=iDr({x:ke,y:Re,z:Ie},he):ae.computedPosition=he},{flush:"post",immediate:!0}),Zs([()=>ae.extent,C],([K,q],[ke,Re])=>{(K!==ke||q!==Re)&&Ye()}),ae.extent==="parent"||typeof ae.extent=="object"&&"range"in ae.extent&&ae.extent.range==="parent"?UBe(()=>Me).toBe(!0).then(Ye):Ye(),()=>ae.hidden?null:sc("div",{ref:Ee,"data-id":ae.id,class:["vue-flow__node",`vue-flow__node-${vt.value===!1?"default":ae.type||"default"}`,{[o.value]:we.value,dragging:re==null?void 0:re.value,draggable:we.value,selected:ae.selected,selectable:Be.value,parent:ae.isParent},Te.value],style:{visibility:Me.value?"visible":"hidden",zIndex:ae.computedPosition.z??at.value,transform:`translate(${ae.computedPosition.x}px,${ae.computedPosition.y}px)`,pointerEvents:Ge.value?"all":"none",...ct.value},tabIndex:Ue.value?0:void 0,role:Ue.value?"button":void 0,"aria-describedby":O.value?void 0:`${vdn}-${r}`,"aria-label":ae.ariaLabel,onMouseenter:jt,onMousemove:rn,onMouseleave:Pe,onContextmenu:Oe,onClick:$,onDblclick:T,onKeydown:B},[sc(vt.value===!1?A.value.default:vt.value,{id:ae.id,type:ae.type,data:ae.data,events:{...ae.events,...ye},selected:ae.selected,resizing:ae.resizing,dragging:re.value,connectable:He.value,position:ae.computedPosition,dimensions:ae.dimensions,isValidTargetPos:ae.isValidTargetPos,isValidSourcePos:ae.isValidSourcePos,parent:ae.parentNode,parentNodeId:ae.parentNode,zIndex:ae.computedPosition.z??at.value,targetPosition:ae.targetPosition,sourcePosition:ae.sourcePosition,label:ae.label,dragHandle:ae.dragHandle,onUpdateNodeInternals:mt})]);function Ye(){const K=ae.computedPosition,{computedPosition:q,position:ke}=xVe(ae,L.value?b1e(K,H.value):K,h.error,C.value,F.value);(ae.computedPosition.x!==q.x||ae.computedPosition.y!==q.y)&&(ae.computedPosition={...ae.computedPosition,...q}),(ae.position.x!==ke.x||ae.position.y!==ke.y)&&(ae.position=ke)}function mt(){Ee.value&&y([{id:n.id,nodeElement:Ee.value,forceUpdate:!0}])}function jt(K){re!=null&&re.value||me.mouseEnter({event:K,node:ae})}function rn(K){re!=null&&re.value||me.mouseMove({event:K,node:ae})}function Pe(K){re!=null&&re.value||me.mouseLeave({event:K,node:ae})}function Oe(K){return me.contextMenu({event:K,node:ae})}function T(K){return me.doubleClick({event:K,node:ae})}function $(K){Be.value&&(!l.value||!we.value||G.value>0)&&tWe(ae,d.value,v,w,u,!1,Ee.value),me.click({event:K,node:ae})}function B(K){if(!(QBe(K)||O.value))if(Sdn.includes(K.key)&&Be.value){const q=K.key==="Escape";tWe(ae,d.value,v,w,u,q,Ee.value)}else we.value&&ae.selected&&_L[K.key]&&(M.value=`Moved selected node ${K.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~ae.position.x}, y: ${~~ae.position.y}`,be({x:_L[K.key].x,y:_L[K.key].y},K.shiftKey))}}}),ULr=HLr;function GLr(n={includeHiddenNodes:!1}){const{nodes:r}=hu();return To(()=>{if(r.value.length===0)return!1;for(const o of r.value)if((n.includeHiddenNodes||!o.hidden)&&((o==null?void 0:o.handleBounds)===void 0||o.dimensions.width===0||o.dimensions.height===0))return!1;return!0})}const VLr={class:"vue-flow__nodes vue-flow__container"},zLr={name:"Nodes",compatConfig:{MODE:3}},KLr=Ka({...zLr,setup(n){const{getNodes:r,updateNodeDimensions:o,emits:l}=hu(),u=GLr(),d=Fo();return Zs(u,h=>{h&&RS(()=>{l.nodesInitialized(r.value)})},{immediate:!0}),sm(()=>{d.value=new ResizeObserver(h=>{const w=h.map(v=>({id:v.target.getAttribute("data-id"),nodeElement:v.target,forceUpdate:!0}));RS(()=>o(w))})}),Qhe(()=>{var h;return(h=d.value)==null?void 0:h.disconnect()}),(h,w)=>(ze(),Lt("div",VLr,[d.value?(ze(!0),Lt(gi,{key:0},uu(Wr(r),(v,y,E,A)=>{const C=[v.id];if(A&&A.key===v.id&&$Wn(A,C))return A;const R=(ze(),Nn(Wr(ULr),{id:v.id,key:v.id,"resize-observer":d.value},null,8,["id","resize-observer"]));return R.memo=C,R},w,0),128)):fr("",!0)]))}});function qLr(){const{emits:n}=hu();sm(()=>{if(Ldn()){const r=document.querySelector(".vue-flow__pane");r&&window.getComputedStyle(r).zIndex!=="1"&&n.error(new Ch(Vd.MISSING_STYLES))}})}const XLr=mr("div",{class:"vue-flow__edge-labels"},null,-1),JLr={name:"VueFlow",compatConfig:{MODE:3}},YLr=Ka({...JLr,props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(n,{expose:r,emit:o}){const l=n,u=VBn(),d=iLe(l,"modelValue",o),h=iLe(l,"nodes",o),w=iLe(l,"edges",o),v=hu(l),y=ADr({modelValue:d,nodes:h,edges:w},l,v);return $Dr(o,v.hooks),xLr(),qLr(),vP(w1e,u),Zhe(()=>{y()}),r(v),(E,A)=>(ze(),Lt("div",{ref:Wr(v).vueFlowRef,class:"vue-flow"},[bi(vLr,null,{default:vi(()=>[bi(WLr),XLr,bi(KLr),Vr(E.$slots,"zoom-pane")]),_:3}),Vr(E.$slots,"default"),bi(RLr)],512))}});function BJt(n,r){const{dimensions:{width:o,height:l},computedPosition:u}=n,d=r.computedPosition,h=o/2,w=l/2,v=u.x+h,y=u.y+w,E=d.x+h,A=d.y+w,C=(E-v)/(2*h)-(A-y)/(2*w),R=(E-v)/(2*h)+(A-y)/(2*w),O=1/(Math.abs(C)+Math.abs(R)),M=O*C,L=O*R,H=h*(M+L)+v,G=w*(-M+L)+y;return{x:H,y:G}}function WJt(n,r){const o={...n.computedPosition,...n.dimensions},l=Math.round(o.x),u=Math.round(o.y),d=Math.round(r.x),h=Math.round(r.y);return d<=l+1?$i.Left:d>=l+o.width-1?$i.Right:h<=u+1?$i.Top:h>=o.y+o.height-1?$i.Bottom:$i.Top}function QLr(n,r){const o=BJt(n,r),l=BJt(r,n),u=WJt(n,o),d=WJt(r,l);return{sx:o.x,sy:o.y,tx:l.x,ty:l.y,sourcePos:u,targetPos:d}}const ZLr=Ka({__name:"FloatingEdge",props:{id:{},source:{},target:{},markerEndId:{},sourceNode:{},targetNode:{},style:{},markerEnd:{},markerStart:{},type:{},label:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{}},setup(n){const r=n,o=To(()=>QLr(r.sourceNode,r.targetNode)),l=To(()=>{if(!o.value.sx)return"";const u=r.sourceX(ze(),Nn(Wr(GJ),{id:u.id,path:l.value[0],"marker-start":u.markerStart,"marker-end":u.markerEnd,style:Vb(u.style)},null,8,["id","path","marker-start","marker-end","style"]))}});function vfe(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xdn={exports:{}};(function(n,r){(function(o){n.exports=o()})(function(){return function(){function o(l,u,d){function h(y,E){if(!u[y]){if(!l[y]){var A=typeof vfe=="function"&&vfe;if(!E&&A)return A(y,!0);if(w)return w(y,!0);var C=new Error("Cannot find module '"+y+"'");throw C.code="MODULE_NOT_FOUND",C}var R=u[y]={exports:{}};l[y][0].call(R.exports,function(O){var M=l[y][1][O];return h(M||O)},R,R.exports,o,l,u,d)}return u[y].exports}for(var w=typeof vfe=="function"&&vfe,v=0;v0&&arguments[0]!==void 0?arguments[0]:{},C=A.defaultLayoutOptions,R=C===void 0?{}:C,O=A.algorithms,M=O===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:O,L=A.workerFactory,H=A.workerUrl;if(h(this,y),this.defaultLayoutOptions=R,this.initialized=!1,typeof H>"u"&&typeof L>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var G=L;typeof H<"u"&&typeof L>"u"&&(G=function(te){return new Worker(te)});var j=G(H);if(typeof j.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new v(j),this.worker.postMessage({cmd:"register",algorithms:M}).then(function(Q){return E.initialized=!0}).catch(console.err)}return d(y,[{key:"layout",value:function(A){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=C.layoutOptions,O=R===void 0?this.defaultLayoutOptions:R,M=C.logging,L=M===void 0?!1:M,H=C.measureExecutionTime,G=H===void 0?!1:H;return A?this.worker.postMessage({cmd:"layout",graph:A,layoutOptions:O,options:{logging:L,measureExecutionTime:G}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}]),y}();u.default=w;var v=function(){function y(E){var A=this;if(h(this,y),E===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=E,this.worker.onmessage=function(C){setTimeout(function(){A.receive(A,C)},0)}}return d(y,[{key:"postMessage",value:function(A){var C=this.id||0;this.id=C+1,A.id=C;var R=this;return new Promise(function(O,M){R.resolvers[C]=function(L,H){L?(R.convertGwtStyleError(L),M(L)):O(H)},R.worker.postMessage(A)})}},{key:"receive",value:function(A,C){var R=C.data,O=A.resolvers[R.id];O&&(delete A.resolvers[R.id],R.error?O(R.error):O(null,R.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(A){if(A){var C=A.__java$exception;C&&(C.cause&&C.cause.backingJsObject&&(A.cause=C.cause.backingJsObject,this.convertGwtStyleError(A.cause)),delete A.__java$exception)}}}]),y}()},{}],2:[function(o,l,u){(function(d){(function(){var h;typeof window<"u"?h=window:typeof d<"u"?h=d:typeof self<"u"&&(h=self);var w;function v(){}function y(){}function E(){}function A(){}function C(){}function R(){}function O(){}function M(){}function L(){}function H(){}function G(){}function j(){}function Q(){}function te(){}function pe(){}function Le(){}function Ee(){}function le(){}function xe(){}function be(){}function ae(){}function F(){}function me(){}function ye(){}function we(){}function Be(){}function He(){}function Ue(){}function Ge(){}function Me(){}function vt(){}function re(){}function Te(){}function ct(){}function at(){}function Ye(){}function mt(){}function jt(){}function rn(){}function Pe(){}function Oe(){}function T(){}function $(){}function B(){}function K(){}function q(){}function ke(){}function Re(){}function Ie(){}function St(){}function he(){}function zt(){}function Qt(){}function $n(){}function Gn(){}function $e(){}function ce(){}function de(){}function et(){}function ht(){}function Jt(){}function Zt(){}function qr(){}function ao(){}function ki(){}function Ri(){}function xi(){}function wl(){}function pu(){}function Al(){}function co(){}function Zc(){}function bu(){}function So(){}function ql(){}function S(){}function x(){}function Y(){}function J(){}function ue(){}function Yt(){}function An(){}function Ws(){}function Fr(){}function Hl(){}function Ec(){}function Rs(){}function ml(){}function gs(){}function as(){}function ws(){}function wi(){}function jr(){}function lr(){}function TO(){}function VJ(){}function XT(){}function $O(){}function JT(){}function Lj(){}function We(){}function bt(){}function Mn(){}function yr(){}function Wo(){}function el(){}function Pa(){}function Th(){}function j0(){}function zJ(){}function DVe(){}function LVe(){}function jVe(){}function FVe(){}function BVe(){}function _1e(){}function WVe(){}function HVe(){}function S1e(){}function UVe(){}function GVe(){}function VVe(){}function zVe(){}function KVe(){}function qVe(){}function XVe(){}function JVe(){}function YVe(){}function QVe(){}function ZVe(){}function eze(){}function tze(){}function KJ(){}function nze(){}function rze(){}function ize(){}function oze(){}function sze(){}function lze(){}function aze(){}function cze(){}function uze(){}function E1e(){}function k1e(){}function fze(){}function dze(){}function hze(){}function pze(){}function bze(){}function gze(){}function wze(){}function mze(){}function yze(){}function vze(){}function _ze(){}function Sze(){}function Eze(){}function kze(){}function Rze(){}function xze(){}function Cze(){}function Aze(){}function Tze(){}function $ze(){}function Ize(){}function Pze(){}function Oze(){}function Nze(){}function Mze(){}function Dze(){}function Lze(){}function jze(){}function Fze(){}function Bze(){}function Wze(){}function Hze(){}function Uze(){}function Gze(){}function Vze(){}function zze(){}function Kze(){}function qze(){}function Xze(){}function Jze(){}function Yze(){}function Qze(){}function Zze(){}function eKe(){}function tKe(){}function nKe(){}function rKe(){}function iKe(){}function oKe(){}function sKe(){}function lKe(){}function aKe(){}function cKe(){}function uKe(){}function fKe(){}function dKe(){}function hKe(){}function pKe(){}function bKe(){}function gKe(){}function wKe(){}function mKe(){}function yKe(){}function vKe(){}function _Ke(){}function SKe(){}function EKe(){}function kKe(){}function RKe(){}function xKe(){}function CKe(){}function AKe(){}function TKe(){}function $Ke(){}function IKe(){}function PKe(){}function OKe(){}function NKe(){}function MKe(){}function DKe(){}function LKe(){}function jKe(){}function FKe(){}function BKe(){}function WKe(){}function HKe(){}function UKe(){}function GKe(){}function VKe(){}function zKe(){}function KKe(){}function qKe(){}function XKe(){}function JKe(){}function YKe(){}function QKe(){}function ZKe(){}function eqe(){}function tqe(){}function nqe(){}function R1e(){}function rqe(){}function iqe(){}function oqe(){}function sqe(){}function lqe(){}function aqe(){}function cqe(){}function uqe(){}function fqe(){}function dqe(){}function hqe(){}function pqe(){}function bqe(){}function gqe(){}function wqe(){}function mqe(){}function yqe(){}function vqe(){}function _qe(){}function Sqe(){}function Eqe(){}function kqe(){}function Rqe(){}function xqe(){}function Cqe(){}function Aqe(){}function Tqe(){}function $qe(){}function Iqe(){}function Pqe(){}function Oqe(){}function Nqe(){}function Mqe(){}function Dqe(){}function Lqe(){}function jqe(){}function Fqe(){}function Bqe(){}function Wqe(){}function Hqe(){}function Uqe(){}function Gqe(){}function Vqe(){}function zqe(){}function Kqe(){}function qqe(){}function Xqe(){}function Jqe(){}function Yqe(){}function Qqe(){}function Zqe(){}function eXe(){}function tXe(){}function nXe(){}function rXe(){}function iXe(){}function oXe(){}function sXe(){}function lXe(){}function aXe(){}function cXe(){}function uXe(){}function fXe(){}function dXe(){}function hXe(){}function pXe(){}function bXe(){}function gXe(){}function wXe(){}function mXe(){}function yXe(){}function vXe(){}function _Xe(){}function x1e(){}function SXe(){}function EXe(){}function kXe(){}function RXe(){}function xXe(){}function CXe(){}function AXe(){}function TXe(){}function $Xe(){}function IXe(){}function C1e(){}function PXe(){}function OXe(){}function NXe(){}function MXe(){}function DXe(){}function LXe(){}function A1e(){}function T1e(){}function jXe(){}function $1e(){}function I1e(){}function FXe(){}function BXe(){}function WXe(){}function HXe(){}function UXe(){}function GXe(){}function VXe(){}function zXe(){}function KXe(){}function qXe(){}function XXe(){}function P1e(){}function JXe(){}function YXe(){}function QXe(){}function ZXe(){}function eJe(){}function tJe(){}function nJe(){}function rJe(){}function iJe(){}function oJe(){}function sJe(){}function lJe(){}function aJe(){}function cJe(){}function uJe(){}function fJe(){}function dJe(){}function hJe(){}function pJe(){}function bJe(){}function gJe(){}function wJe(){}function mJe(){}function yJe(){}function vJe(){}function _Je(){}function SJe(){}function EJe(){}function kJe(){}function RJe(){}function xJe(){}function CJe(){}function AJe(){}function TJe(){}function $Je(){}function IJe(){}function PJe(){}function OJe(){}function NJe(){}function MJe(){}function DJe(){}function LJe(){}function jJe(){}function FJe(){}function BJe(){}function WJe(){}function HJe(){}function UJe(){}function GJe(){}function VJe(){}function zJe(){}function KJe(){}function qJe(){}function XJe(){}function JJe(){}function YJe(){}function QJe(){}function ZJe(){}function eYe(){}function tYe(){}function nYe(){}function rYe(){}function iYe(){}function oYe(){}function sYe(){}function lYe(){}function aYe(){}function cYe(){}function uYe(){}function fYe(){}function dYe(){}function hYe(){}function pYe(){}function bYe(){}function gYe(){}function wYe(){}function mYe(){}function yYe(){}function vYe(){}function _Ye(){}function SYe(){}function EYe(){}function kYe(){}function RYe(){}function xYe(){}function CYe(){}function jhn(){}function AYe(){}function TYe(){}function $Ye(){}function IYe(){}function PYe(){}function OYe(){}function NYe(){}function MYe(){}function DYe(){}function LYe(){}function jYe(){}function FYe(){}function BYe(){}function WYe(){}function HYe(){}function UYe(){}function GYe(){}function VYe(){}function zYe(){}function KYe(){}function qYe(){}function XYe(){}function JYe(){}function YYe(){}function QYe(){}function ZYe(){}function eQe(){}function qJ(){}function XJ(){}function tQe(){}function JJ(){}function nQe(){}function rQe(){}function iQe(){}function oQe(){}function sQe(){}function lQe(){}function aQe(){}function cQe(){}function uQe(){}function fQe(){}function O1e(){}function dQe(){}function hQe(){}function pQe(){}function Fhn(){}function bQe(){}function gQe(){}function wQe(){}function mQe(){}function yQe(){}function vQe(){}function _Qe(){}function F0(){}function SQe(){}function Ak(){}function N1e(){}function EQe(){}function kQe(){}function RQe(){}function xQe(){}function CQe(){}function AQe(){}function TQe(){}function $Qe(){}function IQe(){}function PQe(){}function OQe(){}function NQe(){}function MQe(){}function DQe(){}function LQe(){}function jQe(){}function FQe(){}function BQe(){}function WQe(){}function kt(){}function HQe(){}function UQe(){}function GQe(){}function VQe(){}function zQe(){}function KQe(){}function qQe(){}function XQe(){}function JQe(){}function YQe(){}function QQe(){}function ZQe(){}function eZe(){}function YJ(){}function tZe(){}function nZe(){}function rZe(){}function jj(){}function iZe(){}function QJ(){}function Fj(){}function oZe(){}function M1e(){}function sZe(){}function lZe(){}function aZe(){}function cZe(){}function uZe(){}function fZe(){}function Bj(){}function dZe(){}function hZe(){}function Wj(){}function pZe(){}function Hj(){}function bZe(){}function D1e(){}function gZe(){}function ZJ(){}function L1e(){}function wZe(){}function mZe(){}function yZe(){}function vZe(){}function Bhn(){}function _Ze(){}function SZe(){}function EZe(){}function kZe(){}function RZe(){}function xZe(){}function CZe(){}function AZe(){}function TZe(){}function $Ze(){}function Dx(){}function eY(){}function IZe(){}function PZe(){}function OZe(){}function NZe(){}function MZe(){}function DZe(){}function LZe(){}function jZe(){}function FZe(){}function BZe(){}function WZe(){}function HZe(){}function UZe(){}function GZe(){}function VZe(){}function zZe(){}function KZe(){}function qZe(){}function XZe(){}function JZe(){}function YZe(){}function QZe(){}function ZZe(){}function eet(){}function tet(){}function net(){}function ret(){}function iet(){}function oet(){}function set(){}function aet(){}function cet(){}function uet(){}function fet(){}function det(){}function het(){}function pet(){}function bet(){}function get(){}function wet(){}function met(){}function yet(){}function vet(){}function _et(){}function Eet(){}function ket(){}function Ret(){}function xet(){}function Cet(){}function Aet(){}function Tet(){}function $et(){}function Iet(){}function Pet(){}function Oet(){}function Net(){}function Met(){}function Det(){}function Let(){}function jet(){}function Fet(){}function Bet(){}function Wet(){}function Het(){}function Uet(){}function Get(){}function Vet(){}function zet(){}function Ket(){}function qet(){}function Xet(){}function Jet(){}function Yet(){}function Qet(){}function Zet(){}function ett(){}function ttt(){}function ntt(){}function rtt(){}function itt(){}function ott(){}function stt(){}function ltt(){}function att(){}function ctt(){}function utt(){}function ftt(){}function dtt(){}function htt(){}function ptt(){}function btt(){}function gtt(){}function wtt(){}function mtt(){}function ytt(){}function vtt(){}function _tt(){}function Stt(){}function Ett(){}function ktt(){}function Rtt(){}function j1e(){}function xtt(){}function Ctt(){}function tY(){i$()}function Att(){VO()}function Ttt(){TH()}function $tt(){lte()}function Itt(){T6()}function Ptt(){zEe()}function Ott(){od()}function Ntt(){nEe()}function Mtt(){IN()}function Dtt(){zO()}function Ltt(){v7()}function jtt(){uct()}function Ftt(){b3()}function Btt(){j0t()}function Wtt(){tSe()}function Htt(){xgt()}function Utt(){nSe()}function Gtt(){bwt()}function Vtt(){Rgt()}function ztt(){zC()}function Ktt(){Qmt()}function qtt(){Ymt()}function Xtt(){_1t()}function Jtt(){Zmt()}function Ytt(){W1()}function Qtt(){gF()}function Ztt(){V3e()}function ent(){pt()}function tnt(){eyt()}function nnt(){Cyt()}function rnt(){Cgt()}function int(){QSt()}function ont(){Agt()}function snt(){dRt()}function lnt(){Eke()}function ant(){mb()}function cnt(){h_t()}function unt(){Il()}function fnt(){Lgt()}function dnt(){p3()}function hnt(){o3e()}function pnt(){H1()}function bnt(){s3e()}function gnt(){sh()}function wnt(){DN()}function mnt(){One()}function ynt(){Hte()}function Ed(){hht()}function vnt(){bW()}function _nt(){MH()}function F1e(){Er()}function Snt(){YW()}function Ent(){P2e()}function B1e(){Hee()}function W1e(){rU()}function knt(){w3e()}function H1e(e){mn(e)}function Rnt(e){this.a=e}function Uj(e){this.a=e}function xnt(e){this.a=e}function Cnt(e){this.a=e}function Ant(e){this.a=e}function Tnt(e){this.a=e}function $nt(e){this.a=e}function Int(e){this.a=e}function U1e(e){this.a=e}function G1e(e){this.a=e}function Pnt(e){this.a=e}function Ont(e){this.a=e}function nY(e){this.a=e}function Nnt(e){this.a=e}function Mnt(e){this.a=e}function rY(e){this.a=e}function iY(e){this.a=e}function Dnt(e){this.a=e}function oY(e){this.a=e}function Lnt(e){this.a=e}function jnt(e){this.a=e}function Fnt(e){this.a=e}function V1e(e){this.b=e}function Bnt(e){this.c=e}function Wnt(e){this.a=e}function Hnt(e){this.a=e}function Unt(e){this.a=e}function Gnt(e){this.a=e}function Vnt(e){this.a=e}function znt(e){this.a=e}function Knt(e){this.a=e}function qnt(e){this.a=e}function Xnt(e){this.a=e}function Jnt(e){this.a=e}function Ynt(e){this.a=e}function Qnt(e){this.a=e}function Znt(e){this.a=e}function z1e(e){this.a=e}function K1e(e){this.a=e}function Gj(e){this.a=e}function IO(e){this.a=e}function B0(){this.a=[]}function ert(e,t){e.a=t}function Whn(e,t){e.a=t}function Hhn(e,t){e.b=t}function Uhn(e,t){e.b=t}function Ghn(e,t){e.b=t}function q1e(e,t){e.j=t}function Vhn(e,t){e.g=t}function zhn(e,t){e.i=t}function Khn(e,t){e.c=t}function qhn(e,t){e.c=t}function Xhn(e,t){e.d=t}function Jhn(e,t){e.d=t}function W0(e,t){e.k=t}function Yhn(e,t){e.c=t}function X1e(e,t){e.c=t}function J1e(e,t){e.a=t}function Qhn(e,t){e.a=t}function Zhn(e,t){e.f=t}function epn(e,t){e.a=t}function tpn(e,t){e.b=t}function sY(e,t){e.d=t}function Vj(e,t){e.i=t}function Y1e(e,t){e.o=t}function npn(e,t){e.r=t}function rpn(e,t){e.a=t}function ipn(e,t){e.b=t}function trt(e,t){e.e=t}function opn(e,t){e.f=t}function Q1e(e,t){e.g=t}function spn(e,t){e.e=t}function lpn(e,t){e.f=t}function apn(e,t){e.f=t}function lY(e,t){e.a=t}function aY(e,t){e.b=t}function cpn(e,t){e.n=t}function upn(e,t){e.a=t}function fpn(e,t){e.c=t}function dpn(e,t){e.c=t}function hpn(e,t){e.c=t}function ppn(e,t){e.a=t}function bpn(e,t){e.a=t}function gpn(e,t){e.d=t}function wpn(e,t){e.d=t}function mpn(e,t){e.e=t}function ypn(e,t){e.e=t}function vpn(e,t){e.g=t}function _pn(e,t){e.f=t}function Spn(e,t){e.j=t}function Epn(e,t){e.a=t}function kpn(e,t){e.a=t}function Rpn(e,t){e.b=t}function nrt(e){e.b=e.a}function rrt(e){e.c=e.d.d}function Z1e(e){this.a=e}function e0e(e){this.a=e}function t0e(e){this.a=e}function H0(e){this.a=e}function U0(e){this.a=e}function PO(e){this.a=e}function irt(e){this.a=e}function n0e(e){this.a=e}function OO(e){this.a=e}function zj(e){this.a=e}function ob(e){this.a=e}function Rv(e){this.a=e}function ort(e){this.a=e}function srt(e){this.a=e}function cY(e){this.b=e}function Lx(e){this.b=e}function jx(e){this.b=e}function uY(e){this.a=e}function lrt(e){this.a=e}function fY(e){this.c=e}function ee(e){this.c=e}function art(e){this.c=e}function YT(e){this.d=e}function r0e(e){this.a=e}function er(e){this.a=e}function crt(e){this.a=e}function i0e(e){this.a=e}function o0e(e){this.a=e}function s0e(e){this.a=e}function l0e(e){this.a=e}function a0e(e){this.a=e}function c0e(e){this.a=e}function Fx(e){this.a=e}function urt(e){this.a=e}function frt(e){this.a=e}function Bx(e){this.a=e}function drt(e){this.a=e}function hrt(e){this.a=e}function prt(e){this.a=e}function brt(e){this.a=e}function grt(e){this.a=e}function wrt(e){this.a=e}function mrt(e){this.a=e}function yrt(e){this.a=e}function vrt(e){this.a=e}function _rt(e){this.a=e}function Srt(e){this.a=e}function Ert(e){this.a=e}function krt(e){this.a=e}function Rrt(e){this.a=e}function xrt(e){this.a=e}function QT(e){this.a=e}function Crt(e){this.a=e}function Art(e){this.a=e}function Trt(e){this.a=e}function $rt(e){this.a=e}function Kj(e){this.a=e}function Irt(e){this.a=e}function Prt(e){this.a=e}function Wx(e){this.a=e}function u0e(e){this.a=e}function Ort(e){this.a=e}function Nrt(e){this.a=e}function Mrt(e){this.a=e}function Drt(e){this.a=e}function Lrt(e){this.a=e}function jrt(e){this.a=e}function f0e(e){this.a=e}function d0e(e){this.a=e}function h0e(e){this.a=e}function ZT(e){this.a=e}function qj(e){this.e=e}function Hx(e){this.a=e}function Frt(e){this.a=e}function Tk(e){this.a=e}function p0e(e){this.a=e}function Brt(e){this.a=e}function Wrt(e){this.a=e}function Hrt(e){this.a=e}function Urt(e){this.a=e}function Grt(e){this.a=e}function Vrt(e){this.a=e}function zrt(e){this.a=e}function Krt(e){this.a=e}function qrt(e){this.a=e}function Xrt(e){this.a=e}function Jrt(e){this.a=e}function b0e(e){this.a=e}function Yrt(e){this.a=e}function Qrt(e){this.a=e}function Zrt(e){this.a=e}function eit(e){this.a=e}function tit(e){this.a=e}function nit(e){this.a=e}function rit(e){this.a=e}function iit(e){this.a=e}function oit(e){this.a=e}function sit(e){this.a=e}function lit(e){this.a=e}function ait(e){this.a=e}function cit(e){this.a=e}function uit(e){this.a=e}function fit(e){this.a=e}function dit(e){this.a=e}function hit(e){this.a=e}function pit(e){this.a=e}function bit(e){this.a=e}function git(e){this.a=e}function wit(e){this.a=e}function mit(e){this.a=e}function yit(e){this.a=e}function vit(e){this.a=e}function _it(e){this.a=e}function Sit(e){this.a=e}function Eit(e){this.a=e}function kit(e){this.a=e}function Rit(e){this.a=e}function xit(e){this.a=e}function Cit(e){this.a=e}function Ait(e){this.a=e}function Tit(e){this.a=e}function $it(e){this.a=e}function Iit(e){this.a=e}function Pit(e){this.a=e}function Oit(e){this.a=e}function Nit(e){this.a=e}function Mit(e){this.c=e}function Dit(e){this.b=e}function Lit(e){this.a=e}function jit(e){this.a=e}function Fit(e){this.a=e}function Bit(e){this.a=e}function Wit(e){this.a=e}function Hit(e){this.a=e}function Uit(e){this.a=e}function Git(e){this.a=e}function Vit(e){this.a=e}function zit(e){this.a=e}function Kit(e){this.a=e}function qit(e){this.a=e}function Xit(e){this.a=e}function Jit(e){this.a=e}function Yit(e){this.a=e}function Qit(e){this.a=e}function Zit(e){this.a=e}function eot(e){this.a=e}function tot(e){this.a=e}function not(e){this.a=e}function rot(e){this.a=e}function iot(e){this.a=e}function oot(e){this.a=e}function sot(e){this.a=e}function lot(e){this.a=e}function aot(e){this.a=e}function cot(e){this.a=e}function sb(e){this.a=e}function OS(e){this.a=e}function uot(e){this.a=e}function fot(e){this.a=e}function dot(e){this.a=e}function hot(e){this.a=e}function pot(e){this.a=e}function bot(e){this.a=e}function got(e){this.a=e}function wot(e){this.a=e}function mot(e){this.a=e}function yot(e){this.a=e}function vot(e){this.a=e}function _ot(e){this.a=e}function Sot(e){this.a=e}function Eot(e){this.a=e}function kot(e){this.a=e}function Rot(e){this.a=e}function xot(e){this.a=e}function Cot(e){this.a=e}function Aot(e){this.a=e}function Tot(e){this.a=e}function $ot(e){this.a=e}function Iot(e){this.a=e}function Pot(e){this.a=e}function Oot(e){this.a=e}function Not(e){this.a=e}function Mot(e){this.a=e}function Xj(e){this.a=e}function Dot(e){this.f=e}function Lot(e){this.a=e}function jot(e){this.a=e}function Fot(e){this.a=e}function Bot(e){this.a=e}function Wot(e){this.a=e}function Hot(e){this.a=e}function Uot(e){this.a=e}function Got(e){this.a=e}function Vot(e){this.a=e}function zot(e){this.a=e}function Kot(e){this.a=e}function qot(e){this.a=e}function Xot(e){this.a=e}function Jot(e){this.a=e}function Yot(e){this.a=e}function Qot(e){this.a=e}function Zot(e){this.a=e}function est(e){this.a=e}function tst(e){this.a=e}function nst(e){this.a=e}function rst(e){this.a=e}function ist(e){this.a=e}function ost(e){this.a=e}function sst(e){this.a=e}function lst(e){this.a=e}function ast(e){this.a=e}function cst(e){this.a=e}function ust(e){this.a=e}function dY(e){this.a=e}function g0e(e){this.a=e}function Xr(e){this.b=e}function fst(e){this.a=e}function dst(e){this.a=e}function hst(e){this.a=e}function pst(e){this.a=e}function bst(e){this.a=e}function gst(e){this.a=e}function wst(e){this.a=e}function mst(e){this.b=e}function yst(e){this.a=e}function NO(e){this.a=e}function vst(e){this.a=e}function _st(e){this.a=e}function w0e(e){this.c=e}function Jj(e){this.e=e}function Yj(e){this.a=e}function Qj(e){this.a=e}function hY(e){this.a=e}function Sst(e){this.d=e}function Est(e){this.a=e}function m0e(e){this.a=e}function y0e(e){this.a=e}function fm(e){this.e=e}function xpn(){this.a=0}function Fn(){xc(this)}function st(){CQ(this)}function pY(){sbt(this)}function kst(){}function dm(){this.c=ROe}function Rst(e,t){e.b+=t}function Cpn(e,t){t.Wb(e)}function Apn(e){return e.a}function Tpn(e){return e.a}function $pn(e){return e.a}function Ipn(e){return e.a}function Ppn(e){return e.a}function ne(e){return e.e}function Opn(){return null}function Npn(){return null}function Mpn(){iwe(),pjn()}function Dpn(e){e.b.Of(e.e)}function xst(e){e.b=new NY}function e$(e,t){e.b=t-e.b}function t$(e,t){e.a=t-e.a}function sn(e,t){e.push(t)}function Cst(e,t){e.sort(t)}function Ast(e,t){t.jd(e.a)}function Lpn(e,t){so(t,e)}function jpn(e,t,i){e.Yd(i,t)}function MO(e,t){e.e=t,t.b=e}function v0e(e){Dh(),this.a=e}function Tst(e){Dh(),this.a=e}function $st(e){Dh(),this.a=e}function bY(e){Nm(),this.a=e}function Ist(e){mC(),ise.le(e)}function _0e(){_0e=F,new Fn}function G0(){Jft.call(this)}function S0e(){Jft.call(this)}function E0e(){G0.call(this)}function gY(){G0.call(this)}function Pst(){G0.call(this)}function DO(){G0.call(this)}function ac(){G0.call(this)}function $k(){G0.call(this)}function rr(){G0.call(this)}function Bu(){G0.call(this)}function Ost(){G0.call(this)}function yl(){G0.call(this)}function Nst(){G0.call(this)}function Mst(){this.a=this}function Zj(){this.Bb|=256}function Dst(){this.b=new Uut}function xv(e,t){e.length=t}function eF(e,t){lt(e.a,t)}function Fpn(e,t){qEe(e.c,t)}function Bpn(e,t){Zi(e.b,t)}function Wpn(e,t){EH(e.a,t)}function Hpn(e,t){bte(e.a,t)}function Ux(e,t){Dr(e.e,t)}function Ik(e){FH(e.c,e.b)}function Upn(e,t){e.kc().Nb(t)}function k0e(e){this.a=MCn(e)}function Gi(){this.a=new Fn}function Lst(){this.a=new Fn}function R0e(){this.a=new nct}function tF(){this.a=new st}function wY(){this.a=new st}function x0e(){this.a=new st}function gf(){this.a=new Al}function V0(){this.a=new P0t}function C0e(){this.a=new _1e}function A0e(){this.a=new kgt}function T0e(){this.a=new Ddt}function jst(){this.a=new st}function Fst(){this.a=new st}function Bst(){this.a=new st}function $0e(){this.a=new st}function Wst(){this.d=new st}function Hst(){this.a=new Ggt}function Ust(){this.a=new Gi}function Gst(){this.a=new Fn}function Vst(){this.b=new Fn}function zst(){this.b=new st}function I0e(){this.e=new st}function Kst(){this.a=new Ytt}function qst(){this.d=new st}function Xst(){Xbt.call(this)}function Jst(){Xbt.call(this)}function Yst(){st.call(this)}function P0e(){E0e.call(this)}function O0e(){tF.call(this)}function Qst(){sB.call(this)}function Zst(){$0e.call(this)}function n$(){kst.call(this)}function mY(){n$.call(this)}function Pk(){kst.call(this)}function N0e(){Pk.call(this)}function elt(){j0e.call(this)}function tlt(){j0e.call(this)}function nlt(){j0e.call(this)}function rlt(){F0e.call(this)}function r$(){iZe.call(this)}function M0e(){iZe.call(this)}function cc(){li.call(this)}function ilt(){ylt.call(this)}function olt(){ylt.call(this)}function slt(){Fn.call(this)}function llt(){Fn.call(this)}function alt(){Fn.call(this)}function yY(){ryt.call(this)}function clt(){Gi.call(this)}function ult(){Zj.call(this)}function vY(){mme.call(this)}function D0e(){Fn.call(this)}function _Y(){mme.call(this)}function SY(){Fn.call(this)}function flt(){Fn.call(this)}function L0e(){Hj.call(this)}function dlt(){L0e.call(this)}function hlt(){Hj.call(this)}function plt(){j1e.call(this)}function j0e(){this.a=new Gi}function blt(){this.a=new Fn}function glt(){this.a=new st}function F0e(){this.a=new Fn}function Ok(){this.a=new li}function wlt(){this.j=new st}function mlt(){this.a=new gat}function ylt(){this.a=new pZe}function B0e(){this.a=new XYe}function i$(){i$=F,Joe=new y}function EY(){EY=F,Yoe=new _lt}function kY(){kY=F,Qoe=new vlt}function vlt(){rY.call(this,"")}function _lt(){rY.call(this,"")}function Slt(e){xmt.call(this,e)}function Elt(e){xmt.call(this,e)}function W0e(e){U1e.call(this,e)}function H0e(e){Vat.call(this,e)}function Gpn(e){Vat.call(this,e)}function Vpn(e){H0e.call(this,e)}function zpn(e){H0e.call(this,e)}function Kpn(e){H0e.call(this,e)}function klt(e){nee.call(this,e)}function Rlt(e){nee.call(this,e)}function xlt(e){iht.call(this,e)}function Clt(e){fwe.call(this,e)}function o$(e){dF.call(this,e)}function U0e(e){dF.call(this,e)}function Alt(e){dF.call(this,e)}function G0e(e){bIn.call(this,e)}function V0e(e){G0e.call(this,e)}function vl(e){Rpt.call(this,e)}function Tlt(e){vl.call(this,e)}function Nk(){IO.call(this,{})}function $lt(){$lt=F,f6t=new be}function nF(){nF=F,tse=new xft}function Ilt(){Ilt=F,WAe=new v}function z0e(){z0e=F,HAe=new te}function rF(){rF=F,OI=new Ee}function RY(e){tC(),this.a=e}function xY(e){ySe(),this.a=e}function hm(e){uZ(),this.f=e}function CY(e){uZ(),this.f=e}function Plt(e){dht(),this.a=e}function Olt(e){e.b=null,e.c=0}function qpn(e,t){e.e=t,d3t(e,t)}function Xpn(e,t){e.a=t,n5n(e)}function AY(e,t,i){e.a[t.g]=i}function Jpn(e,t,i){w$n(i,e,t)}function Ypn(e,t){z0n(t.i,e.n)}function Nlt(e,t){gxn(e).Cd(t)}function Qpn(e,t){e.a.ec().Mc(t)}function Mlt(e,t){return e.g-t.g}function Zpn(e,t){return e*e/t}function wt(e){return mn(e),e}function Ae(e){return mn(e),e}function LO(e){return mn(e),e}function ebn(e){return new Gj(e)}function tbn(e){return new Bv(e)}function K0e(e){return mn(e),e}function nbn(e){return mn(e),e}function iF(e){vl.call(this,e)}function Hs(e){vl.call(this,e)}function Dlt(e){vl.call(this,e)}function TY(e){Rpt.call(this,e)}function Gx(e){vl.call(this,e)}function hn(e){vl.call(this,e)}function Us(e){vl.call(this,e)}function Llt(e){vl.call(this,e)}function Mk(e){vl.call(this,e)}function ng(e){vl.call(this,e)}function rg(e){vl.call(this,e)}function Dk(e){vl.call(this,e)}function $h(e){vl.call(this,e)}function $Y(e){vl.call(this,e)}function ar(e){vl.call(this,e)}function kc(e){mn(e),this.a=e}function q0e(e){return fw(e),e}function s$(e){sve(e,e.length)}function l$(e){return e.b==e.c}function Cv(e){return!!e&&e.b}function rbn(e){return!!e&&e.k}function ibn(e){return!!e&&e.j}function obn(e,t,i){e.c.Ef(t,i)}function jlt(e,t){e.be(t),t.ae(e)}function Lk(e){Dh(),this.a=nr(e)}function IY(){this.a=or(nr(ds))}function Flt(){throw ne(new rr)}function sbn(){throw ne(new rr)}function X0e(){throw ne(new rr)}function Blt(){throw ne(new rr)}function lbn(){throw ne(new rr)}function abn(){throw ne(new rr)}function oF(){oF=F,mC()}function ig(){PO.call(this,"")}function a$(){PO.call(this,"")}function m1(){PO.call(this,"")}function jk(){PO.call(this,"")}function J0e(e){Hs.call(this,e)}function Y0e(e){Hs.call(this,e)}function Ih(e){hn.call(this,e)}function Vx(e){jx.call(this,e)}function Wlt(e){Vx.call(this,e)}function PY(e){tB.call(this,e)}function OY(e){$me.call(this,e,0)}function NY(){Hve.call(this,12,3)}function ie(e,t){return mgt(e,t)}function sF(e,t){return wee(e,t)}function cbn(e,t){return e.a-t.a}function ubn(e,t){return e.a-t.a}function fbn(e,t){return e.a-t.a}function dbn(e,t){return t in e.a}function Hlt(e){return e.a?e.b:0}function hbn(e){return e.a?e.b:0}function pbn(e,t,i){t.Cd(e.a[i])}function bbn(e,t,i){t.Pe(e.a[i])}function gbn(e,t){e.b=new us(t)}function wbn(e,t){return e.b=t,e}function Ult(e,t){return e.c=t,e}function Glt(e,t){return e.f=t,e}function mbn(e,t){return e.g=t,e}function Q0e(e,t){return e.a=t,e}function Z0e(e,t){return e.f=t,e}function ybn(e,t){return e.k=t,e}function ewe(e,t){return e.a=t,e}function vbn(e,t){return e.e=t,e}function twe(e,t){return e.e=t,e}function _bn(e,t){return e.f=t,e}function Sbn(e,t){e.b=!0,e.d=t}function Ebn(e,t){return e.b-t.b}function kbn(e,t){return e.g-t.g}function Rbn(e,t){return e?0:t-1}function Vlt(e,t){return e?0:t-1}function xbn(e,t){return e?t-1:0}function Cbn(e,t){return e.s-t.s}function Abn(e,t){return t.rg(e)}function pm(e,t){return e.b=t,e}function lF(e,t){return e.a=t,e}function bm(e,t){return e.c=t,e}function gm(e,t){return e.d=t,e}function wm(e,t){return e.e=t,e}function nwe(e,t){return e.f=t,e}function c$(e,t){return e.a=t,e}function zx(e,t){return e.b=t,e}function Kx(e,t){return e.c=t,e}function xt(e,t){return e.c=t,e}function Ut(e,t){return e.b=t,e}function Ct(e,t){return e.d=t,e}function At(e,t){return e.e=t,e}function Tbn(e,t){return e.f=t,e}function Tt(e,t){return e.g=t,e}function $t(e,t){return e.a=t,e}function It(e,t){return e.i=t,e}function Pt(e,t){return e.j=t,e}function $bn(e,t){W1(),Sl(t,e)}function Ibn(e,t,i){Kyn(e.a,t,i)}function aF(e){VQ.call(this,e)}function zlt(e){JCn.call(this,e)}function Klt(e){xbt.call(this,e)}function rwe(e){xbt.call(this,e)}function y1(e){Gm.call(this,e)}function qlt(e){NZ.call(this,e)}function Xlt(e){NZ.call(this,e)}function Jlt(){dme.call(this,"")}function Io(){this.a=0,this.b=0}function Ylt(){this.b=0,this.a=0}function Qlt(e,t){e.b=0,Jv(e,t)}function Zlt(e,t){return e.k=t,e}function Pbn(e,t){return e.j=t,e}function Obn(e,t){e.c=t,e.b=!0}function eat(){eat=F,k6t=G$n()}function v1(){v1=F,wDt=t$n()}function tat(){tat=F,_o=h6n()}function iwe(){iwe=F,h0=OC()}function qx(){qx=F,kOe=n$n()}function nat(){nat=F,tLt=r$n()}function owe(){owe=F,zl=ZIn()}function kd(e){return e.e&&e.e()}function rat(e){return e.l|e.m<<22}function iat(e,t){return e.c._b(t)}function oat(e,t){return n_t(e.b,t)}function MY(e){return e?e.d:null}function Nbn(e){return e?e.g:null}function Mbn(e){return e?e.i:null}function z0(e){return cb(e),e.o}function NS(e,t){return e.a+=t,e}function DY(e,t){return e.a+=t,e}function og(e,t){return e.a+=t,e}function mm(e,t){return e.a+=t,e}function swe(e,t){for(;e.Bd(t););}function cF(e){this.a=new Fk(e)}function sat(){throw ne(new rr)}function lat(){throw ne(new rr)}function aat(){throw ne(new rr)}function cat(){throw ne(new rr)}function uat(){throw ne(new rr)}function fat(){throw ne(new rr)}function sg(e){this.a=new hZ(e)}function dat(){this.a=new G6(y5e)}function hat(){this.b=new G6(jIe)}function pat(){this.a=new G6(U5e)}function bat(){this.b=new G6(Kae)}function gat(){this.b=new G6(Kae)}function uF(e){this.a=0,this.b=e}function lwe(e){Gxt(),Cjn(this,e)}function Xx(e){return A1(e),e.a}function jO(e){return e.b!=e.d.c}function awe(e,t){return e.d[t.p]}function wat(e,t){return GOn(e,t)}function cwe(e,t,i){e.splice(t,i)}function MS(e,t){for(;e.Re(t););}function mat(e){e.c?$3t(e):I3t(e)}function yat(){throw ne(new rr)}function vat(){throw ne(new rr)}function _at(){throw ne(new rr)}function Sat(){throw ne(new rr)}function Eat(){throw ne(new rr)}function kat(){throw ne(new rr)}function Rat(){throw ne(new rr)}function xat(){throw ne(new rr)}function Cat(){throw ne(new rr)}function Aat(){throw ne(new rr)}function Dbn(){throw ne(new yl)}function Lbn(){throw ne(new yl)}function FO(e){this.a=new Tat(e)}function Tat(e){W3n(this,e,yIn())}function BO(e){return!e||obt(e)}function WO(e){return _h[e]!=-1}function jbn(){SG!=0&&(SG=0),EG=-1}function $at(){Xoe==null&&(Xoe=[])}function HO(e,t){XS.call(this,e,t)}function Jx(e,t){HO.call(this,e,t)}function Iat(e,t){this.a=e,this.b=t}function Pat(e,t){this.a=e,this.b=t}function Oat(e,t){this.a=e,this.b=t}function Nat(e,t){this.a=e,this.b=t}function Mat(e,t){this.a=e,this.b=t}function Dat(e,t){this.a=e,this.b=t}function Lat(e,t){this.a=e,this.b=t}function Yx(e,t){this.e=e,this.d=t}function uwe(e,t){this.b=e,this.c=t}function jat(e,t){this.b=e,this.a=t}function Fat(e,t){this.b=e,this.a=t}function Bat(e,t){this.b=e,this.a=t}function Wat(e,t){this.b=e,this.a=t}function Hat(e,t){this.a=e,this.b=t}function LY(e,t){this.a=e,this.b=t}function Uat(e,t){this.a=e,this.f=t}function ym(e,t){this.g=e,this.i=t}function Jn(e,t){this.f=e,this.g=t}function Gat(e,t){this.b=e,this.c=t}function Vat(e){vme(e.dc()),this.c=e}function Fbn(e,t){this.a=e,this.b=t}function zat(e,t){this.a=e,this.b=t}function Kat(e){this.a=f(nr(e),15)}function fwe(e){this.a=f(nr(e),15)}function qat(e){this.a=f(nr(e),85)}function fF(e){this.b=f(nr(e),85)}function dF(e){this.b=f(nr(e),51)}function hF(){this.q=new h.Date}function jY(e,t){this.a=e,this.b=t}function Xat(e,t){return Na(e.b,t)}function UO(e,t){return e.b.Hc(t)}function Jat(e,t){return e.b.Ic(t)}function Yat(e,t){return e.b.Qc(t)}function Qat(e,t){return e.b.Hc(t)}function Zat(e,t){return e.c.uc(t)}function ect(e,t){return Lr(e.c,t)}function Rd(e,t){return e.a._b(t)}function tct(e,t){return e>t&&t0}function GY(e,t){return Jl(e,t)<0}function wct(e,t){return sZ(e.a,t)}function ign(e,t){ygt.call(this,e,t)}function mwe(e){RZ(),iht.call(this,e)}function ywe(e,t){dpt(e,e.length,t)}function KO(e,t){Bpt(e,e.length,t)}function w$(e,t){return e.a.get(t)}function mct(e,t){return Na(e.e,t)}function vwe(e){return mn(e),!1}function _we(e){this.a=f(nr(e),229)}function SF(e){Vt.call(this,e,21)}function EF(e,t){Jn.call(this,e,t)}function VY(e,t){Jn.call(this,e,t)}function yct(e,t){this.b=e,this.a=t}function kF(e,t){this.d=e,this.e=t}function vct(e,t){this.a=e,this.b=t}function _ct(e,t){this.a=e,this.b=t}function Sct(e,t){this.a=e,this.b=t}function Ect(e,t){this.a=e,this.b=t}function Wk(e,t){this.a=e,this.b=t}function kct(e,t){this.b=e,this.a=t}function Swe(e,t){this.b=e,this.a=t}function Ewe(e,t){Jn.call(this,e,t)}function kwe(e,t){Jn.call(this,e,t)}function DS(e,t){Jn.call(this,e,t)}function zY(e,t){Jn.call(this,e,t)}function KY(e,t){Jn.call(this,e,t)}function qY(e,t){Jn.call(this,e,t)}function RF(e,t){Jn.call(this,e,t)}function Rwe(e,t){this.b=e,this.a=t}function xF(e,t){Jn.call(this,e,t)}function xwe(e,t){this.b=e,this.a=t}function CF(e,t){Jn.call(this,e,t)}function Rct(e,t){this.b=e,this.a=t}function Cwe(e,t){Jn.call(this,e,t)}function XY(e,t){Jn.call(this,e,t)}function qO(e,t){Jn.call(this,e,t)}function m$(e,t,i){e.splice(t,0,i)}function ogn(e,t,i){e.Mb(i)&&t.Cd(i)}function sgn(e,t,i){t.Pe(e.a.Ye(i))}function lgn(e,t,i){t.Dd(e.a.Ze(i))}function agn(e,t,i){t.Cd(e.a.Kb(i))}function cgn(e,t){return fc(e.c,t)}function ugn(e,t){return fc(e.e,t)}function AF(e,t){Jn.call(this,e,t)}function TF(e,t){Jn.call(this,e,t)}function y$(e,t){Jn.call(this,e,t)}function Awe(e,t){Jn.call(this,e,t)}function Vi(e,t){Jn.call(this,e,t)}function $F(e,t){Jn.call(this,e,t)}function xct(e,t){this.a=e,this.b=t}function Cct(e,t){this.a=e,this.b=t}function Act(e,t){this.a=e,this.b=t}function Tct(e,t){this.a=e,this.b=t}function $ct(e,t){this.a=e,this.b=t}function Ict(e,t){this.a=e,this.b=t}function Pct(e,t){this.b=e,this.a=t}function Oct(e,t){this.b=e,this.a=t}function Twe(e,t){this.b=e,this.a=t}function eC(e,t){this.c=e,this.d=t}function Nct(e,t){this.e=e,this.d=t}function Mct(e,t){this.a=e,this.b=t}function Dct(e,t){this.a=e,this.b=t}function Lct(e,t){this.a=e,this.b=t}function jct(e,t){this.b=e,this.a=t}function Fct(e,t){this.b=t,this.c=e}function IF(e,t){Jn.call(this,e,t)}function XO(e,t){Jn.call(this,e,t)}function JY(e,t){Jn.call(this,e,t)}function $we(e,t){Jn.call(this,e,t)}function v$(e,t){Jn.call(this,e,t)}function YY(e,t){Jn.call(this,e,t)}function QY(e,t){Jn.call(this,e,t)}function JO(e,t){Jn.call(this,e,t)}function Iwe(e,t){Jn.call(this,e,t)}function ZY(e,t){Jn.call(this,e,t)}function _$(e,t){Jn.call(this,e,t)}function Pwe(e,t){Jn.call(this,e,t)}function S$(e,t){Jn.call(this,e,t)}function E$(e,t){Jn.call(this,e,t)}function Tv(e,t){Jn.call(this,e,t)}function eQ(e,t){Jn.call(this,e,t)}function tQ(e,t){Jn.call(this,e,t)}function Owe(e,t){Jn.call(this,e,t)}function YO(e,t){Jn.call(this,e,t)}function LS(e,t){Jn.call(this,e,t)}function nQ(e,t){Jn.call(this,e,t)}function PF(e,t){Jn.call(this,e,t)}function QO(e,t){Jn.call(this,e,t)}function $v(e,t){Jn.call(this,e,t)}function OF(e,t){Jn.call(this,e,t)}function Nwe(e,t){Jn.call(this,e,t)}function rQ(e,t){Jn.call(this,e,t)}function iQ(e,t){Jn.call(this,e,t)}function oQ(e,t){Jn.call(this,e,t)}function sQ(e,t){Jn.call(this,e,t)}function lQ(e,t){Jn.call(this,e,t)}function aQ(e,t){Jn.call(this,e,t)}function cQ(e,t){Jn.call(this,e,t)}function Bct(e,t){this.b=e,this.a=t}function Mwe(e,t){Jn.call(this,e,t)}function Wct(e,t){this.a=e,this.b=t}function Hct(e,t){this.a=e,this.b=t}function Uct(e,t){this.a=e,this.b=t}function Dwe(e,t){Jn.call(this,e,t)}function Lwe(e,t){Jn.call(this,e,t)}function Gct(e,t){this.a=e,this.b=t}function fgn(e,t){return lC(),t!=e}function ZO(e){return In(e.a),e.b}function uQ(e){return m8n(e,e.c),e}function Vct(){return eat(),new k6t}function zct(){fB(),this.a=new eye}function Kct(){qH(),this.a=new Gi}function qct(){GZ(),this.b=new Gi}function Xct(e,t){this.b=e,this.d=t}function Jct(e,t){this.a=e,this.b=t}function Yct(e,t){this.a=e,this.b=t}function Qct(e,t){this.a=e,this.b=t}function Zct(e,t){this.b=e,this.a=t}function jwe(e,t){Jn.call(this,e,t)}function Fwe(e,t){Jn.call(this,e,t)}function NF(e,t){Jn.call(this,e,t)}function Sm(e,t){Jn.call(this,e,t)}function fQ(e,t){Jn.call(this,e,t)}function MF(e,t){Jn.call(this,e,t)}function Bwe(e,t){Jn.call(this,e,t)}function Wwe(e,t){Jn.call(this,e,t)}function e7(e,t){Jn.call(this,e,t)}function Hwe(e,t){Jn.call(this,e,t)}function dQ(e,t){Jn.call(this,e,t)}function DF(e,t){Jn.call(this,e,t)}function hQ(e,t){Jn.call(this,e,t)}function pQ(e,t){Jn.call(this,e,t)}function bQ(e,t){Jn.call(this,e,t)}function gQ(e,t){Jn.call(this,e,t)}function Uwe(e,t){Jn.call(this,e,t)}function wQ(e,t){Jn.call(this,e,t)}function Gwe(e,t){Jn.call(this,e,t)}function t7(e,t){Jn.call(this,e,t)}function mQ(e,t){Jn.call(this,e,t)}function Vwe(e,t){Jn.call(this,e,t)}function n7(e,t){Jn.call(this,e,t)}function zwe(e,t){Jn.call(this,e,t)}function eut(e,t){this.b=e,this.a=t}function tut(e,t){this.b=e,this.a=t}function nut(e,t){this.b=e,this.a=t}function rut(e,t){this.b=e,this.a=t}function Kwe(e,t){this.a=e,this.b=t}function iut(e,t){this.a=e,this.b=t}function out(e,t){this.a=e,this.b=t}function tt(e,t){this.a=e,this.b=t}function k$(e,t){Jn.call(this,e,t)}function r7(e,t){Jn.call(this,e,t)}function Hk(e,t){Jn.call(this,e,t)}function R$(e,t){Jn.call(this,e,t)}function i7(e,t){Jn.call(this,e,t)}function yQ(e,t){Jn.call(this,e,t)}function LF(e,t){Jn.call(this,e,t)}function x$(e,t){Jn.call(this,e,t)}function vQ(e,t){Jn.call(this,e,t)}function jF(e,t){Jn.call(this,e,t)}function jS(e,t){Jn.call(this,e,t)}function o7(e,t){Jn.call(this,e,t)}function C$(e,t){Jn.call(this,e,t)}function A$(e,t){Jn.call(this,e,t)}function s7(e,t){Jn.call(this,e,t)}function FF(e,t){Jn.call(this,e,t)}function FS(e,t){Jn.call(this,e,t)}function _Q(e,t){Jn.call(this,e,t)}function sut(e,t){Jn.call(this,e,t)}function BF(e,t){Jn.call(this,e,t)}function lut(e,t){this.a=e,this.b=t}function aut(e,t){this.a=e,this.b=t}function cut(e,t){this.a=e,this.b=t}function uut(e,t){this.a=e,this.b=t}function fut(e,t){this.a=e,this.b=t}function dut(e,t){this.a=e,this.b=t}function io(e,t){this.a=e,this.b=t}function hut(e,t){this.a=e,this.b=t}function put(e,t){this.a=e,this.b=t}function but(e,t){this.a=e,this.b=t}function gut(e,t){this.a=e,this.b=t}function wut(e,t){this.a=e,this.b=t}function mut(e,t){this.a=e,this.b=t}function yut(e,t){this.b=e,this.a=t}function vut(e,t){this.b=e,this.a=t}function _ut(e,t){this.b=e,this.a=t}function Sut(e,t){this.b=e,this.a=t}function Eut(e,t){this.a=e,this.b=t}function kut(e,t){this.a=e,this.b=t}function WF(e,t){Jn.call(this,e,t)}function Rut(e,t){this.a=e,this.b=t}function xut(e,t){this.a=e,this.b=t}function Uk(e,t){Jn.call(this,e,t)}function Cut(e,t){this.f=e,this.c=t}function qwe(e,t){return fc(e.g,t)}function dgn(e,t){return fc(t.b,e)}function Aut(e,t){return Rte(e.a,t)}function hgn(e,t){return-e.b.af(t)}function pgn(e,t){e&&xr(X9,e,t)}function Xwe(e,t){e.i=null,LW(e,t)}function bgn(e,t,i){y2t(t,wne(e,i))}function ggn(e,t,i){y2t(t,wne(e,i))}function wgn(e,t){VPn(e.a,f(t,58))}function Tut(e,t){Wkn(e.a,f(t,12))}function HF(e,t){this.a=e,this.b=t}function $ut(e,t){this.a=e,this.b=t}function Iut(e,t){this.a=e,this.b=t}function Put(e,t){this.a=e,this.b=t}function Out(e,t){this.a=e,this.b=t}function Nut(e,t){this.d=e,this.b=t}function Mut(e,t){this.e=e,this.a=t}function l7(e,t){this.b=e,this.c=t}function Jwe(e,t){this.i=e,this.g=t}function Ywe(e,t){this.d=e,this.e=t}function mgn(e,t){n3n(new Sn(e),t)}function UF(e){return kN(e.c,e.b)}function tl(e){return e?e.md():null}function Ne(e){return e??null}function Eo(e){return typeof e===ure}function Iv(e){return typeof e===$3}function Pv(e){return typeof e===K3e}function Em(e,t){return Jl(e,t)==0}function GF(e,t){return Jl(e,t)>=0}function T$(e,t){return Jl(e,t)!=0}function VF(e,t){return yRn(e.Kc(),t)}function E1(e,t){return e.Rd().Xb(t)}function Dut(e){return Hc(e),e.d.gc()}function zF(e){return W$(e==null),e}function $$(e,t){return e.a+=""+t,e}function Ms(e,t){return e.a+=""+t,e}function I$(e,t){return e.a+=""+t,e}function aa(e,t){return e.a+=""+t,e}function br(e,t){return e.a+=""+t,e}function Qwe(e,t){return e.a+=""+t,e}function ygn(e){return""+(mn(e),e)}function Lut(e){xc(this),h6(this,e)}function jut(){Wve(),Kye.call(this)}function Fut(e,t){Qye.call(this,e,t)}function But(e,t){Qye.call(this,e,t)}function KF(e,t){Qye.call(this,e,t)}function cs(e,t){Ai(e,t,e.c.b,e.c)}function BS(e,t){Ai(e,t,e.a,e.a.a)}function Zwe(e){return Xt(e,0),null}function Wut(){this.b=0,this.a=!1}function Hut(){this.b=0,this.a=!1}function Uut(){this.b=new Fk(qv(12))}function Gut(){Gut=F,mIt=Qn(Pte())}function Vut(){Vut=F,B5t=Qn(t3t())}function zut(){zut=F,cNt=Qn(Nyt())}function eme(){eme=F,_0e(),UAe=new Fn}function xd(e){return e.a=0,e.b=0,e}function Kut(e,t){return e.a=t.g+1,e}function SQ(e,t){Lv.call(this,e,t)}function Bt(e,t){_i.call(this,e,t)}function WS(e,t){Jwe.call(this,e,t)}function qut(e,t){f7.call(this,e,t)}function EQ(e,t){FC.call(this,e,t)}function kr(e,t){vF(),xr(jz,e,t)}function Xut(e,t){e.q.setTime(rw(t))}function vgn(e){h.clearTimeout(e)}function _gn(e){return nr(e),new P$(e)}function Jut(e,t){return Ne(e)===Ne(t)}function Yut(e,t){return e.a.a.a.cc(t)}function kQ(e,t){return Vu(e.a,0,t)}function tme(e){return kvn(f(e,74))}function Gk(e){return oo((mn(e),e))}function Sgn(e){return oo((mn(e),e))}function Qut(e){return Oa(e.l,e.m,e.h)}function nme(e,t){return Xl(e.a,t.a)}function Egn(e,t){return jpt(e.a,t.a)}function kgn(e,t){return Qr(e.a,t.a)}function Ph(e,t){return e.indexOf(t)}function Rgn(e,t){return e.j[t.p]==2}function km(e,t){return e==t?0:e?1:-1}function qF(e){return e<10?"0"+e:""+e}function ul(e){return typeof e===K3e}function xgn(e){return e==vy||e==C_}function Cgn(e){return e==vy||e==x_}function Zut(e,t){return Xl(e.g,t.g)}function rme(e){return il(e.b.b,e,0)}function eft(){_B.call(this,0,0,0,0)}function Oh(){i0e.call(this,new hg)}function ime(e,t){kC(e,0,e.length,t)}function Agn(e,t){return lt(e.a,t),t}function Tgn(e,t){return Qf(),t.a+=e}function $gn(e,t){return Qf(),t.a+=e}function Ign(e,t){return Qf(),t.c+=e}function Pgn(e,t){return lt(e.c,t),e}function ome(e,t){return Eu(e.a,t),e}function tft(e){this.a=Vct(),this.b=e}function nft(e){this.a=Vct(),this.b=e}function us(e){this.a=e.a,this.b=e.b}function P$(e){this.a=e,tY.call(this)}function rft(e){this.a=e,tY.call(this)}function Vk(){Gu.call(this,0,0,0,0)}function XF(e){return Eu(new Ki,e)}function ift(e){return FB(f(e,123))}function eu(e){return e.vh()&&e.wh()}function HS(e){return e!=mh&&e!=u0}function ab(e){return e==Js||e==al}function US(e){return e==cf||e==gh}function oft(e){return e==Z2||e==Q2}function Ogn(e,t){return Xl(e.g,t.g)}function sft(e,t){return new FC(t,e)}function Ngn(e,t){return new FC(t,e)}function sme(e){return tyn(e.b.Kc(),e.a)}function RQ(e,t){KC(e,t),PC(e,e.D)}function xQ(e,t,i){TW(e,t),AW(e,i)}function GS(e,t,i){zm(e,t),Vm(e,i)}function Wu(e,t,i){Da(e,t),La(e,i)}function a7(e,t,i){AC(e,t),$C(e,i)}function c7(e,t,i){TC(e,t),IC(e,i)}function lft(e,t,i){Hme.call(this,e,t,i)}function lme(e){Cut.call(this,e,!0)}function aft(){EF.call(this,"Tail",3)}function cft(){EF.call(this,"Head",1)}function k1(e){Uh(),bRn.call(this,e)}function Rm(e){_B.call(this,e,e,e,e)}function CQ(e){e.c=Fe(ho,on,1,0,5,1)}function ame(e){return e.b&&zne(e),e.a}function cme(e){return e.b&&zne(e),e.c}function Mgn(e,t){fh||(e.b=t)}function Dgn(e,t){return e[e.length]=t}function Lgn(e,t){return e[e.length]=t}function jgn(e,t){return Xv(t,Xd(e))}function Fgn(e,t){return Xv(t,Xd(e))}function Bgn(e,t){return NW(EZ(e.d),t)}function Wgn(e,t){return NW(EZ(e.g),t)}function Hgn(e,t){return NW(EZ(e.j),t)}function Po(e,t){_i.call(this,e.b,t)}function Ugn(e,t){zn(ra(e.a),$gt(t))}function Ggn(e,t){zn(Wc(e.a),Igt(t))}function Vgn(e,t,i){Wu(i,i.i+e,i.j+t)}function uft(e,t,i){Ci(e.c[t.g],t.g,i)}function zgn(e,t,i){f(e.c,71).Gi(t,i)}function AQ(e,t,i){return Ci(e,t,i),i}function fft(e){Ma(e.Sf(),new $rt(e))}function VS(e){return e!=null?ti(e):0}function Kgn(e){return e==null?0:ti(e)}function O$(e){Or(),fm.call(this,e)}function dft(e){this.a=e,Eye.call(this,e)}function Kd(){Kd=F,h.Math.log(2)}function Hu(){Hu=F,Bp=(bct(),EDt)}function hft(){hft=F,aae=new x6(Sce)}function ir(){ir=F,new pft,new st}function pft(){new Fn,new Fn,new Fn}function qgn(){throw ne(new ng(X$t))}function Xgn(){throw ne(new ng(X$t))}function Jgn(){throw ne(new ng(J$t))}function Ygn(){throw ne(new ng(J$t))}function TQ(e){this.a=e,fF.call(this,e)}function $Q(e){this.a=e,fF.call(this,e)}function bft(e,t){Nm(),this.a=e,this.b=t}function Qgn(e,t){nr(t),YS(e).Jc(new H)}function Hi(e,t){lZ(e.c,e.c.length,t)}function _l(e){return e.at?1:0}function fme(e,t){return Jl(e,t)>0?e:t}function Oa(e,t,i){return{l:e,m:t,h:i}}function Zgn(e,t){e.a!=null&&Tut(t,e.a)}function e1n(e){rs(e,null),xo(e,null)}function t1n(e,t,i){return xr(e.g,i,t)}function zS(e,t,i){return N2e(t,i,e.c)}function n1n(e,t,i){return xr(e.k,i,t)}function r1n(e,t,i){return HDn(e,t,i),i}function i1n(e,t){return mu(),t.n.b+=e}function wft(e){Nve.call(this),this.b=e}function dme(e){Zme.call(this),this.a=e}function mft(){EF.call(this,"Range",2)}function JF(e){this.b=e,this.a=new st}function yft(e){this.b=new Wo,this.a=e}function vft(e){e.a=new ct,e.c=new ct}function _ft(e){e.a=new Fn,e.d=new Fn}function Sft(e){VZ(e,null),zZ(e,null)}function Eft(e,t){return GDn(e.a,t,null)}function o1n(e,t){return xr(e.a,t.a,t)}function Ho(e){return new tt(e.a,e.b)}function hme(e){return new tt(e.c,e.d)}function s1n(e){return new tt(e.c,e.d)}function N$(e,t){return nDn(e.c,e.b,t)}function ve(e,t){return e!=null&&Dte(e,t)}function IQ(e,t){return XRn(e.Kc(),t)!=-1}function YF(e){return e.Ob()?e.Pb():null}function l1n(e){this.b=(qt(),new fY(e))}function pme(e){this.a=e,Fn.call(this)}function kft(){f7.call(this,null,null)}function Rft(){iB.call(this,null,null)}function xft(){Jn.call(this,"INSTANCE",0)}function Cft(){hEe(),this.a=new G6(uTe)}function Aft(e){return Bh(e,0,e.length)}function a1n(e,t){return new zft(e.Kc(),t)}function bme(e,t){return e.a.Bc(t)!=null}function Tft(e,t){Vn(e),e.Gc(f(t,15))}function c1n(e,t,i){e.c.bd(t,f(i,136))}function u1n(e,t,i){e.c.Ui(t,f(i,136))}function $ft(e,t){e.c&&(Dye(t),ngt(t))}function f1n(e,t){e.q.setHours(t),X6(e,t)}function d1n(e,t){Am(t,e.a.a.a,e.a.a.b)}function h1n(e,t,i,s){Ci(e.a[t.g],i.g,s)}function PQ(e,t,i){return e.a[t.g][i.g]}function p1n(e,t){return e.e[t.c.p][t.p]}function b1n(e,t){return e.c[t.c.p][t.p]}function qd(e,t){return e.a[t.c.p][t.p]}function g1n(e,t){return e.j[t.p]=CPn(t)}function OQ(e,t){return e.a.Bc(t)!=null}function w1n(e,t){return Ae(je(t.a))<=e}function m1n(e,t){return Ae(je(t.a))>=e}function y1n(e,t){return y_e(e.f,t.Pg())}function zk(e,t){return e.a*t.a+e.b*t.b}function v1n(e,t){return e.a0?t/(e*e):t*100}function V1n(e,t){return e>0?t*t/e:t*t*100}function Ov(e,t){return f(th(e.a,t),34)}function z1n(e,t){return W1(),Gt(e,t.e,t)}function K1n(e,t,i){return wF(),i.Mg(e,t)}function q1n(e){return mb(),e.e.a+e.f.a/2}function X1n(e,t,i){return mb(),i.e.a-e*t}function J1n(e){return mb(),e.e.b+e.f.b/2}function Y1n(e,t,i){return mb(),i.e.b-e*t}function sdt(e){e.d=new rdt(e),e.e=new Fn}function ldt(){this.a=new Bm,this.b=new Bm}function adt(e){this.c=e,this.a=1,this.b=1}function cdt(e){are(),xst(this),this.Ff(e)}function Q1n(e,t,i){bW(),e.pf(t)&&i.Cd(e)}function Z1n(e,t,i){return lt(t,v_t(e,i))}function Am(e,t,i){return e.a+=t,e.b+=i,e}function e0n(e,t,i){return e.a*=t,e.b*=i,e}function Ome(e,t){return e.a=t.a,e.b=t.b,e}function oB(e){return e.a=-e.a,e.b=-e.b,e}function j$(e,t,i){return e.a-=t,e.b-=i,e}function udt(e){li.call(this),c6(this,e)}function fdt(){Jn.call(this,"GROW_TREE",0)}function ddt(){Jn.call(this,"POLYOMINO",0)}function nu(e,t,i){pc.call(this,e,t,i,2)}function t0n(e,t,i){k6(ra(e.a),t,$gt(i))}function hdt(e,t){g$(),f7.call(this,e,t)}function Nme(e,t){lg(),iB.call(this,e,t)}function pdt(e,t){lg(),Nme.call(this,e,t)}function bdt(e,t){lg(),iB.call(this,e,t)}function n0n(e,t){return e.c.Fc(f(t,136))}function r0n(e,t,i){k6(Wc(e.a),t,Igt(i))}function gdt(e){this.c=e,Da(e,0),La(e,0)}function FQ(e,t){Hu(),kB.call(this,e,t)}function wdt(e,t){Hu(),FQ.call(this,e,t)}function Mme(e,t){Hu(),FQ.call(this,e,t)}function Dme(e,t){Hu(),kB.call(this,e,t)}function mdt(e,t){Hu(),Mme.call(this,e,t)}function ydt(e,t){Hu(),Dme.call(this,e,t)}function vdt(e,t){Hu(),kB.call(this,e,t)}function i0n(e,t,i){return t.zl(e.e,e.c,i)}function o0n(e,t,i){return t.Al(e.e,e.c,i)}function Lme(e,t,i){return sU(Y7(e,t),i)}function BQ(e,t){return D1(e.e,f(t,54))}function s0n(e){return e==null?null:ILn(e)}function l0n(e){return e==null?null:kIn(e)}function a0n(e){return e==null?null:dl(e)}function c0n(e){return e==null?null:dl(e)}function gt(e){return W$(e==null||Iv(e)),e}function je(e){return W$(e==null||Pv(e)),e}function or(e){return W$(e==null||Eo(e)),e}function cb(e){e.o==null&&nPn(e)}function jme(e){if(!e)throw ne(new DO)}function u0n(e){if(!e)throw ne(new gY)}function In(e){if(!e)throw ne(new yl)}function Nv(e){if(!e)throw ne(new ac)}function _dt(e){if(!e)throw ne(new Bu)}function oC(){oC=F,Y9=new ilt,new olt}function JS(){JS=F,nE=new Xr("root")}function Fme(){ryt.call(this),this.Bb|=ys}function f0n(e,t){this.d=e,rrt(this),this.b=t}function Bme(e,t){hee.call(this,e),this.a=t}function Wme(e,t){hee.call(this,e),this.a=t}function Hme(e,t,i){fW.call(this,e,t,i,null)}function Sdt(e,t,i){fW.call(this,e,t,i,null)}function p7(e,t){this.c=e,Yx.call(this,e,t)}function F$(e,t){this.a=e,p7.call(this,e,t)}function Ume(e){this.q=new h.Date(rw(e))}function Edt(e){return e>8?0:e+1}function kdt(e,t){fh||lt(e.a,t)}function d0n(e,t){return zO(),jC(t.d.i,e)}function h0n(e,t){return b3(),new eRt(t,e)}function p0n(e,t,i){return e.Ne(t,i)<=0?i:t}function b0n(e,t,i){return e.Ne(t,i)<=0?t:i}function g0n(e,t){return f(th(e.b,t),143)}function w0n(e,t){return f(th(e.c,t),233)}function WQ(e){return f(yt(e.a,e.b),294)}function Rdt(e){return new tt(e.c,e.d+e.a)}function xdt(e){return mn(e),e?1231:1237}function Cdt(e){return mu(),oft(f(e,203))}function Mv(){Mv=F,j4e=Mt((su(),Vw))}function m0n(e,t){t.a?S8n(e,t):OQ(e.a,t.b)}function b7(e,t,i){++e.j,e.tj(),dee(e,t,i)}function Adt(e,t,i){++e.j,e.qj(t,e.Zi(t,i))}function Tdt(e,t,i){var s;s=e.fd(t),s.Rb(i)}function Gme(e,t,i){return i=xu(e,t,6,i),i}function Vme(e,t,i){return i=xu(e,t,3,i),i}function zme(e,t,i){return i=xu(e,t,9,i),i}function Mh(e,t){return P7(t,gRe),e.f=t,e}function Kme(e,t){return(t&Nr)%e.d.length}function $dt(e,t,i){return x3e(e.c,e.b,t,i)}function Idt(e,t){this.c=e,Gm.call(this,t)}function Pdt(e,t){this.a=e,mst.call(this,t)}function g7(e,t){this.a=e,mst.call(this,t)}function _i(e,t){Xr.call(this,e),this.a=t}function qme(e,t){w0e.call(this,e),this.a=t}function HQ(e,t){w0e.call(this,e),this.a=t}function y0n(e){A2e.call(this,0,0),this.f=e}function Odt(e,t,i){return e.a+=Bh(t,0,i),e}function w7(e){return!e.a&&(e.a=new xe),e.a}function Xme(e,t){var i;return i=e.e,e.e=t,i}function Jme(e,t){var i;return i=t,!!e.Fe(i)}function v0n(e,t){return cn(),e==t?0:e?1:-1}function Dv(e,t){e.a.bd(e.b,t),++e.b,e.c=-1}function m7(e){e.b?m7(e.b):e.f.c.zc(e.e,e.d)}function Ndt(e){xc(e.e),e.d.b=e.d,e.d.a=e.d}function _0n(e,t,i){K0(),ert(e,t.Ve(e.a,i))}function Yme(e,t,i){return n3(e,f(t,22),i)}function Yf(e,t){return sF(new Array(t),e)}function S0n(e){return tr(x1(e,32))^tr(e)}function UQ(e){return String.fromCharCode(e)}function E0n(e){return e==null?null:e.message}function k0n(e,t,i){return e.apply(t,i)}function R0n(e,t){var i;i=e[Hre],i.call(e,t)}function x0n(e,t){var i;i=e[Hre],i.call(e,t)}function C0n(e,t){return zO(),!jC(t.d.i,e)}function Qme(e,t,i,s){_B.call(this,e,t,i,s)}function Mdt(){sB.call(this),this.a=new Io}function Zme(){this.n=new Io,this.o=new Io}function Ddt(){this.b=new Io,this.c=new st}function Ldt(){this.a=new st,this.b=new st}function jdt(){this.a=new _1e,this.b=new Dst}function eye(){this.b=new hg,this.a=new hg}function Fdt(){this.b=new Gi,this.a=new Gi}function Bdt(){this.b=new Fn,this.a=new Fn}function Wdt(){this.b=new hat,this.a=new jJe}function Hdt(){this.a=new Qtt,this.b=new TXe}function Udt(){this.a=new st,this.d=new st}function sB(){this.n=new Pk,this.i=new Vk}function Gdt(e){this.a=(Su(e,b_),new ka(e))}function Vdt(e){this.a=(Su(e,b_),new ka(e))}function A0n(e){return e<100?null:new y1(e)}function T0n(e,t){return e.n.a=(mn(t),t+10)}function $0n(e,t){return e.n.a=(mn(t),t+10)}function I0n(e,t){return t==e||lA(UH(t),e)}function zdt(e,t){return xr(e.a,t,"")==null}function P0n(e,t){var i;return i=t.qi(e.a),i}function Mr(e,t){return e.a+=t.a,e.b+=t.b,e}function uo(e,t){return e.a-=t.a,e.b-=t.b,e}function O0n(e){return xv(e.j.c,0),e.a=-1,e}function tye(e,t,i){return i=xu(e,t,11,i),i}function N0n(e,t,i){i!=null&&MW(t,Kte(e,i))}function M0n(e,t,i){i!=null&&DW(t,Kte(e,i))}function Xk(e,t,i,s){qe.call(this,e,t,i,s)}function nye(e,t,i,s){qe.call(this,e,t,i,s)}function Kdt(e,t,i,s){nye.call(this,e,t,i,s)}function qdt(e,t,i,s){IB.call(this,e,t,i,s)}function GQ(e,t,i,s){IB.call(this,e,t,i,s)}function rye(e,t,i,s){IB.call(this,e,t,i,s)}function Xdt(e,t,i,s){GQ.call(this,e,t,i,s)}function iye(e,t,i,s){GQ.call(this,e,t,i,s)}function en(e,t,i,s){rye.call(this,e,t,i,s)}function Jdt(e,t,i,s){iye.call(this,e,t,i,s)}function Ydt(e,t,i,s){nve.call(this,e,t,i,s)}function Lv(e,t){Hs.call(this,kI+e+xw+t)}function oye(e,t){return e.jk().wi().ri(e,t)}function sye(e,t){return e.jk().wi().ti(e,t)}function Qdt(e,t){return mn(e),Ne(e)===Ne(t)}function Ht(e,t){return mn(e),Ne(e)===Ne(t)}function D0n(e,t){return e.b.Bd(new _ct(e,t))}function L0n(e,t){return e.b.Bd(new Sct(e,t))}function Zdt(e,t){return e.b.Bd(new Ect(e,t))}function j0n(e,t){return e.e=f(e.d.Kb(t),159)}function lye(e,t,i){return e.lastIndexOf(t,i)}function F0n(e,t,i){return Qr(e[t.a],e[i.a])}function B0n(e,t){return Xe(t,(pt(),c9),e)}function W0n(e,t){return Xl(t.a.d.p,e.a.d.p)}function H0n(e,t){return Xl(e.a.d.p,t.a.d.p)}function U0n(e,t){return Qr(e.c-e.s,t.c-t.s)}function G0n(e,t){return Qr(e.b.e.a,t.b.e.a)}function V0n(e,t){return Qr(e.c.e.a,t.c.e.a)}function eht(e){return e.c?il(e.c.a,e,0):-1}function Jk(e){return e==Gw||e==jp||e==ya}function aye(e,t){this.c=e,wZ.call(this,e,t)}function tht(e,t,i){this.a=e,$me.call(this,t,i)}function nht(e){this.c=e,KF.call(this,aM,0)}function rht(e,t,i){this.c=t,this.b=i,this.a=e}function y7(e){lC(),this.d=e,this.a=new qS}function iht(e){Dh(),this.a=(qt(),new Vx(e))}function z0n(e,t){ab(e.f)?q8n(e,t):R6n(e,t)}function oht(e,t){oyn.call(this,e,e.length,t)}function K0n(e,t){fh||t&&(e.d=t)}function sht(e,t){return ve(t,15)&&N3t(e.c,t)}function q0n(e,t,i){return f(e.c,71).Wk(t,i)}function lB(e,t,i){return f(e.c,71).Xk(t,i)}function X0n(e,t,i){return i0n(e,f(t,343),i)}function cye(e,t,i){return o0n(e,f(t,343),i)}function J0n(e,t,i){return C2t(e,f(t,343),i)}function lht(e,t,i){return j6n(e,f(t,343),i)}function B$(e,t){return t==null?null:Zv(e.b,t)}function uye(e){return Pv(e)?(mn(e),e):e.ue()}function aB(e){return!isNaN(e)&&!isFinite(e)}function VQ(e){vft(this),wu(this),Do(this,e)}function Rc(e){CQ(this),xye(this.c,0,e.Pc())}function Uu(e,t,i){this.a=e,this.b=t,this.c=i}function aht(e,t,i){this.a=e,this.b=t,this.c=i}function cht(e,t,i){this.d=e,this.b=i,this.a=t}function uht(e){this.a=e,lb(),Gl(Date.now())}function fht(e){iu(e.a),R_e(e.c,e.b),e.b=null}function zQ(){zQ=F,f4e=new at,R6t=new Ye}function dht(){dht=F,ADt=Fe(ho,on,1,0,5,1)}function hht(){hht=F,zDt=Fe(ho,on,1,0,5,1)}function fye(){fye=F,KDt=Fe(ho,on,1,0,5,1)}function Dh(){Dh=F,new v0e((qt(),qt(),ps))}function Y0n(e){return RC(),Yn((ywt(),A6t),e)}function Q0n(e){return Tc(),Yn((cwt(),N6t),e)}function Z0n(e){return bH(),Yn((q1t(),B6t),e)}function ewn(e){return SW(),Yn((X1t(),W6t),e)}function twn(e){return YH(),Yn((qyt(),H6t),e)}function nwn(e){return Pd(),Yn((lwt(),V6t),e)}function rwn(e){return Ac(),Yn((swt(),K6t),e)}function iwn(e){return Ya(),Yn((awt(),X6t),e)}function own(e){return fU(),Yn((Gut(),mIt),e)}function swn(e){return Jm(),Yn((_wt(),vIt),e)}function lwn(e){return _3(),Yn((Ewt(),SIt),e)}function awn(e){return I6(),Yn((Swt(),RIt),e)}function cwn(e){return bF(),Yn((v1t(),xIt),e)}function uwn(e){return EW(),Yn((J1t(),UIt),e)}function fwn(e){return l6(),Yn((uwt(),b5t),e)}function dwn(e){return Yo(),Yn((imt(),y5t),e)}function hwn(e){return WC(),Yn((Rwt(),k5t),e)}function pwn(e){return hw(),Yn((kwt(),$5t),e)}function dye(e,t){if(!e)throw ne(new hn(t))}function sC(e){if(!e)throw ne(new Us(q3e))}function KQ(e,t){if(e!=t)throw ne(new Bu)}function pht(e,t,i){this.a=e,this.b=t,this.c=i}function hye(e,t,i){this.a=e,this.b=t,this.c=i}function bht(e,t,i){this.a=e,this.b=t,this.c=i}function cB(e,t,i){this.b=e,this.a=t,this.c=i}function pye(e,t,i){this.b=e,this.c=t,this.a=i}function bye(e,t,i){this.a=e,this.b=t,this.c=i}function uB(e,t,i){this.e=t,this.b=e,this.d=i}function ght(e,t,i){this.b=e,this.a=t,this.c=i}function bwn(e,t,i){return K0(),e.a.Yd(t,i),t}function qQ(e){var t;return t=new co,t.e=e,t}function gye(e){var t;return t=new Wst,t.b=e,t}function v7(){v7=F,WG=new iKe,HG=new oKe}function fB(){fB=F,V5t=new PKe,G5t=new OKe}function Qf(){Qf=F,J5t=new Wqe,Y5t=new Hqe}function gwn(e){return qm(),Yn((W0t(),l8t),e)}function wwn(e){return ss(),Yn((Vut(),B5t),e)}function mwn(e){return qW(),Yn((Cwt(),U5t),e)}function ywn(e){return rh(),Yn((xwt(),e8t),e)}function vwn(e){return i_(),Yn((omt(),n8t),e)}function _wn(e){return XH(),Yn((Oyt(),a8t),e)}function Swn(e){return R3(),Yn(($mt(),c8t),e)}function Ewn(e){return pW(),Yn((r0t(),u8t),e)}function kwn(e){return u6(),Yn((F0t(),f8t),e)}function Rwn(e){return IW(),Yn((B0t(),d8t),e)}function xwn(e){return Eg(),Yn((smt(),h8t),e)}function Cwn(e){return nN(),Yn((Z1t(),p8t),e)}function Awn(e){return cA(),Yn((Omt(),v8t),e)}function Twn(e){return As(),Yn((uvt(),_8t),e)}function $wn(e){return BC(),Yn((U0t(),S8t),e)}function Iwn(e){return wb(),Yn((G0t(),k8t),e)}function Pwn(e){return rW(),Yn((Q1t(),R8t),e)}function Own(e){return MN(),Yn((Pmt(),y8t),e)}function Nwn(e){return uw(),Yn((H0t(),g8t),e)}function Mwn(e){return DH(),Yn((Imt(),w8t),e)}function Dwn(e){return X7(),Yn((e0t(),m8t),e)}function Lwn(e){return ef(),Yn((amt(),x8t),e)}function jwn(e){return Ag(),Yn((Vyt(),JOt),e)}function Fwn(e){return v6(),Yn((V0t(),YOt),e)}function Bwn(e){return n_(),Yn((Awt(),QOt),e)}function Wwn(e){return $6(),Yn((lmt(),ZOt),e)}function Hwn(e){return Sf(),Yn((fvt(),e7t),e)}function Uwn(e){return Wh(),Yn((Twt(),t7t),e)}function Gwn(e){return eN(),Yn((t0t(),n7t),e)}function Vwn(e){return Cs(),Yn((q0t(),i7t),e)}function zwn(e){return VW(),Yn((z0t(),o7t),e)}function Kwn(e){return w6(),Yn((K0t(),s7t),e)}function qwn(e){return qC(),Yn((X0t(),l7t),e)}function Xwn(e){return $W(),Yn((J0t(),a7t),e)}function Jwn(e){return XW(),Yn((Y0t(),c7t),e)}function Ywn(e){return Km(),Yn((owt(),R7t),e)}function Qwn(e){return i6(),Yn((n0t(),$7t),e)}function Zwn(e){return jh(),Yn((s0t(),L7t),e)}function emn(e){return Jd(),Yn((l0t(),F7t),e)}function tmn(e){return Td(),Yn((a0t(),eNt),e)}function nmn(e){return Wm(),Yn((c0t(),lNt),e)}function rmn(e){return k3(),Yn((Dwt(),aNt),e)}function imn(e){return K6(),Yn((zut(),cNt),e)}function omn(e){return m6(),Yn((Q0t(),uNt),e)}function smn(e){return y6(),Yn((Mwt(),ONt),e)}function lmn(e){return eW(),Yn((i0t(),NNt),e)}function amn(e){return jW(),Yn((o0t(),FNt),e)}function cmn(e){return PH(),Yn((cmt(),WNt),e)}function umn(e){return gN(),Yn((Z0t(),UNt),e)}function fmn(e){return gW(),Yn((u0t(),HNt),e)}function dmn(e){return RH(),Yn((Nwt(),cMt),e)}function hmn(e){return GW(),Yn((ewt(),uMt),e)}function pmn(e){return uH(),Yn((twt(),fMt),e)}function bmn(e){return _H(),Yn((nwt(),hMt),e)}function gmn(e){return iH(),Yn((rwt(),gMt),e)}function wmn(e){return aW(),Yn((f0t(),LMt),e)}function mmn(e){return MC(),Yn((Y1t(),F5t),e)}function ymn(e){return gn(),Yn((Nmt(),N5t),e)}function vmn(e){return wW(),Yn((iwt(),jMt),e)}function _mn(e){return Gee(),Yn((d0t(),FMt),e)}function Smn(e){return U6(),Yn((umt(),WMt),e)}function Emn(e){return mF(),Yn((A1t(),UMt),e)}function kmn(e){return SN(),Yn((dwt(),HMt),e)}function Rmn(e){return yF(),Yn((T1t(),VMt),e)}function xmn(e){return G7(),Yn((h0t(),zMt),e)}function Cmn(e){return LN(),Yn((fmt(),KMt),e)}function Amn(e){return h$(),Yn(($1t(),c9t),e)}function Tmn(e){return dN(),Yn((p0t(),u9t),e)}function $mn(e){return Nd(),Yn((hmt(),g9t),e)}function Imn(e){return Cg(),Yn((Iyt(),m9t),e)}function Pmn(e){return _p(),Yn((Mmt(),y9t),e)}function Omn(e){return bw(),Yn((Dmt(),R9t),e)}function Nmn(e){return Xi(),Yn((dmt(),G9t),e)}function Mmn(e){return nh(),Yn((hwt(),V9t),e)}function Dmn(e){return _b(),Yn((Lwt(),z9t),e)}function Lmn(e){return NH(),Yn((Lmt(),K9t),e)}function jmn(e){return vb(),Yn((fwt(),X9t),e)}function Fmn(e){return ku(),Yn((jwt(),Y9t),e)}function Bmn(e){return a_(),Yn((Kyt(),Q9t),e)}function Wmn(e){return a2(),Yn((pmt(),Z9t),e)}function Hmn(e){return Co(),Yn((jmt(),eDt),e)}function Umn(e){return $c(),Yn((Fmt(),tDt),e)}function Gmn(e){return ft(),Yn((bmt(),nDt),e)}function Vmn(e){return su(),Yn((Fwt(),lDt),e)}function zmn(e){return Gc(),Yn((zyt(),aDt),e)}function Kmn(e){return m3(),Yn((pwt(),cDt),e)}function qmn(e,t){return mn(e),e+(mn(t),t)}function Xmn(e){return XQ(),Yn((b0t(),uDt),e)}function Jmn(e){return sH(),Yn((Bwt(),fDt),e)}function Ymn(e){return JW(),Yn((Wwt(),pDt),e)}function lC(){lC=F,DIe=(ft(),wn),KV=_n}function XQ(){XQ=F,ZPe=new zht,eOe=new Ipt}function Qmn(e){return!e.e&&(e.e=new st),e.e}function JQ(e,t){this.c=e,this.a=t,this.b=t-e}function wht(e,t,i){this.a=e,this.b=t,this.c=i}function YQ(e,t,i){this.a=e,this.b=t,this.c=i}function wye(e,t,i){this.a=e,this.b=t,this.c=i}function mye(e,t,i){this.a=e,this.b=t,this.c=i}function mht(e,t,i){this.a=e,this.b=t,this.c=i}function yht(e,t,i){this.a=e,this.b=t,this.c=i}function cg(e,t,i){this.e=e,this.a=t,this.c=i}function vht(e,t,i){Hu(),Dve.call(this,e,t,i)}function QQ(e,t,i){Hu(),yve.call(this,e,t,i)}function yye(e,t,i){Hu(),yve.call(this,e,t,i)}function vye(e,t,i){Hu(),yve.call(this,e,t,i)}function _ht(e,t,i){Hu(),QQ.call(this,e,t,i)}function _ye(e,t,i){Hu(),QQ.call(this,e,t,i)}function Sht(e,t,i){Hu(),_ye.call(this,e,t,i)}function Eht(e,t,i){Hu(),yye.call(this,e,t,i)}function kht(e,t,i){Hu(),vye.call(this,e,t,i)}function ZQ(e){_B.call(this,e.d,e.c,e.a,e.b)}function Sye(e){_B.call(this,e.d,e.c,e.a,e.b)}function Eye(e){this.d=e,rrt(this),this.b=Yyn(e.d)}function Zmn(e){return fA(),Yn((Pyt(),CDt),e)}function _7(e,t){return nr(e),nr(t),new Pat(e,t)}function Yk(e,t){return nr(e),nr(t),new Lht(e,t)}function eyn(e,t){return nr(e),nr(t),new jht(e,t)}function tyn(e,t){return nr(e),nr(t),new Wat(e,t)}function eZ(e){return In(e.b!=0),Xu(e,e.a.a)}function nyn(e){return In(e.b!=0),Xu(e,e.c.b)}function ryn(e){return!e.c&&(e.c=new Dx),e.c}function aC(e){var t;return t=new st,kee(t,e),t}function iyn(e){var t;return t=new Gi,kee(t,e),t}function Rht(e){var t;return t=new R0e,Lee(t,e),t}function S7(e){var t;return t=new li,Lee(t,e),t}function f(e,t){return W$(e==null||Dte(e,t)),e}function oyn(e,t,i){kpt.call(this,t,i),this.a=e}function xht(e,t){this.c=e,this.b=t,this.a=!1}function Cht(){this.a=";,;",this.b="",this.c=""}function Aht(e,t,i){this.b=e,Fut.call(this,t,i)}function kye(e,t,i){this.c=e,kF.call(this,t,i)}function Rye(e,t,i){eC.call(this,e,t),this.b=i}function xye(e,t,i){mke(i,0,e,t,i.length,!1)}function bp(e,t,i,s,a){e.b=t,e.c=i,e.d=s,e.a=a}function Cye(e,t,i,s,a){e.d=t,e.c=i,e.a=s,e.b=a}function syn(e,t){t&&(e.b=t,e.a=(A1(t),t.a))}function E7(e,t){if(!e)throw ne(new hn(t))}function Qk(e,t){if(!e)throw ne(new Us(t))}function Aye(e,t){if(!e)throw ne(new Dlt(t))}function lyn(e,t){return gF(),Xl(e.d.p,t.d.p)}function ayn(e,t){return mb(),Qr(e.e.b,t.e.b)}function cyn(e,t){return mb(),Qr(e.e.a,t.e.a)}function uyn(e,t){return Xl(Uht(e.d),Uht(t.d))}function dB(e,t){return t&&DB(e,t.d)?t:null}function fyn(e,t){return t==(ft(),wn)?e.c:e.d}function Tye(e){return O1(uvn(ul(e)?yf(e):e))}function dyn(e){return new tt(e.c+e.b,e.d+e.a)}function Tht(e){return e!=null&&!_te(e,j5,F5)}function hyn(e,t){return(l_t(e)<<4|l_t(t))&Ji}function $ht(e,t,i,s,a){e.c=t,e.d=i,e.b=s,e.a=a}function $ye(e){var t,i;t=e.b,i=e.c,e.b=i,e.c=t}function Iye(e){var t,i;i=e.d,t=e.a,e.d=t,e.a=i}function pyn(e,t){var i;return i=e.c,cSe(e,t),i}function Pye(e,t){return t<0?e.g=-1:e.g=t,e}function hB(e,t){return S3n(e),e.a*=t,e.b*=t,e}function Iht(e,t,i){Rmt.call(this,t,i),this.d=e}function k7(e,t,i){Ywe.call(this,e,t),this.c=i}function pB(e,t,i){Ywe.call(this,e,t),this.c=i}function Oye(e){fye(),Hj.call(this),this.ci(e)}function Pht(){SC(),Mvn.call(this,(_1(),Nf))}function Oht(e){return Or(),new gp(0,e)}function Nht(){Nht=F,Lce=(qt(),new uY(Boe))}function bB(){bB=F,new G2e((kY(),Qoe),(EY(),Yoe))}function Mht(){Mht=F,YAe=Fe(Ko,rt,17,256,0,1)}function Dht(){this.b=Ae(je(dt((od(),Ise))))}function tZ(e){this.b=e,this.a=X0(this.b.a).Od()}function Lht(e,t){this.b=e,this.a=t,tY.call(this)}function jht(e,t){this.a=e,this.b=t,tY.call(this)}function Fht(e,t,i){this.a=e,WS.call(this,t,i)}function Bht(e,t,i){this.a=e,WS.call(this,t,i)}function cC(e,t,i){var s;s=new Bv(i),Id(e,t,s)}function Nye(e,t,i){var s;return s=e[t],e[t]=i,s}function gB(e){var t;return t=e.slice(),wee(t,e)}function wB(e){var t;return t=e.n,e.a.b+t.d+t.a}function Wht(e){var t;return t=e.n,e.e.b+t.d+t.a}function Mye(e){var t;return t=e.n,e.e.a+t.b+t.c}function Dye(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function hr(e,t){return Ai(e,t,e.c.b,e.c),!0}function byn(e){return e.a?e.a:TZ(e)}function gyn(e){return s3(),Sp(e)==di(F1(e))}function wyn(e){return s3(),F1(e)==di(Sp(e))}function Tm(e,t){return M6(e,new eC(t.a,t.b))}function myn(e,t){return jB(),Gte(e,t),new cbt(e,t)}function yyn(e,t){return e.c=t)throw ne(new P0e)}function jv(e,t){return vN(e,(mn(t),new urt(t)))}function e3(e,t){return vN(e,(mn(t),new frt(t)))}function xpt(e,t,i){return Vjn(e,f(t,12),f(i,12))}function Cpt(e){return bc(),f(e,12).g.c.length!=0}function Apt(e){return bc(),f(e,12).e.c.length!=0}function rvn(e,t){return b3(),Qr(t.a.o.a,e.a.o.a)}function ivn(e,t){t.Bb&Vl&&!e.a.o&&(e.a.o=t)}function ovn(e,t){t.Ug("General 'Rotator",1),yLn(e)}function svn(e,t,i){t.qf(i,Ae(je(En(e.b,i)))*e.a)}function Tpt(e,t,i){return m2(),DC(e,t)&&DC(e,i)}function V$(e){return $c(),!e.Hc(Mb)&&!e.Hc(f0)}function lvn(e){return e.e?E_e(e.e):null}function z$(e){return ul(e)?""+e:O3t(e)}function tve(e){var t;for(t=e;t.f;)t=t.f;return t}function avn(e,t,i){return Ci(t,0,Wye(t[0],i[0])),t}function ug(e,t,i,s){var a;a=e.i,a.i=t,a.a=i,a.b=s}function qe(e,t,i,s){zi.call(this,e,t,i),this.b=s}function yo(e,t,i,s,a){bee.call(this,e,t,i,s,a,-1)}function K$(e,t,i,s,a){z7.call(this,e,t,i,s,a,-1)}function IB(e,t,i,s){k7.call(this,e,t,i),this.b=s}function $pt(e){Cut.call(this,e,!1),this.a=!1}function Ipt(){sut.call(this,"LOOKAHEAD_LAYOUT",1)}function Ppt(e){this.b=e,Kk.call(this,e),Lft(this)}function Opt(e){this.b=e,d7.call(this,e),jft(this)}function Fv(e,t,i){this.a=e,Xk.call(this,t,i,5,6)}function nve(e,t,i,s){this.b=e,zi.call(this,t,i,s)}function Npt(e,t){this.b=e,Bnt.call(this,e.b),this.a=t}function Mpt(e){this.a=mSt(e.a),this.b=new Rc(e.b)}function rve(e,t){Nm(),Fbn.call(this,e,eH(new kc(t)))}function PB(e,t){return Or(),new mve(e,t,0)}function pZ(e,t){return Or(),new mve(6,e,t)}function Uo(e,t){for(mn(t);e.Ob();)t.Cd(e.Pb())}function Na(e,t){return Eo(t)?LZ(e,t):!!xs(e.f,t)}function bZ(e,t){return t.Vh()?D1(e.b,f(t,54)):t}function cvn(e,t){return Ht(e.substr(0,t.length),t)}function wp(e){return new kn(new kme(e.a.length,e.a))}function OB(e){return new tt(e.c+e.b/2,e.d+e.a/2)}function uvn(e){return Oa(~e.l&Vc,~e.m&Vc,~e.h&Ab)}function gZ(e){return typeof e===iM||typeof e===fre}function xc(e){e.f=new tft(e),e.i=new nft(e),++e.g}function Dpt(e){if(!e)throw ne(new yl);return e.d}function t3(e){var t;return t=g6(e),In(t!=null),t}function fvn(e){var t;return t=CCn(e),In(t!=null),t}function fC(e,t){var i;return i=e.a.gc(),m_e(t,i),i-t}function Zi(e,t){var i;return i=e.a.zc(t,e),i==null}function x7(e,t){return e.a.zc(t,(cn(),Y1))==null}function ive(e){return new Wt(null,gvn(e,e.length))}function ove(e,t,i){return rxt(e,f(t,42),f(i,176))}function n3(e,t,i){return nd(e.a,t),Nye(e.b,t.g,i)}function dvn(e,t,i){uC(i,e.a.c.length),Ku(e.a,i,t)}function De(e,t,i,s){Nvt(t,i,e.length),hvn(e,t,i,s)}function hvn(e,t,i,s){var a;for(a=t;a0?h.Math.log(e/t):-100}function jpt(e,t){return Jl(e,t)<0?-1:Jl(e,t)>0?1:0}function C7(e,t){Tft(e,ve(t,160)?t:f(t,2036).Rl())}function cve(e,t){if(e==null)throw ne(new Mk(t))}function gvn(e,t){return m3n(t,e.length),new Vht(e,t)}function uve(e,t){return t?Do(e,t):!1}function wvn(){return nF(),se(ie(i6t,1),Je,549,0,[tse])}function X$(e){return e.e==0?e:new Y0(-e.e,e.d,e.a)}function mvn(e,t){return Qr(e.c.c+e.c.b,t.c.c+t.c.b)}function A7(e,t){Ai(e.d,t,e.b.b,e.b),++e.a,e.c=null}function Fpt(e,t){return e.c?Fpt(e.c,t):lt(e.b,t),e}function yvn(e,t,i){var s;return s=Kv(e,t),ZZ(e,t,i),s}function Bpt(e,t,i){var s;for(s=0;s=e.g}function Ci(e,t,i){return u0n(i==null||iMn(e,i)),e[t]=i}function bve(e,t){return pn(t,e.length+1),e.substr(t)}function xZ(e,t){for(mn(t);e.c=e?new dwe:H3n(e-1)}function Go(e){return!e.a&&e.c?e.c.b:e.a}function vve(e){return ve(e,616)?e:new ogt(e)}function A1(e){e.c?A1(e.c):(L1(e),e.d=!0)}function Q$(e){e.c?e.c.$e():(e.d=!0,sOn(e))}function sbt(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function lbt(e){var t,i;return t=e.c.i.c,i=e.d.i.c,t==i}function jvn(e,t){var i;i=e.Ih(t),i>=0?e.ki(i):cke(e,t)}function abt(e,t){e.c<0||e.b.b0;)e=e<<1|(e<0?1:0);return e}function gbt(e,t){var i;return i=new ca(e),sn(t.c,i),i}function wbt(e,t){e.u.Hc(($c(),Mb))&&U5n(e,t),lkn(e,t)}function Ul(e,t){return Ne(e)===Ne(t)||e!=null&&Lr(e,t)}function Ds(e,t){return sZ(e.a,t)?e.b[f(t,22).g]:null}function Yvn(){return bF(),se(ie(W4e,1),Je,489,0,[kse])}function Qvn(){return mF(),se(ie(b8e,1),Je,490,0,[qae])}function Zvn(){return yF(),se(ie(GMt,1),Je,558,0,[Xae])}function e_n(){return h$(),se(ie(D8e,1),Je,539,0,[C9])}function FB(e){return!e.n&&(e.n=new qe(Fs,e,1,7)),e.n}function AZ(e){return!e.c&&(e.c=new qe(Mc,e,9,9)),e.c}function kve(e){return!e.c&&(e.c=new en(Dn,e,5,8)),e.c}function t_n(e){return!e.b&&(e.b=new en(Dn,e,4,7)),e.b}function T7(e){return e.j.c.length=0,xve(e.c),O0n(e.a),e}function gC(e){return e.e==VA&&ypn(e,XAn(e.g,e.b)),e.e}function $7(e){return e.f==VA&&_pn(e,BTn(e.g,e.b)),e.f}function Cr(e,t,i,s){return Byt(e,t,i,!1),tH(e,s),e}function mbt(e,t){this.b=e,wZ.call(this,e,t),Lft(this)}function ybt(e,t){this.b=e,aye.call(this,e,t),jft(this)}function Z$(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function Rve(e,t){this.b=e,this.c=t,this.a=new Bk(this.b)}function Jo(e,t){return pn(t,e.length),e.charCodeAt(t)}function n_n(e,t){d2e(e,Ae(yb(t,"x")),Ae(yb(t,"y")))}function r_n(e,t){d2e(e,Ae(yb(t,"x")),Ae(yb(t,"y")))}function Br(e,t){return L1(e),new Wt(e,new D_e(t,e.a))}function nl(e,t){return L1(e),new Wt(e,new __e(t,e.a))}function Wv(e,t){return L1(e),new Bme(e,new A0t(t,e.a))}function BB(e,t){return L1(e),new Wme(e,new T0t(t,e.a))}function i_n(e,t){return new Ubt(f(nr(e),50),f(nr(t),50))}function o_n(e,t){return Qr(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function vbt(e,t,i){i.a?La(e,t.b-e.f/2):Da(e,t.a-e.g/2)}function s_n(e,t){return Qr(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function l_n(e,t){return bwe(),Qr((mn(e),e),(mn(t),t))}function a_n(e){return e!=null&&UO(Fz,e.toLowerCase())}function xve(e){var t;for(t=e.Kc();t.Ob();)t.Pb(),t.Qb()}function YS(e){var t;return t=e.b,!t&&(e.b=t=new Pnt(e)),t}function TZ(e){var t;return t=z3n(e),t||null}function _bt(e,t){var i,s;return i=e/t,s=oo(i),i>s&&++s,s}function c_n(e,t,i){var s;s=f(e.d.Kb(i),159),s&&s.Nb(t)}function u_n(e,t,i){d9n(e.a,i),URn(i),O8n(e.b,i),P9n(t,i)}function WB(e,t,i,s){this.a=e,this.c=t,this.b=i,this.d=s}function Cve(e,t,i,s){this.c=e,this.b=t,this.a=i,this.d=s}function Sbt(e,t,i,s){this.c=e,this.b=t,this.d=i,this.a=s}function Gu(e,t,i,s){this.c=e,this.d=t,this.b=i,this.a=s}function Ebt(e,t,i,s){this.a=e,this.d=t,this.c=i,this.b=s}function $Z(e,t,i,s){this.a=e,this.e=t,this.d=i,this.c=s}function kbt(e,t,i,s){this.a=e,this.c=t,this.d=i,this.b=s}function IZ(e,t,i){this.a=eRe,this.d=e,this.b=t,this.c=i}function i3(e,t,i,s){Jn.call(this,e,t),this.a=i,this.b=s}function Rbt(e,t){this.d=(mn(e),e),this.a=16449,this.c=t}function xbt(e){this.a=new st,this.e=Fe(Xn,rt,53,e,0,2)}function f_n(e){e.Ug("No crossing minimization",1),e.Vg()}function Cbt(){vl.call(this,"There is no more element.")}function Abt(e,t,i,s){this.a=e,this.b=t,this.c=i,this.d=s}function Tbt(e,t,i,s){this.a=e,this.b=t,this.c=i,this.d=s}function Z0(e,t,i,s){this.e=e,this.a=t,this.c=i,this.d=s}function $bt(e,t,i,s){this.a=e,this.c=t,this.d=i,this.b=s}function Ibt(e,t,i,s){Hu(),$0t.call(this,t,i,s),this.a=e}function Pbt(e,t,i,s){Hu(),$0t.call(this,t,i,s),this.a=e}function PZ(e,t,i){var s,a;return s=B3e(e),a=t.ti(i,s),a}function ub(e){var t,i;return i=(t=new dm,t),CC(i,e),i}function OZ(e){var t,i;return i=(t=new dm,t),UEe(i,e),i}function d_n(e,t){var i;return i=En(e.f,t),SSe(t,i),null}function Obt(e){return!e.b&&(e.b=new qe(Fi,e,12,3)),e.b}function Nbt(e){return W$(e==null||gZ(e)&&e.Tm!==ae),e}function HB(e){return e.n&&(e.e!==MCt&&e.je(),e.j=null),e}function wC(e){if(Hc(e.d),e.d.d!=e.c)throw ne(new Bu)}function Ave(e){return In(e.b0&&d2t(this)}function Mbt(e,t){this.a=e,f0n.call(this,e,f(e.d,15).fd(t))}function h_n(e,t){return Qr(dc(e)*ru(e),dc(t)*ru(t))}function p_n(e,t){return Qr(dc(e)*ru(e),dc(t)*ru(t))}function b_n(e){return ry(e)&&wt(gt(Qe(e,(pt(),Nw))))}function g_n(e,t){return Gt(e,f(V(t,(pt(),f4)),17),t)}function w_n(e,t){return f(V(e,(nt(),Z3)),15).Fc(t),t}function Tve(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function Dbt(e,t,i,s){this.b=e,this.c=s,KF.call(this,t,i)}function m_n(e,t,i){e.i=0,e.e=0,t!=i&&yvt(e,t,i)}function y_n(e,t,i){e.i=0,e.e=0,t!=i&&vvt(e,t,i)}function v_n(e,t,i){return d$(),KCn(f(En(e.e,t),529),i)}function o3(e){var t;return t=e.f,t||(e.f=new Yx(e,e.c))}function Lbt(e,t){return l2(e.j,t.s,t.c)+l2(t.e,e.s,e.c)}function jbt(e,t){e.e&&!e.e.a&&(Rst(e.e,t),jbt(e.e,t))}function Fbt(e,t){e.d&&!e.d.a&&(Rst(e.d,t),Fbt(e.d,t))}function __n(e,t){return-Qr(dc(e)*ru(e),dc(t)*ru(t))}function S_n(e){return f(e.ld(),149).Pg()+":"+dl(e.md())}function Bbt(){dne(this,new W1e),this.wb=(C1(),un),qx()}function Wbt(e){this.b=new st,eo(this.b,this.b),this.a=e}function $ve(e,t){new li,this.a=new cc,this.b=e,this.c=t}function jm(){jm=F,c4e=new Me,cse=new Me,u4e=new vt}function qt(){qt=F,ps=new we,Ip=new He,CG=new Ue}function Ive(){Ive=F,L6t=new ki,F6t=new zye,j6t=new Ri}function s3(){s3=F,MG=new st,Ase=new Fn,Cse=new st}function UB(e,t){if(e==null)throw ne(new Mk(t));return e}function GB(e){return!e.a&&(e.a=new qe($r,e,10,11)),e.a}function Gr(e){return!e.q&&(e.q=new qe(Of,e,11,10)),e.q}function Ve(e){return!e.s&&(e.s=new qe(rc,e,21,17)),e.s}function E_n(e){return nr(e),ASt(new kn(xn(e.a.Kc(),new O)))}function k_n(e,t){return ou(e),ou(t),Mlt(f(e,22),f(t,22))}function ew(e,t,i){var s,a;s=uye(i),a=new Gj(s),Id(e,t,a)}function MZ(e,t,i,s,a,c){z7.call(this,e,t,i,s,a,c?-2:-1)}function Hbt(e,t,i,s){Ywe.call(this,t,i),this.b=e,this.a=s}function Ubt(e,t){Vpn.call(this,new hZ(e)),this.a=e,this.b=t}function Pve(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function R_n(e){Qf();var t;t=f(e.g,10),t.n.a=e.d.c+t.d.b}function mC(){mC=F;var e,t;t=!PAn(),e=new Le,ise=t?new pe:e}function DZ(e){return qt(),ve(e,59)?new PY(e):new tB(e)}function VB(e){return ve(e,16)?new H$(f(e,16)):iyn(e.Kc())}function x_n(e){return new Bft(e,e.e.Rd().gc()*e.c.Rd().gc())}function C_n(e){return new Wft(e,e.e.Rd().gc()*e.c.Rd().gc())}function Ove(e){return e&&e.hashCode?e.hashCode():Cm(e)}function LZ(e,t){return t==null?!!xs(e.f,null):Uyn(e.i,t)}function A_n(e,t){var i;return i=bme(e.a,t),i&&(t.d=null),i}function Gbt(e,t,i){return e.f?e.f.ef(t,i):!1}function I7(e,t,i,s){Ci(e.c[t.g],i.g,s),Ci(e.c[i.g],t.g,s)}function jZ(e,t,i,s){Ci(e.c[t.g],t.g,i),Ci(e.b[t.g],t.g,s)}function T_n(e,t,i){return Ae(je(i.a))<=e&&Ae(je(i.b))>=t}function Vbt(e,t){this.g=e,this.d=se(ie(Op,1),$g,10,0,[t])}function zbt(e){this.c=e,this.b=new sg(f(nr(new xi),50))}function Kbt(e){this.c=e,this.b=new sg(f(nr(new YVe),50))}function qbt(e){this.b=e,this.a=new sg(f(nr(new yr),50))}function Xbt(){this.b=new Gi,this.d=new li,this.e=new O0e}function Nve(){this.c=new Io,this.d=new Io,this.e=new Io}function Fm(){this.a=new cc,this.b=(Su(3,b_),new ka(3))}function fg(e,t){this.e=e,this.a=ho,this.b=X3t(t),this.c=t}function zB(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function Jbt(e,t,i,s,a,c){this.a=e,$ee.call(this,t,i,s,a,c)}function Ybt(e,t,i,s,a,c){this.a=e,$ee.call(this,t,i,s,a,c)}function T1(e,t,i,s,a,c,b){return new tee(e.e,t,i,s,a,c,b)}function $_n(e,t,i){return i>=0&&Ht(e.substr(i,t.length),t)}function Qbt(e,t){return ve(t,149)&&Ht(e.b,f(t,149).Pg())}function I_n(e,t){return e.a?t.Gh().Kc():f(t.Gh(),71).Ii()}function Zbt(e,t){var i;return i=e.b.Qc(t),K1t(i,e.b.gc()),i}function P7(e,t){if(e==null)throw ne(new Mk(t));return e}function rl(e){return e.u||(Bc(e),e.u=new Pdt(e,e)),e.u}function FZ(e){this.a=(qt(),ve(e,59)?new PY(e):new tB(e))}function Xa(e){var t;return t=f(dn(e,16),29),t||e.ii()}function KB(e,t){var i;return i=z0(e.Rm),t==null?i:i+": "+t}function Vu(e,t,i){return Mo(t,i,e.length),e.substr(t,i-t)}function egt(e,t){sB.call(this),V_e(this),this.a=e,this.c=t}function P_n(e){e&&KB(e,e.ie())}function O_n(e){oF(),h.setTimeout(function(){throw e},0)}function N_n(){return bH(),se(ie(m4e,1),Je,436,0,[wse,w4e])}function M_n(){return SW(),se(ie(v4e,1),Je,435,0,[y4e,mse])}function D_n(){return EW(),se(ie(q4e,1),Je,432,0,[Tse,DG])}function L_n(){return MC(),se(ie(j5t,1),Je,517,0,[QM,Use])}function j_n(){return rW(),se(ie(I$e,1),Je,429,0,[yle,$$e])}function F_n(){return nN(),se(ie(b$e,1),Je,428,0,[dV,p$e])}function B_n(){return pW(),se(ie(l$e,1),Je,431,0,[s$e,ile])}function W_n(){return eN(),se(ie(EIe,1),Je,430,0,[eae,tae])}function H_n(){return i6(),se(ie(T7t,1),Je,531,0,[a5,l5])}function U_n(){return jW(),se(ie(y5e,1),Je,501,0,[nz,rE])}function G_n(){return jh(),se(ie(D7t,1),Je,523,0,[Ny,Lg])}function V_n(){return Jd(),se(ie(j7t,1),Je,522,0,[Fw,ph])}function z_n(){return Td(),se(ie(Z7t,1),Je,528,0,[U_,i0])}function K_n(){return X7(),se(ie(m$e,1),Je,488,0,[w$e,pV])}function q_n(){return aW(),se(ie(a8e,1),Je,491,0,[Vae,l8e])}function X_n(){return Gee(),se(ie(p8e,1),Je,492,0,[d8e,h8e])}function J_n(){return eW(),se(ie(m5e,1),Je,433,0,[Eae,w5e])}function Y_n(){return gW(),se(ie(_5e,1),Je,434,0,[v5e,Tae])}function Q_n(){return Wm(),se(ie(sNt,1),Je,465,0,[o0,eE])}function Z_n(){return G7(),se(ie(g8e,1),Je,438,0,[Jae,hz])}function eSn(){return dN(),se(ie(j8e,1),Je,437,0,[bz,L8e])}function tSn(){return XQ(),se(ie($z,1),Je,347,0,[ZPe,eOe])}function qB(e,t,i,s){return i>=0?e.Uh(t,i,s):e.Ch(null,i,s)}function O7(e){return e.b.b==0?e.a.sf():eZ(e.b)}function nSn(e){if(e.p!=5)throw ne(new ac);return tr(e.f)}function rSn(e){if(e.p!=5)throw ne(new ac);return tr(e.k)}function Mve(e){return Ne(e.a)===Ne((Hee(),Nce))&&tDn(e),e.a}function iSn(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=SB(e.c,e.b,e.a))}function oSn(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=SB(e.c,e.b,e.a))}function tgt(e,t){rpn(this,new tt(e.a,e.b)),ipn(this,S7(t))}function Bm(){zpn.call(this,new Fk(qv(12))),vme(!0),this.a=2}function BZ(e,t,i){Or(),fm.call(this,e),this.b=t,this.a=i}function Dve(e,t,i){Hu(),Jj.call(this,t),this.a=e,this.b=i}function ngt(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function sSn(e){return e.b==0?null:(In(e.b!=0),Xu(e,e.a.a))}function ua(e,t){return t==null?tl(xs(e.f,null)):w$(e.i,t)}function rgt(e,t,i,s,a){return new pne(e,(RC(),hse),t,i,s,a)}function XB(e,t){return G1t(t),$3n(e,Fe(Xn,wr,28,t,15,1),t)}function JB(e,t){return UB(e,"set1"),UB(t,"set2"),new zat(e,t)}function lSn(e,t){var i=rse[e.charCodeAt(0)];return i??e}function igt(e,t){var i,s;return i=t,s=new jt,Ixt(e,i,s),s.d}function WZ(e,t,i,s){var a;a=new Mdt,t.a[i.g]=a,n3(e.b,s,a)}function aSn(e,t){var i;return i=C3n(e.f,t),Mr(oB(i),e.f.d)}function N7(e){var t;j3n(e.a),fft(e.a),t=new Kj(e.a),S2e(t)}function cSn(e,t){F3t(e,!0),Ma(e.e.Rf(),new pye(e,!0,t))}function uSn(e,t){return s3(),e==di(Sp(t))||e==di(F1(t))}function fSn(e,t){return mb(),f(V(t,(Il(),ip)),17).a==e}function oo(e){return Math.max(Math.min(e,Nr),-2147483648)|0}function ogt(e){this.a=f(nr(e),277),this.b=(qt(),new Cme(e))}function sgt(e,t,i){this.i=new st,this.b=e,this.g=t,this.a=i}function Lve(e,t,i){this.a=new st,this.e=e,this.f=t,this.c=i}function YB(e,t,i){this.c=new st,this.e=e,this.f=t,this.b=i}function lgt(e){sB.call(this),V_e(this),this.a=e,this.c=!0}function dSn(e){function t(){}return t.prototype=e||{},new t}function hSn(e){if(e.Ae())return null;var t=e.n;return _G[t]}function M7(e){return e.Db>>16!=3?null:f(e.Cb,27)}function Xd(e){return e.Db>>16!=9?null:f(e.Cb,27)}function agt(e){return e.Db>>16!=6?null:f(e.Cb,74)}function Wm(){Wm=F,o0=new Fwe(M3,0),eE=new Fwe(D3,1)}function jh(){jh=F,Ny=new Dwe(D3,0),Lg=new Dwe(M3,1)}function Jd(){Jd=F,Fw=new Lwe(Yre,0),ph=new Lwe("UP",1)}function cgt(){cgt=F,o6t=Qn((nF(),se(ie(i6t,1),Je,549,0,[tse])))}function ugt(e){var t;return t=new cF(qv(e.length)),MSe(t,e),t}function fgt(e,t){return e.b+=t.b,e.c+=t.c,e.d+=t.d,e.a+=t.a,e}function pSn(e,t){return Yyt(e,t)?(Kmt(e),!0):!1}function fb(e,t){if(t==null)throw ne(new $k);return NAn(e,t)}function D7(e,t){var i;i=e.q.getHours(),e.q.setDate(t),X6(e,i)}function jve(e,t,i){var s;s=e.Ih(t),s>=0?e.bi(s,i):Dke(e,t,i)}function dgt(e,t){var i;return i=e.Ih(t),i>=0?e.Wh(i):vne(e,t)}function hgt(e,t){var i;for(nr(t),i=e.a;i;i=i.c)t.Yd(i.g,i.i)}function HZ(e,t,i){var s;s=wvt(e,t,i),e.b=new BW(s.c.length)}function QS(e,t,i){QB(),e&&xr(Ice,e,t),e&&xr(X9,e,i)}function bSn(e,t){return fB(),cn(),f(t.a,17).a0}function Fve(e){var t;return t=e.d,t=e.bj(e.f),zn(e,t),t.Ob()}function pgt(e,t){var i;return i=new Uye(t),F2t(i,e),new Rc(i)}function mSn(e){if(e.p!=0)throw ne(new ac);return T$(e.f,0)}function ySn(e){if(e.p!=0)throw ne(new ac);return T$(e.k,0)}function bgt(e){return e.Db>>16!=7?null:f(e.Cb,241)}function yC(e){return e.Db>>16!=6?null:f(e.Cb,241)}function ggt(e){return e.Db>>16!=7?null:f(e.Cb,167)}function di(e){return e.Db>>16!=11?null:f(e.Cb,27)}function Hv(e){return e.Db>>16!=17?null:f(e.Cb,29)}function wgt(e){return e.Db>>16!=3?null:f(e.Cb,155)}function Bve(e){var t;return L1(e),t=new Gi,Br(e,new Ert(t))}function mgt(e,t){var i=e.a=e.a||[];return i[t]||(i[t]=e.ve(t))}function vSn(e,t){var i;i=e.q.getHours(),e.q.setMonth(t),X6(e,i)}function ygt(e,t){ZF(this),this.f=t,this.g=e,HB(this),this.je()}function vgt(e,t){this.a=e,this.c=Ho(this.a),this.b=new zB(t)}function _gt(e,t,i){this.a=t,this.c=e,this.b=(nr(i),new Rc(i))}function Sgt(e,t,i){this.a=t,this.c=e,this.b=(nr(i),new Rc(i))}function Egt(e){this.a=e,this.b=Fe(x7t,rt,2043,e.e.length,0,2)}function kgt(){this.a=new Oh,this.e=new Gi,this.g=0,this.i=0}function QB(){QB=F,Ice=new Fn,X9=new Fn,pgn(E6t,new fZe)}function Rgt(){Rgt=F,u7t=hc(new Ki,(Yo(),ll),(ss(),ZM))}function Wve(){Wve=F,f7t=hc(new Ki,(Yo(),ll),(ss(),ZM))}function xgt(){xgt=F,h7t=hc(new Ki,(Yo(),ll),(ss(),ZM))}function Cgt(){Cgt=F,I7t=gr(new Ki,(Yo(),ll),(ss(),BI))}function mu(){mu=F,N7t=gr(new Ki,(Yo(),ll),(ss(),BI))}function Agt(){Agt=F,M7t=gr(new Ki,(Yo(),ll),(ss(),BI))}function GZ(){GZ=F,B7t=gr(new Ki,(Yo(),ll),(ss(),BI))}function e6(e,t,i,s,a,c){return new gb(e.e,t,e.Lj(),i,s,a,c)}function Gs(e,t,i){return t==null?Ca(e.f,null,i):Ym(e.i,t,i)}function rs(e,t){e.c&&Ja(e.c.g,e),e.c=t,e.c&<(e.c.g,e)}function Oo(e,t){e.c&&Ja(e.c.a,e),e.c=t,e.c&<(e.c.a,e)}function Sl(e,t){e.i&&Ja(e.i.j,e),e.i=t,e.i&<(e.i.j,e)}function xo(e,t){e.d&&Ja(e.d.e,e),e.d=t,e.d&<(e.d.e,e)}function VZ(e,t){e.a&&Ja(e.a.k,e),e.a=t,e.a&<(e.a.k,e)}function zZ(e,t){e.b&&Ja(e.b.f,e),e.b=t,e.b&<(e.b.f,e)}function Tgt(e,t){Pvn(e,e.b,e.c),f(e.b.b,68),t&&f(t.b,68).b}function _Sn(e,t){return Qr(f(e.c,65).c.e.b,f(t.c,65).c.e.b)}function SSn(e,t){return Qr(f(e.c,65).c.e.a,f(t.c,65).c.e.a)}function ESn(e){return ate(),cn(),f(e.a,86).d.e!=0}function ZB(e,t){ve(e.Cb,184)&&(f(e.Cb,184).tb=null),Ra(e,t)}function KZ(e,t){ve(e.Cb,90)&&l_(Bc(f(e.Cb,90)),4),Ra(e,t)}function kSn(e,t){h2e(e,t),ve(e.Cb,90)&&l_(Bc(f(e.Cb,90)),2)}function RSn(e,t){var i,s;i=t.c,s=i!=null,s&&r3(e,new Bv(t.c))}function $gt(e){var t,i;return i=(qx(),t=new dm,t),CC(i,e),i}function Igt(e){var t,i;return i=(qx(),t=new dm,t),CC(i,e),i}function Pgt(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function xSn(e,t,i){return lt(e.a,(jB(),Gte(t,i),new ym(t,i))),e}function fa(e,t){return Ss(),See(t)?new mB(t,e):new l7(t,e)}function L7(e){return Uh(),Jl(e,0)>=0?j1(e):X$(j1(gg(e)))}function CSn(e){var t;return t=f(gB(e.b),9),new Uu(e.a,t,e.c)}function Ogt(e,t){var i;return i=f(Zv(o3(e.a),t),16),i?i.gc():0}function Ngt(e,t,i){var s;o_t(t,i,e.c.length),s=i-t,cwe(e.c,t,s)}function dg(e,t,i){o_t(t,i,e.gc()),this.c=e,this.a=t,this.b=i-t}function l3(e){this.c=new li,this.b=e.b,this.d=e.c,this.a=e.a}function qZ(e){this.a=h.Math.cos(e),this.b=h.Math.sin(e)}function tw(e,t,i,s){this.c=e,this.d=s,VZ(this,t),zZ(this,i)}function Hve(e,t){Gpn.call(this,new Fk(qv(e))),Su(t,TCt),this.a=t}function Mgt(e,t,i){return new pne(e,(RC(),dse),null,!1,t,i)}function Dgt(e,t,i){return new pne(e,(RC(),pse),t,i,null,!1)}function ASn(){return Tc(),se(ie(qs,1),Je,108,0,[g4e,pl,k_])}function TSn(){return Ya(),se(ie(q6t,1),Je,472,0,[Ld,Z1,ad])}function $Sn(){return Ac(),se(ie(z6t,1),Je,471,0,[tp,Q1,ld])}function ISn(){return Pd(),se(ie(R_,1),Je,237,0,[Nl,Aa,Ml])}function PSn(){return l6(),se(ie(cTe,1),Je,391,0,[Ose,Pse,Nse])}function OSn(){return qm(),se(ie(Xse,1),Je,372,0,[Sy,e0,_y])}function NSn(){return u6(),se(ie(c$e,1),Je,322,0,[HI,n9,a$e])}function MSn(){return IW(),se(ie(f$e,1),Je,351,0,[u$e,fV,ole])}function DSn(){return uw(),se(ie(b8t,1),Je,460,0,[ale,o4,H2])}function LSn(){return BC(),se(ie(mle,1),Je,299,0,[gle,wle,r9])}function jSn(){return wb(),se(ie(E8t,1),Je,311,0,[i9,G2,J3])}function FSn(){return v6(),se(ie(hIe,1),Je,390,0,[Kle,dIe,HV])}function BSn(){return Cs(),se(ie(r7t,1),Je,463,0,[i5,Pc,Ta])}function WSn(){return VW(),se(ie(xIe,1),Je,387,0,[kIe,nae,RIe])}function HSn(){return w6(),se(ie(CIe,1),Je,349,0,[iae,rae,b9])}function USn(){return qC(),se(ie(TIe,1),Je,350,0,[oae,AIe,o5])}function GSn(){return $W(),se(ie(PIe,1),Je,352,0,[IIe,sae,$Ie])}function VSn(){return XW(),se(ie(OIe,1),Je,388,0,[lae,m4,H_])}function zSn(){return Km(),se(ie(k7t,1),Je,464,0,[g9,s5,zV])}function Yd(e){return kl(se(ie(wo,1),rt,8,0,[e.i.n,e.n,e.a]))}function KSn(){return m6(),se(ie(JIe,1),Je,392,0,[XIe,uae,m9])}function Lgt(){Lgt=F,MNt=hc(new Ki,(k3(),u5),(K6(),BIe))}function eW(){eW=F,Eae=new Bwe("DFS",0),w5e=new Bwe("BFS",1)}function jgt(e,t,i){var s;s=new yJe,s.b=t,s.a=i,++t.b,lt(e.d,s)}function qSn(e,t,i){var s;s=new us(i.d),Mr(s,e),d2e(t,s.a,s.b)}function XSn(e,t){Ift(e,tr(fo(Im(t,24),bU)),tr(fo(t,bU)))}function Uv(e,t){if(e<0||e>t)throw ne(new Hs(cRe+e+uRe+t))}function Xt(e,t){if(e<0||e>=t)throw ne(new Hs(cRe+e+uRe+t))}function pn(e,t){if(e<0||e>=t)throw ne(new J0e(cRe+e+uRe+t))}function Vt(e,t){this.b=(mn(e),e),this.a=t&g_?t:t|64|Vh}function Uve(e){var t;return L1(e),t=(jm(),jm(),cse),xW(e,t)}function JSn(e,t,i){var s;return s=Q6(e,t,!1),s.b<=t&&s.a<=i}function YSn(){return wW(),se(ie(f8e,1),Je,439,0,[zae,u8e,c8e])}function QSn(){return iH(),se(ie(z5e,1),Je,394,0,[V5e,Wae,G5e])}function ZSn(){return uH(),se(ie(U5e,1),Je,445,0,[E9,sz,Mae])}function e2n(){return _H(),se(ie(dMt,1),Je,456,0,[Dae,jae,Lae])}function t2n(){return gN(),se(ie(k5e,1),Je,393,0,[rz,S5e,E5e])}function n2n(){return GW(),se(ie(H5e,1),Je,300,0,[Nae,W5e,B5e])}function r2n(){return vb(),se(ie(VPe,1),Je,346,0,[Ez,Wg,T5])}function i2n(){return SN(),se(ie(Kae,1),Je,444,0,[uz,fz,dz])}function o2n(){return nh(),se(ie(OPe,1),Je,278,0,[R4,K_,x4])}function s2n(){return m3(),se(ie(QPe,1),Je,280,0,[YPe,X_,Tz])}function Hm(e){return nr(e),ve(e,16)?new Rc(f(e,16)):aC(e.Kc())}function Gve(e,t){return e&&e.equals?e.equals(t):Ne(e)===Ne(t)}function fo(e,t){return O1(Qyn(ul(e)?yf(e):e,ul(t)?yf(t):t))}function Ad(e,t){return O1(Zyn(ul(e)?yf(e):e,ul(t)?yf(t):t))}function XZ(e,t){return O1(evn(ul(e)?yf(e):e,ul(t)?yf(t):t))}function l2n(e,t){var i;return i=(mn(e),e).g,jme(!!i),mn(t),i(t)}function Fgt(e,t){var i,s;return s=fC(e,t),i=e.a.fd(s),new Gat(e,i)}function a2n(e){return e.Db>>16!=6?null:f(Ene(e),241)}function c2n(e){if(e.p!=2)throw ne(new ac);return tr(e.f)&Ji}function u2n(e){if(e.p!=2)throw ne(new ac);return tr(e.k)&Ji}function Z(e){return In(e.as?1:0}function Ugt(e,t){var i,s;return i=mee(t),s=i,f(En(e.c,s),17).a}function JZ(e,t,i){var s;s=e.d[t.p],e.d[t.p]=e.d[i.p],e.d[i.p]=s}function _2n(e,t,i){var s;e.n&&t&&i&&(s=new nZe,lt(e.e,s))}function YZ(e,t){if(Zi(e.a,t),t.d)throw ne(new vl(QCt));t.d=e}function Kve(e,t){this.a=new st,this.d=new st,this.f=e,this.c=t}function Ggt(){this.c=new Cft,this.a=new O0t,this.b=new Vst,cct()}function Vgt(){g3(),this.b=new Fn,this.a=new Fn,this.c=new st}function zgt(e,t,i){this.d=e,this.j=t,this.e=i,this.o=-1,this.p=3}function Kgt(e,t,i){this.d=e,this.k=t,this.f=i,this.o=-1,this.p=5}function qgt(e,t,i,s,a,c){K_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function Xgt(e,t,i,s,a,c){q_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function Jgt(e,t,i,s,a,c){f_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function Ygt(e,t,i,s,a,c){Y_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function Qgt(e,t,i,s,a,c){d_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function Zgt(e,t,i,s,a,c){X_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function e1t(e,t,i,s,a,c){J_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function t1t(e,t,i,s,a,c){h_e.call(this,e,t,i,s,a),c&&(this.o=-2)}function n1t(e,t,i,s){Jj.call(this,i),this.b=e,this.c=t,this.d=s}function r1t(e,t){this.f=e,this.a=(SC(),Hz),this.c=Hz,this.b=t}function i1t(e,t){this.g=e,this.d=(SC(),Uz),this.a=Uz,this.b=t}function qve(e,t){!e.c&&(e.c=new Pi(e,0)),oU(e.c,(Jr(),W5),t)}function S2n(e,t){return iPn(e,t,ve(t,102)&&(f(t,19).Bb&ys)!=0)}function E2n(e,t){return jpt(Gl(e.q.getTime()),Gl(t.q.getTime()))}function o1t(e){return rZ(e.e.Rd().gc()*e.c.Rd().gc(),16,new Tnt(e))}function k2n(e){return!!e.u&&ra(e.u.a).i!=0&&!(e.n&&Bte(e.n))}function R2n(e){return!!e.a&&Wc(e.a.a).i!=0&&!(e.b&&Wte(e.b))}function Xve(e,t){return t==0?!!e.o&&e.o.f!=0:Nte(e,t)}function x2n(e,t,i){var s;return s=f(e.Zb().xc(t),16),!!s&&s.Hc(i)}function s1t(e,t,i){var s;return s=f(e.Zb().xc(t),16),!!s&&s.Mc(i)}function l1t(e,t){var i;return i=1-t,e.a[i]=FW(e.a[i],i),FW(e,t)}function a1t(e,t){var i,s;return s=fo(e,Ts),i=Zf(t,32),Ad(i,s)}function c1t(e,t,i){var s;s=(nr(e),new Rc(e)),ATn(new _gt(s,t,i))}function j7(e,t,i){var s;s=(nr(e),new Rc(e)),TTn(new Sgt(s,t,i))}function Tl(e,t,i,s,a,c){return Byt(e,t,i,c),i2e(e,s),o2e(e,a),e}function u1t(e,t,i,s){return e.a+=""+Vu(t==null?Za:dl(t),i,s),e}function No(e,t){this.a=e,YT.call(this,e),Uv(t,e.gc()),this.b=t}function f1t(e){this.a=Fe(ho,on,1,ISe(h.Math.max(8,e))<<1,5,1)}function F7(e){return f(ih(e,Fe(Op,$g,10,e.c.length,0,1)),199)}function Fh(e){return f(ih(e,Fe(Wse,pie,18,e.c.length,0,1)),483)}function d1t(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function t6(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function h1t(e){return In(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function C2n(e,t,i){e.a=t,e.c=i,e.b.a.$b(),wu(e.d),xv(e.e.a.c,0)}function p1t(e,t){var i;e.e=new B0e,i=c_(t),Hi(i,e.c),A3t(e,i,0)}function qi(e,t,i,s){var a;a=new N1e,a.a=t,a.b=i,a.c=s,hr(e.a,a)}function it(e,t,i,s){var a;a=new N1e,a.a=t,a.b=i,a.c=s,hr(e.b,a)}function b1t(e,t,i){if(e<0||ti)throw ne(new Hs(BIn(e,t,i)))}function B7(e,t){if(e<0||e>=t)throw ne(new Hs(w5n(e,t)));return e}function A2n(e){if(!("stack"in e))try{throw e}catch{}return e}function ZS(e){return d$(),ve(e.g,10)?f(e.g,10):null}function T2n(e){return YS(e).dc()?!1:(Qgn(e,new G),!0)}function rw(e){var t;return ul(e)?(t=e,t==-0?0:t):Gkn(e)}function g1t(e,t){return ve(t,44)?zte(e.a,f(t,44)):!1}function w1t(e,t){return ve(t,44)?zte(e.a,f(t,44)):!1}function m1t(e,t){return ve(t,44)?zte(e.a,f(t,44)):!1}function Jve(e){var t;return A1(e),t=new re,MS(e.a,new vrt(t)),t}function Yve(){var e,t,i;return t=(i=(e=new dm,e),i),lt(NOe,t),t}function tW(e){var t;return A1(e),t=new Te,MS(e.a,new _rt(t)),t}function $2n(e,t){return e.a<=e.b?(t.Dd(e.a++),!0):!1}function y1t(e){Fee.call(this,e,(RC(),fse),null,!1,null,!1)}function v1t(){v1t=F,xIt=Qn((bF(),se(ie(W4e,1),Je,489,0,[kse])))}function _1t(){_1t=F,MIe=hbt(ot(1),ot(4)),NIe=hbt(ot(1),ot(2))}function I2n(e,t){return new YQ(t,j$(Ho(t.e),e,e),(cn(),!0))}function nW(e){return new ka((Su(e,bre),kW(is(is(5,e),e/10|0))))}function P2n(e){return rZ(e.e.Rd().gc()*e.c.Rd().gc(),273,new Ant(e))}function S1t(e){return f(ih(e,Fe(M5t,$At,12,e.c.length,0,1)),2042)}function O2n(e){return mu(),!ms(e)&&!(!ms(e)&&e.c.i.c==e.d.i.c)}function N2n(e,t){return p3(),f(V(t,(Il(),tE)),17).a>=e.gc()}function n6(e,t){gjn(t,e),$ye(e.d),$ye(f(V(e,(pt(),MV)),214))}function QZ(e,t){wjn(t,e),Iye(e.d),Iye(f(V(e,(pt(),MV)),214))}function M2n(e,t,i){e.d&&Ja(e.d.e,e),e.d=t,e.d&&$m(e.d.e,i,e)}function D2n(e,t,i){return i.f.c.length>0?ove(e.a,t,i):ove(e.b,t,i)}function L2n(e,t,i){var s;s=e4n();try{return k0n(e,t,i)}finally{TEn(s)}}function Um(e,t){var i,s;return i=fb(e,t),s=null,i&&(s=i.pe()),s}function r6(e,t){var i,s;return i=fb(e,t),s=null,i&&(s=i.se()),s}function vC(e,t){var i,s;return i=Kv(e,t),s=null,i&&(s=i.se()),s}function db(e,t){var i,s;return i=fb(e,t),s=null,i&&(s=JEe(i)),s}function j2n(e,t,i){var s;return s=nA(i),eU(e.g,s,t),eU(e.i,t,i),t}function Qve(e,t,i){this.d=new Oit(this),this.e=e,this.i=t,this.f=i}function E1t(e,t,i,s){this.e=null,this.c=e,this.d=t,this.a=i,this.b=s}function k1t(e,t,i,s){_ft(this),this.c=e,this.e=t,this.f=i,this.b=s}function Zve(e,t,i,s){this.d=e,this.n=t,this.g=i,this.o=s,this.p=-1}function R1t(e,t,i,s){return ve(i,59)?new tdt(e,t,i,s):new Zye(e,t,i,s)}function _C(e){return ve(e,16)?f(e,16).dc():!e.Kc().Ob()}function x1t(e){if(e.e.g!=e.b)throw ne(new Bu);return!!e.c&&e.d>0}function Bn(e){return In(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function e_e(e,t){mn(t),Ci(e.a,e.c,t),e.c=e.c+1&e.a.length-1,qSt(e)}function $1(e,t){mn(t),e.b=e.b-1&e.a.length-1,Ci(e.a,e.b,t),qSt(e)}function C1t(e){var t;t=e.Gh(),this.a=ve(t,71)?f(t,71).Ii():t.Kc()}function F2n(e){return new Vt(k3n(f(e.a.md(),16).gc(),e.a.ld()),16)}function A1t(){A1t=F,UMt=Qn((mF(),se(ie(b8e,1),Je,490,0,[qae])))}function T1t(){T1t=F,VMt=Qn((yF(),se(ie(GMt,1),Je,558,0,[Xae])))}function $1t(){$1t=F,c9t=Qn((h$(),se(ie(D8e,1),Je,539,0,[C9])))}function B2n(){return hw(),se(ie(hTe,1),Je,389,0,[A_,dTe,Fse,Bse])}function W2n(){return RC(),se(ie(AG,1),Je,304,0,[fse,dse,hse,pse])}function H2n(){return _3(),se(ie(_It,1),Je,332,0,[VM,GM,zM,KM])}function U2n(){return I6(),se(ie(kIt,1),Je,406,0,[qM,PG,OG,XM])}function G2n(){return Jm(),se(ie(yIt,1),Je,417,0,[UM,HM,Sse,Ese])}function V2n(){return WC(),se(ie(E5t,1),Je,416,0,[vy,C_,x_,L2])}function z2n(){return rh(),se(ie(Z5t,1),Je,421,0,[X3,QA,ZA,qse])}function K2n(){return qW(),se(ie(H5t,1),Je,371,0,[Kse,oV,sV,e9])}function q2n(){return n_(),se(ie(Xle,1),Je,203,0,[UV,qle,Z2,Q2])}function X2n(){return Wh(),se(ie(SIe,1),Je,284,0,[Dg,_Ie,Qle,Zle])}function J2n(e){var t;return e.j==(ft(),jn)&&(t=gkt(e),fc(t,_n))}function Y2n(e,t){var i;i=t.a,rs(i,t.c.d),xo(i,t.d.d),Yv(i.a,e.n)}function t_e(e,t){var i;return i=f(th(e.b,t),67),!i&&(i=new li),i}function c3(e){return d$(),ve(e.g,154)?f(e.g,154):null}function Q2n(e){e.a=null,e.e=null,xv(e.b.c,0),xv(e.f.c,0),e.c=null}function rW(){rW=F,yle=new Owe($A,0),$$e=new Owe("TOP_LEFT",1)}function i6(){i6=F,a5=new Mwe("UPPER",0),l5=new Mwe("LOWER",1)}function Z2n(e,t){return zk(new tt(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)}function I1t(e,t){return f(tu(jv(f(Hr(e.k,t),15).Oc(),F2)),113)}function P1t(e,t){return f(tu(e3(f(Hr(e.k,t),15).Oc(),F2)),113)}function eEn(){return k3(),se(ie(jIe,1),Je,405,0,[JV,c5,u5,f5])}function tEn(){return y6(),se(ie(g5e,1),Je,353,0,[Sae,tz,_ae,vae])}function nEn(){return RH(),se(ie(F5e,1),Je,354,0,[Oae,L5e,j5e,D5e])}function rEn(){return su(),se(ie(N5,1),Je,386,0,[U9,Vw,H9,q_])}function iEn(){return ku(),se(ie(J9t,1),Je,291,0,[F9,Dp,a0,j9])}function oEn(){return _b(),se(ie(Sce,1),Je,223,0,[_ce,L9,C4,uR])}function sEn(){return sH(),se(ie(iOe,1),Je,320,0,[Rce,tOe,rOe,nOe])}function lEn(){return JW(),se(ie(hDt,1),Je,415,0,[xce,sOe,oOe,lOe])}function aEn(e){return QB(),Na(Ice,e)?f(En(Ice,e),341).Qg():null}function zu(e,t,i){return t<0?vne(e,i):f(i,69).wk().Bk(e,e.hi(),t)}function cEn(e,t,i){var s;return s=nA(i),eU(e.j,s,t),xr(e.k,t,i),t}function uEn(e,t,i){var s;return s=nA(i),eU(e.d,s,t),xr(e.e,t,i),t}function O1t(e){var t,i;return t=(v1(),i=new QJ,i),e&&GH(t,e),t}function n_e(e){var t;return t=e.aj(e.i),e.i>0&&oa(e.g,0,t,0,e.i),t}function N1t(e,t){var i;for(i=e.j.c.length;i>24}function dEn(e){if(e.p!=1)throw ne(new ac);return tr(e.k)<<24>>24}function hEn(e){if(e.p!=7)throw ne(new ac);return tr(e.k)<<16>>16}function pEn(e){if(e.p!=7)throw ne(new ac);return tr(e.f)<<16>>16}function e2(e,t){return t.e==0||e.e==0?MI:(pA(),Tne(e,t))}function L1t(e,t){return Ne(t)===Ne(e)?"(this Map)":t==null?Za:dl(t)}function bEn(e,t,i){return dZ(je(tl(xs(e.f,t))),je(tl(xs(e.f,i))))}function gEn(e,t,i){var s;s=f(En(e.g,i),60),lt(e.a.c,new io(t,s))}function j1t(e,t,i){e.i=0,e.e=0,t!=i&&(vvt(e,t,i),yvt(e,t,i))}function wEn(e,t,i,s,a){var c;c=mPn(a,i,s),lt(t,u5n(a,c)),tIn(e,a,t)}function r_e(e,t,i,s,a){this.i=e,this.a=t,this.e=i,this.j=s,this.f=a}function F1t(e,t){Nve.call(this),this.a=e,this.b=t,lt(this.a.b,this)}function B1t(e){this.b=new Fn,this.c=new Fn,this.d=new Fn,this.a=e}function W1t(e,t){var i;return i=new jk,e.Gd(i),i.a+="..",t.Hd(i),i.a}function H1t(e,t){var i;for(i=t;i;)Am(e,i.i,i.j),i=di(i);return e}function U1t(e,t,i){var s;return s=nA(i),xr(e.b,s,t),xr(e.c,t,i),t}function hb(e){var t;for(t=0;e.Ob();)e.Pb(),t=is(t,1);return kW(t)}function yp(e,t){Ss();var i;return i=f(e,69).vk(),wIn(i,t),i.xl(t)}function mEn(e,t,i){if(i){var s=i.oe();e.a[t]=s(i)}else delete e.a[t]}function i_e(e,t){var i;i=e.q.getHours(),e.q.setFullYear(t+V1),X6(e,i)}function yEn(e,t){return f(t==null?tl(xs(e.f,null)):w$(e.i,t),288)}function o_e(e,t){return e==(gn(),ji)&&t==ji?4:e==ji||t==ji?8:32}function iW(e,t,i){return nU(e,t,i,ve(t,102)&&(f(t,19).Bb&ys)!=0)}function vEn(e,t,i){return mA(e,t,i,ve(t,102)&&(f(t,19).Bb&ys)!=0)}function _En(e,t,i){return fPn(e,t,i,ve(t,102)&&(f(t,19).Bb&ys)!=0)}function s_e(e){e.b!=e.c&&(e.a=Fe(ho,on,1,8,5,1),e.b=0,e.c=0)}function o6(e){return In(e.a=0&&e.a[i]===t[i];i--);return i<0}function oW(e){var t;return e?new Uye(e):(t=new Oh,Lee(t,e),t)}function AEn(e,t){var i,s;s=!1;do i=cvt(e,t),s=s|i;while(i);return s}function TEn(e){e&&t3n((z0e(),HAe)),--SG,e&&EG!=-1&&(vgn(EG),EG=-1)}function sW(e){NEe(),Ift(this,tr(fo(Im(e,24),bU)),tr(fo(e,bU)))}function q1t(){q1t=F,B6t=Qn((bH(),se(ie(m4e,1),Je,436,0,[wse,w4e])))}function X1t(){X1t=F,W6t=Qn((SW(),se(ie(v4e,1),Je,435,0,[y4e,mse])))}function J1t(){J1t=F,UIt=Qn((EW(),se(ie(q4e,1),Je,432,0,[Tse,DG])))}function Y1t(){Y1t=F,F5t=Qn((MC(),se(ie(j5t,1),Je,517,0,[QM,Use])))}function Q1t(){Q1t=F,R8t=Qn((rW(),se(ie(I$e,1),Je,429,0,[yle,$$e])))}function Z1t(){Z1t=F,p8t=Qn((nN(),se(ie(b$e,1),Je,428,0,[dV,p$e])))}function e0t(){e0t=F,m8t=Qn((X7(),se(ie(m$e,1),Je,488,0,[w$e,pV])))}function t0t(){t0t=F,n7t=Qn((eN(),se(ie(EIe,1),Je,430,0,[eae,tae])))}function n0t(){n0t=F,$7t=Qn((i6(),se(ie(T7t,1),Je,531,0,[a5,l5])))}function r0t(){r0t=F,u8t=Qn((pW(),se(ie(l$e,1),Je,431,0,[s$e,ile])))}function i0t(){i0t=F,NNt=Qn((eW(),se(ie(m5e,1),Je,433,0,[Eae,w5e])))}function o0t(){o0t=F,FNt=Qn((jW(),se(ie(y5e,1),Je,501,0,[nz,rE])))}function s0t(){s0t=F,L7t=Qn((jh(),se(ie(D7t,1),Je,523,0,[Ny,Lg])))}function l0t(){l0t=F,F7t=Qn((Jd(),se(ie(j7t,1),Je,522,0,[Fw,ph])))}function a0t(){a0t=F,eNt=Qn((Td(),se(ie(Z7t,1),Je,528,0,[U_,i0])))}function c0t(){c0t=F,lNt=Qn((Wm(),se(ie(sNt,1),Je,465,0,[o0,eE])))}function u0t(){u0t=F,HNt=Qn((gW(),se(ie(_5e,1),Je,434,0,[v5e,Tae])))}function f0t(){f0t=F,LMt=Qn((aW(),se(ie(a8e,1),Je,491,0,[Vae,l8e])))}function d0t(){d0t=F,FMt=Qn((Gee(),se(ie(p8e,1),Je,492,0,[d8e,h8e])))}function h0t(){h0t=F,zMt=Qn((G7(),se(ie(g8e,1),Je,438,0,[Jae,hz])))}function p0t(){p0t=F,u9t=Qn((dN(),se(ie(j8e,1),Je,437,0,[bz,L8e])))}function b0t(){b0t=F,uDt=Qn((XQ(),se(ie($z,1),Je,347,0,[ZPe,eOe])))}function $En(){return Xi(),se(ie(C5,1),Je,88,0,[wh,al,Js,gh,cf])}function IEn(){return ft(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])}function PEn(e,t,i){return f(t==null?Ca(e.f,null,i):Ym(e.i,t,i),288)}function OEn(e){return(e.k==(gn(),ji)||e.k==Ui)&&ri(e,(nt(),zI))}function ree(e){return e.c&&e.d?zve(e.c)+"->"+zve(e.d):"e_"+Cm(e)}function Vo(e,t){var i,s;for(mn(t),s=e.Kc();s.Ob();)i=s.Pb(),t.Cd(i)}function NEn(e,t){var i;i=new Nk,ew(i,"x",t.a),ew(i,"y",t.b),r3(e,i)}function MEn(e,t){var i;i=new Nk,ew(i,"x",t.a),ew(i,"y",t.b),r3(e,i)}function g0t(e,t){var i;for(i=t;i;)Am(e,-i.i,-i.j),i=di(i);return e}function a_e(e,t){var i,s;for(i=t,s=0;i>0;)s+=e.a[i],i-=i&-i;return s}function Ku(e,t,i){var s;return s=(Xt(t,e.c.length),e.c[t]),e.c[t]=i,s}function c_e(e,t,i){e.a.c.length=0,sDn(e,t,i),e.a.c.length==0||ONn(e,t)}function W7(e){e.i=0,KO(e.b,null),KO(e.c,null),e.a=null,e.e=null,++e.g}function lW(){lW=F,fh=!0,$6t=!1,I6t=!1,O6t=!1,P6t=!1}function iee(e){lW(),!fh&&(this.c=e,this.e=!0,this.a=new st)}function w0t(e,t){this.c=0,this.b=t,But.call(this,e,17493),this.a=this.c}function m0t(e){vCt(),xst(this),this.a=new li,HSe(this,e),hr(this.a,e)}function y0t(){CQ(this),this.b=new tt(hi,hi),this.a=new tt(to,to)}function aW(){aW=F,Vae=new Uwe(FRe,0),l8e=new Uwe("TARGET_WIDTH",1)}function t2(e,t){return(L1(e),Xx(new Wt(e,new D_e(t,e.a)))).Bd(z3)}function DEn(){return Yo(),se(ie(uTe,1),Je,367,0,[cd,Pp,sa,ga,ll])}function LEn(){return i_(),se(ie(t8t,1),Je,375,0,[t9,cV,uV,aV,lV])}function jEn(){return Eg(),se(ie(h$e,1),Je,348,0,[sle,d$e,lle,i4,r4])}function FEn(){return $6(),se(ie(bIe,1),Je,323,0,[pIe,Jle,Yle,n5,r5])}function BEn(){return ef(),se(ie(G$e,1),Je,171,0,[a9,qI,n0,XI,O_])}function WEn(){return PH(),se(ie(BNt,1),Je,368,0,[Cae,kae,Aae,Rae,xae])}function HEn(){return U6(),se(ie(BMt,1),Je,373,0,[iE,oR,v5,y5,x9])}function UEn(){return LN(),se(ie(v8e,1),Je,324,0,[w8e,Yae,y8e,Qae,m8e])}function GEn(){return Nd(),se(ie(Mp,1),Je,170,0,[nn,lo,op,Bw,Fg])}function VEn(){return a2(),se(ie(I5,1),Je,256,0,[c0,B9,zPe,$5,KPe])}function zEn(e){return oF(),function(){return L2n(e,this,arguments)}}function ms(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function u_e(e,t){return ve(t,143)?Ht(e.c,f(t,143).c):!1}function Bc(e){return e.t||(e.t=new gst(e),k6(new Plt(e),0,e.t)),e.t}function v0t(e){this.b=e,Sn.call(this,e),this.a=f(dn(this.b.a,4),129)}function _0t(e){this.b=e,qk.call(this,e),this.a=f(dn(this.b.a,4),129)}function ed(e,t,i,s,a){I0t.call(this,t,s,a),this.c=e,this.b=i}function f_e(e,t,i,s,a){zgt.call(this,t,s,a),this.c=e,this.a=i}function d_e(e,t,i,s,a){Kgt.call(this,t,s,a),this.c=e,this.a=i}function h_e(e,t,i,s,a){I0t.call(this,t,s,a),this.c=e,this.a=i}function oee(e,t){var i;return i=f(th(e.d,t),23),i||f(th(e.e,t),23)}function S0t(e,t){var i,s;return i=t.ld(),s=e.Fe(i),!!s&&Ul(s.e,t.md())}function E0t(e,t){var i;return i=t.ld(),new ym(i,e.e.pc(i,f(t.md(),16)))}function KEn(e,t){var i;return i=e.a.get(t),i??Fe(ho,on,1,0,5,1)}function k0t(e){var t;return t=e.length,Ht(vn.substr(vn.length-t,t),e)}function On(e){if(Un(e))return e.c=e.a,e.a.Pb();throw ne(new yl)}function p_e(e,t){return t==0||e.e==0?e:t>0?h3t(e,t):L_t(e,-t)}function u3(e,t){return t==0||e.e==0?e:t>0?L_t(e,t):h3t(e,-t)}function b_e(e){ign.call(this,e==null?Za:dl(e),ve(e,82)?f(e,82):null)}function R0t(e){var t;return e.c||(t=e.r,ve(t,90)&&(e.c=f(t,29))),e.c}function see(e){var t;return t=new Fm,ol(t,e),Xe(t,(pt(),Xs),null),t}function x0t(e){var t,i;return t=e.c.i,i=e.d.i,t.k==(gn(),Ui)&&i.k==Ui}function lee(e){var t,i,s;return t=e&Vc,i=e>>22&Vc,s=e<0?Ab:0,Oa(t,i,s)}function qEn(e){var t,i,s,a;for(i=e,s=0,a=i.length;s=0?e.Lh(s,i,!0):iy(e,t,i)}function JEn(e,t,i){return Qr(zk(iA(e),Ho(t.b)),zk(iA(e),Ho(i.b)))}function YEn(e,t,i){return Qr(zk(iA(e),Ho(t.e)),zk(iA(e),Ho(i.e)))}function QEn(e,t){return h.Math.min(I1(t.a,e.d.d.c),I1(t.b,e.d.d.c))}function H7(e,t){e._i(e.i+1),M$(e,e.i,e.Zi(e.i,t)),e.Mi(e.i++,t),e.Ni()}function s6(e){var t,i;++e.j,t=e.g,i=e.i,e.g=null,e.i=0,e.Oi(i,t),e.Ni()}function C0t(e,t,i){var s;s=new pme(e.a),h6(s,e.a.a),Ca(s.f,t,i),e.a.a=s}function g_e(e,t,i,s){var a;for(a=0;a<$G;a++)CB(e.a[a][t.g],i,s[t.g])}function w_e(e,t,i,s){var a;for(a=0;at)throw ne(new Hs(oke(e,t,"index")));return e}function pg(e,t){var i;return i=(Xt(t,e.c.length),e.c[t]),cwe(e.c,t,1),i}function y_e(e,t){var i,s;return i=(mn(e),e),s=(mn(t),t),i==s?0:it.p?-1:0}function M0t(e){var t;return e.a||(t=e.r,ve(t,156)&&(e.a=f(t,156))),e.a}function ikn(e,t,i){var s;return++e.e,--e.f,s=f(e.d[t].gd(i),136),s.md()}function okn(e){var t,i;return t=e.ld(),i=f(e.md(),16),_7(i.Nc(),new Int(t))}function D0t(e,t){return Na(e.a,t)?(f3(e.a,t),!0):!1}function d3(e,t,i){return B7(t,e.e.Rd().gc()),B7(i,e.c.Rd().gc()),e.a[t][i]}function uW(e,t,i){this.a=e,this.b=t,this.c=i,lt(e.t,this),lt(t.i,this)}function fW(e,t,i,s){this.f=e,this.e=t,this.d=i,this.b=s,this.c=s?s.d:null}function U7(){this.b=new li,this.a=new li,this.b=new li,this.a=new li}function SC(){SC=F;var e,t;Hz=(qx(),t=new Zj,t),Uz=(e=new yY,e)}function skn(e){var t;return L1(e),t=new Aht(e,e.a.e,e.a.d|4),new Bme(e,t)}function L0t(e){var t;for(A1(e),t=0;e.a.Bd(new ht);)t=is(t,1);return t}function dW(e,t){return mn(t),e.c=0,"Initial capacity must not be negative")}function hW(){hW=F,_5=new Xr("org.eclipse.elk.labels.labelManager")}function j0t(){j0t=F,t$e=new _i("separateLayerConnections",(qW(),Kse))}function Td(){Td=F,U_=new jwe("REGULAR",0),i0=new jwe("CRITICAL",1)}function G7(){G7=F,Jae=new Vwe("FIXED",0),hz=new Vwe("CENTER_NODE",1)}function pW(){pW=F,s$e=new $we("QUADRATIC",0),ile=new $we("SCANLINE",1)}function F0t(){F0t=F,f8t=Qn((u6(),se(ie(c$e,1),Je,322,0,[HI,n9,a$e])))}function B0t(){B0t=F,d8t=Qn((IW(),se(ie(f$e,1),Je,351,0,[u$e,fV,ole])))}function W0t(){W0t=F,l8t=Qn((qm(),se(ie(Xse,1),Je,372,0,[Sy,e0,_y])))}function H0t(){H0t=F,g8t=Qn((uw(),se(ie(b8t,1),Je,460,0,[ale,o4,H2])))}function U0t(){U0t=F,S8t=Qn((BC(),se(ie(mle,1),Je,299,0,[gle,wle,r9])))}function G0t(){G0t=F,k8t=Qn((wb(),se(ie(E8t,1),Je,311,0,[i9,G2,J3])))}function V0t(){V0t=F,YOt=Qn((v6(),se(ie(hIe,1),Je,390,0,[Kle,dIe,HV])))}function z0t(){z0t=F,o7t=Qn((VW(),se(ie(xIe,1),Je,387,0,[kIe,nae,RIe])))}function K0t(){K0t=F,s7t=Qn((w6(),se(ie(CIe,1),Je,349,0,[iae,rae,b9])))}function q0t(){q0t=F,i7t=Qn((Cs(),se(ie(r7t,1),Je,463,0,[i5,Pc,Ta])))}function X0t(){X0t=F,l7t=Qn((qC(),se(ie(TIe,1),Je,350,0,[oae,AIe,o5])))}function J0t(){J0t=F,a7t=Qn(($W(),se(ie(PIe,1),Je,352,0,[IIe,sae,$Ie])))}function Y0t(){Y0t=F,c7t=Qn((XW(),se(ie(OIe,1),Je,388,0,[lae,m4,H_])))}function Q0t(){Q0t=F,uNt=Qn((m6(),se(ie(JIe,1),Je,392,0,[XIe,uae,m9])))}function Z0t(){Z0t=F,UNt=Qn((gN(),se(ie(k5e,1),Je,393,0,[rz,S5e,E5e])))}function ewt(){ewt=F,uMt=Qn((GW(),se(ie(H5e,1),Je,300,0,[Nae,W5e,B5e])))}function twt(){twt=F,fMt=Qn((uH(),se(ie(U5e,1),Je,445,0,[E9,sz,Mae])))}function nwt(){nwt=F,hMt=Qn((_H(),se(ie(dMt,1),Je,456,0,[Dae,jae,Lae])))}function rwt(){rwt=F,gMt=Qn((iH(),se(ie(z5e,1),Je,394,0,[V5e,Wae,G5e])))}function iwt(){iwt=F,jMt=Qn((wW(),se(ie(f8e,1),Je,439,0,[zae,u8e,c8e])))}function owt(){owt=F,R7t=Qn((Km(),se(ie(k7t,1),Je,464,0,[g9,s5,zV])))}function swt(){swt=F,K6t=Qn((Ac(),se(ie(z6t,1),Je,471,0,[tp,Q1,ld])))}function lwt(){lwt=F,V6t=Qn((Pd(),se(ie(R_,1),Je,237,0,[Nl,Aa,Ml])))}function awt(){awt=F,X6t=Qn((Ya(),se(ie(q6t,1),Je,472,0,[Ld,Z1,ad])))}function cwt(){cwt=F,N6t=Qn((Tc(),se(ie(qs,1),Je,108,0,[g4e,pl,k_])))}function uwt(){uwt=F,b5t=Qn((l6(),se(ie(cTe,1),Je,391,0,[Ose,Pse,Nse])))}function fwt(){fwt=F,X9t=Qn((vb(),se(ie(VPe,1),Je,346,0,[Ez,Wg,T5])))}function dwt(){dwt=F,HMt=Qn((SN(),se(ie(Kae,1),Je,444,0,[uz,fz,dz])))}function hwt(){hwt=F,V9t=Qn((nh(),se(ie(OPe,1),Je,278,0,[R4,K_,x4])))}function pwt(){pwt=F,cDt=Qn((m3(),se(ie(QPe,1),Je,280,0,[YPe,X_,Tz])))}function eh(e,t){return!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),Rte(e.o,t)}function lkn(e,t){var i;e.C&&(i=f(Ds(e.b,t),127).n,i.d=e.C.d,i.a=e.C.a)}function k_e(e){var t,i,s,a;a=e.d,t=e.a,i=e.b,s=e.c,e.d=i,e.a=s,e.b=a,e.c=t}function akn(e){return!e.g&&(e.g=new Wj),!e.g.b&&(e.g.b=new dst(e)),e.g.b}function V7(e){return!e.g&&(e.g=new Wj),!e.g.c&&(e.g.c=new bst(e)),e.g.c}function ckn(e){return!e.g&&(e.g=new Wj),!e.g.d&&(e.g.d=new hst(e)),e.g.d}function ukn(e){return!e.g&&(e.g=new Wj),!e.g.a&&(e.g.a=new pst(e)),e.g.a}function fkn(e,t,i,s){return i&&(s=i.Rh(t,yi(i.Dh(),e.c.uk()),null,s)),s}function dkn(e,t,i,s){return i&&(s=i.Th(t,yi(i.Dh(),e.c.uk()),null,s)),s}function fee(e,t,i,s){var a;return a=Fe(Xn,wr,28,t+1,15,1),gMn(a,e,t,i,s),a}function Fe(e,t,i,s,a,c){var b;return b=FSt(a,s),a!=10&&se(ie(e,c),t,i,a,b),b}function hkn(e,t,i){var s,a;for(a=new FC(t,e),s=0;si||t=0?e.Lh(i,!0,!0):iy(e,t,!0)}function $kn(e,t,i){var s;return s=wvt(e,t,i),e.b=new BW(s.c.length),Kke(e,s)}function Ikn(e){if(e.b<=0)throw ne(new yl);return--e.b,e.a-=e.c.c,ot(e.a)}function Pkn(e){var t;if(!e.a)throw ne(new Cbt);return t=e.a,e.a=di(e.a),t}function Okn(e){for(;!e.a;)if(!Zdt(e.c,new Srt(e)))return!1;return!0}function h3(e){var t;return nr(e),ve(e,204)?(t=f(e,204),t):new Fnt(e)}function Nkn(e){bW(),f(e.of((Er(),z_)),181).Fc(($c(),W9)),e.qf(mce,null)}function bW(){bW=F,h9t=new yQe,b9t=new vQe,p9t=Sxn((Er(),mce),h9t,l0,b9t)}function gW(){gW=F,v5e=new Hwe("LEAF_NUMBER",0),Tae=new Hwe("NODE_SIZE",1)}function gee(e){e.a=Fe(Xn,wr,28,e.b+1,15,1),e.c=Fe(Xn,wr,28,e.b,15,1),e.d=0}function Mkn(e,t){e.a.Ne(t.d,e.b)>0&&(lt(e.c,new Rye(t.c,t.d,e.d)),e.b=t.d)}function N_e(e,t){if(e.g==null||t>=e.i)throw ne(new SQ(t,e.i));return e.g[t]}function mwt(e,t,i){if(VC(e,i),i!=null&&!e.fk(i))throw ne(new gY);return i}function wee(e,t){return tN(t)!=10&&se(ou(t),t.Sm,t.__elementTypeId$,tN(t),e),e}function kC(e,t,i,s){var a;s=(jm(),s||c4e),a=e.slice(t,i),ske(a,e,t,i,-t,s)}function qu(e,t,i,s,a){return t<0?iy(e,i,s):f(i,69).wk().yk(e,e.hi(),t,s,a)}function Dkn(e,t){return Qr(Ae(je(V(e,(nt(),Ry)))),Ae(je(V(t,Ry))))}function ywt(){ywt=F,A6t=Qn((RC(),se(ie(AG,1),Je,304,0,[fse,dse,hse,pse])))}function RC(){RC=F,fse=new EF("All",0),dse=new cft,hse=new mft,pse=new aft}function Ac(){Ac=F,tp=new KY(M3,0),Q1=new KY($A,1),ld=new KY(D3,2)}function vwt(){vwt=F,rU(),HOe=hi,gLt=to,UOe=new OO(hi),wLt=new OO(to)}function _wt(){_wt=F,vIt=Qn((Jm(),se(ie(yIt,1),Je,417,0,[UM,HM,Sse,Ese])))}function Swt(){Swt=F,RIt=Qn((I6(),se(ie(kIt,1),Je,406,0,[qM,PG,OG,XM])))}function Ewt(){Ewt=F,SIt=Qn((_3(),se(ie(_It,1),Je,332,0,[VM,GM,zM,KM])))}function kwt(){kwt=F,$5t=Qn((hw(),se(ie(hTe,1),Je,389,0,[A_,dTe,Fse,Bse])))}function Rwt(){Rwt=F,k5t=Qn((WC(),se(ie(E5t,1),Je,416,0,[vy,C_,x_,L2])))}function xwt(){xwt=F,e8t=Qn((rh(),se(ie(Z5t,1),Je,421,0,[X3,QA,ZA,qse])))}function Cwt(){Cwt=F,U5t=Qn((qW(),se(ie(H5t,1),Je,371,0,[Kse,oV,sV,e9])))}function Awt(){Awt=F,QOt=Qn((n_(),se(ie(Xle,1),Je,203,0,[UV,qle,Z2,Q2])))}function Twt(){Twt=F,t7t=Qn((Wh(),se(ie(SIe,1),Je,284,0,[Dg,_Ie,Qle,Zle])))}function X7(){X7=F,w$e=new Pwe(Jh,0),pV=new Pwe("IMPROVE_STRAIGHTNESS",1)}function $wt(e,t){var i,s;return s=t/e.c.Rd().gc()|0,i=t%e.c.Rd().gc(),d3(e,s,i)}function Iwt(e){var t;if(e.nl())for(t=e.i-1;t>=0;--t)Se(e,t);return n_e(e)}function M_e(e){var t,i;if(!e.b)return null;for(i=e.b;t=i.a[0];)i=t;return i}function Pwt(e){var t,i;if(!e.b)return null;for(i=e.b;t=i.a[1];)i=t;return i}function Lkn(e){return ve(e,180)?""+f(e,180).a:e==null?null:dl(e)}function jkn(e){return ve(e,180)?""+f(e,180).a:e==null?null:dl(e)}function Owt(e,t){if(t.a)throw ne(new vl(QCt));Zi(e.a,t),t.a=e,!e.j&&(e.j=t)}function D_e(e,t){KF.call(this,t.zd(),t.yd()&-16449),mn(e),this.a=e,this.c=t}function Fkn(e,t){return new YQ(t,Am(Ho(t.e),t.f.a+e,t.f.b+e),(cn(),!1))}function Bkn(e,t){return lC(),lt(e,new io(t,ot(t.e.c.length+t.g.c.length)))}function Wkn(e,t){return lC(),lt(e,new io(t,ot(t.e.c.length+t.g.c.length)))}function Nwt(){Nwt=F,cMt=Qn((RH(),se(ie(F5e,1),Je,354,0,[Oae,L5e,j5e,D5e])))}function Mwt(){Mwt=F,ONt=Qn((y6(),se(ie(g5e,1),Je,353,0,[Sae,tz,_ae,vae])))}function Dwt(){Dwt=F,aNt=Qn((k3(),se(ie(jIe,1),Je,405,0,[JV,c5,u5,f5])))}function Lwt(){Lwt=F,z9t=Qn((_b(),se(ie(Sce,1),Je,223,0,[_ce,L9,C4,uR])))}function jwt(){jwt=F,Y9t=Qn((ku(),se(ie(J9t,1),Je,291,0,[F9,Dp,a0,j9])))}function Fwt(){Fwt=F,lDt=Qn((su(),se(ie(N5,1),Je,386,0,[U9,Vw,H9,q_])))}function Bwt(){Bwt=F,fDt=Qn((sH(),se(ie(iOe,1),Je,320,0,[Rce,tOe,rOe,nOe])))}function Wwt(){Wwt=F,pDt=Qn((JW(),se(ie(hDt,1),Je,415,0,[xce,sOe,oOe,lOe])))}function wW(){wW=F,zae=new wQ(g4t,0),u8e=new wQ(iCe,1),c8e=new wQ(Jh,2)}function zv(e,t,i,s,a){return mn(e),mn(t),mn(i),mn(s),mn(a),new lve(e,t,s)}function Hwt(e,t){var i;return i=f(f3(e.e,t),400),i?(Dye(i),i.e):null}function Ja(e,t){var i;return i=il(e,t,0),i==-1?!1:(pg(e,i),!0)}function Uwt(e,t,i){var s;return A1(e),s=new de,s.a=t,e.a.Nb(new kct(s,i)),s.a}function Hkn(e){var t;return A1(e),t=Fe(Ro,js,28,0,15,1),MS(e.a,new yrt(t)),t}function L_e(e){var t;if(!Oee(e))throw ne(new yl);return e.e=1,t=e.d,e.d=null,t}function gg(e){var t;return ul(e)&&(t=0-e,!isNaN(t))?t:O1(UC(e))}function il(e,t,i){for(;i=0?yH(e,i,!0,!0):iy(e,t,!0)}function F_e(e){var t;return t=ow(dn(e,32)),t==null&&(ja(e),t=ow(dn(e,32))),t}function B_e(e){var t;return e.Oh()||(t=Pn(e.Dh())-e.ji(),e.$h().Mk(t)),e.zh()}function Xwt(e,t){F4e=new el,EIt=t,LI=e,f(LI.b,68),C_e(LI,F4e,null),uxt(LI)}function l6(){l6=F,Ose=new XY("XY",0),Pse=new XY("X",1),Nse=new XY("Y",2)}function Ya(){Ya=F,Ld=new qY("TOP",0),Z1=new qY($A,1),ad=new qY(wRe,2)}function wb(){wb=F,i9=new tQ(Jh,0),G2=new tQ("TOP",1),J3=new tQ(wRe,2)}function eN(){eN=F,eae=new Nwe("INPUT_ORDER",0),tae=new Nwe("PORT_DEGREE",1)}function xC(){xC=F,GAe=Oa(Vc,Vc,524287),d6t=Oa(0,0,fM),VAe=lee(1),lee(2),zAe=lee(0)}function See(e){var t;return e.d!=e.r&&(t=_f(e),e.e=!!t&&t.lk()==d$t,e.d=t),e.e}function Eee(e,t,i){var s;return s=e.g[t],M$(e,t,e.Zi(t,i)),e.Ri(t,i,s),e.Ni(),s}function _W(e,t){var i;return i=e.dd(t),i>=0?(e.gd(i),!0):!1}function kee(e,t){var i;for(nr(e),nr(t),i=!1;t.Ob();)i=i|e.Fc(t.Pb());return i}function th(e,t){var i;return i=f(En(e.e,t),400),i?($ft(e,i),i.e):null}function Jwt(e){var t,i;return t=e/60|0,i=e%60,i==0?""+t:""+t+":"+(""+i)}function Kv(e,t){var i=e.a[t],s=(Jee(),ose)[typeof i];return s?s(i):XSe(typeof i)}function El(e,t){var i,s;return L1(e),s=new __e(t,e.a),i=new nht(s),new Wt(e,i)}function Ree(e){var t;return t=e.b.c.length==0?null:yt(e.b,0),t!=null&&Mee(e,0),t}function zkn(e,t){var i,s,a;a=t.c.i,i=f(En(e.f,a),60),s=i.d.c-i.e.c,mSe(t.a,s,0)}function W_e(e,t){var i;for(++e.d,++e.c[t],i=t+1;i=0;)++t[0]}function Kkn(e,t){Da(e,t==null||aB((mn(t),t))||isNaN((mn(t),t))?0:(mn(t),t))}function qkn(e,t){La(e,t==null||aB((mn(t),t))||isNaN((mn(t),t))?0:(mn(t),t))}function Xkn(e,t){zm(e,t==null||aB((mn(t),t))||isNaN((mn(t),t))?0:(mn(t),t))}function Jkn(e,t){Vm(e,t==null||aB((mn(t),t))||isNaN((mn(t),t))?0:(mn(t),t))}function Ykn(e,t,i){return zk(new tt(i.e.a+i.f.a/2,i.e.b+i.f.b/2),e)==(mn(t),t)}function Qkn(e,t){return ve(t,102)&&f(t,19).Bb&ys?new EQ(t,e):new FC(t,e)}function Zkn(e,t){return ve(t,102)&&f(t,19).Bb&ys?new EQ(t,e):new FC(t,e)}function tN(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function Zwt(e,t){return t==(zQ(),zQ(),R6t)?e.toLocaleLowerCase():e.toLowerCase()}function emt(e){if(!e.e)throw ne(new yl);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function H_e(e){if(!e.c)throw ne(new yl);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function tmt(e){var t;for(++e.a,t=e.c.a.length;e.ae.a[s]&&(s=i);return s}function nmt(e){var t;return t=f(V(e,(nt(),Ey)),313),t?t.a==e:!1}function rmt(e){var t;return t=f(V(e,(nt(),Ey)),313),t?t.i==e:!1}function imt(){imt=F,y5t=Qn((Yo(),se(ie(uTe,1),Je,367,0,[cd,Pp,sa,ga,ll])))}function omt(){omt=F,n8t=Qn((i_(),se(ie(t8t,1),Je,375,0,[t9,cV,uV,aV,lV])))}function smt(){smt=F,h8t=Qn((Eg(),se(ie(h$e,1),Je,348,0,[sle,d$e,lle,i4,r4])))}function lmt(){lmt=F,ZOt=Qn(($6(),se(ie(bIe,1),Je,323,0,[pIe,Jle,Yle,n5,r5])))}function amt(){amt=F,x8t=Qn((ef(),se(ie(G$e,1),Je,171,0,[a9,qI,n0,XI,O_])))}function cmt(){cmt=F,WNt=Qn((PH(),se(ie(BNt,1),Je,368,0,[Cae,kae,Aae,Rae,xae])))}function umt(){umt=F,WMt=Qn((U6(),se(ie(BMt,1),Je,373,0,[iE,oR,v5,y5,x9])))}function fmt(){fmt=F,KMt=Qn((LN(),se(ie(v8e,1),Je,324,0,[w8e,Yae,y8e,Qae,m8e])))}function dmt(){dmt=F,G9t=Qn((Xi(),se(ie(C5,1),Je,88,0,[wh,al,Js,gh,cf])))}function hmt(){hmt=F,g9t=Qn((Nd(),se(ie(Mp,1),Je,170,0,[nn,lo,op,Bw,Fg])))}function pmt(){pmt=F,Z9t=Qn((a2(),se(ie(I5,1),Je,256,0,[c0,B9,zPe,$5,KPe])))}function bmt(){bmt=F,nDt=Qn((ft(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])))}function SW(){SW=F,y4e=new kwe("BY_SIZE",0),mse=new kwe("BY_SIZE_AND_SHAPE",1)}function EW(){EW=F,Tse=new Cwe("EADES",0),DG=new Cwe("FRUCHTERMAN_REINGOLD",1)}function nN(){nN=F,dV=new Iwe("READING_DIRECTION",0),p$e=new Iwe("ROTATION",1)}function a6(){a6=F,C5t=new eze,A5t=new rze,R5t=new ize,x5t=new nze,T5t=new oze}function gmt(e){this.b=new st,this.a=new st,this.c=new st,this.d=new st,this.e=e}function wmt(e){this.g=e,this.f=new st,this.a=h.Math.min(this.g.c.c,this.g.d.c)}function mmt(e,t,i){sB.call(this),V_e(this),this.a=e,this.c=i,this.b=t.d,this.f=t.e}function o3n(e,t,i){var s,a;for(a=new ee(i);a.a=0&&t0?t-1:t,Zlt(Pbn(Hmt(Pye(new Ok,i),e.n),e.j),e.k)}function zs(e){var t,i;i=(t=new vY,t),zn((!e.q&&(e.q=new qe(Of,e,11,10)),e.q),i)}function U_e(e){return(e.i&2?"interface ":e.i&1?"":"class ")+(cb(e),e.o)}function kW(e){return Jl(e,Nr)>0?Nr:Jl(e,Qo)<0?Qo:tr(e)}function qv(e){return e<3?(Su(e,OCt),e+1):e=-.01&&e.a<=ah&&(e.a=0),e.b>=-.01&&e.b<=ah&&(e.b=0),e}function n2(e){m2();var t,i;for(i=lCe,t=0;ti&&(i=e[t]);return i}function Smt(e,t){var i;if(i=zN(e.Dh(),t),!i)throw ne(new hn(X1+t+moe));return i}function Xv(e,t){var i;for(i=e;di(i);)if(i=di(i),i==t)return!0;return!1}function g3n(e,t){var i,s,a;for(s=t.a.ld(),i=f(t.a.md(),16).gc(),a=0;ae||e>t)throw ne(new Y0e("fromIndex: 0, toIndex: "+e+oRe+t))}function Gm(e){if(e<0)throw ne(new hn("Illegal Capacity: "+e));this.g=this.aj(e)}function G_e(e,t){return Kd(),td(G1),h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)}function Aee(e,t){var i,s,a,c;for(s=e.d,a=0,c=s.length;a0&&(e.a/=t,e.b/=t),e}function vu(e){var t;return e.w?e.w:(t=a2n(e),t&&!t.Vh()&&(e.w=t),t)}function CC(e,t){var i,s;s=e.a,i=dCn(e,t,null),s!=t&&!e.e&&(i=_A(e,t,i)),i&&i.oj()}function Cmt(e,t,i){var s,a;s=t;do a=Ae(e.p[s.p])+i,e.p[s.p]=a,s=e.a[s.p];while(s!=t)}function Amt(e,t,i){var s=function(){return e.apply(s,arguments)};return t.apply(s,i),s}function E3n(e){var t;return e==null?null:(t=f(e,195),M6n(t,t.length))}function Se(e,t){if(e.g==null||t>=e.i)throw ne(new SQ(t,e.i));return e.Wi(t,e.g[t])}function k3n(e,t){qt();var i,s;for(s=new st,i=0;i=14&&t<=16))),e}function Yn(e,t){var i;return mn(t),i=e[":"+t],E7(!!i,"Enum constant undefined: "+t),i}function Wn(e,t,i,s,a,c){var b;return b=kZ(e,t),Umt(i,b),b.i=a?8:0,b.f=s,b.e=a,b.g=c,b}function K_e(e,t,i,s,a){this.d=t,this.k=s,this.f=a,this.o=-1,this.p=1,this.c=e,this.a=i}function q_e(e,t,i,s,a){this.d=t,this.k=s,this.f=a,this.o=-1,this.p=2,this.c=e,this.a=i}function X_e(e,t,i,s,a){this.d=t,this.k=s,this.f=a,this.o=-1,this.p=6,this.c=e,this.a=i}function J_e(e,t,i,s,a){this.d=t,this.k=s,this.f=a,this.o=-1,this.p=7,this.c=e,this.a=i}function Y_e(e,t,i,s,a){this.d=t,this.j=s,this.e=a,this.o=-1,this.p=4,this.c=e,this.a=i}function Gmt(e,t){var i,s,a,c;for(s=t,a=0,c=s.length;a=0))throw ne(new hn("tolerance ("+e+") must be >= 0"));return e}function zmt(e,t){var i;return ve(t,44)?e.c.Mc(t):(i=Rte(e,t),fH(e,t),i)}function Ls(e,t,i){return dw(e,t),Ra(e,i),wg(e,0),Jv(e,1),Sg(e,!0),_g(e,!0),e}function iN(e,t){var i;if(i=e.gc(),t<0||t>i)throw ne(new Lv(t,i));return new aye(e,t)}function PW(e,t){e.b=h.Math.max(e.b,t.d),e.e+=t.r+(e.a.c.length==0?0:e.c),lt(e.a,t)}function Kmt(e){Nv(e.c>=0),jAn(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function OW(e){var t,i;for(i=e.c.Cc().Kc();i.Ob();)t=f(i.Pb(),16),t.$b();e.c.$b(),e.d=0}function N3n(e){var t,i,s,a;for(i=e.a,s=0,a=i.length;s=0}function iSe(e,t){e.r>0&&e.c0&&e.g!=0&&iSe(e.i,t/e.r*e.i.d))}function oSe(e,t){var i;i=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,1,i,e.c))}function Iee(e,t){var i;i=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,4,i,e.c))}function NC(e,t){var i;i=e.k,e.k=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,2,i,e.k))}function Pee(e,t){var i;i=e.D,e.D=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,2,i,e.D))}function MW(e,t){var i;i=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,8,i,e.f))}function DW(e,t){var i;i=e.i,e.i=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,7,i,e.i))}function sSe(e,t){var i;i=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,8,i,e.a))}function lSe(e,t){var i;i=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,0,i,e.b))}function aSe(e,t){var i;i=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,0,i,e.b))}function cSe(e,t){var i;i=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,1,i,e.c))}function uSe(e,t){var i;i=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,1,i,e.d))}function W3n(e,t,i){var s;e.b=t,e.a=i,s=(e.a&512)==512?new plt:new j1e,e.c=t7n(s,e.b,e.a)}function oyt(e,t){return xb(e.e,t)?(Ss(),See(t)?new mB(t,e):new l7(t,e)):new Out(t,e)}function H3n(e){var t,i;return 0>e?new dwe:(t=e+1,i=new w0t(t,e),new Wme(null,i))}function U3n(e,t){qt();var i;return i=new Fk(1),Eo(e)?Gs(i,e,t):Ca(i.f,e,t),new fY(i)}function G3n(e,t){var i,s;return i=e.c,s=t.e[e.p],s>0?f(yt(i.a,s-1),10):null}function V3n(e,t){var i,s;return i=e.o+e.p,s=t.o+t.p,it?(t<<=1,t>0?t:nI):t}function Oee(e){switch(_me(e.e!=3),e.e){case 2:return!1;case 0:return!0}return ekn(e)}function lyt(e,t){var i;return ve(t,8)?(i=f(t,8),e.a==i.a&&e.b==i.b):!1}function K3n(e,t){var i;i=new el,f(t.b,68),f(t.b,68),f(t.b,68),Ma(t.a,new mye(e,i,t))}function ayt(e,t){var i,s;for(s=t.vc().Kc();s.Ob();)i=f(s.Pb(),44),ON(e,i.ld(),i.md())}function fSe(e,t){var i;i=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,11,i,e.d))}function LW(e,t){var i;i=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,13,i,e.j))}function dSe(e,t){var i;i=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,21,i,e.b))}function q3n(e,t){(lW(),fh?null:t.c).length==0&&kdt(t,new Oe),Gs(e.a,fh?null:t.c,t)}function X3n(e,t){t.Ug("Hierarchical port constraint processing",1),h4n(e),Ojn(e),t.Vg()}function qm(){qm=F,Sy=new JY("START",0),e0=new JY("MIDDLE",1),_y=new JY("END",2)}function jW(){jW=F,nz=new Wwe("P1_NODE_PLACEMENT",0),rE=new Wwe("P2_EDGE_ROUTING",1)}function P1(){P1=F,q3=new Xr($Re),FG=new Xr(EAt),FI=new Xr(kAt),JM=new Xr(RAt)}function Xm(e){var t;return KQ(e.f.g,e.d),In(e.b),e.c=e.a,t=f(e.a.Pb(),44),e.b=RSe(e),t}function hSe(e){var t;return e.b==null?(lg(),lg(),Q9):(t=e.ul()?e.tl():e.sl(),t)}function cyt(e,t){var i;return i=t==null?-1:il(e.b,t,0),i<0?!1:(Mee(e,i),!0)}function nd(e,t){var i;return mn(t),i=t.g,e.b[i]?!1:(Ci(e.b,i,t),++e.c,!0)}function FW(e,t){var i,s;return i=1-t,s=e.a[i],e.a[i]=s.a[t],s.a[t]=e,e.b=!0,s.b=!1,s}function J3n(e,t){var i,s;for(s=t.Kc();s.Ob();)i=f(s.Pb(),272),e.b=!0,Zi(e.e,i),i.b=e}function Y3n(e,t){var i,s;return i=f(V(e,(pt(),F_)),8),s=f(V(t,F_),8),Qr(i.b,s.b)}function Nee(e,t,i){var s,a,c;return c=t>>5,a=t&31,s=fo(x1(e.n[i][c],tr(Zf(a,1))),3),s}function uyt(e,t,i){var s,a,c;for(c=e.a.length-1,a=e.b,s=0;s0?1:0:(!e.c&&(e.c=L7(Gl(e.f))),e.c).e}function yyt(e,t){t?e.B==null&&(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function tRn(e,t){return WC(),e==vy&&t==C_||e==C_&&t==vy||e==L2&&t==x_||e==x_&&t==L2}function nRn(e,t){return WC(),e==vy&&t==x_||e==vy&&t==L2||e==C_&&t==L2||e==C_&&t==x_}function vyt(e,t){return Kd(),td(ah),h.Math.abs(0-t)<=ah||t==0||isNaN(0)&&isNaN(t)?0:e/t}function _yt(e,t){return Ae(je(tu(vN(nl(new Wt(null,new Vt(e.c.b,16)),new Ait(e)),t))))}function wSe(e,t){return Ae(je(tu(vN(nl(new Wt(null,new Vt(e.c.b,16)),new Cit(e)),t))))}function rRn(){return As(),se(ie(ble,1),Je,259,0,[gV,af,GI,wV,a4,U2,VI,s4,l4,mV])}function iRn(){return Sf(),se(ie(vIe,1),Je,243,0,[GV,h9,p9,wIe,mIe,gIe,yIe,VV,Oy,W_])}function oRn(e,t){var i;t.Ug("General Compactor",1),i=uAn(f(Qe(e,(H1(),Iae)),393)),i.Cg(e)}function sRn(e,t){var i,s;return i=f(Qe(e,(H1(),iz)),17),s=f(Qe(t,iz),17),Xl(i.a,s.a)}function mSe(e,t,i){var s,a;for(a=Hn(e,0);a.b!=a.d.c;)s=f(Bn(a),8),s.a+=t,s.b+=i;return e}function f6(e,t,i){var s;for(s=e.b[i&e.f];s;s=s.b)if(i==s.a&&Lh(t,s.g))return s;return null}function d6(e,t,i){var s;for(s=e.c[i&e.f];s;s=s.d)if(i==s.f&&Lh(t,s.i))return s;return null}function lRn(e,t,i){var s,a,c;for(s=0,a=0;a>>31;s!=0&&(e[i]=s)}function Fee(e,t,i,s,a,c){var b;this.c=e,b=new st,Y2e(e,b,t,e.b,i,s,a,c),this.a=new No(b,0)}function Syt(){this.c=new uF(0),this.b=new uF(sCe),this.d=new uF(c4t),this.a=new uF(lie)}function Ju(e,t,i,s,a,c,b){Jn.call(this,e,t),this.d=i,this.e=s,this.c=a,this.b=c,this.a=Qd(b)}function Di(e,t,i,s,a,c,b,g,m,_,k,I,D){return CEt(e,t,i,s,a,c,b,g,m,_,k,I,D),mte(e,!1),e}function aRn(e){return e.b.c.i.k==(gn(),Ui)?f(V(e.b.c.i,(nt(),Ur)),12):e.b.c}function Eyt(e){return e.b.d.i.k==(gn(),Ui)?f(V(e.b.d.i,(nt(),Ur)),12):e.b.d}function cRn(e){var t;return t=tW(e),Em(t.a,0)?(pF(),pF(),x6t):(pF(),new idt(t.b))}function Bee(e){var t;return t=Jve(e),Em(t.a,0)?(Av(),Av(),use):(Av(),new LQ(t.b))}function Wee(e){var t;return t=Jve(e),Em(t.a,0)?(Av(),Av(),use):(Av(),new LQ(t.c))}function kyt(e){switch(e.g){case 2:return ft(),wn;case 4:return ft(),_n;default:return e}}function Ryt(e){switch(e.g){case 1:return ft(),jn;case 3:return ft(),bn;default:return e}}function xyt(e){switch(e.g){case 0:return new sQe;case 1:return new lQe;default:return null}}function b3(){b3=F,zse=new _i("edgelabelcenterednessanalysis.includelabel",(cn(),Y1))}function ySe(){ySe=F,E7t=Hh(Kut(gr(gr(new Ki,(Yo(),sa),(ss(),YG)),ga,zG),ll),JG)}function Cyt(){Cyt=F,C7t=Hh(Kut(gr(gr(new Ki,(Yo(),sa),(ss(),YG)),ga,zG),ll),JG)}function Hee(){Hee=F,B5=new clt,Nce=se(ie(rc,1),O2,179,0,[]),qDt=se(ie(Of,1),RAe,62,0,[])}function MC(){MC=F,QM=new Awe("TO_INTERNAL_LTR",0),Use=new Awe("TO_INPUT_DIRECTION",1)}function bc(){bc=F,yTe=new fze,wTe=new dze,mTe=new hze,gTe=new pze,vTe=new bze,_Te=new gze}function uRn(e,t){t.Ug(BAt,1),S2e(qbn(new Kj((f$(),new $Z(e,!1,!1,new E1e))))),t.Vg()}function fRn(e,t,i){i.Ug("DFS Treeifying phase",1),AAn(e,t),xOn(e,t),e.a=null,e.b=null,i.Vg()}function oN(e,t){return cn(),Eo(e)?y_e(e,or(t)):Pv(e)?dZ(e,je(t)):Iv(e)?tvn(e,gt(t)):e.Fd(t)}function h6(e,t){var i,s;for(mn(t),s=t.vc().Kc();s.Ob();)i=f(s.Pb(),44),e.zc(i.ld(),i.md())}function dRn(e,t,i){var s;for(s=i.Kc();s.Ob();)if(!iW(e,t,s.Pb()))return!1;return!0}function hRn(e,t,i,s,a){var c;return i&&(c=yi(t.Dh(),e.c),a=i.Rh(t,-1-(c==-1?s:c),null,a)),a}function pRn(e,t,i,s,a){var c;return i&&(c=yi(t.Dh(),e.c),a=i.Th(t,-1-(c==-1?s:c),null,a)),a}function Ayt(e){var t;if(e.b==-2){if(e.e==0)t=-1;else for(t=0;e.a[t]==0;t++);e.b=t}return e.b}function bRn(e){if(mn(e),e.length==0)throw ne(new Ih("Zero length BigInteger"));vNn(this,e)}function vSe(e){this.i=e.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),e.Qc(this.g))}function Tyt(e,t,i){this.g=e,this.d=t,this.e=i,this.a=new st,C5n(this),qt(),Hi(this.a,null)}function _Se(e,t){t.q=e,e.d=h.Math.max(e.d,t.r),e.b+=t.d+(e.a.c.length==0?0:e.c),lt(e.a,t)}function DC(e,t){var i,s,a,c;return a=e.c,i=e.c+e.b,c=e.d,s=e.d+e.a,t.a>a&&t.ac&&t.ba?i=a:pn(t,i+1),e.a=Vu(e.a,0,t)+(""+s)+bve(e.a,i)}function jyt(e,t){e.a=is(e.a,1),e.c=h.Math.min(e.c,t),e.b=h.Math.max(e.b,t),e.d=is(e.d,t)}function SRn(e,t){return t1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw ne(new yl)}function Hyt(e){switch(e.a.g){case 1:return new Kct;case 3:return new KSt;default:return new snt}}function ESe(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Xve(e,t)}function Gl(e){return dM>22),a=e.h+t.h+(s>>22),Oa(i&Vc,s&Vc,a&Ab)}function Jyt(e,t){var i,s,a;return i=e.l-t.l,s=e.m-t.m+(i>>22),a=e.h-t.h+(s>>22),Oa(i&Vc,s&Vc,a&Ab)}function URn(e){var t,i;for(DLn(e),i=new ee(e.d);i.as)throw ne(new Lv(t,s));return e.Si()&&(i=pgt(e,i)),e.Ei(t,i)}function HC(e,t,i,s,a){var c,b;for(b=i;b<=a;b++)for(c=t;c<=s;c++)u2(e,c,b)||ZH(e,c,b,!0,!1)}function rxn(e){m2();var t,i,s;for(i=Fe(wo,rt,8,2,0,1),s=0,t=0;t<2;t++)s+=.5,i[t]=J4n(s,e);return i}function UC(e){var t,i,s;return t=~e.l+1&Vc,i=~e.m+(t==0?1:0)&Vc,s=~e.h+(t==0&&i==0?1:0)&Ab,Oa(t,i,s)}function ISe(e){var t;if(e<0)return Qo;if(e==0)return 0;for(t=nI;!(t&e);t>>=1);return t}function Xee(e,t,i){return e>=128?!1:e<64?T$(fo(Zf(1,e),i),0):T$(fo(Zf(1,e-64),t),0)}function pN(e,t,i){return i==null?(!e.q&&(e.q=new Fn),f3(e.q,t)):(!e.q&&(e.q=new Fn),xr(e.q,t,i)),e}function Xe(e,t,i){return i==null?(!e.q&&(e.q=new Fn),f3(e.q,t)):(!e.q&&(e.q=new Fn),xr(e.q,t,i)),e}function lvt(e){var t,i;return i=new cW,ol(i,e),Xe(i,(P1(),q3),e),t=new Fn,PMn(e,i,t),sLn(e,i,t),i}function avt(e){var t,i;return t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,i=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,t||i}function cvt(e,t){var i,s,a,c;for(i=!1,s=e.a[t].length,c=0;c=0,"Negative initial capacity"),E7(t>=0,"Non-positive load factor"),xc(this)}function oxn(e,t,i,s,a){var c,b;if(b=e.length,c=i.length,t<0||s<0||a<0||t+a>b||s+a>c)throw ne(new E0e)}function MSe(e,t){qt();var i,s,a,c,b;for(b=!1,s=t,a=0,c=s.length;a1||t>=0&&e.b<3)}function Qee(e){var t,i,s;t=~e.l+1&Vc,i=~e.m+(t==0?1:0)&Vc,s=~e.h+(t==0&&i==0?1:0)&Ab,e.l=t,e.m=i,e.h=s}function jSe(e){qt();var t,i,s;for(s=1,i=e.Kc();i.Ob();)t=i.Pb(),s=31*s+(t!=null?ti(t):0),s=s|0;return s}function uxn(e,t,i,s,a){var c;return c=Cke(e,t),i&&Qee(c),a&&(e=rTn(e,t),s?J1=UC(e):J1=Oa(e.l,e.m,e.h)),c}function yvt(e,t,i){e.g=gne(e,t,(ft(),_n),e.b),e.d=gne(e,i,_n,e.b),!(e.g.c==0||e.d.c==0)&&J2t(e)}function vvt(e,t,i){e.g=gne(e,t,(ft(),wn),e.j),e.d=gne(e,i,wn,e.j),!(e.g.c==0||e.d.c==0)&&J2t(e)}function FSe(e,t){switch(t){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return E2e(e,t)}function fxn(e,t){switch(t.g){case 0:ve(e.b,641)||(e.b=new Lyt);break;case 1:ve(e.b,642)||(e.b=new Dht)}}function _vt(e){switch(e.g){case 0:return new dQe;default:throw ne(new hn(ZU+(e.f!=null?e.f:""+e.g)))}}function Svt(e){switch(e.g){case 0:return new fQe;default:throw ne(new hn(ZU+(e.f!=null?e.f:""+e.g)))}}function dxn(e,t,i){return!Xx(Br(new Wt(null,new Vt(e.c,16)),new Bx(new aut(t,i)))).Bd((K0(),z3))}function Evt(e,t){return zk(iA(f(V(t,(Il(),My)),88)),new tt(e.c.e.a-e.b.e.a,e.c.e.b-e.b.e.b))<=0}function hxn(e,t){for(;e.g==null&&!e.c?Fve(e):e.g==null||e.i!=0&&f(e.g[e.i-1],51).Ob();)wgn(t,WH(e))}function fw(e){var t,i;for(i=new ee(e.a.b);i.as?1:0}function gxn(e){return lt(e.c,(g3(),d9t)),G_e(e.a,Ae(je(dt((kte(),BV)))))?new QQe:new Oot(e)}function wxn(e){for(;!e.d||!e.d.Ob();)if(e.b&&!l$(e.b))e.d=f(t3(e.b),51);else return null;return e.d}function WSe(e){switch(e.g){case 1:return c4t;default:case 2:return 0;case 3:return lie;case 4:return sCe}}function mxn(){Or();var e;return Bce||(e=j1n(U1("M",!0)),e=EB(U1("M",!1),e),Bce=e,Bce)}function JW(){JW=F,xce=new WF("ELK",0),sOe=new WF("JSON",1),oOe=new WF("DOT",2),lOe=new WF("SVG",3)}function w6(){w6=F,iae=new oQ("STACKED",0),rae=new oQ("REVERSE_STACKED",1),b9=new oQ("SEQUENCED",2)}function m6(){m6=F,XIe=new fQ(Jh,0),uae=new fQ("MIDDLE_TO_MIDDLE",1),m9=new fQ("AVOID_OVERLAP",2)}function zC(){zC=F,r$e=new qKe,i$e=new XKe,q5t=new zKe,K5t=new JKe,z5t=new KKe,n$e=(mn(z5t),new Ge)}function YW(){YW=F,GPe=new Rm(15),q9t=new Po((Er(),Bg),GPe),A5=lR,BPe=C9t,WPe=Hw,UPe=fE,HPe=V_}function i2(e,t){var i,s,a,c,b;for(s=t,a=0,c=s.length;a=e.b.c.length||(USe(e,2*t+1),i=2*t+2,i0&&(t.Cd(i),i.i&&vCn(i))}function GSe(e,t,i){var s;for(s=i-1;s>=0&&e[s]===t[s];s--);return s<0?0:GY(fo(e[s],Ts),fo(t[s],Ts))?-1:1}function xvt(e,t,i){var s,a;this.g=e,this.c=t,this.a=this,this.d=this,a=syt(i),s=Fe(s6t,cM,227,a,0,1),this.b=s}function rte(e,t,i,s,a){var c,b;for(b=i;b<=a;b++)for(c=t;c<=s;c++)if(u2(e,c,b))return!0;return!1}function kxn(e,t){var i,s;for(s=e.Zb().Cc().Kc();s.Ob();)if(i=f(s.Pb(),16),i.Hc(t))return!0;return!1}function Cvt(e,t,i){var s,a,c,b;for(mn(i),b=!1,c=e.fd(t),a=i.Kc();a.Ob();)s=a.Pb(),c.Rb(s),b=!0;return b}function ite(e,t){var i,s;return s=f(dn(e.a,4),129),i=Fe(Pce,Moe,424,t,0,1),s!=null&&oa(s,0,i,0,s.length),i}function Avt(e,t){var i;return i=new Pne((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,t),e.e!=null||(i.c=e),i}function Rxn(e,t){var i;return e===t?!0:ve(t,85)?(i=f(t,85),KEe(X0(e),i.vc())):!1}function Tvt(e,t,i){var s,a;for(a=i.Kc();a.Ob();)if(s=f(a.Pb(),44),e.Be(t,s.md()))return!0;return!1}function $vt(e,t,i){return e.d[t.p][i.p]||(A4n(e,t,i),e.d[t.p][i.p]=!0,e.d[i.p][t.p]=!0),e.a[t.p][i.p]}function xxn(e,t){var i;return!e||e==t||!ri(t,(nt(),ky))?!1:(i=f(V(t,(nt(),ky)),10),i!=e)}function ote(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.$l()}}function Ivt(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e._l()}}function Pvt(e){ygt.call(this,"The given string does not match the expected format for individual spacings.",e)}function Cxn(e,t){var i;t.Ug("Min Size Preprocessing",1),i=nke(e),zr(e,(Ep(),g5),i.a),zr(e,lz,i.b),t.Vg()}function Axn(e){var t,i,s;for(t=0,s=Fe(wo,rt,8,e.b,0,1),i=Hn(e,0);i.b!=i.d.c;)s[t++]=f(Bn(i),8);return s}function ste(e,t,i){var s,a,c;for(s=new li,c=Hn(i,0);c.b!=c.d.c;)a=f(Bn(c),8),hr(s,new us(a));Cvt(e,t,s)}function Txn(e,t){var i;return i=is(e,t),GY(XZ(e,t),0)|GF(XZ(e,i),0)?i:is(aM,XZ(x1(i,63),1))}function $xn(e,t){var i,s;return i=f(e.d.Bc(t),16),i?(s=e.e.hc(),s.Gc(i),e.e.d-=i.gc(),i.$b(),s):null}function Ovt(e){var t;if(t=e.a.c.length,t>0)return uC(t-1,e.a.c.length),pg(e.a,t-1);throw ne(new Ost)}function Nvt(e,t,i){if(e>t)throw ne(new hn(gU+e+XCt+t));if(e<0||t>i)throw ne(new Y0e(gU+e+aRe+t+oRe+i))}function KC(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),Pee(e,t==null?null:(mn(t),t)),e.C&&e.hl(null)}function Ixn(e,t){var i;i=dt((kte(),BV))!=null&&t.Sg()!=null?Ae(je(t.Sg()))/Ae(je(dt(BV))):1,xr(e.b,t,i)}function VSe(e,t){var i,s;if(s=e.c[t],s!=0)for(e.c[t]=0,e.d-=s,i=t+1;izU?e-i>zU:i-e>zU}function Vvt(e,t){var i;for(i=0;ia&&(_2t(t.q,a),s=i!=t.q.d)),s}function zvt(e,t){var i,s,a,c,b,g,m,_;return m=t.i,_=t.j,s=e.f,a=s.i,c=s.j,b=m-a,g=_-c,i=h.Math.sqrt(b*b+g*g),i}function YSe(e,t){var i,s;return s=dH(e),s||(i=(ere(),Okt(t)),s=new Sst(i),zn(s.El(),e)),s}function mN(e,t){var i,s;return i=f(e.c.Bc(t),16),i?(s=e.hc(),s.Gc(i),e.d-=i.gc(),i.$b(),e.mc(s)):e.jc()}function Hxn(e,t){var i,s;for(s=Uc(e.d,1)!=0,i=!0;i;)i=!1,i=t.c.mg(t.e,s),i=i|KN(e,t,s,!1),s=!s;bSe(e)}function Kvt(e,t,i,s){var a,c;e.a=t,c=s?0:1,e.f=(a=new sEt(e.c,e.a,i,c),new j3t(i,e.a,a,e.e,e.b,e.c==(Km(),s5)))}function ZW(e){var t;return In(e.a!=e.b),t=e.d.a[e.a],_dt(e.b==e.d.c&&t!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,t}function qvt(e){var t;if(e.c!=0)return e.c;for(t=0;t=e.c.b:e.a<=e.c.b))throw ne(new yl);return t=e.a,e.a+=e.c.c,++e.b,ot(t)}function fte(e){var t;return t=new dme(e.a),ol(t,e),Xe(t,(nt(),Ur),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function dte(e){return(ft(),tc).Hc(e.j)?Ae(je(V(e,(nt(),c4)))):kl(se(ie(wo,1),rt,8,0,[e.i.n,e.n,e.a])).b}function Gxn(e){var t;return t=XF(S7t),f(V(e,(nt(),ma)),21).Hc((As(),a4))&&gr(t,(Yo(),sa),(ss(),eV)),t}function Vxn(e){var t,i,s,a;for(a=new Gi,s=new ee(e);s.a=0?t:-t;s>0;)s%2==0?(i*=i,s=s/2|0):(a*=i,s-=1);return t<0?1/a:a}function Jxn(e,t){var i,s,a;for(a=1,i=e,s=t>=0?t:-t;s>0;)s%2==0?(i*=i,s=s/2|0):(a*=i,s-=1);return t<0?1/a:a}function D1(e,t){var i,s,a,c;return c=(a=e?dH(e):null,TEt((s=t,a&&a.Gl(),s))),c==t&&(i=dH(e),i&&i.Gl()),c}function Xvt(e,t,i){var s,a;return a=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,0,a,t),i?i.nj(s):i=s),i}function Jvt(e,t,i){var s,a;return a=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,3,a,t),i?i.nj(s):i=s),i}function ZSe(e,t,i){var s,a;return a=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,1,a,t),i?i.nj(s):i=s),i}function Yvt(e){var t,i;if(e!=null)for(i=0;i=s||t-129&&e<128?(Mht(),t=e+128,i=YAe[t],!i&&(i=YAe[t]=new Z1e(e)),i):new Z1e(e)}function XC(e){var t,i;return e>-129&&e<128?(Qht(),t=e+128,i=t4e[t],!i&&(i=t4e[t]=new t0e(e)),i):new t0e(e)}function e_t(e,t){var i;e.a.c.length>0&&(i=f(yt(e.a,e.a.c.length-1),579),HSe(i,t))||lt(e.a,new m0t(t))}function nCn(e){Qf();var t,i;t=e.d.c-e.e.c,i=f(e.g,154),Ma(i.b,new bit(t)),Ma(i.c,new git(t)),Vo(i.i,new wit(t))}function t_t(e){var t;return t=new m1,t.a+="VerticalSegment ",aa(t,e.e),t.a+=" ",br(t,yme(new IY,new ee(e.k))),t.a}function hte(e,t){var i,s,a;for(i=0,a=Rl(e,t).Kc();a.Ob();)s=f(a.Pb(),12),i+=V(s,(nt(),Ic))!=null?1:0;return i}function l2(e,t,i){var s,a,c;for(s=0,c=Hn(e,0);c.b!=c.d.c&&(a=Ae(je(Bn(c))),!(a>i));)a>=t&&++s;return s}function n_t(e,t){nr(e);try{return e._b(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return!1;throw ne(i)}}function t2e(e,t){nr(e);try{return e.Hc(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return!1;throw ne(i)}}function rCn(e,t){nr(e);try{return e.Mc(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return!1;throw ne(i)}}function Zv(e,t){nr(e);try{return e.xc(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return null;throw ne(i)}}function iCn(e,t){nr(e);try{return e.Bc(t)}catch(i){if(i=mi(i),ve(i,212)||ve(i,169))return null;throw ne(i)}}function _6(e,t){switch(t.g){case 2:case 1:return Rl(e,t);case 3:case 4:return Zu(Rl(e,t))}return qt(),qt(),ps}function S6(e){var t;return e.Db&64?rd(e):(t=new wf(rd(e)),t.a+=" (name: ",Ms(t,e.zb),t.a+=")",t.a)}function oCn(e){var t;return t=f(th(e.c.c,""),233),t||(t=new l3(Kx(zx(new Ak,""),"Other")),kg(e.c.c,"",t)),t}function n2e(e,t,i){var s,a;return a=e.sb,e.sb=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,4,a,t),i?i.nj(s):i=s),i}function r2e(e,t,i){var s,a;return a=e.r,e.r=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,8,a,e.r),i?i.nj(s):i=s),i}function sCn(e,t,i){var s,a;return s=new gb(e.e,4,13,(a=t.c,a||(Kt(),vh)),null,Rg(e,t),!1),i?i.nj(s):i=s,i}function lCn(e,t,i){var s,a;return s=new gb(e.e,3,13,null,(a=t.c,a||(Kt(),vh)),Rg(e,t),!1),i?i.nj(s):i=s,i}function vg(e,t){var i,s;return i=f(t,691),s=i.el(),!s&&i.fl(s=ve(t,90)?new Nut(e,f(t,29)):new r1t(e,f(t,156))),s}function yN(e,t,i){var s;e._i(e.i+1),s=e.Zi(t,i),t!=e.i&&oa(e.g,t,e.g,t+1,e.i-t),Ci(e.g,t,s),++e.i,e.Mi(t,i),e.Ni()}function aCn(e,t){var i;return t.a&&(i=t.a.a.length,e.a?br(e.a,e.b):e.a=new gu(e.d),u1t(e.a,t.a,t.d.length,i)),e}function cCn(e,t){var i;e.c=t,e.a=pAn(t),e.a<54&&(e.f=(i=t.d>1?a1t(t.a[0],t.a[1]):a1t(t.a[0],0),rw(t.e>0?i:gg(i))))}function vN(e,t){var i;return i=new de,e.a.Bd(i)?(tC(),new RY(mn(Uwt(e,i.a,t)))):(A1(e),tC(),tC(),d4e)}function r_t(e,t){var i;e.c.length!=0&&(i=f(ih(e,Fe(Op,$g,10,e.c.length,0,1)),199),ime(i,new eKe),JEt(i,t))}function i_t(e,t){var i;e.c.length!=0&&(i=f(ih(e,Fe(Op,$g,10,e.c.length,0,1)),199),ime(i,new tKe),JEt(i,t))}function Lr(e,t){return Eo(e)?Ht(e,t):Pv(e)?Qdt(e,t):Iv(e)?(mn(e),Ne(e)===Ne(t)):Yye(e)?e.Fb(t):Gye(e)?Jut(e,t):Gve(e,t)}function Yu(e,t,i){if(t<0)cke(e,i);else{if(!i.rk())throw ne(new hn(X1+i.xe()+_I));f(i,69).wk().Ek(e,e.hi(),t)}}function o_t(e,t,i){if(e<0||t>i)throw ne(new Hs(gU+e+aRe+t+", size: "+i));if(e>t)throw ne(new hn(gU+e+XCt+t))}function s_t(e){var t;return e.Db&64?rd(e):(t=new wf(rd(e)),t.a+=" (source: ",Ms(t,e.d),t.a+=")",t.a)}function l_t(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function uCn(e){fU();var t,i,s,a;for(i=Pte(),s=0,a=i.length;s=0?j1(e):X$(j1(gg(e))))}function u_t(e,t,i,s,a,c){this.e=new st,this.f=(Cs(),i5),lt(this.e,e),this.d=t,this.a=i,this.b=s,this.f=a,this.c=c}function hCn(e,t,i){e.n=q0(m0,[rt,jre],[376,28],14,[i,oo(h.Math.ceil(t/32))],2),e.o=t,e.p=i,e.j=t-1>>1,e.k=i-1>>1}function f_t(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function d_t(e,t){var i,s;for(s=new Sn(e);s.e!=s.i.gc();)if(i=f(Cn(s),142),Ne(t)===Ne(i))return!0;return!1}function pCn(e,t,i){var s,a,c;return c=(a=dA(e.b,t),a),c&&(s=f(sU(Y7(e,c),""),29),s)?Ike(e,s,t,i):null}function pte(e,t,i){var s,a,c;return c=(a=dA(e.b,t),a),c&&(s=f(sU(Y7(e,c),""),29),s)?Pke(e,s,t,i):null}function bCn(e,t){var i;if(i=r2(e.i,t),i==null)throw ne(new $h("Node did not exist in input."));return SSe(t,i),null}function gCn(e,t){var i;if(i=zN(e,t),ve(i,331))return f(i,35);throw ne(new hn(X1+t+"' is not a valid attribute"))}function k6(e,t,i){var s;if(s=e.gc(),t>s)throw ne(new Lv(t,s));if(e.Si()&&e.Hc(i))throw ne(new hn(OM));e.Gi(t,i)}function wCn(e,t){t.Ug("Sort end labels",1),Mi(Br(El(new Wt(null,new Vt(e.b,16)),new jze),new Fze),new Bze),t.Vg()}function Xi(){Xi=F,wh=new i7(lI,0),al=new i7(D3,1),Js=new i7(M3,2),gh=new i7(Yre,3),cf=new i7("UP",4)}function SN(){SN=F,uz=new mQ("P1_STRUCTURE",0),fz=new mQ("P2_PROCESSING_ORDER",1),dz=new mQ("P3_EXECUTION",2)}function h_t(){h_t=F,LNt=Hh(Hh(b$(Hh(Hh(b$(gr(new Ki,(k3(),c5),(K6(),cae)),u5),VIe),KIe),f5),WIe),qIe)}function mCn(e){switch(f(V(e,(nt(),Iw)),311).g){case 1:Xe(e,Iw,(wb(),J3));break;case 2:Xe(e,Iw,(wb(),G2))}}function yCn(e){switch(e){case 0:return new nlt;case 1:return new elt;case 2:return new tlt;default:throw ne(new DO)}}function p_t(e){switch(e.g){case 2:return al;case 1:return Js;case 4:return gh;case 3:return cf;default:return wh}}function l2e(e,t){switch(e.b.g){case 0:case 1:return t;case 2:case 3:return new Gu(t.d,0,t.a,t.b);default:return null}}function a2e(e){switch(e.g){case 1:return wn;case 2:return bn;case 3:return _n;case 4:return jn;default:return Cl}}function EN(e){switch(e.g){case 1:return jn;case 2:return wn;case 3:return bn;case 4:return _n;default:return Cl}}function nH(e){switch(e.g){case 1:return _n;case 2:return jn;case 3:return wn;case 4:return bn;default:return Cl}}function c2e(e,t,i,s){switch(t){case 1:return!e.n&&(e.n=new qe(Fs,e,1,7)),e.n;case 2:return e.k}return tEe(e,t,i,s)}function R6(e,t,i){var s,a;return e.Pj()?(a=e.Qj(),s=_ne(e,t,i),e.Jj(e.Ij(7,ot(i),s,t,a)),s):_ne(e,t,i)}function bte(e,t){var i,s,a;e.d==null?(++e.e,--e.f):(a=t.ld(),i=t.Bi(),s=(i&Nr)%e.d.length,ikn(e,s,Lkt(e,s,i,a)))}function JC(e,t){var i;i=(e.Bb&sd)!=0,t?e.Bb|=sd:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,10,i,t))}function YC(e,t){var i;i=(e.Bb&g_)!=0,t?e.Bb|=g_:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,12,i,t))}function QC(e,t){var i;i=(e.Bb&yc)!=0,t?e.Bb|=yc:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,15,i,t))}function ZC(e,t){var i;i=(e.Bb&E_)!=0,t?e.Bb|=E_:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,11,i,t))}function vCn(e){var t;e.g&&(t=e.c.kg()?e.f:e.a,Vke(t.a,e.o,!0),Vke(t.a,e.o,!1),Xe(e.o,(pt(),Oi),(Co(),Gw)))}function _Cn(e){var t;if(!e.a)throw ne(new Us("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,Fbt(e,t),jbt(e,t)}function SCn(e,t){var i;if(i=En(e.k,t),i==null)throw ne(new $h("Port did not exist in input."));return SSe(t,i),null}function ECn(e){var t,i;for(i=Nkt(vu(e)).Kc();i.Ob();)if(t=or(i.Pb()),q6(e,t))return kEn((gct(),DDt),t);return null}function b_t(e){var t,i;for(i=e.p.a.ec().Kc();i.Ob();)if(t=f(i.Pb(),218),t.f&&e.b[t.c]<-1e-10)return t;return null}function kCn(e){var t,i;for(i=Q0(new m1,91),t=!0;e.Ob();)t||(i.a+=ds),t=!1,aa(i,e.Pb());return(i.a+="]",i).a}function RCn(e){var t,i,s;for(t=new st,s=new ee(e.b);s.at?1:e==t?e==0?Qr(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function CCn(e){var t;return t=e.a[e.c-1&e.a.length-1],t==null?null:(e.c=e.c-1&e.a.length-1,Ci(e.a,e.c,null),t)}function ACn(e){var t,i,s;for(s=0,i=e.length,t=0;t=1?al:gh):i}function PCn(e){switch(f(V(e,(pt(),Ob)),223).g){case 1:return new RXe;case 3:return new $Xe;default:return new kXe}}function L1(e){if(e.c)L1(e.c);else if(e.d)throw ne(new Us("Stream already terminated, can't be modified or used"))}function Ym(e,t,i){var s;return s=e.a.get(t),e.a.set(t,i===void 0?null:i),s===void 0?(++e.c,++e.b.g):++e.d,s}function OCn(e,t,i){var s,a;for(a=e.a.ec().Kc();a.Ob();)if(s=f(a.Pb(),10),uN(i,f(yt(t,s.p),16)))return s;return null}function f2e(e,t,i){var s;return s=0,t&&(US(e.a)?s+=t.f.a/2:s+=t.f.b/2),i&&(US(e.a)?s+=i.f.a/2:s+=i.f.b/2),s}function NCn(e,t,i){var s;s=i,!s&&(s=Pye(new Ok,0)),s.Ug(CAt,2),vSt(e.b,t,s.eh(1)),X9n(e,t,s.eh(1)),QLn(t,s.eh(1)),s.Vg()}function d2e(e,t,i){var s,a;return s=(v1(),a=new jj,a),TW(s,t),AW(s,i),e&&zn((!e.a&&(e.a=new zi(Nu,e,5)),e.a),s),s}function wte(e){var t;return e.Db&64?rd(e):(t=new wf(rd(e)),t.a+=" (identifier: ",Ms(t,e.k),t.a+=")",t.a)}function mte(e,t){var i;i=(e.Bb&Vl)!=0,t?e.Bb|=Vl:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,18,i,t))}function h2e(e,t){var i;i=(e.Bb&Vl)!=0,t?e.Bb|=Vl:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,18,i,t))}function eA(e,t){var i;i=(e.Bb&Vh)!=0,t?e.Bb|=Vh:e.Bb&=-16385,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,16,i,t))}function p2e(e,t){var i;i=(e.Bb&ys)!=0,t?e.Bb|=ys:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&Dr(e,new ed(e,1,20,i,t))}function b2e(e){var t;return t=Fe(df,zh,28,2,15,1),e-=ys,t[0]=(e>>10)+hM&Ji,t[1]=(e&1023)+56320&Ji,Bh(t,0,t.length)}function MCn(e){var t;return t=o_(e),t>34028234663852886e22?hi:t<-34028234663852886e22?to:t}function is(e,t){var i;return ul(e)&&ul(t)&&(i=e+t,dM"+nw(t.c):"e_"+ti(t),e.b&&e.c?nw(e.b)+"->"+nw(e.c):"e_"+ti(e))}function jCn(e,t){return Ht(t.b&&t.c?nw(t.b)+"->"+nw(t.c):"e_"+ti(t),e.b&&e.c?nw(e.b)+"->"+nw(e.c):"e_"+ti(e))}function Qm(e,t){return Kd(),td(G1),h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)?0:et?1:km(isNaN(e),isNaN(t))}function _b(){_b=F,_ce=new LF(lI,0),L9=new LF("POLYLINE",1),C4=new LF("ORTHOGONAL",2),uR=new LF("SPLINES",3)}function iH(){iH=F,V5e=new gQ("ASPECT_RATIO_DRIVEN",0),Wae=new gQ("MAX_SCALE_DRIVEN",1),G5e=new gQ("AREA_DRIVEN",2)}function FCn(e,t,i){var s;try{axn(e,t,i)}catch(a){throw a=mi(a),ve(a,606)?(s=a,ne(new b_e(s))):ne(a)}return t}function BCn(e){var t,i,s;for(i=0,s=e.length;it&&s.Ne(e[c-1],e[c])>0;--c)b=e[c],Ci(e,c,e[c-1]),Ci(e,c-1,b)}function Ot(e,t){var i,s,a,c,b;if(i=t.f,kg(e.c.d,i,t),t.g!=null)for(a=t.g,c=0,b=a.length;ct){h1t(i);break}}A7(i,t)}function GCn(e,t){var i,s,a;s=ZS(t),a=Ae(je(t_(s,(pt(),ud)))),i=h.Math.max(0,a/2-.5),N6(t,i,1),lt(e,new Pct(t,i))}function VCn(e,t,i){var s;i.Ug("Straight Line Edge Routing",1),i.dh(t,gCe),s=f(Qe(t,(JS(),nE)),27),txt(e,s),i.dh(t,XU)}function g2e(e,t){e.n.c.length==0&<(e.n,new YB(e.s,e.t,e.i)),lt(e.b,t),J2e(f(yt(e.n,e.n.c.length-1),209),t),LRt(e,t)}function x6(e){var t;this.a=(t=f(e.e&&e.e(),9),new Uu(t,f(Yf(t,t.length),9),0)),this.b=Fe(ho,on,1,this.a.a.length,5,1)}function dl(e){var t;return Array.isArray(e)&&e.Tm===ae?z0(ou(e))+"@"+(t=ti(e)>>>0,t.toString(16)):e.toString()}function zCn(e,t){return e.h==fM&&e.m==0&&e.l==0?(t&&(J1=Oa(0,0,0)),Qut((xC(),VAe))):(t&&(J1=Oa(e.l,e.m,e.h)),Oa(0,0,0))}function KCn(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function y_t(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function w2e(e,t,i,s){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return c2e(e,t,i,s)}function oH(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw ne(new hn("Node "+t+" not part of edge "+e))}function qCn(e,t){var i;if(i=zN(e.Dh(),t),ve(i,102))return f(i,19);throw ne(new hn(X1+t+"' is not a valid reference"))}function Qu(e,t,i,s){if(t<0)Dke(e,i,s);else{if(!i.rk())throw ne(new hn(X1+i.xe()+_I));f(i,69).wk().Ck(e,e.hi(),t,s)}}function Hc(e){var t;if(e.b){if(Hc(e.b),e.b.d!=e.c)throw ne(new Bu)}else e.d.dc()&&(t=f(e.f.c.xc(e.e),16),t&&(e.d=t))}function XCn(e){Mv();var t,i,s,a;for(t=e.o.b,s=f(f(Hr(e.r,(ft(),jn)),21),87).Kc();s.Ob();)i=f(s.Pb(),117),a=i.e,a.b+=t}function JCn(e){var t,i,s;for(this.a=new Oh,s=new ee(e);s.a=a)return t.c+i;return t.c+t.b.gc()}function QCn(e,t){oC();var i,s,a,c;for(s=Iwt(e),a=t,kC(s,0,s.length,a),i=0;i0&&(s+=a,++i);return i>1&&(s+=e.d*(i-1)),s}function eAn(e){var t,i,s,a,c;return c=MEe(e),i=BO(e.c),s=!i,s&&(a=new B0,Id(c,"knownLayouters",a),t=new cst(a),Vo(e.c,t)),c}function v2e(e){var t,i,s;for(s=new ig,s.a+="[",t=0,i=e.gc();t0&&(pn(t-1,e.length),e.charCodeAt(t-1)==58)&&!_te(e,j5,F5))}function _2e(e,t){var i;return Ne(e)===Ne(t)?!0:ve(t,92)?(i=f(t,92),e.e==i.e&&e.d==i.d&&CEn(e,i.a)):!1}function y3(e){switch(ft(),e.g){case 4:return bn;case 1:return _n;case 3:return jn;case 2:return wn;default:return Cl}}function iAn(e){var t,i;if(e.b)return e.b;for(i=fh?null:e.d;i;){if(t=fh?null:i.b,t)return t;i=fh?null:i.d}return Zx(),b4e}function S2e(e){var t,i,s;for(s=Ae(je(e.a.of((Er(),vz)))),i=new ee(e.a.Sf());i.a>5,t=e&31,s=Fe(Xn,wr,28,i+1,15,1),s[i]=1<3;)a*=10,--c;e=(e+(a>>1))/a|0}return s.i=e,!0}function yi(e,t){var i,s,a;if(i=(e.i==null&&Gh(e),e.i),s=t.Lj(),s!=-1){for(a=i.length;s=0;--s)for(t=i[s],a=0;a>1,this.k=t-1>>1}function yAn(e){bW(),f(e.of((Er(),l0)),181).Hc((Gc(),Cz))&&(f(e.of(z_),181).Fc(($c(),fR)),f(e.of(l0),181).Mc(Cz))}function x_t(e){var t,i;t=e.d==(R3(),e4),i=REe(e),t&&!i||!t&&i?Xe(e.a,(pt(),np),(_p(),T9)):Xe(e.a,(pt(),np),(_p(),A9))}function kte(){kte=F,wF(),BV=(pt(),Py),XOt=Qd(se(ie(rce,1),rCe,149,0,[f9,ud,J2,Iy,B_,Ble,p4,b4,Wle,e5,X2,jw,Y2]))}function vAn(e,t){var i;return i=f(fl(e,Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),i.Qc(Kht(i.gc()))}function C_t(e,t){var i,s;if(s=new Fx(e.a.ad(t,!0)),s.a.gc()<=1)throw ne(new $k);return i=s.a.ec().Kc(),i.Pb(),f(i.Pb(),40)}function _An(e,t,i){var s,a;return s=Ae(e.p[t.i.p])+Ae(e.d[t.i.p])+t.n.b+t.a.b,a=Ae(e.p[i.i.p])+Ae(e.d[i.i.p])+i.n.b+i.a.b,a-s}function T2e(e,t){var i;return e.i>0&&(t.lengthe.i&&Ci(t,e.i,null),t}function lH(e){var t;return e.Db&64?S6(e):(t=new wf(S6(e)),t.a+=" (instanceClassName: ",Ms(t,e.D),t.a+=")",t.a)}function aH(e){var t,i,s,a;for(a=0,i=0,s=e.length;i0?(e._j(),s=t==null?0:ti(t),a=(s&Nr)%e.d.length,i=Lkt(e,a,s,t),i!=-1):!1}function A_t(e,t){var i,s;e.a=is(e.a,1),e.c=h.Math.min(e.c,t),e.b=h.Math.max(e.b,t),e.d+=t,i=t-e.f,s=e.e+i,e.f=s-e.e-i,e.e=s}function $2e(e,t){switch(t){case 3:Vm(e,0);return;case 4:zm(e,0);return;case 5:Da(e,0);return;case 6:La(e,0);return}e2e(e,t)}function Zm(e,t){switch(t.g){case 1:return Yk(e.j,(bc(),wTe));case 2:return Yk(e.j,(bc(),yTe));default:return qt(),qt(),ps}}function I2e(e){Nm();var t;switch(t=e.Pc(),t.length){case 0:return Zoe;case 1:return new iZ(nr(t[0]));default:return new FZ(BCn(t))}}function T_t(e,t){e.Xj();try{e.d.bd(e.e++,t),e.f=e.d.j,e.g=-1}catch(i){throw i=mi(i),ve(i,77)?ne(new Bu):ne(i)}}function xte(){xte=F,Dce=new SZe,xOe=new EZe,COe=new kZe,AOe=new RZe,TOe=new xZe,$Oe=new CZe,IOe=new AZe,POe=new TZe,OOe=new $Ze}function cH(e,t){eme();var i,s;return i=w7((rF(),rF(),OI)),s=null,t==i&&(s=f(ua(UAe,e),624)),s||(s=new qpt(e),t==i&&Gs(UAe,e,s)),s}function $_t(e){n_();var t;return(e.q?e.q:(qt(),qt(),Ip))._b((pt(),Ty))?t=f(V(e,Ty),203):t=f(V(Go(e),ZI),203),t}function t_(e,t){var i,s;return s=null,ri(e,(pt(),jV))&&(i=f(V(e,jV),96),i.pf(t)&&(s=i.of(t))),s==null&&(s=V(Go(e),t)),s}function I_t(e,t){var i,s,a;return ve(t,44)?(i=f(t,44),s=i.ld(),a=Zv(e.Rc(),s),Lh(a,i.md())&&(a!=null||e.Rc()._b(s))):!1}function Od(e,t){var i,s,a;return e.f>0&&(e._j(),s=t==null?0:ti(t),a=(s&Nr)%e.d.length,i=gke(e,a,s,t),i)?i.md():null}function xa(e,t,i){var s,a,c;return e.Pj()?(s=e.i,c=e.Qj(),yN(e,s,t),a=e.Ij(3,null,t,s,c),i?i.nj(a):i=a):yN(e,e.i,t),i}function EAn(e,t,i){var s,a;return s=new gb(e.e,4,10,(a=t.c,ve(a,90)?f(a,29):(Kt(),Mf)),null,Rg(e,t),!1),i?i.nj(s):i=s,i}function kAn(e,t,i){var s,a;return s=new gb(e.e,3,10,null,(a=t.c,ve(a,90)?f(a,29):(Kt(),Mf)),Rg(e,t),!1),i?i.nj(s):i=s,i}function P_t(e){Mv();var t;return t=new us(f(e.e.of((Er(),fE)),8)),e.B.Hc((Gc(),T4))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function j1(e){Uh();var t,i;return i=tr(e),t=tr(x1(e,32)),t!=0?new Bgt(i,t):i>10||i<0?new pb(1,i):m6t[i]}function RN(e,t){var i;return ul(e)&&ul(t)&&(i=e%t,dM=0?c=c.a[1]:(a=c,c=c.a[0])}return a}function CN(e,t,i){var s,a,c;for(a=null,c=e.b;c;){if(s=e.a.Ne(t,c.d),i&&s==0)return c;s<=0?c=c.a[0]:(a=c,c=c.a[1])}return a}function $An(e,t,i,s){var a,c,b;return a=!1,ODn(e.f,i,s)&&(QAn(e.f,e.a[t][i],e.a[t][s]),c=e.a[t],b=c[s],c[s]=c[i],c[i]=b,a=!0),a}function D_t(e,t,i){var s,a,c,b;for(a=f(En(e.b,i),183),s=0,b=new ee(t.j);b.a>5,t&=31,a=e.d+i+(t==0?0:1),s=Fe(Xn,wr,28,a,15,1),A6n(s,e.a,i,t),c=new Y0(e.e,a,s),t6(c),c}function IAn(e,t){var i,s,a;for(s=new kn(xn(Wi(e).a.Kc(),new O));Un(s);)if(i=f(On(s),18),a=i.d.i,a.c==t)return!1;return!0}function N2e(e,t,i){var s,a,c,b,g;return b=e.k,g=t.k,s=i[b.g][g.g],a=je(t_(e,s)),c=je(t_(t,s)),h.Math.max((mn(a),a),(mn(c),c))}function PAn(){return Error.stackTraceLimit>0?(h.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function OAn(e,t){return Kd(),Kd(),td(G1),(h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)?0:et?1:km(isNaN(e),isNaN(t)))>0}function M2e(e,t){return Kd(),Kd(),td(G1),(h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)?0:et?1:km(isNaN(e),isNaN(t)))<0}function j_t(e,t){return Kd(),Kd(),td(G1),(h.Math.abs(e-t)<=G1||e==t||isNaN(e)&&isNaN(t)?0:et?1:km(isNaN(e),isNaN(t)))<=0}function Ate(e,t){for(var i=0;!t[i]||t[i]=="";)i++;for(var s=t[i++];i0&&this.b>0&&(this.g=SB(this.c,this.b,this.a))}function NAn(e,t){var i=e.a,s;t=String(t),i.hasOwnProperty(t)&&(s=i[t]);var a=(Jee(),ose)[typeof s],c=a?a(s):XSe(typeof s);return c}function nA(e){var t,i,s;if(s=null,t=Zh in e.a,i=!t,i)throw ne(new $h("Every element must have an id."));return s=x3(fb(e,Zh)),s}function ey(e){var t,i;for(i=uEt(e),t=null;e.c==2;)Ir(e),t||(t=(Or(),Or(),new O$(2)),ww(t,i),i=t),i.Jm(uEt(e));return i}function fH(e,t){var i,s,a;return e._j(),s=t==null?0:ti(t),a=(s&Nr)%e.d.length,i=gke(e,a,s,t),i?(zmt(e,i),i.md()):null}function V_t(e,t){return e.e>t.e?1:e.et.d?e.e:e.d=48&&e<48+h.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function MAn(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw ne(new hn("Input edge is not connected to the input port."))}function DAn(e){if(hH(WA,e))return cn(),qA;if(hH(boe,e))return cn(),Y1;throw ne(new hn("Expecting true or false"))}function j2e(e){switch(typeof e){case ure:return mg(e);case K3e:return Gk(e);case $3:return xdt(e);default:return e==null?0:Cm(e)}}function Hh(e,t){if(e.a<0)throw ne(new Us("Did not call before(...) or after(...) before calling add(...)."));return Pme(e,e.a,t),e}function F2e(e){return QB(),ve(e,162)?f(En(X9,E6t),295).Rg(e):Na(X9,ou(e))?f(En(X9,ou(e)),295).Rg(e):null}function ja(e){var t,i;return e.Db&32||(i=(t=f(dn(e,16),29),Pn(t||e.ii())-Pn(e.ii())),i!=0&&v3(e,32,Fe(ho,on,1,i,5,1))),e}function v3(e,t,i){var s;e.Db&t?i==null?y8n(e,t):(s=Xte(e,t),s==-1?e.Eb=i:Ci(ow(e.Eb),s,i)):i!=null&&HOn(e,t,i)}function LAn(e,t,i,s){var a,c;t.c.length!=0&&(a=PPn(i,s),c=O5n(t),Mi(xW(new Wt(null,new Vt(c,1)),new TJe),new Ebt(e,i,a,s)))}function jAn(e,t){var i,s,a,c;return s=e.a.length-1,i=t-e.b&s,c=e.c-t&s,a=e.c-e.b&s,_dt(i=c?(Dxn(e,t),-1):(Mxn(e,t),1)}function dH(e){var t,i,s;if(s=e.Jh(),!s)for(t=0,i=e.Ph();i;i=i.Ph()){if(++t>Fre)return i.Qh();if(s=i.Jh(),s||i==e)break}return s}function K_t(e,t){var i;return Ne(t)===Ne(e)?!0:!ve(t,21)||(i=f(t,21),i.gc()!=e.gc())?!1:e.Ic(i)}function FAn(e,t){return e.et.e?1:e.ft.f?1:ti(e)-ti(t)}function hH(e,t){return mn(e),t==null?!1:Ht(e,t)?!0:e.length==t.length&&Ht(e.toLowerCase(),t.toLowerCase())}function Eb(e){var t,i;return Jl(e,-129)>0&&Jl(e,128)<0?(Yht(),t=tr(e)+128,i=QAe[t],!i&&(i=QAe[t]=new e0e(e)),i):new e0e(e)}function hw(){hw=F,A_=new TF(Jh,0),dTe=new TF("INSIDE_PORT_SIDE_GROUPS",1),Fse=new TF("GROUP_MODEL_ORDER",2),Bse=new TF(DRe,3)}function BAn(e){var t;return e.b||Obn(e,(t=P0n(e.e,e.a),!t||!Ht(boe,Od((!t.b&&(t.b=new nu((Kt(),_s),Ll,t)),t.b),"qualified")))),e.c}function WAn(e,t){var i,s;for(i=(pn(t,e.length),e.charCodeAt(t)),s=t+1;s2e3&&(a6t=e,EG=h.setTimeout(jbn,10))),SG++==0?(e3n((z0e(),HAe)),!0):!1}function t4n(e,t,i){var s;($6t?(iAn(e),!0):I6t||O6t?(Zx(),!0):P6t&&(Zx(),!1))&&(s=new uht(t),s.b=i,cIn(e,s))}function $te(e,t){var i;i=!e.A.Hc((su(),Vw))||e.q==(Co(),ya),e.u.Hc(($c(),Mb))?i?GLn(e,t):Hxt(e,t):e.u.Hc(f0)&&(i?uLn(e,t):rCt(e,t))}function Z_t(e){var t;Ne(Qe(e,(Er(),cE)))===Ne((vb(),Ez))&&(di(e)?(t=f(Qe(di(e),cE),346),zr(e,cE,t)):zr(e,cE,T5))}function n4n(e){var t,i;return ri(e.d.i,(pt(),f4))?(t=f(V(e.c.i,f4),17),i=f(V(e.d.i,f4),17),Xl(t.a,i.a)>0):!1}function eSt(e,t,i){return new Gu(h.Math.min(e.a,t.a)-i/2,h.Math.min(e.b,t.b)-i/2,h.Math.abs(e.a-t.a)+i,h.Math.abs(e.b-t.b)+i)}function tSt(e){var t;this.d=new st,this.j=new Io,this.g=new Io,t=e.g.b,this.f=f(V(Go(t),(pt(),$u)),88),this.e=Ae(je(wH(t,B_)))}function nSt(e){this.d=new st,this.e=new hg,this.c=Fe(Xn,wr,28,(ft(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])).length,15,1),this.b=e}function H2e(e,t,i){var s;switch(s=i[e.g][t],e.g){case 1:case 3:return new tt(0,s);case 2:case 4:return new tt(s,0);default:return null}}function rSt(e,t,i){var s,a;a=f(O7(t.f),205);try{a.rf(e,i),abt(t.f,a)}catch(c){throw c=mi(c),ve(c,103)?(s=c,ne(s)):ne(c)}}function iSt(e,t,i){var s,a,c,b,g,m;return s=null,g=O3e(OC(),t),c=null,g&&(a=null,m=I3e(g,i),b=null,m!=null&&(b=e.qf(g,m)),a=b,c=a),s=c,s}function Ite(e,t,i,s){var a;if(a=e.length,t>=a)return a;for(t=t>0?t:0;ts&&Ci(t,s,null),t}function oSt(e,t){var i,s;for(s=e.a.length,t.lengths&&Ci(t,s,null),t}function rA(e,t){var i,s;if(++e.j,t!=null&&(i=(s=e.a.Cb,ve(s,99)?f(s,99).th():null),l8n(t,i))){v3(e.a,4,i);return}v3(e.a,4,f(t,129))}function r4n(e){var t;if(e==null)return null;if(t=aPn(ha(e,!0)),t==null)throw ne(new $Y("Invalid hexBinary value: '"+e+"'"));return t}function pH(e,t,i){var s;t.a.length>0&&(lt(e.b,new xht(t.a,i)),s=t.a.length,0s&&(t.a+=Aft(Fe(df,zh,28,-s,15,1))))}function sSt(e,t,i){var s,a,c;if(!i[t.d])for(i[t.d]=!0,a=new ee(s2(t));a.a=e.b>>1)for(s=e.c,i=e.b;i>t;--i)s=s.b;else for(s=e.a.a,i=0;i=0?e.Wh(a):vne(e,s)):i<0?vne(e,s):f(s,69).wk().Bk(e,e.hi(),i)}function uSt(e){var t,i,s;for(s=(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),e.o),i=s.c.Kc();i.e!=i.i.gc();)t=f(i.Yj(),44),t.md();return V7(s)}function dt(e){var t;if(ve(e.a,4)){if(t=F2e(e.a),t==null)throw ne(new Us(P4t+e.b+"'. "+I4t+(cb(J9),J9.k)+qCe));return t}else return e.a}function f4n(e,t){var i,s;if(e.j.length!=t.j.length)return!1;for(i=0,s=e.j.length;i=64&&t<128&&(a=Ad(a,Zf(1,t-64)));return a}function wH(e,t){var i,s;return s=null,ri(e,(Er(),aR))&&(i=f(V(e,aR),96),i.pf(t)&&(s=i.of(t))),s==null&&Go(e)&&(s=V(Go(e),t)),s}function d4n(e,t){var i;return i=f(V(e,(pt(),Xs)),75),IQ(t,I5t)?i?wu(i):(i=new cc,Xe(e,Xs,i)):i&&Xe(e,Xs,null),i}function T6(){T6=F,z4e=(Er(),EPe),xse=rPe,$It=sE,V4e=Bg,NIt=(TH(),k4e),OIt=S4e,MIt=x4e,PIt=_4e,IIt=(lte(),H4e),Rse=CIt,G4e=AIt,NG=TIt}function mH(e){switch(bwe(),this.c=new st,this.d=e,e.g){case 0:case 2:this.a=Eve(fTe),this.b=hi;break;case 3:case 1:this.a=fTe,this.b=to}}function h4n(e){var t;Jk(f(V(e,(pt(),Oi)),101))&&(t=e.b,QEt((Xt(0,t.c.length),f(t.c[0],30))),QEt(f(yt(t,t.c.length-1),30)))}function p4n(e,t){t.Ug("Self-Loop post-processing",1),Mi(Br(Br(El(new Wt(null,new Vt(e.b,16)),new iqe),new oqe),new sqe),new lqe),t.Vg()}function fSt(e,t,i){var s,a;if(e.c)Da(e.c,e.c.i+t),La(e.c,e.c.j+i);else for(a=new ee(e.b);a.a=0&&(i.d=e.t);break;case 3:e.t>=0&&(i.a=e.t)}e.C&&(i.b=e.C.b,i.c=e.C.c)}function $6(){$6=F,pIe=new QO(iCe,0),Jle=new QO(mie,1),Yle=new QO("LINEAR_SEGMENTS",2),n5=new QO("BRANDES_KOEPF",3),r5=new QO(s4t,4)}function I6(){I6=F,qM=new CF(mU,0),PG=new CF(Qre,1),OG=new CF(Zre,2),XM=new CF(eie,3),qM.a=!1,PG.a=!0,OG.a=!1,XM.a=!0}function _3(){_3=F,VM=new xF(mU,0),GM=new xF(Qre,1),zM=new xF(Zre,2),KM=new xF(eie,3),VM.a=!1,GM.a=!0,zM.a=!1,KM.a=!0}function S3(e,t,i,s){var a;return i>=0?e.Sh(t,i,s):(e.Ph()&&(s=(a=e.Fh(),a>=0?e.Ah(s):e.Ph().Th(e,-1-a,null,s))),e.Ch(t,i,s))}function U2e(e,t){switch(t){case 7:!e.e&&(e.e=new en(Fi,e,7,4)),Vn(e.e);return;case 8:!e.d&&(e.d=new en(Fi,e,8,5)),Vn(e.d);return}$2e(e,t)}function zr(e,t,i){return i==null?(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),fH(e.o,t)):(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),ON(e.o,t,i)),e}function bSt(e,t){qt();var i,s,a,c;for(i=e,c=t,ve(e,21)&&!ve(t,21)&&(i=t,c=e),a=i.Kc();a.Ob();)if(s=a.Pb(),c.Hc(s))return!1;return!0}function y4n(e,t,i,s){if(t.ai.b)return!0}return!1}function Dte(e,t){return Eo(e)?!!t6t[t]:e.Sm?!!e.Sm[t]:Pv(e)?!!e6t[t]:Iv(e)?!!Z$t[t]:!1}function v4n(e){var t;t=e.a;do t=f(On(new kn(xn(go(t).a.Kc(),new O))),18).c.i,t.k==(gn(),vo)&&e.b.Fc(t);while(t.k==(gn(),vo));e.b=Zu(e.b)}function gSt(e,t){var i,s,a;for(a=e,s=new kn(xn(go(t).a.Kc(),new O));Un(s);)i=f(On(s),18),i.c.i.c&&(a=h.Math.max(a,i.c.i.c.p));return a}function _4n(e,t){var i,s,a;for(a=0,s=f(f(Hr(e.r,t),21),87).Kc();s.Ob();)i=f(s.Pb(),117),a+=i.d.d+i.b.Mf().b+i.d.a,s.Ob()&&(a+=e.w);return a}function S4n(e,t){var i,s,a;for(a=0,s=f(f(Hr(e.r,t),21),87).Kc();s.Ob();)i=f(s.Pb(),117),a+=i.d.b+i.b.Mf().a+i.d.c,s.Ob()&&(a+=e.w);return a}function wSt(e){var t,i,s,a;if(s=0,a=c_(e),a.c.length==0)return 1;for(i=new ee(a);i.a=0?e.Lh(b,i,!0):iy(e,c,i)):f(c,69).wk().yk(e,e.hi(),a,i,s)}function x4n(e,t,i,s){var a,c;c=t.pf((Er(),uE))?f(t.of(uE),21):e.j,a=uCn(c),a!=(fU(),_se)&&(i&&!D2e(a)||qEe(cPn(e,a,s),t))}function C4n(e){switch(e.g){case 1:return Jm(),UM;case 3:return Jm(),HM;case 2:return Jm(),Ese;case 4:return Jm(),Sse;default:return null}}function A4n(e,t,i){if(e.e)switch(e.b){case 1:m_n(e.c,t,i);break;case 0:y_n(e.c,t,i)}else j1t(e.c,t,i);e.a[t.p][i.p]=e.c.i,e.a[i.p][t.p]=e.c.e}function mSt(e){var t,i;if(e==null)return null;for(i=Fe(Op,rt,199,e.length,0,2),t=0;t=0)return a;if(e.ol()){for(s=0;s=a)throw ne(new Lv(t,a));if(e.Si()&&(s=e.dd(i),s>=0&&s!=t))throw ne(new hn(OM));return e.Xi(t,i)}function G2e(e,t){if(this.a=f(nr(e),253),this.b=f(nr(t),253),e.Ed(t)>0||e==(EY(),Yoe)||t==(kY(),Qoe))throw ne(new hn("Invalid range: "+W1t(e,t)))}function ySt(e){var t,i;for(this.b=new st,this.c=e,this.a=!1,i=new ee(e.a);i.a0),(t&-t)==t)return oo(t*Uc(e,31)*4656612873077393e-25);do i=Uc(e,31),s=i%t;while(i-s+(t-1)<0);return oo(s)}function N4n(e,t,i){switch(i.g){case 1:e.a=t.a/2,e.b=0;break;case 2:e.a=t.a,e.b=t.b/2;break;case 3:e.a=t.a/2,e.b=t.b;break;case 4:e.a=0,e.b=t.b/2}}function AN(e,t,i,s){var a,c;for(a=t;a1&&(c=$4n(e,t)),c}function SSt(e){var t;return t=Ae(je(Qe(e,(Er(),D9))))*h.Math.sqrt((!e.a&&(e.a=new qe($r,e,10,11)),e.a).i),new tt(t,t/Ae(je(Qe(e,_z))))}function jte(e){var t;return e.f&&e.f.Vh()&&(t=f(e.f,54),e.f=f(D1(e,t),84),e.f!=t&&e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,9,8,t,e.f))),e.f}function Fte(e){var t;return e.i&&e.i.Vh()&&(t=f(e.i,54),e.i=f(D1(e,t),84),e.i!=t&&e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,9,7,t,e.i))),e.i}function Es(e){var t;return e.b&&e.b.Db&64&&(t=e.b,e.b=f(D1(e,t),19),e.b!=t&&e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,9,21,t,e.b))),e.b}function EH(e,t){var i,s,a;e.d==null?(++e.e,++e.f):(s=t.Bi(),rOn(e,e.f+1),a=(s&Nr)%e.d.length,i=e.d[a],!i&&(i=e.d[a]=e.dk()),i.Fc(t),++e.f)}function K2e(e,t,i){var s;return t.tk()?!1:t.Ik()!=-2?(s=t.ik(),s==null?i==null:Lr(s,i)):t.qk()==e.e.Dh()&&i==null}function kH(){var e;Su(16,OCt),e=syt(16),this.b=Fe(ese,cM,303,e,0,1),this.c=Fe(ese,cM,303,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function kb(e){Zme.call(this),this.k=(gn(),ji),this.j=(Su(6,b_),new ka(6)),this.b=(Su(2,b_),new ka(2)),this.d=new mY,this.f=new N0e,this.a=e}function D4n(e){var t,i;e.c.length<=1||(t=x3t(e,(ft(),jn)),hEt(e,f(t.a,17).a,f(t.b,17).a),i=x3t(e,wn),hEt(e,f(i.a,17).a,f(i.b,17).a))}function L4n(e,t,i){var s,a;for(a=e.a.b,s=a.c.length;s102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function Gte(e,t){if(e==null)throw ne(new Mk("null key in entry: null="+t));if(t==null)throw ne(new Mk("null value in entry: "+e+"=null"))}function B4n(e,t){for(var i,s;e.Ob();)if(!t.Ob()||(i=e.Pb(),s=t.Pb(),!(Ne(i)===Ne(s)||i!=null&&Lr(i,s))))return!1;return!t.Ob()}function RSt(e,t){var i;return i=se(ie(Ro,1),js,28,15,[cte(e.a[0],t),cte(e.a[1],t),cte(e.a[2],t)]),e.d&&(i[0]=h.Math.max(i[0],i[2]),i[2]=i[0]),i}function xSt(e,t){var i;return i=se(ie(Ro,1),js,28,15,[QW(e.a[0],t),QW(e.a[1],t),QW(e.a[2],t)]),e.d&&(i[0]=h.Math.max(i[0],i[2]),i[2]=i[0]),i}function X2e(e,t,i){Jk(f(V(t,(pt(),Oi)),101))||(c_e(e,t,xg(t,i)),c_e(e,t,xg(t,(ft(),jn))),c_e(e,t,xg(t,bn)),qt(),Hi(t.j,new Pit(e)))}function CSt(e){var t,i;for(e.c||oDn(e),i=new cc,t=new ee(e.a),Z(t);t.a0&&(pn(0,t.length),t.charCodeAt(0)==43)?(pn(1,t.length+1),t.substr(1)):t))}function eTn(e){var t;return e==null?null:new k1((t=ha(e,!0),t.length>0&&(pn(0,t.length),t.charCodeAt(0)==43)?(pn(1,t.length+1),t.substr(1)):t))}function Y2e(e,t,i,s,a,c,b,g){var m,_;s&&(m=s.a[0],m&&Y2e(e,t,i,m,a,c,b,g),Zte(e,i,s.d,a,c,b,g)&&t.Fc(s),_=s.a[1],_&&Y2e(e,t,i,_,a,c,b,g))}function u2(e,t,i){try{return Em(Nee(e,t,i),1)}catch(s){throw s=mi(s),ve(s,333)?ne(new Hs(tie+e.o+"*"+e.p+nie+t+ds+i+rie)):ne(s)}}function PSt(e,t,i){try{return Em(Nee(e,t,i),0)}catch(s){throw s=mi(s),ve(s,333)?ne(new Hs(tie+e.o+"*"+e.p+nie+t+ds+i+rie)):ne(s)}}function OSt(e,t,i){try{return Em(Nee(e,t,i),2)}catch(s){throw s=mi(s),ve(s,333)?ne(new Hs(tie+e.o+"*"+e.p+nie+t+ds+i+rie)):ne(s)}}function NSt(e,t){if(e.g==-1)throw ne(new ac);e.Xj();try{e.d.hd(e.g,t),e.f=e.d.j}catch(i){throw i=mi(i),ve(i,77)?ne(new Bu):ne(i)}}function tTn(e){var t,i,s,a,c;for(s=new ee(e.b);s.ac&&Ci(t,c,null),t}function nTn(e,t){var i,s;if(s=e.gc(),t==null){for(i=0;i0&&(m+=a),_[k]=b,b+=g*(m+s)}function DSt(e){var t,i,s;for(s=e.f,e.n=Fe(Ro,js,28,s,15,1),e.d=Fe(Ro,js,28,s,15,1),t=0;t0?e.c:0),++a;e.b=s,e.d=c}function WSt(e,t){var i;return i=se(ie(Ro,1),js,28,15,[z2e(e,(Pd(),Nl),t),z2e(e,Aa,t),z2e(e,Ml,t)]),e.f&&(i[0]=h.Math.max(i[0],i[2]),i[2]=i[0]),i}function uTn(e,t,i){var s;try{ZH(e,t+e.j,i+e.k,!1,!0)}catch(a){throw a=mi(a),ve(a,77)?(s=a,ne(new Hs(s.g+vU+t+ds+i+")."))):ne(a)}}function fTn(e,t,i){var s;try{ZH(e,t+e.j,i+e.k,!0,!1)}catch(a){throw a=mi(a),ve(a,77)?(s=a,ne(new Hs(s.g+vU+t+ds+i+")."))):ne(a)}}function HSt(e){var t;ri(e,(pt(),Ay))&&(t=f(V(e,Ay),21),t.Hc((a_(),dd))?(t.Mc(dd),t.Fc(hd)):t.Hc(hd)&&(t.Mc(hd),t.Fc(dd)))}function USt(e){var t;ri(e,(pt(),Ay))&&(t=f(V(e,Ay),21),t.Hc((a_(),bd))?(t.Mc(bd),t.Fc($f)):t.Hc($f)&&(t.Mc($f),t.Fc(bd)))}function Jte(e,t,i,s){var a,c,b,g;return e.a==null&&hIn(e,t),b=t.b.j.c.length,c=i.d.p,g=s.d.p,a=g-1,a<0&&(a=b-1),c<=a?e.a[a]-e.a[c]:e.a[b-1]-e.a[c]+e.a[a]}function dTn(e){var t,i;if(!e.b)for(e.b=nW(f(e.f,27).kh().i),i=new Sn(f(e.f,27).kh());i.e!=i.i.gc();)t=f(Cn(i),135),lt(e.b,new CY(t));return e.b}function hTn(e){var t,i;if(!e.e)for(e.e=nW(AZ(f(e.f,27)).i),i=new Sn(AZ(f(e.f,27)));i.e!=i.i.gc();)t=f(Cn(i),123),lt(e.e,new Dot(t));return e.e}function GSt(e){var t,i;if(!e.a)for(e.a=nW(GB(f(e.f,27)).i),i=new Sn(GB(f(e.f,27)));i.e!=i.i.gc();)t=f(Cn(i),27),lt(e.a,new MQ(e,t));return e.a}function ny(e){var t;if(!e.C&&(e.D!=null||e.B!=null))if(t=eLn(e),t)e.hl(t);else try{e.hl(null)}catch(i){if(i=mi(i),!ve(i,63))throw ne(i)}return e.C}function pTn(e){switch(e.q.g){case 5:p2t(e,(ft(),bn)),p2t(e,jn);break;case 4:gxt(e,(ft(),bn)),gxt(e,jn);break;default:yEt(e,(ft(),bn)),yEt(e,jn)}}function bTn(e){switch(e.q.g){case 5:b2t(e,(ft(),_n)),b2t(e,wn);break;case 4:wxt(e,(ft(),_n)),wxt(e,wn);break;default:vEt(e,(ft(),_n)),vEt(e,wn)}}function f2(e,t){var i,s,a;for(a=new Io,s=e.Kc();s.Ob();)i=f(s.Pb(),36),bA(i,a.a,0),a.a+=i.f.a+t,a.b=h.Math.max(a.b,i.f.b);return a.b>0&&(a.b+=t),a}function CH(e,t){var i,s,a;for(a=new Io,s=e.Kc();s.Ob();)i=f(s.Pb(),36),bA(i,0,a.b),a.b+=i.f.b+t,a.a=h.Math.max(a.a,i.f.a);return a.a>0&&(a.a+=t),a}function VSt(e){var t,i,s;for(s=Nr,i=new ee(e.a);i.a>16==6?e.Cb.Th(e,5,Bd,t):(s=Es(f(tn((i=f(dn(e,16),29),i||e.ii()),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function gTn(e){mC();var t=e.e;if(t&&t.stack){var i=t.stack,s=t+` +`;return i.substring(0,s.length)==s&&(i=i.substring(s.length)),i.split(` +`)}return[]}function wTn(e){var t;return t=(Xmt(),h6t),t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function qSt(e){var t,i,s;e.b==e.c&&(s=e.a.length,i=ISe(h.Math.max(8,s))<<1,e.b!=0?(t=Yf(e.a,i),uyt(e,t,s),e.a=t,e.b=0):xv(e.a,i),e.c=s)}function mTn(e,t){var i;return i=e.b,i.pf((Er(),qc))?i.ag()==(ft(),wn)?-i.Mf().a-Ae(je(i.of(qc))):t+Ae(je(i.of(qc))):i.ag()==(ft(),wn)?-i.Mf().a:t}function $N(e){var t;return e.b.c.length!=0&&f(yt(e.b,0),72).a?f(yt(e.b,0),72).a:(t=TZ(e),t??""+(e.c?il(e.c.a,e,0):-1))}function AH(e){var t;return e.f.c.length!=0&&f(yt(e.f,0),72).a?f(yt(e.f,0),72).a:(t=TZ(e),t??""+(e.i?il(e.i.j,e,0):-1))}function yTn(e,t){var i,s;if(t<0||t>=e.gc())return null;for(i=t;i0?e.c:0),a=h.Math.max(a,t.d),++s;e.e=c,e.b=a}function _Tn(e){var t,i;if(!e.b)for(e.b=nW(f(e.f,123).kh().i),i=new Sn(f(e.f,123).kh());i.e!=i.i.gc();)t=f(Cn(i),135),lt(e.b,new CY(t));return e.b}function STn(e,t){var i,s,a;if(t.dc())return oC(),oC(),Y9;for(i=new Idt(e,t.gc()),a=new Sn(e);a.e!=a.i.gc();)s=Cn(a),t.Hc(s)&&zn(i,s);return i}function tEe(e,t,i,s){return t==0?s?(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),e.o):(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),V7(e.o)):yH(e,t,i,s)}function Qte(e){var t,i;if(e.rb)for(t=0,i=e.rb.i;t>22),a+=s>>22,a<0)?!1:(e.l=i&Vc,e.m=s&Vc,e.h=a&Ab,!0)}function Zte(e,t,i,s,a,c,b){var g,m;return!(t.Te()&&(m=e.a.Ne(i,s),m<0||!a&&m==0)||t.Ue()&&(g=e.a.Ne(i,c),g>0||!b&&g==0))}function xTn(e,t){zC();var i;if(i=e.j.g-t.j.g,i!=0)return 0;switch(e.j.g){case 2:return yte(t,i$e)-yte(e,i$e);case 4:return yte(e,r$e)-yte(t,r$e)}return 0}function CTn(e){switch(e.g){case 0:return cle;case 1:return ule;case 2:return fle;case 3:return dle;case 4:return hV;case 5:return hle;default:return null}}function Ks(e,t,i){var s,a;return s=(a=new _Y,dw(a,t),Ra(a,i),zn((!e.c&&(e.c=new qe(Ly,e,12,10)),e.c),a),a),wg(s,0),Jv(s,1),Sg(s,!0),_g(s,!0),s}function E3(e,t){var i,s;if(t>=e.i)throw ne(new SQ(t,e.i));return++e.j,i=e.g[t],s=e.i-t-1,s>0&&oa(e.g,t+1,e.g,t,s),Ci(e.g,--e.i,null),e.Qi(t,i),e.Ni(),i}function XSt(e,t){var i,s;return e.Db>>16==17?e.Cb.Th(e,21,Pf,t):(s=Es(f(tn((i=f(dn(e,16),29),i||e.ii()),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function ATn(e){var t,i,s,a;for(qt(),Hi(e.c,e.a),a=new ee(e.c);a.ai.a.c.length))throw ne(new hn("index must be >= 0 and <= layer node count"));e.c&&Ja(e.c.a,e),e.c=i,i&&$m(i.a,t,e)}function e2t(e,t){var i,s,a;for(s=new kn(xn(Sb(e).a.Kc(),new O));Un(s);)return i=f(On(s),18),a=f(t.Kb(i),10),new Uj(nr(a.n.b+a.o.b/2));return i$(),i$(),Joe}function t2t(e,t){this.c=new Fn,this.a=e,this.b=t,this.d=f(V(e,(nt(),K2)),312),Ne(V(e,(pt(),H6e)))===Ne((X7(),pV))?this.e=new Jst:this.e=new Xst}function O6(e,t){var i,s;return s=null,e.pf((Er(),aR))&&(i=f(e.of(aR),96),i.pf(t)&&(s=i.of(t))),s==null&&e.Tf()&&(s=e.Tf().of(t)),s==null&&(s=dt(t)),s}function ene(e,t){var i,s;i=e.fd(t);try{return s=i.Pb(),i.Qb(),s}catch(a){throw a=mi(a),ve(a,112)?ne(new Hs("Can't remove element "+t)):ne(a)}}function DTn(e,t){var i,s,a;if(s=new hF,a=new NSe(s.q.getFullYear()-V1,s.q.getMonth(),s.q.getDate()),i=KMn(e,t,a),i==0||i0?t:0),++i;return new tt(s,a)}function sEe(e,t){var i,s;return e.Db>>16==6?e.Cb.Th(e,6,Fi,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),Iz)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function lEe(e,t){var i,s;return e.Db>>16==7?e.Cb.Th(e,1,z9,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),cOe)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function aEe(e,t){var i,s;return e.Db>>16==9?e.Cb.Th(e,9,$r,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),fOe)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function i2t(e,t){var i,s;return e.Db>>16==5?e.Cb.Th(e,9,Bz,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Kt(),Gg)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function o2t(e,t){var i,s;return e.Db>>16==7?e.Cb.Th(e,6,Bd,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Kt(),zg)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function cEe(e,t){var i,s;return e.Db>>16==3?e.Cb.Th(e,0,q9,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Kt(),Ug)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function s2t(){this.a=new cZe,this.g=new kH,this.j=new kH,this.b=new Fn,this.d=new kH,this.i=new kH,this.k=new Fn,this.c=new Fn,this.e=new Fn,this.f=new Fn}function FTn(e,t,i){var s,a,c;for(i<0&&(i=0),c=e.i,a=i;aFre)return oA(e,s);if(s==e)return!0}}return!1}function WTn(e){switch(rB(),e.q.g){case 5:HEt(e,(ft(),bn)),HEt(e,jn);break;case 4:Ukt(e,(ft(),bn)),Ukt(e,jn);break;default:zxt(e,(ft(),bn)),zxt(e,jn)}}function HTn(e){switch(rB(),e.q.g){case 5:lkt(e,(ft(),_n)),lkt(e,wn);break;case 4:dSt(e,(ft(),_n)),dSt(e,wn);break;default:Kxt(e,(ft(),_n)),Kxt(e,wn)}}function UTn(e){var t,i;t=f(V(e,(od(),QIt)),17),t?(i=t.a,i==0?Xe(e,(P1(),FG),new Ete):Xe(e,(P1(),FG),new sW(i))):Xe(e,(P1(),FG),new sW(1))}function GTn(e,t){var i;switch(i=e.i,t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-i.o.a;case 3:return e.n.b-i.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function VTn(e,t){switch(e.g){case 0:return t==(ef(),n0)?oV:sV;case 1:return t==(ef(),n0)?oV:e9;case 2:return t==(ef(),n0)?e9:sV;default:return e9}}function PN(e,t){var i,s,a;for(Ja(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),a=wCe,s=new ee(e.a);s.a>16==3?e.Cb.Th(e,12,$r,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),aOe)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function fEe(e,t){var i,s;return e.Db>>16==11?e.Cb.Th(e,10,$r,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Yl(),uOe)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function l2t(e,t){var i,s;return e.Db>>16==10?e.Cb.Th(e,11,Pf,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Kt(),Vg)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function a2t(e,t){var i,s;return e.Db>>16==10?e.Cb.Th(e,12,Of,t):(s=Es(f(tn((i=f(dn(e,16),29),i||(Kt(),eS)),e.Db>>16),19)),e.Cb.Th(e,s.n,s.f,t))}function _f(e){var t;return!(e.Bb&1)&&e.r&&e.r.Vh()&&(t=f(e.r,54),e.r=f(D1(e,t),142),e.r!=t&&e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,9,8,t,e.r))),e.r}function tne(e,t,i){var s;return s=se(ie(Ro,1),js,28,15,[LEe(e,(Pd(),Nl),t,i),LEe(e,Aa,t,i),LEe(e,Ml,t,i)]),e.f&&(s[0]=h.Math.max(s[0],s[2]),s[2]=s[0]),s}function zTn(e,t){var i,s,a;if(a=g4n(e,t),a.c.length!=0)for(Hi(a,new RKe),i=a.c.length,s=0;s>19,_=t.h>>19,m!=_?_-m:(a=e.h,g=t.h,a!=g?a-g:(s=e.m,b=t.m,s!=b?s-b:(i=e.l,c=t.l,i-c)))}function TH(){TH=F,C4e=(YH(),yse),x4e=new Bt(fRe,C4e),R4e=(SW(),mse),k4e=new Bt(dRe,R4e),E4e=(bH(),wse),S4e=new Bt(hRe,E4e),_4e=new Bt(pRe,(cn(),!0))}function N6(e,t,i){var s,a;s=t*i,ve(e.g,154)?(a=c3(e),a.f.d?a.f.a||(e.d.a+=s+ah):(e.d.d-=s+ah,e.d.a+=s+ah)):ve(e.g,10)&&(e.d.d-=s,e.d.a+=2*s)}function c2t(e,t,i){var s,a,c,b,g;for(a=e[i.g],g=new ee(t.d);g.a0?e.b:0),++i;t.b=s,t.e=a}function u2t(e){var t,i,s;if(s=e.b,tct(e.i,s.length)){for(i=s.length*2,e.b=Fe(ese,cM,303,i,0,1),e.c=Fe(ese,cM,303,i,0,1),e.f=i-1,e.i=0,t=e.a;t;t=t.c)WN(e,t,t);++e.g}}function ZTn(e,t,i,s){var a,c,b,g;for(a=0;ab&&(g=b/s),a>c&&(m=c/a),Nh(e,h.Math.min(g,m)),e}function t$n(){rU();var e,t;try{if(t=f(SEe((_1(),Nf),UA),2113),t)return t}catch(i){if(i=mi(i),ve(i,103))e=i,fve((ir(),e));else throw ne(i)}return new oZe}function n$n(){rU();var e,t;try{if(t=f(SEe((_1(),Nf),Rf),2040),t)return t}catch(i){if(i=mi(i),ve(i,103))e=i,fve((ir(),e));else throw ne(i)}return new IZe}function r$n(){vwt();var e,t;try{if(t=f(SEe((_1(),Nf),Aw),2122),t)return t}catch(i){if(i=mi(i),ve(i,103))e=i,fve((ir(),e));else throw ne(i)}return new xet}function i$n(e,t,i){var s,a;return a=e.e,e.e=t,e.Db&4&&!(e.Db&1)&&(s=new yo(e,1,4,a,t),i?i.nj(s):i=s),a!=t&&(t?i=_A(e,HH(e,t),i):i=_A(e,e.a,i)),i}function f2t(){hF.call(this),this.e=-1,this.a=!1,this.p=Qo,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Qo}function o$n(e,t){var i,s,a;if(s=e.b.d.d,e.a||(s+=e.b.d.a),a=t.b.d.d,t.a||(a+=t.b.d.a),i=Qr(s,a),i==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return i}function s$n(e,t){var i,s,a;if(s=e.b.b.d,e.a||(s+=e.b.b.a),a=t.b.b.d,t.a||(a+=t.b.b.a),i=Qr(s,a),i==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return i}function l$n(e,t){var i,s,a;if(s=e.b.g.d,e.a||(s+=e.b.g.a),a=t.b.g.d,t.a||(a+=t.b.g.a),i=Qr(s,a),i==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return i}function hEe(){hEe=F,g5t=hc(gr(gr(gr(new Ki,(Yo(),ga),(ss(),UTe)),ga,GTe),ll,VTe),ll,PTe),m5t=gr(gr(new Ki,ga,RTe),ga,OTe),w5t=hc(new Ki,ll,MTe)}function a$n(e){var t,i,s,a,c;for(t=f(V(e,(nt(),zI)),85),c=e.n,s=t.Cc().Kc();s.Ob();)i=f(s.Pb(),314),a=i.i,a.c+=c.a,a.d+=c.b,i.c?$3t(i):I3t(i);Xe(e,zI,null)}function c$n(e,t,i){var s,a;switch(a=e.b,s=a.d,t.g){case 1:return-s.d-i;case 2:return a.o.a+s.c+i;case 3:return a.o.b+s.a+i;case 4:return-s.b-i;default:return-1}}function u$n(e,t,i){var s,a;for(i.Ug("Interactive node placement",1),e.a=f(V(t,(nt(),K2)),312),a=new ee(t.b);a.a0&&(b=(c&Nr)%e.d.length,a=gke(e,b,c,t),a)?(g=a.nd(i),g):(s=e.ck(c,t,i),e.c.Fc(s),null)}function gEe(e,t){var i,s,a,c;switch(vg(e,t).Kl()){case 3:case 2:{for(i=v2(t),a=0,c=i.i;a=0;s--)if(Ht(e[s].d,t)||Ht(e[s].d,i)){e.length>=s+1&&e.splice(0,s+1);break}return e}function NN(e,t){var i;return ul(e)&&ul(t)&&(i=e/t,dM0&&(e.b+=2,e.a+=s):(e.b+=1,e.a+=h.Math.min(s,a))}function m2t(e){var t;t=f(V(f(tf(e.b,0),40),(Il(),u5e)),107),Xe(e,(ei(),y4),new tt(0,0)),cRt(new U7,e,t.b+t.c-Ae(je(V(e,pae))),t.d+t.a-Ae(je(V(e,bae))))}function y2t(e,t){var i,s;if(s=!1,Eo(t)&&(s=!0,r3(e,new Bv(or(t)))),s||ve(t,242)&&(s=!0,r3(e,(i=uye(f(t,242)),new Gj(i)))),!s)throw ne(new TY(hAe))}function C$n(e,t,i,s){var a,c,b;return a=new gb(e.e,1,10,(b=t.c,ve(b,90)?f(b,29):(Kt(),Mf)),(c=i.c,ve(c,90)?f(c,29):(Kt(),Mf)),Rg(e,t),!1),s?s.nj(a):s=a,s}function yEe(e){var t,i;switch(f(V(Go(e),(pt(),M6e)),429).g){case 0:return t=e.n,i=e.o,new tt(t.a+i.a/2,t.b+i.b/2);case 1:return new us(e.n);default:return null}}function MN(){MN=F,bV=new S$(Jh,0),v$e=new S$("LEFTUP",1),S$e=new S$("RIGHTUP",2),y$e=new S$("LEFTDOWN",3),_$e=new S$("RIGHTDOWN",4),ple=new S$("BALANCED",5)}function A$n(e,t,i){var s,a,c;if(s=Qr(e.a[t.p],e.a[i.p]),s==0){if(a=f(V(t,(nt(),Z3)),15),c=f(V(i,Z3),15),a.Hc(i))return-1;if(c.Hc(t))return 1}return s}function T$n(e){switch(e.g){case 1:return new BYe;case 2:return new WYe;case 3:return new FYe;case 0:return null;default:throw ne(new hn(toe+(e.f!=null?e.f:""+e.g)))}}function vEe(e,t,i){switch(t){case 1:!e.n&&(e.n=new qe(Fs,e,1,7)),Vn(e.n),!e.n&&(e.n=new qe(Fs,e,1,7)),Ii(e.n,f(i,16));return;case 2:NC(e,or(i));return}BSe(e,t,i)}function _Ee(e,t,i){switch(t){case 3:Vm(e,Ae(je(i)));return;case 4:zm(e,Ae(je(i)));return;case 5:Da(e,Ae(je(i)));return;case 6:La(e,Ae(je(i)));return}vEe(e,t,i)}function $H(e,t,i){var s,a,c;c=(s=new _Y,s),a=oh(c,t,null),a&&a.oj(),Ra(c,i),zn((!e.c&&(e.c=new qe(Ly,e,12,10)),e.c),c),wg(c,0),Jv(c,1),Sg(c,!0),_g(c,!0)}function SEe(e,t){var i,s,a;return i=w$(e.i,t),ve(i,241)?(a=f(i,241),a.zi()==null,a.wi()):ve(i,507)?(s=f(i,2037),a=s.b,a):null}function $$n(e,t,i,s){var a,c;return nr(t),nr(i),c=f(B$(e.d,t),17),zwt(!!c,"Row %s not in %s",t,e.e),a=f(B$(e.b,i),17),zwt(!!a,"Column %s not in %s",i,e.c),rvt(e,c.a,a.a,s)}function v2t(e,t,i,s,a,c,b){var g,m,_,k,I;if(k=a[c],_=c==b-1,g=_?s:0,I=FSt(g,k),s!=10&&se(ie(e,b-c),t[c],i[c],g,I),!_)for(++c,m=0;m1||g==-1?(c=f(m,15),a.Wb(hAn(e,c))):a.Wb(Bne(e,f(m,58)))))}function L$n(e,t,i,s){$at();var a=Xoe;function c(){for(var b=0;b0)return!1;return!0}function B$n(e){var t,i,s,a,c;for(s=new aw(new U0(e.b).a);s.b;)i=Xm(s),t=f(i.ld(),10),c=f(f(i.md(),42).a,10),a=f(f(i.md(),42).b,8),Mr(xd(t.n),Mr(Ho(c.n),a))}function W$n(e){switch(f(V(e.b,(pt(),A6e)),387).g){case 1:Mi(nl(El(new Wt(null,new Vt(e.d,16)),new wXe),new mXe),new yXe);break;case 2:D7n(e);break;case 0:p5n(e)}}function H$n(e,t,i){var s,a,c;for(s=i,!s&&(s=new Ok),s.Ug("Layout",e.a.c.length),c=new ee(e.a);c.aYie)return i;a>-1e-6&&++i}return i}function kEe(e,t){var i;t!=e.b?(i=null,e.b&&(i=qB(e.b,e,-4,i)),t&&(i=S3(t,e,-4,i)),i=Jvt(e,t,i),i&&i.oj()):e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,3,t,t))}function E2t(e,t){var i;t!=e.f?(i=null,e.f&&(i=qB(e.f,e,-1,i)),t&&(i=S3(t,e,-1,i)),i=Xvt(e,t,i),i&&i.oj()):e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,0,t,t))}function z$n(e,t,i,s){var a,c,b,g;return eu(e.e)&&(a=t.Lk(),g=t.md(),c=i.md(),b=T1(e,1,a,g,c,a.Jk()?mA(e,a,c,ve(a,102)&&(f(a,19).Bb&ys)!=0):-1,!0),s?s.nj(b):s=b),s}function k2t(e){var t,i,s;if(e==null)return null;if(i=f(e,15),i.dc())return"";for(s=new ig,t=i.Kc();t.Ob();)Ms(s,(Jr(),or(t.Pb()))),s.a+=" ";return kQ(s,s.a.length-1)}function R2t(e){var t,i,s;if(e==null)return null;if(i=f(e,15),i.dc())return"";for(s=new ig,t=i.Kc();t.Ob();)Ms(s,(Jr(),or(t.Pb()))),s.a+=" ";return kQ(s,s.a.length-1)}function K$n(e,t,i){var s,a;return s=e.c[t.c.p][t.p],a=e.c[i.c.p][i.p],s.a!=null&&a.a!=null?dZ(s.a,a.a):s.a!=null?-1:a.a!=null?1:0}function q$n(e,t,i){return i.Ug("Tree layout",1),T7(e.b),Cd(e.b,(k3(),JV),JV),Cd(e.b,c5,c5),Cd(e.b,u5,u5),Cd(e.b,f5,f5),e.a=tM(e.b,t),H$n(e,t,i.eh(1)),i.Vg(),t}function X$n(e,t){var i,s,a,c,b,g;if(t)for(c=t.a.length,i=new J0(c),g=(i.b-i.a)*i.c<0?(S1(),w0):new R1(i);g.Ob();)b=f(g.Pb(),17),a=vC(t,b.a),s=new zot(e),r_n(s.a,a)}function J$n(e,t){var i,s,a,c,b,g;if(t)for(c=t.a.length,i=new J0(c),g=(i.b-i.a)*i.c<0?(S1(),w0):new R1(i);g.Ob();)b=f(g.Pb(),17),a=vC(t,b.a),s=new Lot(e),n_n(s.a,a)}function Y$n(e){var t;if(e!=null&&e.length>0&&Jo(e,e.length-1)==33)try{return t=Okt(Vu(e,0,e.length-1)),t.e==null}catch(i){if(i=mi(i),!ve(i,33))throw ne(i)}return!1}function Q$n(e,t,i){var s,a,c;switch(s=Go(t),a=rH(s),c=new ia,Sl(c,t),i.g){case 1:so(c,EN(y3(a)));break;case 2:so(c,y3(a))}return Xe(c,(pt(),L_),je(V(e,L_))),c}function REe(e){var t,i;return t=f(On(new kn(xn(go(e.a).a.Kc(),new O))),18),i=f(On(new kn(xn(Wi(e.a).a.Kc(),new O))),18),wt(gt(V(t,(nt(),hh))))||wt(gt(V(i,hh)))}function i_(){i_=F,t9=new XO("ONE_SIDE",0),cV=new XO("TWO_SIDES_CORNER",1),uV=new XO("TWO_SIDES_OPPOSING",2),aV=new XO("THREE_SIDES",3),lV=new XO("FOUR_SIDES",4)}function x2t(e,t){var i,s,a,c;for(c=new st,a=0,s=t.Kc();s.Ob();){for(i=ot(f(s.Pb(),17).a+a);i.a=e.f)break;sn(c.c,i)}return c}function Z$n(e,t){var i,s,a,c,b;for(c=new ee(t.a);c.a0&&JSt(this,this.c-1,(ft(),_n)),this.c0&&e[0].length>0&&(this.c=wt(gt(V(Go(e[0][0]),(nt(),L$e))))),this.a=Fe(v7t,rt,2117,e.length,0,2),this.b=Fe(_7t,rt,2118,e.length,0,2),this.d=new Gvt}function i6n(e){return e.c.length==0?!1:(Xt(0,e.c.length),f(e.c[0],18)).c.i.k==(gn(),vo)?!0:t2(nl(new Wt(null,new Vt(e,16)),new QXe),new ZXe)}function T2t(e,t){var i,s,a,c,b,g,m;for(g=c_(t),c=t.f,m=t.g,b=h.Math.sqrt(c*c+m*m),a=0,s=new ee(g);s.a=0?(i=NN(e,pU),s=RN(e,pU)):(t=x1(e,1),i=NN(t,5e8),s=RN(t,5e8),s=is(Zf(s,1),fo(e,1))),Ad(Zf(s,32),fo(i,Ts))}function P2t(e,t,i){var s,a;switch(s=(In(t.b!=0),f(Xu(t,t.a.a),8)),i.g){case 0:s.b=0;break;case 2:s.b=e.f;break;case 3:s.a=0;break;default:s.a=e.g}return a=Hn(t,0),A7(a,s),t}function O2t(e,t,i,s){var a,c,b,g,m;switch(m=e.b,c=t.d,b=c.j,g=H2e(b,m.d[b.g],i),a=Mr(Ho(c.n),c.a),c.j.g){case 1:case 3:g.a+=a.a;break;case 2:case 4:g.b+=a.b}Ai(s,g,s.c.b,s.c)}function g6n(e,t,i){var s,a,c,b;for(b=il(e.e,t,0),c=new I0e,c.b=i,s=new No(e.e,b);s.b1;t>>=1)t&1&&(s=e2(s,i)),i.d==1?i=e2(i,i):i=new X_t(bRt(i.a,i.d,Fe(Xn,wr,28,i.d<<1,15,1)));return s=e2(s,i),s}function NEe(){NEe=F;var e,t,i,s;for(h4e=Fe(Ro,js,28,25,15,1),p4e=Fe(Ro,js,28,33,15,1),s=152587890625e-16,t=32;t>=0;t--)p4e[t]=s,s*=.5;for(i=1,e=24;e>=0;e--)h4e[e]=i,i*=.5}function S6n(e){var t,i;if(wt(gt(Qe(e,(pt(),D_))))){for(i=new kn(xn(Rb(e).a.Kc(),new O));Un(i);)if(t=f(On(i),74),ry(t)&&wt(gt(Qe(t,Nw))))return!0}return!1}function N2t(e,t){var i,s,a;Zi(e.f,t)&&(t.b=e,s=t.c,il(e.j,s,0)!=-1||lt(e.j,s),a=t.d,il(e.j,a,0)!=-1||lt(e.j,a),i=t.a.b,i.c.length!=0&&(!e.i&&(e.i=new tSt(e)),CRn(e.i,i)))}function E6n(e){var t,i,s,a,c;return i=e.c.d,s=i.j,a=e.d.d,c=a.j,s==c?i.p=0&&Ht(e.substr(t,3),"GMT")||t>=0&&Ht(e.substr(t,3),"UTC"))&&(i[0]=t+3),h3e(e,i,s)}function R6n(e,t){var i,s,a,c,b;for(c=e.g.a,b=e.g.b,s=new ee(e.d);s.ai;c--)e[c]|=t[c-i-1]>>>b,e[c-1]=t[c-i-1]<0&&oa(e.g,t,e.g,t+s,g),b=i.Kc(),e.i+=s,a=0;a>4&15,c=e[s]&15,b[a++]=dOe[i],b[a++]=dOe[c];return Bh(b,0,b.length)}function Qa(e){var t,i;return e>=ys?(t=hM+(e-ys>>10&1023)&Ji,i=56320+(e-ys&1023)&Ji,String.fromCharCode(t)+(""+String.fromCharCode(i))):String.fromCharCode(e&Ji)}function D6n(e,t){Mv();var i,s,a,c;return a=f(f(Hr(e.r,t),21),87),a.gc()>=2?(s=f(a.Kc().Pb(),117),i=e.u.Hc(($c(),O5)),c=e.u.Hc(fR),!s.a&&!i&&(a.gc()==2||c)):!1}function L2t(e,t,i,s,a){var c,b,g;for(c=S3t(e,t,i,s,a),g=!1;!c;)BH(e,a,!0),g=!0,c=S3t(e,t,i,s,a);g&&BH(e,a,!1),b=qee(a),b.c.length!=0&&(e.d&&e.d.Gg(b),L2t(e,a,i,s,b))}function NH(){NH=F,Ece=new x$(Jh,0),DPe=new x$("DIRECTED",1),jPe=new x$("UNDIRECTED",2),NPe=new x$("ASSOCIATION",3),LPe=new x$("GENERALIZATION",4),MPe=new x$("DEPENDENCY",5)}function L6n(e,t){var i;if(!Xd(e))throw ne(new Us(Z4t));switch(i=Xd(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-i.g;case 3:return e.j-i.f;case 4:return-(e.i+e.g)}return 0}function j6n(e,t,i){var s,a,c;return s=t.Lk(),c=t.md(),a=s.Jk()?T1(e,4,s,c,null,mA(e,s,c,ve(s,102)&&(f(s,19).Bb&ys)!=0),!0):T1(e,s.tk()?2:1,s,c,s.ik(),-1,!0),i?i.nj(a):i=a,i}function aA(e,t){var i,s;for(mn(t),s=e.b.c.length,lt(e.b,t);s>0;){if(i=s,s=(s-1)/2|0,e.a.Ne(yt(e.b,s),t)<=0)return Ku(e.b,i,t),!0;Ku(e.b,i,yt(e.b,s))}return Ku(e.b,s,t),!0}function LEe(e,t,i,s){var a,c;if(a=0,i)a=QW(e.a[i.g][t.g],s);else for(c=0;c<$G;c++)a=h.Math.max(a,QW(e.a[c][t.g],s));return t==(Pd(),Aa)&&e.b&&(a=h.Math.max(a,e.b.a)),a}function F6n(e,t){var i,s,a,c,b,g;return a=e.i,c=t.i,!a||!c||a.i!=c.i||a.i==(ft(),_n)||a.i==(ft(),wn)?!1:(b=a.g.a,i=b+a.j.a,g=c.g.a,s=g+c.j.a,b<=s&&i>=g)}function j2t(e){switch(e.g){case 0:return new tQe;case 1:return new nQe;default:throw ne(new hn("No implementation is available for the width approximator "+(e.f!=null?e.f:""+e.g)))}}function jEe(e,t,i,s){var a;if(a=!1,Eo(s)&&(a=!0,cC(t,i,or(s))),a||Iv(s)&&(a=!0,jEe(e,t,i,s)),a||ve(s,242)&&(a=!0,ew(t,i,f(s,242))),!a)throw ne(new TY(hAe))}function B6n(e,t){var i,s,a;if(i=t.qi(e.a),i&&(a=Od((!i.b&&(i.b=new nu((Kt(),_s),Ll,i)),i.b),kf),a!=null)){for(s=1;s<(gc(),DOe).length;++s)if(Ht(DOe[s],a))return s}return 0}function W6n(e,t){var i,s,a;if(i=t.qi(e.a),i&&(a=Od((!i.b&&(i.b=new nu((Kt(),_s),Ll,i)),i.b),kf),a!=null)){for(s=1;s<(gc(),LOe).length;++s)if(Ht(LOe[s],a))return s}return 0}function F2t(e,t){var i,s,a,c;if(mn(t),c=e.a.gc(),c0?1:0;c.a[a]!=i;)c=c.a[a],a=e.a.Ne(i.d,c.d)>0?1:0;c.a[a]=s,s.b=i.b,s.a[0]=i.a[0],s.a[1]=i.a[1],i.a[0]=null,i.a[1]=null}function G6n(e){var t,i,s,a;for(t=new st,i=Fe(Xc,Tp,28,e.a.c.length,16,1),sve(i,i.length),a=new ee(e.a);a.a0&&fRt((Xt(0,i.c.length),f(i.c[0],30)),e),i.c.length>1&&fRt(f(yt(i,i.c.length-1),30),e),t.Vg()}function z6n(e){$c();var t,i;return t=ii(Mb,se(ie(kz,1),Je,279,0,[f0])),!(lN(JB(t,e))>1||(i=ii(O5,se(ie(kz,1),Je,279,0,[P5,fR])),lN(JB(i,e))>1))}function BEe(e,t){var i;i=ua((_1(),Nf),e),ve(i,507)?Gs(Nf,e,new Iut(this,t)):Gs(Nf,e,this),dne(this,t),t==(qx(),kOe)?(this.wb=f(this,2038),f(t,2040)):this.wb=(C1(),un)}function K6n(e){var t,i,s;if(e==null)return null;for(t=null,i=0;i=Tg?"error":s>=900?"warn":s>=800?"info":"log"),Qpt(i,e.a),e.b&&Hke(t,i,e.b,"Exception: ",!0))}function V(e,t){var i,s;return s=(!e.q&&(e.q=new Fn),En(e.q,t)),s??(i=t.Sg(),ve(i,4)&&(i==null?(!e.q&&(e.q=new Fn),f3(e.q,t)):(!e.q&&(e.q=new Fn),xr(e.q,t,i))),i)}function Yo(){Yo=F,cd=new qO("P1_CYCLE_BREAKING",0),Pp=new qO("P2_LAYERING",1),sa=new qO("P3_NODE_ORDERING",2),ga=new qO("P4_NODE_PLACEMENT",3),ll=new qO("P5_EDGE_ROUTING",4)}function q6n(e,t){a6();var i;if(e.c==t.c){if(e.b==t.b||tRn(e.b,t.b)){if(i=xgn(e.b)?1:-1,e.a&&!t.a)return i;if(!e.a&&t.a)return-i}return Xl(e.b.g,t.b.g)}else return Qr(e.c,t.c)}function G2t(e,t){var i,s,a;if(HEe(e,t))return!0;for(s=new ee(t);s.a=a||t<0)throw ne(new Hs(Toe+t+xw+a));if(i>=a||i<0)throw ne(new Hs($oe+i+xw+a));return t!=i?s=(c=e.Cj(i),e.qj(t,c),c):s=e.xj(i),s}function K2t(e){var t,i,s;if(s=e,e)for(t=0,i=e.Eh();i;i=i.Eh()){if(++t>Fre)return K2t(i);if(s=i,i==e)throw ne(new Us("There is a cycle in the containment hierarchy of "+e))}return s}function B1(e){var t,i,s;for(s=new cw(ds,"[","]"),i=e.Kc();i.Ob();)t=i.Pb(),bb(s,Ne(t)===Ne(e)?"(this Collection)":t==null?Za:dl(t));return s.a?s.e.length==0?s.a.a:s.a.a+(""+s.e):s.c}function HEe(e,t){var i,s;if(s=!1,t.gc()<2)return!1;for(i=0;i1&&(e.j.b+=e.e)):(e.j.a+=i.a,e.j.b=h.Math.max(e.j.b,i.b),e.d.c.length>1&&(e.j.a+=e.e))}function W1(){W1=F,i8t=se(ie(vs,1),Ql,64,0,[(ft(),bn),_n,jn]),r8t=se(ie(vs,1),Ql,64,0,[_n,jn,wn]),o8t=se(ie(vs,1),Ql,64,0,[jn,wn,bn]),s8t=se(ie(vs,1),Ql,64,0,[wn,bn,_n])}function J6n(e,t,i,s){var a,c,b,g,m,_,k;if(b=e.c.d,g=e.d.d,b.j!=g.j)for(k=e.b,a=b.j,m=null;a!=g.j;)m=t==0?nH(a):a2e(a),c=H2e(a,k.d[a.g],i),_=H2e(m,k.d[m.g],i),hr(s,Mr(c,_)),a=m}function Y6n(e,t,i,s){var a,c,b,g,m;return b=YSt(e.a,t,i),g=f(b.a,17).a,c=f(b.b,17).a,s&&(m=f(V(t,(nt(),Ic)),10),a=f(V(i,Ic),10),m&&a&&(j1t(e.b,m,a),g+=e.b.i,c+=e.b.e)),g>c}function X2t(e){var t,i,s,a,c,b,g,m,_;for(this.a=mSt(e),this.b=new st,i=e,s=0,a=i.length;sWQ(e.d).c?(e.i+=e.g.c,Cte(e.d)):WQ(e.d).c>WQ(e.g).c?(e.e+=e.d.c,Cte(e.g)):(e.i+=spt(e.g),e.e+=spt(e.d),Cte(e.g),Cte(e.d))}function tIn(e,t,i){var s,a,c,b;for(c=t.q,b=t.r,new tw((Td(),i0),t,c,1),new tw(i0,c,b,1),a=new ee(i);a.ag&&(m=g/s),a>c&&(_=c/a),b=h.Math.min(m,_),e.a+=b*(t.a-e.a),e.b+=b*(t.b-e.b)}function oIn(e,t,i,s,a){var c,b;for(b=!1,c=f(yt(i.b,0),27);NMn(e,t,c,s,a)&&(b=!0,M$n(i,c),i.b.c.length!=0);)c=f(yt(i.b,0),27);return i.b.c.length==0&&PN(i.j,i),b&&xH(t.q),b}function sIn(e,t){m2();var i,s,a,c;if(t.b<2)return!1;for(c=Hn(t,0),i=f(Bn(c),8),s=i;c.b!=c.d.c;){if(a=f(Bn(c),8),Ane(e,s,a))return!0;s=a}return!!Ane(e,s,i)}function GEe(e,t,i,s){var a,c;return i==0?(!e.o&&(e.o=new pc((Yl(),Fp),Hg,e,0)),lB(e.o,t,s)):(c=f(tn((a=f(dn(e,16),29),a||e.ii()),i),69),c.wk().Ak(e,ja(e),i-Pn(e.ii()),t,s))}function dne(e,t){var i;t!=e.sb?(i=null,e.sb&&(i=f(e.sb,54).Th(e,1,D5,i)),t&&(i=f(t,54).Rh(e,1,D5,i)),i=n2e(e,t,i),i&&i.oj()):e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,4,t,t))}function lIn(e,t){var i,s,a,c;if(t)a=yb(t,"x"),i=new Uot(e),AC(i.a,(mn(a),a)),c=yb(t,"y"),s=new Got(e),$C(s.a,(mn(c),c));else throw ne(new $h("All edge sections need an end point."))}function aIn(e,t){var i,s,a,c;if(t)a=yb(t,"x"),i=new Bot(e),TC(i.a,(mn(a),a)),c=yb(t,"y"),s=new Wot(e),IC(s.a,(mn(c),c));else throw ne(new $h("All edge sections need a start point."))}function cIn(e,t){var i,s,a,c,b,g,m;for(s=Rvt(e),c=0,g=s.length;c>22-t,a=e.h<>22-t):t<44?(i=0,s=e.l<>44-t):(i=0,s=0,a=e.l<e)throw ne(new hn("k must be smaller than n"));return t==0||t==e?1:e==0?0:wEe(e)/(wEe(t)*wEe(e-t))}function VEe(e,t){var i,s,a,c;for(i=new lme(e);i.g==null&&!i.c?Fve(i):i.g==null||i.i!=0&&f(i.g[i.i-1],51).Ob();)if(c=f(WH(i),58),ve(c,167))for(s=f(c,167),a=0;a>4],t[i*2+1]=Vz[c&15];return Bh(t,0,t.length)}function RIn(e){jB();var t,i,s;switch(s=e.c.length,s){case 0:return n6t;case 1:return t=f(DEt(new ee(e)),44),myn(t.ld(),t.md());default:return i=f(ih(e,Fe(Tw,dU,44,e.c.length,0,1)),173),new G0e(i)}}function xIn(e){var t,i,s,a,c,b;for(t=new qS,i=new qS,$1(t,e),$1(i,e);i.b!=i.c;)for(a=f(t3(i),36),b=new ee(a.a);b.a0&&XN(e,i,t),a):p8n(e,t,i)}function H1(){H1=F,lMt=(Er(),lR),aMt=Uw,rMt=Hw,iMt=fE,oMt=l0,nMt=uE,$5e=N9,sMt=z_,$ae=(o3e(),VNt),Iae=zNt,P5e=JNt,Pae=ZNt,O5e=YNt,N5e=QNt,I5e=KNt,iz=qNt,oz=XNt,S9=eMt,M5e=tMt,T5e=GNt}function rEt(e,t){var i,s,a,c,b;if(e.e<=t||JSn(e,e.g,t))return e.g;for(c=e.r,s=e.g,b=e.r,a=(c-s)/2+s;s+11&&(e.e.b+=e.a)):(e.e.a+=i.a,e.e.b=h.Math.max(e.e.b,i.b),e.d.c.length>1&&(e.e.a+=e.a))}function IIn(e){var t,i,s,a;switch(a=e.i,t=a.b,s=a.j,i=a.g,a.a.g){case 0:i.a=(e.g.b.o.a-s.a)/2;break;case 1:i.a=t.d.n.a+t.d.a.a;break;case 2:i.a=t.d.n.a+t.d.a.a-s.a;break;case 3:i.b=t.d.n.b+t.d.a.b}}function PIn(e,t,i){var s,a,c;for(a=new kn(xn(Sb(i).a.Kc(),new O));Un(a);)s=f(On(a),18),!ms(s)&&!(!ms(s)&&s.c.i.c==s.d.i.c)&&(c=Kkt(e,s,i,new Yst),c.c.length>1&&sn(t.c,c))}function oEt(e,t,i,s,a){if(ss&&(e.a=s),e.ba&&(e.b=a),e}function OIn(e){if(ve(e,143))return uOn(f(e,143));if(ve(e,233))return eAn(f(e,233));if(ve(e,23))return fIn(f(e,23));throw ne(new hn(pAe+B1(new kc(se(ie(ho,1),on,1,5,[e])))))}function NIn(e,t,i,s,a){var c,b,g;for(c=!0,b=0;b>>a|i[b+s+1]<>>a,++b}return c}function XEe(e,t,i,s){var a,c,b;if(t.k==(gn(),vo)){for(c=new kn(xn(go(t).a.Kc(),new O));Un(c);)if(a=f(On(c),18),b=a.c.i.k,b==vo&&e.c.a[a.c.i.c.p]==s&&e.c.a[t.c.p]==i)return!0}return!1}function MIn(e,t){var i,s,a,c;return t&=63,i=e.h&Ab,t<22?(c=i>>>t,a=e.m>>t|i<<22-t,s=e.l>>t|e.m<<22-t):t<44?(c=0,a=i>>>t-22,s=e.m>>t-22|e.h<<44-t):(c=0,a=0,s=i>>>t-44),Oa(s&Vc,a&Vc,c&Ab)}function sEt(e,t,i,s){var a;this.b=s,this.e=e==(Km(),s5),a=t[i],this.d=q0(Xc,[rt,Tp],[183,28],16,[a.length,a.length],2),this.a=q0(Xn,[rt,wr],[53,28],15,[a.length,a.length],2),this.c=new $Ee(t,i)}function DIn(e){var t,i,s;for(e.k=new Hve((ft(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])).length,e.j.c.length),s=new ee(e.j);s.a=i)return uA(e,t,s.p),!0;return!1}function p2(e,t,i,s){var a,c,b,g,m,_;for(b=i.length,c=0,a=-1,_=Zwt((pn(t,e.length+1),e.substr(t)),(zQ(),f4e)),g=0;gc&&cvn(_,Zwt(i[g],f4e))&&(a=g,c=m);return a>=0&&(s[0]=t+c),a}function aEt(e){var t;return e.Db&64?hne(e):(t=new gu(rAe),!e.a||br(br((t.a+=' "',t),e.a),'"'),br(mm(br(mm(br(mm(br(mm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function cEt(e,t,i){var s,a,c,b,g;for(g=Fa(e.e.Dh(),t),a=f(e.g,124),s=0,b=0;bi?oke(e,i,"start index"):t<0||t>i?oke(t,i,"end index"):z6("end index (%s) must not be less than start index (%s)",se(ie(ho,1),on,1,5,[ot(t),ot(e)]))}function fEt(e,t){var i,s,a,c;for(s=0,a=e.length;s0&&dEt(e,c,i));t.p=0}function Rt(e){var t;this.c=new li,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,e.i?this.j=e.i:this.j=(t=f(kd(Mp),9),new Uu(t,f(Yf(t,t.length),9),0)),this.g=e.f}function HIn(e){var t,i,s,a;for(t=Q0(br(new gu("Predicates."),"and"),40),i=!0,a=new YT(e);a.b0?g[b-1]:Fe(Op,$g,10,0,0,1),a=g[b],_=b=0?e.ki(a):cke(e,s);else throw ne(new hn(X1+s.xe()+_I));else throw ne(new hn(uTt+t+fTt));else Yu(e,i,s)}function JEe(e){var t,i;if(i=null,t=!1,ve(e,211)&&(t=!0,i=f(e,211).a),t||ve(e,263)&&(t=!0,i=""+f(e,263).a),t||ve(e,493)&&(t=!0,i=""+f(e,493).a),!t)throw ne(new TY(hAe));return i}function YEe(e,t,i){var s,a,c,b,g,m;for(m=Fa(e.e.Dh(),t),s=0,g=e.i,a=f(e.g,124),b=0;b=e.d.b.c.length&&(t=new ca(e.d),t.p=s.p-1,lt(e.d.b,t),i=new ca(e.d),i.p=s.p,lt(e.d.b,i)),Oo(s,f(yt(e.d.b,s.p),30))}function eke(e,t,i){var s,a,c;if(!e.b[t.g]){for(e.b[t.g]=!0,s=i,!s&&(s=new U7),hr(s.b,t),c=e.a[t.g].Kc();c.Ob();)a=f(c.Pb(),65),a.b!=t&&eke(e,a.b,s),a.c!=t&&eke(e,a.c,s),hr(s.a,a);return s}return null}function zIn(e){switch(e.g){case 0:case 1:case 2:return ft(),bn;case 3:case 4:case 5:return ft(),jn;case 6:case 7:case 8:return ft(),wn;case 9:case 10:case 11:return ft(),_n;default:return ft(),Cl}}function KIn(e,t){var i;return e.c.length==0?!1:(i=$_t((Xt(0,e.c.length),f(e.c[0],18)).c.i),mu(),i==(n_(),Z2)||i==Q2?!0:t2(nl(new Wt(null,new Vt(e,16)),new eJe),new Jit(t)))}function wne(e,t){if(ve(t,207))return Wgn(e,f(t,27));if(ve(t,193))return Hgn(e,f(t,123));if(ve(t,452))return Bgn(e,f(t,166));throw ne(new hn(pAe+B1(new kc(se(ie(ho,1),on,1,5,[t])))))}function mEt(e,t,i){var s,a;if(this.f=e,s=f(En(e.b,t),260),a=s?s.a:0,m_e(i,a),i>=(a/2|0))for(this.e=s?s.c:null,this.d=a;i++0;)H_e(this);this.b=t,this.a=null}function qIn(e,t){var i,s;t.a?AOn(e,t):(i=f(BY(e.b,t.b),60),i&&i==e.a[t.b.f]&&i.a&&i.a!=t.b.a&&i.c.Fc(t.b),s=f(FY(e.b,t.b),60),s&&e.a[s.f]==t.b&&s.a&&s.a!=t.b.a&&t.b.c.Fc(s),OQ(e.b,t.b))}function yEt(e,t){var i,s;if(i=f(Ds(e.b,t),127),f(f(Hr(e.r,t),21),87).dc()){i.n.b=0,i.n.c=0;return}i.n.b=e.C.b,i.n.c=e.C.c,e.A.Hc((su(),Vw))&&V3t(e,t),s=S4n(e,t),$ne(e,t)==(a2(),c0)&&(s+=2*e.w),i.a.a=s}function vEt(e,t){var i,s;if(i=f(Ds(e.b,t),127),f(f(Hr(e.r,t),21),87).dc()){i.n.d=0,i.n.a=0;return}i.n.d=e.C.d,i.n.a=e.C.a,e.A.Hc((su(),Vw))&&z3t(e,t),s=_4n(e,t),$ne(e,t)==(a2(),c0)&&(s+=2*e.w),i.a.b=s}function XIn(e,t){var i,s,a,c;for(c=new st,s=new ee(t);s.as&&(pn(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return s>0||ti.a&&(s.Hc((bw(),S5))?a=(t.a-i.a)/2:s.Hc(E5)&&(a=t.a-i.a)),t.b>i.b&&(s.Hc((bw(),R5))?c=(t.b-i.b)/2:s.Hc(k5)&&(c=t.b-i.b)),FEe(e,a,c)}function CEt(e,t,i,s,a,c,b,g,m,_,k,I,D){ve(e.Cb,90)&&l_(Bc(f(e.Cb,90)),4),Ra(e,i),e.f=b,YC(e,g),ZC(e,m),JC(e,_),QC(e,k),Sg(e,I),eA(e,D),_g(e,!0),wg(e,a),e.Zk(c),dw(e,t),s!=null&&(e.i=null,LW(e,s))}function oke(e,t,i){if(e<0)return z6(kCt,se(ie(ho,1),on,1,5,[i,ot(e)]));if(t<0)throw ne(new hn(RCt+t));return z6("%s (%s) must not be greater than size (%s)",se(ie(ho,1),on,1,5,[i,ot(e),ot(t)]))}function ske(e,t,i,s,a,c){var b,g,m,_;if(b=s-i,b<7){UCn(t,i,s,c);return}if(m=i+a,g=s+a,_=m+(g-m>>1),ske(t,e,m,_,-a,c),ske(t,e,_,g,-a,c),c.Ne(e[_-1],e[_])<=0){for(;i=0?e.bi(c,i):Dke(e,a,i);else throw ne(new hn(X1+a.xe()+_I));else throw ne(new hn(uTt+t+fTt));else Qu(e,s,a,i)}function AEt(e){var t,i;if(e.f){for(;e.n>0;){if(t=f(e.k.Xb(e.n-1),76),i=t.Lk(),ve(i,102)&&f(i,19).Bb&Vl&&(!e.e||i.pk()!=$4||i.Lj()!=0)&&t.md()!=null)return!0;--e.n}return!1}else return e.n>0}function TEt(e){var t,i,s,a;if(i=f(e,54)._h(),i)try{if(s=null,t=dA((_1(),Nf),pRt(tAn(i))),t&&(a=t.ai(),a&&(s=a.Fl(nbn(i.e)))),s&&s!=e)return TEt(s)}catch(c){if(c=mi(c),!ve(c,63))throw ne(c)}return e}function f5n(e,t,i){var s,a,c;i.Ug("Remove overlaps",1),i.dh(t,gCe),s=f(Qe(t,(JS(),nE)),27),e.f=s,e.a=Lte(f(Qe(t,(H1(),S9)),300)),a=je(Qe(t,(Er(),Uw))),Q1e(e,(mn(a),a)),c=c_(s),Dxt(e,t,c,i),i.dh(t,XU)}function d5n(e){var t,i,s;if(wt(gt(Qe(e,(Er(),P9))))){for(s=new st,i=new kn(xn(Rb(e).a.Kc(),new O));Un(i);)t=f(On(i),74),ry(t)&&wt(gt(Qe(t,fce)))&&sn(s.c,t);return s}else return qt(),qt(),ps}function $Et(e){if(!e)return $lt(),f6t;var t=e.valueOf?e.valueOf():e;if(t!==e){var i=ose[typeof t];return i?i(t):XSe(typeof t)}else return e instanceof Array||e instanceof h.Array?new z1e(e):new IO(e)}function IEt(e,t,i){var s,a,c;switch(c=e.o,s=f(Ds(e.p,i),252),a=s.i,a.b=F6(s),a.a=j6(s),a.b=h.Math.max(a.b,c.a),a.b>c.a&&!t&&(a.b=c.a),a.c=-(a.b-c.a)/2,i.g){case 1:a.d=-a.a;break;case 3:a.d=c.b}Une(s),Gne(s)}function PEt(e,t,i){var s,a,c;switch(c=e.o,s=f(Ds(e.p,i),252),a=s.i,a.b=F6(s),a.a=j6(s),a.a=h.Math.max(a.a,c.b),a.a>c.b&&!t&&(a.a=c.b),a.d=-(a.a-c.b)/2,i.g){case 4:a.c=-a.b;break;case 2:a.c=c.a}Une(s),Gne(s)}function h5n(e,t){var i,s,a,c,b;if(!t.dc()){if(a=f(t.Xb(0),131),t.gc()==1){c3t(e,a,a,1,0,t);return}for(i=1;i0)try{a=Ru(t,Qo,Nr)}catch(c){throw c=mi(c),ve(c,130)?(s=c,ne(new mW(s))):ne(c)}return i=(!e.a&&(e.a=new hY(e)),e.a),a=0?f(Se(i,a),58):null}function w5n(e,t){if(e<0)return z6(kCt,se(ie(ho,1),on,1,5,["index",ot(e)]));if(t<0)throw ne(new hn(RCt+t));return z6("%s (%s) must be less than size (%s)",se(ie(ho,1),on,1,5,["index",ot(e),ot(t)]))}function m5n(e){var t,i,s,a,c;if(e==null)return Za;for(c=new cw(ds,"[","]"),i=e,s=0,a=i.length;s=0?e.Lh(i,!0,!0):iy(e,a,!0),160)),f(s,220).Zl(t);else throw ne(new hn(X1+t.xe()+_I))}function uke(e){var t,i;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),i=oo(h.Math.floor(h.Math.log(e)/.6931471805599453)),(!t||e!=h.Math.pow(2,i))&&++i,i):Xyt(Gl(e))}function O5n(e){var t,i,s,a,c,b,g;for(c=new Oh,i=new ee(e);i.a2&&g.e.b+g.j.b<=2&&(a=g,s=b),c.a.zc(a,c),a.q=s);return c}function N5n(e,t,i){i.Ug("Eades radial",1),i.dh(t,XU),e.d=f(Qe(t,(JS(),nE)),27),e.c=Ae(je(Qe(t,(H1(),oz)))),e.e=Lte(f(Qe(t,S9),300)),e.a=cAn(f(Qe(t,M5e),434)),e.b=T$n(f(Qe(t,I5e),354)),f$n(e),i.dh(t,XU)}function M5n(e,t){if(t.Ug("Target Width Setter",1),eh(e,(sh(),Gae)))zr(e,(Ep(),G_),je(Qe(e,Gae)));else throw ne(new rg("A target width has to be set if the TargetWidthWidthApproximator should be used."));t.Vg()}function LEt(e,t){var i,s,a;return s=new kb(e),ol(s,t),Xe(s,(nt(),SV),t),Xe(s,(pt(),Oi),(Co(),ya)),Xe(s,np,(_p(),wz)),W0(s,(gn(),Ui)),i=new ia,Sl(i,s),so(i,(ft(),wn)),a=new ia,Sl(a,s),so(a,_n),s}function jEt(e){switch(e.g){case 0:return new xY((Km(),g9));case 1:return new tnt;case 2:return new nnt;default:throw ne(new hn("No implementation is available for the crossing minimizer "+(e.f!=null?e.f:""+e.g)))}}function FEt(e,t){var i,s,a,c,b;for(e.c[t.p]=!0,lt(e.a,t),b=new ee(t.j);b.a=c)b.$b();else for(a=b.Kc(),s=0;s0?X0e():b<0&&UEt(e,t,-b),!0):!1}function j6(e){var t,i,s,a,c,b,g;if(g=0,e.b==0){for(b=RSt(e,!0),t=0,s=b,a=0,c=s.length;a0&&(g+=i,++t);t>1&&(g+=e.c*(t-1))}else g=Hlt(Bee(Wv(Br(ive(e.a),new So),new ql)));return g>0?g+e.n.d+e.n.a:0}function F6(e){var t,i,s,a,c,b,g;if(g=0,e.b==0)g=Hlt(Bee(Wv(Br(ive(e.a),new Zc),new bu)));else{for(b=xSt(e,!0),t=0,s=b,a=0,c=s.length;a0&&(g+=i,++t);t>1&&(g+=e.c*(t-1))}return g>0?g+e.n.b+e.n.c:0}function H5n(e){var t,i;if(e.c.length!=2)throw ne(new Us("Order only allowed for two paths."));t=(Xt(0,e.c.length),f(e.c[0],18)),i=(Xt(1,e.c.length),f(e.c[1],18)),t.d.i!=i.c.i&&(e.c.length=0,sn(e.c,i),sn(e.c,t))}function GEt(e,t,i){var s;for(GS(i,t.g,t.f),Wu(i,t.i,t.j),s=0;s<(!t.a&&(t.a=new qe($r,t,10,11)),t.a).i;s++)GEt(e,f(Se((!t.a&&(t.a=new qe($r,t,10,11)),t.a),s),27),f(Se((!i.a&&(i.a=new qe($r,i,10,11)),i.a),s),27))}function U5n(e,t){var i,s,a,c;for(c=f(Ds(e.b,t),127),i=c.a,a=f(f(Hr(e.r,t),21),87).Kc();a.Ob();)s=f(a.Pb(),117),s.c&&(i.a=h.Math.max(i.a,Mye(s.c)));if(i.a>0)switch(t.g){case 2:c.n.c=e.s;break;case 4:c.n.b=e.s}}function G5n(e,t){var i,s,a;return i=f(V(t,(od(),K3)),17).a-f(V(e,K3),17).a,i==0?(s=uo(Ho(f(V(e,(P1(),JM)),8)),f(V(e,FI),8)),a=uo(Ho(f(V(t,JM),8)),f(V(t,FI),8)),Qr(s.a*s.b,a.a*a.b)):i}function V5n(e,t){var i,s,a;return i=f(V(t,(Il(),ez)),17).a-f(V(e,ez),17).a,i==0?(s=uo(Ho(f(V(e,(ei(),y9)),8)),f(V(e,y4),8)),a=uo(Ho(f(V(t,y9),8)),f(V(t,y4),8)),Qr(s.a*s.b,a.a*a.b)):i}function VEt(e){var t,i;return i=new m1,i.a+="e_",t=jRn(e),t!=null&&(i.a+=""+t),e.c&&e.d&&(br((i.a+=" ",i),AH(e.c)),br(aa((i.a+="[",i),e.c.i),"]"),br((i.a+=hie,i),AH(e.d)),br(aa((i.a+="[",i),e.d.i),"]")),i.a}function zEt(e){switch(e.g){case 0:return new fnt;case 1:return new dnt;case 2:return new cnt;case 3:return new ant;default:throw ne(new hn("No implementation is available for the layout phase "+(e.f!=null?e.f:""+e.g)))}}function hke(e,t,i,s,a){var c;switch(c=0,a.g){case 1:c=h.Math.max(0,t.b+e.b-(i.b+s));break;case 3:c=h.Math.max(0,-e.b-s);break;case 2:c=h.Math.max(0,-e.a-s);break;case 4:c=h.Math.max(0,t.a+e.a-(i.a+s))}return c}function z5n(e,t,i){var s,a,c,b,g;if(i)for(a=i.a.length,s=new J0(a),g=(s.b-s.a)*s.c<0?(S1(),w0):new R1(s);g.Ob();)b=f(g.Pb(),17),c=vC(i,b.a),lAe in c.a||Coe in c.a?sNn(e,c,t):Rjn(e,c,t),k1n(f(En(e.b,nA(c)),74))}function pke(e){var t,i;switch(e.b){case-1:return!0;case 0:return i=e.t,i>1||i==-1?(e.b=-1,!0):(t=_f(e),t&&(Ss(),t.lk()==d$t)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function bke(e,t){var i,s,a,c;if(Ir(e),e.c!=0||e.a!=123)throw ne(new ar(dr((ir(),NTt))));if(c=t==112,s=e.d,i=nC(e.i,125,s),i<0)throw ne(new ar(dr((ir(),MTt))));return a=Vu(e.i,s,i),e.d=i+1,gwt(a,c,(e.e&512)==512)}function KEt(e){var t,i,s,a,c,b,g;if(s=e.a.c.length,s>0)for(b=e.c.d,g=e.d.d,a=Nh(uo(new tt(g.a,g.b),b),1/(s+1)),c=new tt(b.a,b.b),i=new ee(e.a);i.a=0&&s=0?e.Lh(i,!0,!0):iy(e,a,!0),160)),f(s,220).Wl(t);throw ne(new hn(X1+t.xe()+moe))}function J5n(){wwe();var e;return JDt?f(dA((_1(),Nf),Rf),2038):(kr(Tw,new wet),VDn(),e=f(ve(ua((_1(),Nf),Rf),560)?ua(Nf,Rf):new ubt,560),JDt=!0,zjn(e),Zjn(e),xr((gwe(),EOe),e,new PZe),Gs(Nf,Rf,e),e)}function Y5n(e,t){var i,s,a,c;e.j=-1,eu(e.e)?(i=e.i,c=e.i!=0,H7(e,t),s=new gb(e.e,3,e.c,null,t,i,c),a=t.zl(e.e,e.c,null),a=C2t(e,t,a),a?(a.nj(s),a.oj()):Dr(e.e,s)):(H7(e,t),a=t.zl(e.e,e.c,null),a&&a.oj())}function jH(e,t){var i,s,a;if(a=0,s=t[0],s>=e.length)return-1;for(i=(pn(s,e.length),e.charCodeAt(s));i>=48&&i<=57&&(a=a*10+(i-48),++s,!(s>=e.length));)i=(pn(s,e.length),e.charCodeAt(s));return s>t[0]?t[0]=s:a=-1,a}function Q5n(e){var t,i,s,a,c;return a=f(e.a,17).a,c=f(e.b,17).a,i=a,s=c,t=h.Math.max(h.Math.abs(a),h.Math.abs(c)),a<=0&&a==c?(i=0,s=c-1):a==-t&&c!=t?(i=c,s=a,c>=0&&++i):(i=-c,s=a),new io(ot(i),ot(s))}function Z5n(e,t,i,s){var a,c,b,g,m,_;for(a=0;a=0&&_>=0&&m=e.i)throw ne(new Hs(Toe+t+xw+e.i));if(i>=e.i)throw ne(new Hs($oe+i+xw+e.i));return s=e.g[i],t!=i&&(t>16),t=s>>16&16,i=16-t,e=e>>t,s=e-256,t=s>>16&8,i+=t,e<<=t,s=e-g_,t=s>>16&4,i+=t,e<<=t,s=e-Vh,t=s>>16&2,i+=t,e<<=t,s=e>>14,t=s&~(s>>1),i+2-t)}function t8n(e){s3();var t,i,s,a;for(MG=new st,Ase=new Fn,Cse=new st,t=(!e.a&&(e.a=new qe($r,e,10,11)),e.a),VLn(t),a=new Sn(t);a.e!=a.i.gc();)s=f(Cn(a),27),il(MG,s,0)==-1&&(i=new st,lt(Cse,i),Y_t(s,i));return Cse}function n8n(e,t,i){var s,a,c,b;e.a=i.b.d,ve(t,326)?(a=w2(f(t,74),!1,!1),c=jN(a),s=new Mrt(e),Vo(c,s),QN(c,a),t.of((Er(),Dy))!=null&&Vo(f(t.of(Dy),75),s)):(b=f(t,422),b.rh(b.nh()+e.a.a),b.sh(b.oh()+e.a.b))}function r8n(e,t){var i,s,a;for(a=new st,s=Hn(t.a,0);s.b!=s.d.c;)i=f(Bn(s),65),i.c.g==e.g&&Ne(V(i.b,(Il(),ip)))!==Ne(V(i.c,ip))&&!t2(new Wt(null,new Vt(a,16)),new aot(i))&&sn(a.c,i);return Hi(a,new BJe),a}function XEt(e,t,i){var s,a,c,b;return ve(t,153)&&ve(i,153)?(c=f(t,153),b=f(i,153),e.a[c.a][b.a]+e.a[b.a][c.a]):ve(t,250)&&ve(i,250)&&(s=f(t,250),a=f(i,250),s.a==a.a)?f(V(a.a,(od(),K3)),17).a:0}function JEt(e,t){var i,s,a,c,b,g,m,_;for(_=Ae(je(V(t,(pt(),e5)))),m=e[0].n.a+e[0].o.a+e[0].d.c+_,g=1;g=0?i:(g=Y$(uo(new tt(b.c+b.b/2,b.d+b.a/2),new tt(c.c+c.b/2,c.d+c.a/2))),-(SRt(c,b)-1)*g)}function o8n(e,t,i){var s;Mi(new Wt(null,(!i.a&&(i.a=new qe(ai,i,6,6)),new Vt(i.a,16))),new fut(e,t)),Mi(new Wt(null,(!i.n&&(i.n=new qe(Fs,i,1,7)),new Vt(i.n,16))),new dut(e,t)),s=f(Qe(i,(Er(),Dy)),75),s&&mSe(s,e,t)}function iy(e,t,i){var s,a,c;if(c=_2((gc(),qo),e.Dh(),t),c)return Ss(),f(c,69).xk()||(c=a3(Vs(qo,c))),a=(s=e.Ih(c),f(s>=0?e.Lh(s,!0,!0):iy(e,c,!0),160)),f(a,220).Sl(t,i);throw ne(new hn(X1+t.xe()+moe))}function gke(e,t,i,s){var a,c,b,g,m;if(a=e.d[t],a){if(c=a.g,m=a.i,s!=null){for(g=0;g=i&&(s=t,_=(m.c+m.a)/2,b=_-i,m.c<=_-i&&(a=new JQ(m.c,b),$m(e,s++,a)),g=_+i,g<=m.a&&(c=new JQ(g,m.a),Uv(s,e.c.length),m$(e.c,s,c)))}function ZEt(e,t,i){var s,a,c,b,g,m;if(!t.dc()){for(a=new li,m=t.Kc();m.Ob();)for(g=f(m.Pb(),40),xr(e.a,ot(g.g),ot(i)),b=(s=Hn(new sb(g).a.d,0),new OS(s));jO(b.a);)c=f(Bn(b.a),65).c,Ai(a,c,a.c.b,a.c);ZEt(e,a,i+1)}}function wke(e){var t;if(!e.c&&e.g==null)e.d=e.bj(e.f),zn(e,e.d),t=e.d;else{if(e.g==null)return!0;if(e.i==0)return!1;t=f(e.g[e.i-1],51)}return t==e.b&&null.Vm>=null.Um()?(WH(e),wke(e)):t.Ob()}function ekt(e){if(this.a=e,e.c.i.k==(gn(),Ui))this.c=e.c,this.d=f(V(e.c.i,(nt(),Dl)),64);else if(e.d.i.k==Ui)this.c=e.d,this.d=f(V(e.d.i,(nt(),Dl)),64);else throw ne(new hn("Edge "+e+" is not an external edge."))}function tkt(e,t){var i,s,a;a=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,3,a,e.b)),t?t!=e&&(Ra(e,t.zb),Tee(e,t.d),i=(s=t.c,s??t.zb),Iee(e,i==null||Ht(i,t.zb)?null:i)):(Ra(e,null),Tee(e,0),Iee(e,null))}function nkt(e,t){var i;this.e=(Nm(),nr(e),Nm(),I2e(e)),this.c=(nr(t),I2e(t)),vme(this.e.Rd().dc()==this.c.Rd().dc()),this.d=w_t(this.e),this.b=w_t(this.c),i=q0(ho,[rt,on],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=i,N3n(this)}function rkt(e){!rse&&(rse=rjn());var t=e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(i){return lSn(i)});return'"'+t+'"'}function mke(e,t,i,s,a,c){var b,g,m,_,k;if(a!=0)for(Ne(e)===Ne(i)&&(e=e.slice(t,t+a),t=0),m=i,g=t,_=t+a;g<_;)b=h.Math.min(g+1e4,_),a=b-g,k=e.slice(g,b),k.splice(0,0,s,c?a:0),Array.prototype.splice.apply(m,k),g=b,s+=a}function ikt(e){Ive();var t,i;for(this.b=L6t,this.c=F6t,this.g=(lct(),D6t),this.d=(Xi(),wh),this.a=e,Bke(this),i=new ee(e.b);i.a=b)throw ne(new Lv(t,b));return a=i[t],b==1?s=null:(s=Fe(Pce,Moe,424,b-1,0,1),oa(i,0,s,0,t),c=b-t-1,c>0&&oa(i,t+1,s,t,c)),rA(e,s),xEt(e,t,a),a}function okt(e){var t,i;if(e.f){for(;e.n0?c=y3(i):c=EN(y3(i))),zr(t,d4,c)}function d8n(e,t){var i;t.Ug("Partition preprocessing",1),i=f(fl(Br(El(Br(new Wt(null,new Vt(e.a,16)),new HKe),new UKe),new GKe),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),Mi(i.Oc(),new VKe),t.Vg()}function h8n(e,t){var i,s,a,c,b;for(b=e.j,t.a!=t.b&&Hi(b,new _Xe),a=b.c.length/2|0,s=0;s0&&XN(e,i,t),c):s.a!=null?(XN(e,t,i),-1):a.a!=null?(XN(e,i,t),1):0}function b8n(e,t){var i,s,a,c,b;for(a=t.b.b,e.a=Fe(lf,w_,15,a,0,1),e.b=Fe(Xc,Tp,28,a,16,1),b=Hn(t.b,0);b.b!=b.d.c;)c=f(Bn(b),40),e.a[c.g]=new li;for(s=Hn(t.a,0);s.b!=s.d.c;)i=f(Bn(s),65),e.a[i.b.g].Fc(i),e.a[i.c.g].Fc(i)}function ckt(e,t){var i,s,a,c;e.Pj()?(i=e.Ej(),c=e.Qj(),++e.j,e.qj(i,e.Zi(i,t)),s=e.Ij(3,null,t,i,c),e.Mj()?(a=e.Nj(t,null),a?(a.nj(s),a.oj()):e.Jj(s)):e.Jj(s)):(Zpt(e,t),e.Mj()&&(a=e.Nj(t,null),a&&a.oj()))}function yke(e,t,i){var s,a,c;e.Pj()?(c=e.Qj(),yN(e,t,i),s=e.Ij(3,null,i,t,c),e.Mj()?(a=e.Nj(i,null),e.Tj()&&(a=e.Uj(i,a)),a?(a.nj(s),a.oj()):e.Jj(s)):e.Jj(s)):(yN(e,t,i),e.Mj()&&(a=e.Nj(i,null),a&&a.oj()))}function FH(e,t){var i,s,a,c,b;for(b=Fa(e.e.Dh(),t),a=new Bj,i=f(e.g,124),c=e.i;--c>=0;)s=i[c],b.am(s.Lk())&&zn(a,s);!iCt(e,a)&&eu(e.e)&&Ux(e,t.Jk()?T1(e,6,t,(qt(),ps),null,-1,!1):T1(e,t.tk()?2:1,t,null,null,-1,!1))}function g8n(e,t){var i,s,a,c,b;return e.a==(cA(),UI)?!0:(c=t.a.c,i=t.a.c+t.a.b,!(t.j&&(s=t.A,b=s.c.c.a-s.o.a/2,a=c-(s.n.a+s.o.a),a>b)||t.q&&(s=t.C,b=s.c.c.a-s.o.a/2,a=s.n.a-i,a>b)))}function ukt(e){GZ();var t,i,s,a,c,b,g;for(i=new hg,a=new ee(e.e.b);a.a1?e.e*=Ae(e.a):e.f/=Ae(e.a),jxn(e),GAn(e),W7n(e),Xe(e.b,(T6(),NG),e.g)}function pkt(e,t,i){var s,a,c,b,g,m;for(s=0,m=i,t||(s=i*(e.c.length-1),m*=-1),c=new ee(e);c.a=0?e.Ah(null):e.Ph().Th(e,-1-t,null,null)),e.Bh(f(a,54),i),s&&s.oj(),e.vh()&&e.wh()&&i>-1&&Dr(e,new yo(e,9,i,c,a)),a):c}function Ske(e,t){var i,s,a,c,b;for(c=e.b.Ce(t),s=(i=e.a.get(c),i??Fe(ho,on,1,0,5,1)),b=0;b>5,a>=e.d)return e.e<0;if(i=e.a[a],t=1<<(t&31),e.e<0){if(s=Ayt(e),a>16)),15).dd(c),g0&&(!(ab(e.a.c)&&t.n.d)&&!(US(e.a.c)&&t.n.b)&&(t.g.d+=h.Math.max(0,s/2-.5)),!(ab(e.a.c)&&t.n.a)&&!(US(e.a.c)&&t.n.c)&&(t.g.a-=s-1))}function Ekt(e){var t,i,s,a,c;if(a=new st,c=mRt(e,a),t=f(V(e,(nt(),Ic)),10),t)for(s=new ee(t.j);s.a>t,c=e.m>>t|i<<22-t,a=e.l>>t|e.m<<22-t):t<44?(b=s?Ab:0,c=i>>t-22,a=e.m>>t-22|i<<44-t):(b=s?Ab:0,c=s?Vc:0,a=i>>t-44),Oa(a&Vc,c&Vc,b&Ab)}function kne(e){var t,i,s,a,c,b;for(this.c=new st,this.d=e,s=hi,a=hi,t=to,i=to,b=Hn(e,0);b.b!=b.d.c;)c=f(Bn(b),8),s=h.Math.min(s,c.a),a=h.Math.min(a,c.b),t=h.Math.max(t,c.a),i=h.Math.max(i,c.b);this.a=new Gu(s,a,t-s,i-a)}function Rkt(e,t){var i,s,a,c,b,g;for(c=new ee(e.b);c.a0&&ve(t,44)&&(e.a._j(),_=f(t,44),m=_.ld(),c=m==null?0:ti(m),b=Kme(e.a,c),i=e.a.d[b],i)){for(s=f(i.g,379),k=i.i,g=0;g=2)for(i=a.Kc(),t=je(i.Pb());i.Ob();)c=t,t=je(i.Pb()),s=h.Math.min(s,(mn(t),t-(mn(c),c)));return s}function j8n(e,t){var i,s,a;for(a=new st,s=Hn(t.a,0);s.b!=s.d.c;)i=f(Bn(s),65),i.b.g==e.g&&!Ht(i.b.c,KU)&&Ne(V(i.b,(Il(),ip)))!==Ne(V(i.c,ip))&&!t2(new Wt(null,new Vt(a,16)),new cot(i))&&sn(a.c,i);return Hi(a,new GJe),a}function F8n(e,t){var i,s,a;if(Ne(t)===Ne(nr(e)))return!0;if(!ve(t,15)||(s=f(t,15),a=e.gc(),a!=s.gc()))return!1;if(ve(s,59)){for(i=0;i0&&(a=i),b=new ee(e.f.e);b.a0?(t-=1,i-=1):s>=0&&a<0?(t+=1,i+=1):s>0&&a>=0?(t-=1,i+=1):(t+=1,i-=1),new io(ot(t),ot(i))}function Z8n(e,t){return e.ct.c?1:e.bt.b?1:e.a!=t.a?ti(e.a)-ti(t.a):e.d==(i6(),a5)&&t.d==l5?-1:e.d==l5&&t.d==a5?1:0}function Pkt(e,t){var i,s,a,c,b;return c=t.a,c.c.i==t.b?b=c.d:b=c.c,c.c.i==t.b?s=c.c:s=c.d,a=_An(e.a,b,s),a>0&&a0):a<0&&-a0):!1}function ePn(e,t,i,s){var a,c,b,g,m,_,k,I;for(a=(t-e.d)/e.c.c.length,c=0,e.a+=i,e.d=t,I=new ee(e.c);I.a>24;return b}function nPn(e){if(e.ze()){var t=e.c;t.Ae()?e.o="["+t.n:t.ze()?e.o="["+t.xe():e.o="[L"+t.xe()+";",e.b=t.we()+"[]",e.k=t.ye()+"[]";return}var i=e.j,s=e.d;s=s.split("/"),e.o=Ate(".",[i,Ate("$",s)]),e.b=Ate(".",[i,Ate(".",s)]),e.k=s[s.length-1]}function rPn(e,t){var i,s,a,c,b;for(b=null,c=new ee(e.e.a);c.a=0;t-=2)for(i=0;i<=t;i+=2)(e.b[i]>e.b[i+2]||e.b[i]===e.b[i+2]&&e.b[i+1]>e.b[i+3])&&(s=e.b[i+2],e.b[i+2]=e.b[i],e.b[i]=s,s=e.b[i+3],e.b[i+3]=e.b[i+1],e.b[i+1]=s);e.c=!0}}function sPn(e,t){var i,s,a,c,b,g,m,_,k;for(_=-1,k=0,b=e,g=0,m=b.length;g0&&++k;++_}return k}function rd(e){var t,i;return i=new gu(z0(e.Rm)),i.a+="@",br(i,(t=ti(e)>>>0,t.toString(16))),e.Vh()?(i.a+=" (eProxyURI: ",aa(i,e._h()),e.Kh()&&(i.a+=" eClass: ",aa(i,e.Kh())),i.a+=")"):e.Kh()&&(i.a+=" (eClass: ",aa(i,e.Kh()),i.a+=")"),i.a}function H6(e){var t,i,s,a;if(e.e)throw ne(new Us((cb(gse),Kre+gse.k+qre)));for(e.d==(Xi(),wh)&&lU(e,Js),i=new ee(e.a.a);i.a>24}return i}function cPn(e,t,i){var s,a,c;if(a=f(Ds(e.i,t),314),!a)if(a=new mmt(e.d,t,i),n3(e.i,t,a),D2e(t))h1n(e.a,t.c,t.b,a);else switch(c=zIn(t),s=f(Ds(e.p,c),252),c.g){case 1:case 3:a.j=!0,AY(s,t.b,a);break;case 4:case 2:a.k=!0,AY(s,t.c,a)}return a}function uPn(e,t){var i,s,a,c,b,g,m,_,k;for(m=pp(e.c-e.b&e.a.length-1),_=null,k=null,c=new Z$(e);c.a!=c.b;)a=f(ZW(c),10),i=(g=f(V(a,(nt(),jd)),12),g?g.i:null),s=(b=f(V(a,Af),12),b?b.i:null),(_!=i||k!=s)&&(bkt(m,t),_=i,k=s),sn(m.c,a);bkt(m,t)}function fPn(e,t,i,s){var a,c,b,g,m,_;if(g=new Bj,m=Fa(e.e.Dh(),t),a=f(e.g,124),Ss(),f(t,69).xk())for(b=0;b=0)return a;for(c=1,g=new ee(t.j);g.a=0)return a;for(c=1,g=new ee(t.j);g.a0&&t.Ne((Xt(a-1,e.c.length),f(e.c[a-1],10)),c)>0;)Ku(e,a,(Xt(a-1,e.c.length),f(e.c[a-1],10))),--a;Xt(a,e.c.length),e.c[a]=c}i.a=new Fn,i.b=new Fn}function dPn(e,t,i){var s,a,c,b,g,m,_,k;for(k=(s=f(t.e&&t.e(),9),new Uu(s,f(Yf(s,s.length),9),0)),m=d_(i,"[\\[\\]\\s,]+"),c=m,b=0,g=c.length;b=0?(t||(t=new a$,s>0&&Ms(t,(Mo(0,s,e.length),e.substr(0,s)))),t.a+="\\",hC(t,i&Ji)):t&&hC(t,i&Ji);return t?t.a:e}function pPn(e){var t,i,s;for(i=new ee(e.a.a.b);i.a0&&(!(ab(e.a.c)&&t.n.d)&&!(US(e.a.c)&&t.n.b)&&(t.g.d-=h.Math.max(0,s/2-.5)),!(ab(e.a.c)&&t.n.a)&&!(US(e.a.c)&&t.n.c)&&(t.g.a+=h.Math.max(0,s-1)))}function Wkt(e,t,i){var s,a;if((e.c-e.b&e.a.length-1)==2)t==(ft(),bn)||t==_n?(RW(f(g6(e),15),(ku(),Dp)),RW(f(g6(e),15),a0)):(RW(f(g6(e),15),(ku(),a0)),RW(f(g6(e),15),Dp));else for(a=new Z$(e);a.a!=a.b;)s=f(ZW(a),15),RW(s,i)}function bPn(e,t){var i,s,a,c,b,g,m;for(a=aC(new g0e(e)),g=new No(a,a.c.length),c=aC(new g0e(t)),m=new No(c,c.c.length),b=null;g.b>0&&m.b>0&&(i=(In(g.b>0),f(g.a.Xb(g.c=--g.b),27)),s=(In(m.b>0),f(m.a.Xb(m.c=--m.b),27)),i==s);)b=i;return b}function Hkt(e,t,i){var s,a,c,b;Ugt(e,t)>Ugt(e,i)?(s=Rl(i,(ft(),_n)),e.d=s.dc()?0:nZ(f(s.Xb(0),12)),b=Rl(t,wn),e.b=b.dc()?0:nZ(f(b.Xb(0),12))):(a=Rl(i,(ft(),wn)),e.d=a.dc()?0:nZ(f(a.Xb(0),12)),c=Rl(t,_n),e.b=c.dc()?0:nZ(f(c.Xb(0),12)))}function Ukt(e,t){var i,s,a,c;for(i=e.o.a,c=f(f(Hr(e.r,t),21),87).Kc();c.Ob();)a=f(c.Pb(),117),a.e.a=i*Ae(je(a.b.of(IG))),a.e.b=(s=a.b,s.pf((Er(),qc))?s.ag()==(ft(),bn)?-s.Mf().b-Ae(je(s.of(qc))):Ae(je(s.of(qc))):s.ag()==(ft(),bn)?-s.Mf().b:0)}function gPn(e,t){var i,s,a,c;for(t.Ug("Self-Loop pre-processing",1),s=new ee(e.a);s.ae.c));b++)a.a>=e.s&&(c<0&&(c=b),g=b);return m=(e.s+e.c)/2,c>=0&&(s=iNn(e,t,c,g),m=ngn((Xt(s,t.c.length),f(t.c[s],339))),c8n(t,s,i)),m}function Zn(e,t,i){var s,a,c,b,g,m,_;for(b=(c=new D1e,c),uSe(b,(mn(t),t)),_=(!b.b&&(b.b=new nu((Kt(),_s),Ll,b)),b.b),m=1;m0&&eDn(this,a)}function Oke(e,t,i,s,a,c){var b,g,m;if(!a[t.a]){for(a[t.a]=!0,b=s,!b&&(b=new cW),lt(b.e,t),m=c[t.a].Kc();m.Ob();)g=f(m.Pb(),290),!(g.d==i||g.c==i)&&(g.c!=t&&Oke(e,g.c,t,b,a,c),g.d!=t&&Oke(e,g.d,t,b,a,c),lt(b.c,g),eo(b.d,g.b));return b}return null}function yPn(e){var t,i,s,a,c,b,g;for(t=0,a=new ee(e.e);a.a=2}function vPn(e,t,i,s,a){var c,b,g,m,_,k;for(c=e.c.d.j,b=f(tf(i,0),8),k=1;k1||(t=ii(dd,se(ie(Ps,1),Je,95,0,[Nb,hd])),lN(JB(t,e))>1)||(s=ii(bd,se(ie(Ps,1),Je,95,0,[Lp,$f])),lN(JB(s,e))>1))}function Nke(e,t,i){var s,a,c;for(c=new ee(e.t);c.a0&&(s.b.n-=s.c,s.b.n<=0&&s.b.u>0&&hr(t,s.b));for(a=new ee(e.i);a.a0&&(s.a.u-=s.c,s.a.u<=0&&s.a.n>0&&hr(i,s.a))}function WH(e){var t,i,s,a,c;if(e.g==null&&(e.d=e.bj(e.f),zn(e,e.d),e.c))return c=e.f,c;if(t=f(e.g[e.i-1],51),a=t.Pb(),e.e=t,i=e.bj(a),i.Ob())e.d=i,zn(e,i);else for(e.d=null;!t.Ob()&&(Ci(e.g,--e.i,null),e.i!=0);)s=f(e.g[e.i-1],51),t=s;return a}function SPn(e,t){var i,s,a,c,b,g;if(s=t,a=s.Lk(),xb(e.e,a)){if(a.Si()&&iW(e,a,s.md()))return!1}else for(g=Fa(e.e.Dh(),a),i=f(e.g,124),c=0;c1||i>1)return 2;return t+i==1?2:0}function Uc(e,t){var i,s,a,c,b,g;return c=e.a*Ure+e.b*1502,g=e.b*Ure+11,i=h.Math.floor(g*bM),c+=i,g-=i*iRe,c%=iRe,e.a=c,e.b=g,t<=24?h.Math.floor(e.a*h4e[t]):(a=e.a*(1<=2147483648&&(s-=4294967296),s)}function qkt(e,t,i){var s,a,c,b,g,m,_;for(c=new st,_=new li,b=new li,GMn(e,_,b,t),SDn(e,_,b,t,i),m=new ee(e);m.as.b.g&&sn(c.c,s);return c}function APn(e,t,i){var s,a,c,b,g,m;for(g=e.c,b=(i.q?i.q:(qt(),qt(),Ip)).vc().Kc();b.Ob();)c=f(b.Pb(),44),s=!Xx(Br(new Wt(null,new Vt(g,16)),new Bx(new iut(t,c)))).Bd((K0(),z3)),s&&(m=c.md(),ve(m,4)&&(a=F2e(m),a!=null&&(m=a)),t.qf(f(c.ld(),149),m))}function TPn(e,t,i){var s,a;if(T7(e.b),Cd(e.b,(SN(),uz),(h$(),C9)),Cd(e.b,fz,t.g),Cd(e.b,dz,t.a),e.a=tM(e.b,t),i.Ug("Compaction by shrinking a tree",e.a.c.length),t.i.c.length>1)for(a=new ee(e.a);a.a=0?e.Lh(s,!0,!0):iy(e,c,!0),160)),f(a,220).Xl(t,i)}else throw ne(new hn(X1+t.xe()+_I))}function HH(e,t){var i,s,a,c,b;if(t){for(c=ve(e.Cb,90)||ve(e.Cb,102),b=!c&&ve(e.Cb,331),s=new Sn((!t.a&&(t.a=new U$(t,Os,t)),t.a));s.e!=s.i.gc();)if(i=f(Cn(s),89),a=tU(i),c?ve(a,90):b?ve(a,156):a)return a;return c?(Kt(),Mf):(Kt(),vh)}else return null}function $Pn(e,t){var i,s,a,c;for(t.Ug("Resize child graph to fit parent.",1),s=new ee(e.b);s.a=2*t&<(i,new JQ(b[s-1]+t,b[s]-t));return i}function OPn(e,t,i){var s,a,c,b,g,m,_,k;if(i)for(c=i.a.length,s=new J0(c),g=(s.b-s.a)*s.c<0?(S1(),w0):new R1(s);g.Ob();)b=f(g.Pb(),17),a=vC(i,b.a),a&&(m=cEn(e,(_=(v1(),k=new M0e,k),t&&Lke(_,t),_),a),NC(m,db(a,Zh)),OH(a,m),lke(a,m),Yee(e,a,m))}function UH(e){var t,i,s,a,c,b;if(!e.j){if(b=new vZe,t=B5,c=t.a.zc(e,t),c==null){for(s=new Sn(rl(e));s.e!=s.i.gc();)i=f(Cn(s),29),a=UH(i),Ii(b,a),zn(b,i);t.a.Bc(e)!=null}Qv(b),e.j=new WS((f(Se(Ve((C1(),un).o),11),19),b.i),b.g),Bc(e).b&=-33}return e.j}function NPn(e){var t,i,s,a;if(e==null)return null;if(s=ha(e,!0),a=FM.length,Ht(s.substr(s.length-a,a),FM)){if(i=s.length,i==4){if(t=(pn(0,s.length),s.charCodeAt(0)),t==43)return UOe;if(t==45)return wLt}else if(i==3)return UOe}return new k0e(s)}function MPn(e){var t,i,s;return i=e.l,i&i-1||(s=e.m,s&s-1)||(t=e.h,t&t-1)||t==0&&s==0&&i==0?-1:t==0&&s==0&&i!=0?eSe(i):t==0&&s!=0&&i==0?eSe(s)+22:t!=0&&s==0&&i==0?eSe(t)+44:-1}function g2(e,t){var i,s,a,c,b;for(a=t.a&e.f,c=null,s=e.b[a];;s=s.b){if(s==t){c?c.b=t.b:e.b[a]=t.b;break}c=s}for(b=t.f&e.f,c=null,i=e.c[b];;i=i.d){if(i==t){c?c.d=t.d:e.c[b]=t.d;break}c=i}t.e?t.e.c=t.c:e.a=t.c,t.c?t.c.e=t.e:e.e=t.e,--e.i,++e.g}function DPn(e,t){var i;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,!t.e&&!t.c?(i=f(mf(f(f3(e.b,t.a),260)),260),i.a=0,++e.c):(i=f(mf(f(En(e.b,t.a),260)),260),--i.a,t.e?t.e.c=t.c:i.b=f(mf(t.c),511),t.c?t.c.e=t.e:i.c=f(mf(t.e),511)),--e.d}function LPn(e){var t,i,s,a,c,b,g,m,_,k;for(i=e.o,t=e.p,b=Nr,a=Qo,g=Nr,c=Qo,_=0;_0),c.a.Xb(c.c=--c.b),Dv(c,a),In(c.b3&&vp(e,0,t-3))}function FPn(e){var t,i,s,a;return Ne(V(e,(pt(),M_)))===Ne((vb(),Wg))?!e.e&&Ne(V(e,c9))!==Ne((BC(),r9)):(s=f(V(e,Ile),299),a=wt(gt(V(e,Ple)))||Ne(V(e,YI))===Ne((u6(),n9)),t=f(V(e,S6e),17).a,i=e.a.c.length,!a&&s!=(BC(),r9)&&(t==0||t>i))}function BPn(e){var t,i;for(i=0;i0);i++);if(i>0&&i0);t++);return t>0&&i>16!=6&&t){if(oA(e,t))throw ne(new hn(SI+fkt(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?sEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=S3(t,e,6,s)),s=Gme(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,6,t,t))}function GH(e,t){var i,s;if(t!=e.Cb||e.Db>>16!=3&&t){if(oA(e,t))throw ne(new hn(SI+QRt(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?uEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=S3(t,e,12,s)),s=Vme(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,3,t,t))}function Lke(e,t){var i,s;if(t!=e.Cb||e.Db>>16!=9&&t){if(oA(e,t))throw ne(new hn(SI+J3t(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?aEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=S3(t,e,9,s)),s=zme(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,9,t,t))}function hA(e){var t,i,s,a,c;if(s=_f(e),c=e.j,c==null&&s)return e.Jk()?null:s.ik();if(ve(s,156)){if(i=s.jk(),i&&(a=i.wi(),a!=e.i)){if(t=f(s,156),t.nk())try{e.g=a.ti(t,c)}catch(b){if(b=mi(b),ve(b,82))e.g=null;else throw ne(b)}e.i=a}return e.g}return null}function Qkt(e){var t;return t=new st,lt(t,new Wk(new tt(e.c,e.d),new tt(e.c+e.b,e.d))),lt(t,new Wk(new tt(e.c,e.d),new tt(e.c,e.d+e.a))),lt(t,new Wk(new tt(e.c+e.b,e.d+e.a),new tt(e.c+e.b,e.d))),lt(t,new Wk(new tt(e.c+e.b,e.d+e.a),new tt(e.c,e.d+e.a))),t}function WPn(e){var t,i,s;if(e==null)return Za;try{return dl(e)}catch(a){if(a=mi(a),ve(a,103))return t=a,s=z0(ou(e))+"@"+(i=(lb(),j2e(e)>>>0),i.toString(16)),t4n(BRn(),(Zx(),"Exception during lenientFormat for "+s),t),"<"+s+" threw "+z0(t.Rm)+">";throw ne(a)}}function HPn(e,t,i){var s,a,c;for(c=t.a.ec().Kc();c.Ob();)a=f(c.Pb(),74),s=f(En(e.b,a),272),!s&&(di(Sp(a))==di(F1(a))?TOn(e,a,i):Sp(a)==di(F1(a))?En(e.c,a)==null&&En(e.b,F1(a))!=null&&$xt(e,a,i,!1):En(e.d,a)==null&&En(e.b,Sp(a))!=null&&$xt(e,a,i,!0))}function UPn(e,t){var i,s,a,c,b,g,m;for(a=e.Kc();a.Ob();)for(s=f(a.Pb(),10),g=new ia,Sl(g,s),so(g,(ft(),_n)),Xe(g,(nt(),EV),(cn(),!0)),b=t.Kc();b.Ob();)c=f(b.Pb(),10),m=new ia,Sl(m,c),so(m,wn),Xe(m,EV,!0),i=new Fm,Xe(i,EV,!0),rs(i,g),xo(i,m)}function GPn(e,t,i,s){var a,c,b,g;a=D_t(e,t,i),c=D_t(e,i,t),b=f(En(e.c,t),118),g=f(En(e.c,i),118),a1)for(t=xm((i=new V0,++e.b,i),e.d),g=Hn(c,0);g.b!=g.d.c;)b=f(Bn(g),125),id(qf(Kf(Xf(zf(new gf,1),0),t),b))}function KPn(e,t,i){var s,a,c,b,g;for(i.Ug("Breaking Point Removing",1),e.a=f(V(t,(pt(),Ob)),223),c=new ee(t.b);c.a>16!=11&&t){if(oA(e,t))throw ne(new hn(SI+r3e(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?fEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=S3(t,e,10,s)),s=tye(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,11,t,t))}function qPn(e){var t,i,s,a;for(s=new aw(new U0(e.b).a);s.b;)i=Xm(s),a=f(i.ld(),12),t=f(i.md(),10),Xe(t,(nt(),Ur),a),Xe(a,Ic,t),Xe(a,s9,(cn(),!0)),so(a,f(V(t,Dl),64)),V(t,Dl),Xe(a.i,(pt(),Oi),(Co(),A4)),f(V(Go(a.i),ma),21).Fc((As(),a4))}function XPn(e,t,i){var s,a,c,b,g,m;if(c=0,b=0,e.c)for(m=new ee(e.d.i.j);m.ac.a?-1:a.am){for(k=e.d,e.d=Fe(pOe,EAe,66,2*m+4,0,1),c=0;c=9223372036854776e3?(xC(),GAe):(a=!1,e<0&&(a=!0,e=-e),s=0,e>=yw&&(s=oo(e/yw),e-=s*yw),i=0,e>=N3&&(i=oo(e/N3),e-=i*N3),t=oo(e),c=Oa(t,i,s),a&&Qee(c),c)}function sOn(e){var t,i,s,a,c;if(c=new st,Ma(e.b,new xrt(c)),e.b.c.length=0,c.c.length!=0){for(t=(Xt(0,c.c.length),f(c.c[0],82)),i=1,s=c.c.length;i=-t&&s==t?new io(ot(i-1),ot(s)):new io(ot(i),ot(s-1))}function t3t(){return ss(),se(ie(mFn,1),Je,81,0,[ITe,ATe,j2,Gse,JTe,KG,rV,$_,qTe,FTe,zTe,T_,XTe,DTe,YTe,STe,YG,Vse,VG,eV,ZTe,ZG,ETe,KTe,e$e,tV,QTe,zG,OTe,GTe,UTe,iV,xTe,GG,XG,RTe,YA,WTe,LTe,VTe,BI,TTe,CTe,HTe,jTe,JG,nV,kTe,QG,BTe,qG,NTe,PTe,ZM,UG,MTe,$Te])}function cOn(e,t,i){e.d=0,e.b=0,t.k==(gn(),wa)&&i.k==wa&&f(V(t,(nt(),Ur)),10)==f(V(i,Ur),10)&&(mee(t).j==(ft(),bn)?Hkt(e,t,i):Hkt(e,i,t)),t.k==wa&&i.k==vo?mee(t).j==(ft(),bn)?e.d=1:e.b=1:i.k==wa&&t.k==vo&&(mee(i).j==(ft(),bn)?e.b=1:e.d=1),K4n(e,t,i)}function uOn(e){var t,i,s,a,c,b,g,m,_,k,I;return I=MEe(e),t=e.a,m=t!=null,m&&cC(I,"category",e.a),a=BO(new H0(e.d)),b=!a,b&&(_=new B0,Id(I,"knownOptions",_),i=new lst(_),Vo(new H0(e.d),i)),c=BO(e.g),g=!c,g&&(k=new B0,Id(I,"supportedFeatures",k),s=new ast(k),Vo(e.g,s)),I}function fOn(e){var t,i,s,a,c,b,g,m,_;for(s=!1,t=336,i=0,c=new Gdt(e.length),g=e,m=0,_=g.length;m<_;++m)b=g[m],s=s|(L1(b),!1),a=(A1(b),b.a),lt(c.a,nr(a)),t&=a.yd(),i=Txn(i,a.zd());return f(f(Fpt(new Wt(null,une(new Vt((Nm(),I2e(c.a)),16),new Q,t,i)),new Znt(e)),687),848)}function dOn(e,t){var i;e.d&&(t.c!=e.e.c||nRn(e.e.b,t.b))&&(lt(e.f,e.d),e.a=e.d.c+e.d.b,e.d=null,e.e=null),Cgn(t.b)?e.c=t:e.b=t,(t.b==(WC(),vy)&&!t.a||t.b==x_&&t.a||t.b==L2&&t.a||t.b==C_&&!t.a)&&e.c&&e.b&&(i=new Gu(e.a,e.c.d,t.c-e.a,e.b.d-e.c.d),e.d=i,e.e=t)}function G6(e){var t;if(wlt.call(this),this.i=new mQe,this.g=e,this.f=f(e.e&&e.e(),9).length,this.f==0)throw ne(new hn("There must be at least one phase in the phase enumeration."));this.c=(t=f(kd(this.g),9),new Uu(t,f(Yf(t,t.length),9),0)),this.a=new Ki,this.b=new Fn}function Wke(e,t){var i,s;if(t!=e.Cb||e.Db>>16!=7&&t){if(oA(e,t))throw ne(new hn(SI+aEt(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?lEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=f(t,54).Rh(e,1,z9,s)),s=qye(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,7,t,t))}function n3t(e,t){var i,s;if(t!=e.Cb||e.Db>>16!=3&&t){if(oA(e,t))throw ne(new hn(SI+s_t(e)));s=null,e.Cb&&(s=(i=e.Db>>16,i>=0?cEe(e,s):e.Cb.Th(e,-1-i,null,s))),t&&(s=f(t,54).Rh(e,0,q9,s)),s=Xye(e,t,s),s&&s.oj()}else e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,3,t,t))}function Tne(e,t){pA();var i,s,a,c,b,g,m,_,k;return t.d>e.d&&(g=e,e=t,t=g),t.d<63?ZOn(e,t):(b=(e.d&-2)<<4,_=p_e(e,b),k=p_e(t,b),s=Xne(e,u3(_,b)),a=Xne(t,u3(k,b)),m=Tne(_,k),i=Tne(s,a),c=Tne(Xne(_,s),Xne(a,k)),c=nre(nre(c,m),i),c=u3(c,b),m=u3(m,b<<1),nre(nre(m,c),i))}function Ag(){Ag=F,zle=new LS(s4t,0),aIe=new LS("LONGEST_PATH",1),cIe=new LS("LONGEST_PATH_SOURCE",2),Vle=new LS("COFFMAN_GRAHAM",3),lIe=new LS(mie,4),uIe=new LS("STRETCH_WIDTH",5),WV=new LS("MIN_WIDTH",6),g4=new LS("BF_MODEL_ORDER",7),w4=new LS("DF_MODEL_ORDER",8)}function hOn(e,t,i){var s,a,c,b,g;for(b=_6(e,i),g=Fe(Op,$g,10,t.length,0,1),s=0,c=b.Kc();c.Ob();)a=f(c.Pb(),12),wt(gt(V(a,(nt(),s9))))&&(g[s++]=f(V(a,Ic),10));if(s=0;c+=i?1:-1)b=b|t.c.lg(m,c,i,s&&!wt(gt(V(t.j,(nt(),t0))))&&!wt(gt(V(t.j,(nt(),z2))))),b=b|t.q.ug(m,c,i),b=b|U3t(e,m[c],i,s);return Zi(e.c,t),b}function KH(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(k=S1t(e.j),I=0,D=k.length;I1&&(e.a=!0),zyn(f(i.b,68),Mr(Ho(f(t.b,68).c),Nh(uo(Ho(f(i.b,68).a),f(t.b,68).a),a))),Tgt(e,t),r3t(e,i)}function i3t(e){var t,i,s,a,c,b,g;for(c=new ee(e.a.a);c.a0&&c>0?b.p=t++:s>0?b.p=i++:c>0?b.p=a++:b.p=i++}qt(),Hi(e.j,new LKe)}function mOn(e){var t,i;i=null,t=f(yt(e.g,0),18);do{if(i=t.d.i,ri(i,(nt(),Af)))return f(V(i,Af),12).i;if(i.k!=(gn(),ji)&&Un(new kn(xn(Wi(i).a.Kc(),new O))))t=f(On(new kn(xn(Wi(i).a.Kc(),new O))),18);else if(i.k!=ji)return null}while(i&&i.k!=(gn(),ji));return i}function yOn(e,t){var i,s,a,c,b,g,m,_,k;for(g=t.j,b=t.g,m=f(yt(g,g.c.length-1),113),k=(Xt(0,g.c.length),f(g.c[0],113)),_=Jte(e,b,m,k),c=1;c_&&(m=i,k=a,_=s);t.a=k,t.c=m}function vOn(e,t,i){var s,a,c,b,g,m,_;for(_=new sg(new Vit(e)),b=se(ie(M5t,1),$At,12,0,[t,i]),g=0,m=b.length;gm-e.b&&gm-e.a&&g0?c.a?(g=c.b.Mf().a,i>g&&(a=(i-g)/2,c.d.b=a,c.d.c=a)):c.d.c=e.s+i:V$(e.u)&&(s=DEe(c.b),s.c<0&&(c.d.b=-s.c),s.c+s.b>c.b.Mf().a&&(c.d.c=s.c+s.b-c.b.Mf().a))}function LOn(e,t){var i,s,a,c,b;b=new st,i=t;do c=f(En(e.b,i),131),c.B=i.c,c.D=i.d,sn(b.c,c),i=f(En(e.k,i),18);while(i);return s=(Xt(0,b.c.length),f(b.c[0],131)),s.j=!0,s.A=f(s.d.a.ec().Kc().Pb(),18).c.i,a=f(yt(b,b.c.length-1),131),a.q=!0,a.C=f(a.d.a.ec().Kc().Pb(),18).d.i,b}function jOn(e){var t,i;if(t=f(e.a,17).a,i=f(e.b,17).a,t>=0){if(t==i)return new io(ot(-t-1),ot(-t-1));if(t==-i)return new io(ot(-t),ot(i+1))}return h.Math.abs(t)>h.Math.abs(i)?t<0?new io(ot(-t),ot(i)):new io(ot(-t),ot(i+1)):new io(ot(t+1),ot(i))}function FOn(e){var t,i;i=f(V(e,(pt(),Ha)),171),t=f(V(e,(nt(),Iw)),311),i==(ef(),n0)?(Xe(e,Ha,a9),Xe(e,Iw,(wb(),G2))):i==O_?(Xe(e,Ha,a9),Xe(e,Iw,(wb(),J3))):t==(wb(),G2)?(Xe(e,Ha,n0),Xe(e,Iw,i9)):t==J3&&(Xe(e,Ha,O_),Xe(e,Iw,i9))}function qH(){qH=F,w9=new EJe,q7t=gr(new Ki,(Yo(),sa),(ss(),VG)),Y7t=hc(gr(new Ki,sa,ZG),ll,QG),Q7t=Hh(Hh(b$(hc(gr(new Ki,cd,rV),ll,nV),ga),tV),iV),X7t=hc(gr(gr(gr(new Ki,Pp,KG),ga,XG),ga,YA),ll,qG),J7t=hc(gr(gr(new Ki,ga,YA),ga,GG),ll,UG)}function V6(){V6=F,tNt=gr(hc(new Ki,(Yo(),ll),(ss(),NTe)),sa,VG),oNt=Hh(Hh(b$(hc(gr(new Ki,cd,rV),ll,nV),ga),tV),iV),nNt=hc(gr(gr(gr(new Ki,Pp,KG),ga,XG),ga,YA),ll,qG),iNt=gr(gr(new Ki,sa,ZG),ll,QG),rNt=hc(gr(gr(new Ki,ga,YA),ga,GG),ll,UG)}function BOn(e,t,i,s,a){var c,b;(!ms(t)&&t.c.i.c==t.d.i.c||!lyt(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])),i))&&!ms(t)&&(t.c==a?rC(t.a,0,new us(i)):hr(t.a,new us(i)),s&&!Rd(e.a,i)&&(b=f(V(t,(pt(),Xs)),75),b||(b=new cc,Xe(t,Xs,b)),c=new us(i),Ai(b,c,b.c.b,b.c),Zi(e.a,c)))}function l3t(e,t){var i,s,a,c;for(c=tr(os(xp,mp(tr(os(t==null?0:ti(t),Cp)),15))),i=c&e.b.length-1,a=null,s=e.b[i];s;a=s,s=s.a)if(s.d==c&&Lh(s.i,t))return a?a.a=s.a:e.b[i]=s.a,jlt(f(mf(s.c),604),f(mf(s.f),604)),MO(f(mf(s.b),227),f(mf(s.e),227)),--e.f,++e.e,!0;return!1}function WOn(e){var t,i;for(i=new kn(xn(go(e).a.Kc(),new O));Un(i);)if(t=f(On(i),18),t.c.i.k!=(gn(),ea))throw ne(new rg(wie+$N(e)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function HOn(e,t,i){var s,a,c,b,g,m,_;if(a=f_t(e.Db&254),a==0)e.Eb=i;else{if(a==1)g=Fe(ho,on,1,2,5,1),c=Xte(e,t),c==0?(g[0]=i,g[1]=e.Eb):(g[0]=e.Eb,g[1]=i);else for(g=Fe(ho,on,1,a+1,5,1),b=ow(e.Eb),s=2,m=0,_=0;s<=128;s<<=1)s==t?g[_++]=i:e.Db&s&&(g[_++]=b[m++]);e.Eb=g}e.Db|=t}function a3t(e,t,i){var s,a,c,b;for(this.b=new st,a=0,s=0,b=new ee(e);b.a0&&(c=f(yt(this.b,0),176),a+=c.o,s+=c.p),a*=2,s*=2,t>1?a=oo(h.Math.ceil(a*t)):s=oo(h.Math.ceil(s/t)),this.a=new A2e(a,s)}function c3t(e,t,i,s,a,c){var b,g,m,_,k,I,D,W,U,z,X,oe;for(k=s,t.j&&t.o?(W=f(En(e.f,t.A),60),z=W.d.c+W.d.b,--k):z=t.a.c+t.a.b,I=a,i.q&&i.o?(W=f(En(e.f,i.C),60),_=W.d.c,++I):_=i.a.c,X=_-z,m=h.Math.max(2,I-k),g=X/m,U=z+g,D=k;D=0;b+=a?1:-1){for(g=t[b],m=s==(ft(),_n)?a?Rl(g,s):Zu(Rl(g,s)):a?Zu(Rl(g,s)):Rl(g,s),c&&(e.c[g.p]=m.gc()),I=m.Kc();I.Ob();)k=f(I.Pb(),12),e.d[k.p]=_++;eo(i,m)}}function f3t(e,t,i){var s,a,c,b,g,m,_,k;for(c=Ae(je(e.b.Kc().Pb())),_=Ae(je(FRn(t.b))),s=Nh(Ho(e.a),_-i),a=Nh(Ho(t.a),i-c),k=Mr(s,a),Nh(k,1/(_-c)),this.a=k,this.b=new st,g=!0,b=e.b.Kc(),b.Pb();b.Ob();)m=Ae(je(b.Pb())),g&&m-i>Yie&&(this.b.Fc(i),g=!1),this.b.Fc(m);g&&this.b.Fc(i)}function UOn(e){var t,i,s,a;if(lNn(e,e.n),e.d.c.length>0){for(s$(e.c);Rke(e,f(Z(new ee(e.e.a)),125))>5,t&=31,s>=e.d)return e.e<0?(Uh(),w6t):(Uh(),MI);if(c=e.d-s,a=Fe(Xn,wr,28,c+1,15,1),NIn(a,c,e.a,s,t),e.e<0){for(i=0;i0&&e.a[i]<<32-t){for(i=0;i=0?!1:(i=_2((gc(),qo),a,t),i?(s=i.Ik(),(s>1||s==-1)&&Lm(Vs(qo,i))!=3):!0)):!1}function KOn(e,t,i,s){var a,c,b,g,m;return g=sl(f(Se((!t.b&&(t.b=new en(Dn,t,4,7)),t.b),0),84)),m=sl(f(Se((!t.c&&(t.c=new en(Dn,t,5,8)),t.c),0),84)),di(g)==di(m)||Xv(m,g)?null:(b=M7(t),b==i?s:(c=f(En(e.a,b),10),c&&(a=c.e,a)?a:null))}function qOn(e,t,i){var s,a,c,b,g;for(i.Ug("Longest path to source layering",1),e.a=t,g=e.a.a,e.b=Fe(Xn,wr,28,g.c.length,15,1),s=0,b=new ee(g);b.a0&&(i[0]+=e.d,b-=i[0]),i[2]>0&&(i[2]+=e.d,b-=i[2]),c=h.Math.max(0,b),i[1]=h.Math.max(i[1],b),g_e(e,Aa,a.c+s.b+i[0]-(i[1]-b)/2,i),t==Aa&&(e.c.b=c,e.c.c=a.c+s.b+(c-b)/2)}function _3t(){this.c=Fe(Ro,js,28,(ft(),se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn])).length,15,1),this.b=Fe(Ro,js,28,se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn]).length,15,1),this.a=Fe(Ro,js,28,se(ie(vs,1),Ql,64,0,[Cl,bn,_n,jn,wn]).length,15,1),ywe(this.c,hi),ywe(this.b,to),ywe(this.a,to)}function da(e,t,i){var s,a,c,b;if(t<=i?(a=t,c=i):(a=i,c=t),s=0,e.b==null)e.b=Fe(Xn,wr,28,2,15,1),e.b[0]=a,e.b[1]=c,e.c=!0;else{if(s=e.b.length,e.b[s-1]+1==a){e.b[s-1]=c;return}b=Fe(Xn,wr,28,s+2,15,1),oa(e.b,0,b,0,s),e.b=b,e.b[s-1]>=a&&(e.c=!1,e.a=!1),e.b[s++]=a,e.b[s]=c,e.c||b2(e)}}function e7n(e,t,i){var s,a,c,b,g,m,_;for(_=t.d,e.a=new ka(_.c.length),e.c=new Fn,g=new ee(_);g.a=0?e.Lh(_,!1,!0):iy(e,i,!1),61));e:for(c=I.Kc();c.Ob();){for(a=f(c.Pb(),58),k=0;k1;)u_(a,a.i-1);return s}function E3t(e,t){var i,s,a,c,b,g,m;for(i=new qS,c=new ee(e.b);c.ae.d[b.p]&&(i+=a_e(e.b,c),$1(e.a,ot(c)));for(;!l$(e.a);)W_e(e.b,f(t3(e.a),17).a)}return i}function s7n(e){var t,i,s,a,c,b,g,m,_;for(e.a=new eye,_=0,a=0,s=new ee(e.i.b);s.ag.d&&(k=g.d+g.a+_));i.c.d=k,t.a.zc(i,t),m=h.Math.max(m,i.c.d+i.c.a)}return m}function As(){As=F,gV=new Tv("COMMENTS",0),af=new Tv("EXTERNAL_PORTS",1),GI=new Tv("HYPEREDGES",2),wV=new Tv("HYPERNODES",3),a4=new Tv("NON_FREE_PORTS",4),U2=new Tv("NORTH_SOUTH_PORTS",5),VI=new Tv(qAt,6),s4=new Tv("CENTER_LABELS",7),l4=new Tv("END_LABELS",8),mV=new Tv("PARTITIONS",9)}function a7n(e,t,i,s,a){return s<0?(s=p2(e,a,se(ie(_t,1),rt,2,6,[mre,yre,vre,_re,P3,Sre,Ere,kre,Rre,xre,Cre,Are]),t),s<0&&(s=p2(e,a,se(ie(_t,1),rt,2,6,["Jan","Feb","Mar","Apr",P3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),s<0?!1:(i.k=s,!0)):s>0?(i.k=s-1,!0):!1}function c7n(e,t,i,s,a){return s<0?(s=p2(e,a,se(ie(_t,1),rt,2,6,[mre,yre,vre,_re,P3,Sre,Ere,kre,Rre,xre,Cre,Are]),t),s<0&&(s=p2(e,a,se(ie(_t,1),rt,2,6,["Jan","Feb","Mar","Apr",P3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),s<0?!1:(i.k=s,!0)):s>0?(i.k=s-1,!0):!1}function u7n(e,t,i,s,a,c){var b,g,m,_;if(g=32,s<0){if(t[0]>=e.length||(g=Jo(e,t[0]),g!=43&&g!=45)||(++t[0],s=jH(e,t),s<0))return!1;g==45&&(s=-s)}return g==32&&t[0]-i==2&&a.b==2&&(m=new hF,_=m.q.getFullYear()-V1+V1-80,b=_%100,c.a=s==b,s+=(_/100|0)*100+(s=0?j1(e):X$(j1(gg(e)))),DI[t]=GF(Zf(e,t),0)?j1(Zf(e,t)):X$(j1(gg(Zf(e,t)))),e=os(e,5);for(;t=_&&(m=s);m&&(k=h.Math.max(k,m.a.o.a)),k>D&&(I=_,D=k)}return I}function g7n(e){var t,i,s,a,c,b,g;for(c=new sg(f(nr(new Hl),50)),g=to,i=new ee(e.d);i.av4t?Hi(m,e.b):s<=v4t&&s>_4t?Hi(m,e.d):s<=_4t&&s>S4t?Hi(m,e.c):s<=S4t&&Hi(m,e.a),c=A3t(e,m,c);return a}function T3t(e,t,i,s){var a,c,b,g,m,_;for(a=(s.c+s.a)/2,wu(t.j),hr(t.j,a),wu(i.e),hr(i.e,a),_=new Ylt,g=new ee(e.f);g.a1,g&&(s=new tt(a,i.b),hr(t.a,s)),c6(t.a,se(ie(wo,1),rt,8,0,[D,I]))}function qke(e,t,i){var s,a;for(t=48;i--)G5[i]=i-48<<24>>24;for(s=70;s>=65;s--)G5[s]=s-65+10<<24>>24;for(a=102;a>=97;a--)G5[a]=a-97+10<<24>>24;for(c=0;c<10;c++)Vz[c]=48+c&Ji;for(e=10;e<=15;e++)Vz[e]=65+e-10&Ji}function v7n(e,t){t.Ug("Process graph bounds",1),Xe(e,(ei(),pae),ZO(Wee(Wv(new Wt(null,new Vt(e.b,16)),new eYe)))),Xe(e,bae,ZO(Wee(Wv(new Wt(null,new Vt(e.b,16)),new tYe)))),Xe(e,ZIe,ZO(Bee(Wv(new Wt(null,new Vt(e.b,16)),new nYe)))),Xe(e,e5e,ZO(Bee(Wv(new Wt(null,new Vt(e.b,16)),new rYe)))),t.Vg()}function _7n(e){var t,i,s,a,c;a=f(V(e,(pt(),Dw)),21),c=f(V(e,LV),21),i=new tt(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new us(i),a.Hc((su(),q_))&&(s=f(V(e,u4),8),c.Hc((Gc(),T4))&&(s.a<=0&&(s.a=20),s.b<=0&&(s.b=20)),t.a=h.Math.max(i.a,s.a),t.b=h.Math.max(i.b,s.b)),wt(gt(V(e,jle)))||YMn(e,i,t)}function S7n(e,t){var i,s,a,c;for(c=Rl(t,(ft(),jn)).Kc();c.Ob();)s=f(c.Pb(),12),i=f(V(s,(nt(),Ic)),10),i&&id(qf(Kf(Xf(zf(new gf,0),.1),e.i[t.p].d),e.i[i.p].a));for(a=Rl(t,bn).Kc();a.Ob();)s=f(a.Pb(),12),i=f(V(s,(nt(),Ic)),10),i&&id(qf(Kf(Xf(zf(new gf,0),.1),e.i[i.p].d),e.i[t.p].a))}function Ine(e){var t,i,s,a,c,b;if(!e.c){if(b=new gZe,t=B5,c=t.a.zc(e,t),c==null){for(s=new Sn(ra(e));s.e!=s.i.gc();)i=f(Cn(s),89),a=tU(i),ve(a,90)&&Ii(b,Ine(f(a,29))),zn(b,i);t.a.Bc(e)!=null,t.a.gc()==0}wAn(b),Qv(b),e.c=new WS((f(Se(Ve((C1(),un).o),15),19),b.i),b.g),Bc(e).b&=-33}return e.c}function Jke(e){var t;if(e.c!=10)throw ne(new ar(dr((ir(),sG))));switch(t=e.a,t){case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw ne(new ar(dr((ir(),sf))))}return t}function O3t(e){var t,i,s,a,c;if(e.l==0&&e.m==0&&e.h==0)return"0";if(e.h==fM&&e.m==0&&e.l==0)return"-9223372036854775808";if(e.h>>19)return"-"+O3t(UC(e));for(i=e,s="";!(i.l==0&&i.m==0&&i.h==0);){if(a=lee(pU),i=$3e(i,a,!0),t=""+rat(J1),!(i.l==0&&i.m==0&&i.h==0))for(c=9-t.length;c>0;c--)t="0"+t;s=t+s}return s}function E7n(e){var t,i,s,a,c,b,g;for(t=!1,i=0,a=new ee(e.d.b);a.a=e.a||!PEe(t,i))return-1;if(_C(f(s.Kb(t),20)))return 1;for(a=0,b=f(s.Kb(t),20).Kc();b.Ob();)if(c=f(b.Pb(),18),m=c.c.i==t?c.d.i:c.c.i,g=Yke(e,m,i,s),g==-1||(a=h.Math.max(a,g),a>e.c-1))return-1;return a+1}function N3t(e,t){var i,s,a,c,b,g;if(Ne(t)===Ne(e))return!0;if(!ve(t,15)||(s=f(t,15),g=e.gc(),s.gc()!=g))return!1;if(b=s.Kc(),e.Yi()){for(i=0;i0){if(e._j(),t!=null){for(c=0;c>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw ne(new Ih("Invalid hexadecimal"))}}function YH(){YH=F,M4e=new DS("SPIRAL",0),I4e=new DS("LINE_BY_LINE",1),P4e=new DS("MANHATTAN",2),$4e=new DS("JITTER",3),yse=new DS("QUADRANTS_LINE_BY_LINE",4),N4e=new DS("QUADRANTS_MANHATTAN",5),O4e=new DS("QUADRANTS_JITTER",6),T4e=new DS("COMBINE_LINE_BY_LINE_MANHATTAN",7),A4e=new DS("COMBINE_JITTER_MANHATTAN",8)}function D3t(e,t,i,s){var a,c,b,g,m,_;for(m=nne(e,i),_=nne(t,i),a=!1;m&&_&&(s||vTn(m,_,i));)b=nne(m,i),g=nne(_,i),J7(t),J7(e),c=m.c,rre(m,!1),rre(_,!1),i?(r_(t,_.p,c),t.p=_.p,r_(e,m.p+1,c),e.p=m.p):(r_(e,m.p,c),e.p=m.p,r_(t,_.p+1,c),t.p=_.p),Oo(m,null),Oo(_,null),m=b,_=g,a=!0;return a}function L3t(e){switch(e.g){case 0:return new Jtt;case 1:return new qtt;case 3:return new fct;case 4:return new UXe;case 5:return new Fdt;case 6:return new Xtt;case 2:return new Ktt;case 7:return new Wtt;case 8:return new Utt;default:throw ne(new hn("No implementation is available for the layerer "+(e.f!=null?e.f:""+e.g)))}}function T7n(e,t,i,s){var a,c,b,g,m;for(a=!1,c=!1,g=new ee(s.j);g.a=t.length)throw ne(new Hs("Greedy SwitchDecider: Free layer not in graph."));this.c=t[e],this.e=new y7(s),Dee(this.e,this.c,(ft(),wn)),this.i=new y7(s),Dee(this.i,this.c,_n),this.f=new npt(this.c),this.a=!c&&a.i&&!a.s&&this.c[0].k==(gn(),Ui),this.a&&UIn(this,e,t.length)}function F3t(e,t){var i,s,a,c,b,g;c=!e.B.Hc((Gc(),G9)),b=e.B.Hc(kce),e.a=new R_t(b,c,e.c),e.n&&Tve(e.a.n,e.n),AY(e.g,(Pd(),Aa),e.a),t||(s=new A6(1,c,e.c),s.n.a=e.k,n3(e.p,(ft(),bn),s),a=new A6(1,c,e.c),a.n.d=e.k,n3(e.p,jn,a),g=new A6(0,c,e.c),g.n.c=e.k,n3(e.p,wn,g),i=new A6(0,c,e.c),i.n.b=e.k,n3(e.p,_n,i))}function I7n(e){var t,i,s;switch(t=f(V(e.d,(pt(),Ob)),223),t.g){case 2:i=yjn(e);break;case 3:i=(s=new st,Mi(Br(nl(El(El(new Wt(null,new Vt(e.d.b,16)),new Zqe),new eXe),new tXe),new Bqe),new _it(s)),s);break;default:throw ne(new Us("Compaction not supported for "+t+" edges."))}W9n(e,i),Vo(new H0(e.g),new yit(e))}function P7n(e,t){var i,s,a,c,b,g,m;if(t.Ug("Process directions",1),i=f(V(e,(Il(),My)),88),i!=(Xi(),gh))for(a=Hn(e.b,0);a.b!=a.d.c;){switch(s=f(Bn(a),40),g=f(V(s,(ei(),v9)),17).a,m=f(V(s,_9),17).a,i.g){case 4:m*=-1;break;case 1:c=g,g=m,m=c;break;case 2:b=g,g=-m,m=b}Xe(s,v9,ot(g)),Xe(s,_9,ot(m))}t.Vg()}function O7n(e,t){var i;return i=new bt,t&&ol(i,f(En(e.a,z9),96)),ve(t,422)&&ol(i,f(En(e.a,K9),96)),ve(t,366)?(ol(i,f(En(e.a,Fs),96)),i):(ve(t,84)&&ol(i,f(En(e.a,Dn),96)),ve(t,207)?(ol(i,f(En(e.a,$r),96)),i):ve(t,193)?(ol(i,f(En(e.a,Mc),96)),i):(ve(t,326)&&ol(i,f(En(e.a,Fi),96)),i))}function N7n(e){var t,i,s,a,c,b,g,m;for(m=new y0t,g=new ee(e.a);g.a0&&t=0)return!1;if(t.p=i.b,lt(i.e,t),a==(gn(),vo)||a==wa){for(b=new ee(t.j);b.ae.d[g.p]&&(i+=a_e(e.b,c),$1(e.a,ot(c)))):++b;for(i+=e.b.d*b;!l$(e.a);)W_e(e.b,f(t3(e.a),17).a)}return i}function X3t(e){var t,i,s,a,c,b;return c=0,t=_f(e),t.kk()&&(c|=4),e.Bb&yc&&(c|=2),ve(e,102)?(i=f(e,19),a=Es(i),i.Bb&Vl&&(c|=32),a&&(Pn(Hv(a)),c|=8,b=a.t,(b>1||b==-1)&&(c|=16),a.Bb&Vl&&(c|=64)),i.Bb&ys&&(c|=E_),c|=sd):ve(t,469)?c|=512:(s=t.kk(),s&&s.i&1&&(c|=256)),e.Bb&512&&(c|=128),c}function z7n(e,t){var i;return e.f==Lce?(i=Lm(Vs((gc(),qo),t)),e.e?i==4&&t!=(C3(),pR)&&t!=(C3(),hR)&&t!=(C3(),jce)&&t!=(C3(),Fce):i==2):e.d&&(e.d.Hc(t)||e.d.Hc(a3(Vs((gc(),qo),t)))||e.d.Hc(_2((gc(),qo),e.b,t)))?!0:e.f&&jke((gc(),e.f),$7(Vs(qo,t)))?(i=Lm(Vs(qo,t)),e.e?i==4:i==2):!1}function K7n(e){var t,i,s,a,c,b,g,m,_,k,I,D,W;for(D=-1,W=0,_=e,k=0,I=_.length;k0&&++W;++D}return W}function q7n(e,t,i,s){var a,c,b,g,m,_,k,I;return b=f(Qe(i,(Er(),lR)),8),m=b.a,k=b.b+e,a=h.Math.atan2(k,m),a<0&&(a+=kw),a+=t,a>kw&&(a-=kw),g=f(Qe(s,lR),8),_=g.a,I=g.b+e,c=h.Math.atan2(I,_),c<0&&(c+=kw),c+=t,c>kw&&(c-=kw),Kd(),td(1e-10),h.Math.abs(a-c)<=1e-10||a==c||isNaN(a)&&isNaN(c)?0:ac?1:km(isNaN(a),isNaN(c))}function Nne(e){var t,i,s,a,c,b,g;for(g=new Fn,s=new ee(e.a.b);s.a=e.o)throw ne(new P0e);g=t>>5,b=t&31,c=Zf(1,tr(Zf(b,1))),a?e.n[i][g]=Ad(e.n[i][g],c):e.n[i][g]=fo(e.n[i][g],Tye(c)),c=Zf(c,1),s?e.n[i][g]=Ad(e.n[i][g],c):e.n[i][g]=fo(e.n[i][g],Tye(c))}catch(m){throw m=mi(m),ve(m,333)?ne(new Hs(tie+e.o+"*"+e.p+nie+t+ds+i+rie)):ne(m)}}function Y7n(e,t,i,s){var a,c,b,g,m,_,k,I,D;for(D=new sg(new Git(e)),g=se(ie(Op,1),$g,10,0,[t,i]),m=0,_=g.length;m<_;++m)for(b=g[m],I=_6(b,s).Kc();I.Ob();)for(k=f(I.Pb(),12),c=new Zd(k.b);_l(c.a)||_l(c.b);)a=f(_l(c.a)?Z(c.a):Z(c.b),18),ms(a)||(D.a.zc(k,(cn(),Y1))==null,lbt(a)&&x7(D,k==a.c?a.d:a.c));return nr(D),new Rc(D)}function n3e(e,t,i,s){var a,c,b;t&&(c=Ae(je(V(t,(ei(),jg))))+s,b=i+Ae(je(V(t,ZV)))/2,Xe(t,v9,ot(tr(Gl(h.Math.round(c))))),Xe(t,_9,ot(tr(Gl(h.Math.round(b))))),t.d.b==0||n3e(e,f(YF((a=Hn(new sb(t).a.d,0),new OS(a))),40),i+Ae(je(V(t,ZV)))+e.b,s+Ae(je(V(t,v4)))),V(t,wae)!=null&&n3e(e,f(V(t,wae),40),i,s))}function Q7n(e,t){var i,s,a,c,b,g,m,_,k,I,D;for(m=Go(t.a),a=Ae(je(V(m,(pt(),jw))))*2,k=Ae(je(V(m,Y2))),_=h.Math.max(a,k),c=Fe(Ro,js,28,t.f-t.c+1,15,1),s=-_,i=0,g=t.b.Kc();g.Ob();)b=f(g.Pb(),10),s+=e.a[b.c.p]+_,c[i++]=s;for(s+=e.a[t.a.c.p]+_,c[i++]=s,D=new ee(t.e);D.a0&&(s=(!e.n&&(e.n=new qe(Fs,e,1,7)),f(Se(e.n,0),135)).a,!s||br(br((t.a+=' "',t),s),'"'))),br(mm(br(mm(br(mm(br(mm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function J3t(e){var t,i,s;return e.Db&64?hne(e):(t=new gu(oAe),i=e.k,i?br(br((t.a+=' "',t),i),'"'):(!e.n&&(e.n=new qe(Fs,e,1,7)),e.n.i>0&&(s=(!e.n&&(e.n=new qe(Fs,e,1,7)),f(Se(e.n,0),135)).a,!s||br(br((t.a+=' "',t),s),'"'))),br(mm(br(mm(br(mm(br(mm((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function eNn(e,t){var i,s,a,c,b;for(t==(w6(),rae)&&FN(f(Hr(e.a,(i_(),t9)),15)),a=f(Hr(e.a,(i_(),t9)),15).Kc();a.Ob();)switch(s=f(a.Pb(),105),i=f(yt(s.j,0),113).d.j,c=new Rc(s.j),Hi(c,new aXe),t.g){case 2:lne(e,c,i,(qm(),e0),1);break;case 1:case 0:b=BPn(c),lne(e,new dg(c,0,b),i,(qm(),e0),0),lne(e,new dg(c,b,c.c.length),i,e0,1)}}function Dne(e,t){var i,s,a,c,b,g,m;if(t==null||t.length==0)return null;if(a=f(ua(e.a,t),143),!a){for(s=(g=new ob(e.b).a.vc().Kc(),new Rv(g));s.a.Ob();)if(i=(c=f(s.a.Pb(),44),f(c.md(),143)),b=i.c,m=t.length,Ht(b.substr(b.length-m,m),t)&&(t.length==b.length||Jo(b,b.length-t.length-1)==46)){if(a)return null;a=i}a&&Gs(e.a,t,a)}return a}function tNn(e,t){var i,s,a,c;return i=new ws,s=f(fl(nl(new Wt(null,new Vt(e.f,16)),i),zv(new q,new ke,new $n,new Gn,se(ie(qs,1),Je,108,0,[(Tc(),k_),pl]))),21),a=s.gc(),s=f(fl(nl(new Wt(null,new Vt(t.f,16)),i),zv(new q,new ke,new $n,new Gn,se(ie(qs,1),Je,108,0,[k_,pl]))),21),c=s.gc(),aa.p?(so(c,jn),c.d&&(g=c.o.b,t=c.a.b,c.a.b=g-t)):c.j==jn&&a.p>e.p&&(so(c,bn),c.d&&(g=c.o.b,t=c.a.b,c.a.b=-(g-t)));break}return a}function qN(e,t,i,s,a){var c,b,g,m,_,k,I;if(!(ve(t,207)||ve(t,366)||ve(t,193)))throw ne(new hn("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return b=e.a/2,m=t.i+s-b,k=t.j+a-b,_=m+t.g+e.a,I=k+t.f+e.a,c=new cc,hr(c,new tt(m,k)),hr(c,new tt(m,I)),hr(c,new tt(_,I)),hr(c,new tt(_,k)),g=new kne(c),ol(g,t),i&&xr(e.b,t,g),g}function bA(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(c=new tt(t,i),k=new ee(e.a);k.a1,g&&(s=new tt(a,i.b),hr(t.a,s)),c6(t.a,se(ie(wo,1),rt,8,0,[D,I]))}function Sf(){Sf=F,GV=new $v(Jh,0),h9=new $v("NIKOLOV",1),p9=new $v("NIKOLOV_PIXEL",2),wIe=new $v("NIKOLOV_IMPROVED",3),mIe=new $v("NIKOLOV_IMPROVED_PIXEL",4),gIe=new $v("DUMMYNODE_PERCENTAGE",5),yIe=new $v("NODECOUNT_PERCENTAGE",6),VV=new $v("NO_BOUNDARY",7),Oy=new $v("MODEL_ORDER_LEFT_TO_RIGHT",8),W_=new $v("MODEL_ORDER_RIGHT_TO_LEFT",9)}function fNn(e){var t,i,s,a,c;for(s=e.length,t=new a$,c=0;c=40,b&&dMn(e),v9n(e),UOn(e),i=b_t(e),s=0;i&&s0&&hr(e.f,c)):(e.c[b]-=_+1,e.c[b]<=0&&e.a[b]>0&&hr(e.e,c))))}function cRt(e,t,i,s){var a,c,b,g,m,_,k;for(m=new tt(i,s),uo(m,f(V(t,(ei(),y4)),8)),k=Hn(t.b,0);k.b!=k.d.c;)_=f(Bn(k),40),Mr(_.e,m),hr(e.b,_);for(g=f(fl(Bve(new Wt(null,new Vt(t.a,16))),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15).Kc();g.Ob();){for(b=f(g.Pb(),65),c=Hn(b.a,0);c.b!=c.d.c;)a=f(Bn(c),8),a.a+=m.a,a.b+=m.b;hr(e.a,b)}}function d3e(e,t){var i,s,a,c;if(0<(ve(e,16)?f(e,16).gc():hb(e.Kc()))){if(a=t,1=0&&mc*2?(k=new CW(I),_=dc(b)/ru(b),m=lre(k,t,new Pk,i,s,a,_),Mr(xd(k.e),m),I.c.length=0,c=0,sn(I.c,k),sn(I.c,b),c=dc(k)*ru(k)+dc(b)*ru(b)):(sn(I.c,b),c+=dc(b)*ru(b));return I}function fRt(e,t){var i,s,a,c,b,g;if(g=f(V(t,(pt(),Oi)),101),g==(Co(),jp)||g==ya)for(a=new tt(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a).b,b=new ee(e.a);b.ai?t:i;_<=I;++_)_==i?g=s++:(c=a[_],k=U.am(c.Lk()),_==t&&(m=_==I&&!k?s-1:s),k&&++s);return D=f(R6(e,t,i),76),g!=m&&Ux(e,new z7(e.e,7,b,ot(g),W.md(),m)),D}}else return f(_ne(e,t,i),76);return f(R6(e,t,i),76)}function $Nn(e,t){var i,s,a,c,b,g,m;for(t.Ug("Port order processing",1),m=f(V(e,(pt(),X6e)),430),s=new ee(e.b);s.a=0&&(g=RTn(e,b),!(g&&(_<22?m.l|=1<<_:_<44?m.m|=1<<_-22:m.h|=1<<_-44,e.l==0&&e.m==0&&e.h==0)));)k=b.m,I=b.h,D=b.l,b.h=I>>>1,b.m=k>>>1|(I&1)<<21,b.l=D>>>1|(k&1)<<21,--_;return i&&Qee(m),c&&(s?(J1=UC(e),a&&(J1=Jyt(J1,(xC(),VAe)))):J1=Oa(e.l,e.m,e.h)),m}function ONn(e,t){var i,s,a,c,b,g,m,_,k,I;for(_=e.e[t.c.p][t.p]+1,m=t.c.a.c.length+1,g=new ee(e.a);g.a0&&(pn(0,e.length),e.charCodeAt(0)==45||(pn(0,e.length),e.charCodeAt(0)==43))?1:0,s=b;si)throw ne(new Ih(uy+e+'"'));return g}function NNn(e){var t,i,s,a,c,b,g;for(b=new li,c=new ee(e.a);c.a1)&&t==1&&f(e.a[e.b],10).k==(gn(),ea)?T3(f(e.a[e.b],10),(ku(),Dp)):s&&(!i||(e.c-e.b&e.a.length-1)>1)&&t==1&&f(e.a[e.c-1&e.a.length-1],10).k==(gn(),ea)?T3(f(e.a[e.c-1&e.a.length-1],10),(ku(),a0)):(e.c-e.b&e.a.length-1)==2?(T3(f(g6(e),10),(ku(),Dp)),T3(f(g6(e),10),a0)):uPn(e,a),s_e(e)}function LNn(e,t,i){var s,a,c,b,g;for(c=0,a=new Sn((!e.a&&(e.a=new qe($r,e,10,11)),e.a));a.e!=a.i.gc();)s=f(Cn(a),27),b="",(!s.n&&(s.n=new qe(Fs,s,1,7)),s.n).i==0||(b=f(Se((!s.n&&(s.n=new qe(Fs,s,1,7)),s.n),0),135).a),g=new Zee(c++,t,b),ol(g,s),Xe(g,(ei(),h5),s),g.e.b=s.j+s.f/2,g.f.a=h.Math.max(s.g,1),g.e.a=s.i+s.g/2,g.f.b=h.Math.max(s.f,1),hr(t.b,g),Ca(i.f,s,g)}function jNn(e){var t,i,s,a,c;s=f(V(e,(nt(),Ur)),27),c=f(Qe(s,(pt(),Dw)),181).Hc((su(),Vw)),e.e||(a=f(V(e,ma),21),t=new tt(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),a.Hc((As(),af))?(zr(s,Oi,(Co(),ya)),ly(s,t.a,t.b,!1,!0)):wt(gt(Qe(s,jle)))||ly(s,t.a,t.b,!0,!0)),c?zr(s,Dw,Mt(Vw)):zr(s,Dw,(i=f(kd(N5),9),new Uu(i,f(Yf(i,i.length),9),0)))}function h3e(e,t,i){var s,a,c,b;if(t[0]>=e.length)return i.o=0,!0;switch(Jo(e,t[0])){case 43:a=1;break;case 45:a=-1;break;default:return i.o=0,!0}if(++t[0],c=t[0],b=jH(e,t),b==0&&t[0]==c)return!1;if(t[0]g&&(g=a,k.c.length=0),a==g&<(k,new io(i.c.i,i)));qt(),Hi(k,e.c),$m(e.b,m.p,k)}}function HNn(e,t){var i,s,a,c,b,g,m,_,k;for(b=new ee(t.b);b.ag&&(g=a,k.c.length=0),a==g&<(k,new io(i.d.i,i)));qt(),Hi(k,e.c),$m(e.f,m.p,k)}}function UNn(e,t){var i,s,a,c,b,g,m,_;if(_=gt(V(t,(Il(),ANt))),_==null||(mn(_),_)){for(b8n(e,t),a=new st,m=Hn(t.b,0);m.b!=m.d.c;)b=f(Bn(m),40),i=eke(e,b,null),i&&(ol(i,t),sn(a.c,i));if(e.a=null,e.b=null,a.c.length>1)for(s=new ee(a);s.a=0&&g!=i&&(c=new yo(e,1,g,b,null),s?s.nj(c):s=c),i>=0&&(c=new yo(e,1,i,g==i?b:null,t),s?s.nj(c):s=c)),s}function pRt(e){var t,i,s;if(e.b==null){if(s=new ig,e.i!=null&&(Ms(s,e.i),s.a+=":"),e.f&256){for(e.f&256&&e.a!=null&&(a_n(e.i)||(s.a+="//"),Ms(s,e.a)),e.d!=null&&(s.a+="/",Ms(s,e.d)),e.f&16&&(s.a+="/"),t=0,i=e.j.length;tD?!1:(I=(m=Q6(s,D,!1),m.a),k+g+I<=t.b&&(K7(i,c-i.s),i.c=!0,K7(s,c-i.s),TN(s,i.s,i.t+i.d+g),s.k=!0,_Se(i.q,s),W=!0,a&&(PW(t,s),s.j=t,e.c.length>b&&(PN((Xt(b,e.c.length),f(e.c[b],186)),s),(Xt(b,e.c.length),f(e.c[b],186)).a.c.length==0&&pg(e,b)))),W)}function JNn(e,t){var i,s,a,c,b,g;if(t.Ug("Partition midprocessing",1),a=new Bm,Mi(Br(new Wt(null,new Vt(e.a,16)),new FKe),new ait(a)),a.d!=0){for(g=f(fl(Uve((c=a.i,new Wt(null,(c||(a.i=new XS(a,a.c))).Nc()))),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),s=g.Kc(),i=f(s.Pb(),17);s.Ob();)b=f(s.Pb(),17),UPn(f(Hr(a,i),21),f(Hr(a,b),21)),i=b;t.Vg()}}function wRt(e,t,i){var s,a,c,b,g,m,_,k;if(t.p==0){for(t.p=1,b=i,b||(a=new st,c=(s=f(kd(vs),9),new Uu(s,f(Yf(s,s.length),9),0)),b=new io(a,c)),f(b.a,15).Fc(t),t.k==(gn(),Ui)&&f(b.b,21).Fc(f(V(t,(nt(),Dl)),64)),m=new ee(t.j);m.a0){if(a=f(e.Ab.g,2033),t==null){for(c=0;ci.s&&gb)return ft(),_n;break;case 4:case 3:if(k<0)return ft(),bn;if(k+i>c)return ft(),jn}return m=(_+g/2)/b,s=(k+i/2)/c,m+s<=1&&m-s<=0?(ft(),wn):m+s>=1&&m-s>=0?(ft(),_n):s<.5?(ft(),bn):(ft(),jn)}function tMn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(i=!1,k=Ae(je(V(t,(pt(),Py)))),U=G1*k,a=new ee(t.b);a.am+U&&(z=I.g+D.g,D.a=(D.g*D.a+I.g*I.a)/z,D.g=z,I.f=D,i=!0)),c=g,I=D;return i}function _Rt(e,t,i,s,a,c,b){var g,m,_,k,I,D;for(D=new Vk,_=t.Kc();_.Ob();)for(g=f(_.Pb(),853),I=new ee(g.Rf());I.a0?g.a?(_=g.b.Mf().b,a>_&&(e.v||g.c.d.c.length==1?(b=(a-_)/2,g.d.d=b,g.d.a=b):(i=f(yt(g.c.d,0),187).Mf().b,s=(i-_)/2,g.d.d=h.Math.max(0,s),g.d.a=a-s-_))):g.d.a=e.t+a:V$(e.u)&&(c=DEe(g.b),c.d<0&&(g.d.d=-c.d),c.d+c.a>g.b.Mf().b&&(g.d.a=c.d+c.a-g.b.Mf().b))}function od(){od=F,K3=new Po((Er(),M9),ot(1)),jG=new Po(Uw,80),e5t=new Po(kPe,5),GIt=new Po(sE,PA),QIt=new Po(yce,ot(1)),ZIt=new Po(vce,(cn(),!0)),Q4e=new Rm(50),JIt=new Po(Bg,Q4e),X4e=O9,Z4e=x5,VIt=new Po(cce,!1),Y4e=N9,qIt=V_,XIt=l0,KIt=Hw,zIt=uE,YIt=z_,J4e=(zEe(),LIt),Ise=WIt,LG=DIt,$se=jIt,eTe=BIt,r5t=k4,i5t=Sz,n5t=D9,t5t=_z,tTe=(m3(),X_),new Po(cR,tTe)}function iMn(e,t){var i;switch(tN(e)){case 6:return Eo(t);case 7:return Pv(t);case 8:return Iv(t);case 3:return Array.isArray(t)&&(i=tN(t),!(i>=14&&i<=16));case 11:return t!=null&&typeof t===fre;case 12:return t!=null&&(typeof t===iM||typeof t==fre);case 0:return Dte(t,e.__elementTypeId$);case 2:return gZ(t)&&t.Tm!==ae;case 1:return gZ(t)&&t.Tm!==ae||Dte(t,e.__elementTypeId$);default:return!0}}function oMn(e){var t,i,s,a;s=e.o,Mv(),e.A.dc()||Lr(e.A,j4e)?a=s.a:(e.D?a=h.Math.max(s.a,F6(e.f)):a=F6(e.f),e.A.Hc((su(),H9))&&!e.B.Hc((Gc(),M5))&&(a=h.Math.max(a,F6(f(Ds(e.p,(ft(),bn)),252))),a=h.Math.max(a,F6(f(Ds(e.p,jn),252)))),t=Dyt(e),t&&(a=h.Math.max(a,t.a))),wt(gt(e.e.Tf().of((Er(),V_))))?s.a=h.Math.max(s.a,a):s.a=a,i=e.f.i,i.c=0,i.b=a,Une(e.f)}function SRt(e,t){var i,s,a,c;return s=h.Math.min(h.Math.abs(e.c-(t.c+t.b)),h.Math.abs(e.c+e.b-t.c)),c=h.Math.min(h.Math.abs(e.d-(t.d+t.a)),h.Math.abs(e.d+e.a-t.d)),i=h.Math.abs(e.c+e.b/2-(t.c+t.b/2)),i>e.b/2+t.b/2||(a=h.Math.abs(e.d+e.a/2-(t.d+t.a/2)),a>e.a/2+t.a/2)?1:i==0&&a==0?0:i==0?c/a+1:a==0?s/i+1:h.Math.min(s/i,c/a)+1}function sMn(e,t){var i,s,a,c,b,g,m;for(c=0,g=0,m=0,a=new ee(e.f.e);a.a0&&e.d!=(l6(),Nse)&&(g+=b*(s.d.a+e.a[t.a][s.a]*(t.d.a-s.d.a)/i)),i>0&&e.d!=(l6(),Pse)&&(m+=b*(s.d.b+e.a[t.a][s.a]*(t.d.b-s.d.b)/i)));switch(e.d.g){case 1:return new tt(g/c,t.d.b);case 2:return new tt(t.d.a,m/c);default:return new tt(g/c,m/c)}}function ERt(e){var t,i,s,a,c,b;for(i=(!e.a&&(e.a=new zi(Nu,e,5)),e.a).i+2,b=new ka(i),lt(b,new tt(e.j,e.k)),Mi(new Wt(null,(!e.a&&(e.a=new zi(Nu,e,5)),new Vt(e.a,16))),new Not(b)),lt(b,new tt(e.b,e.c)),t=1;t0&&(hN(m,!1,(Xi(),Js)),hN(m,!0,al)),Ma(t.g,new Lct(e,i)),xr(e.g,t,i)}function xRt(){xRt=F;var e;for(ZAe=se(ie(Xn,1),wr,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),sse=Fe(Xn,wr,28,37,15,1),p6t=se(ie(Xn,1),wr,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),e4e=Fe(m0,jre,28,37,14,1),e=2;e<=36;e++)sse[e]=oo(h.Math.pow(e,ZAe[e])),e4e[e]=NN(aM,sse[e])}function lMn(e){var t;if((!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i!=1)throw ne(new hn(eTt+(!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i));return t=new cc,fN(f(Se((!e.b&&(e.b=new en(Dn,e,4,7)),e.b),0),84))&&Do(t,pCt(e,fN(f(Se((!e.b&&(e.b=new en(Dn,e,4,7)),e.b),0),84)),!1)),fN(f(Se((!e.c&&(e.c=new en(Dn,e,5,8)),e.c),0),84))&&Do(t,pCt(e,fN(f(Se((!e.c&&(e.c=new en(Dn,e,5,8)),e.c),0),84)),!0)),t}function CRt(e,t){var i,s,a,c,b;for(t.d?a=e.a.c==(jh(),Ny)?go(t.b):Wi(t.b):a=e.a.c==(jh(),Lg)?go(t.b):Wi(t.b),c=!1,s=new kn(xn(a.a.Kc(),new O));Un(s);)if(i=f(On(s),18),b=wt(e.a.f[e.a.g[t.b.p].p]),!(!b&&!ms(i)&&i.c.i.c==i.d.i.c)&&!(wt(e.a.n[e.a.g[t.b.p].p])||wt(e.a.n[e.a.g[t.b.p].p]))&&(c=!0,Rd(e.b,e.a.g[lTn(i,t.b).p])))return t.c=!0,t.a=i,t;return t.c=c,t.a=null,t}function b3e(e,t,i){var s,a,c,b,g,m,_;if(s=i.gc(),s==0)return!1;if(e.Pj())if(m=e.Qj(),k2e(e,t,i),b=s==1?e.Ij(3,null,i.Kc().Pb(),t,m):e.Ij(5,null,i,t,m),e.Mj()){for(g=s<100?null:new y1(s),c=t+s,a=t;a0){for(b=0;b>16==-15&&e.Cb.Yh()&&vee(new bee(e.Cb,9,13,i,e.c,Rg(Wc(f(e.Cb,62)),e))):ve(e.Cb,90)&&e.Db>>16==-23&&e.Cb.Yh()&&(t=e.c,ve(t,90)||(t=(Kt(),Mf)),ve(i,90)||(i=(Kt(),Mf)),vee(new bee(e.Cb,9,10,i,t,Rg(ra(f(e.Cb,29)),e)))))),e.c}function uMn(e,t,i){var s,a,c,b,g,m,_,k,I;for(i.Ug("Hyperedge merging",1),N8n(e,t),m=new No(t.b,0);m.b0,g=oH(t,c),Ame(i?g.b:g.g,t),s2(g).c.length==1&&Ai(s,g,s.c.b,s.c),a=new io(c,t),$1(e.o,a),Ja(e.e.a,c))}function NRt(e,t){var i,s,a,c,b,g,m;return s=h.Math.abs(OB(e.b).a-OB(t.b).a),g=h.Math.abs(OB(e.b).b-OB(t.b).b),a=0,m=0,i=1,b=1,s>e.b.b/2+t.b.b/2&&(a=h.Math.min(h.Math.abs(e.b.c-(t.b.c+t.b.b)),h.Math.abs(e.b.c+e.b.b-t.b.c)),i=1-a/s),g>e.b.a/2+t.b.a/2&&(m=h.Math.min(h.Math.abs(e.b.d-(t.b.d+t.b.a)),h.Math.abs(e.b.d+e.b.a-t.b.d)),b=1-m/g),c=h.Math.min(i,b),(1-c)*h.Math.sqrt(s*s+g*g)}function hMn(e){var t,i,s,a;for(sre(e,e.e,e.f,(Wm(),o0),!0,e.c,e.i),sre(e,e.e,e.f,o0,!1,e.c,e.i),sre(e,e.e,e.f,eE,!0,e.c,e.i),sre(e,e.e,e.f,eE,!1,e.c,e.i),cMn(e,e.c,e.e,e.f,e.i),s=new No(e.i,0);s.b=65;i--)_h[i]=i-65<<24>>24;for(s=122;s>=97;s--)_h[s]=s-97+26<<24>>24;for(a=57;a>=48;a--)_h[a]=a-48+52<<24>>24;for(_h[43]=62,_h[47]=63,c=0;c<=25;c++)Kg[c]=65+c&Ji;for(b=26,m=0;b<=51;++b,m++)Kg[b]=97+m&Ji;for(e=52,g=0;e<=61;++e,g++)Kg[e]=48+g&Ji;Kg[62]=43,Kg[63]=47}function MRt(e,t){var i,s,a,c,b,g;return a=gSe(e),g=gSe(t),a==g?e.e==t.e&&e.a<54&&t.a<54?e.ft.f?1:0:(s=e.e-t.e,i=(e.d>0?e.d:h.Math.floor((e.a-1)*HCt)+1)-(t.d>0?t.d:h.Math.floor((t.a-1)*HCt)+1),i>s+1?a:i0&&(b=e2(b,zRt(s))),V_t(c,b))):a_&&(D=0,W+=m+t,m=0),bA(b,D,W),i=h.Math.max(i,D+k.a),m=h.Math.max(m,k.b),D+=k.a+t;return new tt(i+t,W+m+t)}function y3e(e,t){var i,s,a,c,b,g,m;if(!Xd(e))throw ne(new Us(Z4t));if(s=Xd(e),c=s.g,a=s.f,c<=0&&a<=0)return ft(),Cl;switch(g=e.i,m=e.j,t.g){case 2:case 1:if(g<0)return ft(),wn;if(g+e.g>c)return ft(),_n;break;case 4:case 3:if(m<0)return ft(),bn;if(m+e.f>a)return ft(),jn}return b=(g+e.g/2)/c,i=(m+e.f/2)/a,b+i<=1&&b-i<=0?(ft(),wn):b+i>=1&&b-i>=0?(ft(),_n):i<.5?(ft(),bn):(ft(),jn)}function gMn(e,t,i,s,a){var c,b;if(c=is(fo(t[0],Ts),fo(s[0],Ts)),e[0]=tr(c),c=Im(c,32),i>=a){for(b=1;b0&&(a.b[b++]=0,a.b[b++]=c.b[0]-1),t=1;t0&&(sY(m,m.d-a.d),a.c==(Td(),i0)&&epn(m,m.a-a.d),m.d<=0&&m.i>0&&Ai(t,m,t.c.b,t.c)));for(c=new ee(e.f);c.a0&&(Vj(g,g.i-a.d),a.c==(Td(),i0)&&tpn(g,g.b-a.d),g.i<=0&&g.d>0&&Ai(i,g,i.c.b,i.c)))}function yMn(e,t,i,s,a){var c,b,g,m,_,k,I,D,W;for(qt(),Hi(e,new zQe),b=S7(e),W=new st,D=new st,g=null,m=0;b.b!=0;)c=f(b.b==0?null:(In(b.b!=0),Xu(b,b.a.a)),163),!g||dc(g)*ru(g)/21&&(m>dc(g)*ru(g)/2||b.b==0)&&(I=new CW(D),k=dc(g)/ru(g),_=lre(I,t,new Pk,i,s,a,k),Mr(xd(I.e),_),g=I,sn(W.c,I),m=0,D.c.length=0));return eo(W,D),W}function oa(e,t,i,s,a){lb();var c,b,g,m,_,k,I;if(cve(e,"src"),cve(i,"dest"),I=ou(e),m=ou(i),Aye((I.i&4)!=0,"srcType is not an array"),Aye((m.i&4)!=0,"destType is not an array"),k=I.c,b=m.c,Aye(k.i&1?k==b:(b.i&1)==0,"Array types don't match"),oxn(e,t,i,s,a),!(k.i&1)&&I!=m)if(_=ow(e),c=ow(i),Ne(e)===Ne(i)&&ts;)Ci(c,g,_[--t]);else for(g=s+a;s0),s.a.Xb(s.c=--s.b),I>D+m&&iu(s);for(b=new ee(W);b.a0),s.a.Xb(s.c=--s.b)}}function _Mn(){Or();var e,t,i,s,a,c;if(Wce)return Wce;for(e=new yu(4),h_(e,U1(Koe,!0)),tI(e,U1("M",!0)),tI(e,U1("C",!0)),c=new yu(4),s=0;s<11;s++)da(c,s,s);return t=new yu(4),h_(t,U1("M",!0)),da(t,4448,4607),da(t,65438,65439),a=new O$(2),ww(a,e),ww(a,z5),i=new O$(2),i.Jm(EB(c,U1("L",!0))),i.Jm(t),i=new Gv(3,i),i=new ave(a,i),Wce=i,Wce}function d_(e,t){var i,s,a,c,b,g,m,_;for(i=new RegExp(t,"g"),m=Fe(_t,rt,2,0,6,1),s=0,_=e,c=null;;)if(g=i.exec(_),g==null||_==""){m[s]=_;break}else b=g.index,m[s]=(Mo(0,b,_.length),_.substr(0,b)),_=Vu(_,b+g[0].length,_.length),i.lastIndex=0,c==_&&(m[s]=(Mo(0,1,_.length),_.substr(0,1)),_=(pn(1,_.length+1),_.substr(1))),c=_,++s;if(e.length>0){for(a=m.length;a>0&&m[a-1]=="";)--a;a0&&(I-=s[0]+e.c,s[0]+=e.c),s[2]>0&&(I-=s[2]+e.c),s[1]=h.Math.max(s[1],I),CB(e.a[1],i.c+t.b+s[0]-(s[1]-I)/2,s[1]);for(c=e.a,g=0,_=c.length;g<_;++g)a=c[g],ve(a,336)&&f(a,336).lf()}function EMn(e){var t,i,s,a,c,b,g,m,_,k,I;for(I=new vJe,I.d=0,b=new ee(e.b);b.a0?(e.n.c.length-1)*e.i:0,s=new ee(e.n);s.a1)for(s=Hn(a,0);s.b!=s.d.c;)for(i=f(Bn(s),235),c=0,m=new ee(i.e);m.a0&&(t[0]+=e.c,I-=t[0]),t[2]>0&&(I-=t[2]+e.c),t[1]=h.Math.max(t[1],I),AB(e.a[1],s.d+i.d+t[0]-(t[1]-I)/2,t[1]);else for(U=s.d+i.d,W=s.a-i.d-i.a,b=e.a,m=0,k=b.length;m0||Qm(a.b.d,e.b.d+e.b.a)==0&&s.b<0||Qm(a.b.d+a.b.a,e.b.d)==0&&s.b>0){g=0;break}}else g=h.Math.min(g,NEt(e,a,s));g=h.Math.min(g,FRt(e,c,g,s))}return g}function QN(e,t){var i,s,a,c,b,g,m;if(e.b<2)throw ne(new hn("The vector chain must contain at least a source and a target point."));for(a=(In(e.b!=0),f(e.a.a.c,8)),c7(t,a.a,a.b),m=new Kk((!t.a&&(t.a=new zi(Nu,t,5)),t.a)),b=Hn(e,1);b.a=0&&c!=i))throw ne(new hn(OM));for(a=0,m=0;mAe(qd(b.g,b.d[0]).a)?(In(m.b>0),m.a.Xb(m.c=--m.b),Dv(m,b),a=!0):g.e&&g.e.gc()>0&&(c=(!g.e&&(g.e=new st),g.e).Mc(t),_=(!g.e&&(g.e=new st),g.e).Mc(i),(c||_)&&((!g.e&&(g.e=new st),g.e).Fc(b),++b.c));a||sn(s.c,b)}function AMn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;return I=e.a.i+e.a.g/2,D=e.a.i+e.a.g/2,U=t.i+t.g/2,X=t.j+t.f/2,g=new tt(U,X),_=f(Qe(t,(Er(),lR)),8),_.a=_.a+I,_.b=_.b+D,c=(g.b-_.b)/(g.a-_.a),s=g.b-c*g.a,z=i.i+i.g/2,oe=i.j+i.f/2,m=new tt(z,oe),k=f(Qe(i,lR),8),k.a=k.a+I,k.b=k.b+D,b=(m.b-k.b)/(m.a-k.a),a=m.b-b*m.a,W=(s-a)/(b-c),_.a>>0,"0"+t.toString(16)),s="\\x"+Vu(i,i.length-2,i.length)):e>=ys?(i=(t=e>>>0,"0"+t.toString(16)),s="\\v"+Vu(i,i.length-6,i.length)):s=""+String.fromCharCode(e&Ji)}return s}function URt(e){var t,i,s;if(HS(f(V(e,(pt(),Oi)),101)))for(i=new ee(e.j);i.a=t.o&&i.f<=t.f||t.a*.5<=i.f&&t.a*1.5>=i.f){if(b=f(yt(t.n,t.n.c.length-1),209),b.e+b.d+i.g+a<=s&&(c=f(yt(t.n,t.n.c.length-1),209),c.f-e.f+i.f<=e.b||e.a.c.length==1))return g2e(t,i),!0;if(t.s+i.g<=s&&(t.t+t.d+i.f+a<=e.b||e.a.c.length==1))return lt(t.b,i),g=f(yt(t.n,t.n.c.length-1),209),lt(t.n,new YB(t.s,g.f+g.a+t.i,t.i)),J2e(f(yt(t.n,t.n.c.length-1),209),i),LRt(t,i),!0}return!1}function VRt(e,t,i){var s,a,c,b;return e.Pj()?(a=null,c=e.Qj(),s=e.Ij(1,b=Eee(e,t,i),i,t,c),e.Mj()&&!(e.Yi()&&b!=null?Lr(b,i):Ne(b)===Ne(i))?(b!=null&&(a=e.Oj(b,a)),a=e.Nj(i,a),e.Tj()&&(a=e.Wj(b,i,a)),a?(a.nj(s),a.oj()):e.Jj(s)):(e.Tj()&&(a=e.Wj(b,i,a)),a?(a.nj(s),a.oj()):e.Jj(s)),b):(b=Eee(e,t,i),e.Mj()&&!(e.Yi()&&b!=null?Lr(b,i):Ne(b)===Ne(i))&&(a=null,b!=null&&(a=e.Oj(b,null)),a=e.Nj(i,a),a&&a.oj()),b)}function MMn(e,t){var i,s,a,c,b;if(t.Ug("Path-Like Graph Wrapping",1),e.b.c.length==0){t.Vg();return}if(a=new xke(e),b=(a.i==null&&(a.i=wSe(a,new A1e)),Ae(a.i)*a.f),i=b/(a.i==null&&(a.i=wSe(a,new A1e)),Ae(a.i)),a.b>i){t.Vg();return}switch(f(V(e,(pt(),Ule)),351).g){case 2:c=new $1e;break;case 0:c=new C1e;break;default:c=new I1e}if(s=c.og(e,a),!c.pg())switch(f(V(e,FV),352).g){case 2:s=MEt(a,s);break;case 1:s=x2t(a,s)}$9n(e,a,s),t.Vg()}function X6(e,t){var i,s,a,c,b,g,m,_;t%=24,e.q.getHours()!=t&&(s=new h.Date(e.q.getTime()),s.setDate(s.getDate()+1),g=e.q.getTimezoneOffset()-s.getTimezoneOffset(),g>0&&(m=g/60|0,_=g%60,a=e.q.getDate(),i=e.q.getHours(),i+m>=24&&++a,c=new h.Date(e.q.getFullYear(),e.q.getMonth(),a,t+m,e.q.getMinutes()+_,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(c.getTime()))),b=e.q.getTime(),e.q.setTime(b+36e5),e.q.getHours()!=t&&e.q.setTime(b)}function DMn(e,t){var i,s,a,c;if(XSn(e.d,e.e),e.c.a.$b(),Ae(je(V(t.j,(pt(),CV))))!=0||Ae(je(V(t.j,CV)))!=0)for(i=C2,Ne(V(t.j,Np))!==Ne((Wh(),Dg))&&Xe(t.j,(nt(),t0),(cn(),!0)),c=f(V(t.j,t5),17).a,a=0;aa&&++_,lt(b,(Xt(g+_,t.c.length),f(t.c[g+_],17))),m+=(Xt(g+_,t.c.length),f(t.c[g+_],17)).a-s,++i;i=X&&e.e[m.p]>U*e.b||_e>=i*X)&&(sn(D.c,g),g=new st,Do(b,c),c.a.$b(),_-=k,W=h.Math.max(W,_*e.b+z),_+=_e,ge=_e,_e=0,k=0,z=0);return new io(W,D)}function Vne(e){var t,i,s,a,c,b,g;if(!e.d){if(g=new mZe,t=B5,c=t.a.zc(e,t),c==null){for(s=new Sn(rl(e));s.e!=s.i.gc();)i=f(Cn(s),29),Ii(g,Vne(i));t.a.Bc(e)!=null,t.a.gc()==0}for(b=g.i,a=(!e.q&&(e.q=new qe(Of,e,11,10)),new Sn(e.q));a.e!=a.i.gc();++b)f(Cn(a),411);Ii(g,(!e.q&&(e.q=new qe(Of,e,11,10)),e.q)),Qv(g),e.d=new WS((f(Se(Ve((C1(),un).o),9),19),g.i),g.g),e.e=f(g.g,688),e.e==null&&(e.e=qDt),Bc(e).b&=-17}return e.d}function mA(e,t,i,s){var a,c,b,g,m,_;if(_=Fa(e.e.Dh(),t),m=0,a=f(e.g,124),Ss(),f(t,69).xk()){for(b=0;b1||U==-1)if(I=f(z,71),D=f(k,71),I.dc())D.$b();else for(b=!!Es(t),c=0,g=e.a?I.Kc():I.Ii();g.Ob();)_=f(g.Pb(),58),a=f(th(e,_),58),a?(b?(m=D.dd(a),m==-1?D.Gi(c,a):c!=m&&D.Ui(c,a)):D.Gi(c,a),++c):e.b&&!b&&(D.Gi(c,_),++c);else z==null?k.Wb(null):(a=th(e,z),a==null?e.b&&!Es(t)&&k.Wb(z):k.Wb(a))}function WMn(e,t){var i,s,a,c,b,g,m,_;for(i=new rKe,a=new kn(xn(go(t).a.Kc(),new O));Un(a);)if(s=f(On(a),18),!ms(s)&&(g=s.c.i,PEe(g,HG))){if(_=Yke(e,g,HG,WG),_==-1)continue;i.b=h.Math.max(i.b,_),!i.a&&(i.a=new st),lt(i.a,g)}for(b=new kn(xn(Wi(t).a.Kc(),new O));Un(b);)if(c=f(On(b),18),!ms(c)&&(m=c.d.i,PEe(m,WG))){if(_=Yke(e,m,WG,HG),_==-1)continue;i.d=h.Math.max(i.d,_),!i.c&&(i.c=new st),lt(i.c,m)}return i}function HMn(e,t,i,s){var a,c,b,g,m,_,k;if(i.d.i!=t.i){for(a=new kb(e),W0(a,(gn(),vo)),Xe(a,(nt(),Ur),i),Xe(a,(pt(),Oi),(Co(),ya)),sn(s.c,a),b=new ia,Sl(b,a),so(b,(ft(),wn)),g=new ia,Sl(g,a),so(g,_n),k=i.d,xo(i,b),c=new Fm,ol(c,i),Xe(c,Xs,null),rs(c,g),xo(c,k),_=new No(i.b,0);_.b<_.d.gc();)m=(In(_.b<_.d.gc()),f(_.d.Xb(_.c=_.b++),72)),Ne(V(m,rp))===Ne((nh(),K_))&&(Xe(m,Q3,i),iu(_),lt(c.b,m));kkt(a,b,g)}}function UMn(e,t,i,s){var a,c,b,g,m,_,k;if(i.c.i!=t.i)for(a=new kb(e),W0(a,(gn(),vo)),Xe(a,(nt(),Ur),i),Xe(a,(pt(),Oi),(Co(),ya)),sn(s.c,a),b=new ia,Sl(b,a),so(b,(ft(),wn)),g=new ia,Sl(g,a),so(g,_n),xo(i,b),c=new Fm,ol(c,i),Xe(c,Xs,null),rs(c,g),xo(c,t),kkt(a,b,g),_=new No(i.b,0);_.b<_.d.gc();)m=(In(_.b<_.d.gc()),f(_.d.Xb(_.c=_.b++),72)),k=f(V(m,rp),278),k==(nh(),K_)&&(ri(m,Q3)||Xe(m,Q3,i),iu(_),lt(c.b,m))}function zRt(e){pA();var t,i,s,a;if(t=oo(e),e1e6)throw ne(new iF("power of ten too big"));if(e<=Nr)return u3(UN(V3[1],t),t);for(s=UN(V3[1],Nr),a=s,i=Gl(e-Nr),t=oo(e%Nr);Jl(i,Nr)>0;)a=e2(a,s),i=vf(i,Nr);for(a=e2(a,UN(V3[1],t)),a=u3(a,Nr),i=Gl(e-Nr);Jl(i,Nr)>0;)a=u3(a,Nr),i=vf(i,Nr);return a=u3(a,t),a}function KRt(e){var t,i,s,a,c,b,g,m,_,k;for(m=new ee(e.a);m.a_&&s>_)k=g,_=Ae(t.p[g.p])+Ae(t.d[g.p])+g.o.b+g.d.a;else{a=!1,i._g()&&i.bh("bk node placement breaks on "+g+" which should have been after "+k);break}if(!a)break}return i._g()&&i.bh(t+" is feasible: "+a),a}function E3e(e,t,i,s){var a,c,b,g,m,_,k,I,D;if(c=new kb(e),W0(c,(gn(),wa)),Xe(c,(pt(),Oi),(Co(),ya)),a=0,t){for(b=new ia,Xe(b,(nt(),Ur),t),Xe(c,Ur,t.i),so(b,(ft(),wn)),Sl(b,c),D=Fh(t.e),_=D,k=0,I=_.length;k0){if(a<0&&k.a&&(a=m,c=_[0],s=0),a>=0){if(g=k.b,m==a&&(g-=s++,g==0))return 0;if(!Yxt(t,_,k,g,b)){m=a-1,_[0]=c;continue}}else if(a=-1,!Yxt(t,_,k,0,b))return 0}else{if(a=-1,Jo(k.c,0)==32){if(I=_[0],Qwt(t,_),_[0]>I)continue}else if($_n(t,k.c,_[0])){_[0]+=k.c.length;continue}return 0}return PLn(b,i)?_[0]:0}function qMn(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(k=new $B(new Drt(i)),g=Fe(Xc,Tp,28,e.f.e.c.length,16,1),sve(g,g.length),i[t.a]=0,_=new ee(e.f.e);_.a<_.c.c.length;)m=f(Z(_),153),m.a!=t.a&&(i[m.a]=Nr),Qk(aA(k,m),AA);for(;k.b.c.length!=0;)for(I=f(Ree(k),153),g[I.a]=!0,c=Kft(new LY(e.b,I),0);c.c;)a=f(H_e(c),290),D=sTn(a,I),!g[D.a]&&(ri(a,(IN(),BG))?b=Ae(je(V(a,BG))):b=e.c,s=i[I.a]+b,s=0&&!u2(e,k,I);)--I;a[k]=I}for(W=0;W=0&&!u2(e,g,U);)--g;c[U]=g}for(m=0;mt[D]&&Ds[m]&&ZH(e,m,D,!1,!0)}function k3e(e){var t,i,s,a,c,b,g,m;i=wt(gt(V(e,(od(),VIt)))),c=e.a.c.d,g=e.a.d.d,i?(b=Nh(uo(new tt(g.a,g.b),c),.5),m=Nh(Ho(e.e),.5),t=uo(Mr(new tt(c.a,c.b),b),m),Ome(e.d,t)):(a=Ae(je(V(e.a,e5t))),s=e.d,c.a>=g.a?c.b>=g.b?(s.a=g.a+(c.a-g.a)/2+a,s.b=g.b+(c.b-g.b)/2-a-e.e.b):(s.a=g.a+(c.a-g.a)/2+a,s.b=c.b+(g.b-c.b)/2+a):c.b>=g.b?(s.a=c.a+(g.a-c.a)/2+a,s.b=g.b+(c.b-g.b)/2+a):(s.a=c.a+(g.a-c.a)/2+a,s.b=c.b+(g.b-c.b)/2-a-e.e.b))}function Y6(e){var t,i,s,a,c,b,g,m;if(!e.f){if(m=new L1e,g=new L1e,t=B5,b=t.a.zc(e,t),b==null){for(c=new Sn(rl(e));c.e!=c.i.gc();)a=f(Cn(c),29),Ii(m,Y6(a));t.a.Bc(e)!=null,t.a.gc()==0}for(s=(!e.s&&(e.s=new qe(rc,e,21,17)),new Sn(e.s));s.e!=s.i.gc();)i=f(Cn(s),179),ve(i,102)&&zn(g,f(i,19));Qv(g),e.r=new Fht(e,(f(Se(Ve((C1(),un).o),6),19),g.i),g.g),Ii(m,e.r),Qv(m),e.f=new WS((f(Se(Ve(un.o),5),19),m.i),m.g),Bc(e).b&=-3}return e.f}function XRt(e){vm(e,new gw(wm(pm(gm(bm(new F0,Sw),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new j0))),it(e,Sw,oie,dt(z4e)),it(e,Sw,sie,dt(xse)),it(e,Sw,j3,dt($It)),it(e,Sw,fy,dt(V4e)),it(e,Sw,dRe,dt(NIt)),it(e,Sw,hRe,dt(OIt)),it(e,Sw,fRe,dt(MIt)),it(e,Sw,pRe,dt(PIt)),it(e,Sw,_Re,dt(IIt)),it(e,Sw,SRe,dt(Rse)),it(e,Sw,ERe,dt(G4e)),it(e,Sw,kRe,dt(NG))}function rU(){rU=F,dOe=se(ie(df,1),zh,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),kDt=new RegExp(`[ +\r\f]+`);try{L5=se(ie($Fn,1),on,2114,0,[new NO((eme(),cH("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",w7((rF(),rF(),OI))))),new NO(cH("yyyy-MM-dd'T'HH:mm:ss'.'SSS",w7(OI))),new NO(cH("yyyy-MM-dd'T'HH:mm:ss",w7(OI))),new NO(cH("yyyy-MM-dd'T'HH:mm",w7(OI))),new NO(cH("yyyy-MM-dd",w7(OI)))])}catch(e){if(e=mi(e),!ve(e,82))throw ne(e)}}function JMn(e,t){var i,s,a,c;if(a=Uc(e.d,1)!=0,s=i3e(e,t),s==0&&wt(gt(V(t.j,(nt(),t0)))))return 0;!wt(gt(V(t.j,(nt(),t0))))&&!wt(gt(V(t.j,z2)))||Ne(V(t.j,(pt(),Np)))===Ne((Wh(),Dg))?t.c.mg(t.e,a):a=wt(gt(V(t.j,t0))),KN(e,t,a,!0),wt(gt(V(t.j,z2)))&&Xe(t.j,z2,(cn(),!1)),wt(gt(V(t.j,t0)))&&(Xe(t.j,t0,(cn(),!1)),Xe(t.j,z2,!0)),i=i3e(e,t);do{if(bSe(e),i==0)return 0;a=!a,c=i,KN(e,t,a,!1),i=i3e(e,t)}while(c>i);return c}function JRt(e,t){var i,s,a,c;if(a=Uc(e.d,1)!=0,s=LH(e,t),s==0&&wt(gt(V(t.j,(nt(),t0)))))return 0;!wt(gt(V(t.j,(nt(),t0))))&&!wt(gt(V(t.j,z2)))||Ne(V(t.j,(pt(),Np)))===Ne((Wh(),Dg))?t.c.mg(t.e,a):a=wt(gt(V(t.j,t0))),KN(e,t,a,!0),wt(gt(V(t.j,z2)))&&Xe(t.j,z2,(cn(),!1)),wt(gt(V(t.j,t0)))&&(Xe(t.j,t0,(cn(),!1)),Xe(t.j,z2,!0)),i=LH(e,t);do{if(bSe(e),i==0)return 0;a=!a,c=i,KN(e,t,a,!1),i=LH(e,t)}while(c>i);return c}function R3e(e,t,i,s){var a,c,b,g,m,_,k,I,D;return m=uo(new tt(i.a,i.b),e),_=m.a*t.b-m.b*t.a,k=t.a*s.b-t.b*s.a,I=(m.a*s.b-m.b*s.a)/k,D=_/k,k==0?_==0?(a=Mr(new tt(i.a,i.b),Nh(new tt(s.a,s.b),.5)),c=I1(e,a),b=I1(Mr(new tt(e.a,e.b),t),a),g=h.Math.sqrt(s.a*s.a+s.b*s.b)*.5,c=0&&I<=1&&D>=0&&D<=1?Mr(new tt(e.a,e.b),Nh(new tt(t.a,t.b),I)):null}function YMn(e,t,i){var s,a,c,b,g;if(s=f(V(e,(pt(),$le)),21),i.a>t.a&&(s.Hc((bw(),S5))?e.c.a+=(i.a-t.a)/2:s.Hc(E5)&&(e.c.a+=i.a-t.a)),i.b>t.b&&(s.Hc((bw(),R5))?e.c.b+=(i.b-t.b)/2:s.Hc(k5)&&(e.c.b+=i.b-t.b)),f(V(e,(nt(),ma)),21).Hc((As(),af))&&(i.a>t.a||i.b>t.b))for(g=new ee(e.a);g.at.a&&(s.Hc((bw(),S5))?e.c.a+=(i.a-t.a)/2:s.Hc(E5)&&(e.c.a+=i.a-t.a)),i.b>t.b&&(s.Hc((bw(),R5))?e.c.b+=(i.b-t.b)/2:s.Hc(k5)&&(e.c.b+=i.b-t.b)),f(V(e,(nt(),ma)),21).Hc((As(),af))&&(i.a>t.a||i.b>t.b))for(b=new ee(e.a);b.a0?e.i:0)>t&&m>0&&(c=0,b+=m+e.i,a=h.Math.max(a,D),s+=m+e.i,m=0,D=0,i&&(++I,lt(e.n,new YB(e.s,b,e.i))),g=0),D+=_.g+(g>0?e.i:0),m=h.Math.max(m,_.f),i&&J2e(f(yt(e.n,I),209),_),c+=_.g+(g>0?e.i:0),++g;return a=h.Math.max(a,D),s+=m,i&&(e.r=a,e.d=s,eEe(e.j)),new Gu(e.s,e.t,a,s)}function zne(e){var t,i,s,a,c,b,g,m,_,k,I,D;for(e.b=!1,I=hi,m=to,D=hi,_=to,s=e.e.a.ec().Kc();s.Ob();)for(i=f(s.Pb(),272),a=i.a,I=h.Math.min(I,a.c),m=h.Math.max(m,a.c+a.b),D=h.Math.min(D,a.d),_=h.Math.max(_,a.d+a.a),b=new ee(i.c);b.ae.o.a&&(k=(m-e.o.a)/2,g.b=h.Math.max(g.b,k),g.c=h.Math.max(g.c,k))}}function t9n(e){var t,i,s,a,c,b,g,m;for(c=new Vgt,Pgn(c,(g3(),f9t)),s=(a=jee(e,Fe(_t,rt,2,0,6,1)),new YT(new kc(new jY(e,a).b)));s.bg?1:-1:GSe(e.a,t.a,c),a==-1)I=-m,k=b==m?cee(t.a,g,e.a,c):fee(t.a,g,e.a,c);else if(I=b,b==m){if(a==0)return Uh(),MI;k=cee(e.a,c,t.a,g)}else k=fee(e.a,c,t.a,g);return _=new Y0(I,k.length,k),t6(_),_}function n9n(e,t){var i,s,a,c;if(c=ORt(t),!t.c&&(t.c=new qe(Mc,t,9,9)),Mi(new Wt(null,(!t.c&&(t.c=new qe(Mc,t,9,9)),new Vt(t.c,16))),new Brt(c)),a=f(V(c,(nt(),ma)),21),qDn(t,a),a.Hc((As(),af)))for(s=new Sn((!t.c&&(t.c=new qe(Mc,t,9,9)),t.c));s.e!=s.i.gc();)i=f(Cn(s),123),ELn(e,t,c,i);return f(Qe(t,(pt(),Dw)),181).gc()!=0&&R3t(t,c),wt(gt(V(c,z6e)))&&a.Fc(mV),ri(c,u9)&&Nlt(new C2e(Ae(je(V(c,u9)))),c),Ne(Qe(t,M_))===Ne((vb(),Wg))?Kjn(e,t,c):Ijn(e,t,c),c}function r9n(e){var t,i,s,a,c,b,g,m;for(a=new ee(e.b);a.a0?Vu(i.a,0,c-1):""):(Mo(0,c-1,e.length),e.substr(0,c-1)):i?i.a:e}function i9n(e,t){var i,s,a,c,b,g,m;for(t.Ug("Sort By Input Model "+V(e,(pt(),Np)),1),a=0,s=new ee(e.b);s.a=e.b.length?(c[a++]=b.b[s++],c[a++]=b.b[s++]):s>=b.b.length?(c[a++]=e.b[i++],c[a++]=e.b[i++]):b.b[s]0?e.i:0)),++t;for(u2e(e.n,m),e.d=i,e.r=s,e.g=0,e.f=0,e.e=0,e.o=hi,e.p=hi,c=new ee(e.b);c.a0&&(a=(!e.n&&(e.n=new qe(Fs,e,1,7)),f(Se(e.n,0),135)).a,!a||br(br((t.a+=' "',t),a),'"'))),i=(!e.b&&(e.b=new en(Dn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new en(Dn,e,5,8)),e.c.i<=1))),i?t.a+=" [":t.a+=" ",br(t,yme(new IY,new Sn(e.b))),i&&(t.a+="]"),t.a+=hie,i&&(t.a+="["),br(t,yme(new IY,new Sn(e.c))),i&&(t.a+="]"),t.a)}function s9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln;for(Ke=e.c,Ze=t.c,i=il(Ke.a,e,0),s=il(Ze.a,t,0),_e=f(Zm(e,(Cs(),Pc)).Kc().Pb(),12),Nt=f(Zm(e,Ta).Kc().Pb(),12),Ce=f(Zm(t,Pc).Kc().Pb(),12),ln=f(Zm(t,Ta).Kc().Pb(),12),oe=Fh(_e.e),ut=Fh(Nt.g),ge=Fh(Ce.e),Dt=Fh(ln.g),r_(e,s,Ze),b=ge,k=0,U=b.length;kk?new tw((Td(),U_),i,t,_-k):_>0&&k>0&&(new tw((Td(),U_),t,i,0),new tw(U_,i,t,0))),b)}function c9n(e,t,i){var s,a,c;for(e.a=new st,c=Hn(t.b,0);c.b!=c.d.c;){for(a=f(Bn(c),40);f(V(a,(Il(),ip)),17).a>e.a.c.length-1;)lt(e.a,new io(C2,lCe));s=f(V(a,ip),17).a,i==(Xi(),Js)||i==al?(a.e.aAe(je(f(yt(e.a,s),42).b))&&aY(f(yt(e.a,s),42),a.e.a+a.f.a)):(a.e.bAe(je(f(yt(e.a,s),42).b))&&aY(f(yt(e.a,s),42),a.e.b+a.f.b))}}function ZRt(e,t,i,s){var a,c,b,g,m,_,k;if(c=rH(s),g=wt(gt(V(s,(pt(),B6e)))),(g||wt(gt(V(e,PV))))&&!HS(f(V(e,Oi),101)))a=y3(c),m=p3e(e,i,i==(Cs(),Ta)?a:EN(a));else switch(m=new ia,Sl(m,e),t?(k=m.n,k.a=t.a-e.n.a,k.b=t.b-e.n.b,oEt(k,0,0,e.o.a,e.o.b),so(m,vRt(m,c))):(a=y3(c),so(m,i==(Cs(),Ta)?a:EN(a))),b=f(V(s,(nt(),ma)),21),_=m.j,c.g){case 2:case 1:(_==(ft(),bn)||_==jn)&&b.Fc((As(),U2));break;case 4:case 3:(_==(ft(),_n)||_==wn)&&b.Fc((As(),U2))}return m}function ext(e,t){var i,s,a,c,b,g;for(b=new aw(new U0(e.f.b).a);b.b;){if(c=Xm(b),a=f(c.ld(),602),t==1){if(a.Af()!=(Xi(),cf)&&a.Af()!=gh)continue}else if(a.Af()!=(Xi(),Js)&&a.Af()!=al)continue;switch(s=f(f(c.md(),42).b,86),g=f(f(c.md(),42).a,194),i=g.c,a.Af().g){case 2:s.g.c=e.e.a,s.g.b=h.Math.max(1,s.g.b+i);break;case 1:s.g.c=s.g.c+i,s.g.b=h.Math.max(1,s.g.b-i);break;case 4:s.g.d=e.e.b,s.g.a=h.Math.max(1,s.g.a+i);break;case 3:s.g.d=s.g.d+i,s.g.a=h.Math.max(1,s.g.a-i)}}}function u9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(g=Fe(Xn,wr,28,t.b.c.length,15,1),_=Fe(Hse,Je,273,t.b.c.length,0,1),m=Fe(Op,$g,10,t.b.c.length,0,1),I=e.a,D=0,W=I.length;D0&&m[s]&&(U=zS(e.b,m[s],a)),z=h.Math.max(z,a.c.c.b+U);for(c=new ee(k.e);c.a1)throw ne(new hn(jM));m||(c=yp(t,s.Kc().Pb()),b.Fc(c))}return $Se(e,YEe(e,t,i),b)}function oU(e,t,i){var s,a,c,b,g,m,_,k;if(xb(e.e,t))m=(Ss(),f(t,69).xk()?new mB(t,e):new l7(t,e)),FH(m.c,m.b),N$(m,f(i,16));else{for(k=Fa(e.e.Dh(),t),s=f(e.g,124),b=0;b"}m!=null&&(t.a+=""+m)}else e.e?(g=e.e.zb,g!=null&&(t.a+=""+g)):(t.a+="?",e.b?(t.a+=" super ",Yne(e.b,t)):e.f&&(t.a+=" extends ",Yne(e.f,t)))}function b9n(e){e.b=null,e.a=null,e.o=null,e.q=null,e.v=null,e.w=null,e.B=null,e.p=null,e.Q=null,e.R=null,e.S=null,e.T=null,e.U=null,e.V=null,e.W=null,e.bb=null,e.eb=null,e.ab=null,e.H=null,e.db=null,e.c=null,e.d=null,e.f=null,e.n=null,e.r=null,e.s=null,e.u=null,e.G=null,e.J=null,e.e=null,e.j=null,e.i=null,e.g=null,e.k=null,e.t=null,e.F=null,e.I=null,e.L=null,e.M=null,e.O=null,e.P=null,e.$=null,e.N=null,e.Z=null,e.cb=null,e.K=null,e.D=null,e.A=null,e.C=null,e._=null,e.fb=null,e.X=null,e.Y=null,e.gb=!1,e.hb=!1}function g9n(e){var t,i,s,a;if(s=cre((!e.c&&(e.c=L7(Gl(e.f))),e.c),0),e.e==0||e.a==0&&e.f!=-1&&e.e<0)return s;if(t=gSe(e)<0?1:0,i=e.e,a=(s.length+1+h.Math.abs(oo(e.e)),new jk),t==1&&(a.a+="-"),e.e>0)if(i-=s.length-t,i>=0){for(a.a+="0.";i>$w.length;i-=$w.length)Xht(a,$w);Odt(a,$w,oo(i)),br(a,(pn(t,s.length+1),s.substr(t)))}else i=t-i,br(a,Vu(s,t,oo(i))),a.a+=".",br(a,bve(s,oo(i)));else{for(br(a,(pn(t,s.length+1),s.substr(t)));i<-$w.length;i+=$w.length)Xht(a,$w);Odt(a,$w,oo(-i))}return a.a}function Qne(e){var t,i,s,a,c,b,g,m,_;return!(e.k!=(gn(),ji)||e.j.c.length<=1||(c=f(V(e,(pt(),Oi)),101),c==(Co(),ya))||(a=(n_(),(e.q?e.q:(qt(),qt(),Ip))._b(Ty)?s=f(V(e,Ty),203):s=f(V(Go(e),ZI),203),s),a==UV)||!(a==Z2||a==Q2)&&(b=Ae(je(t_(e,e5))),t=f(V(e,d9),140),!t&&(t=new Qme(b,b,b,b)),_=Rl(e,(ft(),wn)),m=t.d+t.a+(_.gc()-1)*b,m>e.o.b||(i=Rl(e,_n),g=t.d+t.a+(i.gc()-1)*b,g>e.o.b)))}function w9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;t.Ug("Orthogonal edge routing",1),_=Ae(je(V(e,(pt(),Y2)))),i=Ae(je(V(e,X2))),s=Ae(je(V(e,jw))),D=new _Z(0,i),X=0,b=new No(e.b,0),g=null,k=null,m=null,I=null;do k=b.b0?(W=(U-1)*i,g&&(W+=s),k&&(W+=s),W<_&&!a&&!c&&(W=_),X+=W):!a&&!c&&(X+=_),g=k,m=I;while(k);e.f.a=X,t.Vg()}function sU(e,t){var i,s,a,c,b,g,m,_,k,I;if(k=null,e.d&&(k=f(ua(e.d,t),142)),!k){if(c=e.a.vi(),I=c.i,!e.d||u$(e.d)!=I){for(m=new Fn,e.d&&h6(m,e.d),_=m.f.c+m.i.c,g=_;gt||wt(gt(Qe(m,(sh(),R9)))))&&(a=0,c+=k.b+i,sn(I.c,k),k=new Kve(c,i),s=new ete(0,k.f,k,i),PW(k,s),a=0),s.b.c.length==0||!wt(gt(Qe(di(m),(sh(),Uae))))&&(m.f>=s.o&&m.f<=s.f||s.a*.5<=m.f&&s.a*1.5>=m.f)?g2e(s,m):(b=new ete(s.s+s.r+i,k.f,k,i),PW(k,b),g2e(b,m)),a=m.i+m.g;return sn(I.c,k),I}function Z6(e){var t,i,s,a;if(!(e.b==null||e.b.length<=2)&&!e.a){for(t=0,a=0;a=e.b[a+1])a+=2;else if(i0)for(s=new Rc(f(Hr(e.a,c),21)),qt(),Hi(s,new h0e(t)),a=new No(c.b,0);a.b0&&s>=-6?s>=0?u7(c,i-oo(e.e),"."):(Uee(c,t-1,t-1,"0."),u7(c,t+1,Bh($w,0,-oo(s)-1))):(i-t>=1&&(u7(c,t,"."),++i),u7(c,i,"E"),s>0&&u7(c,++i,"+"),u7(c,++i,""+z$(Gl(s)))),e.g=c.a,e.g))}function C9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut;s=Ae(je(V(t,(pt(),U6e)))),Ke=f(V(t,t5),17).a,D=4,a=3,Ze=20/Ke,W=!1,m=0,b=Nr;do{for(c=m!=1,I=m!=0,ut=0,X=e.a,ge=0,Ce=X.length;geKe)?(m=2,b=Nr):m==0?(m=1,b=ut):(m=0,b=ut)):(W=ut>=b||b-ut0?1:km(isNaN(s),isNaN(0)))>=0^(td(Qh),(h.Math.abs(g)<=Qh||g==0||isNaN(g)&&isNaN(0)?0:g<0?-1:g>0?1:km(isNaN(g),isNaN(0)))>=0)?h.Math.max(g,s):(td(Qh),(h.Math.abs(s)<=Qh||s==0||isNaN(s)&&isNaN(0)?0:s<0?-1:s>0?1:km(isNaN(s),isNaN(0)))>0?h.Math.sqrt(g*g+s*s):-h.Math.sqrt(g*g+s*s))}function ww(e,t){var i,s,a,c,b,g;if(t){if(!e.a&&(e.a=new tF),e.e==2){eF(e.a,t);return}if(t.e==1){for(a=0;a=ys?Ms(i,b2e(s)):hC(i,s&Ji),b=new BZ(10,null,0),dvn(e.a,b,g-1)):(i=(b.Mm().length+c,new a$),Ms(i,b.Mm())),t.e==0?(s=t.Km(),s>=ys?Ms(i,b2e(s)):hC(i,s&Ji)):Ms(i,t.Mm()),f(b,530).b=i.a}}function $9n(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(!i.dc()){for(g=0,D=0,s=i.Kc(),U=f(s.Pb(),17).a;g1&&(m=_.Hg(m,e.a,g));return m.c.length==1?f(yt(m,m.c.length-1),238):m.c.length==2?y9n((Xt(0,m.c.length),f(m.c[0],238)),(Xt(1,m.c.length),f(m.c[1],238)),b,c):null}function M9n(e,t,i){var s,a,c,b,g,m,_;for(i.Ug("Find roots",1),e.a.c.length=0,a=Hn(t.b,0);a.b!=a.d.c;)s=f(Bn(a),40),s.b.b==0&&(Xe(s,(ei(),s0),(cn(),!0)),lt(e.a,s));switch(e.a.c.length){case 0:c=new Zee(0,t,"DUMMY_ROOT"),Xe(c,(ei(),s0),(cn(),!0)),Xe(c,dae,!0),hr(t.b,c);break;case 1:break;default:for(b=new Zee(0,t,KU),m=new ee(e.a);m.a=h.Math.abs(s.b)?(s.b=0,c.d+c.a>b.d&&c.db.c&&c.c0){if(t=new Jwe(e.i,e.g),i=e.i,c=i<100?null:new y1(i),e.Tj())for(s=0;s0){for(g=e.g,_=e.i,s6(e),c=_<100?null:new y1(_),s=0;s<_;++s)b=g[s],c=e.Oj(b,c);c&&c.oj()}else s6(e);else s6(e)}function A3e(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(Gyt(this),i==(Wm(),o0)?Zi(this.r,e):Zi(this.w,e),k=hi,_=to,b=t.a.ec().Kc();b.Ob();)a=f(b.Pb(),42),g=f(a.a,465),s=f(a.b,18),m=s.c,m==e&&(m=s.d),g==o0?Zi(this.r,m):Zi(this.w,m),D=(ft(),tc).Hc(m.j)?Ae(je(V(m,(nt(),c4)))):kl(se(ie(wo,1),rt,8,0,[m.i.n,m.n,m.a])).b,k=h.Math.min(k,D),_=h.Math.max(_,D);for(I=(ft(),tc).Hc(e.j)?Ae(je(V(e,(nt(),c4)))):kl(se(ie(wo,1),rt,8,0,[e.i.n,e.n,e.a])).b,Y2t(this,I,k,_),c=t.a.ec().Kc();c.Ob();)a=f(c.Pb(),42),lEt(this,f(a.b,18));this.o=!1}function L9n(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn;return i=e.l&8191,s=e.l>>13|(e.m&15)<<9,a=e.m>>4&8191,c=e.m>>17|(e.h&255)<<5,b=(e.h&1048320)>>8,g=t.l&8191,m=t.l>>13|(t.m&15)<<9,_=t.m>>4&8191,k=t.m>>17|(t.h&255)<<5,I=(t.h&1048320)>>8,Dt=i*g,Nt=s*g,ln=a*g,an=c*g,Tn=b*g,m!=0&&(Nt+=i*m,ln+=s*m,an+=a*m,Tn+=c*m),_!=0&&(ln+=i*_,an+=s*_,Tn+=a*_),k!=0&&(an+=i*k,Tn+=s*k),I!=0&&(Tn+=i*I),W=Dt&Vc,U=(Nt&511)<<13,D=W+U,X=Dt>>22,oe=Nt>>9,ge=(ln&262143)<<4,_e=(an&31)<<17,z=X+oe+ge+_e,Ke=ln>>18,Ze=an>>5,ut=(Tn&4095)<<8,Ce=Ke+Ze+ut,z+=D>>22,D&=Vc,Ce+=z>>22,z&=Vc,Ce&=Ab,Oa(D,z,Ce)}function fxt(e){var t,i,s,a,c,b,g;if(g=f(yt(e.j,0),12),g.g.c.length!=0&&g.e.c.length!=0)throw ne(new Us("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(g.g.c.length!=0){for(c=hi,i=new ee(g.g);i.a4)if(e.fk(t)){if(e.al()){if(a=f(t,54),s=a.Eh(),m=s==e.e&&(e.ml()?a.yh(a.Fh(),e.il())==e.jl():-1-a.Fh()==e.Lj()),e.nl()&&!m&&!s&&a.Jh()){for(c=0;c0&&dEt(e,g,I);for(a=new ee(I);a.ae.d[b.p]&&(i+=a_e(e.b,c)*f(m.b,17).a,$1(e.a,ot(c)));for(;!l$(e.a);)W_e(e.b,f(t3(e.a),17).a)}return i}function B9n(e,t){var i,s,a,c,b,g,m,_,k,I;if(k=f(V(e,(nt(),Dl)),64),s=f(yt(e.j,0),12),k==(ft(),bn)?so(s,jn):k==jn&&so(s,bn),f(V(t,(pt(),Dw)),181).Hc((su(),Vw))){if(m=Ae(je(V(e,p4))),_=Ae(je(V(e,b4))),b=Ae(je(V(e,B_))),g=f(V(t,j_),21),g.Hc(($c(),Mb)))for(i=_,I=e.o.a/2-s.n.a,c=new ee(s.f);c.a0&&(_=e.n.a/c);break;case 2:case 4:a=e.i.o.b,a>0&&(_=e.n.b/a)}Xe(e,(nt(),Ry),_)}if(m=e.o,b=e.a,s)b.a=s.a,b.b=s.b,e.d=!0;else if(t!=mh&&t!=u0&&g!=Cl)switch(g.g){case 1:b.a=m.a/2;break;case 2:b.a=m.a,b.b=m.b/2;break;case 3:b.a=m.a/2,b.b=m.b;break;case 4:b.b=m.b/2}else b.a=m.a/2,b.b=m.b/2}function eI(e){var t,i,s,a,c,b,g,m,_,k;if(e.Pj())if(k=e.Ej(),m=e.Qj(),k>0)if(t=new vSe(e.pj()),i=k,c=i<100?null:new y1(i),b7(e,i,t.g),a=i==1?e.Ij(4,Se(t,0),null,0,m):e.Ij(6,t,null,-1,m),e.Mj()){for(s=new Sn(t);s.e!=s.i.gc();)c=e.Oj(Cn(s),c);c?(c.nj(a),c.oj()):e.Jj(a)}else c?(c.nj(a),c.oj()):e.Jj(a);else b7(e,e.Ej(),e.Fj()),e.Jj(e.Ij(6,(qt(),ps),null,-1,m));else if(e.Mj())if(k=e.Ej(),k>0){for(g=e.Fj(),_=k,b7(e,k,g),c=_<100?null:new y1(_),s=0;s<_;++s)b=g[s],c=e.Oj(b,c);c&&c.oj()}else b7(e,e.Ej(),e.Fj());else b7(e,e.Ej(),e.Fj())}function V9n(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X;for(g=Fe(Ro,js,28,e.c.length,15,1),D=new $B(new KQe),iEe(D,e),_=0,z=new st;D.b.c.length!=0;)if(b=f(D.b.c.length==0?null:yt(D.b,0),163),_>1&&dc(b)*ru(b)/2>g[0]){for(c=0;cg[c];)++c;U=new dg(z,0,c+1),I=new CW(U),k=dc(b)/ru(b),m=lre(I,t,new Pk,i,s,a,k),Mr(xd(I.e),m),Qk(aA(D,I),AA),W=new dg(z,c+1,z.c.length),iEe(D,W),z.c.length=0,_=0,dpt(g,g.length,0)}else X=D.b.c.length==0?null:yt(D.b,0),X!=null&&Mee(D,0),_>0&&(g[_]=g[_-1]),g[_]+=dc(b)*ru(b),++_,sn(z.c,b);return z}function z9n(e,t){var i,s,a,c;i=t.b,c=new Rc(i.j),a=0,s=i.j,s.c.length=0,Pm(f(lw(e.b,(ft(),bn),(qm(),Sy)),15),i),a=AN(c,a,new uXe,s),Pm(f(lw(e.b,bn,e0),15),i),a=AN(c,a,new rXe,s),Pm(f(lw(e.b,bn,_y),15),i),Pm(f(lw(e.b,_n,Sy),15),i),Pm(f(lw(e.b,_n,e0),15),i),a=AN(c,a,new fXe,s),Pm(f(lw(e.b,_n,_y),15),i),Pm(f(lw(e.b,jn,Sy),15),i),a=AN(c,a,new dXe,s),Pm(f(lw(e.b,jn,e0),15),i),a=AN(c,a,new hXe,s),Pm(f(lw(e.b,jn,_y),15),i),Pm(f(lw(e.b,wn,Sy),15),i),a=AN(c,a,new sXe,s),Pm(f(lw(e.b,wn,e0),15),i),Pm(f(lw(e.b,wn,_y),15),i)}function K9n(e,t,i){var s,a,c,b,g,m,_,k,I,D,W;for(g=new ee(t);g.a.5?oe-=b*2*(U-.5):U<.5&&(oe+=c*2*(.5-U)),a=g.d.b,oeX.a-z-k&&(oe=X.a-z-k),g.n.a=t+oe}}function Y9n(e){var t,i,s,a,c;if(s=f(V(e,(pt(),Ha)),171),s==(ef(),n0)){for(i=new kn(xn(go(e).a.Kc(),new O));Un(i);)if(t=f(On(i),18),!x0t(t))throw ne(new rg(wie+$N(e)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(s==O_){for(c=new kn(xn(Wi(e).a.Kc(),new O));Un(c);)if(a=f(On(c),18),!x0t(a))throw ne(new rg(wie+$N(e)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function tM(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U;if(e.e&&e.c.c>19&&(t=UC(t),m=!m),b=MPn(t),c=!1,a=!1,s=!1,e.h==fM&&e.m==0&&e.l==0)if(a=!0,c=!0,b==-1)e=Qut((xC(),GAe)),s=!0,m=!m;else return g=Cke(e,b),m&&Qee(g),i&&(J1=Oa(0,0,0)),g;else e.h>>19&&(c=!0,e=UC(e),s=!0,m=!m);return b!=-1?uxn(e,b,m,c,i):dEe(e,t)<0?(i&&(c?J1=UC(e):J1=Oa(e.l,e.m,e.h)),Oa(0,0,0)):PNn(s?e:Oa(e.l,e.m,e.h),t,m,c,a,i)}function nre(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U;if(b=e.e,m=t.e,b==0)return t;if(m==0)return e;if(c=e.d,g=t.d,c+g==2)return i=fo(e.a[0],Ts),s=fo(t.a[0],Ts),b==m?(k=is(i,s),U=tr(k),W=tr(x1(k,32)),W==0?new pb(b,U):new Y0(b,2,se(ie(Xn,1),wr,28,15,[U,W]))):(Uh(),GF(b<0?vf(s,i):vf(i,s),0)?j1(b<0?vf(s,i):vf(i,s)):X$(j1(gg(b<0?vf(s,i):vf(i,s)))));if(b==m)D=b,I=c>=g?fee(e.a,c,t.a,g):fee(t.a,g,e.a,c);else{if(a=c!=g?c>g?1:-1:GSe(e.a,t.a,c),a==0)return Uh(),MI;a==1?(D=b,I=cee(e.a,c,t.a,g)):(D=m,I=cee(t.a,g,e.a,c))}return _=new Y0(D,I.length,I),t6(_),_}function Z9n(e,t){var i,s,a,c,b,g,m;if(!(e.g>t.f||t.g>e.f)){for(i=0,s=0,b=e.w.a.ec().Kc();b.Ob();)a=f(b.Pb(),12),ute(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])).b,t.g,t.f)&&++i;for(g=e.r.a.ec().Kc();g.Ob();)a=f(g.Pb(),12),ute(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])).b,t.g,t.f)&&--i;for(m=t.w.a.ec().Kc();m.Ob();)a=f(m.Pb(),12),ute(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])).b,e.g,e.f)&&++s;for(c=t.r.a.ec().Kc();c.Ob();)a=f(c.Pb(),12),ute(kl(se(ie(wo,1),rt,8,0,[a.i.n,a.n,a.a])).b,e.g,e.f)&&--s;i=0)return i;switch(Lm(Vs(e,i))){case 2:{if(Ht("",vg(e,i.qk()).xe())){if(m=$7(Vs(e,i)),g=gC(Vs(e,i)),k=Ike(e,t,m,g),k)return k;for(a=l3e(e,t),b=0,I=a.gc();b1)throw ne(new hn(jM));for(k=Fa(e.e.Dh(),t),s=f(e.g,124),b=0;b1,_=new Zd(D.b);_l(_.a)||_l(_.b);)m=f(_l(_.a)?Z(_.a):Z(_.b),18),I=m.c==D?m.d:m.c,h.Math.abs(kl(se(ie(wo,1),rt,8,0,[I.i.n,I.n,I.a])).b-b.b)>1&&BOn(e,m,b,c,D)}}function oDn(e){var t,i,s,a,c,b;if(a=new No(e.e,0),s=new No(e.a,0),e.d)for(i=0;iYie;){for(c=t,b=0;h.Math.abs(t-c)0),a.a.Xb(a.c=--a.b),vMn(e,e.b-b,c,s,a),In(a.b0),s.a.Xb(s.c=--s.b)}if(!e.d)for(i=0;i0?(e.f[k.p]=W/(k.e.c.length+k.g.c.length),e.c=h.Math.min(e.c,e.f[k.p]),e.b=h.Math.max(e.b,e.f[k.p])):g&&(e.f[k.p]=W)}}function lDn(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function aDn(e,t,i){var s,a,c,b;for(i.Ug("Graph transformation ("+e.a+")",1),b=Hm(t.a),c=new ee(t.b);c.a=g.b.c)&&(g.b=t),(!g.c||t.c<=g.c.c)&&(g.d=g.c,g.c=t),(!g.e||t.d>=g.e.d)&&(g.e=t),(!g.f||t.d<=g.f.d)&&(g.f=t);return s=new mH((WC(),vy)),j7(e,A5t,new kc(se(ie(YM,1),on,382,0,[s]))),b=new mH(C_),j7(e,C5t,new kc(se(ie(YM,1),on,382,0,[b]))),a=new mH(x_),j7(e,x5t,new kc(se(ie(YM,1),on,382,0,[a]))),c=new mH(L2),j7(e,R5t,new kc(se(ie(YM,1),on,382,0,[c]))),Cne(s.c,vy),Cne(a.c,x_),Cne(c.c,L2),Cne(b.c,C_),g.a.c.length=0,eo(g.a,s.c),eo(g.a,Zu(a.c)),eo(g.a,c.c),eo(g.a,Zu(b.c)),g}function fDn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U;for(t.Ug(x4t,1),W=Ae(je(Qe(e,(Ep(),G_)))),b=Ae(je(Qe(e,(sh(),m5)))),g=f(Qe(e,w5),107),pSe((!e.a&&(e.a=new qe($r,e,10,11)),e.a)),k=lxt((!e.a&&(e.a=new qe($r,e,10,11)),e.a),W,b),!e.a&&(e.a=new qe($r,e,10,11)),_=new ee(k);_.a<_.c.c.length;)for(m=f(Z(_),186),a=new ee(m.a);a.a0&&(e.a=m+(W-1)*c,t.c.b+=e.a,t.f.b+=e.a)),U.a.gc()!=0&&(D=new _Z(1,c),W=N3e(D,t,U,z,t.f.b+m-t.c.b),W>0&&(t.f.b+=m+(W-1)*c))}function pxt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;for(k=Ae(je(V(e,(pt(),Iy)))),s=Ae(je(V(e,Z6e))),D=new YJ,Xe(D,Iy,k+s),_=t,oe=_.d,z=_.c.i,ge=_.d.i,X=rme(z.c),_e=rme(ge.c),a=new st,I=X;I<=_e;I++)g=new kb(e),W0(g,(gn(),vo)),Xe(g,(nt(),Ur),_),Xe(g,Oi,(Co(),ya)),Xe(g,jV,D),W=f(yt(e.b,I),30),I==X?r_(g,W.a.c.length-i,W):Oo(g,W),Ce=Ae(je(V(_,Ng))),Ce<0&&(Ce=0,Xe(_,Ng,Ce)),g.o.b=Ce,U=h.Math.floor(Ce/2),b=new ia,so(b,(ft(),wn)),Sl(b,g),b.n.b=U,m=new ia,so(m,_n),Sl(m,g),m.n.b=U,xo(_,b),c=new Fm,ol(c,_),Xe(c,Xs,null),rs(c,m),xo(c,oe),e$n(g,_,c),sn(a.c,c),_=c;return a}function rre(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e;for(m=f(xg(e,(ft(),wn)).Kc().Pb(),12).e,W=f(xg(e,_n).Kc().Pb(),12).g,g=m.c.length,_e=Yd(f(yt(e.j,0),12));g-- >0;){for(z=(Xt(0,m.c.length),f(m.c[0],18)),a=(Xt(0,W.c.length),f(W.c[0],18)),ge=a.d.e,c=il(ge,a,0),M2n(z,a.d,c),rs(a,null),xo(a,null),U=z.a,t&&hr(U,new us(_e)),s=Hn(a.a,0);s.b!=s.d.c;)i=f(Bn(s),8),hr(U,new us(i));for(oe=z.b,D=new ee(a.b);D.ab)&&Zi(e.b,f(X.b,18));++g}c=b}}}function I3e(e,t){var i;if(t==null||Ht(t,Za)||t.length==0&&e.k!=(Cg(),sR))return null;switch(e.k.g){case 1:return hH(t,WA)?(cn(),qA):hH(t,boe)?(cn(),Y1):null;case 2:try{return ot(Ru(t,Qo,Nr))}catch(s){if(s=mi(s),ve(s,130))return null;throw ne(s)}case 4:try{return o_(t)}catch(s){if(s=mi(s),ve(s,130))return null;throw ne(s)}case 3:return t;case 5:return Mvt(e),qEt(e,t);case 6:return Mvt(e),dPn(e,e.a,t);case 7:try{return i=E8n(e),i.cg(t),i}catch(s){if(s=mi(s),ve(s,33))return null;throw ne(s)}default:throw ne(new Us("Invalid type set for this layout option."))}}function P3e(e){var t;switch(e.d){case 1:{if(e.Sj())return e.o!=-2;break}case 2:{if(e.Sj())return e.o==-2;break}case 3:case 5:case 4:case 6:case 7:return e.o>-2;default:return!1}switch(t=e.Rj(),e.p){case 0:return t!=null&&wt(gt(t))!=T$(e.k,0);case 1:return t!=null&&f(t,222).a!=tr(e.k)<<24>>24;case 2:return t!=null&&f(t,180).a!=(tr(e.k)&Ji);case 6:return t!=null&&T$(f(t,168).a,e.k);case 5:return t!=null&&f(t,17).a!=tr(e.k);case 7:return t!=null&&f(t,191).a!=tr(e.k)<<16>>16;case 3:return t!=null&&Ae(je(t))!=e.j;case 4:return t!=null&&f(t,161).a!=e.j;default:return t==null?e.n!=null:!Lr(t,e.n)}}function nM(e,t,i){var s,a,c,b;return e.ol()&&e.nl()&&(b=bZ(e,f(i,58)),Ne(b)!==Ne(i))?(e.xj(t),e.Dj(t,mwt(e,t,b)),e.al()&&(c=(a=f(i,54),e.ml()?e.kl()?a.Th(e.b,Es(f(tn(Xa(e.b),e.Lj()),19)).n,f(tn(Xa(e.b),e.Lj()).Hk(),29).kk(),null):a.Th(e.b,yi(a.Dh(),Es(f(tn(Xa(e.b),e.Lj()),19))),null,null):a.Th(e.b,-1-e.Lj(),null,null)),!f(b,54).Ph()&&(c=(s=f(b,54),e.ml()?e.kl()?s.Rh(e.b,Es(f(tn(Xa(e.b),e.Lj()),19)).n,f(tn(Xa(e.b),e.Lj()).Hk(),29).kk(),c):s.Rh(e.b,yi(s.Dh(),Es(f(tn(Xa(e.b),e.Lj()),19))),null,c):s.Rh(e.b,-1-e.Lj(),null,c))),c&&c.oj()),eu(e.b)&&e.Jj(e.Ij(9,i,b,t,!1)),b):i}function bxt(e){var t,i,s,a,c,b,g,m,_,k;for(s=new st,b=new ee(e.e.a);b.a0&&(b=h.Math.max(b,vyt(e.C.b+s.d.b,a))),k=s,I=a,D=c;e.C&&e.C.c>0&&(W=D+e.C.c,_&&(W+=k.d.c),b=h.Math.max(b,(Kd(),td(ah),h.Math.abs(I-1)<=ah||I==1||isNaN(I)&&isNaN(1)?0:W/(1-I)))),i.n.b=0,i.a.a=b}function wxt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W;if(i=f(Ds(e.b,t),127),m=f(f(Hr(e.r,t),21),87),m.dc()){i.n.d=0,i.n.a=0;return}for(_=e.u.Hc(($c(),Mb)),b=0,e.A.Hc((su(),Vw))&&z3t(e,t),g=m.Kc(),k=null,D=0,I=0;g.Ob();)s=f(g.Pb(),117),c=Ae(je(s.b.of((rB(),IG)))),a=s.b.Mf().b,k?(W=I+k.d.a+e.w+s.d.d,b=h.Math.max(b,(Kd(),td(ah),h.Math.abs(D-c)<=ah||D==c||isNaN(D)&&isNaN(c)?0:W/(c-D)))):e.C&&e.C.d>0&&(b=h.Math.max(b,vyt(e.C.d+s.d.d,c))),k=s,D=c,I=a;e.C&&e.C.a>0&&(W=I+e.C.a,_&&(W+=k.d.a),b=h.Math.max(b,(Kd(),td(ah),h.Math.abs(D-1)<=ah||D==1||isNaN(D)&&isNaN(1)?0:W/(1-D)))),i.n.d=0,i.a.b=b}function pDn(e,t,i,s,a,c,b,g){var m,_,k,I,D,W,U,z,X,oe;if(U=!1,_=Fke(i.q,t.f+t.b-i.q.f),W=s.f>t.b&&g,oe=a-(i.q.e+_-b),I=(m=Q6(s,oe,!1),m.a),W&&I>s.f)return!1;if(W){for(D=0,X=new ee(t.d);X.a=(Xt(c,e.c.length),f(e.c[c],186)).e,!W&&I>t.b&&!k)?!1:((k||W||I<=t.b)&&(k&&I>t.b?(i.d=I,K7(i,rEt(i,I))):(_2t(i.q,_),i.c=!0),K7(s,a-(i.s+i.r)),TN(s,i.q.e+i.q.d,t.f),PW(t,s),e.c.length>c&&(PN((Xt(c,e.c.length),f(e.c[c],186)),s),(Xt(c,e.c.length),f(e.c[c],186)).a.c.length==0&&pg(e,c)),U=!0),U)}function mxt(e,t,i){var s,a,c,b,g,m;for(this.g=e,g=t.d.length,m=i.d.length,this.d=Fe(Op,$g,10,g+m,0,1),b=0;b0?Aee(this,this.f/this.a):qd(t.g,t.d[0]).a!=null&&qd(i.g,i.d[0]).a!=null?Aee(this,(Ae(qd(t.g,t.d[0]).a)+Ae(qd(i.g,i.d[0]).a))/2):qd(t.g,t.d[0]).a!=null?Aee(this,qd(t.g,t.d[0]).a):qd(i.g,i.d[0]).a!=null&&Aee(this,qd(i.g,i.d[0]).a)}function bDn(e,t){var i,s,a,c,b,g,m,_,k,I;for(e.a=new Ypt(YRn(C5)),s=new ee(t.a);s.a=1&&(X-b>0&&I>=0?(m.n.a+=z,m.n.b+=c*b):X-b<0&&k>=0&&(m.n.a+=z*X,m.n.b+=c));e.o.a=t.a,e.o.b=t.b,Xe(e,(pt(),Dw),(su(),s=f(kd(N5),9),new Uu(s,f(Yf(s,s.length),9),0)))}function mDn(e,t,i,s,a,c){var b;if(!(t==null||!_te(t,vOe,_Oe)))throw ne(new hn("invalid scheme: "+t));if(!e&&!(i!=null&&Ph(i,Qa(35))==-1&&i.length>0&&(pn(0,i.length),i.charCodeAt(0)!=47)))throw ne(new hn("invalid opaquePart: "+i));if(e&&!(t!=null&&UO(Fz,t.toLowerCase()))&&!(i==null||!_te(i,j5,F5)))throw ne(new hn(e$t+i));if(e&&t!=null&&UO(Fz,t.toLowerCase())&&!Y$n(i))throw ne(new hn(e$t+i));if(!rAn(s))throw ne(new hn("invalid device: "+s));if(!Wxn(a))throw b=a==null?"invalid segments: null":"invalid segment: "+Lxn(a),ne(new hn(b));if(!(c==null||Ph(c,Qa(35))==-1))throw ne(new hn("invalid query: "+c))}function yDn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;if(i.Ug("Network simplex layering",1),e.b=t,oe=f(V(t,(pt(),t5)),17).a*4,X=e.b.a,X.c.length<1){i.Vg();return}for(c=gNn(e,X),z=null,a=Hn(c,0);a.b!=a.d.c;){for(s=f(Bn(a),15),g=oe*oo(h.Math.sqrt(s.gc())),b=INn(s),Fne(Q0e(ybn(Z0e(qQ(b),g),z),!0),i.eh(1)),D=e.b.b,U=new ee(b.a);U.a1)for(z=Fe(Xn,wr,28,e.b.b.c.length,15,1),I=0,_=new ee(e.b.b);_.a<_.c.c.length;)m=f(Z(_),30),z[I++]=m.a.c.length}X.c.length=0,e.a=null,e.b=null,e.c=null,i.Vg()}function vDn(e,t){var i,s,a,c,b,g,m,_,k,I;for(k=new st,I=new qS,c=null,a=0,s=0;s0){pH(e,i,0),i.a+=String.fromCharCode(s),a=WAn(t,c),pH(e,i,a),c+=a-1;continue}s==39?c+10&&U.a<=0){m.c.length=0,sn(m.c,U);break}W=U.i-U.d,W>=g&&(W>g&&(m.c.length=0,g=W),sn(m.c,U))}m.c.length!=0&&(b=f(yt(m,SH(a,m.c.length)),118),_e.a.Bc(b)!=null,b.g=k++,v3e(b,t,i,s),m.c.length=0)}for(X=e.c.length+1,D=new ee(e);D.ato||t.o==Fw&&k=g&&a<=m)g<=a&&c<=m?(i[k++]=a,i[k++]=c,s+=2):g<=a?(i[k++]=a,i[k++]=m,e.b[s]=m+1,b+=2):c<=m?(i[k++]=g,i[k++]=c,s+=2):(i[k++]=g,i[k++]=m,e.b[s]=m+1);else if(mG1)&&g<10);twe(e.c,new qVe),Sxt(e),pvn(e.c),cDn(e.f)}function ADn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(i=f(V(e,(pt(),Oi)),101),b=e.f,c=e.d,g=b.a+c.b+c.c,m=0-c.d-e.c.b,k=b.b+c.d+c.a-e.c.b,_=new st,I=new st,a=new ee(t);a.a=2){for(m=Hn(i,0),b=f(Bn(m),8),g=f(Bn(m),8);g.a0&&hN(_,!0,(Xi(),al)),g.k==(gn(),Ui)&&sbt(_),xr(e.f,g,t)}}function IDn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;for(a=f(V(e,(ei(),h5)),27),_=Nr,k=Nr,g=Qo,m=Qo,_e=Hn(e.b,0);_e.b!=_e.d.c;)oe=f(Bn(_e),40),W=oe.e,U=oe.f,_=h.Math.min(_,W.a-U.a/2),k=h.Math.min(k,W.b-U.b/2),g=h.Math.max(g,W.a+U.a/2),m=h.Math.max(m,W.b+U.b/2);for(D=f(Qe(a,(Il(),u5e)),107),ge=Hn(e.b,0);ge.b!=ge.d.c;)oe=f(Bn(ge),40),I=V(oe,h5),ve(I,207)&&(c=f(I,27),Wu(c,oe.e.a,oe.e.b),VN(c,oe));for(X=Hn(e.a,0);X.b!=X.d.c;)z=f(Bn(X),65),s=f(V(z,h5),74),s&&(t=z.a,i=w2(s,!0,!0),QN(t,i));Ce=g-_+(D.b+D.c),b=m-k+(D.d+D.a),wt(gt(Qe(a,(Er(),V_))))||ly(a,Ce,b,!1,!1),zr(a,aE,Ce-(D.b+D.c)),zr(a,lE,b-(D.d+D.a))}function kxt(e,t){var i,s,a,c,b,g,m,_,k,I;for(m=!0,a=0,_=e.g[t.p],k=t.o.b+e.o,i=e.d[t.p][2],Ku(e.b,_,ot(f(yt(e.b,_),17).a-1+i)),Ku(e.c,_,Ae(je(yt(e.c,_)))-k+i*e.f),++_,_>=e.j?(++e.j,lt(e.b,ot(1)),lt(e.c,k)):(s=e.d[t.p][1],Ku(e.b,_,ot(f(yt(e.b,_),17).a+1-s)),Ku(e.c,_,Ae(je(yt(e.c,_)))+k-s*e.f)),(e.r==(Sf(),h9)&&(f(yt(e.b,_),17).a>e.k||f(yt(e.b,_-1),17).a>e.k)||e.r==p9&&(Ae(je(yt(e.c,_)))>e.n||Ae(je(yt(e.c,_-1)))>e.n))&&(m=!1),b=new kn(xn(go(t).a.Kc(),new O));Un(b);)c=f(On(b),18),g=c.c.i,e.g[g.p]==_&&(I=kxt(e,g),a=a+f(I.a,17).a,m=m&&wt(gt(I.b)));return e.g[t.p]=_,a=a+e.d[t.p][0],new io(ot(a),(cn(),!!m))}function Rxt(e,t){var i,s,a,c,b;i=Ae(je(V(t,(pt(),ud)))),i<2&&Xe(t,ud,2),s=f(V(t,$u),88),s==(Xi(),wh)&&Xe(t,$u,rH(t)),a=f(V(t,HOt),17),a.a==0?Xe(t,(nt(),tR),new Ete):Xe(t,(nt(),tR),new sW(a.a)),c=gt(V(t,QI)),c==null&&Xe(t,QI,(cn(),Ne(V(t,Ob))===Ne((_b(),C4)))),Mi(new Wt(null,new Vt(t.a,16)),new f0e(e)),Mi(El(new Wt(null,new Vt(t.b,16)),new S1e),new d0e(e)),b=new yxt(t),Xe(t,(nt(),K2),b),T7(e.a),Cd(e.a,(Yo(),cd),f(V(t,Ow),188)),Cd(e.a,Pp,f(V(t,Mw),188)),Cd(e.a,sa,f(V(t,YI),188)),Cd(e.a,ga,f(V(t,DV),188)),Cd(e.a,ll,IRn(f(V(t,Ob),223))),ome(e.a,xjn(t)),Xe(t,Rle,tM(e.a,t))}function N3e(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X,oe;for(I=new Fn,b=new st,kEt(e,i,e.d.Ag(),b,I),kEt(e,s,e.d.Bg(),b,I),e.b=.2*(z=Tkt(El(new Wt(null,new Vt(b,16)),new OJe)),X=Tkt(El(new Wt(null,new Vt(b,16)),new NJe)),h.Math.min(z,X)),c=0,g=0;g=2&&(oe=qkt(b,!0,D),!e.e&&(e.e=new oot(e)),LAn(e.e,oe,b,e.b)),I2t(b,D),LDn(b),W=-1,k=new ee(b);k.ag)}function xxt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;for(_=hi,k=hi,g=to,m=to,D=new ee(t.i);D.a-1){for(a=Hn(g,0);a.b!=a.d.c;)s=f(Bn(a),131),s.v=b;for(;g.b!=0;)for(s=f(ene(g,0),131),i=new ee(s.i);i.a-1){for(c=new ee(g);c.a0)&&(Y1e(m,h.Math.min(m.o,a.o-1)),Vj(m,m.i-1),m.i==0&&sn(g.c,m))}}function Axt(e,t,i,s,a){var c,b,g,m;return m=hi,b=!1,g=R3e(e,uo(new tt(t.a,t.b),e),Mr(new tt(i.a,i.b),a),uo(new tt(s.a,s.b),i)),c=!!g&&!(h.Math.abs(g.a-e.a)<=py&&h.Math.abs(g.b-e.b)<=py||h.Math.abs(g.a-t.a)<=py&&h.Math.abs(g.b-t.b)<=py),g=R3e(e,uo(new tt(t.a,t.b),e),i,a),g&&((h.Math.abs(g.a-e.a)<=py&&h.Math.abs(g.b-e.b)<=py)==(h.Math.abs(g.a-t.a)<=py&&h.Math.abs(g.b-t.b)<=py)||c?m=h.Math.min(m,Y$(uo(g,i))):b=!0),g=R3e(e,uo(new tt(t.a,t.b),e),s,a),g&&(b||(h.Math.abs(g.a-e.a)<=py&&h.Math.abs(g.b-e.b)<=py)==(h.Math.abs(g.a-t.a)<=py&&h.Math.abs(g.b-t.b)<=py)||c)&&(m=h.Math.min(m,Y$(uo(g,s)))),m}function Txt(e){vm(e,new gw(lF(wm(pm(gm(bm(new F0,z1),xAt),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new UVe),Ba))),it(e,z1,uI,dt(sTe)),it(e,z1,kU,(cn(),!0)),it(e,z1,A2,dt(f5t)),it(e,z1,B3,dt(d5t)),it(e,z1,F3,dt(h5t)),it(e,z1,NA,dt(u5t)),it(e,z1,fI,dt(aTe)),it(e,z1,MA,dt(p5t)),it(e,z1,IRe,dt(oTe)),it(e,z1,ORe,dt(rTe)),it(e,z1,NRe,dt(iTe)),it(e,z1,MRe,dt(lTe)),it(e,z1,PRe,dt(BG))}function jDn(e){var t,i,s,a,c,b,g,m;for(t=null,s=new ee(e);s.a0&&i.c==0&&(!t&&(t=new st),sn(t.c,i));if(t)for(;t.c.length!=0;){if(i=f(pg(t,0),239),i.b&&i.b.c.length>0){for(c=(!i.b&&(i.b=new st),new ee(i.b));c.ail(e,i,0))return new io(a,i)}else if(Ae(qd(a.g,a.d[0]).a)>Ae(qd(i.g,i.d[0]).a))return new io(a,i)}for(g=(!i.e&&(i.e=new st),i.e).Kc();g.Ob();)b=f(g.Pb(),239),m=(!b.b&&(b.b=new st),b.b),Uv(0,m.c.length),m$(m.c,0,i),b.c==m.c.length&&sn(t.c,b)}return null}function FDn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;for(t.Ug("Interactive crossing minimization",1),b=0,c=new ee(e.b);c.a0&&(i+=m.n.a+m.o.a/2,++I),U=new ee(m.j);U.a0&&(i/=I),oe=Fe(Ro,js,28,s.a.c.length,15,1),g=0,_=new ee(s.a);_.a<_.c.c.length;)m=f(Z(_),10),m.p=g++,oe[m.p]=TDn(m,i),m.k==(gn(),vo)&&Xe(m,(nt(),F$e),oe[m.p]);qt(),Hi(s.a,new Lit(oe)),uRt(X,D,b,!0),++b}t.Vg()}function tI(e,t){var i,s,a,c,b,g,m,_,k;if(t.e==5){Ext(e,t);return}if(_=t,!(_.b==null||e.b==null)){for(b2(e),Z6(e),b2(_),Z6(_),i=Fe(Xn,wr,28,e.b.length+_.b.length,15,1),k=0,s=0,b=0;s=g&&a<=m)g<=a&&c<=m?s+=2:g<=a?(e.b[s]=m+1,b+=2):c<=m?(i[k++]=a,i[k++]=g-1,s+=2):(i[k++]=a,i[k++]=g-1,e.b[s]=m+1,b+=2);else if(m2?(k=new st,eo(k,new dg(oe,1,oe.b)),c=gCt(k,_e+e.a),ge=new kne(c),ol(ge,t),sn(i.c,ge)):s?ge=f(En(e.b,Sp(t)),272):ge=f(En(e.b,F1(t)),272),m=Sp(t),s&&(m=F1(t)),b=jIn(X,m),_=_e+e.a,b.a?(_+=h.Math.abs(X.b-I.b),z=new tt(I.a,(I.b+X.b)/2)):(_+=h.Math.abs(X.a-I.a),z=new tt((I.a+X.a)/2,I.b)),s?xr(e.d,t,new Q2e(ge,b,z,_)):xr(e.c,t,new Q2e(ge,b,z,_)),xr(e.b,t,ge),U=(!t.n&&(t.n=new qe(Fs,t,1,7)),t.n),W=new Sn(U);W.e!=W.i.gc();)D=f(Cn(W),135),a=qN(e,D,!0,0,0),sn(i.c,a)}function BDn(e){var t,i,s,a,c,b,g;if(!e.A.dc()){if(e.A.Hc((su(),U9))&&(f(Ds(e.b,(ft(),bn)),127).k=!0,f(Ds(e.b,jn),127).k=!0,t=e.q!=(Co(),jp)&&e.q!=ya,q1e(f(Ds(e.b,_n),127),t),q1e(f(Ds(e.b,wn),127),t),q1e(e.g,t),e.A.Hc(Vw)&&(f(Ds(e.b,bn),127).j=!0,f(Ds(e.b,jn),127).j=!0,f(Ds(e.b,_n),127).k=!0,f(Ds(e.b,wn),127).k=!0,e.g.k=!0)),e.A.Hc(H9))for(e.a.j=!0,e.a.k=!0,e.g.j=!0,e.g.k=!0,g=e.B.Hc((Gc(),M5)),a=Pte(),c=0,b=a.length;c0),f(k.a.Xb(k.c=--k.b),18));c!=s&&k.b>0;)e.a[c.p]=!0,e.a[s.p]=!0,c=(In(k.b>0),f(k.a.Xb(k.c=--k.b),18));k.b>0&&iu(k)}}function Ixt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W;if(!e.b)return!1;for(b=null,D=null,m=new pee(null,null),a=1,m.a[1]=e.b,I=m;I.a[a];)_=a,g=D,D=I,I=I.a[a],s=e.a.Ne(t,I.d),a=s<0?0:1,s==0&&(!i.c||Ul(I.e,i.d))&&(b=I),!(I&&I.b)&&!Cv(I.a[a])&&(Cv(I.a[1-a])?D=D.a[_]=FW(I,a):Cv(I.a[1-a])||(W=D.a[1-_],W&&(!Cv(W.a[1-_])&&!Cv(W.a[_])?(D.b=!1,W.b=!0,I.b=!0):(c=g.a[1]==D?1:0,Cv(W.a[_])?g.a[c]=l1t(D,_):Cv(W.a[1-_])&&(g.a[c]=FW(D,_)),I.b=g.a[c].b=!0,g.a[c].a[0].b=!1,g.a[c].a[1].b=!1))));return b&&(i.b=!0,i.d=b.e,I!=b&&(k=new pee(I.d,I.e),U6n(e,m,b,k),D==b&&(D=k)),D.a[D.a[1]==I?1:0]=I.a[I.a[0]?0:1],--e.c),e.b=m.a[1],e.b&&(e.b.b=!1),i.b}function UDn(e){var t,i,s,a,c,b,g,m,_,k,I,D;for(a=new ee(e.a.a.b);a.a0?a-=864e5:a+=864e5,m=new Ume(is(Gl(t.q.getTime()),a))),k=new jk,_=e.a.length,c=0;c<_;)if(s=Jo(e.a,c),s>=97&&s<=122||s>=65&&s<=90){for(b=c+1;b<_&&Jo(e.a,b)==s;++b);Ujn(k,s,b-c,g,m,i),c=b}else if(s==39){if(++c,c<_&&Jo(e.a,c)==39){k.a+="'",++c;continue}for(I=!1;!I;){for(b=c;b<_&&Jo(e.a,b)!=39;)++b;if(b>=_)throw ne(new hn("Missing trailing '"));b+1<_&&Jo(e.a,b+1)==39?++b:I=!0,br(k,Vu(e.a,c,b)),c=b+1}}else k.a+=String.fromCharCode(s),++c;return k.a}function VDn(){kr(Y_,new UZe),kr(_r,new eet),kr(Pf,new det),kr(Wd,new met),kr(Oce,new yet),kr(Bz,new vet),kr(Db,new _et),kr(D5,new Eet),kr(q9,new OZe),kr(Cce,new NZe),kr(d0,new MZe),kr(Of,new DZe),kr(Bd,new LZe),kr(Ly,new jZe),kr(Q_,new FZe),kr(rc,new BZe),kr(J_,new WZe),kr(Ll,new HZe),kr(Os,new GZe),kr(Ga,new VZe),kr(Li,new zZe),kr(ie(_c,1),new KZe),kr(G3,new qZe),kr(NI,new XZe),kr(kG,new JZe),kr(QOe,new YZe),kr(Qi,new QZe),kr(hOe,new ZZe),kr(gOe,new tet),kr(FOe,new net),kr(Wz,new ret),kr(XA,new iet),kr(Ko,new oet),kr(jAe,new set),kr(my,new aet),kr(FAe,new cet),kr(MOe,new uet),kr(ZOe,new fet),kr(yy,new het),kr(_t,new pet),kr(bOe,new bet),kr(e7e,new get)}function Oxt(e,t){var i,s,a,c,b,g,m,_,k;if(e==null)return Za;if(m=t.a.zc(e,t),m!=null)return"[...]";for(i=new cw(ds,"[","]"),a=e,c=0,b=a.length;c=14&&k<=16))?t.a._b(s)?(i.a?br(i.a,i.b):i.a=new gu(i.d),I$(i.a,"[...]")):(g=ow(s),_=new H$(t),bb(i,Oxt(g,_))):ve(s,183)?bb(i,_5n(f(s,183))):ve(s,195)?bb(i,s6n(f(s,195))):ve(s,201)?bb(i,gIn(f(s,201))):ve(s,2111)?bb(i,l6n(f(s,2111))):ve(s,53)?bb(i,v5n(f(s,53))):ve(s,376)?bb(i,j5n(f(s,376))):ve(s,846)?bb(i,y5n(f(s,846))):ve(s,109)&&bb(i,m5n(f(s,109))):bb(i,s==null?Za:dl(s));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function vA(e,t){var i,s,a,c;c=e.F,t==null?(e.F=null,KC(e,null)):(e.F=(mn(t),t),s=Ph(t,Qa(60)),s!=-1?(a=(Mo(0,s,t.length),t.substr(0,s)),Ph(t,Qa(46))==-1&&!Ht(a,$3)&&!Ht(a,RI)&&!Ht(a,aG)&&!Ht(a,xI)&&!Ht(a,CI)&&!Ht(a,AI)&&!Ht(a,TI)&&!Ht(a,$I)&&(a=h$t),i=eB(t,Qa(62)),i!=-1&&(a+=""+(pn(i+1,t.length+1),t.substr(i+1))),KC(e,a)):(a=t,Ph(t,Qa(46))==-1&&(s=Ph(t,Qa(91)),s!=-1&&(a=(Mo(0,s,t.length),t.substr(0,s))),!Ht(a,$3)&&!Ht(a,RI)&&!Ht(a,aG)&&!Ht(a,xI)&&!Ht(a,CI)&&!Ht(a,AI)&&!Ht(a,TI)&&!Ht(a,$I)?(a=h$t,s!=-1&&(a+=""+(pn(s,t.length+1),t.substr(s)))):a=t),KC(e,a),a==t&&(e.F=e.D))),e.Db&4&&!(e.Db&1)&&Dr(e,new yo(e,1,5,c,t))}function Nxt(e,t){var i,s,a,c,b,g,m,_,k,I;if(m=t.length-1,g=(pn(m,t.length),t.charCodeAt(m)),g==93){if(b=Ph(t,Qa(91)),b>=0)return a=qCn(e,(Mo(1,b,t.length),t.substr(1,b-1))),k=(Mo(b+1,m,t.length),t.substr(b+1,m-(b+1))),vjn(e,k,a)}else{if(i=-1,XAe==null&&(XAe=new RegExp("\\d")),XAe.test(String.fromCharCode(g))&&(i=lye(t,Qa(46),m-1),i>=0)){s=f(aee(e,Smt(e,(Mo(1,i,t.length),t.substr(1,i-1))),!1),61),_=0;try{_=Ru((pn(i+1,t.length+1),t.substr(i+1)),Qo,Nr)}catch(D){throw D=mi(D),ve(D,130)?(c=D,ne(new mW(c))):ne(D)}if(_>16==-10?i=f(e.Cb,292).Yk(t,i):e.Db>>16==-15&&(!t&&(t=(Kt(),vh)),!_&&(_=(Kt(),vh)),e.Cb.Yh()&&(m=new gb(e.Cb,1,13,_,t,Rg(Wc(f(e.Cb,62)),e),!1),i?i.nj(m):i=m));else if(ve(e.Cb,90))e.Db>>16==-23&&(ve(t,90)||(t=(Kt(),Mf)),ve(_,90)||(_=(Kt(),Mf)),e.Cb.Yh()&&(m=new gb(e.Cb,1,10,_,t,Rg(ra(f(e.Cb,29)),e),!1),i?i.nj(m):i=m));else if(ve(e.Cb,457))for(g=f(e.Cb,850),b=(!g.b&&(g.b=new Yj(new SY)),g.b),c=(s=new aw(new U0(b.a).a),new Qj(s));c.a.b;)a=f(Xm(c.a).ld(),89),i=_A(a,HH(a,g),i)}return i}function qDn(e,t){var i,s,a,c,b,g,m,_,k,I,D;for(b=wt(gt(Qe(e,(pt(),D_)))),D=f(Qe(e,j_),21),m=!1,_=!1,I=new Sn((!e.c&&(e.c=new qe(Mc,e,9,9)),e.c));I.e!=I.i.gc()&&(!m||!_);){for(c=f(Cn(I),123),g=0,a=wp(_u(se(ie(Tu,1),on,20,0,[(!c.d&&(c.d=new en(Fi,c,8,5)),c.d),(!c.e&&(c.e=new en(Fi,c,7,4)),c.e)])));Un(a)&&(s=f(On(a),74),k=b&&ry(s)&&wt(gt(Qe(s,Nw))),i=dxt((!s.b&&(s.b=new en(Dn,s,4,7)),s.b),c)?e==di(sl(f(Se((!s.c&&(s.c=new en(Dn,s,5,8)),s.c),0),84))):e==di(sl(f(Se((!s.b&&(s.b=new en(Dn,s,4,7)),s.b),0),84))),!((k||i)&&(++g,g>1))););(g>0||D.Hc(($c(),Mb))&&(!c.n&&(c.n=new qe(Fs,c,1,7)),c.n).i>0)&&(m=!0),g>1&&(_=!0)}m&&t.Fc((As(),af)),_&&t.Fc((As(),GI))}function Mxt(e){var t,i,s,a,c,b,g,m,_,k,I,D;if(D=f(Qe(e,(Er(),Hw)),21),D.dc())return null;if(g=0,b=0,D.Hc((su(),U9))){for(k=f(Qe(e,x5),101),s=2,i=2,a=2,c=2,t=di(e)?f(Qe(di(e),Ww),88):f(Qe(e,Ww),88),_=new Sn((!e.c&&(e.c=new qe(Mc,e,9,9)),e.c));_.e!=_.i.gc();)if(m=f(Cn(_),123),I=f(Qe(m,dE),64),I==(ft(),Cl)&&(I=y3e(m,t),zr(m,dE,I)),k==(Co(),ya))switch(I.g){case 1:s=h.Math.max(s,m.i+m.g);break;case 2:i=h.Math.max(i,m.j+m.f);break;case 3:a=h.Math.max(a,m.i+m.g);break;case 4:c=h.Math.max(c,m.j+m.f)}else switch(I.g){case 1:s+=m.g+2;break;case 2:i+=m.f+2;break;case 3:a+=m.g+2;break;case 4:c+=m.f+2}g=h.Math.max(s,a),b=h.Math.max(i,c)}return ly(e,g,b,!0,!0)}function ire(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;for(ge=f(fl(xW(Br(new Wt(null,new Vt(t.d,16)),new Rit(i)),new xit(i)),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),I=Nr,k=Qo,m=new ee(t.b.j);m.a0,_?_&&(D=oe.p,b?++D:--D,I=f(yt(oe.c.a,D),10),s=ovt(I),W=!(Ane(s,Ze,i[0])||Tpt(s,Ze,i[0]))):W=!0),U=!1,Ke=t.D.i,Ke&&Ke.c&&g.e&&(k=b&&Ke.p>0||!b&&Ke.p=0){for(m=null,g=new No(k.a,_+1);g.bb?1:km(isNaN(0),isNaN(b)))<0&&(td(Qh),(h.Math.abs(b-1)<=Qh||b==1||isNaN(b)&&isNaN(1)?0:b<1?-1:b>1?1:km(isNaN(b),isNaN(1)))<0)&&(td(Qh),(h.Math.abs(0-g)<=Qh||g==0||isNaN(0)&&isNaN(g)?0:0g?1:km(isNaN(0),isNaN(g)))<0)&&(td(Qh),(h.Math.abs(g-1)<=Qh||g==1||isNaN(g)&&isNaN(1)?0:g<1?-1:g>1?1:km(isNaN(g),isNaN(1)))<0)),c)}function eLn(e){var t,i,s,a;if(i=e.D!=null?e.D:e.B,t=Ph(i,Qa(91)),t!=-1){s=(Mo(0,t,i.length),i.substr(0,t)),a=new ig;do a.a+="[";while((t=nC(i,91,++t))!=-1);Ht(s,$3)?a.a+="Z":Ht(s,RI)?a.a+="B":Ht(s,aG)?a.a+="C":Ht(s,xI)?a.a+="D":Ht(s,CI)?a.a+="F":Ht(s,AI)?a.a+="I":Ht(s,TI)?a.a+="J":Ht(s,$I)?a.a+="S":(a.a+="L",a.a+=""+s,a.a+=";");try{return null}catch(c){if(c=mi(c),!ve(c,63))throw ne(c)}}else if(Ph(i,Qa(46))==-1){if(Ht(i,$3))return Xc;if(Ht(i,RI))return _c;if(Ht(i,aG))return df;if(Ht(i,xI))return Ro;if(Ht(i,CI))return nS;if(Ht(i,AI))return Xn;if(Ht(i,TI))return m0;if(Ht(i,$I))return mE}return null}function tLn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut;for(e.e=t,g=t8n(t),Ze=new st,s=new ee(g);s.a=0&&z=_.c.c.length?k=o_e((gn(),ji),vo):k=o_e((gn(),vo),vo),k*=2,c=i.a.g,i.a.g=h.Math.max(c,c+(k-c)),b=i.b.g,i.b.g=h.Math.max(b,b+(k-b)),a=t}}function oLn(e){var t,i,s,a;for(Mi(Br(new Wt(null,new Vt(e.a.b,16)),new Uqe),new Gqe),B$n(e),Mi(Br(new Wt(null,new Vt(e.a.b,16)),new Vqe),new zqe),e.c==(_b(),uR)&&(Mi(Br(El(new Wt(null,new Vt(new H0(e.f),1)),new Kqe),new qqe),new mit(e)),Mi(Br(nl(El(El(new Wt(null,new Vt(e.d.b,16)),new Xqe),new Jqe),new Yqe),new Qqe),new vit(e))),a=new tt(hi,hi),t=new tt(to,to),s=new ee(e.a.b);s.a0&&(t.a+=ds),aU(f(Cn(g),167),t);for(t.a+=hie,m=new Kk((!s.c&&(s.c=new en(Dn,s,5,8)),s.c));m.e!=m.i.gc();)m.e>0&&(t.a+=ds),aU(f(Cn(m),167),t);t.a+=")"}}function sLn(e,t,i){var s,a,c,b,g,m,_,k;for(m=new Sn((!e.a&&(e.a=new qe($r,e,10,11)),e.a));m.e!=m.i.gc();)for(g=f(Cn(m),27),a=new kn(xn(Rb(g).a.Kc(),new O));Un(a);){if(s=f(On(a),74),!s.b&&(s.b=new en(Dn,s,4,7)),!(s.b.i<=1&&(!s.c&&(s.c=new en(Dn,s,5,8)),s.c.i<=1)))throw ne(new Dk("Graph must not contain hyperedges."));if(!W6(s)&&g!=sl(f(Se((!s.c&&(s.c=new en(Dn,s,5,8)),s.c),0),84)))for(_=new Ldt,ol(_,s),Xe(_,(P1(),q3),s),Khn(_,f(tl(xs(i.f,g)),153)),Jhn(_,f(En(i,sl(f(Se((!s.c&&(s.c=new en(Dn,s,5,8)),s.c),0),84))),153)),lt(t.c,_),b=new Sn((!s.n&&(s.n=new qe(Fs,s,1,7)),s.n));b.e!=b.i.gc();)c=f(Cn(b),135),k=new F1t(_,c.a),ol(k,c),Xe(k,q3,c),k.e.a=h.Math.max(c.g,1),k.e.b=h.Math.max(c.f,1),k3e(k),lt(t.d,k)}}function lLn(e,t,i){var s,a,c,b,g,m,_,k,I,D;switch(i.Ug("Node promotion heuristic",1),e.i=t,e.r=f(V(t,(pt(),r0)),243),e.r!=(Sf(),Oy)&&e.r!=W_?NLn(e):s7n(e),k=f(V(e.i,F6e),17).a,c=new NKe,e.r.g){case 2:case 1:yA(e,c);break;case 3:for(e.r=VV,yA(e,c),m=0,g=new ee(e.b);g.ae.k&&(e.r=h9,yA(e,c));break;case 4:for(e.r=VV,yA(e,c),_=0,a=new ee(e.c);a.ae.n&&(e.r=p9,yA(e,c));break;case 6:D=oo(h.Math.ceil(e.g.length*k/100)),yA(e,new sit(D));break;case 5:I=oo(h.Math.ceil(e.e*k/100)),yA(e,new lit(I));break;case 8:yCt(e,!0);break;case 9:yCt(e,!1);break;default:yA(e,c)}e.r!=Oy&&e.r!=W_?$On(e,t):J7n(e,t),i.Vg()}function aLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e;for(I=e.b,k=new No(I,0),Dv(k,new ca(e)),ge=!1,b=1;k.b0&&(D.d+=k.n.d,D.d+=k.d),D.a>0&&(D.a+=k.n.a,D.a+=k.d),D.b>0&&(D.b+=k.n.b,D.b+=k.d),D.c>0&&(D.c+=k.n.c,D.c+=k.d),D}function Lxt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U;for(D=i.d,I=i.c,c=new tt(i.f.a+i.d.b+i.d.c,i.f.b+i.d.d+i.d.a),b=c.b,_=new ee(e.a);_.a<_.c.c.length;)if(g=f(Z(_),10),g.k==(gn(),Ui)){switch(s=f(V(g,(nt(),Dl)),64),a=f(V(g,D$e),8),k=g.n,s.g){case 2:k.a=i.f.a+D.c-I.a;break;case 4:k.a=-I.a-D.b}switch(U=0,s.g){case 2:case 4:t==(Co(),jp)?(W=Ae(je(V(g,Ry))),k.b=c.b*W-f(V(g,(pt(),$y)),8).b,U=k.b+a.b,KW(g,!1,!0)):t==ya&&(k.b=Ae(je(V(g,Ry)))-f(V(g,(pt(),$y)),8).b,U=k.b+a.b,KW(g,!1,!0))}b=h.Math.max(b,U)}for(i.f.b+=b-c.b,m=new ee(e.a);m.a0&&(e.c[t.c.p][t.p].d+=Uc(e.i,24)*bM*.07000000029802322-.03500000014901161,e.c[t.c.p][t.p].a=e.c[t.c.p][t.p].d/e.c[t.c.p][t.p].b)}}function fLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;for(U=new ee(e);U.as.d,s.d=h.Math.max(s.d,t),g&&i&&(s.d=h.Math.max(s.d,s.a),s.a=s.d+a);break;case 3:i=t>s.a,s.a=h.Math.max(s.a,t),g&&i&&(s.a=h.Math.max(s.a,s.d),s.d=s.a+a);break;case 2:i=t>s.c,s.c=h.Math.max(s.c,t),g&&i&&(s.c=h.Math.max(s.b,s.c),s.b=s.c+a);break;case 4:i=t>s.b,s.b=h.Math.max(s.b,t),g&&i&&(s.b=h.Math.max(s.b,s.c),s.c=s.b+a)}}}function Fxt(e,t){var i,s,a,c,b,g,m,_,k;return _="",t.length==0?e.ne(eRe,gre,-1,-1):(k=s_(t),Ht(k.substr(0,3),"at ")&&(k=(pn(3,k.length+1),k.substr(3))),k=k.replace(/\[.*?\]/g,""),b=k.indexOf("("),b==-1?(b=k.indexOf("@"),b==-1?(_=k,k=""):(_=s_((pn(b+1,k.length+1),k.substr(b+1))),k=s_((Mo(0,b,k.length),k.substr(0,b))))):(i=k.indexOf(")",b),_=(Mo(b+1,i,k.length),k.substr(b+1,i-(b+1))),k=s_((Mo(0,b,k.length),k.substr(0,b)))),b=Ph(k,Qa(46)),b!=-1&&(k=(pn(b+1,k.length+1),k.substr(b+1))),(k.length==0||Ht(k,"Anonymous function"))&&(k=gre),g=eB(_,Qa(58)),a=lye(_,Qa(58),g-1),m=-1,s=-1,c=eRe,g!=-1&&a!=-1&&(c=(Mo(0,a,_.length),_.substr(0,a)),m=ndt((Mo(a+1,g,_.length),_.substr(a+1,g-(a+1)))),s=ndt((pn(g+1,_.length+1),_.substr(g+1)))),e.ne(c,k,m,s))}function pLn(e){var t,i,s,a,c,b,g,m,_,k,I;for(_=new ee(e);_.a<_.c.c.length;){switch(m=f(Z(_),10),b=f(V(m,(pt(),Ha)),171),c=null,b.g){case 1:case 2:c=(uw(),H2);break;case 3:case 4:c=(uw(),o4)}if(c)Xe(m,(nt(),_V),(uw(),H2)),c==o4?KH(m,b,(Cs(),Pc)):c==H2&&KH(m,b,(Cs(),Ta));else if(HS(f(V(m,Oi),101))&&m.j.c.length!=0){for(t=!0,I=new ee(m.j);I.a0||k.j==wn&&k.e.c.length-k.g.c.length<0)){t=!1;break}for(a=new ee(k.g);a.a=_&&Ke>=X&&(D+=U.n.b+z.n.b+z.a.b-Ce,++g));if(i)for(b=new ee(ge.e);b.a=_&&Ke>=X&&(D+=U.n.b+z.n.b+z.a.b-Ce,++g))}g>0&&(Ze+=D/g,++W)}W>0?(t.a=a*Ze/W,t.g=W):(t.a=0,t.g=0)}function gLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut;for(c=e.f.b,D=c.a,k=c.b,U=e.e.g,W=e.e.f,GS(e.e,c.a,c.b),Ze=D/U,ut=k/W,_=new Sn(FB(e.e));_.e!=_.i.gc();)m=f(Cn(_),135),Da(m,m.i*Ze),La(m,m.j*ut);for(ge=new Sn(AZ(e.e));ge.e!=ge.i.gc();)oe=f(Cn(ge),123),Ce=oe.i,Ke=oe.j,Ce>0&&Da(oe,Ce*Ze),Ke>0&&La(oe,Ke*ut);for(p6(e.b,new BVe),t=new st,g=new aw(new U0(e.c).a);g.b;)b=Xm(g),s=f(b.ld(),74),i=f(b.md(),407).a,a=w2(s,!1,!1),I=P2t(Sp(s),jN(a),i),QN(I,a),_e=V2t(s),_e&&il(t,_e,0)==-1&&(sn(t.c,_e),vbt(_e,(In(I.b!=0),f(I.a.a.c,8)),i));for(X=new aw(new U0(e.d).a);X.b;)z=Xm(X),s=f(z.ld(),74),i=f(z.md(),407).a,a=w2(s,!1,!1),I=P2t(F1(s),bN(jN(a)),i),I=bN(I),QN(I,a),_e=z2t(s),_e&&il(t,_e,0)==-1&&(sn(t.c,_e),vbt(_e,(In(I.b!=0),f(I.c.b.c,8)),i))}function Bxt(e,t,i,s){var a,c,b,g,m;return g=new j3e(t),lOn(g,s),a=!0,e&&e.pf((Er(),Ww))&&(c=f(e.of((Er(),Ww)),88),a=c==(Xi(),wh)||c==Js||c==al),F3t(g,!1),Ma(g.e.Rf(),new pye(g,!1,a)),WZ(g,g.f,(Pd(),Nl),(ft(),bn)),WZ(g,g.f,Ml,jn),WZ(g,g.g,Nl,wn),WZ(g,g.g,Ml,_n),pSt(g,bn),pSt(g,jn),wbt(g,_n),wbt(g,wn),Mv(),b=g.A.Hc((su(),q_))&&g.B.Hc((Gc(),V9))?P_t(g):null,b&&gbn(g.a,b),hLn(g),pTn(g),bTn(g),BDn(g),oMn(g),WTn(g),$te(g,bn),$te(g,jn),V7n(g),O9n(g),i&&(XCn(g),HTn(g),$te(g,_n),$te(g,wn),m=g.B.Hc((Gc(),M5)),IEt(g,m,bn),IEt(g,m,jn),PEt(g,m,_n),PEt(g,m,wn),Mi(new Wt(null,new Vt(new ob(g.i),0)),new Y),Mi(Br(new Wt(null,dve(g.r).a.oc()),new J),new ue),n6n(g),g.e.Pf(g.o),Mi(new Wt(null,dve(g.r).a.oc()),new Yt)),g.o}function wLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(_=hi,s=new ee(e.a.b);s.a1)for(W=new A3e(U,_e,s),Vo(_e,new Jct(e,W)),sn(b.c,W),I=_e.a.ec().Kc();I.Ob();)k=f(I.Pb(),42),Ja(c,k.b);if(g.a.gc()>1)for(W=new A3e(U,g,s),Vo(g,new Yct(e,W)),sn(b.c,W),I=g.a.ec().Kc();I.Ob();)k=f(I.Pb(),42),Ja(c,k.b)}}function _Ln(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;if(z=e.n,X=e.o,D=e.d,I=Ae(je(t_(e,(pt(),Fle)))),t){for(k=I*(t.gc()-1),W=0,m=t.Kc();m.Ob();)b=f(m.Pb(),10),k+=b.o.a,W=h.Math.max(W,b.o.b);for(oe=z.a-(k-X.a)/2,c=z.b-D.d+W,s=X.a/(t.gc()+1),a=s,g=t.Kc();g.Ob();)b=f(g.Pb(),10),b.n.a=oe,b.n.b=c-b.o.b,oe+=b.o.a+I,_=Xkt(b),_.n.a=b.o.a/2-_.a.a,_.n.b=b.o.b,U=f(V(b,(nt(),yV)),12),U.e.c.length+U.g.c.length==1&&(U.n.a=a-U.a.a,U.n.b=0,Sl(U,e)),a+=s}if(i){for(k=I*(i.gc()-1),W=0,m=i.Kc();m.Ob();)b=f(m.Pb(),10),k+=b.o.a,W=h.Math.max(W,b.o.b);for(oe=z.a-(k-X.a)/2,c=z.b+X.b+D.a-W,s=X.a/(i.gc()+1),a=s,g=i.Kc();g.Ob();)b=f(g.Pb(),10),b.n.a=oe,b.n.b=c,oe+=b.o.a+I,_=Xkt(b),_.n.a=b.o.a/2-_.a.a,_.n.b=0,U=f(V(b,(nt(),yV)),12),U.e.c.length+U.g.c.length==1&&(U.n.a=a-U.a.a,U.n.b=X.b,Sl(U,e)),a+=s}}function SLn(e,t){var i,s,a,c,b,g;if(f(V(t,(nt(),ma)),21).Hc((As(),af))){for(g=new ee(t.a);g.a=0&&b0&&(f(Ds(e.b,t),127).a.b=i)}function CLn(e,t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z;if(D=Ae(je(V(e,(pt(),p4)))),W=Ae(je(V(e,b4))),I=Ae(je(V(e,B_))),g=e.o,c=f(yt(e.j,0),12),b=c.n,z=GIn(c,I),!!z){if(t.Hc(($c(),Mb)))switch(f(V(e,(nt(),Dl)),64).g){case 1:z.c=(g.a-z.b)/2-b.a,z.d=W;break;case 3:z.c=(g.a-z.b)/2-b.a,z.d=-W-z.a;break;case 2:i&&c.e.c.length==0&&c.g.c.length==0?(k=s?z.a:f(yt(c.f,0),72).o.b,z.d=(g.b-k)/2-b.b):z.d=g.b+W-b.b,z.c=-D-z.b;break;case 4:i&&c.e.c.length==0&&c.g.c.length==0?(k=s?z.a:f(yt(c.f,0),72).o.b,z.d=(g.b-k)/2-b.b):z.d=g.b+W-b.b,z.c=D}else if(t.Hc(f0))switch(f(V(e,(nt(),Dl)),64).g){case 1:case 3:z.c=b.a+D;break;case 2:case 4:i&&!c.c?(k=s?z.a:f(yt(c.f,0),72).o.b,z.d=(g.b-k)/2-b.b):z.d=b.b+W}for(a=z.d,_=new ee(c.f);_.a<_.c.c.length;)m=f(Z(_),72),U=m.n,U.a=z.c,U.b=a,a+=m.o.b+I}}function ALn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an;for(Ze=new st,U=new ee(e.b);U.a=t.length)return{done:!0};var a=t[s++];return{value:[a,i.get(a)],done:!1}}}},k7n()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(t){return this.obj[":"+t]},e.prototype.set=function(t,i){this.obj[":"+t]=i},e.prototype[Hre]=function(t){delete this.obj[":"+t]},e.prototype.keys=function(){var t=[];for(var i in this.obj)i.charCodeAt(0)==58&&t.push(i.substring(1));return t}),e}function ei(){ei=F,h5=new Xr($Re),new _i("DEPTH",ot(0)),hae=new _i("FAN",ot(0)),QIe=new _i(d4t,ot(0)),s0=new _i("ROOT",(cn(),!1)),gae=new _i("LEFTNEIGHBOR",null),fNt=new _i("RIGHTNEIGHBOR",null),QV=new _i("LEFTSIBLING",null),wae=new _i("RIGHTSIBLING",null),dae=new _i("DUMMY",!1),new _i("LEVEL",ot(0)),t5e=new _i("REMOVABLE_EDGES",new li),v9=new _i("XCOOR",ot(0)),_9=new _i("YCOOR",ot(0)),ZV=new _i("LEVELHEIGHT",0),Fd=new _i("LEVELMIN",0),fd=new _i("LEVELMAX",0),pae=new _i("GRAPH_XMIN",0),bae=new _i("GRAPH_YMIN",0),ZIe=new _i("GRAPH_XMAX",0),e5e=new _i("GRAPH_YMAX",0),YIe=new _i("COMPACT_LEVEL_ASCENSION",!1),fae=new _i("COMPACT_CONSTRAINTS",new st),d5=new _i("ID",""),p5=new _i("POSITION",ot(0)),jg=new _i("PRELIM",0),v4=new _i("MODIFIER",0),y4=new Xr(kAt),y9=new Xr(RAt)}function ILn(e){m3e();var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(e==null)return null;if(I=e.length*8,I==0)return"";for(g=I%24,W=I/24|0,D=g!=0?W+1:W,c=null,c=Fe(df,zh,28,D*4,15,1),_=0,k=0,t=0,i=0,s=0,b=0,a=0,m=0;m>24,_=(t&3)<<24>>24,U=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,z=i&-128?(i>>4^240)<<24>>24:i>>4<<24>>24,X=s&-128?(s>>6^252)<<24>>24:s>>6<<24>>24,c[b++]=Kg[U],c[b++]=Kg[z|_<<4],c[b++]=Kg[k<<2|X],c[b++]=Kg[s&63];return g==8?(t=e[a],_=(t&3)<<24>>24,U=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,c[b++]=Kg[U],c[b++]=Kg[_<<4],c[b++]=61,c[b++]=61):g==16&&(t=e[a],i=e[a+1],k=(i&15)<<24>>24,_=(t&3)<<24>>24,U=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,z=i&-128?(i>>4^240)<<24>>24:i>>4<<24>>24,c[b++]=Kg[U],c[b++]=Kg[z|_<<4],c[b++]=Kg[k<<2],c[b++]=61),Bh(c,0,c.length)}function PLn(e,t){var i,s,a,c,b,g,m;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>Qo&&i_e(t,e.p-V1),b=t.q.getDate(),D7(t,1),e.k>=0&&vSn(t,e.k),e.c>=0?D7(t,e.c):e.k>=0?(m=new NSe(t.q.getFullYear()-V1,t.q.getMonth(),35),s=35-m.q.getDate(),D7(t,h.Math.min(s,b))):D7(t,b),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),f1n(t,e.f==24&&e.g?0:e.f),e.j>=0&&nkn(t,e.j),e.n>=0&&pkn(t,e.n),e.i>=0&&Xut(t,is(os(NN(Gl(t.q.getTime()),Tg),Tg),e.i)),e.a&&(a=new hF,i_e(a,a.q.getFullYear()-V1-80),GY(Gl(t.q.getTime()),Gl(a.q.getTime()))&&i_e(t,a.q.getFullYear()-V1+100)),e.d>=0){if(e.c==-1)i=(7+e.d-t.q.getDay())%7,i>3&&(i-=7),g=t.q.getMonth(),D7(t,t.q.getDate()+i),t.q.getMonth()!=g&&D7(t,t.q.getDate()+(i>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>Qo&&(c=t.q.getTimezoneOffset(),Xut(t,is(Gl(t.q.getTime()),(e.o-c)*60*Tg))),!0}function Vxt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;if(a=V(t,(nt(),Ur)),!!ve(a,207)){for(U=f(a,27),z=t.e,D=new us(t.c),c=t.d,D.a+=c.b,D.b+=c.d,Ce=f(Qe(U,(pt(),LV)),181),fc(Ce,(Gc(),Rz))&&(W=f(Qe(U,G6e),107),Whn(W,c.a),Xhn(W,c.d),Hhn(W,c.b),qhn(W,c.c)),i=new st,k=new ee(t.a);k.as.c.length-1;)lt(s,new io(C2,lCe));i=f(V(a,ip),17).a,ab(f(V(e,My),88))?(a.e.aAe(je((Xt(i,s.c.length),f(s.c[i],42)).b))&&aY((Xt(i,s.c.length),f(s.c[i],42)),a.e.a+a.f.a)):(a.e.bAe(je((Xt(i,s.c.length),f(s.c[i],42)).b))&&aY((Xt(i,s.c.length),f(s.c[i],42)),a.e.b+a.f.b))}for(c=Hn(e.b,0);c.b!=c.d.c;)a=f(Bn(c),40),i=f(V(a,(Il(),ip)),17).a,Xe(a,(ei(),Fd),je((Xt(i,s.c.length),f(s.c[i],42)).a)),Xe(a,fd,je((Xt(i,s.c.length),f(s.c[i],42)).b));t.Vg()}function NLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z;for(e.o=Ae(je(V(e.i,(pt(),Py)))),e.f=Ae(je(V(e.i,jw))),e.j=e.i.b.c.length,g=e.j-1,D=0,e.k=0,e.n=0,e.b=Qd(Fe(Ko,rt,17,e.j,0,1)),e.c=Qd(Fe(Qi,rt,345,e.j,7,1)),b=new ee(e.i.b);b.a0&<(e.q,k),lt(e.p,k);t-=s,W=m+t,_+=t*e.f,Ku(e.b,g,ot(W)),Ku(e.c,g,_),e.k=h.Math.max(e.k,W),e.n=h.Math.max(e.n,_),e.e+=t,t+=z}}function ft(){ft=F;var e;Cl=new s7(lI,0),bn=new s7(mU,1),_n=new s7(Qre,2),jn=new s7(Zre,3),wn=new s7(eie,4),yh=(qt(),new Vx((e=f(kd(vs),9),new Uu(e,f(Yf(e,e.length),9),0)))),gd=yg(ii(bn,se(ie(vs,1),Ql,64,0,[]))),uf=yg(ii(_n,se(ie(vs,1),Ql,64,0,[]))),Pu=yg(ii(jn,se(ie(vs,1),Ql,64,0,[]))),If=yg(ii(wn,se(ie(vs,1),Ql,64,0,[]))),tc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[jn]))),Ua=yg(ii(_n,se(ie(vs,1),Ql,64,0,[wn]))),wd=yg(ii(bn,se(ie(vs,1),Ql,64,0,[wn]))),Oc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[_n]))),Ou=yg(ii(jn,se(ie(vs,1),Ql,64,0,[wn]))),ff=yg(ii(_n,se(ie(vs,1),Ql,64,0,[jn]))),Nc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[_n,wn]))),ec=yg(ii(_n,se(ie(vs,1),Ql,64,0,[jn,wn]))),nc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[jn,wn]))),vc=yg(ii(bn,se(ie(vs,1),Ql,64,0,[_n,jn]))),va=yg(ii(bn,se(ie(vs,1),Ql,64,0,[_n,jn,wn])))}function MLn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut;for(t.Ug(VAt,1),z=new st,Ze=new st,_=new ee(e.b);_.a<_.c.c.length;)for(m=f(Z(_),30),oe=-1,U=F7(m.a),I=U,D=0,W=I.length;D0&&(_e-=W),T3e(b,_e),k=0,D=new ee(b.a);D.a0),g.a.Xb(g.c=--g.b)),m=.4*s*k,!c&&g.b0&&(m=(pn(0,t.length),t.charCodeAt(0)),m!=64)){if(m==37&&(I=t.lastIndexOf("%"),_=!1,I!=0&&(I==D-1||(_=(pn(I+1,t.length),t.charCodeAt(I+1)==46))))){if(b=(Mo(1,I,t.length),t.substr(1,I-1)),_e=Ht("%",b)?null:B3e(b),s=0,_)try{s=Ru((pn(I+2,t.length+1),t.substr(I+2)),Qo,Nr)}catch(Ce){throw Ce=mi(Ce),ve(Ce,130)?(g=Ce,ne(new mW(g))):ne(Ce)}for(X=hSe(e.Gh());X.Ob();)if(U=zW(X),ve(U,519)&&(a=f(U,598),ge=a.d,(_e==null?ge==null:Ht(_e,ge))&&s--==0))return a;return null}if(k=t.lastIndexOf("."),W=k==-1?t:(Mo(0,k,t.length),t.substr(0,k)),i=0,k!=-1)try{i=Ru((pn(k+1,t.length+1),t.substr(k+1)),Qo,Nr)}catch(Ce){if(Ce=mi(Ce),ve(Ce,130))W=t;else throw ne(Ce)}for(W=Ht("%",W)?null:B3e(W),z=hSe(e.Gh());z.Ob();)if(U=zW(z),ve(U,197)&&(c=f(U,197),oe=c.xe(),(W==null?oe==null:Ht(W,oe))&&i--==0))return c;return null}return Nxt(e,t)}function ULn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;for(k=new Fn,m=new Bm,s=new ee(e.a.a.b);s.at.d.c){if(W=e.c[t.a.d],X=e.c[I.a.d],W==X)continue;id(qf(Kf(Xf(zf(new gf,1),100),W),X))}}}}}function GLn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze;if(D=f(f(Hr(e.r,t),21),87),t==(ft(),_n)||t==wn){Hxt(e,t);return}for(c=t==bn?(Jm(),HM):(Jm(),UM),Ce=t==bn?(Ya(),Ld):(Ya(),ad),i=f(Ds(e.b,t),127),s=i.i,a=s.c+n2(se(ie(Ro,1),js,28,15,[i.n.b,e.C.b,e.k])),oe=s.c+s.b-n2(se(ie(Ro,1),js,28,15,[i.n.c,e.C.c,e.k])),b=ewe(gye(c),e.t),ge=t==bn?to:hi,I=D.Kc();I.Ob();)_=f(I.Pb(),117),!(!_.c||_.c.d.c.length<=0)&&(X=_.b.Mf(),z=_.e,W=_.c,U=W.i,U.b=(m=W.n,W.e.a+m.b+m.c),U.a=(g=W.n,W.e.b+g.d+g.a),P7(Ce,gRe),W.f=Ce,$d(W,(Ac(),ld)),U.c=z.a-(U.b-X.a)/2,Ke=h.Math.min(a,z.a),Ze=h.Math.max(oe,z.a+X.a),U.cZe&&(U.c=Ze-U.b),lt(b.d,new cZ(U,l2e(b,U))),ge=t==bn?h.Math.max(ge,z.b+_.b.Mf().b):h.Math.min(ge,z.b));for(ge+=t==bn?e.t:-e.t,_e=x2e((b.e=ge,b)),_e>0&&(f(Ds(e.b,t),127).a.b=_e),k=D.Kc();k.Ob();)_=f(k.Pb(),117),!(!_.c||_.c.d.c.length<=0)&&(U=_.c.i,U.c-=_.e.a,U.d-=_.e.b)}function VLn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W;for(t=new Fn,m=new Sn(e);m.e!=m.i.gc();){for(g=f(Cn(m),27),i=new Gi,xr(Ase,g,i),W=new zJ,a=f(fl(new Wt(null,new Om(new kn(xn(GN(g).a.Kc(),new O)))),fpt(W,Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)])))),85),Vmt(i,f(a.xc((cn(),!0)),16),new DVe),s=f(fl(Br(f(a.xc(!1),15).Lc(),new LVe),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl]))),15),b=s.Kc();b.Ob();)c=f(b.Pb(),74),D=V2t(c),D&&(_=f(tl(xs(t.f,D)),21),_||(_=p3t(D),Ca(t.f,D,_)),Do(i,_));for(a=f(fl(new Wt(null,new Om(new kn(xn(Rb(g).a.Kc(),new O)))),fpt(W,Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl])))),85),Vmt(i,f(a.xc(!0),16),new jVe),s=f(fl(Br(f(a.xc(!1),15).Lc(),new FVe),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl]))),15),I=s.Kc();I.Ob();)k=f(I.Pb(),74),D=z2t(k),D&&(_=f(tl(xs(t.f,D)),21),_||(_=p3t(D),Ca(t.f,D,_)),Do(i,_))}}function zLn(e,t){qne();var i,s,a,c,b,g,m,_,k,I,D,W,U,z;if(m=Jl(e,0)<0,m&&(e=gg(e)),Jl(e,0)==0)switch(t){case 0:return"0";case 1:return CA;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return W=new m1,t<0?W.a+="0E+":W.a+="0E",W.a+=t==Qo?"2147483648":""+-t,W.a}k=18,I=Fe(df,zh,28,k+1,15,1),i=k,z=e;do _=z,z=NN(z,10),I[--i]=tr(is(48,vf(_,os(z,10))))&Ji;while(Jl(z,0)!=0);if(a=vf(vf(vf(k,i),t),1),t==0)return m&&(I[--i]=45),Bh(I,i,k-i);if(t>0&&Jl(a,-6)>=0){if(Jl(a,0)>=0){for(c=i+tr(a),g=k-1;g>=c;g--)I[g+1]=I[g];return I[++c]=46,m&&(I[--i]=45),Bh(I,i,k-i+1)}for(b=2;GY(b,is(gg(a),1));b++)I[--i]=48;return I[--i]=46,I[--i]=48,m&&(I[--i]=45),Bh(I,i,k-i)}return U=i+1,s=k,D=new jk,m&&(D.a+="-"),s-U>=1?(Q0(D,I[i]),D.a+=".",D.a+=Bh(I,i+1,k-i-1)):D.a+=Bh(I,i,k-i),D.a+="E",Jl(a,0)>0&&(D.a+="+"),D.a+=""+z$(a),D.a}function ly(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze;if(X=new tt(e.g,e.f),z=nke(e),z.a=h.Math.max(z.a,t),z.b=h.Math.max(z.b,i),Ze=z.a/X.a,k=z.b/X.b,Ce=z.a-X.a,m=z.b-X.b,s)for(b=di(e)?f(Qe(di(e),(Er(),Ww)),88):f(Qe(e,(Er(),Ww)),88),g=Ne(Qe(e,(Er(),x5)))===Ne((Co(),ya)),ge=new Sn((!e.c&&(e.c=new qe(Mc,e,9,9)),e.c));ge.e!=ge.i.gc();)switch(oe=f(Cn(ge),123),_e=f(Qe(oe,dE),64),_e==(ft(),Cl)&&(_e=y3e(oe,b),zr(oe,dE,_e)),_e.g){case 1:g||Da(oe,oe.i*Ze);break;case 2:Da(oe,oe.i+Ce),g||La(oe,oe.j*k);break;case 3:g||Da(oe,oe.i*Ze),La(oe,oe.j+m);break;case 4:g||La(oe,oe.j*k)}if(GS(e,z.a,z.b),a)for(D=new Sn((!e.n&&(e.n=new qe(Fs,e,1,7)),e.n));D.e!=D.i.gc();)I=f(Cn(D),135),W=I.i+I.g/2,U=I.j+I.f/2,Ke=W/X.a,_=U/X.b,Ke+_>=1&&(Ke-_>0&&U>=0?(Da(I,I.i+Ce),La(I,I.j+m*_)):Ke-_<0&&W>=0&&(Da(I,I.i+Ce*Ke),La(I,I.j+m)));return zr(e,(Er(),Hw),(su(),c=f(kd(N5),9),new Uu(c,f(Yf(c,c.length),9),0))),new tt(Ze,k)}function Xxt(e){vm(e,new gw(lF(wm(pm(gm(bm(new F0,rf),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new GYe),rf))),it(e,rf,UU,dt(lMt)),it(e,rf,m_,dt(aMt)),it(e,rf,A2,dt(rMt)),it(e,rf,B3,dt(iMt)),it(e,rf,F3,dt(oMt)),it(e,rf,NA,dt(nMt)),it(e,rf,fI,dt($5e)),it(e,rf,MA,dt(sMt)),it(e,rf,roe,dt($ae)),it(e,rf,noe,dt(Iae)),it(e,rf,JU,dt(P5e)),it(e,rf,ioe,dt(Pae)),it(e,rf,ooe,dt(O5e)),it(e,rf,xCe,dt(N5e)),it(e,rf,RCe,dt(I5e)),it(e,rf,_Ce,dt(iz)),it(e,rf,SCe,dt(oz)),it(e,rf,ECe,dt(S9)),it(e,rf,kCe,dt(M5e)),it(e,rf,vCe,dt(T5e))}function cU(e){var t,i,s,a,c,b,g,m,_,k,I;if(e==null)throw ne(new Ih(Za));if(_=e,c=e.length,m=!1,c>0&&(t=(pn(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(pn(1,e.length+1),e.substr(1)),--c,m=t==45)),c==0)throw ne(new Ih(uy+_+'"'));for(;e.length>0&&(pn(0,e.length),e.charCodeAt(0)==48);)e=(pn(1,e.length+1),e.substr(1)),--c;if(c>(xRt(),p6t)[10])throw ne(new Ih(uy+_+'"'));for(a=0;a0&&(I=-parseInt((Mo(0,s,e.length),e.substr(0,s)),10),e=(pn(s,e.length+1),e.substr(s)),c-=s,i=!1);c>=b;){if(s=parseInt((Mo(0,b,e.length),e.substr(0,b)),10),e=(pn(b,e.length+1),e.substr(b)),c-=b,i)i=!1;else{if(Jl(I,g)<0)throw ne(new Ih(uy+_+'"'));I=os(I,k)}I=vf(I,s)}if(Jl(I,0)>0)throw ne(new Ih(uy+_+'"'));if(!m&&(I=gg(I),Jl(I,0)<0))throw ne(new Ih(uy+_+'"'));return I}function B3e(e){ere();var t,i,s,a,c,b,g,m;if(e==null)return null;if(a=Ph(e,Qa(37)),a<0)return e;for(m=new gu((Mo(0,a,e.length),e.substr(0,a))),t=Fe(_c,P2,28,4,15,1),g=0,s=0,b=e.length;aa+2&&Xee((pn(a+1,e.length),e.charCodeAt(a+1)),mOe,yOe)&&Xee((pn(a+2,e.length),e.charCodeAt(a+2)),mOe,yOe))if(i=hyn((pn(a+1,e.length),e.charCodeAt(a+1)),(pn(a+2,e.length),e.charCodeAt(a+2))),a+=2,s>0?(i&192)==128?t[g++]=i<<24>>24:s=0:i>=128&&((i&224)==192?(t[g++]=i<<24>>24,s=2):(i&240)==224?(t[g++]=i<<24>>24,s=3):(i&248)==240&&(t[g++]=i<<24>>24,s=4)),s>0){if(g==s){switch(g){case 2:{Q0(m,((t[0]&31)<<6|t[1]&63)&Ji);break}case 3:{Q0(m,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&Ji);break}}g=0,s=0}}else{for(c=0;c=2){if((!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i==0)i=(v1(),a=new Fj,a),zn((!e.a&&(e.a=new qe(ai,e,6,6)),e.a),i);else if((!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i>1)for(D=new Kk((!e.a&&(e.a=new qe(ai,e,6,6)),e.a));D.e!=D.i.gc();)D6(D);QN(t,f(Se((!e.a&&(e.a=new qe(ai,e,6,6)),e.a),0),166))}if(I)for(s=new Sn((!e.a&&(e.a=new qe(ai,e,6,6)),e.a));s.e!=s.i.gc();)for(i=f(Cn(s),166),_=new Sn((!i.a&&(i.a=new zi(Nu,i,5)),i.a));_.e!=_.i.gc();)m=f(Cn(_),377),g.a=h.Math.max(g.a,m.a),g.b=h.Math.max(g.b,m.b);for(b=new Sn((!e.n&&(e.n=new qe(Fs,e,1,7)),e.n));b.e!=b.i.gc();)c=f(Cn(b),135),k=f(Qe(c,A5),8),k&&Wu(c,k.a,k.b),I&&(g.a=h.Math.max(g.a,c.i+c.g),g.b=h.Math.max(g.b,c.j+c.f));return g}function Yxt(e,t,i,s,a){var c,b,g;if(Qwt(e,t),b=t[0],c=Jo(i.c,0),g=-1,LSe(i))if(s>0){if(b+s>e.length)return!1;g=jH((Mo(0,b+s,e.length),e.substr(0,b+s)),t)}else g=jH(e,t);switch(c){case 71:return g=p2(e,b,se(ie(_t,1),rt,2,6,[DCt,LCt]),t),a.e=g,!0;case 77:return a7n(e,t,a,g,b);case 76:return c7n(e,t,a,g,b);case 69:return e5n(e,t,b,a);case 99:return t5n(e,t,b,a);case 97:return g=p2(e,b,se(ie(_t,1),rt,2,6,["AM","PM"]),t),a.b=g,!0;case 121:return u7n(e,t,b,g,i,a);case 100:return g<=0?!1:(a.c=g,!0);case 83:return g<0?!1:gAn(g,b,t[0],a);case 104:g==12&&(g=0);case 75:case 72:return g<0?!1:(a.f=g,a.g=!1,!0);case 107:return g<0?!1:(a.f=g,a.g=!0,!0);case 109:return g<0?!1:(a.j=g,!0);case 115:return g<0?!1:(a.n=g,!0);case 90:if(bDt[m]&&(X=m),I=new ee(e.a.b);I.a1;){if(a=tOn(t),I=c.g,U=f(Qe(t,w5),107),z=Ae(je(Qe(t,cz))),(!t.a&&(t.a=new qe($r,t,10,11)),t.a).i>1&&Ae(je(Qe(t,(Ep(),Bae))))!=hi&&(c.c+(U.b+U.c))/(c.b+(U.d+U.a))1&&Ae(je(Qe(t,(Ep(),Fae))))!=hi&&(c.c+(U.b+U.c))/(c.b+(U.d+U.a))>z&&zr(a,(Ep(),G_),h.Math.max(Ae(je(Qe(t,g5))),Ae(je(Qe(a,G_)))-Ae(je(Qe(t,Fae))))),W=new Kwe(s,k),m=wCt(W,a,D),_=m.g,_>=I&&_==_){for(b=0;b<(!a.a&&(a.a=new qe($r,a,10,11)),a.a).i;b++)GEt(e,f(Se((!a.a&&(a.a=new qe($r,a,10,11)),a.a),b),27),f(Se((!t.a&&(t.a=new qe($r,t,10,11)),t.a),b),27));kmt(t,W),oSn(c,m.c),iSn(c,m.b)}--g}zr(t,(Ep(),_4),c.b),zr(t,iR,c.c),i.Vg()}function JLn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;for(t.Ug("Interactive node layering",1),i=new st,D=new ee(e.a);D.a=g){In(ge.b>0),ge.a.Xb(ge.c=--ge.b);break}else X.a>m&&(s?(eo(s.b,X.b),s.a=h.Math.max(s.a,X.a),iu(ge)):(lt(X.b,k),X.c=h.Math.min(X.c,m),X.a=h.Math.max(X.a,g),s=X));s||(s=new zst,s.c=m,s.a=g,Dv(ge,s),lt(s.b,k))}for(b=e.b,_=0,oe=new ee(i);oe.aW&&(c&&(cs(Ze,D),cs(Dt,ot(_.b-1))),Pr=i.b,Si+=D+t,D=0,k=h.Math.max(k,i.b+i.c+Tn)),Da(g,Pr),La(g,Si),k=h.Math.max(k,Pr+Tn+i.c),D=h.Math.max(D,I),Pr+=Tn+t;if(k=h.Math.max(k,s),an=Si+D+i.a,anXh,Nt=h.Math.abs(D.b-U.b)>Xh,(!i&&Dt&&Nt||i&&(Dt||Nt))&&hr(X.a,Ce)),Do(X.a,s),s.b==0?D=Ce:D=(In(s.b!=0),f(s.c.b.c,8)),DRn(W,I,z),Eyt(a)==ut&&(Go(ut.i)!=a.a&&(z=new Io,QEe(z,Go(ut.i),ge)),Xe(X,Cle,z)),mIn(W,X,ge),k.a.zc(W,k);rs(X,Ke),xo(X,ut)}for(_=k.a.ec().Kc();_.Ob();)m=f(_.Pb(),18),rs(m,null),xo(m,null);t.Vg()}function ZLn(e,t){var i,s,a,c,b,g,m,_,k,I,D;for(a=f(V(e,(Il(),My)),88),k=a==(Xi(),Js)||a==al?gh:al,i=f(fl(Br(new Wt(null,new Vt(e.b,16)),new JJe),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),m=f(fl(nl(i.Oc(),new hot(t)),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl]))),15),m.Gc(f(fl(nl(i.Oc(),new pot(t)),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl]))),16)),m.jd(new bot(k)),D=new sg(new got(a)),s=new Fn,g=m.Kc();g.Ob();)b=f(g.Pb(),240),_=f(b.a,40),wt(gt(b.c))?(D.a.zc(_,(cn(),Y1))==null,new Fx(D.a.Zc(_,!1)).a.gc()>0&&xr(s,_,f(new Fx(D.a.Zc(_,!1)).a.Vc(),40)),new Fx(D.a.ad(_,!0)).a.gc()>1&&xr(s,C_t(D,_),_)):(new Fx(D.a.Zc(_,!1)).a.gc()>0&&(c=f(new Fx(D.a.Zc(_,!1)).a.Vc(),40),Ne(c)===Ne(tl(xs(s.f,_)))&&f(V(_,(ei(),fae)),15).Fc(c)),new Fx(D.a.ad(_,!0)).a.gc()>1&&(I=C_t(D,_),Ne(tl(xs(s.f,I)))===Ne(_)&&f(V(I,(ei(),fae)),15).Fc(_)),D.a.Bc(_)!=null)}function Qxt(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;if(e.gc()==1)return f(e.Xb(0),235);if(e.gc()<=0)return new cW;for(a=e.Kc();a.Ob();){for(i=f(a.Pb(),235),U=0,k=Nr,I=Nr,m=Qo,_=Qo,W=new ee(i.e);W.ag&&(_e=0,Ce+=b+oe,b=0),RNn(z,i,_e,Ce),t=h.Math.max(t,_e+X.a),b=h.Math.max(b,X.b),_e+=X.a+oe;return z}function ejn(e){m3e();var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(e==null||(c=vW(e),U=ACn(c),U%4!=0))return null;if(z=U/4|0,z==0)return Fe(_c,P2,28,0,15,1);for(I=null,t=0,i=0,s=0,a=0,b=0,g=0,m=0,_=0,W=0,D=0,k=0,I=Fe(_c,P2,28,z*3,15,1);W>4)<<24>>24,I[D++]=((i&15)<<4|s>>2&15)<<24>>24,I[D++]=(s<<6|a)<<24>>24}return!WO(b=c[k++])||!WO(g=c[k++])?null:(t=_h[b],i=_h[g],m=c[k++],_=c[k++],_h[m]==-1||_h[_]==-1?m==61&&_==61?i&15?null:(X=Fe(_c,P2,28,W*3+1,15,1),oa(I,0,X,0,W*3),X[D]=(t<<2|i>>4)<<24>>24,X):m!=61&&_==61?(s=_h[m],s&3?null:(X=Fe(_c,P2,28,W*3+2,15,1),oa(I,0,X,0,W*3),X[D++]=(t<<2|i>>4)<<24>>24,X[D]=((i&15)<<4|s>>2&15)<<24>>24,X)):null:(s=_h[m],a=_h[_],I[D++]=(t<<2|i>>4)<<24>>24,I[D++]=((i&15)<<4|s>>2&15)<<24>>24,I[D++]=(s<<6|a)<<24>>24,I))}function tjn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke;for(t.Ug(VAt,1),U=f(V(e,(pt(),Ob)),223),a=new ee(e.b);a.a=2){for(z=!0,D=new ee(c.j),i=f(Z(D),12),W=null;D.a0)if(s=I.gc(),_=oo(h.Math.floor((s+1)/2))-1,a=oo(h.Math.ceil((s+1)/2))-1,t.o==ph)for(k=a;k>=_;k--)t.a[Ce.p]==Ce&&(z=f(I.Xb(k),42),U=f(z.a,10),!Rd(i,z.b)&&W>e.b.e[U.p]&&(t.a[U.p]=Ce,t.g[Ce.p]=t.g[U.p],t.a[Ce.p]=t.g[Ce.p],t.f[t.g[Ce.p].p]=(cn(),!!(wt(t.f[t.g[Ce.p].p])&Ce.k==(gn(),vo))),W=e.b.e[U.p]));else for(k=_;k<=a;k++)t.a[Ce.p]==Ce&&(oe=f(I.Xb(k),42),X=f(oe.a,10),!Rd(i,oe.b)&&W0&&(a=f(yt(X.c.a,Ze-1),10),b=e.i[a.p],Dt=h.Math.ceil(zS(e.n,a,X)),c=Ke.a.e-X.d.d-(b.a.e+a.o.b+a.d.a)-Dt),_=hi,Ze0&&ut.a.e.e-ut.a.a-(ut.b.e.e-ut.b.a)<0,U=_e.a.e.e-_e.a.a-(_e.b.e.e-_e.b.a)<0&&ut.a.e.e-ut.a.a-(ut.b.e.e-ut.b.a)>0,W=_e.a.e.e+_e.b.aut.b.e.e+ut.a.a,Ce=0,!z&&!U&&(D?c+I>0?Ce=I:_-s>0&&(Ce=s):W&&(c+g>0?Ce=g:_-ge>0&&(Ce=ge))),Ke.a.e+=Ce,Ke.b&&(Ke.d.e+=Ce),!1))}function eCt(e,t,i){var s,a,c,b,g,m,_,k,I,D;if(s=new Gu(t.Lf().a,t.Lf().b,t.Mf().a,t.Mf().b),a=new Vk,e.c)for(b=new ee(t.Rf());b.a_&&(s.a+=Aft(Fe(df,zh,28,-_,15,1))),s.a+="Is",Ph(m,Qa(32))>=0)for(a=0;a=s.o.b/2}else ge=!I;ge?(oe=f(V(s,(nt(),nR)),15),oe?D?c=oe:(a=f(V(s,Y3),15),a?oe.gc()<=a.gc()?c=oe:c=a:(c=new st,Xe(s,Y3,c))):(c=new st,Xe(s,nR,c))):(a=f(V(s,(nt(),Y3)),15),a?I?c=a:(oe=f(V(s,nR),15),oe?a.gc()<=oe.gc()?c=a:c=oe:(c=new st,Xe(s,nR,c))):(c=new st,Xe(s,Y3,c))),c.Fc(e),Xe(e,(nt(),yV),i),t.d==i?(xo(t,null),i.e.c.length+i.g.c.length==0&&Sl(i,null),yxn(i)):(rs(t,null),i.e.c.length+i.g.c.length==0&&Sl(i,null)),wu(t.a)}function ojn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn,Pr,Si;for(i.Ug("MinWidth layering",1),W=t.b,ut=t.a,Si=f(V(t,(pt(),L6e)),17).a,g=f(V(t,j6e),17).a,e.b=Ae(je(V(t,ud))),e.d=hi,Ce=new ee(ut);Ce.a0?(_=0,X&&(_+=g),_+=(Nt-1)*b,_e&&(_+=g),Dt&&_e&&(_=h.Math.max(_,ROn(_e,b,ge,ut))),_=e.a&&(s=WMn(e,ge),k=h.Math.max(k,s.b),Ce=h.Math.max(Ce,s.d),lt(g,new io(ge,s)));for(Dt=new st,_=0;_0),X.a.Xb(X.c=--X.b),Nt=new ca(e.b),Dv(X,Nt),In(X.b0){for(D=k<100?null:new y1(k),_=new vSe(t),U=_.g,oe=Fe(Xn,wr,28,k,15,1),s=0,Ce=new Gm(k),a=0;a=0;)if(W!=null?Lr(W,U[m]):Ne(W)===Ne(U[m])){oe.length<=s&&(X=oe,oe=Fe(Xn,wr,28,2*oe.length,15,1),oa(X,0,oe,0,s)),oe[s++]=a,zn(Ce,U[m]);break e}if(W=W,Ne(W)===Ne(g))break}}if(_=Ce,U=Ce.g,k=s,s>oe.length&&(X=oe,oe=Fe(Xn,wr,28,s,15,1),oa(X,0,oe,0,s)),s>0){for(_e=!0,c=0;c=0;)E3(e,oe[b]);if(s!=k){for(a=k;--a>=s;)E3(_,a);X=oe,oe=Fe(Xn,wr,28,s,15,1),oa(X,0,oe,0,s)}t=_}}}else for(t=STn(e,t),a=e.i;--a>=0;)t.Hc(e.g[a])&&(E3(e,a),_e=!0);if(_e){if(oe!=null){for(i=t.gc(),I=i==1?e6(e,4,t.Kc().Pb(),null,oe[0],z):e6(e,6,t,oe,oe[0],z),D=i<100?null:new y1(i),a=t.Kc();a.Ob();)W=a.Pb(),D=cye(e,f(W,76),D);D?(D.nj(I),D.oj()):Dr(e.e,I)}else{for(D=A0n(t.gc()),a=t.Kc();a.Ob();)W=a.Pb(),D=cye(e,f(W,76),D);D&&D.oj()}return!0}else return!1}function ajn(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e;for(i=new ySt(t),i.a||DNn(t),_=N7n(t),m=new Bm,X=new _3t,z=new ee(t.a);z.a0||i.o==ph&&a=i}function ujn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn;for(_e=t,ge=new Bm,Ce=new Bm,k=Um(_e,aAe),s=new Abt(e,i,ge,Ce),$In(s.a,s.b,s.c,s.d,k),m=(ut=ge.i,ut||(ge.i=new XS(ge,ge.c))),Nt=m.Kc();Nt.Ob();)for(Dt=f(Nt.Pb(),166),a=f(Hr(ge,Dt),21),z=a.Kc();z.Ob();)if(U=z.Pb(),Ke=f(r2(e.d,U),166),Ke)g=(!Dt.e&&(Dt.e=new en(ai,Dt,10,9)),Dt.e),zn(g,Ke);else throw b=db(_e,Zh),D=mTt+U+yTt+b,W=D+GA,ne(new $h(W));for(_=(Ze=Ce.i,Ze||(Ce.i=new XS(Ce,Ce.c))),an=_.Kc();an.Ob();)for(ln=f(an.Pb(),166),c=f(Hr(Ce,ln),21),oe=c.Kc();oe.Ob();)if(X=oe.Pb(),Ke=f(r2(e.d,X),166),Ke)I=(!ln.g&&(ln.g=new en(ai,ln,9,10)),ln.g),zn(I,Ke);else throw b=db(_e,Zh),D=mTt+X+yTt+b,W=D+GA,ne(new $h(W));!i.b&&(i.b=new en(Dn,i,4,7)),i.b.i!=0&&(!i.c&&(i.c=new en(Dn,i,5,8)),i.c.i!=0)&&(!i.b&&(i.b=new en(Dn,i,4,7)),i.b.i<=1&&(!i.c&&(i.c=new en(Dn,i,5,8)),i.c.i<=1))&&(!i.a&&(i.a=new qe(ai,i,6,6)),i.a).i==1&&(Tn=f(Se((!i.a&&(i.a=new qe(ai,i,6,6)),i.a),0),166),!jte(Tn)&&!Fte(Tn)&&(MW(Tn,f(Se((!i.b&&(i.b=new en(Dn,i,4,7)),i.b),0),84)),DW(Tn,f(Se((!i.c&&(i.c=new en(Dn,i,5,8)),i.c),0),84))))}function fjn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln;for(_e=e.a,Ce=0,Ke=_e.length;Ce0?(I=f(yt(D.c.a,b-1),10),Dt=zS(e.b,D,I),X=D.n.b-D.d.d-(I.n.b+I.o.b+I.d.a+Dt)):X=D.n.b-D.d.d,_=h.Math.min(X,_),b1&&(b=h.Math.min(b,h.Math.abs(f(tf(g.a,1),8).b-k.b)))));else for(z=new ee(t.j);z.aa&&(c=D.a-a,b=Nr,s.c.length=0,a=D.a),D.a>=a&&(sn(s.c,g),g.a.b>1&&(b=h.Math.min(b,h.Math.abs(f(tf(g.a,g.a.b-2),8).b-D.b)))));if(s.c.length!=0&&c>t.o.a/2&&b>t.o.b/2){for(W=new ia,Sl(W,t),so(W,(ft(),bn)),W.n.a=t.o.a/2,oe=new ia,Sl(oe,t),so(oe,jn),oe.n.a=t.o.a/2,oe.n.b=t.o.b,m=new ee(s);m.a=_.b?rs(g,oe):rs(g,W)):(_=f(nyn(g.a),8),X=g.a.b==0?Yd(g.c):f(Jf(g.a),8),X.b>=_.b?xo(g,oe):xo(g,W)),I=f(V(g,(pt(),Xs)),75),I&&e_(I,_,!0);t.n.a=a-t.o.a/2}}function hjn(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(g=Hn(e.b,0);g.b!=g.d.c;)if(b=f(Bn(g),40),!Ht(b.c,KU))for(_=j8n(b,e),t==(Xi(),Js)||t==al?Hi(_,new _Ye):Hi(_,new SYe),m=_.c.length,s=0;s=0?W=y3(g):W=EN(y3(g)),e.qf(d4,W)),_=new Io,D=!1,e.pf($y)?(Ome(_,f(e.of($y),8)),D=!0):E1n(_,b.a/2,b.b/2),W.g){case 4:Xe(k,Ha,(ef(),n0)),Xe(k,_V,(uw(),H2)),k.o.b=b.b,z<0&&(k.o.a=-z),so(I,(ft(),_n)),D||(_.a=b.a),_.a-=b.a;break;case 2:Xe(k,Ha,(ef(),O_)),Xe(k,_V,(uw(),o4)),k.o.b=b.b,z<0&&(k.o.a=-z),so(I,(ft(),wn)),D||(_.a=0);break;case 1:Xe(k,Iw,(wb(),G2)),k.o.a=b.a,z<0&&(k.o.b=-z),so(I,(ft(),jn)),D||(_.b=b.b),_.b-=b.b;break;case 3:Xe(k,Iw,(wb(),J3)),k.o.a=b.a,z<0&&(k.o.b=-z),so(I,(ft(),bn)),D||(_.b=0)}if(Ome(I.n,_),Xe(k,$y,_),t==Gw||t==jp||t==ya){if(U=0,t==Gw&&e.pf(Mg))switch(W.g){case 1:case 2:U=f(e.of(Mg),17).a;break;case 3:case 4:U=-f(e.of(Mg),17).a}else switch(W.g){case 4:case 2:U=c.b,t==jp&&(U/=a.b);break;case 1:case 3:U=c.a,t==jp&&(U/=a.a)}Xe(k,Ry,U)}return Xe(k,Dl,W),k}function pjn(){iwe();function e(s){var a=this;this.dispatch=function(c){var b=c.data;switch(b.cmd){case"algorithms":var g=R2e((qt(),new jx(new ob(h0.b))));s.postMessage({id:b.id,data:g});break;case"categories":var m=R2e((qt(),new jx(new ob(h0.c))));s.postMessage({id:b.id,data:m});break;case"options":var _=R2e((qt(),new jx(new ob(h0.d))));s.postMessage({id:b.id,data:_});break;case"register":wDn(b.algorithms),s.postMessage({id:b.id});break;case"layout":zMn(b.graph,b.layoutOptions||{},b.options||{}),s.postMessage({id:b.id,data:b.graph});break}},this.saveDispatch=function(c){try{a.dispatch(c)}catch(b){s.postMessage({id:c.data.id,error:b})}}}function t(s){var a=this;this.dispatcher=new e({postMessage:function(c){a.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){a.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===zre&&typeof self!==zre){var i=new e(self);self.onmessage=i.saveDispatch}else typeof l!==zre&&l.exports&&(Object.defineProperty(u,"__esModule",{value:!0}),l.exports={default:t,Worker:t})}function sCt(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(k=new kb(i),ol(k,t),Xe(k,(nt(),Ur),t),k.o.a=t.g,k.o.b=t.f,k.n.a=t.i,k.n.b=t.j,lt(i.a,k),xr(e.a,t,k),((!t.a&&(t.a=new qe($r,t,10,11)),t.a).i!=0||wt(gt(Qe(t,(pt(),D_)))))&&Xe(k,O$e,(cn(),!0)),_=f(V(i,ma),21),I=f(V(k,(pt(),Oi)),101),I==(Co(),u0)?Xe(k,Oi,mh):I!=mh&&_.Fc((As(),a4)),D=0,s=f(V(i,$u),88),m=new Sn((!t.c&&(t.c=new qe(Mc,t,9,9)),t.c));m.e!=m.i.gc();)g=f(Cn(m),123),a=di(t),(Ne(Qe(a,Np))!==Ne((Wh(),Dg))||Ne(Qe(a,Ow))===Ne((Eg(),i4))||Ne(Qe(a,Ow))===Ne((Eg(),r4))||wt(gt(Qe(a,Cy)))||Ne(Qe(a,N_))!==Ne((hw(),A_))||Ne(Qe(a,r0))===Ne((Sf(),Oy))||Ne(Qe(a,r0))===Ne((Sf(),W_))||Ne(Qe(a,Mw))===Ne((Ag(),g4))||Ne(Qe(a,Mw))===Ne((Ag(),w4)))&&!wt(gt(Qe(t,AV)))&&zr(g,Yr,ot(D++)),wt(gt(Qe(g,Lw)))||kLn(e,g,k,_,s,I);for(b=new Sn((!t.n&&(t.n=new qe(Fs,t,1,7)),t.n));b.e!=b.i.gc();)c=f(Cn(b),135),!wt(gt(Qe(c,Lw)))&&c.a&<(k.b,fte(c));return wt(gt(V(k,JI)))&&_.Fc((As(),gV)),wt(gt(V(k,PV)))&&(_.Fc((As(),wV)),_.Fc(GI),Xe(k,Oi,mh)),k}function lre(e,t,i,s,a,c,b){var g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn,Pr,Si;for(z=0,ln=0,_=new ee(e.b);_.a<_.c.c.length;)m=f(Z(_),163),m.c&&Mxt(m.c),z=h.Math.max(z,dc(m)),ln+=dc(m)*ru(m);for(X=ln/e.b.c.length,Nt=b$n(e.b,X),ln+=e.b.c.length*Nt,z=h.Math.max(z,h.Math.sqrt(ln*b))+i.b,Pr=i.b,Si=i.d,W=0,I=i.b+i.c,Dt=new li,hr(Dt,ot(0)),Ze=new li,k=new No(e.b,0),U=null,g=new st;k.bz&&(c&&(cs(Ze,W),cs(Dt,ot(k.b-1)),lt(e.d,U),g.c.length=0),Pr=i.b,Si+=W+t,W=0,I=h.Math.max(I,i.b+i.c+Tn)),sn(g.c,m),fSt(m,Pr,Si),I=h.Math.max(I,Pr+Tn+i.c),W=h.Math.max(W,D),Pr+=Tn+t,U=m;if(eo(e.a,g),lt(e.d,f(yt(g,g.c.length-1),163)),I=h.Math.max(I,s),an=Si+W+i.a,ana.d.d+a.d.a?k.f.d=!0:(k.f.d=!0,k.f.a=!0))),s.b!=s.d.c&&(t=i);k&&(c=f(En(e.f,b.d.i),60),t.bc.d.d+c.d.a?k.f.d=!0:(k.f.d=!0,k.f.a=!0))}for(g=new kn(xn(go(W).a.Kc(),new O));Un(g);)b=f(On(g),18),b.a.b!=0&&(t=f(Jf(b.a),8),b.d.j==(ft(),bn)&&(X=new J6(t,new tt(t.a,a.d.d),a,b),X.f.a=!0,X.a=b.d,sn(z.c,X)),b.d.j==jn&&(X=new J6(t,new tt(t.a,a.d.d+a.d.a),a,b),X.f.d=!0,X.a=b.d,sn(z.c,X)))}return z}function vjn(e,t,i){var s,a,c,b,g,m,_,k,I,D;for(m=new st,I=t.length,b=DSe(i),_=0;_=U&&(ge>U&&(W.c.length=0,U=ge),sn(W.c,b));W.c.length!=0&&(D=f(yt(W,SH(t,W.c.length)),131),an.a.Bc(D)!=null,D.s=z++,Nke(D,Nt,Ze),W.c.length=0)}for(Ce=e.c.length+1,g=new ee(e);g.aln.s&&(iu(i),Ja(ln.i,s),s.c>0&&(s.a=ln,lt(ln.t,s),s.b=ut,lt(ut.i,s)))}function lCt(e,t,i,s,a){var c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an;for(z=new ka(t.b),Ce=new ka(t.b),D=new ka(t.b),Dt=new ka(t.b),X=new ka(t.b),ut=Hn(t,0);ut.b!=ut.d.c;)for(Ke=f(Bn(ut),12),g=new ee(Ke.g);g.a0,oe=Ke.g.c.length>0,_&&oe?sn(D.c,Ke):_?sn(z.c,Ke):oe&&sn(Ce.c,Ke);for(U=new ee(z);U.age.nh()-_.b&&(D=ge.nh()-_.b),W>ge.oh()-_.d&&(W=ge.oh()-_.d),k0){for(_e=Hn(e.f,0);_e.b!=_e.d.c;)ge=f(Bn(_e),10),ge.p+=D-e.e;ZEe(e),wu(e.f),qke(e,s,W)}else{for(hr(e.f,W),W.p=s,e.e=h.Math.max(e.e,s),c=new kn(xn(go(W).a.Kc(),new O));Un(c);)a=f(On(c),18),!a.c.i.c&&a.c.i.k==(gn(),ea)&&(hr(e.f,a.c.i),a.c.i.p=s-1);e.c=s}else ZEe(e),wu(e.f),s=0,Un(new kn(xn(go(W).a.Kc(),new O)))?(D=0,D=gSt(D,W),s=D+2,qke(e,s,W)):(hr(e.f,W),W.p=0,e.e=h.Math.max(e.e,0),e.b=f(yt(e.d.b,0),30),e.c=0);for(e.f.b==0||ZEe(e),e.d.a.c.length=0,oe=new st,_=new ee(e.d.b);_.a<_.c.c.length;)g=f(Z(_),30),g.a.c.length==0&&sn(oe.c,g);for(u2e(e.d.b,oe),I=0,m=new ee(e.d.b);m.a=48&&t<=57){for(s=t-48;a=48&&t<=57;)if(s=s*10+t-48,s<0)throw ne(new ar(dr((ir(),_Ae))))}else throw ne(new ar(dr((ir(),VTt))));if(i=s,t==44){if(a>=e.j)throw ne(new ar(dr((ir(),KTt))));if((t=Jo(e.i,a++))>=48&&t<=57){for(i=t-48;a=48&&t<=57;)if(i=i*10+t-48,i<0)throw ne(new ar(dr((ir(),_Ae))));if(s>i)throw ne(new ar(dr((ir(),qTt))))}else i=-1}if(t!=125)throw ne(new ar(dr((ir(),zTt))));e.bm(a)?(c=(Or(),Or(),new Gv(9,c)),e.d=a+1):(c=(Or(),Or(),new Gv(3,c)),e.d=a),c.Om(s),c.Nm(i),Ir(e)}}return c}function xjn(e){var t,i,s,a,c;switch(i=f(V(e,(nt(),ma)),21),t=XF(g5t),a=f(V(e,(pt(),M_)),346),a==(vb(),Wg)&&Eu(t,w5t),wt(gt(V(e,Dle)))?gr(t,(Yo(),cd),(ss(),Vse)):gr(t,(Yo(),sa),(ss(),Vse)),V(e,(hW(),_5))!=null&&Eu(t,m5t),(wt(gt(V(e,N6e)))||wt(gt(V(e,$6e))))&&hc(t,(Yo(),ll),(ss(),TTe)),f(V(e,$u),88).g){case 2:case 3:case 4:hc(gr(t,(Yo(),cd),(ss(),ITe)),ll,$Te)}switch(i.Hc((As(),gV))&&hc(gr(gr(t,(Yo(),cd),(ss(),ATe)),ga,xTe),ll,CTe),Ne(V(e,r0))!==Ne((Sf(),GV))&&gr(t,(Yo(),sa),(ss(),zTe)),i.Hc(mV)&&(gr(t,(Yo(),cd),(ss(),JTe)),gr(t,Pp,qTe),gr(t,sa,XTe)),Ne(V(e,xV))!==Ne((cA(),UI))&&Ne(V(e,Ob))!==Ne((_b(),L9))&&hc(t,(Yo(),ll),(ss(),BTe)),wt(gt(V(e,P6e)))&&gr(t,(Yo(),sa),(ss(),FTe)),wt(gt(V(e,Ple)))&&gr(t,(Yo(),sa),(ss(),YTe)),FPn(e)&&(Ne(V(e,M_))===Ne(Wg)?s=f(V(e,c9),299):s=f(V(e,Ile),299),c=s==(BC(),gle)?(ss(),KTe):(ss(),e$e),gr(t,(Yo(),ga),c)),f(V(e,sIe),388).g){case 1:gr(t,(Yo(),ga),(ss(),QTe));break;case 2:hc(gr(gr(t,(Yo(),sa),(ss(),STe)),ga,ETe),ll,kTe)}return Ne(V(e,Np))!==Ne((Wh(),Dg))&&gr(t,(Yo(),sa),(ss(),ZTe)),t}function fCt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e;if(Na(e.a,t)){if(Rd(f(En(e.a,t),49),i))return 1}else xr(e.a,t,new Gi);if(Na(e.a,i)){if(Rd(f(En(e.a,i),49),t))return-1}else xr(e.a,i,new Gi);if(Na(e.e,t)){if(Rd(f(En(e.e,t),49),i))return-1}else xr(e.e,t,new Gi);if(Na(e.e,i)){if(Rd(f(En(e.a,i),49),t))return 1}else xr(e.e,i,new Gi);if(e.c==(Wh(),Qle)||!ri(t,(nt(),Yr))||!ri(i,(nt(),Yr))){for(I=null,_=new ee(t.j);_.a<_.c.c.length;)g=f(Z(_),12),g.e.c.length==0||f(yt(g.e,0),18).c.i.c!=t.c&&(I=f(yt(g.e,0),18).c);for(W=null,m=new ee(i.j);m.ab?gA(e,t,i):gA(e,i,t),ab?1:0}return s=f(V(t,(nt(),Yr)),17).a,c=f(V(i,Yr),17).a,s>c?gA(e,t,i):gA(e,i,t),sc?1:0}function ay(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(i==null)return null;if(e.a!=t.jk())throw ne(new hn(HA+t.xe()+gy));if(ve(t,469)){if(X=w7n(f(t,685),i),!X)throw ne(new hn(yoe+i+"' is not a valid enumerator of '"+t.xe()+"'"));return X}switch(vg((gc(),qo),t).Nl()){case 2:{i=ha(i,!1);break}case 3:{i=ha(i,!0);break}}if(s=vg(qo,t).Jl(),s)return s.jk().wi().ti(s,i);if(D=vg(qo,t).Ll(),D){for(X=new st,_=nte(i),k=0,I=_.length;k1)for(U=new Kk((!e.a&&(e.a=new qe(ai,e,6,6)),e.a));U.e!=U.i.gc();)D6(U);for(b=f(Se((!e.a&&(e.a=new qe(ai,e,6,6)),e.a),0),166),X=Pr,Pr>Ke+Ce?X=Ke+Ce:PrZe+z?oe=Ze+z:SiKe-Ce&&XZe-z&&oePr+Tn?Dt=Pr+Tn:KeSi+ut?Nt=Si+ut:ZePr-Tn&&DtSi-ut&&Nti&&(D=i-1),W=qg+Uc(t,24)*bM*I-I/2,W<0?W=1:W>s&&(W=s-1),a=(v1(),m=new jj,m),TW(a,D),AW(a,W),zn((!b.a&&(b.a=new zi(Nu,b,5)),b.a),a)}function dCt(e){vm(e,new gw(wm(pm(gm(bm(new F0,zc),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new eQe))),it(e,zc,j3,1.3),it(e,zc,OA,(cn(),!1)),it(e,zc,fy,e8e),it(e,zc,m_,15),it(e,zc,HU,dt(TMt)),it(e,zc,A2,dt(PMt)),it(e,zc,B3,dt(NMt)),it(e,zc,F3,dt(MMt)),it(e,zc,NA,dt(IMt)),it(e,zc,fI,dt(Hae)),it(e,zc,MA,dt(DMt)),it(e,zc,MCe,dt(i8e)),it(e,zc,DCe,dt(r8e)),it(e,zc,NCe,dt(Gae)),it(e,zc,OCe,dt(o8e)),it(e,zc,LCe,dt(Z5e)),it(e,zc,jCe,dt(Uae)),it(e,zc,FCe,dt(Q5e)),it(e,zc,BCe,dt(n8e)),it(e,zc,uI,dt(Y5e)),it(e,zc,GU,dt($Mt)),it(e,zc,ICe,dt(k9)),it(e,zc,$Ce,dt(J5e)),it(e,zc,PCe,dt(R9)),it(e,zc,TCe,dt(t8e))}function cre(e,t){qne();var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut;if(_e=e.e,k=e.d,a=e.a,_e==0)switch(t){case 0:return"0";case 1:return CA;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return oe=new m1,oe.a+="0E",oe.a+=-t,oe.a}if(z=k*10+1+7,X=Fe(df,zh,28,z+1,15,1),i=z,k==1)if(c=a[0],c<0){ut=fo(c,Ts);do I=ut,ut=NN(ut,10),X[--i]=48+tr(vf(I,os(ut,10)))&Ji;while(Jl(ut,0)!=0)}else{ut=c;do I=ut,ut=ut/10|0,X[--i]=48+(I-ut*10)&Ji;while(ut!=0)}else{Ce=Fe(Xn,wr,28,k,15,1),Ze=k,oa(a,0,Ce,0,Ze);e:for(;;){for(ge=0,g=Ze-1;g>=0;g--)Ke=is(Zf(ge,32),fo(Ce[g],Ts)),W=b6n(Ke),Ce[g]=tr(W),ge=tr(Im(W,32));U=tr(ge),D=i;do X[--i]=48+U%10&Ji;while((U=U/10|0)!=0&&i!=0);for(s=9-D+i,b=0;b0;b++)X[--i]=48;for(m=Ze-1;Ce[m]==0;m--)if(m==0)break e;Ze=m+1}for(;X[i]==48;)++i}return _=_e<0,_&&(X[--i]=45),Bh(X,i,z-i)}function hCt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze;switch(e.c=t,e.g=new Fn,i=(_m(),new hm(e.c)),s=new Kj(i),S2e(s),_e=or(Qe(e.c,(DN(),k8e))),m=f(Qe(e.c,ece),324),Ke=f(Qe(e.c,tce),437),b=f(Qe(e.c,_8e),490),Ce=f(Qe(e.c,Zae),438),e.j=Ae(je(Qe(e.c,JMt))),g=e.a,m.g){case 0:g=e.a;break;case 1:g=e.b;break;case 2:g=e.i;break;case 3:g=e.e;break;case 4:g=e.f;break;default:throw ne(new hn(ZU+(m.f!=null?m.f:""+m.g)))}if(e.d=new sgt(g,Ke,b),Xe(e.d,(LC(),jI),gt(Qe(e.c,qMt))),e.d.c=wt(gt(Qe(e.c,S8e))),GB(e.c).i==0)return e.d;for(I=new Sn(GB(e.c));I.e!=I.i.gc();){for(k=f(Cn(I),27),W=k.g/2,D=k.f/2,Ze=new tt(k.i+W,k.j+D);Na(e.g,Ze);)Am(Ze,(h.Math.random()-.5)*Xh,(h.Math.random()-.5)*Xh);z=f(Qe(k,(Er(),E4)),140),X=new vgt(Ze,new Gu(Ze.a-W-e.j/2-z.b,Ze.b-D-e.j/2-z.d,k.g+e.j+(z.b+z.c),k.f+e.j+(z.d+z.a))),lt(e.d.i,X),xr(e.g,Ze,new io(X,k))}switch(Ce.g){case 0:if(_e==null)e.d.d=f(yt(e.d.i,0),68);else for(ge=new ee(e.d.i);ge.a0?Tn+1:1);for(b=new ee(Ze.g);b.a0?Tn+1:1)}e.c[_]==0?hr(e.e,z):e.a[_]==0&&hr(e.f,z),++_}for(U=-1,W=1,I=new st,e.d=f(V(t,(nt(),tR)),234);Mu>0;){for(;e.e.b!=0;)Si=f(eZ(e.e),10),e.b[Si.p]=U--,f3e(e,Si),--Mu;for(;e.f.b!=0;)Dc=f(eZ(e.f),10),e.b[Dc.p]=W++,f3e(e,Dc),--Mu;if(Mu>0){for(D=Qo,ge=new ee(_e);ge.a=D&&(Ce>D&&(I.c.length=0,D=Ce),sn(I.c,z)));k=e.sg(I),e.b[k.p]=W++,f3e(e,k),--Mu}}for(Pr=_e.c.length+1,_=0;_<_e.c.length;_++)e.b[_]<0&&(e.b[_]+=Pr);for(X=new ee(_e);X.ae.b[Ys]&&(sy(s,!0),Xe(t,o9,(cn(),!0)));e.a=null,e.c=null,e.b=null,wu(e.f),wu(e.e),i.Vg()}function pCt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze;for(Ke=f(Se((!e.a&&(e.a=new qe(ai,e,6,6)),e.a),0),166),k=new cc,Ce=new Fn,Ze=ERt(Ke),Ca(Ce.f,Ke,Ze),D=new Fn,s=new li,U=wp(_u(se(ie(Tu,1),on,20,0,[(!t.d&&(t.d=new en(Fi,t,8,5)),t.d),(!t.e&&(t.e=new en(Fi,t,7,4)),t.e)])));Un(U);){if(W=f(On(U),74),(!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i!=1)throw ne(new hn(eTt+(!e.a&&(e.a=new qe(ai,e,6,6)),e.a).i));W!=e&&(X=f(Se((!W.a&&(W.a=new qe(ai,W,6,6)),W.a),0),166),Ai(s,X,s.c.b,s.c),z=f(tl(xs(Ce.f,X)),13),z||(z=ERt(X),Ca(Ce.f,X,z)),I=i?uo(new us(f(yt(Ze,Ze.c.length-1),8)),f(yt(z,z.c.length-1),8)):uo(new us((Xt(0,Ze.c.length),f(Ze.c[0],8))),(Xt(0,z.c.length),f(z.c[0],8))),Ca(D.f,X,I))}if(s.b!=0)for(oe=f(yt(Ze,i?Ze.c.length-1:0),8),_=1;_1&&Ai(k,oe,k.c.b,k.c),Cee(a)));oe=ge}return k}function bCt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln;for(i.Ug(b4t,1),ln=f(fl(Br(new Wt(null,new Vt(t,16)),new TYe),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),k=f(fl(Br(new Wt(null,new Vt(t,16)),new mot(t)),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl]))),15),U=f(fl(Br(new Wt(null,new Vt(t,16)),new wot(t)),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[pl]))),15),z=Fe(YV,qU,40,t.gc(),0,1),b=0;b=0&&Nt=0&&!z[W]){z[W]=a,k.gd(g),--g;break}if(W=Nt-D,W=0&&!z[W]){z[W]=a,k.gd(g),--g;break}}for(U.jd(new $Ye),m=z.length-1;m>=0;m--)!z[m]&&!U.dc()&&(z[m]=f(U.Xb(0),40),U.gd(0));for(_=0;_=0;m--)hr(i,(Xt(m,b.c.length),f(b.c[m],8)));return i}function wCt(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;for(_e=Ae(je(Qe(t,(Ep(),G_)))),W=Ae(je(Qe(t,g5))),D=Ae(je(Qe(t,lz))),pSe((!t.a&&(t.a=new qe($r,t,10,11)),t.a)),oe=lxt((!t.a&&(t.a=new qe($r,t,10,11)),t.a),_e,e.b),X=0;XD&&PN((Xt(D,t.c.length),f(t.c[D],186)),k),k=null;t.c.length>D&&(Xt(D,t.c.length),f(t.c[D],186)).a.c.length==0;)Ja(t,(Xt(D,t.c.length),t.c[D]));if(!k){--b;continue}if(!wt(gt(f(yt(k.b,0),27).of((sh(),R9))))&&XNn(t,U,c,k,X,i,D,s)){z=!0;continue}if(X){if(W=U.b,I=k.f,!wt(gt(f(yt(k.b,0),27).of(R9)))&&pDn(t,U,c,k,i,D,s,a)){if(z=!0,W=e.j){e.a=-1,e.c=1;return}if(t=Jo(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(s=10,e.d>=e.j)throw ne(new ar(dr((ir(),sG))));e.a=Jo(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||Jo(e.i,e.d)!=63)break;if(++e.d>=e.j)throw ne(new ar(dr((ir(),Poe))));switch(t=Jo(e.i,e.d++),t){case 58:s=13;break;case 61:s=14;break;case 33:s=15;break;case 91:s=19;break;case 62:s=18;break;case 60:if(e.d>=e.j)throw ne(new ar(dr((ir(),Poe))));if(t=Jo(e.i,e.d++),t==61)s=16;else if(t==33)s=17;else throw ne(new ar(dr((ir(),CTt))));break;case 35:for(;e.d=e.j)throw ne(new ar(dr((ir(),sG))));e.a=Jo(e.i,e.d++);break;default:s=0}e.c=s}function Djn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X;if(i.Ug("Process compaction",1),!!wt(gt(V(t,(Il(),o5e))))){for(a=f(V(t,My),88),W=Ae(je(V(t,yae))),c9n(e,t,a),ZLn(t,W/2/2),U=t.b,sw(U,new uot(a)),_=Hn(U,0);_.b!=_.d.c;)if(m=f(Bn(_),40),!wt(gt(V(m,(ei(),s0))))){if(s=M7n(m,a),z=$Mn(m,t),I=0,D=0,s)switch(X=s.e,a.g){case 2:I=X.a-W-m.f.a,z.e.a-W-m.f.aI&&(I=z.e.a+z.f.a+W),D=I+m.f.a;break;case 4:I=X.b-W-m.f.b,z.e.b-W-m.f.bI&&(I=z.e.b+z.f.b+W),D=I+m.f.b}else if(z)switch(a.g){case 2:I=z.e.a-W-m.f.a,D=I+m.f.a;break;case 1:I=z.e.a+z.f.a+W,D=I+m.f.a;break;case 4:I=z.e.b-W-m.f.b,D=I+m.f.b;break;case 3:I=z.e.b+z.f.b+W,D=I+m.f.b}Ne(V(t,mae))===Ne((m6(),m9))?(c=I,b=D,g=GC(Br(new Wt(null,new Vt(e.a,16)),new Zct(c,b))),g.a!=null?a==(Xi(),Js)||a==al?m.e.a=I:m.e.b=I:(a==(Xi(),Js)||a==cf?g=GC(Br(Tmt(new Wt(null,new Vt(e.a,16))),new fot(c))):g=GC(Br(Tmt(new Wt(null,new Vt(e.a,16))),new dot(c))),g.a!=null&&(a==Js||a==al?m.e.a=Ae(je((In(g.a!=null),f(g.a,42)).a)):m.e.b=Ae(je((In(g.a!=null),f(g.a,42)).a)))),g.a!=null&&(k=il(e.a,(In(g.a!=null),g.a),0),k>0&&k!=f(V(m,ip),17).a&&(Xe(m,YIe,(cn(),!0)),Xe(m,ip,ot(k))))):a==(Xi(),Js)||a==al?m.e.a=I:m.e.b=I}i.Vg()}}function mCt(e){var t,i,s,a,c,b,g,m,_;for(e.b=1,Ir(e),t=null,e.c==0&&e.a==94?(Ir(e),t=(Or(),Or(),new yu(4)),da(t,0,zA),g=new yu(4)):g=(Or(),Or(),new yu(4)),a=!0;(_=e.c)!=1;){if(_==0&&e.a==93&&!a){t&&(tI(t,g),g=t);break}if(i=e.a,s=!1,_==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:h_(g,wA(i)),s=!0;break;case 105:case 73:case 99:case 67:i=(h_(g,wA(i)),-1),i<0&&(s=!0);break;case 112:case 80:if(m=bke(e,i),!m)throw ne(new ar(dr((ir(),Ooe))));h_(g,m),s=!0;break;default:i=Jke(e)}else if(_==24&&!a){if(t&&(tI(t,g),g=t),c=mCt(e),tI(g,c),e.c!=0||e.a!=93)throw ne(new ar(dr((ir(),LTt))));break}if(Ir(e),!s){if(_==0){if(i==91)throw ne(new ar(dr((ir(),yAe))));if(i==93)throw ne(new ar(dr((ir(),vAe))));if(i==45&&!a&&e.a!=93)throw ne(new ar(dr((ir(),Noe))))}if(e.c!=0||e.a!=45||i==45&&a)da(g,i,i);else{if(Ir(e),(_=e.c)==1)throw ne(new ar(dr((ir(),lG))));if(_==0&&e.a==93)da(g,i,i),da(g,45,45);else{if(_==0&&e.a==93||_==24)throw ne(new ar(dr((ir(),Noe))));if(b=e.a,_==0){if(b==91)throw ne(new ar(dr((ir(),yAe))));if(b==93)throw ne(new ar(dr((ir(),vAe))));if(b==45)throw ne(new ar(dr((ir(),Noe))))}else _==10&&(b=Jke(e));if(Ir(e),i>b)throw ne(new ar(dr((ir(),BTt))));da(g,i,b)}}}a=!1}if(e.c==1)throw ne(new ar(dr((ir(),lG))));return b2(g),Z6(g),e.b=0,Ir(e),g}function Ljn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke;if(i.Ug("Coffman-Graham Layering",1),t.a.c.length==0){i.Vg();return}for(Ke=f(V(t,(pt(),D6e)),17).a,m=0,b=0,D=new ee(t.a);D.a=Ke||!IAn(oe,s))&&(s=gbt(t,k)),Oo(oe,s),c=new kn(xn(go(oe).a.Kc(),new O));Un(c);)a=f(On(c),18),!e.a[a.p]&&(z=a.c.i,--e.e[z.p],e.e[z.p]==0&&Qk(aA(W,z),AA));for(_=k.c.length-1;_>=0;--_)lt(t.b,(Xt(_,k.c.length),f(k.c[_],30)));t.a.c.length=0,i.Vg()}function yCt(e,t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce;Ce=!1;do for(Ce=!1,c=t?new H0(e.a.b).a.gc()-2:1;t?c>=0:cf(V(X,Yr),17).a)&&(_e=!1);if(_e){for(m=t?c+1:c-1,g=t_e(e.a,ot(m)),b=!1,ge=!0,s=!1,k=Hn(g,0);k.b!=k.d.c;)_=f(Bn(k),10),ri(_,Yr)?_.p!=I.p&&(b=b|(t?f(V(_,Yr),17).af(V(I,Yr),17).a),ge=!1):!b&&ge&&_.k==(gn(),ea)&&(s=!0,t?D=f(On(new kn(xn(go(_).a.Kc(),new O))),18).c.i:D=f(On(new kn(xn(Wi(_).a.Kc(),new O))),18).d.i,D==I&&(t?i=f(On(new kn(xn(Wi(_).a.Kc(),new O))),18).d.i:i=f(On(new kn(xn(go(_).a.Kc(),new O))),18).c.i,(t?f(Ov(e.a,i),17).a-f(Ov(e.a,D),17).a:f(Ov(e.a,D),17).a-f(Ov(e.a,i),17).a)<=2&&(ge=!1)));if(s&&ge&&(t?i=f(On(new kn(xn(Wi(I).a.Kc(),new O))),18).d.i:i=f(On(new kn(xn(go(I).a.Kc(),new O))),18).c.i,(t?f(Ov(e.a,i),17).a-f(Ov(e.a,I),17).a:f(Ov(e.a,I),17).a-f(Ov(e.a,i),17).a)<=2&&i.k==(gn(),ji)&&(ge=!1)),b||ge){for(z=Jkt(e,I,t);z.a.gc()!=0;)U=f(z.a.ec().Kc().Pb(),10),z.a.Bc(U)!=null,Do(z,Jkt(e,U,t));--W,Ce=!0}}}while(Ce)}function jjn(e){Zn(e.c,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#decimal"])),Zn(e.d,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#integer"])),Zn(e.e,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#boolean"])),Zn(e.f,pr,se(ie(_t,1),rt,2,6,[Zo,"EBoolean",Tr,"EBoolean:Object"])),Zn(e.i,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#byte"])),Zn(e.g,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Zn(e.j,pr,se(ie(_t,1),rt,2,6,[Zo,"EByte",Tr,"EByte:Object"])),Zn(e.n,pr,se(ie(_t,1),rt,2,6,[Zo,"EChar",Tr,"EChar:Object"])),Zn(e.t,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#double"])),Zn(e.u,pr,se(ie(_t,1),rt,2,6,[Zo,"EDouble",Tr,"EDouble:Object"])),Zn(e.F,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#float"])),Zn(e.G,pr,se(ie(_t,1),rt,2,6,[Zo,"EFloat",Tr,"EFloat:Object"])),Zn(e.I,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#int"])),Zn(e.J,pr,se(ie(_t,1),rt,2,6,[Zo,"EInt",Tr,"EInt:Object"])),Zn(e.N,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#long"])),Zn(e.O,pr,se(ie(_t,1),rt,2,6,[Zo,"ELong",Tr,"ELong:Object"])),Zn(e.Z,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#short"])),Zn(e.$,pr,se(ie(_t,1),rt,2,6,[Zo,"EShort",Tr,"EShort:Object"])),Zn(e._,pr,se(ie(_t,1),rt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#string"]))}function Fjn(e,t,i,s,a,c,b){var g,m,_,k,I,D,W,U;return D=f(s.a,17).a,W=f(s.b,17).a,I=e.b,U=e.c,g=0,k=0,t==(Xi(),Js)||t==al?(k=ZO(c_t(Wv(nl(new Wt(null,new Vt(i.b,16)),new PYe),new pYe))),I.e.b+I.f.b/2>k?(_=++W,g=Ae(je(tu(jv(nl(new Wt(null,new Vt(i.b,16)),new nut(a,_)),new bYe))))):(m=++D,g=Ae(je(tu(e3(nl(new Wt(null,new Vt(i.b,16)),new rut(a,m)),new gYe)))))):(k=ZO(c_t(Wv(nl(new Wt(null,new Vt(i.b,16)),new vYe),new hYe))),I.e.a+I.f.a/2>k?(_=++W,g=Ae(je(tu(jv(nl(new Wt(null,new Vt(i.b,16)),new eut(a,_)),new wYe))))):(m=++D,g=Ae(je(tu(e3(nl(new Wt(null,new Vt(i.b,16)),new tut(a,m)),new mYe)))))),t==Js?(cs(e.a,new tt(Ae(je(V(I,(ei(),Fd))))-a,g)),cs(e.a,new tt(U.e.a+U.f.a+a+c,g)),cs(e.a,new tt(U.e.a+U.f.a+a+c,U.e.b+U.f.b/2)),cs(e.a,new tt(U.e.a+U.f.a,U.e.b+U.f.b/2))):t==al?(cs(e.a,new tt(Ae(je(V(I,(ei(),fd))))+a,I.e.b+I.f.b/2)),cs(e.a,new tt(I.e.a+I.f.a+a,g)),cs(e.a,new tt(U.e.a-a-c,g)),cs(e.a,new tt(U.e.a-a-c,U.e.b+U.f.b/2)),cs(e.a,new tt(U.e.a,U.e.b+U.f.b/2))):t==cf?(cs(e.a,new tt(g,Ae(je(V(I,(ei(),Fd))))-a)),cs(e.a,new tt(g,U.e.b+U.f.b+a+c)),cs(e.a,new tt(U.e.a+U.f.a/2,U.e.b+U.f.b+a+c)),cs(e.a,new tt(U.e.a+U.f.a/2,U.e.b+U.f.b+a))):(e.a.b==0||(f(Jf(e.a),8).b=Ae(je(V(I,(ei(),fd))))+a*f(b.b,17).a),cs(e.a,new tt(g,Ae(je(V(I,(ei(),fd))))+a*f(b.b,17).a)),cs(e.a,new tt(g,U.e.b-a*f(b.a,17).a-c))),new io(ot(D),ot(W))}function Bjn(e){var t,i,s,a,c,b,g,m,_,k,I,D,W;if(b=!0,I=null,s=null,a=null,t=!1,W=ODt,_=null,c=null,g=0,m=Ite(e,g,vOe,_Oe),m=0&&Ht(e.substr(g,2),"//")?(g+=2,m=Ite(e,g,j5,F5),s=(Mo(g,m,e.length),e.substr(g,m-g)),g=m):I!=null&&(g==e.length||(pn(g,e.length),e.charCodeAt(g)!=47))&&(b=!1,m=Rme(e,Qa(35),g),m==-1&&(m=e.length),s=(Mo(g,m,e.length),e.substr(g,m-g)),g=m);if(!i&&g0&&Jo(k,k.length-1)==58&&(a=k,g=m)),gxne(c))&&(I=c);for(!I&&(I=(Xt(0,X.c.length),f(X.c[0],185))),z=new ee(t.b);z.aI&&(an=0,Tn+=k+ut,k=0),cRt(Ke,b,an,Tn),t=h.Math.max(t,an+Ze.a),k=h.Math.max(k,Ze.b),an+=Ze.a+ut;for(Ce=new Fn,i=new Fn,Nt=new ee(e);Nt.a=-1900?1:0,i>=4?br(e,se(ie(_t,1),rt,2,6,[DCt,LCt])[g]):br(e,se(ie(_t,1),rt,2,6,["BC","AD"])[g]);break;case 121:s4n(e,i,s);break;case 77:kNn(e,i,s);break;case 107:m=a.q.getHours(),m==0?vp(e,24,i):vp(e,m,i);break;case 83:jPn(e,i,a);break;case 69:k=s.q.getDay(),i==5?br(e,se(ie(_t,1),rt,2,6,["S","M","T","W","T","F","S"])[k]):i==4?br(e,se(ie(_t,1),rt,2,6,[Tre,$re,Ire,Pre,Ore,Nre,Mre])[k]):br(e,se(ie(_t,1),rt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[k]);break;case 97:a.q.getHours()>=12&&a.q.getHours()<24?br(e,se(ie(_t,1),rt,2,6,["AM","PM"])[1]):br(e,se(ie(_t,1),rt,2,6,["AM","PM"])[0]);break;case 104:I=a.q.getHours()%12,I==0?vp(e,12,i):vp(e,I,i);break;case 75:D=a.q.getHours()%12,vp(e,D,i);break;case 72:W=a.q.getHours(),vp(e,W,i);break;case 99:U=s.q.getDay(),i==5?br(e,se(ie(_t,1),rt,2,6,["S","M","T","W","T","F","S"])[U]):i==4?br(e,se(ie(_t,1),rt,2,6,[Tre,$re,Ire,Pre,Ore,Nre,Mre])[U]):i==3?br(e,se(ie(_t,1),rt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[U]):vp(e,U,1);break;case 76:z=s.q.getMonth(),i==5?br(e,se(ie(_t,1),rt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[z]):i==4?br(e,se(ie(_t,1),rt,2,6,[mre,yre,vre,_re,P3,Sre,Ere,kre,Rre,xre,Cre,Are])[z]):i==3?br(e,se(ie(_t,1),rt,2,6,["Jan","Feb","Mar","Apr",P3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[z]):vp(e,z+1,i);break;case 81:X=s.q.getMonth()/3|0,i<4?br(e,se(ie(_t,1),rt,2,6,["Q1","Q2","Q3","Q4"])[X]):br(e,se(ie(_t,1),rt,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[X]);break;case 100:oe=s.q.getDate(),vp(e,oe,i);break;case 109:_=a.q.getMinutes(),vp(e,_,i);break;case 115:b=a.q.getSeconds(),vp(e,b,i);break;case 122:i<4?br(e,c.c[0]):br(e,c.c[1]);break;case 118:br(e,c.b);break;case 90:i<3?br(e,I5n(c)):i==3?br(e,D5n(c)):br(e,L5n(c.a));break;default:return!1}return!0}function G3e(e,t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn,Pr;if(Q3t(t),m=f(Se((!t.b&&(t.b=new en(Dn,t,4,7)),t.b),0),84),k=f(Se((!t.c&&(t.c=new en(Dn,t,5,8)),t.c),0),84),g=sl(m),_=sl(k),b=(!t.a&&(t.a=new qe(ai,t,6,6)),t.a).i==0?null:f(Se((!t.a&&(t.a=new qe(ai,t,6,6)),t.a),0),166),ut=f(En(e.a,g),10),an=f(En(e.a,_),10),Dt=null,Tn=null,ve(m,193)&&(Ze=f(En(e.a,m),305),ve(Ze,12)?Dt=f(Ze,12):ve(Ze,10)&&(ut=f(Ze,10),Dt=f(yt(ut.j,0),12))),ve(k,193)&&(ln=f(En(e.a,k),305),ve(ln,12)?Tn=f(ln,12):ve(ln,10)&&(an=f(ln,10),Tn=f(yt(an.j,0),12))),!ut||!an)throw ne(new Dk("The source or the target of edge "+t+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(z=new Fm,ol(z,t),Xe(z,(nt(),Ur),t),Xe(z,(pt(),Xs),null),W=f(V(s,ma),21),ut==an&&W.Fc((As(),VI)),Dt||(Ke=(Cs(),Ta),Nt=null,b&&HS(f(V(ut,Oi),101))&&(Nt=new tt(b.j,b.k),H1t(Nt,M7(t)),g0t(Nt,i),Xv(_,g)&&(Ke=Pc,Mr(Nt,ut.n))),Dt=ZRt(ut,Nt,Ke,s)),Tn||(Ke=(Cs(),Pc),Pr=null,b&&HS(f(V(an,Oi),101))&&(Pr=new tt(b.b,b.c),H1t(Pr,M7(t)),g0t(Pr,i)),Tn=ZRt(an,Pr,Ke,Go(an))),rs(z,Dt),xo(z,Tn),(Dt.e.c.length>1||Dt.g.c.length>1||Tn.e.c.length>1||Tn.g.c.length>1)&&W.Fc((As(),GI)),D=new Sn((!t.n&&(t.n=new qe(Fs,t,1,7)),t.n));D.e!=D.i.gc();)if(I=f(Cn(D),135),!wt(gt(Qe(I,Lw)))&&I.a)switch(X=fte(I),lt(z.b,X),f(V(X,rp),278).g){case 1:case 2:W.Fc((As(),l4));break;case 0:W.Fc((As(),s4)),Xe(X,rp,(nh(),R4))}if(c=f(V(s,YI),322),oe=f(V(s,DV),323),a=c==(u6(),n9)||oe==($6(),Jle),b&&(!b.a&&(b.a=new zi(Nu,b,5)),b.a).i!=0&&a){for(ge=jN(b),U=new cc,Ce=Hn(ge,0);Ce.b!=Ce.d.c;)_e=f(Bn(Ce),8),hr(U,new us(_e));Xe(z,j$e,U)}return z}function Gjn(e,t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn,Pr,Si;for(Nt=0,ln=0,ut=new Fn,Ke=f(tu(jv(nl(new Wt(null,new Vt(e.b,16)),new yYe),new CYe)),17).a+1,Dt=Fe(Xn,wr,28,Ke,15,1),X=Fe(Xn,wr,28,Ke,15,1),z=0;z1)for(g=Tn+1;g_.b.e.b*(1-oe)+_.c.e.b*oe));U++);if(Ze.gc()>0&&(Pr=_.a.b==0?Ho(_.b.e):f(Jf(_.a),8),_e=Mr(Ho(f(Ze.Xb(Ze.gc()-1),40).e),f(Ze.Xb(Ze.gc()-1),40).f),D=Mr(Ho(f(Ze.Xb(0),40).e),f(Ze.Xb(0),40).f),U>=Ze.gc()-1&&Pr.b>_e.b&&_.c.e.b>_e.b||U<=0&&Pr.b_.b.e.a*(1-oe)+_.c.e.a*oe));U++);if(Ze.gc()>0&&(Pr=_.a.b==0?Ho(_.b.e):f(Jf(_.a),8),_e=Mr(Ho(f(Ze.Xb(Ze.gc()-1),40).e),f(Ze.Xb(Ze.gc()-1),40).f),D=Mr(Ho(f(Ze.Xb(0),40).e),f(Ze.Xb(0),40).f),U>=Ze.gc()-1&&Pr.a>_e.a&&_.c.e.a>_e.a||U<=0&&Pr.a=Ae(je(V(e,(ei(),e5e))))&&++ln):(W.f&&W.d.e.a<=Ae(je(V(e,(ei(),pae))))&&++Nt,W.g&&W.c.e.a+W.c.f.a>=Ae(je(V(e,(ei(),ZIe))))&&++ln)}else Ce==0?dke(_):Ce<0&&(++Dt[Tn],++X[Si],an=Fjn(_,t,e,new io(ot(Nt),ot(ln)),i,s,new io(ot(X[Si]),ot(Dt[Tn]))),Nt=f(an.a,17).a,ln=f(an.b,17).a)}function Vjn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;if(s=t,m=i,e.b&&s.j==(ft(),wn)&&m.j==(ft(),wn)&&(ge=s,s=m,m=ge),Na(e.a,s)){if(Rd(f(En(e.a,s),49),m))return 1}else xr(e.a,s,new Gi);if(Na(e.a,m)){if(Rd(f(En(e.a,m),49),s))return-1}else xr(e.a,m,new Gi);if(Na(e.d,s)){if(Rd(f(En(e.d,s),49),m))return-1}else xr(e.d,s,new Gi);if(Na(e.d,m)){if(Rd(f(En(e.a,m),49),s))return 1}else xr(e.d,m,new Gi);if(s.j!=m.j)return oe=Ogn(s.j,m.j),oe==-1?nf(e,m,s):nf(e,s,m),oe;if(s.e.c.length!=0&&m.e.c.length!=0){if(e.b&&(oe=Lvt(s,m),oe!=0))return oe==-1?nf(e,m,s):oe==1&&nf(e,s,m),oe;if(c=f(yt(s.e,0),18).c.i,k=f(yt(m.e,0),18).c.i,c==k)return a=f(V(f(yt(s.e,0),18),(nt(),Yr)),17).a,_=f(V(f(yt(m.e,0),18),Yr),17).a,a>_?nf(e,s,m):nf(e,m,s),a<_?-1:a>_?1:0;for(U=e.c,z=0,X=U.length;z_?nf(e,s,m):nf(e,m,s),a<_?-1:a>_?1:0):e.b&&(oe=Lvt(s,m),oe!=0)?(oe==-1?nf(e,m,s):oe==1&&nf(e,s,m),oe):(b=0,I=0,ri(f(yt(s.g,0),18),Yr)&&(b=f(V(f(yt(s.g,0),18),Yr),17).a),ri(f(yt(m.g,0),18),Yr)&&(I=f(V(f(yt(s.g,0),18),Yr),17).a),g&&g==D?wt(gt(V(f(yt(s.g,0),18),hh)))&&!wt(gt(V(f(yt(m.g,0),18),hh)))?(nf(e,s,m),1):!wt(gt(V(f(yt(s.g,0),18),hh)))&&wt(gt(V(f(yt(m.g,0),18),hh)))?(nf(e,m,s),-1):(b>I?nf(e,s,m):nf(e,m,s),bI?1:0):(e.f&&(e.f._b(g)&&(b=f(e.f.xc(g),17).a),e.f._b(D)&&(I=f(e.f.xc(D),17).a)),b>I?nf(e,s,m):nf(e,m,s),bI?1:0))):s.e.c.length!=0&&m.g.c.length!=0?(nf(e,s,m),1):s.g.c.length!=0&&m.e.c.length!=0?(nf(e,m,s),-1):ri(s,(nt(),Yr))&&ri(m,Yr)?(a=f(V(s,Yr),17).a,_=f(V(m,Yr),17).a,a>_?nf(e,s,m):nf(e,m,s),a<_?-1:a>_?1:0):(nf(e,m,s),-1)}function zjn(e){e.gb||(e.gb=!0,e.b=$l(e,0),Ti(e.b,18),oi(e.b,19),e.a=$l(e,1),Ti(e.a,1),oi(e.a,2),oi(e.a,3),oi(e.a,4),oi(e.a,5),e.o=$l(e,2),Ti(e.o,8),Ti(e.o,9),oi(e.o,10),oi(e.o,11),oi(e.o,12),oi(e.o,13),oi(e.o,14),oi(e.o,15),oi(e.o,16),oi(e.o,17),oi(e.o,18),oi(e.o,19),oi(e.o,20),oi(e.o,21),oi(e.o,22),oi(e.o,23),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),zs(e.o),e.p=$l(e,3),Ti(e.p,2),Ti(e.p,3),Ti(e.p,4),Ti(e.p,5),oi(e.p,6),oi(e.p,7),zs(e.p),zs(e.p),e.q=$l(e,4),Ti(e.q,8),e.v=$l(e,5),oi(e.v,9),zs(e.v),zs(e.v),zs(e.v),e.w=$l(e,6),Ti(e.w,2),Ti(e.w,3),Ti(e.w,4),oi(e.w,5),e.B=$l(e,7),oi(e.B,1),zs(e.B),zs(e.B),zs(e.B),e.Q=$l(e,8),oi(e.Q,0),zs(e.Q),e.R=$l(e,9),Ti(e.R,1),e.S=$l(e,10),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),zs(e.S),e.T=$l(e,11),oi(e.T,10),oi(e.T,11),oi(e.T,12),oi(e.T,13),oi(e.T,14),zs(e.T),zs(e.T),e.U=$l(e,12),Ti(e.U,2),Ti(e.U,3),oi(e.U,4),oi(e.U,5),oi(e.U,6),oi(e.U,7),zs(e.U),e.V=$l(e,13),oi(e.V,10),e.W=$l(e,14),Ti(e.W,18),Ti(e.W,19),Ti(e.W,20),oi(e.W,21),oi(e.W,22),oi(e.W,23),e.bb=$l(e,15),Ti(e.bb,10),Ti(e.bb,11),Ti(e.bb,12),Ti(e.bb,13),Ti(e.bb,14),Ti(e.bb,15),Ti(e.bb,16),oi(e.bb,17),zs(e.bb),zs(e.bb),e.eb=$l(e,16),Ti(e.eb,2),Ti(e.eb,3),Ti(e.eb,4),Ti(e.eb,5),Ti(e.eb,6),Ti(e.eb,7),oi(e.eb,8),oi(e.eb,9),e.ab=$l(e,17),Ti(e.ab,0),Ti(e.ab,1),e.H=$l(e,18),oi(e.H,0),oi(e.H,1),oi(e.H,2),oi(e.H,3),oi(e.H,4),oi(e.H,5),zs(e.H),e.db=$l(e,19),oi(e.db,2),e.c=Ar(e,20),e.d=Ar(e,21),e.e=Ar(e,22),e.f=Ar(e,23),e.i=Ar(e,24),e.g=Ar(e,25),e.j=Ar(e,26),e.k=Ar(e,27),e.n=Ar(e,28),e.r=Ar(e,29),e.s=Ar(e,30),e.t=Ar(e,31),e.u=Ar(e,32),e.fb=Ar(e,33),e.A=Ar(e,34),e.C=Ar(e,35),e.D=Ar(e,36),e.F=Ar(e,37),e.G=Ar(e,38),e.I=Ar(e,39),e.J=Ar(e,40),e.L=Ar(e,41),e.M=Ar(e,42),e.N=Ar(e,43),e.O=Ar(e,44),e.P=Ar(e,45),e.X=Ar(e,46),e.Y=Ar(e,47),e.Z=Ar(e,48),e.$=Ar(e,49),e._=Ar(e,50),e.cb=Ar(e,51),e.K=Ar(e,52))}function Kjn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn;for(b=new li,Ze=f(V(i,(pt(),$u)),88),z=0,Do(b,(!t.a&&(t.a=new qe($r,t,10,11)),t.a));b.b!=0;)k=f(b.b==0?null:(In(b.b!=0),Xu(b,b.a.a)),27),_=di(k),(Ne(Qe(_,Np))!==Ne((Wh(),Dg))||Ne(Qe(_,Ow))===Ne((Eg(),i4))||Ne(Qe(_,Ow))===Ne((Eg(),r4))||wt(gt(Qe(_,Cy)))||Ne(Qe(_,N_))!==Ne((hw(),A_))||Ne(Qe(_,r0))===Ne((Sf(),Oy))||Ne(Qe(_,r0))===Ne((Sf(),W_))||Ne(Qe(_,Mw))===Ne((Ag(),g4))||Ne(Qe(_,Mw))===Ne((Ag(),w4)))&&!wt(gt(Qe(k,AV)))&&zr(k,(nt(),Yr),ot(z++)),oe=!wt(gt(Qe(k,Lw))),oe&&(D=(!k.a&&(k.a=new qe($r,k,10,11)),k.a).i!=0,U=S6n(k),W=Ne(Qe(k,M_))===Ne((vb(),Wg)),Tn=!eh(k,(Er(),S4))||k0t(or(Qe(k,S4))),Ce=null,Tn&&W&&(D||U)&&(Ce=ORt(k),Xe(Ce,$u,Ze),ri(Ce,u9)&&Nlt(new C2e(Ae(je(V(Ce,u9)))),Ce),f(Qe(k,Dw),181).gc()!=0&&(I=Ce,Mi(new Wt(null,(!k.c&&(k.c=new qe(Mc,k,9,9)),new Vt(k.c,16))),new Wrt(I)),R3t(k,Ce))),ut=i,Dt=f(En(e.a,di(k)),10),Dt&&(ut=Dt.e),_e=sCt(e,k,ut),Ce&&(_e.e=Ce,Ce.e=_e,Do(b,(!k.a&&(k.a=new qe($r,k,10,11)),k.a))));for(z=0,Ai(b,t,b.c.b,b.c);b.b!=0;){for(c=f(b.b==0?null:(In(b.b!=0),Xu(b,b.a.a)),27),m=new Sn((!c.b&&(c.b=new qe(Fi,c,12,3)),c.b));m.e!=m.i.gc();)g=f(Cn(m),74),Q3t(g),(Ne(Qe(t,Np))!==Ne((Wh(),Dg))||Ne(Qe(t,Ow))===Ne((Eg(),i4))||Ne(Qe(t,Ow))===Ne((Eg(),r4))||wt(gt(Qe(t,Cy)))||Ne(Qe(t,N_))!==Ne((hw(),A_))||Ne(Qe(t,r0))===Ne((Sf(),Oy))||Ne(Qe(t,r0))===Ne((Sf(),W_))||Ne(Qe(t,Mw))===Ne((Ag(),g4))||Ne(Qe(t,Mw))===Ne((Ag(),w4)))&&zr(g,(nt(),Yr),ot(z++)),ln=sl(f(Se((!g.b&&(g.b=new en(Dn,g,4,7)),g.b),0),84)),an=sl(f(Se((!g.c&&(g.c=new en(Dn,g,5,8)),g.c),0),84)),!(wt(gt(Qe(g,Lw)))||wt(gt(Qe(ln,Lw)))||wt(gt(Qe(an,Lw))))&&(X=ry(g)&&wt(gt(Qe(ln,D_)))&&wt(gt(Qe(g,Nw))),Ke=c,X||Xv(an,ln)?Ke=ln:Xv(ln,an)&&(Ke=an),ut=i,Dt=f(En(e.a,Ke),10),Dt&&(ut=Dt.e),ge=G3e(e,g,Ke,ut),Xe(ge,(nt(),N$e),KOn(e,g,t,i)));if(W=Ne(Qe(c,M_))===Ne((vb(),Wg)),W)for(a=new Sn((!c.a&&(c.a=new qe($r,c,10,11)),c.a));a.e!=a.i.gc();)s=f(Cn(a),27),Tn=!eh(s,(Er(),S4))||k0t(or(Qe(s,S4))),Nt=Ne(Qe(s,M_))===Ne(Wg),Tn&&Nt&&Ai(b,s,b.c.b,b.c)}}function nt(){nt=F;var e,t;Ur=new Xr($Re),N$e=new Xr("coordinateOrigin"),Rle=new Xr("processors"),O$e=new _i("compoundNode",(cn(),!1)),s9=new _i("insideConnections",!1),j$e=new Xr("originalBendpoints"),F$e=new Xr("originalDummyNodePosition"),B$e=new Xr("originalLabelEdge"),KI=new Xr("representedLabels"),zI=new Xr("endLabels"),Q3=new Xr("endLabel.origin"),eR=new _i("labelSide",(ku(),F9)),V2=new _i("maxEdgeThickness",0),hh=new _i("reversed",!1),tR=new Xr(EAt),jd=new _i("longEdgeSource",null),Af=new _i("longEdgeTarget",null),P_=new _i("longEdgeHasLabelDummies",!1),l9=new _i("longEdgeBeforeLabelDummy",!1),_V=new _i("edgeConstraint",(uw(),ale)),ky=new Xr("inLayerLayoutUnit"),Iw=new _i("inLayerConstraint",(wb(),i9)),Z3=new _i("inLayerSuccessorConstraint",new st),L$e=new _i("inLayerSuccessorConstraintBetweenNonDummies",!1),Ic=new Xr("portDummy"),vV=new _i("crossingHint",ot(0)),ma=new _i("graphProperties",(t=f(kd(ble),9),new Uu(t,f(Yf(t,t.length),9),0))),Dl=new _i("externalPortSide",(ft(),Cl)),D$e=new _i("externalPortSize",new Io),vle=new Xr("externalPortReplacedDummies"),SV=new Xr("externalPortReplacedDummy"),Pb=new _i("externalPortConnections",(e=f(kd(vs),9),new Uu(e,f(Yf(e,e.length),9),0))),Ry=new _i(pAt,0),P$e=new Xr("barycenterAssociates"),nR=new Xr("TopSideComments"),Y3=new Xr("BottomSideComments"),yV=new Xr("CommentConnectionPort"),Sle=new _i("inputCollect",!1),kle=new _i("outputCollect",!1),o9=new _i("cyclic",!1),M$e=new Xr("crossHierarchyMap"),Cle=new Xr("targetOffset"),new _i("splineLabelSize",new Io),K2=new Xr("spacings"),EV=new _i("partitionConstraint",!1),Ey=new Xr("breakingPoint.info"),U$e=new Xr("splines.survivingEdge"),Pw=new Xr("splines.route.start"),q2=new Xr("splines.edgeChain"),H$e=new Xr("originalPortConstraints"),xy=new Xr("selfLoopHolder"),c4=new Xr("splines.nsPortY"),Yr=new Xr("modelOrder"),Ele=new Xr("longEdgeTargetNode"),t0=new _i(XAt,!1),z2=new _i(XAt,!1),_le=new Xr("layerConstraints.hiddenNodes"),W$e=new Xr("layerConstraints.opposidePort"),xle=new Xr("targetNode.modelOrder")}function qjn(e,t,i,s){var a,c,b,g,m,_,k,I,D,W,U;for(I=Hn(e.b,0);I.b!=I.d.c;)if(k=f(Bn(I),40),!Ht(k.c,KU))for(c=f(fl(new Wt(null,new Vt(r8n(k,e),16)),Cc(new K,new B,new Qt,se(ie(qs,1),Je,108,0,[(Tc(),pl)]))),15),t==(Xi(),Js)||t==al?c.jd(new EYe):c.jd(new kYe),U=c.gc(),a=0;a0&&(g=f(Jf(f(c.Xb(a),65).a),8).a,D=k.e.a+k.f.a/2,m=f(Jf(f(c.Xb(a),65).a),8).b,W=k.e.b+k.f.b/2,s>0&&h.Math.abs(m-W)/(h.Math.abs(g-D)/40)>50&&(W>m?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a+s/5.3,k.e.b+k.f.b*b-s/2)):cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a+s/5.3,k.e.b+k.f.b*b+s/2)))),cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a,k.e.b+k.f.b*b))):t==al?(_=Ae(je(V(k,(ei(),Fd)))),k.e.a-s>_?cs(f(c.Xb(a),65).a,new tt(_-i,k.e.b+k.f.b*b)):f(c.Xb(a),65).a.b>0&&(g=f(Jf(f(c.Xb(a),65).a),8).a,D=k.e.a+k.f.a/2,m=f(Jf(f(c.Xb(a),65).a),8).b,W=k.e.b+k.f.b/2,s>0&&h.Math.abs(m-W)/(h.Math.abs(g-D)/40)>50&&(W>m?cs(f(c.Xb(a),65).a,new tt(k.e.a-s/5.3,k.e.b+k.f.b*b-s/2)):cs(f(c.Xb(a),65).a,new tt(k.e.a-s/5.3,k.e.b+k.f.b*b+s/2)))),cs(f(c.Xb(a),65).a,new tt(k.e.a,k.e.b+k.f.b*b))):t==cf?(_=Ae(je(V(k,(ei(),fd)))),k.e.b+k.f.b+s<_?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,_+i)):f(c.Xb(a),65).a.b>0&&(g=f(Jf(f(c.Xb(a),65).a),8).a,D=k.e.a+k.f.a/2,m=f(Jf(f(c.Xb(a),65).a),8).b,W=k.e.b+k.f.b/2,s>0&&h.Math.abs(g-D)/(h.Math.abs(m-W)/40)>50&&(D>g?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b-s/2,k.e.b+s/5.3+k.f.b)):cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b+s/2,k.e.b+s/5.3+k.f.b)))),cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,k.e.b+k.f.b))):(_=Ae(je(V(k,(ei(),Fd)))),Evt(f(c.Xb(a),65),e)?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,f(Jf(f(c.Xb(a),65).a),8).b)):k.e.b-s>_?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,_-i)):f(c.Xb(a),65).a.b>0&&(g=f(Jf(f(c.Xb(a),65).a),8).a,D=k.e.a+k.f.a/2,m=f(Jf(f(c.Xb(a),65).a),8).b,W=k.e.b+k.f.b/2,s>0&&h.Math.abs(g-D)/(h.Math.abs(m-W)/40)>50&&(D>g?cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b-s/2,k.e.b-s/5.3)):cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b+s/2,k.e.b-s/5.3)))),cs(f(c.Xb(a),65).a,new tt(k.e.a+k.f.a*b,k.e.b)))}function Er(){Er=F;var e,t;S4=new Xr(N4t),hE=new Xr(M4t),J8e=(_p(),ice),x9t=new Bt(jxe,J8e),sE=new Bt(j3,null),C9t=new Xr(YCe),Q8e=(bw(),ii(lce,se(ie(ace,1),Je,298,0,[sce]))),$9=new Bt(HU,Q8e),I9=new Bt(TM,(cn(),!1)),Z8e=(Xi(),wh),Ww=new Bt(zie,Z8e),nPe=(_b(),_ce),tPe=new Bt(AM,nPe),$9t=new Bt(XCe,!1),oPe=(vb(),Ez),cE=new Bt(WU,oPe),pPe=new Rm(12),Bg=new Bt(fy,pPe),O9=new Bt(uI,!1),dce=new Bt(GU,!1),N9=new Bt(fI,!1),yPe=(Co(),u0),x5=new Bt(die,yPe),lR=new Xr(UU),M9=new Xr(yM),yce=new Xr(EU),vce=new Xr(cI),sPe=new cc,Dy=new Bt(Xxe,sPe),T9t=new Bt(Qxe,!1),I9t=new Bt(Zxe,!1),lPe=new n$,E4=new Bt(tCe,lPe),yz=new Bt(Dxe,!1),M9t=new Bt(D4t,1),aE=new Xr(L4t),lE=new Xr(j4t),k4=new Bt(vM,!1),new Bt(F4t,!0),ot(0),new Bt(B4t,ot(100)),new Bt(W4t,!1),ot(0),new Bt(H4t,ot(4e3)),ot(0),new Bt(U4t,ot(400)),new Bt(G4t,!1),new Bt(V4t,!1),new Bt(z4t,!0),new Bt(K4t,!1),Y8e=(sH(),Rce),A9t=new Bt(JCe,Y8e),D9t=new Bt(Rxe,10),L9t=new Bt(xxe,10),EPe=new Bt(oie,20),j9t=new Bt(Cxe,10),kPe=new Bt(fie,2),RPe=new Bt(Vie,10),xPe=new Bt(Axe,0),vz=new Bt(Ixe,5),CPe=new Bt(Txe,1),APe=new Bt($xe,1),Uw=new Bt(m_,20),F9t=new Bt(Pxe,10),IPe=new Bt(Oxe,10),aR=new Xr(Nxe),$Pe=new eft,TPe=new Bt(nCe,$Pe),O9t=new Xr(qie),bPe=!1,P9t=new Bt(Kie,bPe),cPe=new Rm(5),aPe=new Bt(Wxe,cPe),uPe=(a_(),t=f(kd(Ps),9),new Uu(t,f(Yf(t,t.length),9),0)),uE=new Bt(NA,uPe),wPe=(a2(),c0),gPe=new Bt(Gxe,wPe),pce=new Xr(Vxe),bce=new Xr(zxe),gce=new Xr(Kxe),hce=new Xr(qxe),fPe=(e=f(kd(N5),9),new Uu(e,f(Yf(e,e.length),9),0)),Hw=new Bt(A2,fPe),hPe=Mt((Gc(),T4)),l0=new Bt(F3,hPe),dPe=new tt(0,0),fE=new Bt(B3,dPe),V_=new Bt(OA,!1),ePe=(nh(),R4),uce=new Bt(Jxe,ePe),cce=new Bt(kU,!1),ot(1),new Bt(q4t,null),mPe=new Xr(eCe),wce=new Xr(Yxe),SPe=(ft(),Cl),dE=new Bt(Lxe,SPe),qc=new Xr(Mxe),vPe=($c(),Mt(f0)),z_=new Bt(MA,vPe),mce=new Bt(Hxe,!1),_Pe=new Bt(Uxe,!0),Sz=new Bt(_M,1),PPe=new Bt(QCe,null),D9=new Bt(SM,150),_z=new Bt(EM,1.414),cR=new Bt(dy,null),B9t=new Bt(ZCe,1),P9=new Bt(Fxe,!1),fce=new Bt(Bxe,!1),rPe=new Bt(sie,1),iPe=(NH(),Ece),new Bt(X4t,iPe),N9t=!0,H9t=(m3(),X_),U9t=X_,W9t=X_}function ss(){ss=F,ITe=new Vi("DIRECTION_PREPROCESSOR",0),ATe=new Vi("COMMENT_PREPROCESSOR",1),j2=new Vi("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),Gse=new Vi("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),JTe=new Vi("PARTITION_PREPROCESSOR",4),KG=new Vi("LABEL_DUMMY_INSERTER",5),rV=new Vi("SELF_LOOP_PREPROCESSOR",6),$_=new Vi("LAYER_CONSTRAINT_PREPROCESSOR",7),qTe=new Vi("PARTITION_MIDPROCESSOR",8),FTe=new Vi("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),zTe=new Vi("NODE_PROMOTION",10),T_=new Vi("LAYER_CONSTRAINT_POSTPROCESSOR",11),XTe=new Vi("PARTITION_POSTPROCESSOR",12),DTe=new Vi("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),YTe=new Vi("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),STe=new Vi("BREAKING_POINT_INSERTER",15),YG=new Vi("LONG_EDGE_SPLITTER",16),Vse=new Vi("PORT_SIDE_PROCESSOR",17),VG=new Vi("INVERTED_PORT_PROCESSOR",18),eV=new Vi("PORT_LIST_SORTER",19),ZTe=new Vi("SORT_BY_INPUT_ORDER_OF_MODEL",20),ZG=new Vi("NORTH_SOUTH_PORT_PREPROCESSOR",21),ETe=new Vi("BREAKING_POINT_PROCESSOR",22),KTe=new Vi(WAt,23),e$e=new Vi(HAt,24),tV=new Vi("SELF_LOOP_PORT_RESTORER",25),QTe=new Vi("SINGLE_EDGE_GRAPH_WRAPPER",26),zG=new Vi("IN_LAYER_CONSTRAINT_PROCESSOR",27),OTe=new Vi("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),GTe=new Vi("LABEL_AND_NODE_SIZE_PROCESSOR",29),UTe=new Vi("INNERMOST_NODE_MARGIN_CALCULATOR",30),iV=new Vi("SELF_LOOP_ROUTER",31),xTe=new Vi("COMMENT_NODE_MARGIN_CALCULATOR",32),GG=new Vi("END_LABEL_PREPROCESSOR",33),XG=new Vi("LABEL_DUMMY_SWITCHER",34),RTe=new Vi("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),YA=new Vi("LABEL_SIDE_SELECTOR",36),WTe=new Vi("HYPEREDGE_DUMMY_MERGER",37),LTe=new Vi("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),VTe=new Vi("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),BI=new Vi("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),TTe=new Vi("CONSTRAINTS_POSTPROCESSOR",41),CTe=new Vi("COMMENT_POSTPROCESSOR",42),HTe=new Vi("HYPERNODE_PROCESSOR",43),jTe=new Vi("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),JG=new Vi("LONG_EDGE_JOINER",45),nV=new Vi("SELF_LOOP_POSTPROCESSOR",46),kTe=new Vi("BREAKING_POINT_REMOVER",47),QG=new Vi("NORTH_SOUTH_PORT_POSTPROCESSOR",48),BTe=new Vi("HORIZONTAL_COMPACTOR",49),qG=new Vi("LABEL_DUMMY_REMOVER",50),NTe=new Vi("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),PTe=new Vi("END_LABEL_SORTER",52),ZM=new Vi("REVERSED_EDGE_RESTORER",53),UG=new Vi("END_LABEL_POSTPROCESSOR",54),MTe=new Vi("HIERARCHICAL_NODE_RESIZER",55),$Te=new Vi("DIRECTION_POSTPROCESSOR",56)}function V3e(){V3e=F,e6e=(nN(),dV),tPt=new Bt(BRe,e6e),hPt=new Bt(WRe,(cn(),!1)),s6e=(rW(),yle),mPt=new Bt(AU,s6e),OPt=new Bt(HRe,!1),NPt=new Bt(URe,!0),C8t=new Bt(GRe,!1),p6e=(eN(),eae),XPt=new Bt(VRe,p6e),ot(1),rOt=new Bt(zRe,ot(7)),iOt=new Bt(KRe,!1),pPt=new Bt(qRe,!1),Z$e=(Eg(),sle),ePt=new Bt(yie,Z$e),c6e=(Ag(),zle),PPt=new Bt(CM,c6e),l6e=(ef(),a9),kPt=new Bt(XRe,l6e),ot(-1),EPt=new Bt(JRe,null),ot(-1),RPt=new Bt(YRe,ot(-1)),ot(-1),xPt=new Bt(vie,ot(4)),ot(-1),APt=new Bt(_ie,ot(2)),a6e=(Sf(),GV),IPt=new Bt(Sie,a6e),ot(0),$Pt=new Bt(Eie,ot(0)),_Pt=new Bt(kie,ot(Nr)),Q$e=(u6(),HI),Z8t=new Bt(pI,Q$e),j8t=new Bt(QRe,!1),V8t=new Bt(Rie,.1),Y8t=new Bt(xie,!1),K8t=new Bt(ZRe,null),q8t=new Bt(exe,null),ot(-1),X8t=new Bt(txe,null),ot(-1),J8t=new Bt(nxe,ot(-1)),ot(0),F8t=new Bt(rxe,ot(40)),Y$e=(BC(),wle),U8t=new Bt(Cie,Y$e),J$e=r9,B8t=new Bt(TU,J$e),h6e=($6(),n5),qPt=new Bt(T2,h6e),FPt=new Xr($U),u6e=(X7(),pV),MPt=new Bt(Aie,u6e),f6e=(MN(),bV),LPt=new Bt(Tie,f6e),HPt=new Bt($ie,.3),GPt=new Xr(Iie),d6e=(n_(),UV),VPt=new Bt(Pie,d6e),r6e=(VW(),nae),sPt=new Bt(ixe,r6e),i6e=(w6(),iae),lPt=new Bt(oxe,i6e),o6e=(qC(),o5),aPt=new Bt(IU,o6e),uPt=new Bt(PU,.2),iPt=new Bt(Oie,2),ZPt=new Bt(sxe,null),tOt=new Bt(lxe,10),eOt=new Bt(axe,10),nOt=new Bt(cxe,20),ot(0),JPt=new Bt(uxe,ot(0)),ot(0),YPt=new Bt(fxe,ot(0)),ot(0),QPt=new Bt(dxe,ot(0)),A8t=new Bt(Nie,!1),z$e=(cA(),UI),$8t=new Bt(hxe,z$e),V$e=(pW(),ile),T8t=new Bt(pxe,V$e),gPt=new Bt(OU,!1),ot(0),bPt=new Bt(Mie,ot(16)),ot(0),wPt=new Bt(Die,ot(5)),w6e=(XW(),lae),kOt=new Bt(Tb,w6e),oOt=new Bt(NU,10),aOt=new Bt(MU,1),g6e=(IW(),fV),bOt=new Bt(bI,g6e),fOt=new Xr(Lie),b6e=ot(1),ot(0),hOt=new Bt(jie,b6e),m6e=($W(),sae),AOt=new Bt(DU,m6e),ROt=new Xr(LU),vOt=new Bt(jU,!0),mOt=new Bt(FU,2),SOt=new Bt(Fie,!0),n6e=(DH(),hV),rPt=new Bt(bxe,n6e),t6e=(R3(),t4),nPt=new Bt(gxe,t6e),X$e=(Wh(),Dg),L8t=new Bt(BU,X$e),D8t=new Bt(wxe,!1),M8t=new Bt(mxe,!1),K$e=(hw(),A_),I8t=new Bt(Bie,K$e),q$e=(v6(),Kle),N8t=new Bt(yxe,q$e),P8t=new Bt(Wie,0),O8t=new Bt(Hie,0),vPt=lle,yPt=n9,CPt=WV,TPt=WV,SPt=Vle,z8t=(vb(),Wg),Q8t=HI,G8t=HI,W8t=HI,H8t=Wg,BPt=r5,WPt=n5,DPt=n5,jPt=n5,UPt=Yle,KPt=r5,zPt=r5,cPt=(_b(),uR),fPt=uR,dPt=o5,oPt=L9,sOt=m4,lOt=H_,cOt=m4,uOt=H_,gOt=m4,wOt=H_,dOt=ole,pOt=fV,TOt=m4,$Ot=H_,xOt=m4,COt=H_,_Ot=H_,yOt=H_,EOt=H_}function Xjn(e,t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln,an,Tn,Pr,Si,Dc,Ys,Mu,yE,qg,md,yd,Kw,gR,y0,wR,sp,Wp,Wy,mR,vE,lp,qw,Lb,$Lt,t7e,Hy,K5,Hce,yR,q5,rS,X5,Uce,ILt;for(t7e=0,Pr=t,Ys=0,qg=Pr.length;Ys0&&(e.a[sp.p]=t7e++)}for(q5=0,Si=i,Mu=0,md=Si.length;Mu0;){for(sp=(In(vE.b>0),f(vE.a.Xb(vE.c=--vE.b),12)),mR=0,g=new ee(sp.e);g.a0&&(sp.j==(ft(),bn)?(e.a[sp.p]=q5,++q5):(e.a[sp.p]=q5+yd+gR,++gR))}q5+=gR}for(Wy=new Fn,U=new Oh,Tn=t,Dc=0,yE=Tn.length;Dc_.b&&(_.b=lp)):sp.i.c==$Lt&&(lp<_.f&&(_.f=lp),lp>_.c&&(_.c=lp));for(kC(z,0,z.length,null),yR=Fe(Xn,wr,28,z.length,15,1),s=Fe(Xn,wr,28,q5+1,15,1),oe=0;oe0;)ut%2>0&&(a+=Uce[ut+1]),ut=(ut-1)/2|0,++Uce[ut];for(Nt=Fe(A7t,on,374,z.length*2,0,1),Ce=0;Ce0&&O7(Dc.f),Qe(oe,PPe)!=null&&(g=f(Qe(oe,PPe),347),Wy=g.Tg(oe),GS(oe,h.Math.max(oe.g,Wy.a),h.Math.max(oe.f,Wy.b)));if(md=f(Qe(t,Bg),107),W=t.g-(md.b+md.c),D=t.f-(md.d+md.a),lp.bh("Available Child Area: ("+W+"|"+D+")"),zr(t,sE,W/D),rSt(t,a,s.eh(yE)),f(Qe(t,cR),280)==Tz&&(W3e(t),GS(t,md.b+Ae(je(Qe(t,aE)))+md.c,md.d+Ae(je(Qe(t,lE)))+md.a)),lp.bh("Executed layout algorithm: "+or(Qe(t,S4))+" on node "+t.k),f(Qe(t,cR),280)==X_){if(W<0||D<0)throw ne(new rg("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+t.k));for(eh(t,aE)||eh(t,lE)||W3e(t),z=Ae(je(Qe(t,aE))),U=Ae(je(Qe(t,lE))),lp.bh("Desired Child Area: ("+z+"|"+U+")"),Kw=W/z,gR=D/U,yd=h.Math.min(Kw,h.Math.min(gR,Ae(je(Qe(t,B9t))))),zr(t,Sz,yd),lp.bh(t.k+" -- Local Scale Factor (X|Y): ("+Kw+"|"+gR+")"),Ce=f(Qe(t,$9),21),c=0,b=0,yd'?":Ht(CTt,e)?"'(?<' or '(? toIndex: ",aRe=", toIndex: ",cRe="Index: ",uRe=", Size: ",TA="org.eclipse.elk.alg.common",cr={50:1},JCt="org.eclipse.elk.alg.common.compaction",YCt="Scanline/EventHandler",Ap="org.eclipse.elk.alg.common.compaction.oned",QCt="CNode belongs to another CGroup.",ZCt="ISpacingsHandler/1",Kre="The ",qre=" instance has been finished already.",eAt="The direction ",tAt=" is not supported by the CGraph instance.",nAt="OneDimensionalCompactor",rAt="OneDimensionalCompactor/lambda$0$Type",iAt="Quadruplet",oAt="ScanlineConstraintCalculator",sAt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",lAt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",aAt="ScanlineConstraintCalculator/Timestamp",cAt="ScanlineConstraintCalculator/lambda$0$Type",Kh={178:1,46:1},Xre="org.eclipse.elk.alg.common.compaction.options",xl="org.eclipse.elk.core.data",fRe="org.eclipse.elk.polyomino.traversalStrategy",dRe="org.eclipse.elk.polyomino.lowLevelSort",hRe="org.eclipse.elk.polyomino.highLevelSort",pRe="org.eclipse.elk.polyomino.fill",Ef={134:1},Jre="polyomino",sI="org.eclipse.elk.alg.common.networksimplex",Tp={183:1,3:1,4:1},uAt="org.eclipse.elk.alg.common.nodespacing",vw="org.eclipse.elk.alg.common.nodespacing.cellsystem",$A="CENTER",fAt={217:1,336:1},bRe={3:1,4:1,5:1,603:1},M3="LEFT",D3="RIGHT",gRe="Vertical alignment cannot be null",wRe="BOTTOM",wU="org.eclipse.elk.alg.common.nodespacing.internal",lI="UNDEFINED",ah=.01,gM="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",dAt="LabelPlacer/lambda$0$Type",hAt="LabelPlacer/lambda$1$Type",pAt="portRatioOrPosition",IA="org.eclipse.elk.alg.common.overlaps",Yre="DOWN",qh="org.eclipse.elk.alg.common.polyomino",mU="NORTH",Qre="EAST",Zre="SOUTH",eie="WEST",yU="org.eclipse.elk.alg.common.polyomino.structures",mRe="Direction",tie="Grid is only of size ",nie=". Requested point (",rie=") is out of bounds.",vU=" Given center based coordinates were (",wM="org.eclipse.elk.graph.properties",bAt="IPropertyHolder",yRe={3:1,96:1,137:1},L3="org.eclipse.elk.alg.common.spore",gAt="org.eclipse.elk.alg.common.utils",_w={205:1},R2="org.eclipse.elk.core",wAt="Connected Components Compaction",mAt="org.eclipse.elk.alg.disco",_U="org.eclipse.elk.alg.disco.graph",iie="org.eclipse.elk.alg.disco.options",vRe="CompactionStrategy",_Re="org.eclipse.elk.disco.componentCompaction.strategy",SRe="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",ERe="org.eclipse.elk.disco.debug.discoGraph",kRe="org.eclipse.elk.disco.debug.discoPolys",yAt="componentCompaction",Sw="org.eclipse.elk.disco",oie="org.eclipse.elk.spacing.componentComponent",sie="org.eclipse.elk.edge.thickness",j3="org.eclipse.elk.aspectRatio",fy="org.eclipse.elk.padding",x2="org.eclipse.elk.alg.disco.transform",lie=1.5707963267948966,C2=17976931348623157e292,w_={3:1,4:1,5:1,198:1},vAt={3:1,6:1,4:1,5:1,100:1,115:1},aie="org.eclipse.elk.alg.force",RRe="ComponentsProcessor",_At="ComponentsProcessor/1",xRe="ElkGraphImporter/lambda$0$Type",mM="org.eclipse.elk.alg.force.graph",SAt="Component Layout",CRe="org.eclipse.elk.alg.force.model",SU="org.eclipse.elk.force.model",ARe="org.eclipse.elk.force.iterations",TRe="org.eclipse.elk.force.repulsivePower",cie="org.eclipse.elk.force.temperature",Xh=.001,uie="org.eclipse.elk.force.repulsion",aI="org.eclipse.elk.alg.force.options",PA=1.600000023841858,Ba="org.eclipse.elk.force",yM="org.eclipse.elk.priority",m_="org.eclipse.elk.spacing.nodeNode",fie="org.eclipse.elk.spacing.edgeLabel",EU="org.eclipse.elk.randomSeed",cI="org.eclipse.elk.separateConnectedComponents",uI="org.eclipse.elk.interactive",die="org.eclipse.elk.portConstraints",kU="org.eclipse.elk.edgeLabels.inline",fI="org.eclipse.elk.omitNodeMicroLayout",OA="org.eclipse.elk.nodeSize.fixedGraphSize",F3="org.eclipse.elk.nodeSize.options",A2="org.eclipse.elk.nodeSize.constraints",NA="org.eclipse.elk.nodeLabels.placement",MA="org.eclipse.elk.portLabels.placement",vM="org.eclipse.elk.topdownLayout",_M="org.eclipse.elk.topdown.scaleFactor",SM="org.eclipse.elk.topdown.hierarchicalNodeWidth",EM="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",dy="org.eclipse.elk.topdown.nodeType",$Re="origin",EAt="random",kAt="boundingBox.upLeft",RAt="boundingBox.lowRight",IRe="org.eclipse.elk.stress.fixed",PRe="org.eclipse.elk.stress.desiredEdgeLength",ORe="org.eclipse.elk.stress.dimension",NRe="org.eclipse.elk.stress.epsilon",MRe="org.eclipse.elk.stress.iterationLimit",z1="org.eclipse.elk.stress",xAt="ELK Stress",B3="org.eclipse.elk.nodeSize.minimum",RU="org.eclipse.elk.alg.force.stress",CAt="Layered layout",W3="org.eclipse.elk.alg.layered",kM="org.eclipse.elk.alg.layered.compaction.components",dI="org.eclipse.elk.alg.layered.compaction.oned",xU="org.eclipse.elk.alg.layered.compaction.oned.algs",Ew="org.eclipse.elk.alg.layered.compaction.recthull",ch="org.eclipse.elk.alg.layered.components",Jh="NONE",DRe="MODEL_ORDER",Ql={3:1,6:1,4:1,9:1,5:1,126:1},AAt={3:1,6:1,4:1,5:1,150:1,100:1,115:1},CU="org.eclipse.elk.alg.layered.compound",ni={47:1},pa="org.eclipse.elk.alg.layered.graph",hie=" -> ",TAt="Not supported by LGraph",LRe="Port side is undefined",pie={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},$g={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},$At={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},IAt=`([{"' \r +`,PAt=`)]}"' \r +`,OAt="The given string contains parts that cannot be parsed as numbers.",RM="org.eclipse.elk.core.math",NAt={3:1,4:1,140:1,214:1,423:1},MAt={3:1,4:1,107:1,214:1,423:1},Ig="org.eclipse.elk.alg.layered.graph.transform",DAt="ElkGraphImporter",LAt="ElkGraphImporter/lambda$1$Type",jAt="ElkGraphImporter/lambda$2$Type",FAt="ElkGraphImporter/lambda$4$Type",yn="org.eclipse.elk.alg.layered.intermediate",BAt="Node margin calculation",WAt="ONE_SIDED_GREEDY_SWITCH",HAt="TWO_SIDED_GREEDY_SWITCH",bie="No implementation is available for the layout processor ",gie="IntermediateProcessorStrategy",wie="Node '",UAt="FIRST_SEPARATE",GAt="LAST_SEPARATE",VAt="Odd port side processing",ro="org.eclipse.elk.alg.layered.intermediate.compaction",hI="org.eclipse.elk.alg.layered.intermediate.greedyswitch",$p="org.eclipse.elk.alg.layered.p3order.counting",xM={230:1},H3="org.eclipse.elk.alg.layered.intermediate.loops",Au="org.eclipse.elk.alg.layered.intermediate.loops.ordering",K1="org.eclipse.elk.alg.layered.intermediate.loops.routing",jRe="org.eclipse.elk.alg.layered.intermediate.preserveorder",Yh="org.eclipse.elk.alg.layered.intermediate.wrapping",Zl="org.eclipse.elk.alg.layered.options",mie="INTERACTIVE",FRe="GREEDY",zAt="DEPTH_FIRST",KAt="EDGE_LENGTH",qAt="SELF_LOOPS",XAt="firstTryWithInitialOrder",BRe="org.eclipse.elk.layered.directionCongruency",WRe="org.eclipse.elk.layered.feedbackEdges",AU="org.eclipse.elk.layered.interactiveReferencePoint",HRe="org.eclipse.elk.layered.mergeEdges",URe="org.eclipse.elk.layered.mergeHierarchyEdges",GRe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",VRe="org.eclipse.elk.layered.portSortingStrategy",zRe="org.eclipse.elk.layered.thoroughness",KRe="org.eclipse.elk.layered.unnecessaryBendpoints",qRe="org.eclipse.elk.layered.generatePositionAndLayerIds",yie="org.eclipse.elk.layered.cycleBreaking.strategy",CM="org.eclipse.elk.layered.layering.strategy",XRe="org.eclipse.elk.layered.layering.layerConstraint",JRe="org.eclipse.elk.layered.layering.layerChoiceConstraint",YRe="org.eclipse.elk.layered.layering.layerId",vie="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",_ie="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Sie="org.eclipse.elk.layered.layering.nodePromotion.strategy",Eie="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",kie="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",pI="org.eclipse.elk.layered.crossingMinimization.strategy",QRe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",Rie="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",xie="org.eclipse.elk.layered.crossingMinimization.semiInteractive",ZRe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",exe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",txe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",nxe="org.eclipse.elk.layered.crossingMinimization.positionId",rxe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Cie="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",TU="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",T2="org.eclipse.elk.layered.nodePlacement.strategy",$U="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Aie="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",Tie="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",$ie="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Iie="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Pie="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",ixe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",oxe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",IU="org.eclipse.elk.layered.edgeRouting.splines.mode",PU="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",Oie="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",sxe="org.eclipse.elk.layered.spacing.baseValue",lxe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",axe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",cxe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",uxe="org.eclipse.elk.layered.priority.direction",fxe="org.eclipse.elk.layered.priority.shortness",dxe="org.eclipse.elk.layered.priority.straightness",Nie="org.eclipse.elk.layered.compaction.connectedComponents",hxe="org.eclipse.elk.layered.compaction.postCompaction.strategy",pxe="org.eclipse.elk.layered.compaction.postCompaction.constraints",OU="org.eclipse.elk.layered.highDegreeNodes.treatment",Mie="org.eclipse.elk.layered.highDegreeNodes.threshold",Die="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Tb="org.eclipse.elk.layered.wrapping.strategy",NU="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",MU="org.eclipse.elk.layered.wrapping.correctionFactor",bI="org.eclipse.elk.layered.wrapping.cutting.strategy",Lie="org.eclipse.elk.layered.wrapping.cutting.cuts",jie="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",DU="org.eclipse.elk.layered.wrapping.validify.strategy",LU="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",jU="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",FU="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",Fie="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",bxe="org.eclipse.elk.layered.edgeLabels.sideSelection",gxe="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",BU="org.eclipse.elk.layered.considerModelOrder.strategy",wxe="org.eclipse.elk.layered.considerModelOrder.portModelOrder",mxe="org.eclipse.elk.layered.considerModelOrder.noModelOrder",Bie="org.eclipse.elk.layered.considerModelOrder.components",yxe="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",Wie="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",Hie="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",Uie="layering",JAt="layering.minWidth",YAt="layering.nodePromotion",DA="crossingMinimization",WU="org.eclipse.elk.hierarchyHandling",QAt="crossingMinimization.greedySwitch",ZAt="nodePlacement",e4t="nodePlacement.bk",t4t="edgeRouting",AM="org.eclipse.elk.edgeRouting",uh="spacing",vxe="priority",_xe="compaction",n4t="compaction.postCompaction",r4t="Specifies whether and how post-process compaction is applied.",Sxe="highDegreeNodes",Exe="wrapping",i4t="wrapping.cutting",o4t="wrapping.validify",kxe="wrapping.multiEdge",Gie="edgeLabels",gI="considerModelOrder",Rxe="org.eclipse.elk.spacing.commentComment",xxe="org.eclipse.elk.spacing.commentNode",Cxe="org.eclipse.elk.spacing.edgeEdge",Vie="org.eclipse.elk.spacing.edgeNode",Axe="org.eclipse.elk.spacing.labelLabel",Txe="org.eclipse.elk.spacing.labelPortHorizontal",$xe="org.eclipse.elk.spacing.labelPortVertical",Ixe="org.eclipse.elk.spacing.labelNode",Pxe="org.eclipse.elk.spacing.nodeSelfLoop",Oxe="org.eclipse.elk.spacing.portPort",Nxe="org.eclipse.elk.spacing.individual",Mxe="org.eclipse.elk.port.borderOffset",Dxe="org.eclipse.elk.noLayout",Lxe="org.eclipse.elk.port.side",TM="org.eclipse.elk.debugMode",jxe="org.eclipse.elk.alignment",Fxe="org.eclipse.elk.insideSelfLoops.activate",Bxe="org.eclipse.elk.insideSelfLoops.yo",zie="org.eclipse.elk.direction",Wxe="org.eclipse.elk.nodeLabels.padding",Hxe="org.eclipse.elk.portLabels.nextToPortIfPossible",Uxe="org.eclipse.elk.portLabels.treatAsGroup",Gxe="org.eclipse.elk.portAlignment.default",Vxe="org.eclipse.elk.portAlignment.north",zxe="org.eclipse.elk.portAlignment.south",Kxe="org.eclipse.elk.portAlignment.west",qxe="org.eclipse.elk.portAlignment.east",HU="org.eclipse.elk.contentAlignment",Xxe="org.eclipse.elk.junctionPoints",Jxe="org.eclipse.elk.edgeLabels.placement",Yxe="org.eclipse.elk.port.index",Qxe="org.eclipse.elk.commentBox",Zxe="org.eclipse.elk.hypernode",eCe="org.eclipse.elk.port.anchor",Kie="org.eclipse.elk.partitioning.activate",qie="org.eclipse.elk.partitioning.partition",UU="org.eclipse.elk.position",tCe="org.eclipse.elk.margins",nCe="org.eclipse.elk.spacing.portsSurrounding",GU="org.eclipse.elk.interactiveLayout",Ol="org.eclipse.elk.core.util",rCe={3:1,4:1,5:1,601:1},s4t="NETWORK_SIMPLEX",iCe="SIMPLE",$s={106:1,47:1},VU="org.eclipse.elk.alg.layered.p1cycles",$b="org.eclipse.elk.alg.layered.p2layers",oCe={413:1,230:1},l4t={846:1,3:1,4:1},mc="org.eclipse.elk.alg.layered.p3order",Is="org.eclipse.elk.alg.layered.p4nodes",a4t={3:1,4:1,5:1,854:1},Qh=1e-5,q1="org.eclipse.elk.alg.layered.p4nodes.bk",Xie="org.eclipse.elk.alg.layered.p5edges",Md="org.eclipse.elk.alg.layered.p5edges.orthogonal",Jie="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",Yie=1e-6,y_="org.eclipse.elk.alg.layered.p5edges.splines",Qie=.09999999999999998,zU=1e-8,c4t=4.71238898038469,sCe=3.141592653589793,Ib="org.eclipse.elk.alg.mrtree",Zie=.10000000149011612,KU="SUPER_ROOT",wI="org.eclipse.elk.alg.mrtree.graph",lCe=-17976931348623157e292,ba="org.eclipse.elk.alg.mrtree.intermediate",u4t="Processor compute fanout",qU={3:1,6:1,4:1,5:1,534:1,100:1,115:1},f4t="Set neighbors in level",$M="org.eclipse.elk.alg.mrtree.options",d4t="DESCENDANTS",aCe="org.eclipse.elk.mrtree.compaction",cCe="org.eclipse.elk.mrtree.edgeEndTextureLength",uCe="org.eclipse.elk.mrtree.treeLevel",fCe="org.eclipse.elk.mrtree.positionConstraint",dCe="org.eclipse.elk.mrtree.weighting",hCe="org.eclipse.elk.mrtree.edgeRoutingMode",pCe="org.eclipse.elk.mrtree.searchOrder",h4t="Position Constraint",Wa="org.eclipse.elk.mrtree",p4t="org.eclipse.elk.tree",b4t="Processor arrange level",LA="org.eclipse.elk.alg.mrtree.p2order",lu="org.eclipse.elk.alg.mrtree.p4route",bCe="org.eclipse.elk.alg.radial",kw=6.283185307179586,gCe="Before",wCe=5e-324,XU="After",mCe="org.eclipse.elk.alg.radial.intermediate",g4t="COMPACTION",eoe="org.eclipse.elk.alg.radial.intermediate.compaction",w4t={3:1,4:1,5:1,100:1},yCe="org.eclipse.elk.alg.radial.intermediate.optimization",toe="No implementation is available for the layout option ",mI="org.eclipse.elk.alg.radial.options",vCe="org.eclipse.elk.radial.centerOnRoot",_Ce="org.eclipse.elk.radial.orderId",SCe="org.eclipse.elk.radial.radius",JU="org.eclipse.elk.radial.rotate",noe="org.eclipse.elk.radial.compactor",roe="org.eclipse.elk.radial.compactionStepSize",ECe="org.eclipse.elk.radial.sorter",kCe="org.eclipse.elk.radial.wedgeCriteria",RCe="org.eclipse.elk.radial.optimizationCriteria",ioe="org.eclipse.elk.radial.rotation.targetAngle",ooe="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",xCe="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",m4t="Compaction",CCe="rotation",rf="org.eclipse.elk.radial",y4t="org.eclipse.elk.alg.radial.p1position.wedge",ACe="org.eclipse.elk.alg.radial.sorting",v4t=5.497787143782138,_4t=3.9269908169872414,S4t=2.356194490192345,E4t="org.eclipse.elk.alg.rectpacking",YU="org.eclipse.elk.alg.rectpacking.intermediate",soe="org.eclipse.elk.alg.rectpacking.options",TCe="org.eclipse.elk.rectpacking.trybox",$Ce="org.eclipse.elk.rectpacking.currentPosition",ICe="org.eclipse.elk.rectpacking.desiredPosition",PCe="org.eclipse.elk.rectpacking.inNewRow",OCe="org.eclipse.elk.rectpacking.widthApproximation.strategy",NCe="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",MCe="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",DCe="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",LCe="org.eclipse.elk.rectpacking.packing.strategy",jCe="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",FCe="org.eclipse.elk.rectpacking.packing.compaction.iterations",BCe="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",loe="widthApproximation",k4t="Compaction Strategy",R4t="packing.compaction",zc="org.eclipse.elk.rectpacking",jA="org.eclipse.elk.alg.rectpacking.p1widthapproximation",QU="org.eclipse.elk.alg.rectpacking.p2packing",x4t="No Compaction",WCe="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",IM="org.eclipse.elk.alg.rectpacking.util",ZU="No implementation available for ",v_="org.eclipse.elk.alg.spore",__="org.eclipse.elk.alg.spore.options",hy="org.eclipse.elk.sporeCompaction",aoe="org.eclipse.elk.underlyingLayoutAlgorithm",HCe="org.eclipse.elk.processingOrder.treeConstruction",UCe="org.eclipse.elk.processingOrder.spanningTreeCostFunction",coe="org.eclipse.elk.processingOrder.preferredRoot",uoe="org.eclipse.elk.processingOrder.rootSelection",foe="org.eclipse.elk.structure.structureExtractionStrategy",GCe="org.eclipse.elk.compaction.compactionStrategy",VCe="org.eclipse.elk.compaction.orthogonal",zCe="org.eclipse.elk.overlapRemoval.maxIterations",KCe="org.eclipse.elk.overlapRemoval.runScanline",doe="processingOrder",C4t="overlapRemoval",FA="org.eclipse.elk.sporeOverlap",A4t="org.eclipse.elk.alg.spore.p1structure",hoe="org.eclipse.elk.alg.spore.p2processingorder",poe="org.eclipse.elk.alg.spore.p3execution",T4t="Topdown Layout",$4t="Invalid index: ",BA="org.eclipse.elk.core.alg",$2={341:1},S_={295:1},I4t="Make sure its type is registered with the ",qCe=" utility class.",WA="true",boe="false",P4t="Couldn't clone property '",py=.05,Kc="org.eclipse.elk.core.options",O4t=1.2999999523162842,by="org.eclipse.elk.box",XCe="org.eclipse.elk.expandNodes",JCe="org.eclipse.elk.box.packingMode",N4t="org.eclipse.elk.algorithm",M4t="org.eclipse.elk.resolvedAlgorithm",YCe="org.eclipse.elk.bendPoints",eFn="org.eclipse.elk.labelManager",D4t="org.eclipse.elk.scaleFactor",L4t="org.eclipse.elk.childAreaWidth",j4t="org.eclipse.elk.childAreaHeight",F4t="org.eclipse.elk.animate",B4t="org.eclipse.elk.animTimeFactor",W4t="org.eclipse.elk.layoutAncestors",H4t="org.eclipse.elk.maxAnimTime",U4t="org.eclipse.elk.minAnimTime",G4t="org.eclipse.elk.progressBar",V4t="org.eclipse.elk.validateGraph",z4t="org.eclipse.elk.validateOptions",K4t="org.eclipse.elk.zoomToFit",tFn="org.eclipse.elk.font.name",q4t="org.eclipse.elk.font.size",QCe="org.eclipse.elk.topdown.sizeApproximator",ZCe="org.eclipse.elk.topdown.scaleCap",X4t="org.eclipse.elk.edge.type",J4t="partitioning",Y4t="nodeLabels",eG="portAlignment",goe="nodeSize",woe="port",eAe="portLabels",PM="topdown",Q4t="insideSelfLoops",yI="org.eclipse.elk.fixed",tG="org.eclipse.elk.random",tAe={3:1,34:1,22:1,347:1},Z4t="port must have a parent node to calculate the port side",eTt="The edge needs to have exactly one edge section. Found: ",vI="org.eclipse.elk.core.util.adapters",of="org.eclipse.emf.ecore",I2="org.eclipse.elk.graph",tTt="EMapPropertyHolder",nTt="ElkBendPoint",rTt="ElkGraphElement",iTt="ElkConnectableShape",nAe="ElkEdge",oTt="ElkEdgeSection",sTt="EModelElement",lTt="ENamedElement",rAe="ElkLabel",iAe="ElkNode",oAe="ElkPort",aTt={94:1,93:1},U3="org.eclipse.emf.common.notify.impl",X1="The feature '",_I="' is not a valid changeable feature",cTt="Expecting null",moe="' is not a valid feature",uTt="The feature ID",fTt=" is not a valid feature ID",Vl=32768,dTt={110:1,94:1,93:1,58:1,54:1,99:1},fn="org.eclipse.emf.ecore.impl",Rw="org.eclipse.elk.graph.impl",SI="Recursive containment not allowed for ",HA="The datatype '",gy="' is not a valid classifier",yoe="The value '",P2={195:1,3:1,4:1},voe="The class '",UA="http://www.eclipse.org/elk/ElkGraph",sAe="property",EI="value",_oe="source",hTt="properties",pTt="identifier",Soe="height",Eoe="width",koe="parent",Roe="text",xoe="children",bTt="hierarchical",lAe="sources",Coe="targets",aAe="sections",nG="bendPoints",cAe="outgoingShape",uAe="incomingShape",fAe="outgoingSections",dAe="incomingSections",hs="org.eclipse.emf.common.util",hAe="Severe implementation error in the Json to ElkGraph importer.",Zh="id",zo="org.eclipse.elk.graph.json",pAe="Unhandled parameter types: ",gTt="startPoint",wTt="An edge must have at least one source and one target (edge id: '",GA="').",mTt="Referenced edge section does not exist: ",yTt=" (edge id: '",bAe="target",vTt="sourcePoint",_Tt="targetPoint",rG="group",Tr="name",STt="connectableShape cannot be null",ETt="edge cannot be null",Aoe="Passed edge is not 'simple'.",iG="org.eclipse.elk.graph.util",OM="The 'no duplicates' constraint is violated",Toe="targetIndex=",xw=", size=",$oe="sourceIndex=",ep={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},Ioe={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},oG="logging",kTt="measureExecutionTime",RTt="parser.parse.1",xTt="parser.parse.2",sG="parser.next.1",Poe="parser.next.2",CTt="parser.next.3",ATt="parser.next.4",Cw="parser.factor.1",gAe="parser.factor.2",TTt="parser.factor.3",$Tt="parser.factor.4",ITt="parser.factor.5",PTt="parser.factor.6",OTt="parser.atom.1",NTt="parser.atom.2",MTt="parser.atom.3",wAe="parser.atom.4",Ooe="parser.atom.5",mAe="parser.cc.1",lG="parser.cc.2",DTt="parser.cc.3",LTt="parser.cc.5",yAe="parser.cc.6",vAe="parser.cc.7",Noe="parser.cc.8",jTt="parser.ope.1",FTt="parser.ope.2",BTt="parser.ope.3",Pg="parser.descape.1",WTt="parser.descape.2",HTt="parser.descape.3",UTt="parser.descape.4",GTt="parser.descape.5",sf="parser.process.1",VTt="parser.quantifier.1",zTt="parser.quantifier.2",KTt="parser.quantifier.3",qTt="parser.quantifier.4",_Ae="parser.quantifier.5",XTt="org.eclipse.emf.common.notify",SAe={424:1,686:1},JTt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},NM={378:1,152:1},kI="index=",Moe={3:1,4:1,5:1,129:1},YTt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},EAe={3:1,6:1,4:1,5:1,198:1},QTt={3:1,4:1,5:1,173:1,379:1},ZTt=";/?:@&=+$,",e$t="invalid authority: ",t$t="EAnnotation",n$t="ETypedElement",r$t="EStructuralFeature",i$t="EAttribute",o$t="EClassifier",s$t="EEnumLiteral",l$t="EGenericType",a$t="EOperation",c$t="EParameter",u$t="EReference",f$t="ETypeParameter",fi="org.eclipse.emf.ecore.util",Doe={79:1},kAe={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},d$t="org.eclipse.emf.ecore.util.FeatureMap$Entry",yc=8192,E_=2048,RI="byte",aG="char",xI="double",CI="float",AI="int",TI="long",$I="short",h$t="java.lang.Object",O2={3:1,4:1,5:1,254:1},RAe={3:1,4:1,5:1,688:1},p$t={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},hl={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},MM="mixed",pr="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",kf="kind",b$t={3:1,4:1,5:1,689:1},xAe={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},cG={20:1,31:1,56:1,16:1,15:1,61:1,71:1},uG={51:1,128:1,287:1},fG={76:1,343:1},dG="The value of type '",hG="' must be of type '",N2=1352,Rf="http://www.eclipse.org/emf/2002/Ecore",pG=-32768,wy="constraints",Zo="baseType",g$t="getEStructuralFeature",w$t="getFeatureID",II="feature",m$t="getOperationID",CAe="operation",y$t="defaultValue",v$t="eTypeParameters",_$t="isInstance",S$t="getEEnumLiteral",E$t="eContainingClass",Rr={57:1},k$t={3:1,4:1,5:1,124:1},R$t="org.eclipse.emf.ecore.resource",x$t={94:1,93:1,599:1,2034:1},Loe="org.eclipse.emf.ecore.resource.impl",AAe="unspecified",DM="simple",bG="attribute",C$t="attributeWildcard",gG="element",joe="elementWildcard",Dd="collapse",Foe="itemType",wG="namespace",LM="##targetNamespace",xf="whiteSpace",TAe="wildcards",Aw="http://www.eclipse.org/emf/2003/XMLType",Boe="##any",VA="uninitialized",jM="The multiplicity constraint is violated",mG="org.eclipse.emf.ecore.xml.type",A$t="ProcessingInstruction",T$t="SimpleAnyType",$$t="XMLTypeDocumentRoot",Yi="org.eclipse.emf.ecore.xml.type.impl",FM="INF",I$t="processing",P$t="ENTITIES_._base",$Ae="minLength",IAe="ENTITY",yG="NCName",O$t="IDREFS_._base",PAe="integer",Woe="token",Hoe="pattern",N$t="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",OAe="\\i\\c*",M$t="[\\i-[:]][\\c-[:]]*",D$t="nonPositiveInteger",BM="maxInclusive",NAe="NMTOKEN",L$t="NMTOKENS_._base",MAe="nonNegativeInteger",WM="minInclusive",j$t="normalizedString",F$t="unsignedByte",B$t="unsignedInt",W$t="18446744073709551615",H$t="unsignedShort",U$t="processingInstruction",Og="org.eclipse.emf.ecore.xml.type.internal",zA=1114111,G$t="Internal Error: shorthands: \\u",PI="xml:isDigit",Uoe="xml:isWord",Goe="xml:isSpace",Voe="xml:isNameChar",zoe="xml:isInitialNameChar",V$t="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",z$t="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",K$t="Private Use",Koe="ASSIGNED",qoe="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",DAe="UNASSIGNED",KA={3:1,122:1},q$t="org.eclipse.emf.ecore.xml.type.util",vG={3:1,4:1,5:1,381:1},LAe="org.eclipse.xtext.xbase.lib",X$t="Cannot add elements to a Range",J$t="Cannot set elements in a Range",Y$t="Cannot remove elements from a Range",Q$t="user.agent",p,_G,Xoe;h.goog=h.goog||{},h.goog.global=h.goog.global||h,_G={},P(1,null,{},v),p.Fb=function(t){return Jut(this,t)},p.Gb=function(){return this.Rm},p.Hb=function(){return Cm(this)},p.Ib=function(){var t;return z0(ou(this))+"@"+(t=ti(this)>>>0,t.toString(16))},p.equals=function(e){return this.Fb(e)},p.hashCode=function(){return this.Hb()},p.toString=function(){return this.Ib()};var Z$t,e6t,t6t;P(297,1,{297:1,2124:1},PSe),p.ve=function(t){var i;return i=new PSe,i.i=4,t>1?i.c=mgt(this,t-1):i.c=this,i},p.we=function(){return cb(this),this.b},p.xe=function(){return z0(this)},p.ye=function(){return cb(this),this.k},p.ze=function(){return(this.i&4)!=0},p.Ae=function(){return(this.i&1)!=0},p.Ib=function(){return U_e(this)},p.i=0;var ho=N(Pl,"Object",1),jAe=N(Pl,"Class",297);P(2096,1,oM),N(sM,"Optional",2096),P(1191,2096,oM,y),p.Fb=function(t){return t===this},p.Hb=function(){return 2040732332},p.Ib=function(){return"Optional.absent()"},p.Jb=function(t){return nr(t),i$(),Joe};var Joe;N(sM,"Absent",1191),P(636,1,{},IY),N(sM,"Joiner",636);var nFn=Ei(sM,"Predicate");P(589,1,{178:1,589:1,3:1,46:1},Rnt),p.Mb=function(t){return mvt(this,t)},p.Lb=function(t){return mvt(this,t)},p.Fb=function(t){var i;return ve(t,589)?(i=f(t,589),Tke(this.a,i.a)):!1},p.Hb=function(){return jSe(this.a)+306654252},p.Ib=function(){return HIn(this.a)},N(sM,"Predicates/AndPredicate",589),P(419,2096,{419:1,3:1},Uj),p.Fb=function(t){var i;return ve(t,419)?(i=f(t,419),Lr(this.a,i.a)):!1},p.Hb=function(){return 1502476572+ti(this.a)},p.Ib=function(){return xCt+this.a+")"},p.Jb=function(t){return new Uj(UB(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},N(sM,"Present",419),P(204,1,SA),p.Nb=function(t){Uo(this,t)},p.Qb=function(){Flt()},N(Ft,"UnmodifiableIterator",204),P(2076,204,EA),p.Qb=function(){Flt()},p.Rb=function(t){throw ne(new rr)},p.Wb=function(t){throw ne(new rr)},N(Ft,"UnmodifiableListIterator",2076),P(399,2076,EA),p.Ob=function(){return this.c0},p.Pb=function(){if(this.c>=this.d)throw ne(new yl);return this.Xb(this.c++)},p.Tb=function(){return this.c},p.Ub=function(){if(this.c<=0)throw ne(new yl);return this.Xb(--this.c)},p.Vb=function(){return this.c-1},p.c=0,p.d=0,N(Ft,"AbstractIndexedListIterator",399),P(713,204,SA),p.Ob=function(){return Oee(this)},p.Pb=function(){return L_e(this)},p.e=1,N(Ft,"AbstractIterator",713),P(2084,1,{229:1}),p.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},p.Fb=function(t){return tte(this,t)},p.Hb=function(){return ti(this.Zb())},p.dc=function(){return this.gc()==0},p.ec=function(){return Zk(this)},p.Ib=function(){return dl(this.Zb())},N(Ft,"AbstractMultimap",2084),P(742,2084,mw),p.$b=function(){OW(this)},p._b=function(t){return iat(this,t)},p.ac=function(){return new Yx(this,this.c)},p.ic=function(t){return this.hc()},p.bc=function(){return new XS(this,this.c)},p.jc=function(){return this.mc(this.hc())},p.kc=function(){return new Elt(this)},p.lc=function(){return une(this.c.vc().Nc(),new A,64,this.d)},p.cc=function(t){return Hr(this,t)},p.fc=function(t){return mN(this,t)},p.gc=function(){return this.d},p.mc=function(t){return qt(),new jx(t)},p.nc=function(){return new Slt(this)},p.oc=function(){return une(this.c.Cc().Nc(),new E,64,this.d)},p.pc=function(t,i){return new fW(this,t,i,null)},p.d=0,N(Ft,"AbstractMapBasedMultimap",742),P(1696,742,mw),p.hc=function(){return new ka(this.a)},p.jc=function(){return qt(),qt(),ps},p.cc=function(t){return f(Hr(this,t),15)},p.fc=function(t){return f(mN(this,t),15)},p.Zb=function(){return o3(this)},p.Fb=function(t){return tte(this,t)},p.qc=function(t){return f(Hr(this,t),15)},p.rc=function(t){return f(mN(this,t),15)},p.mc=function(t){return DZ(f(t,15))},p.pc=function(t,i){return R1t(this,t,f(i,15),null)},N(Ft,"AbstractListMultimap",1696),P(748,1,ko),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.c.Ob()||this.e.Ob()},p.Pb=function(){var t;return this.e.Ob()||(t=f(this.c.Pb(),44),this.b=t.ld(),this.a=f(t.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},p.Qb=function(){this.e.Qb(),f(mf(this.a),16).dc()&&this.c.Qb(),--this.d.d},N(Ft,"AbstractMapBasedMultimap/Itr",748),P(1129,748,ko,Slt),p.sc=function(t,i){return i},N(Ft,"AbstractMapBasedMultimap/1",1129),P(1130,1,{},E),p.Kb=function(t){return f(t,16).Nc()},N(Ft,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),P(1131,748,ko,Elt),p.sc=function(t,i){return new ym(t,i)},N(Ft,"AbstractMapBasedMultimap/2",1131);var FAe=Ei(Ln,"Map");P(2065,1,cy),p.wc=function(t){p6(this,t)},p.yc=function(t,i,s){return vte(this,t,i,s)},p.$b=function(){this.vc().$b()},p.tc=function(t){return zte(this,t)},p._b=function(t){return!!CEe(this,t,!1)},p.uc=function(t){var i,s,a;for(s=this.vc().Kc();s.Ob();)if(i=f(s.Pb(),44),a=i.md(),Ne(t)===Ne(a)||t!=null&&Lr(t,a))return!0;return!1},p.Fb=function(t){var i,s,a;if(t===this)return!0;if(!ve(t,85)||(a=f(t,85),this.gc()!=a.gc()))return!1;for(s=a.vc().Kc();s.Ob();)if(i=f(s.Pb(),44),!this.tc(i))return!1;return!0},p.xc=function(t){return tl(CEe(this,t,!1))},p.Hb=function(){return ASe(this.vc())},p.dc=function(){return this.gc()==0},p.ec=function(){return new H0(this)},p.zc=function(t,i){throw ne(new ng("Put not supported on this map"))},p.Ac=function(t){h6(this,t)},p.Bc=function(t){return tl(CEe(this,t,!0))},p.gc=function(){return this.vc().gc()},p.Ib=function(){return $2t(this)},p.Cc=function(){return new ob(this)},N(Ln,"AbstractMap",2065),P(2085,2065,cy),p.bc=function(){return new fF(this)},p.vc=function(){return _pt(this)},p.ec=function(){var t;return t=this.g,t||(this.g=this.bc())},p.Cc=function(){var t;return t=this.i,t||(this.i=new qat(this))},N(Ft,"Maps/ViewCachingAbstractMap",2085),P(402,2085,cy,Yx),p.xc=function(t){return l3n(this,t)},p.Bc=function(t){return $xn(this,t)},p.$b=function(){this.d==this.e.c?this.e.$b():vB(new Bye(this))},p._b=function(t){return n_t(this.d,t)},p.Ec=function(){return new xnt(this)},p.Dc=function(){return this.Ec()},p.Fb=function(t){return this===t||Lr(this.d,t)},p.Hb=function(){return ti(this.d)},p.ec=function(){return this.e.ec()},p.gc=function(){return this.d.gc()},p.Ib=function(){return dl(this.d)},N(Ft,"AbstractMapBasedMultimap/AsMap",402);var Tu=Ei(Pl,"Iterable");P(31,1,p_),p.Jc=function(t){Vo(this,t)},p.Lc=function(){return this.Oc()},p.Nc=function(){return new Vt(this,0)},p.Oc=function(){return new Wt(null,this.Nc())},p.Fc=function(t){throw ne(new ng("Add not supported on this collection"))},p.Gc=function(t){return Do(this,t)},p.$b=function(){xve(this)},p.Hc=function(t){return e_(this,t,!1)},p.Ic=function(t){return uN(this,t)},p.dc=function(){return this.gc()==0},p.Mc=function(t){return e_(this,t,!0)},p.Pc=function(){return Jye(this)},p.Qc=function(t){return P6(this,t)},p.Ib=function(){return B1(this)},N(Ln,"AbstractCollection",31);var Cf=Ei(Ln,"Set");P(lh,31,wc),p.Nc=function(){return new Vt(this,1)},p.Fb=function(t){return K_t(this,t)},p.Hb=function(){return ASe(this)},N(Ln,"AbstractSet",lh),P(2068,lh,wc),N(Ft,"Sets/ImprovedAbstractSet",2068),P(2069,2068,wc),p.$b=function(){this.Rc().$b()},p.Hc=function(t){return I_t(this,t)},p.dc=function(){return this.Rc().dc()},p.Mc=function(t){var i;return this.Hc(t)&&ve(t,44)?(i=f(t,44),this.Rc().ec().Mc(i.ld())):!1},p.gc=function(){return this.Rc().gc()},N(Ft,"Maps/EntrySet",2069),P(1127,2069,wc,xnt),p.Hc=function(t){return t2e(this.a.d.vc(),t)},p.Kc=function(){return new Bye(this.a)},p.Rc=function(){return this.a},p.Mc=function(t){var i;return t2e(this.a.d.vc(),t)?(i=f(mf(f(t,44)),44),XEn(this.a.e,i.ld()),!0):!1},p.Nc=function(){return _7(this.a.d.vc().Nc(),new Cnt(this.a))},N(Ft,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),P(1128,1,{},Cnt),p.Kb=function(t){return E0t(this.a,f(t,44))},N(Ft,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),P(746,1,ko,Bye),p.Nb=function(t){Uo(this,t)},p.Pb=function(){var t;return t=f(this.b.Pb(),44),this.a=f(t.md(),16),E0t(this.c,t)},p.Ob=function(){return this.b.Ob()},p.Qb=function(){sC(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},N(Ft,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),P(542,2068,wc,fF),p.$b=function(){this.b.$b()},p.Hc=function(t){return this.b._b(t)},p.Jc=function(t){nr(t),this.b.wc(new Gnt(t))},p.dc=function(){return this.b.dc()},p.Kc=function(){return new o$(this.b.vc().Kc())},p.Mc=function(t){return this.b._b(t)?(this.b.Bc(t),!0):!1},p.gc=function(){return this.b.gc()},N(Ft,"Maps/KeySet",542),P(327,542,wc,XS),p.$b=function(){var t;vB((t=this.b.vc().Kc(),new uwe(this,t)))},p.Ic=function(t){return this.b.ec().Ic(t)},p.Fb=function(t){return this===t||Lr(this.b.ec(),t)},p.Hb=function(){return ti(this.b.ec())},p.Kc=function(){var t;return t=this.b.vc().Kc(),new uwe(this,t)},p.Mc=function(t){var i,s;return s=0,i=f(this.b.Bc(t),16),i&&(s=i.gc(),i.$b(),this.a.d-=s),s>0},p.Nc=function(){return this.b.ec().Nc()},N(Ft,"AbstractMapBasedMultimap/KeySet",327),P(747,1,ko,uwe),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.c.Ob()},p.Pb=function(){return this.a=f(this.c.Pb(),44),this.a.ld()},p.Qb=function(){var t;sC(!!this.a),t=f(this.a.md(),16),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},N(Ft,"AbstractMapBasedMultimap/KeySet/1",747),P(503,402,{85:1,133:1},p7),p.bc=function(){return this.Sc()},p.ec=function(){return this.Uc()},p.Sc=function(){return new HO(this.c,this.Wc())},p.Tc=function(){return this.Wc().Tc()},p.Uc=function(){var t;return t=this.b,t||(this.b=this.Sc())},p.Vc=function(){return this.Wc().Vc()},p.Wc=function(){return f(this.d,133)},N(Ft,"AbstractMapBasedMultimap/SortedAsMap",503),P(446,503,X3e,F$),p.bc=function(){return new Jx(this.a,f(f(this.d,133),139))},p.Sc=function(){return new Jx(this.a,f(f(this.d,133),139))},p.ec=function(){var t;return t=this.b,f(t||(this.b=new Jx(this.a,f(f(this.d,133),139))),277)},p.Uc=function(){var t;return t=this.b,f(t||(this.b=new Jx(this.a,f(f(this.d,133),139))),277)},p.Wc=function(){return f(f(this.d,133),139)},p.Xc=function(t){return f(f(this.d,133),139).Xc(t)},p.Yc=function(t){return f(f(this.d,133),139).Yc(t)},p.Zc=function(t,i){return new F$(this.a,f(f(this.d,133),139).Zc(t,i))},p.$c=function(t){return f(f(this.d,133),139).$c(t)},p._c=function(t){return f(f(this.d,133),139)._c(t)},p.ad=function(t,i){return new F$(this.a,f(f(this.d,133),139).ad(t,i))},N(Ft,"AbstractMapBasedMultimap/NavigableAsMap",446),P(502,327,CCt,HO),p.Nc=function(){return this.b.ec().Nc()},N(Ft,"AbstractMapBasedMultimap/SortedKeySet",502),P(401,502,J3e,Jx),N(Ft,"AbstractMapBasedMultimap/NavigableKeySet",401),P(551,31,p_,fW),p.Fc=function(t){var i,s;return Hc(this),s=this.d.dc(),i=this.d.Fc(t),i&&(++this.f.d,s&&m7(this)),i},p.Gc=function(t){var i,s,a;return t.dc()?!1:(a=(Hc(this),this.d.gc()),i=this.d.Gc(t),i&&(s=this.d.gc(),this.f.d+=s-a,a==0&&m7(this)),i)},p.$b=function(){var t;t=(Hc(this),this.d.gc()),t!=0&&(this.d.$b(),this.f.d-=t,xB(this))},p.Hc=function(t){return Hc(this),this.d.Hc(t)},p.Ic=function(t){return Hc(this),this.d.Ic(t)},p.Fb=function(t){return t===this?!0:(Hc(this),Lr(this.d,t))},p.Hb=function(){return Hc(this),ti(this.d)},p.Kc=function(){return Hc(this),new Eye(this)},p.Mc=function(t){var i;return Hc(this),i=this.d.Mc(t),i&&(--this.f.d,xB(this)),i},p.gc=function(){return Dut(this)},p.Nc=function(){return Hc(this),this.d.Nc()},p.Ib=function(){return Hc(this),dl(this.d)},N(Ft,"AbstractMapBasedMultimap/WrappedCollection",551);var lf=Ei(Ln,"List");P(744,551,{20:1,31:1,16:1,15:1},Zye),p.jd=function(t){sw(this,t)},p.Nc=function(){return Hc(this),this.d.Nc()},p.bd=function(t,i){var s;Hc(this),s=this.d.dc(),f(this.d,15).bd(t,i),++this.a.d,s&&m7(this)},p.cd=function(t,i){var s,a,c;return i.dc()?!1:(c=(Hc(this),this.d.gc()),s=f(this.d,15).cd(t,i),s&&(a=this.d.gc(),this.a.d+=a-c,c==0&&m7(this)),s)},p.Xb=function(t){return Hc(this),f(this.d,15).Xb(t)},p.dd=function(t){return Hc(this),f(this.d,15).dd(t)},p.ed=function(){return Hc(this),new dft(this)},p.fd=function(t){return Hc(this),new Mbt(this,t)},p.gd=function(t){var i;return Hc(this),i=f(this.d,15).gd(t),--this.a.d,xB(this),i},p.hd=function(t,i){return Hc(this),f(this.d,15).hd(t,i)},p.kd=function(t,i){return Hc(this),R1t(this.a,this.e,f(this.d,15).kd(t,i),this.b?this.b:this)},N(Ft,"AbstractMapBasedMultimap/WrappedList",744),P(1126,744,{20:1,31:1,16:1,15:1,59:1},tdt),N(Ft,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),P(628,1,ko,Eye),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return wC(this),this.b.Ob()},p.Pb=function(){return wC(this),this.b.Pb()},p.Qb=function(){Fft(this)},N(Ft,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),P(745,628,kp,dft,Mbt),p.Qb=function(){Fft(this)},p.Rb=function(t){var i;i=Dut(this.a)==0,(wC(this),f(this.b,128)).Rb(t),++this.a.a.d,i&&m7(this.a)},p.Sb=function(){return(wC(this),f(this.b,128)).Sb()},p.Tb=function(){return(wC(this),f(this.b,128)).Tb()},p.Ub=function(){return(wC(this),f(this.b,128)).Ub()},p.Vb=function(){return(wC(this),f(this.b,128)).Vb()},p.Wb=function(t){(wC(this),f(this.b,128)).Wb(t)},N(Ft,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),P(743,551,CCt,Hme),p.Nc=function(){return Hc(this),this.d.Nc()},N(Ft,"AbstractMapBasedMultimap/WrappedSortedSet",743),P(1125,743,J3e,lft),N(Ft,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),P(1124,551,wc,Sdt),p.Nc=function(){return Hc(this),this.d.Nc()},N(Ft,"AbstractMapBasedMultimap/WrappedSet",1124),P(1133,1,{},A),p.Kb=function(t){return okn(f(t,44))},N(Ft,"AbstractMapBasedMultimap/lambda$1$Type",1133),P(1132,1,{},Int),p.Kb=function(t){return new ym(this.a,t)},N(Ft,"AbstractMapBasedMultimap/lambda$2$Type",1132);var Tw=Ei(Ln,"Map/Entry");P(358,1,dre),p.Fb=function(t){var i;return ve(t,44)?(i=f(t,44),Lh(this.ld(),i.ld())&&Lh(this.md(),i.md())):!1},p.Hb=function(){var t,i;return t=this.ld(),i=this.md(),(t==null?0:ti(t))^(i==null?0:ti(i))},p.nd=function(t){throw ne(new rr)},p.Ib=function(){return this.ld()+"="+this.md()},N(Ft,ACt,358),P(2086,31,p_),p.$b=function(){this.od().$b()},p.Hc=function(t){var i;return ve(t,44)?(i=f(t,44),x2n(this.od(),i.ld(),i.md())):!1},p.Mc=function(t){var i;return ve(t,44)?(i=f(t,44),s1t(this.od(),i.ld(),i.md())):!1},p.gc=function(){return this.od().d},N(Ft,"Multimaps/Entries",2086),P(749,2086,p_,U1e),p.Kc=function(){return this.a.kc()},p.od=function(){return this.a},p.Nc=function(){return this.a.lc()},N(Ft,"AbstractMultimap/Entries",749),P(750,749,wc,W0e),p.Nc=function(){return this.a.lc()},p.Fb=function(t){return KEe(this,t)},p.Hb=function(){return wyt(this)},N(Ft,"AbstractMultimap/EntrySet",750),P(751,31,p_,G1e),p.$b=function(){this.a.$b()},p.Hc=function(t){return kxn(this.a,t)},p.Kc=function(){return this.a.nc()},p.gc=function(){return this.a.d},p.Nc=function(){return this.a.oc()},N(Ft,"AbstractMultimap/Values",751),P(2087,31,{849:1,20:1,31:1,16:1}),p.Jc=function(t){nr(t),YS(this).Jc(new Jnt(t))},p.Nc=function(){var t;return t=YS(this).Nc(),une(t,new j,64|t.yd()&1296,this.a.d)},p.Fc=function(t){return X0e(),!0},p.Gc=function(t){return nr(this),nr(t),ve(t,552)?T2n(f(t,849)):!t.dc()&&kee(this,t.Kc())},p.Hc=function(t){var i;return i=f(Zv(o3(this.a),t),16),(i?i.gc():0)>0},p.Fb=function(t){return Y8n(this,t)},p.Hb=function(){return ti(YS(this))},p.dc=function(){return YS(this).dc()},p.Mc=function(t){return UEt(this,t,1)>0},p.Ib=function(){return dl(YS(this))},N(Ft,"AbstractMultiset",2087),P(2089,2068,wc),p.$b=function(){OW(this.a.a)},p.Hc=function(t){var i,s;return ve(t,504)?(s=f(t,425),f(s.a.md(),16).gc()<=0?!1:(i=Ogt(this.a,s.a.ld()),i==f(s.a.md(),16).gc())):!1},p.Mc=function(t){var i,s,a,c;return ve(t,504)&&(s=f(t,425),i=s.a.ld(),a=f(s.a.md(),16).gc(),a!=0)?(c=this.a,W5n(c,i,a)):!1},N(Ft,"Multisets/EntrySet",2089),P(1139,2089,wc,Pnt),p.Kc=function(){return new Alt(_pt(o3(this.a.a)).Kc())},p.gc=function(){return o3(this.a.a).gc()},N(Ft,"AbstractMultiset/EntrySet",1139),P(627,742,mw),p.hc=function(){return this.pd()},p.jc=function(){return this.qd()},p.cc=function(t){return this.rd(t)},p.fc=function(t){return this.sd(t)},p.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},p.qd=function(){return qt(),qt(),CG},p.Fb=function(t){return tte(this,t)},p.rd=function(t){return f(Hr(this,t),21)},p.sd=function(t){return f(mN(this,t),21)},p.mc=function(t){return qt(),new Vx(f(t,21))},p.pc=function(t,i){return new Sdt(this,t,f(i,21))},N(Ft,"AbstractSetMultimap",627),P(1723,627,mw),p.hc=function(){return new sg(this.b)},p.pd=function(){return new sg(this.b)},p.jc=function(){return vve(new sg(this.b))},p.qd=function(){return vve(new sg(this.b))},p.cc=function(t){return f(f(Hr(this,t),21),87)},p.rd=function(t){return f(f(Hr(this,t),21),87)},p.fc=function(t){return f(f(mN(this,t),21),87)},p.sd=function(t){return f(f(mN(this,t),21),87)},p.mc=function(t){return ve(t,277)?vve(f(t,277)):(qt(),new Cme(f(t,87)))},p.Zb=function(){var t;return t=this.f,t||(this.f=ve(this.c,139)?new F$(this,f(this.c,139)):ve(this.c,133)?new p7(this,f(this.c,133)):new Yx(this,this.c))},p.pc=function(t,i){return ve(i,277)?new lft(this,t,f(i,277)):new Hme(this,t,f(i,87))},N(Ft,"AbstractSortedSetMultimap",1723),P(1724,1723,mw),p.Zb=function(){var t;return t=this.f,f(f(t||(this.f=ve(this.c,139)?new F$(this,f(this.c,139)):ve(this.c,133)?new p7(this,f(this.c,133)):new Yx(this,this.c)),133),139)},p.ec=function(){var t;return t=this.i,f(f(t||(this.i=ve(this.c,139)?new Jx(this,f(this.c,139)):ve(this.c,133)?new HO(this,f(this.c,133)):new XS(this,this.c)),87),277)},p.bc=function(){return ve(this.c,139)?new Jx(this,f(this.c,139)):ve(this.c,133)?new HO(this,f(this.c,133)):new XS(this,this.c)},N(Ft,"AbstractSortedKeySortedSetMultimap",1724),P(2109,1,{2046:1}),p.Fb=function(t){return S$n(this,t)},p.Hb=function(){var t;return ASe((t=this.g,t||(this.g=new nY(this))))},p.Ib=function(){var t;return $2t((t=this.f,t||(this.f=new Eme(this))))},N(Ft,"AbstractTable",2109),P(679,lh,wc,nY),p.$b=function(){Blt()},p.Hc=function(t){var i,s;return ve(t,479)?(i=f(t,697),s=f(Zv(Vpt(this.a),E1(i.c.e,i.b)),85),!!s&&t2e(s.vc(),new ym(E1(i.c.c,i.a),d3(i.c,i.b,i.a)))):!1},p.Kc=function(){return x_n(this.a)},p.Mc=function(t){var i,s;return ve(t,479)?(i=f(t,697),s=f(Zv(Vpt(this.a),E1(i.c.e,i.b)),85),!!s&&rCn(s.vc(),new ym(E1(i.c.c,i.a),d3(i.c,i.b,i.a)))):!1},p.gc=function(){return qht(this.a)},p.Nc=function(){return P2n(this.a)},N(Ft,"AbstractTable/CellSet",679),P(2025,31,p_,Nnt),p.$b=function(){Blt()},p.Hc=function(t){return p6n(this.a,t)},p.Kc=function(){return C_n(this.a)},p.gc=function(){return qht(this.a)},p.Nc=function(){return o1t(this.a)},N(Ft,"AbstractTable/Values",2025),P(1697,1696,mw),N(Ft,"ArrayListMultimapGwtSerializationDependencies",1697),P(520,1697,mw,NY,Hve),p.hc=function(){return new ka(this.a)},p.a=0,N(Ft,"ArrayListMultimap",520),P(678,2109,{678:1,2046:1,3:1},nkt),N(Ft,"ArrayTable",678),P(2021,399,EA,Bft),p.Xb=function(t){return new OSe(this.a,t)},N(Ft,"ArrayTable/1",2021),P(2022,1,{},Ant),p.td=function(t){return new OSe(this.a,t)},N(Ft,"ArrayTable/1methodref$getCell$Type",2022),P(2110,1,{697:1}),p.Fb=function(t){var i;return t===this?!0:ve(t,479)?(i=f(t,697),Lh(E1(this.c.e,this.b),E1(i.c.e,i.b))&&Lh(E1(this.c.c,this.a),E1(i.c.c,i.a))&&Lh(d3(this.c,this.b,this.a),d3(i.c,i.b,i.a))):!1},p.Hb=function(){return wN(se(ie(ho,1),on,1,5,[E1(this.c.e,this.b),E1(this.c.c,this.a),d3(this.c,this.b,this.a)]))},p.Ib=function(){return"("+E1(this.c.e,this.b)+","+E1(this.c.c,this.a)+")="+d3(this.c,this.b,this.a)},N(Ft,"Tables/AbstractCell",2110),P(479,2110,{479:1,697:1},OSe),p.a=0,p.b=0,p.d=0,N(Ft,"ArrayTable/2",479),P(2024,1,{},Tnt),p.td=function(t){return $wt(this.a,t)},N(Ft,"ArrayTable/2methodref$getValue$Type",2024),P(2023,399,EA,Wft),p.Xb=function(t){return $wt(this.a,t)},N(Ft,"ArrayTable/3",2023),P(2077,2065,cy),p.$b=function(){vB(this.kc())},p.vc=function(){return new Unt(this)},p.lc=function(){return new Rbt(this.kc(),this.gc())},N(Ft,"Maps/IteratorBasedAbstractMap",2077),P(842,2077,cy),p.$b=function(){throw ne(new rr)},p._b=function(t){return oat(this.c,t)},p.kc=function(){return new Hft(this,this.c.b.c.gc())},p.lc=function(){return rZ(this.c.b.c.gc(),16,new $nt(this))},p.xc=function(t){var i;return i=f(B$(this.c,t),17),i?this.vd(i.a):null},p.dc=function(){return this.c.b.c.dc()},p.ec=function(){return fZ(this.c)},p.zc=function(t,i){var s;if(s=f(B$(this.c,t),17),!s)throw ne(new hn(this.ud()+" "+t+" not in "+fZ(this.c)));return this.wd(s.a,i)},p.Bc=function(t){throw ne(new rr)},p.gc=function(){return this.c.b.c.gc()},N(Ft,"ArrayTable/ArrayMap",842),P(2020,1,{},$nt),p.td=function(t){return Kpt(this.a,t)},N(Ft,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),P(2018,358,dre,Iat),p.ld=function(){return B1n(this.a,this.b)},p.md=function(){return this.a.vd(this.b)},p.nd=function(t){return this.a.wd(this.b,t)},p.b=0,N(Ft,"ArrayTable/ArrayMap/1",2018),P(2019,399,EA,Hft),p.Xb=function(t){return Kpt(this.a,t)},N(Ft,"ArrayTable/ArrayMap/2",2019),P(2017,842,cy,Npt),p.ud=function(){return"Column"},p.vd=function(t){return d3(this.b,this.a,t)},p.wd=function(t,i){return rvt(this.b,this.a,t,i)},p.a=0,N(Ft,"ArrayTable/Row",2017),P(843,842,cy,Eme),p.vd=function(t){return new Npt(this.a,t)},p.zc=function(t,i){return f(i,85),lbn()},p.wd=function(t,i){return f(i,85),abn()},p.ud=function(){return"Row"},N(Ft,"ArrayTable/RowMap",843),P(1157,1,Cu,Pat),p.Ad=function(t){return(this.a.yd()&-262&t)!=0},p.yd=function(){return this.a.yd()&-262},p.zd=function(){return this.a.zd()},p.Nb=function(t){this.a.Nb(new Nat(t,this.b))},p.Bd=function(t){return this.a.Bd(new Oat(t,this.b))},N(Ft,"CollectSpliterators/1",1157),P(1158,1,Rn,Oat),p.Cd=function(t){this.a.Cd(this.b.Kb(t))},N(Ft,"CollectSpliterators/1/lambda$0$Type",1158),P(1159,1,Rn,Nat),p.Cd=function(t){this.a.Cd(this.b.Kb(t))},N(Ft,"CollectSpliterators/1/lambda$1$Type",1159),P(1154,1,Cu,rht),p.Ad=function(t){return((16464|this.b)&t)!=0},p.yd=function(){return 16464|this.b},p.zd=function(){return this.a.zd()},p.Nb=function(t){this.a.Qe(new Dat(t,this.c))},p.Bd=function(t){return this.a.Re(new Mat(t,this.c))},p.b=0,N(Ft,"CollectSpliterators/1WithCharacteristics",1154),P(1155,1,lM,Mat),p.Dd=function(t){this.a.Cd(this.b.td(t))},N(Ft,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),P(1156,1,lM,Dat),p.Dd=function(t){this.a.Cd(this.b.td(t))},N(Ft,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),P(1150,1,Cu),p.Ad=function(t){return(this.a&t)!=0},p.yd=function(){return this.a},p.zd=function(){return this.e&&(this.b=fme(this.b,this.e.zd())),fme(this.b,0)},p.Nb=function(t){this.e&&(this.e.Nb(t),this.e=null),this.c.Nb(new Lat(this,t)),this.b=0},p.Bd=function(t){for(;;){if(this.e&&this.e.Bd(t))return T$(this.b,aM)&&(this.b=vf(this.b,1)),!0;if(this.e=null,!this.c.Bd(new Mnt(this)))return!1}},p.a=0,p.b=0,N(Ft,"CollectSpliterators/FlatMapSpliterator",1150),P(1152,1,Rn,Mnt),p.Cd=function(t){j0n(this.a,t)},N(Ft,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),P(1153,1,Rn,Lat),p.Cd=function(t){c_n(this.a,this.b,t)},N(Ft,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),P(1151,1150,Cu,E1t),N(Ft,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),P(253,1,hre),p.Fd=function(t){return this.Ed(f(t,253))},p.Ed=function(t){var i;return t==(kY(),Qoe)?1:t==(EY(),Yoe)?-1:(i=(bB(),oN(this.a,t.a)),i!=0?i:ve(this,526)==ve(t,526)?0:ve(this,526)?1:-1)},p.Id=function(){return this.a},p.Fb=function(t){return Z2e(this,t)},N(Ft,"Cut",253),P(1823,253,hre,_lt),p.Ed=function(t){return t==this?0:1},p.Gd=function(t){throw ne(new S0e)},p.Hd=function(t){t.a+="+∞)"},p.Id=function(){throw ne(new Us($Ct))},p.Hb=function(){return lb(),j2e(this)},p.Jd=function(t){return!1},p.Ib=function(){return"+∞"};var Yoe;N(Ft,"Cut/AboveAll",1823),P(526,253,{253:1,526:1,3:1,34:1},qft),p.Gd=function(t){aa((t.a+="(",t),this.a)},p.Hd=function(t){Q0(aa(t,this.a),93)},p.Hb=function(){return~ti(this.a)},p.Jd=function(t){return bB(),oN(this.a,t)<0},p.Ib=function(){return"/"+this.a+"\\"},N(Ft,"Cut/AboveValue",526),P(1822,253,hre,vlt),p.Ed=function(t){return t==this?0:-1},p.Gd=function(t){t.a+="(-∞"},p.Hd=function(t){throw ne(new S0e)},p.Id=function(){throw ne(new Us($Ct))},p.Hb=function(){return lb(),j2e(this)},p.Jd=function(t){return!0},p.Ib=function(){return"-∞"};var Qoe;N(Ft,"Cut/BelowAll",1822),P(1824,253,hre,Xft),p.Gd=function(t){aa((t.a+="[",t),this.a)},p.Hd=function(t){Q0(aa(t,this.a),41)},p.Hb=function(){return ti(this.a)},p.Jd=function(t){return bB(),oN(this.a,t)<=0},p.Ib=function(){return"\\"+this.a+"/"},N(Ft,"Cut/BelowValue",1824),P(547,1,Rp),p.Jc=function(t){Vo(this,t)},p.Ib=function(){return kCn(f(UB(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},N(Ft,"FluentIterable",547),P(442,547,Rp,P$),p.Kc=function(){return new kn(xn(this.a.Kc(),new O))},N(Ft,"FluentIterable/2",442),P(1059,547,Rp,rft),p.Kc=function(){return wp(this)},N(Ft,"FluentIterable/3",1059),P(724,399,EA,kme),p.Xb=function(t){return this.a[t].Kc()},N(Ft,"FluentIterable/3/1",724),P(2070,1,{}),p.Ib=function(){return dl(this.Kd().b)},N(Ft,"ForwardingObject",2070),P(2071,2070,ICt),p.Kd=function(){return this.Ld()},p.Jc=function(t){Vo(this,t)},p.Lc=function(){return this.Oc()},p.Nc=function(){return new Vt(this,0)},p.Oc=function(){return new Wt(null,this.Nc())},p.Fc=function(t){return this.Ld(),lat()},p.Gc=function(t){return this.Ld(),aat()},p.$b=function(){this.Ld(),cat()},p.Hc=function(t){return this.Ld().Hc(t)},p.Ic=function(t){return this.Ld().Ic(t)},p.dc=function(){return this.Ld().b.dc()},p.Kc=function(){return this.Ld().Kc()},p.Mc=function(t){return this.Ld(),uat()},p.gc=function(){return this.Ld().b.gc()},p.Pc=function(){return this.Ld().Pc()},p.Qc=function(t){return this.Ld().Qc(t)},N(Ft,"ForwardingCollection",2071),P(2078,31,Y3e),p.Kc=function(){return this.Od()},p.Fc=function(t){throw ne(new rr)},p.Gc=function(t){throw ne(new rr)},p.Md=function(){var t;return t=this.c,t||(this.c=this.Nd())},p.$b=function(){throw ne(new rr)},p.Hc=function(t){return t!=null&&e_(this,t,!1)},p.Nd=function(){switch(this.gc()){case 0:return Nm(),Nm(),Zoe;case 1:return Nm(),new iZ(nr(this.Od().Pb()));default:return new rve(this,this.Pc())}},p.Mc=function(t){throw ne(new rr)},N(Ft,"ImmutableCollection",2078),P(727,2078,Y3e,v0e),p.Kc=function(){return h3(this.a.Kc())},p.Hc=function(t){return t!=null&&this.a.Hc(t)},p.Ic=function(t){return this.a.Ic(t)},p.dc=function(){return this.a.dc()},p.Od=function(){return h3(this.a.Kc())},p.gc=function(){return this.a.gc()},p.Pc=function(){return this.a.Pc()},p.Qc=function(t){return this.a.Qc(t)},p.Ib=function(){return dl(this.a)},N(Ft,"ForwardingImmutableCollection",727),P(307,2078,kA),p.Kc=function(){return this.Od()},p.ed=function(){return this.Pd(0)},p.fd=function(t){return this.Pd(t)},p.jd=function(t){sw(this,t)},p.Nc=function(){return new Vt(this,16)},p.kd=function(t,i){return this.Qd(t,i)},p.bd=function(t,i){throw ne(new rr)},p.cd=function(t,i){throw ne(new rr)},p.Md=function(){return this},p.Fb=function(t){return F8n(this,t)},p.Hb=function(){return ORn(this)},p.dd=function(t){return t==null?-1:nTn(this,t)},p.Od=function(){return this.Pd(0)},p.Pd=function(t){return DQ(this,t)},p.gd=function(t){throw ne(new rr)},p.hd=function(t,i){throw ne(new rr)},p.Qd=function(t,i){var s;return eH((s=new Kat(this),new dg(s,t,i)))};var Zoe;N(Ft,"ImmutableList",307),P(2105,307,kA),p.Kc=function(){return h3(this.Rd().Kc())},p.kd=function(t,i){return eH(this.Rd().kd(t,i))},p.Hc=function(t){return t!=null&&this.Rd().Hc(t)},p.Ic=function(t){return this.Rd().Ic(t)},p.Fb=function(t){return Lr(this.Rd(),t)},p.Xb=function(t){return E1(this,t)},p.Hb=function(){return ti(this.Rd())},p.dd=function(t){return this.Rd().dd(t)},p.dc=function(){return this.Rd().dc()},p.Od=function(){return h3(this.Rd().Kc())},p.gc=function(){return this.Rd().gc()},p.Qd=function(t,i){return eH(this.Rd().kd(t,i))},p.Pc=function(){return this.Rd().Qc(Fe(ho,on,1,this.Rd().gc(),5,1))},p.Qc=function(t){return this.Rd().Qc(t)},p.Ib=function(){return dl(this.Rd())},N(Ft,"ForwardingImmutableList",2105),P(729,1,RA),p.vc=function(){return X0(this)},p.wc=function(t){p6(this,t)},p.ec=function(){return fZ(this)},p.yc=function(t,i,s){return vte(this,t,i,s)},p.Cc=function(){return this.Vd()},p.$b=function(){throw ne(new rr)},p._b=function(t){return this.xc(t)!=null},p.uc=function(t){return this.Vd().Hc(t)},p.Td=function(){return new Tst(this)},p.Ud=function(){return new $st(this)},p.Fb=function(t){return Rxn(this,t)},p.Hb=function(){return X0(this).Hb()},p.dc=function(){return this.gc()==0},p.zc=function(t,i){return sbn()},p.Bc=function(t){throw ne(new rr)},p.Ib=function(){return dIn(this)},p.Vd=function(){return this.e?this.e:this.e=this.Ud()},p.c=null,p.d=null,p.e=null;var n6t;N(Ft,"ImmutableMap",729),P(730,729,RA),p._b=function(t){return oat(this,t)},p.uc=function(t){return Zat(this.b,t)},p.Sd=function(){return Zvt(new Ont(this))},p.Td=function(){return Zvt(bbt(this.b))},p.Ud=function(){return Dh(),new v0e(pbt(this.b))},p.Fb=function(t){return ect(this.b,t)},p.xc=function(t){return B$(this,t)},p.Hb=function(){return ti(this.b.c)},p.dc=function(){return this.b.c.dc()},p.gc=function(){return this.b.c.gc()},p.Ib=function(){return dl(this.b.c)},N(Ft,"ForwardingImmutableMap",730),P(2072,2071,pre),p.Kd=function(){return this.Wd()},p.Ld=function(){return this.Wd()},p.Nc=function(){return new Vt(this,1)},p.Fb=function(t){return t===this||this.Wd().Fb(t)},p.Hb=function(){return this.Wd().Hb()},N(Ft,"ForwardingSet",2072),P(1085,2072,pre,Ont),p.Kd=function(){return bC(this.a.b)},p.Ld=function(){return bC(this.a.b)},p.Hc=function(t){if(ve(t,44)&&f(t,44).ld()==null)return!1;try{return Qat(bC(this.a.b),t)}catch(i){if(i=mi(i),ve(i,212))return!1;throw ne(i)}},p.Wd=function(){return bC(this.a.b)},p.Qc=function(t){var i;return i=Zbt(bC(this.a.b),t),bC(this.a.b).b.gc()=0?"+":"")+(s/60|0),i=qF(h.Math.abs(s)%60),(H2t(),_6t)[this.q.getDay()]+" "+S6t[this.q.getMonth()]+" "+qF(this.q.getDate())+" "+qF(this.q.getHours())+":"+qF(this.q.getMinutes())+":"+qF(this.q.getSeconds())+" GMT"+t+i+" "+this.q.getFullYear()};var kG=N(Ln,"Date",206);P(2015,206,BCt,f2t),p.a=!1,p.b=0,p.c=0,p.d=0,p.e=0,p.f=0,p.g=!1,p.i=0,p.j=0,p.k=0,p.n=0,p.o=0,p.p=0,N("com.google.gwt.i18n.shared.impl","DateRecord",2015),P(2064,1,{}),p.pe=function(){return null},p.qe=function(){return null},p.re=function(){return null},p.se=function(){return null},p.te=function(){return null},N(O3,"JSONValue",2064),P(221,2064,{221:1},B0,z1e),p.Fb=function(t){return ve(t,221)?Gve(this.a,f(t,221).a):!1},p.oe=function(){return Ipn},p.Hb=function(){return Ove(this.a)},p.pe=function(){return this},p.Ib=function(){var t,i,s;for(s=new gu("["),i=0,t=this.a.length;i0&&(s.a+=","),aa(s,Kv(this,i));return s.a+="]",s.a},N(O3,"JSONArray",221),P(493,2064,{493:1},K1e),p.oe=function(){return Ppn},p.qe=function(){return this},p.Ib=function(){return cn(),""+this.a},p.a=!1;var c6t,u6t;N(O3,"JSONBoolean",493),P(997,63,Cb,Tlt),N(O3,"JSONException",997),P(1036,2064,{},be),p.oe=function(){return Opn},p.Ib=function(){return Za};var f6t;N(O3,"JSONNull",1036),P(263,2064,{263:1},Gj),p.Fb=function(t){return ve(t,263)?this.a==f(t,263).a:!1},p.oe=function(){return Tpn},p.Hb=function(){return Gk(this.a)},p.re=function(){return this},p.Ib=function(){return this.a+""},p.a=0,N(O3,"JSONNumber",263),P(190,2064,{190:1},Nk,IO),p.Fb=function(t){return ve(t,190)?Gve(this.a,f(t,190).a):!1},p.oe=function(){return $pn},p.Hb=function(){return Ove(this.a)},p.se=function(){return this},p.Ib=function(){var t,i,s,a,c,b,g;for(g=new gu("{"),t=!0,b=jee(this,Fe(_t,rt,2,0,6,1)),s=b,a=0,c=s.length;a=0?":"+this.c:"")+")"},p.c=0;var n4e=N(Pl,"StackTraceElement",319);t6t={3:1,484:1,34:1,2:1};var _t=N(Pl,Q3e,2);P(111,427,{484:1},ig,a$,wf),N(Pl,"StringBuffer",111),P(104,427,{484:1},m1,jk,gu),N(Pl,"StringBuilder",104),P(702,77,Lre,J0e),N(Pl,"StringIndexOutOfBoundsException",702),P(2145,1,{});var b6t;P(48,63,{3:1,103:1,63:1,82:1,48:1},rr,ng),N(Pl,"UnsupportedOperationException",48),P(247,242,{3:1,34:1,242:1,247:1},_N,lwe),p.Fd=function(t){return MRt(this,f(t,247))},p.ue=function(){return o_(cxt(this))},p.Fb=function(t){var i;return this===t?!0:ve(t,247)?(i=f(t,247),this.e==i.e&&MRt(this,i)==0):!1},p.Hb=function(){var t;return this.b!=0?this.b:this.a<54?(t=Gl(this.f),this.b=tr(fo(t,-1)),this.b=33*this.b+tr(fo(Im(t,32),-1)),this.b=17*this.b+oo(this.e),this.b):(this.b=17*qvt(this.c)+oo(this.e),this.b)},p.Ib=function(){return cxt(this)},p.a=0,p.b=0,p.d=0,p.e=0,p.f=0;var g6t,$w,r4e,i4e,o4e,s4e,l4e,a4e,lse=N("java.math","BigDecimal",247);P(92,242,{3:1,34:1,242:1,92:1},pb,Bgt,Y0,X_t,k1),p.Fd=function(t){return V_t(this,f(t,92))},p.ue=function(){return o_(cre(this,0))},p.Fb=function(t){return _2e(this,t)},p.Hb=function(){return qvt(this)},p.Ib=function(){return cre(this,0)},p.b=-2,p.c=0,p.d=0,p.e=0;var w6t,RG,m6t,ase,xG,MI,M2=N("java.math","BigInteger",92),y6t,v6t,V3,DI;P(498,2065,cy),p.$b=function(){xc(this)},p._b=function(t){return Na(this,t)},p.uc=function(t){return Tvt(this,t,this.i)||Tvt(this,t,this.f)},p.vc=function(){return new U0(this)},p.xc=function(t){return En(this,t)},p.zc=function(t,i){return xr(this,t,i)},p.Bc=function(t){return f3(this,t)},p.gc=function(){return u$(this)},p.g=0,N(Ln,"AbstractHashMap",498),P(267,lh,wc,U0),p.$b=function(){this.a.$b()},p.Hc=function(t){return g1t(this,t)},p.Kc=function(){return new aw(this.a)},p.Mc=function(t){var i;return g1t(this,t)?(i=f(t,44).ld(),this.a.Bc(i),!0):!1},p.gc=function(){return this.a.gc()},N(Ln,"AbstractHashMap/EntrySet",267),P(268,1,ko,aw),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return Xm(this)},p.Ob=function(){return this.b},p.Qb=function(){Vwt(this)},p.b=!1,p.d=0,N(Ln,"AbstractHashMap/EntrySetIterator",268),P(426,1,ko,YT),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return HY(this)},p.Pb=function(){return Ave(this)},p.Qb=function(){iu(this)},p.b=0,p.c=-1,N(Ln,"AbstractList/IteratorImpl",426),P(98,426,kp,No),p.Qb=function(){iu(this)},p.Rb=function(t){Dv(this,t)},p.Sb=function(){return this.b>0},p.Tb=function(){return this.b},p.Ub=function(){return In(this.b>0),this.a.Xb(this.c=--this.b)},p.Vb=function(){return this.b-1},p.Wb=function(t){Nv(this.c!=-1),this.a.hd(this.c,t)},N(Ln,"AbstractList/ListIteratorImpl",98),P(244,56,xA,dg),p.bd=function(t,i){Uv(t,this.b),this.c.bd(this.a+t,i),++this.b},p.Xb=function(t){return Xt(t,this.b),this.c.Xb(this.a+t)},p.gd=function(t){var i;return Xt(t,this.b),i=this.c.gd(this.a+t),--this.b,i},p.hd=function(t,i){return Xt(t,this.b),this.c.hd(this.a+t,i)},p.gc=function(){return this.b},p.a=0,p.b=0,N(Ln,"AbstractList/SubList",244),P(266,lh,wc,H0),p.$b=function(){this.a.$b()},p.Hc=function(t){return this.a._b(t)},p.Kc=function(){var t;return t=this.a.vc().Kc(),new zj(t)},p.Mc=function(t){return this.a._b(t)?(this.a.Bc(t),!0):!1},p.gc=function(){return this.a.gc()},N(Ln,"AbstractMap/1",266),P(541,1,ko,zj),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.a.Ob()},p.Pb=function(){var t;return t=f(this.a.Pb(),44),t.ld()},p.Qb=function(){this.a.Qb()},N(Ln,"AbstractMap/1/1",541),P(231,31,p_,ob),p.$b=function(){this.a.$b()},p.Hc=function(t){return this.a.uc(t)},p.Kc=function(){var t;return t=this.a.vc().Kc(),new Rv(t)},p.gc=function(){return this.a.gc()},N(Ln,"AbstractMap/2",231),P(301,1,ko,Rv),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.a.Ob()},p.Pb=function(){var t;return t=f(this.a.Pb(),44),t.md()},p.Qb=function(){this.a.Qb()},N(Ln,"AbstractMap/2/1",301),P(494,1,{494:1,44:1}),p.Fb=function(t){var i;return ve(t,44)?(i=f(t,44),Ul(this.d,i.ld())&&Ul(this.e,i.md())):!1},p.ld=function(){return this.d},p.md=function(){return this.e},p.Hb=function(){return VS(this.d)^VS(this.e)},p.nd=function(t){return Xme(this,t)},p.Ib=function(){return this.d+"="+this.e},N(Ln,"AbstractMap/AbstractEntry",494),P(397,494,{494:1,397:1,44:1},kF),N(Ln,"AbstractMap/SimpleEntry",397),P(2082,1,Bre),p.Fb=function(t){var i;return ve(t,44)?(i=f(t,44),Ul(this.ld(),i.ld())&&Ul(this.md(),i.md())):!1},p.Hb=function(){return VS(this.ld())^VS(this.md())},p.Ib=function(){return this.ld()+"="+this.md()},N(Ln,ACt,2082),P(2090,2065,X3e),p.Xc=function(t){return MY(this.Ee(t))},p.tc=function(t){return S0t(this,t)},p._b=function(t){return Jme(this,t)},p.vc=function(){return new cY(this)},p.Tc=function(){return Dpt(this.Ge())},p.Yc=function(t){return MY(this.He(t))},p.xc=function(t){var i;return i=t,tl(this.Fe(i))},p.$c=function(t){return MY(this.Ie(t))},p.ec=function(){return new ort(this)},p.Vc=function(){return Dpt(this.Je())},p._c=function(t){return MY(this.Ke(t))},N(Ln,"AbstractNavigableMap",2090),P(629,lh,wc,cY),p.Hc=function(t){return ve(t,44)&&S0t(this.b,f(t,44))},p.Kc=function(){return this.b.De()},p.Mc=function(t){var i;return ve(t,44)?(i=f(t,44),this.b.Le(i)):!1},p.gc=function(){return this.b.gc()},N(Ln,"AbstractNavigableMap/EntrySet",629),P(1146,lh,J3e,ort),p.Nc=function(){return new SF(this)},p.$b=function(){this.a.$b()},p.Hc=function(t){return Jme(this.a,t)},p.Kc=function(){var t;return t=this.a.vc().b.De(),new srt(t)},p.Mc=function(t){return Jme(this.a,t)?(this.a.Bc(t),!0):!1},p.gc=function(){return this.a.gc()},N(Ln,"AbstractNavigableMap/NavigableKeySet",1146),P(1147,1,ko,srt),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return HY(this.a.a)},p.Pb=function(){var t;return t=odt(this.a),t.ld()},p.Qb=function(){fht(this.a)},N(Ln,"AbstractNavigableMap/NavigableKeySet/1",1147),P(2103,31,p_),p.Fc=function(t){return Qk(aA(this,t),AA),!0},p.Gc=function(t){return mn(t),E7(t!=this,"Can't add a queue to itself"),Do(this,t)},p.$b=function(){for(;Ree(this)!=null;);},N(Ln,"AbstractQueue",2103),P(310,31,{4:1,20:1,31:1,16:1},qS,f1t),p.Fc=function(t){return e_e(this,t),!0},p.$b=function(){s_e(this)},p.Hc=function(t){return Yyt(new Z$(this),t)},p.dc=function(){return l$(this)},p.Kc=function(){return new Z$(this)},p.Mc=function(t){return pSn(new Z$(this),t)},p.gc=function(){return this.c-this.b&this.a.length-1},p.Nc=function(){return new Vt(this,272)},p.Qc=function(t){var i;return i=this.c-this.b&this.a.length-1,t.lengthi&&Ci(t,i,null),t},p.b=0,p.c=0,N(Ln,"ArrayDeque",310),P(459,1,ko,Z$),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return this.a!=this.b},p.Pb=function(){return ZW(this)},p.Qb=function(){Kmt(this)},p.a=0,p.b=0,p.c=-1,N(Ln,"ArrayDeque/IteratorImpl",459),P(13,56,UCt,st,ka,Rc),p.bd=function(t,i){$m(this,t,i)},p.Fc=function(t){return lt(this,t)},p.cd=function(t,i){return KSe(this,t,i)},p.Gc=function(t){return eo(this,t)},p.$b=function(){xv(this.c,0)},p.Hc=function(t){return il(this,t,0)!=-1},p.Jc=function(t){Ma(this,t)},p.Xb=function(t){return yt(this,t)},p.dd=function(t){return il(this,t,0)},p.dc=function(){return this.c.length==0},p.Kc=function(){return new ee(this)},p.gd=function(t){return pg(this,t)},p.Mc=function(t){return Ja(this,t)},p.ce=function(t,i){Ngt(this,t,i)},p.hd=function(t,i){return Ku(this,t,i)},p.gc=function(){return this.c.length},p.jd=function(t){Hi(this,t)},p.Pc=function(){return gB(this.c)},p.Qc=function(t){return ih(this,t)};var rFn=N(Ln,"ArrayList",13);P(7,1,ko,ee),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return _l(this)},p.Pb=function(){return Z(this)},p.Qb=function(){q$(this)},p.a=0,p.b=-1,N(Ln,"ArrayList/1",7),P(2112,h.Function,{},ye),p.Me=function(t,i){return Qr(t,i)},P(151,56,GCt,kc),p.Hc=function(t){return qmt(this,t)!=-1},p.Jc=function(t){var i,s,a,c;for(mn(t),s=this.a,a=0,c=s.length;a0)throw ne(new hn(sRe+t+" greater than "+this.e));return this.f.Te()?rgt(this.c,this.b,this.a,t,i):Mgt(this.c,t,i)},p.zc=function(t,i){if(!Zte(this.c,this.f,t,this.b,this.a,this.e,this.d))throw ne(new hn(t+" outside the range "+this.b+" to "+this.e));return pvt(this.c,t,i)},p.Bc=function(t){var i;return i=t,Zte(this.c,this.f,i,this.b,this.a,this.e,this.d)?igt(this.c,i):null},p.Le=function(t){return DB(this,t.ld())&&R_e(this.c,t)},p.gc=function(){var t,i,s;if(this.f.Te()?this.a?i=tA(this.c,this.b,!0):i=tA(this.c,this.b,!1):i=M_e(this.c),!(i&&DB(this,i.d)&&i))return 0;for(t=0,s=new Fee(this.c,this.f,this.b,this.a,this.e,this.d);HY(s.a);s.b=f(Ave(s.a),44))++t;return t},p.ad=function(t,i){if(this.f.Te()&&this.c.a.Ne(t,this.b)<0)throw ne(new hn(sRe+t+KCt+this.b));return this.f.Ue()?rgt(this.c,t,i,this.e,this.d):Dgt(this.c,t,i)},p.a=!1,p.d=!1,N(Ln,"TreeMap/SubMap",631),P(304,22,Gre,EF),p.Te=function(){return!1},p.Ue=function(){return!1};var fse,dse,hse,pse,AG=Wn(Ln,"TreeMap/SubMapType",304,qn,W2n,Y0n);P(1143,304,Gre,cft),p.Ue=function(){return!0},Wn(Ln,"TreeMap/SubMapType/1",1143,AG,null,null),P(1144,304,Gre,mft),p.Te=function(){return!0},p.Ue=function(){return!0},Wn(Ln,"TreeMap/SubMapType/2",1144,AG,null,null),P(1145,304,Gre,aft),p.Te=function(){return!0},Wn(Ln,"TreeMap/SubMapType/3",1145,AG,null,null);var A6t;P(157,lh,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},R0e,sg,Fx),p.Nc=function(){return new SF(this)},p.Fc=function(t){return x7(this,t)},p.$b=function(){this.a.$b()},p.Hc=function(t){return this.a._b(t)},p.Kc=function(){return this.a.ec().Kc()},p.Mc=function(t){return OQ(this,t)},p.gc=function(){return this.a.gc()};var cFn=N(Ln,"TreeSet",157);P(1082,1,{},urt),p.Ve=function(t,i){return p0n(this.a,t,i)},N(Vre,"BinaryOperator/lambda$0$Type",1082),P(1083,1,{},frt),p.Ve=function(t,i){return b0n(this.a,t,i)},N(Vre,"BinaryOperator/lambda$1$Type",1083),P(952,1,{},rn),p.Kb=function(t){return t},N(Vre,"Function/lambda$0$Type",952),P(395,1,sr,Bx),p.Mb=function(t){return!this.a.Mb(t)},N(Vre,"Predicate/lambda$2$Type",395),P(581,1,{581:1});var T6t=N(oI,"Handler",581);P(2107,1,oM),p.xe=function(){return"DUMMY"},p.Ib=function(){return this.xe()};var b4e;N(oI,"Level",2107),P(1706,2107,oM,Pe),p.xe=function(){return"INFO"},N(oI,"Level/LevelInfo",1706),P(1843,1,{},Lst);var bse;N(oI,"LogManager",1843),P(1896,1,oM,uht),p.b=null,N(oI,"LogRecord",1896),P(525,1,{525:1},iee),p.e=!1;var $6t=!1,I6t=!1,fh=!1,P6t=!1,O6t=!1;N(oI,"Logger",525),P(835,581,{581:1},Oe),N(oI,"SimpleConsoleLogHandler",835),P(108,22,{3:1,34:1,22:1,108:1},VY);var g4e,pl,k_,qs=Wn(no,"Collector/Characteristics",108,qn,ASn,Q0n),N6t;P(758,1,{},lve),N(no,"CollectorImpl",758),P(1074,1,{},T),p.Ve=function(t,i){return aCn(f(t,213),f(i,213))},N(no,"Collectors/10methodref$merge$Type",1074),P(1075,1,{},$),p.Kb=function(t){return d1t(f(t,213))},N(no,"Collectors/11methodref$toString$Type",1075),P(1076,1,{},drt),p.Kb=function(t){return cn(),!!tme(t)},N(no,"Collectors/12methodref$test$Type",1076),P(144,1,{},B),p.Yd=function(t,i){f(t,16).Fc(i)},N(no,"Collectors/20methodref$add$Type",144),P(146,1,{},K),p.Xe=function(){return new st},N(no,"Collectors/21methodref$ctor$Type",146),P(359,1,{},q),p.Xe=function(){return new Gi},N(no,"Collectors/23methodref$ctor$Type",359),P(360,1,{},ke),p.Yd=function(t,i){Zi(f(t,49),i)},N(no,"Collectors/24methodref$add$Type",360),P(1069,1,{},Re),p.Ve=function(t,i){return rct(f(t,15),f(i,16))},N(no,"Collectors/4methodref$addAll$Type",1069),P(1073,1,{},Ie),p.Yd=function(t,i){bb(f(t,213),f(i,484))},N(no,"Collectors/9methodref$add$Type",1073),P(1072,1,{},Cht),p.Xe=function(){return new cw(this.a,this.b,this.c)},N(no,"Collectors/lambda$15$Type",1072),P(1077,1,{},St),p.Xe=function(){var t;return t=new hg,kg(t,(cn(),!1),new st),kg(t,!0,new st),t},N(no,"Collectors/lambda$22$Type",1077),P(1078,1,{},hrt),p.Xe=function(){return se(ie(ho,1),on,1,5,[this.a])},N(no,"Collectors/lambda$25$Type",1078),P(1079,1,{},prt),p.Yd=function(t,i){Nyn(this.a,ow(t))},N(no,"Collectors/lambda$26$Type",1079),P(1080,1,{},brt),p.Ve=function(t,i){return avn(this.a,ow(t),ow(i))},N(no,"Collectors/lambda$27$Type",1080),P(1081,1,{},he),p.Kb=function(t){return ow(t)[0]},N(no,"Collectors/lambda$28$Type",1081),P(728,1,{},zt),p.Ve=function(t,i){return Wye(t,i)},N(no,"Collectors/lambda$4$Type",728),P(145,1,{},Qt),p.Ve=function(t,i){return Ubn(f(t,16),f(i,16))},N(no,"Collectors/lambda$42$Type",145),P(361,1,{},$n),p.Ve=function(t,i){return Gbn(f(t,49),f(i,49))},N(no,"Collectors/lambda$50$Type",361),P(362,1,{},Gn),p.Kb=function(t){return f(t,49)},N(no,"Collectors/lambda$51$Type",362),P(1068,1,{},grt),p.Yd=function(t,i){pxn(this.a,f(t,85),i)},N(no,"Collectors/lambda$7$Type",1068),P(1070,1,{},$e),p.Ve=function(t,i){return GRn(f(t,85),f(i,85),new Re)},N(no,"Collectors/lambda$8$Type",1070),P(1071,1,{},wrt),p.Kb=function(t){return WCn(this.a,f(t,85))},N(no,"Collectors/lambda$9$Type",1071),P(550,1,{}),p.$e=function(){Q$(this)},p.d=!1,N(no,"TerminatableStream",550),P(827,550,lRe,Bme),p.$e=function(){Q$(this)},N(no,"DoubleStreamImpl",827),P(1847,736,Cu,Aht),p.Re=function(t){return G4n(this,f(t,189))},p.a=null,N(no,"DoubleStreamImpl/2",1847),P(1848,1,pM,mrt),p.Pe=function(t){Lgn(this.a,t)},N(no,"DoubleStreamImpl/2/lambda$0$Type",1848),P(1845,1,pM,yrt),p.Pe=function(t){Dgn(this.a,t)},N(no,"DoubleStreamImpl/lambda$0$Type",1845),P(1846,1,pM,vrt),p.Pe=function(t){A_t(this.a,t)},N(no,"DoubleStreamImpl/lambda$2$Type",1846),P(1397,735,Cu,w0t),p.Re=function(t){return $2n(this,f(t,202))},p.a=0,p.b=0,p.c=0,N(no,"IntStream/5",1397),P(806,550,lRe,Wme),p.$e=function(){Q$(this)},p._e=function(){return A1(this),this.a},N(no,"IntStreamImpl",806),P(807,550,lRe,dwe),p.$e=function(){Q$(this)},p._e=function(){return A1(this),Sme(),C6t},N(no,"IntStreamImpl/Empty",807),P(1687,1,lM,_rt),p.Dd=function(t){jyt(this.a,t)},N(no,"IntStreamImpl/lambda$4$Type",1687);var uFn=Ei(no,"Stream");P(26,550,{533:1,687:1,848:1},Wt),p.$e=function(){Q$(this)};var z3;N(no,"StreamImpl",26),P(1102,500,Cu,nht),p.Bd=function(t){for(;Okn(this);){if(this.a.Bd(t))return!0;Q$(this.b),this.b=null,this.a=null}return!1},N(no,"StreamImpl/1",1102),P(1103,1,Rn,Srt),p.Cd=function(t){syn(this.a,f(t,848))},N(no,"StreamImpl/1/lambda$0$Type",1103),P(1104,1,sr,Ert),p.Mb=function(t){return Zi(this.a,t)},N(no,"StreamImpl/1methodref$add$Type",1104),P(1105,500,Cu,Dbt),p.Bd=function(t){var i;return this.a||(i=new st,this.b.a.Nb(new krt(i)),qt(),Hi(i,this.c),this.a=new Vt(i,16)),ymt(this.a,t)},p.a=null,N(no,"StreamImpl/5",1105),P(1106,1,Rn,krt),p.Cd=function(t){lt(this.a,t)},N(no,"StreamImpl/5/2methodref$add$Type",1106),P(737,500,Cu,D_e),p.Bd=function(t){for(this.b=!1;!this.b&&this.c.Bd(new vct(this,t)););return this.b},p.b=!1,N(no,"StreamImpl/FilterSpliterator",737),P(1096,1,Rn,vct),p.Cd=function(t){nvn(this.a,this.b,t)},N(no,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),P(1091,736,Cu,A0t),p.Re=function(t){return D0n(this,f(t,189))},N(no,"StreamImpl/MapToDoubleSpliterator",1091),P(1095,1,Rn,_ct),p.Cd=function(t){sgn(this.a,this.b,t)},N(no,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),P(1090,735,Cu,T0t),p.Re=function(t){return L0n(this,f(t,202))},N(no,"StreamImpl/MapToIntSpliterator",1090),P(1094,1,Rn,Sct),p.Cd=function(t){lgn(this.a,this.b,t)},N(no,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),P(734,500,Cu,__e),p.Bd=function(t){return Zdt(this,t)},N(no,"StreamImpl/MapToObjSpliterator",734),P(1093,1,Rn,Ect),p.Cd=function(t){agn(this.a,this.b,t)},N(no,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),P(1092,500,Cu,iyt),p.Bd=function(t){for(;UY(this.b,0);){if(!this.a.Bd(new ce))return!1;this.b=vf(this.b,1)}return this.a.Bd(t)},p.b=0,N(no,"StreamImpl/SkipSpliterator",1092),P(1097,1,Rn,ce),p.Cd=function(t){},N(no,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),P(626,1,Rn,de),p.Cd=function(t){ert(this,t)},N(no,"StreamImpl/ValueConsumer",626),P(1098,1,Rn,et),p.Cd=function(t){K0()},N(no,"StreamImpl/lambda$0$Type",1098),P(1099,1,Rn,ht),p.Cd=function(t){K0()},N(no,"StreamImpl/lambda$1$Type",1099),P(1100,1,{},Rrt),p.Ve=function(t,i){return bwn(this.a,t,i)},N(no,"StreamImpl/lambda$4$Type",1100),P(1101,1,Rn,kct),p.Cd=function(t){_0n(this.b,this.a,t)},N(no,"StreamImpl/lambda$5$Type",1101),P(1107,1,Rn,xrt),p.Cd=function(t){PRn(this.a,f(t,380))},N(no,"TerminatableStream/lambda$0$Type",1107),P(2142,1,{}),P(2014,1,{},Jt),N("javaemul.internal","ConsoleLogger",2014);var fFn=0;P(2134,1,{}),P(1830,1,Rn,Zt),p.Cd=function(t){f(t,317)},N(TA,"BowyerWatsonTriangulation/lambda$0$Type",1830),P(1831,1,Rn,Crt),p.Cd=function(t){Do(this.a,f(t,317).e)},N(TA,"BowyerWatsonTriangulation/lambda$1$Type",1831),P(1832,1,Rn,qr),p.Cd=function(t){f(t,177)},N(TA,"BowyerWatsonTriangulation/lambda$2$Type",1832),P(1827,1,cr,Art),p.Ne=function(t,i){return bEn(this.a,f(t,177),f(i,177))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(TA,"NaiveMinST/lambda$0$Type",1827),P(449,1,{},QT),N(TA,"NodeMicroLayout",449),P(177,1,{177:1},Wk),p.Fb=function(t){var i;return ve(t,177)?(i=f(t,177),Ul(this.a,i.a)&&Ul(this.b,i.b)||Ul(this.a,i.b)&&Ul(this.b,i.a)):!1},p.Hb=function(){return VS(this.a)+VS(this.b)};var dFn=N(TA,"TEdge",177);P(317,1,{317:1},_3e),p.Fb=function(t){var i;return ve(t,317)?(i=f(t,317),yW(this,i.a)&&yW(this,i.b)&&yW(this,i.c)):!1},p.Hb=function(){return VS(this.a)+VS(this.b)+VS(this.c)},N(TA,"TTriangle",317),P(225,1,{225:1},JF),N(TA,"Tree",225),P(1218,1,{},_gt),N(JCt,"Scanline",1218);var M6t=Ei(JCt,YCt);P(1758,1,{},gmt),N(Ap,"CGraph",1758),P(316,1,{316:1},kgt),p.b=0,p.c=0,p.d=0,p.g=0,p.i=0,p.k=to,N(Ap,"CGroup",316),P(830,1,{},A0e),N(Ap,"CGroup/CGroupBuilder",830),P(60,1,{60:1},Ddt),p.Ib=function(){var t;return this.j?or(this.j.Kb(this)):(cb(TG),TG.o+"@"+(t=Cm(this)>>>0,t.toString(16)))},p.f=0,p.i=to;var TG=N(Ap,"CNode",60);P(829,1,{},T0e),N(Ap,"CNode/CNodeBuilder",829);var D6t;P(1590,1,{},ao),p.ff=function(t,i){return 0},p.gf=function(t,i){return 0},N(Ap,ZCt,1590),P(1853,1,{},ki),p.cf=function(t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X;for(k=hi,a=new ee(t.a.b);a.aa.d.c||a.d.c==b.d.c&&a.d.b0?t+this.n.d+this.n.a:0},p.kf=function(){var t,i,s,a,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].kf());else if(this.g)c=y2e(this,tne(this,null,!0));else for(i=(Pd(),se(ie(R_,1),Je,237,0,[Nl,Aa,Ml])),s=0,a=i.length;s0?c+this.n.b+this.n.c:0},p.lf=function(){var t,i,s,a,c;if(this.g)for(t=tne(this,null,!1),s=(Pd(),se(ie(R_,1),Je,237,0,[Nl,Aa,Ml])),a=0,c=s.length;a0&&(a[0]+=this.d,s-=a[0]),a[2]>0&&(a[2]+=this.d,s-=a[2]),this.c.a=h.Math.max(0,s),this.c.d=i.d+t.d+(this.c.a-s)/2,a[1]=h.Math.max(a[1],s),w_e(this,Aa,i.d+t.d+a[0]-(a[1]-s)/2,a)},p.b=null,p.d=0,p.e=!1,p.f=!1,p.g=!1;var vse=0,$G=0;N(vw,"GridContainerCell",1538),P(471,22,{3:1,34:1,22:1,471:1},KY);var Q1,tp,ld,z6t=Wn(vw,"HorizontalLabelAlignment",471,qn,$Sn,rwn),K6t;P(314,217,{217:1,314:1},lgt,mmt,egt),p.jf=function(){return Wht(this)},p.kf=function(){return Mye(this)},p.a=0,p.c=!1;var hFn=N(vw,"LabelCell",314);P(252,336,{217:1,336:1,252:1},A6),p.jf=function(){return j6(this)},p.kf=function(){return F6(this)},p.lf=function(){Une(this)},p.mf=function(){Gne(this)},p.b=0,p.c=0,p.d=!1,N(vw,"StripContainerCell",252),P(1691,1,sr,Zc),p.Mb=function(t){return rbn(f(t,217))},N(vw,"StripContainerCell/lambda$0$Type",1691),P(1692,1,{},bu),p.Ye=function(t){return f(t,217).kf()},N(vw,"StripContainerCell/lambda$1$Type",1692),P(1693,1,sr,So),p.Mb=function(t){return ibn(f(t,217))},N(vw,"StripContainerCell/lambda$2$Type",1693),P(1694,1,{},ql),p.Ye=function(t){return f(t,217).jf()},N(vw,"StripContainerCell/lambda$3$Type",1694),P(472,22,{3:1,34:1,22:1,472:1},qY);var ad,Z1,Ld,q6t=Wn(vw,"VerticalLabelAlignment",472,qn,TSn,iwn),X6t;P(800,1,{},j3e),p.c=0,p.d=0,p.k=0,p.s=0,p.t=0,p.v=!1,p.w=0,p.D=!1,p.F=!1,N(wU,"NodeContext",800),P(1536,1,cr,S),p.Ne=function(t,i){return Zut(f(t,64),f(i,64))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(wU,"NodeContext/0methodref$comparePortSides$Type",1536),P(1537,1,cr,x),p.Ne=function(t,i){return O6n(f(t,117),f(i,117))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(wU,"NodeContext/1methodref$comparePortContexts$Type",1537),P(164,22,{3:1,34:1,22:1,164:1},Ju);var J6t,Y6t,Q6t,Z6t,eIt,tIt,nIt,rIt,iIt,oIt,sIt,lIt,aIt,cIt,uIt,fIt,dIt,hIt,pIt,bIt,gIt,_se,wIt=Wn(wU,"NodeLabelLocation",164,qn,Pte,own),mIt;P(117,1,{117:1},skt),p.a=!1,N(wU,"PortContext",117),P(1541,1,Rn,Y),p.Cd=function(t){mat(f(t,314))},N(gM,dAt,1541),P(1542,1,sr,J),p.Mb=function(t){return!!f(t,117).c},N(gM,hAt,1542),P(1543,1,Rn,ue),p.Cd=function(t){mat(f(t,117).c)},N(gM,"LabelPlacer/lambda$2$Type",1543);var j4e;P(1540,1,Rn,Yt),p.Cd=function(t){Mv(),Dpn(f(t,117))},N(gM,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),P(801,1,Rn,pye),p.Cd=function(t){Jbn(this.b,this.c,this.a,f(t,187))},p.a=!1,p.c=!1,N(gM,"NodeLabelCellCreator/lambda$0$Type",801),P(1539,1,Rn,Irt),p.Cd=function(t){Fpn(this.a,f(t,187))},N(gM,"PortContextCreator/lambda$0$Type",1539);var IG;P(1902,1,{},An),N(IA,"GreedyRectangleStripOverlapRemover",1902),P(1903,1,cr,Ws),p.Ne=function(t,i){return A1n(f(t,226),f(i,226))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(IA,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),P(1849,1,{},Wst),p.a=5,p.e=0,N(IA,"RectangleStripOverlapRemover",1849),P(1850,1,cr,Fr),p.Ne=function(t,i){return T1n(f(t,226),f(i,226))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(IA,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),P(1852,1,cr,Hl),p.Ne=function(t,i){return mvn(f(t,226),f(i,226))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(IA,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),P(417,22,{3:1,34:1,22:1,417:1},RF);var HM,Sse,Ese,UM,yIt=Wn(IA,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,qn,G2n,swn),vIt;P(226,1,{226:1},cZ),N(IA,"RectangleStripOverlapRemover/RectangleNode",226),P(1851,1,Rn,Prt),p.Cd=function(t){oTn(this.a,f(t,226))},N(IA,"RectangleStripOverlapRemover/lambda$1$Type",1851),P(1323,1,cr,Ec),p.Ne=function(t,i){return k9n(f(t,176),f(i,176))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),P(1326,1,{},Rs),p.Kb=function(t){return f(t,334).a},N(qh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),P(1327,1,sr,ml),p.Mb=function(t){return f(t,332).a},N(qh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),P(1328,1,sr,gs),p.Mb=function(t){return f(t,332).a},N(qh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),P(1321,1,cr,as),p.Ne=function(t,i){return tNn(f(t,176),f(i,176))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),P(1324,1,{},ws),p.Kb=function(t){return f(t,334).a},N(qh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),P(781,1,cr,wi),p.Ne=function(t,i){return LRn(f(t,176),f(i,176))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/MinNumOfExtensionsComparator",781),P(1319,1,cr,jr),p.Ne=function(t,i){return V3n(f(t,330),f(i,330))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/MinPerimeterComparator",1319),P(1320,1,cr,lr),p.Ne=function(t,i){return T4n(f(t,330),f(i,330))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),P(1322,1,cr,TO),p.Ne=function(t,i){return _Nn(f(t,176),f(i,176))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(qh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),P(1325,1,{},VJ),p.Kb=function(t){return f(t,334).a},N(qh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),P(782,1,{},Rwe),p.Ve=function(t,i){return D2n(this,f(t,42),f(i,176))},N(qh,"SuccessorCombination",782),P(649,1,{},XT),p.Ve=function(t,i){var s;return Q5n((s=f(t,42),f(i,176),s))},N(qh,"SuccessorJitter",649),P(648,1,{},$O),p.Ve=function(t,i){var s;return jOn((s=f(t,42),f(i,176),s))},N(qh,"SuccessorLineByLine",648),P(573,1,{},JT),p.Ve=function(t,i){var s;return Q8n((s=f(t,42),f(i,176),s))},N(qh,"SuccessorManhattan",573),P(1344,1,{},Lj),p.Ve=function(t,i){var s;return aOn((s=f(t,42),f(i,176),s))},N(qh,"SuccessorMaxNormWindingInMathPosSense",1344),P(409,1,{},Wx),p.Ve=function(t,i){return ove(this,t,i)},p.c=!1,p.d=!1,p.e=!1,p.f=!1,N(qh,"SuccessorQuadrantsGeneric",409),P(1345,1,{},We),p.Kb=function(t){return f(t,334).a},N(qh,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),P(332,22,{3:1,34:1,22:1,332:1},xF),p.a=!1;var GM,VM,zM,KM,_It=Wn(yU,mRe,332,qn,H2n,lwn),SIt;P(1317,1,{}),p.Ib=function(){var t,i,s,a,c,b;for(s=" ",t=ot(0),c=0;c=0?"b"+t+"["+ree(this.a)+"]":"b["+ree(this.a)+"]"):"b_"+Cm(this)},N(mM,"FBendpoint",250),P(290,137,{3:1,290:1,96:1,137:1},Ldt),p.Ib=function(){return ree(this)},N(mM,"FEdge",290),P(235,137,{3:1,235:1,96:1,137:1},cW);var bFn=N(mM,"FGraph",235);P(454,309,{3:1,454:1,309:1,96:1,137:1},F1t),p.Ib=function(){return this.b==null||this.b.length==0?"l["+ree(this.a)+"]":"l_"+this.b},N(mM,"FLabel",454),P(153,309,{3:1,153:1,309:1,96:1,137:1},wft),p.Ib=function(){return zve(this)},p.a=0,N(mM,"FNode",153),P(2100,1,{}),p.vf=function(t){g3e(this,t)},p.wf=function(){BSt(this)},p.d=0,N(CRe,"AbstractForceModel",2100),P(641,2100,{641:1},Lyt),p.uf=function(t,i){var s,a,c,b,g;return hxt(this.f,t,i),c=uo(Ho(i.d),t.d),g=h.Math.sqrt(c.a*c.a+c.b*c.b),a=h.Math.max(0,g-Y$(t.e)/2-Y$(i.e)/2),s=XEt(this.e,t,i),s>0?b=-bvn(a,this.c)*s:b=G1n(a,this.b)*f(V(t,(od(),K3)),17).a,Nh(c,b/g),c},p.vf=function(t){g3e(this,t),this.a=f(V(t,(od(),LG)),17).a,this.c=Ae(je(V(t,jG))),this.b=Ae(je(V(t,$se)))},p.xf=function(t){return t0&&(b-=Zpn(a,this.a)*s),Nh(c,b*this.b/g),c},p.vf=function(t){var i,s,a,c,b,g,m;for(g3e(this,t),this.b=Ae(je(V(t,(od(),Ise)))),this.c=this.b/f(V(t,LG),17).a,a=t.e.c.length,b=0,c=0,m=new ee(t.e);m.a0},p.a=0,p.b=0,p.c=0,N(CRe,"FruchtermanReingoldModel",642),P(860,1,Ef,Ptt),p.hf=function(t){Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,SU),""),"Force Model"),"Determines the model for force calculation."),K4e),(Cg(),pi)),q4e),Mt((Nd(),nn))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ARe),""),"Iterations"),"The number of iterations on the force model."),ot(300)),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,TRe),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),ot(0)),bl),Ko),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,cie),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Xh),es),Qi),Mt(nn)))),qi(t,cie,SU,HIt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,uie),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),es),Qi),Mt(nn)))),qi(t,uie,SU,FIt),tCt((new Ott,t))};var DIt,LIt,K4e,jIt,FIt,BIt,WIt,HIt;N(aI,"ForceMetaDataProvider",860),P(432,22,{3:1,34:1,22:1,432:1},Cwe);var Tse,DG,q4e=Wn(aI,"ForceModelStrategy",432,qn,D_n,uwn),UIt;P(Tg,1,Ef,Ott),p.hf=function(t){tCt(t)};var GIt,VIt,X4e,LG,J4e,zIt,KIt,qIt,XIt,Y4e,JIt,Q4e,Z4e,YIt,K3,QIt,$se,eTe,ZIt,e5t,jG,Ise,t5t,n5t,r5t,tTe,i5t;N(aI,"ForceOptions",Tg),P(1001,1,{},VVe),p.sf=function(){var t;return t=new C0e,t},p.tf=function(t){},N(aI,"ForceOptions/ForceFactory",1001);var JM,FI,q3,FG;P(861,1,Ef,Ntt),p.hf=function(t){Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,IRe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(cn(),!1)),(Cg(),po)),Li),Mt((Nd(),lo))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,PRe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),es),Qi),ii(nn,se(ie(Mp,1),Je,170,0,[op]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ORe),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),nTe),pi),cTe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,NRe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Xh),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,MRe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),ot(Nr)),bl),Ko),Mt(nn)))),Txt((new Mtt,t))};var o5t,s5t,nTe,l5t,a5t,c5t;N(aI,"StressMetaDataProvider",861),P(1004,1,Ef,Mtt),p.hf=function(t){Txt(t)};var BG,rTe,iTe,oTe,sTe,lTe,u5t,f5t,d5t,h5t,aTe,p5t;N(aI,"StressOptions",1004),P(1005,1,{},UVe),p.sf=function(){var t;return t=new jdt,t},p.tf=function(t){},N(aI,"StressOptions/StressFactory",1005),P(1110,205,_w,jdt),p.rf=function(t,i){var s,a,c,b,g;for(i.Ug(xAt,1),wt(gt(Qe(t,(IN(),sTe))))?wt(gt(Qe(t,aTe)))||N7((s=new QT((_m(),new hm(t))),s)):zkt(new C0e,t,i.eh(1)),c=lvt(t),a=jRt(this.a,c),g=a.Kc();g.Ob();)b=f(g.Pb(),235),!(b.e.c.length<=1)&&(_9n(this.b,b),K8n(this.b),Ma(b.d,new GVe));c=Qxt(a),aCt(c),i.Vg()},N(RU,"StressLayoutProvider",1110),P(1111,1,Rn,GVe),p.Cd=function(t){k3e(f(t,454))},N(RU,"StressLayoutProvider/lambda$0$Type",1111),P(1002,1,{},Dst),p.c=0,p.e=0,p.g=0,N(RU,"StressMajorization",1002),P(391,22,{3:1,34:1,22:1,391:1},XY);var Pse,Ose,Nse,cTe=Wn(RU,"StressMajorization/Dimension",391,qn,PSn,fwn),b5t;P(1003,1,cr,Drt),p.Ne=function(t,i){return F0n(this.a,f(t,153),f(i,153))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(RU,"StressMajorization/lambda$0$Type",1003),P(1192,1,{},Ggt),N(W3,"ElkLayered",1192),P(1193,1,Rn,Lrt),p.Cd=function(t){S5n(this.a,f(t,36))},N(W3,"ElkLayered/lambda$0$Type",1193),P(1194,1,Rn,jrt),p.Cd=function(t){B0n(this.a,f(t,36))},N(W3,"ElkLayered/lambda$1$Type",1194),P(1281,1,{},Cft);var g5t,w5t,m5t;N(W3,"GraphConfigurator",1281),P(770,1,Rn,f0e),p.Cd=function(t){Z2t(this.a,f(t,10))},N(W3,"GraphConfigurator/lambda$0$Type",770),P(771,1,{},S1e),p.Kb=function(t){return hEe(),new Wt(null,new Vt(f(t,30).a,16))},N(W3,"GraphConfigurator/lambda$1$Type",771),P(772,1,Rn,d0e),p.Cd=function(t){Z2t(this.a,f(t,10))},N(W3,"GraphConfigurator/lambda$2$Type",772),P(1109,205,_w,Hst),p.rf=function(t,i){var s;s=n9n(new Gst,t),Ne(Qe(t,(pt(),M_)))===Ne((vb(),Wg))?NCn(this.a,s,i):U8n(this.a,s,i),i.$g()||Vxt(new Dtt,s)},N(W3,"LayeredLayoutProvider",1109),P(367,22,{3:1,34:1,22:1,367:1},qO);var cd,Pp,sa,ga,ll,uTe=Wn(W3,"LayeredPhases",367,qn,DEn,dwn),y5t;P(1717,1,{},tyt),p.i=0;var v5t;N(kM,"ComponentsToCGraphTransformer",1717);var _5t;P(1718,1,{},HVe),p.yf=function(t,i){return h.Math.min(t.a!=null?Ae(t.a):t.c.i,i.a!=null?Ae(i.a):i.c.i)},p.zf=function(t,i){return h.Math.min(t.a!=null?Ae(t.a):t.c.i,i.a!=null?Ae(i.a):i.c.i)},N(kM,"ComponentsToCGraphTransformer/1",1718),P(86,1,{86:1}),p.i=0,p.k=!0,p.o=to;var Mse=N(dI,"CNode",86);P(470,86,{470:1,86:1},Ime,W2e),p.Ib=function(){return""},N(kM,"ComponentsToCGraphTransformer/CRectNode",470),P(1688,1,{},zVe);var Dse,Lse;N(kM,"OneDimensionalComponentsCompaction",1688),P(1689,1,{},KVe),p.Kb=function(t){return ESn(f(t,42))},p.Fb=function(t){return this===t},N(kM,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),P(1690,1,{},qVe),p.Kb=function(t){return DCn(f(t,42))},p.Fb=function(t){return this===t},N(kM,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),P(1720,1,{},Ypt),N(dI,"CGraph",1720),P(194,1,{194:1},Tte),p.b=0,p.c=0,p.e=0,p.g=!0,p.i=to,N(dI,"CGroup",194),P(1719,1,{},XVe),p.yf=function(t,i){return h.Math.max(t.a!=null?Ae(t.a):t.c.i,i.a!=null?Ae(i.a):i.c.i)},p.zf=function(t,i){return h.Math.max(t.a!=null?Ae(t.a):t.c.i,i.a!=null?Ae(i.a):i.c.i)},N(dI,ZCt,1719),P(1721,1,{},YEt),p.d=!1;var S5t,jse=N(dI,nAt,1721);P(1722,1,{},JVe),p.Kb=function(t){return pwe(),cn(),f(f(t,42).a,86).d.e!=0},p.Fb=function(t){return this===t},N(dI,rAt,1722),P(833,1,{},Hye),p.a=!1,p.b=!1,p.c=!1,p.d=!1,N(dI,iAt,833),P(1898,1,{},hpt),N(xU,oAt,1898);var YM=Ei(Ew,YCt);P(1899,1,{382:1},Kbt),p.bf=function(t){YOn(this,f(t,476))},N(xU,sAt,1899),P(V1,1,cr,YVe),p.Ne=function(t,i){return s_n(f(t,86),f(i,86))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(xU,lAt,V1),P(476,1,{476:1},Twe),p.a=!1,N(xU,aAt,476),P(1901,1,cr,QVe),p.Ne=function(t,i){return l$n(f(t,476),f(i,476))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(xU,cAt,1901),P(148,1,{148:1},eC,Rye),p.Fb=function(t){var i;return t==null||gFn!=ou(t)?!1:(i=f(t,148),Ul(this.c,i.c)&&Ul(this.d,i.d))},p.Hb=function(){return wN(se(ie(ho,1),on,1,5,[this.c,this.d]))},p.Ib=function(){return"("+this.c+ds+this.d+(this.a?"cx":"")+this.b+")"},p.a=!0,p.c=0,p.d=0;var gFn=N(Ew,"Point",148);P(416,22,{3:1,34:1,22:1,416:1},AF);var vy,x_,L2,C_,E5t=Wn(Ew,"Point/Quadrant",416,qn,V2n,hwn),k5t;P(1708,1,{},Bst),p.b=null,p.c=null,p.d=null,p.e=null,p.f=null;var R5t,x5t,C5t,A5t,T5t;N(Ew,"RectilinearConvexHull",1708),P(583,1,{382:1},mH),p.bf=function(t){Mkn(this,f(t,148))},p.b=0;var fTe;N(Ew,"RectilinearConvexHull/MaximalElementsEventHandler",583),P(1710,1,cr,ZVe),p.Ne=function(t,i){return l_n(je(t),je(i))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),P(1709,1,{382:1},wmt),p.bf=function(t){dOn(this,f(t,148))},p.a=0,p.b=null,p.c=null,p.d=null,p.e=null,N(Ew,"RectilinearConvexHull/RectangleEventHandler",1709),P(1711,1,cr,eze),p.Ne=function(t,i){return b2n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$0$Type",1711),P(1712,1,cr,rze),p.Ne=function(t,i){return g2n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$1$Type",1712),P(1713,1,cr,ize),p.Ne=function(t,i){return p2n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$2$Type",1713),P(1714,1,cr,nze),p.Ne=function(t,i){return w2n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$3$Type",1714),P(1715,1,cr,oze),p.Ne=function(t,i){return q6n(f(t,148),f(i,148))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ew,"RectilinearConvexHull/lambda$4$Type",1715),P(1716,1,{},Sgt),N(Ew,"Scanline",1716),P(2104,1,{}),N(ch,"AbstractGraphPlacer",2104),P(335,1,{335:1},cdt),p.Ff=function(t){return this.Gf(t)?(Gt(this.b,f(V(t,(nt(),Pb)),21),t),!0):!1},p.Gf=function(t){var i,s,a,c;for(i=f(V(t,(nt(),Pb)),21),c=f(Hr(Zr,i),21),a=c.Kc();a.Ob();)if(s=f(a.Pb(),21),!f(Hr(this.b,s),15).dc())return!1;return!0};var Zr;N(ch,"ComponentGroup",335),P(779,2104,{},$0e),p.Hf=function(t){var i,s;for(s=new ee(this.a);s.as&&(I=0,D+=m+a,m=0),_=b.c,bA(b,I+_.a,D+_.b),xd(_),c=h.Math.max(c,I+k.a),m=h.Math.max(m,k.b),I+=k.a+a;i.f.a=c,i.f.b=D+m},p.Jf=function(t,i){var s,a,c,b,g;if(Ne(V(i,(pt(),N_)))===Ne((hw(),A_))){for(a=t.Kc();a.Ob();){for(s=f(a.Pb(),36),g=0,b=new ee(s.a);b.as&&!f(V(b,(nt(),Pb)),21).Hc((ft(),bn))||_&&f(V(_,(nt(),Pb)),21).Hc((ft(),_n))||f(V(b,(nt(),Pb)),21).Hc((ft(),wn)))&&(W=D,U+=m+a,m=0),k=b.c,f(V(b,(nt(),Pb)),21).Hc((ft(),bn))&&(W=c+a),bA(b,W+k.a,U+k.b),c=h.Math.max(c,W+I.a),f(V(b,Pb),21).Hc(jn)&&(D=h.Math.max(D,W+I.a+a)),xd(k),m=h.Math.max(m,I.b),W+=I.a+a,_=b;i.f.a=c,i.f.b=U+m},p.Jf=function(t,i){},N(ch,"ModelOrderRowGraphPlacer",1313),P(1311,1,cr,aze),p.Ne=function(t,i){return NRn(f(t,36),f(i,36))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ch,"SimpleRowGraphPlacer/1",1311);var I5t;P(1280,1,Kh,cze),p.Lb=function(t){var i;return i=f(V(f(t,249).b,(pt(),Xs)),75),!!i&&i.b!=0},p.Fb=function(t){return this===t},p.Mb=function(t){var i;return i=f(V(f(t,249).b,(pt(),Xs)),75),!!i&&i.b!=0},N(CU,"CompoundGraphPostprocessor/1",1280),P(1279,1,ni,Vst),p.Kf=function(t,i){vSt(this,f(t,36),i)},N(CU,"CompoundGraphPreprocessor",1279),P(453,1,{453:1},u_t),p.c=!1,N(CU,"CompoundGraphPreprocessor/ExternalPort",453),P(249,1,{249:1},cB),p.Ib=function(){return jQ(this.c)+":"+VEt(this.b)},N(CU,"CrossHierarchyEdge",249),P(777,1,cr,h0e),p.Ne=function(t,i){return MTn(this,f(t,249),f(i,249))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(CU,"CrossHierarchyEdgeComparator",777),P(305,137,{3:1,305:1,96:1,137:1}),p.p=0,N(pa,"LGraphElement",305),P(18,305,{3:1,18:1,305:1,96:1,137:1},Fm),p.Ib=function(){return VEt(this)};var Wse=N(pa,"LEdge",18);P(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},rSe),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return new ee(this.b)},p.Ib=function(){return this.b.c.length==0?"G-unlayered"+B1(this.a):this.a.c.length==0?"G-layered"+B1(this.b):"G[layerless"+B1(this.a)+", layers"+B1(this.b)+"]"};var P5t=N(pa,"LGraph",36),O5t;P(666,1,{}),p.Lf=function(){return this.e.n},p.of=function(t){return V(this.e,t)},p.Mf=function(){return this.e.o},p.Nf=function(){return this.e.p},p.pf=function(t){return ri(this.e,t)},p.Of=function(t){this.e.n.a=t.a,this.e.n.b=t.b},p.Pf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},p.Qf=function(t){this.e.p=t},N(pa,"LGraphAdapters/AbstractLShapeAdapter",666),P(474,1,{853:1},ZT),p.Rf=function(){var t,i;if(!this.b)for(this.b=pp(this.a.b.c.length),i=new ee(this.a.b);i.a0&&Wvt((pn(i-1,t.length),t.charCodeAt(i-1)),PAt);)--i;if(b> ",t),AH(s)),br(aa((t.a+="[",t),s.i),"]")),t.a},p.c=!0,p.d=!1;var gTe,wTe,mTe,yTe,vTe,_Te,M5t=N(pa,"LPort",12);P(408,1,Rp,Hx),p.Jc=function(t){Vo(this,t)},p.Kc=function(){var t;return t=new ee(this.a.e),new Frt(t)},N(pa,"LPort/1",408),P(1309,1,ko,Frt),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return f(Z(this.a),18).c},p.Ob=function(){return _l(this.a)},p.Qb=function(){q$(this.a)},N(pa,"LPort/1/1",1309),P(369,1,Rp,Tk),p.Jc=function(t){Vo(this,t)},p.Kc=function(){var t;return t=new ee(this.a.g),new p0e(t)},N(pa,"LPort/2",369),P(776,1,ko,p0e),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return f(Z(this.a),18).d},p.Ob=function(){return _l(this.a)},p.Qb=function(){q$(this.a)},N(pa,"LPort/2/1",776),P(1302,1,Rp,Act),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return new Zd(this)},N(pa,"LPort/CombineIter",1302),P(208,1,ko,Zd),p.Nb=function(t){Uo(this,t)},p.Qb=function(){sat()},p.Ob=function(){return L$(this)},p.Pb=function(){return _l(this.a)?Z(this.a):Z(this.b)},N(pa,"LPort/CombineIter/1",208),P(1303,1,Kh,fze),p.Lb=function(t){return Cpt(t)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).g.c.length!=0},N(pa,"LPort/lambda$0$Type",1303),P(1304,1,Kh,dze),p.Lb=function(t){return Apt(t)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).e.c.length!=0},N(pa,"LPort/lambda$1$Type",1304),P(1305,1,Kh,hze),p.Lb=function(t){return bc(),f(t,12).j==(ft(),bn)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).j==(ft(),bn)},N(pa,"LPort/lambda$2$Type",1305),P(1306,1,Kh,pze),p.Lb=function(t){return bc(),f(t,12).j==(ft(),_n)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).j==(ft(),_n)},N(pa,"LPort/lambda$3$Type",1306),P(1307,1,Kh,bze),p.Lb=function(t){return bc(),f(t,12).j==(ft(),jn)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).j==(ft(),jn)},N(pa,"LPort/lambda$4$Type",1307),P(1308,1,Kh,gze),p.Lb=function(t){return bc(),f(t,12).j==(ft(),wn)},p.Fb=function(t){return this===t},p.Mb=function(t){return bc(),f(t,12).j==(ft(),wn)},N(pa,"LPort/lambda$5$Type",1308),P(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},ca),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return new ee(this.a)},p.Ib=function(){return"L_"+il(this.b.b,this,0)+B1(this.a)},N(pa,"Layer",30),P(1330,1,{},Gst),N(Ig,DAt,1330),P(1334,1,{},wze),p.Kb=function(t){return sl(f(t,84))},N(Ig,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),P(1337,1,{},mze),p.Kb=function(t){return sl(f(t,84))},N(Ig,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),P(1331,1,Rn,Brt),p.Cd=function(t){akt(this.a,f(t,123))},N(Ig,xRe,1331),P(1332,1,Rn,Wrt),p.Cd=function(t){akt(this.a,f(t,123))},N(Ig,LAt,1332),P(1333,1,{},yze),p.Kb=function(t){return new Wt(null,new Vt(kve(f(t,74)),16))},N(Ig,jAt,1333),P(1335,1,sr,Hrt),p.Mb=function(t){return jgn(this.a,f(t,27))},N(Ig,FAt,1335),P(1336,1,{},vze),p.Kb=function(t){return new Wt(null,new Vt(t_n(f(t,74)),16))},N(Ig,"ElkGraphImporter/lambda$5$Type",1336),P(1338,1,sr,Urt),p.Mb=function(t){return Fgn(this.a,f(t,27))},N(Ig,"ElkGraphImporter/lambda$7$Type",1338),P(1339,1,sr,_ze),p.Mb=function(t){return b_n(f(t,74))},N(Ig,"ElkGraphImporter/lambda$8$Type",1339),P(1297,1,{},Dtt);var D5t;N(Ig,"ElkGraphLayoutTransferrer",1297),P(1298,1,sr,Grt),p.Mb=function(t){return C0n(this.a,f(t,18))},N(Ig,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),P(1299,1,Rn,Vrt),p.Cd=function(t){zO(),lt(this.a,f(t,18))},N(Ig,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),P(1300,1,sr,zrt),p.Mb=function(t){return d0n(this.a,f(t,18))},N(Ig,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),P(1301,1,Rn,Krt),p.Cd=function(t){zO(),lt(this.a,f(t,18))},N(Ig,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),P(819,1,{},eye),N(yn,"BiLinkedHashMultiMap",819),P(1550,1,ni,Sze),p.Kf=function(t,i){eRn(f(t,36),i)},N(yn,"CommentNodeMarginCalculator",1550),P(1551,1,{},Eze),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"CommentNodeMarginCalculator/lambda$0$Type",1551),P(1552,1,Rn,kze),p.Cd=function(t){e9n(f(t,10))},N(yn,"CommentNodeMarginCalculator/lambda$1$Type",1552),P(1553,1,ni,Rze),p.Kf=function(t,i){i7n(f(t,36),i)},N(yn,"CommentPostprocessor",1553),P(1554,1,ni,xze),p.Kf=function(t,i){xLn(f(t,36),i)},N(yn,"CommentPreprocessor",1554),P(1555,1,ni,Cze),p.Kf=function(t,i){_On(f(t,36),i)},N(yn,"ConstraintsPostprocessor",1555),P(1556,1,ni,Aze),p.Kf=function(t,i){ARn(f(t,36),i)},N(yn,"EdgeAndLayerConstraintEdgeReverser",1556),P(1557,1,ni,Tze),p.Kf=function(t,i){mAn(f(t,36),i)},N(yn,"EndLabelPostprocessor",1557),P(1558,1,{},$ze),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"EndLabelPostprocessor/lambda$0$Type",1558),P(1559,1,sr,Ize),p.Mb=function(t){return OEn(f(t,10))},N(yn,"EndLabelPostprocessor/lambda$1$Type",1559),P(1560,1,Rn,Pze),p.Cd=function(t){a$n(f(t,10))},N(yn,"EndLabelPostprocessor/lambda$2$Type",1560),P(1561,1,ni,Oze),p.Kf=function(t,i){JIn(f(t,36),i)},N(yn,"EndLabelPreprocessor",1561),P(1562,1,{},Nze),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"EndLabelPreprocessor/lambda$0$Type",1562),P(1563,1,Rn,bht),p.Cd=function(t){Ybn(this.a,this.b,this.c,f(t,10))},p.a=0,p.b=0,p.c=!1,N(yn,"EndLabelPreprocessor/lambda$1$Type",1563),P(1564,1,sr,Mze),p.Mb=function(t){return Ne(V(f(t,72),(pt(),rp)))===Ne((nh(),x4))},N(yn,"EndLabelPreprocessor/lambda$2$Type",1564),P(1565,1,Rn,qrt),p.Cd=function(t){hr(this.a,f(t,72))},N(yn,"EndLabelPreprocessor/lambda$3$Type",1565),P(1566,1,sr,Dze),p.Mb=function(t){return Ne(V(f(t,72),(pt(),rp)))===Ne((nh(),K_))},N(yn,"EndLabelPreprocessor/lambda$4$Type",1566),P(1567,1,Rn,Xrt),p.Cd=function(t){hr(this.a,f(t,72))},N(yn,"EndLabelPreprocessor/lambda$5$Type",1567),P(1615,1,ni,Att),p.Kf=function(t,i){wCn(f(t,36),i)};var L5t;N(yn,"EndLabelSorter",1615),P(1616,1,cr,Lze),p.Ne=function(t,i){return JAn(f(t,466),f(i,466))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"EndLabelSorter/1",1616),P(466,1,{466:1},Wbt),N(yn,"EndLabelSorter/LabelGroup",466),P(1617,1,{},jze),p.Kb=function(t){return VO(),new Wt(null,new Vt(f(t,30).a,16))},N(yn,"EndLabelSorter/lambda$0$Type",1617),P(1618,1,sr,Fze),p.Mb=function(t){return VO(),f(t,10).k==(gn(),ji)},N(yn,"EndLabelSorter/lambda$1$Type",1618),P(1619,1,Rn,Bze),p.Cd=function(t){uIn(f(t,10))},N(yn,"EndLabelSorter/lambda$2$Type",1619),P(1620,1,sr,Wze),p.Mb=function(t){return VO(),Ne(V(f(t,72),(pt(),rp)))===Ne((nh(),K_))},N(yn,"EndLabelSorter/lambda$3$Type",1620),P(1621,1,sr,Hze),p.Mb=function(t){return VO(),Ne(V(f(t,72),(pt(),rp)))===Ne((nh(),x4))},N(yn,"EndLabelSorter/lambda$4$Type",1621),P(1568,1,ni,Uze),p.Kf=function(t,i){p9n(this,f(t,36))},p.b=0,p.c=0,N(yn,"FinalSplineBendpointsCalculator",1568),P(1569,1,{},Gze),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),P(1570,1,{},Vze),p.Kb=function(t){return new Wt(null,new Om(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(yn,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),P(1571,1,sr,zze),p.Mb=function(t){return!ms(f(t,18))},N(yn,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),P(1572,1,sr,Kze),p.Mb=function(t){return ri(f(t,18),(nt(),Pw))},N(yn,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),P(1573,1,Rn,Jrt),p.Cd=function(t){ENn(this.a,f(t,131))},N(yn,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),P(1574,1,Rn,qze),p.Cd=function(t){FN(f(t,18).a)},N(yn,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),P(803,1,ni,b0e),p.Kf=function(t,i){aDn(this,f(t,36),i)},N(yn,"GraphTransformer",803),P(517,22,{3:1,34:1,22:1,517:1},Awe);var Use,QM,j5t=Wn(yn,"GraphTransformer/Mode",517,qn,L_n,mmn),F5t;P(1575,1,ni,Xze),p.Kf=function(t,i){$Pn(f(t,36),i)},N(yn,"HierarchicalNodeResizingProcessor",1575),P(1576,1,ni,Jze),p.Kf=function(t,i){X3n(f(t,36),i)},N(yn,"HierarchicalPortConstraintProcessor",1576),P(1577,1,cr,Yze),p.Ne=function(t,i){return w4n(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"HierarchicalPortConstraintProcessor/NodeComparator",1577),P(1578,1,ni,Qze),p.Kf=function(t,i){mMn(f(t,36),i)},N(yn,"HierarchicalPortDummySizeProcessor",1578),P(1579,1,ni,Zze),p.Kf=function(t,i){A7n(this,f(t,36),i)},p.a=0,N(yn,"HierarchicalPortOrthogonalEdgeRouter",1579),P(1580,1,cr,eKe),p.Ne=function(t,i){return $1n(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"HierarchicalPortOrthogonalEdgeRouter/1",1580),P(1581,1,cr,tKe),p.Ne=function(t,i){return Dkn(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"HierarchicalPortOrthogonalEdgeRouter/2",1581),P(1582,1,ni,nKe),p.Kf=function(t,i){V6n(f(t,36),i)},N(yn,"HierarchicalPortPositionProcessor",1582),P(1583,1,ni,Ltt),p.Kf=function(t,i){ljn(this,f(t,36))},p.a=0,p.c=0;var WG,HG;N(yn,"HighDegreeNodeLayeringProcessor",1583),P(580,1,{580:1},rKe),p.b=-1,p.d=-1,N(yn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),P(1584,1,{},iKe),p.Kb=function(t){return v7(),go(f(t,10))},p.Fb=function(t){return this===t},N(yn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),P(1585,1,{},oKe),p.Kb=function(t){return v7(),Wi(f(t,10))},p.Fb=function(t){return this===t},N(yn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),P(1591,1,ni,sKe),p.Kf=function(t,i){uMn(this,f(t,36),i)},N(yn,"HyperedgeDummyMerger",1591),P(804,1,{},bye),p.a=!1,p.b=!1,p.c=!1,N(yn,"HyperedgeDummyMerger/MergeState",804),P(1592,1,{},lKe),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"HyperedgeDummyMerger/lambda$0$Type",1592),P(1593,1,{},aKe),p.Kb=function(t){return new Wt(null,new Vt(f(t,10).j,16))},N(yn,"HyperedgeDummyMerger/lambda$1$Type",1593),P(1594,1,Rn,cKe),p.Cd=function(t){f(t,12).p=-1},N(yn,"HyperedgeDummyMerger/lambda$2$Type",1594),P(1595,1,ni,uKe),p.Kf=function(t,i){aMn(f(t,36),i)},N(yn,"HypernodesProcessor",1595),P(1596,1,ni,fKe),p.Kf=function(t,i){wMn(f(t,36),i)},N(yn,"InLayerConstraintProcessor",1596),P(1597,1,ni,dKe),p.Kf=function(t,i){uRn(f(t,36),i)},N(yn,"InnermostNodeMarginCalculator",1597),P(1598,1,ni,hKe),p.Kf=function(t,i){SLn(this,f(t,36))},p.a=to,p.b=to,p.c=hi,p.d=hi;var wFn=N(yn,"InteractiveExternalPortPositioner",1598);P(1599,1,{},pKe),p.Kb=function(t){return f(t,18).d.i},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$0$Type",1599),P(1600,1,{},Yrt),p.Kb=function(t){return I1n(this.a,je(t))},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$1$Type",1600),P(1601,1,{},bKe),p.Kb=function(t){return f(t,18).c.i},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$2$Type",1601),P(1602,1,{},Qrt),p.Kb=function(t){return P1n(this.a,je(t))},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$3$Type",1602),P(1603,1,{},Zrt),p.Kb=function(t){return T0n(this.a,je(t))},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$4$Type",1603),P(1604,1,{},eit),p.Kb=function(t){return $0n(this.a,je(t))},p.Fb=function(t){return this===t},N(yn,"InteractiveExternalPortPositioner/lambda$5$Type",1604),P(81,22,{3:1,34:1,22:1,81:1,196:1},Vi),p.dg=function(){switch(this.g){case 15:return new PXe;case 22:return new OXe;case 47:return new DXe;case 28:case 35:return new xKe;case 32:return new Sze;case 42:return new Rze;case 1:return new xze;case 41:return new Cze;case 56:return new b0e((MC(),QM));case 0:return new b0e((MC(),Use));case 2:return new Aze;case 54:return new Tze;case 33:return new Oze;case 51:return new Uze;case 55:return new Xze;case 13:return new Jze;case 38:return new Qze;case 44:return new Zze;case 40:return new nKe;case 9:return new Ltt;case 49:return new edt;case 37:return new sKe;case 43:return new uKe;case 27:return new fKe;case 30:return new dKe;case 3:return new hKe;case 18:return new wKe;case 29:return new mKe;case 5:return new jtt;case 50:return new gKe;case 34:return new Ftt;case 36:return new CKe;case 52:return new Att;case 11:return new AKe;case 7:return new Btt;case 39:return new TKe;case 45:return new $Ke;case 16:return new IKe;case 10:return new zct;case 48:return new MKe;case 21:return new DKe;case 23:return new xY((Km(),s5));case 8:return new jKe;case 12:return new BKe;case 4:return new WKe;case 19:return new ztt;case 17:return new YKe;case 53:return new QKe;case 6:return new uqe;case 25:return new Kst;case 46:return new rqe;case 31:return new Hdt;case 14:return new mqe;case 26:return new FXe;case 20:return new Eqe;case 24:return new xY((Km(),zV));default:throw ne(new hn(bie+(this.f!=null?this.f:""+this.g)))}};var STe,ETe,kTe,RTe,xTe,CTe,ATe,TTe,$Te,ITe,j2,UG,GG,PTe,OTe,NTe,MTe,DTe,LTe,jTe,BI,FTe,BTe,WTe,HTe,UTe,Gse,VG,zG,GTe,KG,qG,XG,YA,T_,$_,VTe,JG,YG,zTe,QG,ZG,KTe,qTe,XTe,JTe,eV,Vse,ZM,tV,nV,rV,iV,YTe,QTe,ZTe,e$e,mFn=Wn(yn,gie,81,qn,t3t,wwn),B5t;P(1605,1,ni,wKe),p.Kf=function(t,i){vLn(f(t,36),i)},N(yn,"InvertedPortProcessor",1605),P(1606,1,ni,mKe),p.Kf=function(t,i){bNn(f(t,36),i)},N(yn,"LabelAndNodeSizeProcessor",1606),P(1607,1,sr,yKe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),P(1608,1,sr,vKe),p.Mb=function(t){return f(t,10).k==(gn(),Ui)},N(yn,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),P(1609,1,Rn,ght),p.Cd=function(t){Qbn(this.b,this.a,this.c,f(t,10))},p.a=!1,p.c=!1,N(yn,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),P(1610,1,ni,jtt),p.Kf=function(t,i){zDn(f(t,36),i)};var W5t;N(yn,"LabelDummyInserter",1610),P(1611,1,Kh,_Ke),p.Lb=function(t){return Ne(V(f(t,72),(pt(),rp)))===Ne((nh(),R4))},p.Fb=function(t){return this===t},p.Mb=function(t){return Ne(V(f(t,72),(pt(),rp)))===Ne((nh(),R4))},N(yn,"LabelDummyInserter/1",1611),P(1612,1,ni,gKe),p.Kf=function(t,i){NDn(f(t,36),i)},N(yn,"LabelDummyRemover",1612),P(1613,1,sr,SKe),p.Mb=function(t){return wt(gt(V(f(t,72),(pt(),Ole))))},N(yn,"LabelDummyRemover/lambda$0$Type",1613),P(1378,1,ni,Ftt),p.Kf=function(t,i){xDn(this,f(t,36),i)},p.a=null;var zse;N(yn,"LabelDummySwitcher",1378),P(293,1,{293:1},eRt),p.c=0,p.d=null,p.f=0,N(yn,"LabelDummySwitcher/LabelDummyInfo",293),P(1379,1,{},EKe),p.Kb=function(t){return b3(),new Wt(null,new Vt(f(t,30).a,16))},N(yn,"LabelDummySwitcher/lambda$0$Type",1379),P(1380,1,sr,kKe),p.Mb=function(t){return b3(),f(t,10).k==(gn(),ea)},N(yn,"LabelDummySwitcher/lambda$1$Type",1380),P(1381,1,{},tit),p.Kb=function(t){return h0n(this.a,f(t,10))},N(yn,"LabelDummySwitcher/lambda$2$Type",1381),P(1382,1,Rn,nit),p.Cd=function(t){Ovn(this.a,f(t,293))},N(yn,"LabelDummySwitcher/lambda$3$Type",1382),P(1383,1,cr,RKe),p.Ne=function(t,i){return rvn(f(t,293),f(i,293))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"LabelDummySwitcher/lambda$4$Type",1383),P(802,1,ni,xKe),p.Kf=function(t,i){bkn(f(t,36),i)},N(yn,"LabelManagementProcessor",802),P(1614,1,ni,CKe),p.Kf=function(t,i){zOn(f(t,36),i)},N(yn,"LabelSideSelector",1614),P(1622,1,ni,AKe),p.Kf=function(t,i){OMn(f(t,36),i)},N(yn,"LayerConstraintPostprocessor",1622),P(1623,1,ni,Btt),p.Kf=function(t,i){A8n(f(t,36),i)};var t$e;N(yn,"LayerConstraintPreprocessor",1623),P(371,22,{3:1,34:1,22:1,371:1},$F);var e9,oV,sV,Kse,H5t=Wn(yn,"LayerConstraintPreprocessor/HiddenNodeConnections",371,qn,K2n,mwn),U5t;P(1624,1,ni,TKe),p.Kf=function(t,i){J9n(f(t,36),i)},N(yn,"LayerSizeAndGraphHeightCalculator",1624),P(1625,1,ni,$Ke),p.Kf=function(t,i){IPn(f(t,36),i)},N(yn,"LongEdgeJoiner",1625),P(1626,1,ni,IKe),p.Kf=function(t,i){R9n(f(t,36),i)},N(yn,"LongEdgeSplitter",1626),P(1627,1,ni,zct),p.Kf=function(t,i){lLn(this,f(t,36),i)},p.e=0,p.f=0,p.j=0,p.k=0,p.n=0,p.o=0;var G5t,V5t;N(yn,"NodePromotion",1627),P(1628,1,cr,PKe),p.Ne=function(t,i){return vxn(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"NodePromotion/1",1628),P(1629,1,cr,OKe),p.Ne=function(t,i){return _xn(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"NodePromotion/2",1629),P(1630,1,{},NKe),p.Kb=function(t){return f(t,42),fB(),cn(),!0},p.Fb=function(t){return this===t},N(yn,"NodePromotion/lambda$0$Type",1630),P(1631,1,{},sit),p.Kb=function(t){return gSn(this.a,f(t,42))},p.Fb=function(t){return this===t},p.a=0,N(yn,"NodePromotion/lambda$1$Type",1631),P(1632,1,{},lit),p.Kb=function(t){return bSn(this.a,f(t,42))},p.Fb=function(t){return this===t},p.a=0,N(yn,"NodePromotion/lambda$2$Type",1632),P(1633,1,ni,MKe),p.Kf=function(t,i){tjn(f(t,36),i)},N(yn,"NorthSouthPortPostprocessor",1633),P(1634,1,ni,DKe),p.Kf=function(t,i){MLn(f(t,36),i)},N(yn,"NorthSouthPortPreprocessor",1634),P(1635,1,cr,LKe),p.Ne=function(t,i){return MRn(f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"NorthSouthPortPreprocessor/lambda$0$Type",1635),P(1636,1,ni,jKe),p.Kf=function(t,i){JNn(f(t,36),i)},N(yn,"PartitionMidprocessor",1636),P(1637,1,sr,FKe),p.Mb=function(t){return ri(f(t,10),(pt(),f4))},N(yn,"PartitionMidprocessor/lambda$0$Type",1637),P(1638,1,Rn,ait),p.Cd=function(t){g_n(this.a,f(t,10))},N(yn,"PartitionMidprocessor/lambda$1$Type",1638),P(1639,1,ni,BKe),p.Kf=function(t,i){QPn(f(t,36),i)},N(yn,"PartitionPostprocessor",1639),P(1640,1,ni,WKe),p.Kf=function(t,i){d8n(f(t,36),i)},N(yn,"PartitionPreprocessor",1640),P(1641,1,sr,HKe),p.Mb=function(t){return ri(f(t,10),(pt(),f4))},N(yn,"PartitionPreprocessor/lambda$0$Type",1641),P(1642,1,{},UKe),p.Kb=function(t){return new Wt(null,new Om(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(yn,"PartitionPreprocessor/lambda$1$Type",1642),P(1643,1,sr,GKe),p.Mb=function(t){return n4n(f(t,18))},N(yn,"PartitionPreprocessor/lambda$2$Type",1643),P(1644,1,Rn,VKe),p.Cd=function(t){QRn(f(t,18))},N(yn,"PartitionPreprocessor/lambda$3$Type",1644),P(1645,1,ni,ztt),p.Kf=function(t,i){$Nn(f(t,36),i)};var n$e,z5t,K5t,q5t,r$e,i$e;N(yn,"PortListSorter",1645),P(1648,1,cr,zKe),p.Ne=function(t,i){return V1t(f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"PortListSorter/lambda$0$Type",1648),P(1650,1,cr,KKe),p.Ne=function(t,i){return kRt(f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"PortListSorter/lambda$1$Type",1650),P(1646,1,{},qKe),p.Kb=function(t){return zC(),f(t,12).e},N(yn,"PortListSorter/lambda$2$Type",1646),P(1647,1,{},XKe),p.Kb=function(t){return zC(),f(t,12).g},N(yn,"PortListSorter/lambda$3$Type",1647),P(1649,1,cr,JKe),p.Ne=function(t,i){return xTn(f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"PortListSorter/lambda$4$Type",1649),P(1651,1,ni,YKe),p.Kf=function(t,i){W8n(f(t,36),i)},N(yn,"PortSideProcessor",1651),P(1652,1,ni,QKe),p.Kf=function(t,i){H7n(f(t,36),i)},N(yn,"ReversedEdgeRestorer",1652),P(1657,1,ni,Kst),p.Kf=function(t,i){aTn(this,f(t,36),i)},N(yn,"SelfLoopPortRestorer",1657),P(1658,1,{},ZKe),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"SelfLoopPortRestorer/lambda$0$Type",1658),P(1659,1,sr,eqe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"SelfLoopPortRestorer/lambda$1$Type",1659),P(1660,1,sr,tqe),p.Mb=function(t){return ri(f(t,10),(nt(),xy))},N(yn,"SelfLoopPortRestorer/lambda$2$Type",1660),P(1661,1,{},nqe),p.Kb=function(t){return f(V(f(t,10),(nt(),xy)),337)},N(yn,"SelfLoopPortRestorer/lambda$3$Type",1661),P(1662,1,Rn,iit),p.Cd=function(t){EIn(this.a,f(t,337))},N(yn,"SelfLoopPortRestorer/lambda$4$Type",1662),P(805,1,Rn,R1e),p.Cd=function(t){DIn(f(t,105))},N(yn,"SelfLoopPortRestorer/lambda$5$Type",805),P(1663,1,ni,rqe),p.Kf=function(t,i){p4n(f(t,36),i)},N(yn,"SelfLoopPostProcessor",1663),P(1664,1,{},iqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"SelfLoopPostProcessor/lambda$0$Type",1664),P(1665,1,sr,oqe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"SelfLoopPostProcessor/lambda$1$Type",1665),P(1666,1,sr,sqe),p.Mb=function(t){return ri(f(t,10),(nt(),xy))},N(yn,"SelfLoopPostProcessor/lambda$2$Type",1666),P(1667,1,Rn,lqe),p.Cd=function(t){R$n(f(t,10))},N(yn,"SelfLoopPostProcessor/lambda$3$Type",1667),P(1668,1,{},aqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,105).f,1))},N(yn,"SelfLoopPostProcessor/lambda$4$Type",1668),P(1669,1,Rn,rit),p.Cd=function(t){Y2n(this.a,f(t,340))},N(yn,"SelfLoopPostProcessor/lambda$5$Type",1669),P(1670,1,sr,cqe),p.Mb=function(t){return!!f(t,105).i},N(yn,"SelfLoopPostProcessor/lambda$6$Type",1670),P(1671,1,Rn,oit),p.Cd=function(t){Ypn(this.a,f(t,105))},N(yn,"SelfLoopPostProcessor/lambda$7$Type",1671),P(1653,1,ni,uqe),p.Kf=function(t,i){gPn(f(t,36),i)},N(yn,"SelfLoopPreProcessor",1653),P(1654,1,{},fqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,105).f,1))},N(yn,"SelfLoopPreProcessor/lambda$0$Type",1654),P(1655,1,{},dqe),p.Kb=function(t){return f(t,340).a},N(yn,"SelfLoopPreProcessor/lambda$1$Type",1655),P(1656,1,Rn,hqe),p.Cd=function(t){e1n(f(t,18))},N(yn,"SelfLoopPreProcessor/lambda$2$Type",1656),P(1672,1,ni,Hdt),p.Kf=function(t,i){iIn(this,f(t,36),i)},N(yn,"SelfLoopRouter",1672),P(1673,1,{},pqe),p.Kb=function(t){return new Wt(null,new Vt(f(t,30).a,16))},N(yn,"SelfLoopRouter/lambda$0$Type",1673),P(1674,1,sr,bqe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"SelfLoopRouter/lambda$1$Type",1674),P(1675,1,sr,gqe),p.Mb=function(t){return ri(f(t,10),(nt(),xy))},N(yn,"SelfLoopRouter/lambda$2$Type",1675),P(1676,1,{},wqe),p.Kb=function(t){return f(V(f(t,10),(nt(),xy)),337)},N(yn,"SelfLoopRouter/lambda$3$Type",1676),P(1677,1,Rn,xct),p.Cd=function(t){u_n(this.a,this.b,f(t,337))},N(yn,"SelfLoopRouter/lambda$4$Type",1677),P(1678,1,ni,mqe),p.Kf=function(t,i){NOn(f(t,36),i)},N(yn,"SemiInteractiveCrossMinProcessor",1678),P(1679,1,sr,yqe),p.Mb=function(t){return f(t,10).k==(gn(),ji)},N(yn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),P(1680,1,sr,vqe),p.Mb=function(t){return opt(f(t,10))._b((pt(),F_))},N(yn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),P(1681,1,cr,_qe),p.Ne=function(t,i){return Y3n(f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(yn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),P(1682,1,{},Sqe),p.Ve=function(t,i){return w_n(f(t,10),f(i,10))},N(yn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),P(1684,1,ni,Eqe),p.Kf=function(t,i){i9n(f(t,36),i)},N(yn,"SortByInputModelProcessor",1684),P(1685,1,sr,kqe),p.Mb=function(t){return f(t,12).g.c.length!=0},N(yn,"SortByInputModelProcessor/lambda$0$Type",1685),P(1686,1,Rn,cit),p.Cd=function(t){WIn(this.a,f(t,12))},N(yn,"SortByInputModelProcessor/lambda$1$Type",1686),P(1759,817,{},byt),p.df=function(t){var i,s,a,c;switch(this.c=t,this.a.g){case 2:i=new st,Mi(Br(new Wt(null,new Vt(this.c.a.b,16)),new jqe),new Mct(this,i)),BN(this,new xqe),Ma(i,new Cqe),i.c.length=0,Mi(Br(new Wt(null,new Vt(this.c.a.b,16)),new Aqe),new fit(i)),BN(this,new Tqe),Ma(i,new $qe),i.c.length=0,s=gft(Wee(Wv(new Wt(null,new Vt(this.c.a.b,16)),new dit(this))),new Iqe),Mi(new Wt(null,new Vt(this.c.a.a,16)),new Tct(s,i)),BN(this,new Oqe),Ma(i,new Nqe),i.c.length=0;break;case 3:a=new st,BN(this,new Rqe),c=gft(Wee(Wv(new Wt(null,new Vt(this.c.a.b,16)),new uit(this))),new Pqe),Mi(Br(new Wt(null,new Vt(this.c.a.b,16)),new Mqe),new Ict(c,a)),BN(this,new Dqe),Ma(a,new Lqe),a.c.length=0;break;default:throw ne(new Nst)}},p.b=0,N(ro,"EdgeAwareScanlineConstraintCalculation",1759),P(1760,1,Kh,Rqe),p.Lb=function(t){return ve(f(t,60).g,154)},p.Fb=function(t){return this===t},p.Mb=function(t){return ve(f(t,60).g,154)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),P(1761,1,{},uit),p.Ye=function(t){return k5n(this.a,f(t,60))},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),P(1769,1,hU,Cct),p.de=function(){N6(this.a,this.b,-1)},p.b=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),P(1771,1,Kh,xqe),p.Lb=function(t){return ve(f(t,60).g,154)},p.Fb=function(t){return this===t},p.Mb=function(t){return ve(f(t,60).g,154)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),P(1772,1,Rn,Cqe),p.Cd=function(t){f(t,380).de()},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),P(1773,1,sr,Aqe),p.Mb=function(t){return ve(f(t,60).g,10)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),P(1775,1,Rn,fit),p.Cd=function(t){GCn(this.a,f(t,60))},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),P(1774,1,hU,Pct),p.de=function(){N6(this.b,this.a,-1)},p.a=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),P(1776,1,Kh,Tqe),p.Lb=function(t){return ve(f(t,60).g,10)},p.Fb=function(t){return this===t},p.Mb=function(t){return ve(f(t,60).g,10)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),P(1777,1,Rn,$qe),p.Cd=function(t){f(t,380).de()},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),P(1778,1,{},dit),p.Ye=function(t){return R5n(this.a,f(t,60))},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),P(1779,1,{},Iqe),p.We=function(){return 0},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),P(1762,1,{},Pqe),p.We=function(){return 0},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),P(1781,1,Rn,Tct),p.Cd=function(t){Xyn(this.a,this.b,f(t,316))},p.a=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),P(1780,1,hU,$ct),p.de=function(){$kt(this.a,this.b,-1)},p.b=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),P(1782,1,Kh,Oqe),p.Lb=function(t){return f(t,60),!0},p.Fb=function(t){return this===t},p.Mb=function(t){return f(t,60),!0},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),P(1783,1,Rn,Nqe),p.Cd=function(t){f(t,380).de()},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),P(1763,1,sr,Mqe),p.Mb=function(t){return ve(f(t,60).g,10)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),P(1765,1,Rn,Ict),p.Cd=function(t){Jyn(this.a,this.b,f(t,60))},p.a=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),P(1764,1,hU,Oct),p.de=function(){N6(this.b,this.a,-1)},p.a=0,N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),P(1766,1,Kh,Dqe),p.Lb=function(t){return f(t,60),!0},p.Fb=function(t){return this===t},p.Mb=function(t){return f(t,60),!0},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),P(1767,1,Rn,Lqe),p.Cd=function(t){f(t,380).de()},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),P(1768,1,sr,jqe),p.Mb=function(t){return ve(f(t,60).g,154)},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),P(1770,1,Rn,Mct),p.Cd=function(t){p3n(this.a,this.b,f(t,60))},N(ro,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),P(1586,1,ni,edt),p.Kf=function(t,i){I9n(this,f(t,36),i)};var X5t;N(ro,"HorizontalGraphCompactor",1586),P(1587,1,{},hit),p.ff=function(t,i){var s,a,c;return j_e(t,i)||(s=ZS(t),a=ZS(i),s&&s.k==(gn(),Ui)||a&&a.k==(gn(),Ui))?0:(c=f(V(this.a.a,(nt(),K2)),312),D1n(c,s?s.k:(gn(),vo),a?a.k:(gn(),vo)))},p.gf=function(t,i){var s,a,c;return j_e(t,i)?1:(s=ZS(t),a=ZS(i),c=f(V(this.a.a,(nt(),K2)),312),Tme(c,s?s.k:(gn(),vo),a?a.k:(gn(),vo)))},N(ro,"HorizontalGraphCompactor/1",1587),P(1588,1,{},Fqe),p.ef=function(t,i){return d$(),t.a.i==0},N(ro,"HorizontalGraphCompactor/lambda$0$Type",1588),P(1589,1,{},pit),p.ef=function(t,i){return v_n(this.a,t,i)},N(ro,"HorizontalGraphCompactor/lambda$1$Type",1589),P(1730,1,{},Gwt);var J5t,Y5t;N(ro,"LGraphToCGraphTransformer",1730),P(1738,1,sr,Bqe),p.Mb=function(t){return t!=null},N(ro,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),P(1731,1,{},Wqe),p.Kb=function(t){return Qf(),dl(V(f(f(t,60).g,10),(nt(),Ur)))},N(ro,"LGraphToCGraphTransformer/lambda$0$Type",1731),P(1732,1,{},Hqe),p.Kb=function(t){return Qf(),t_t(f(f(t,60).g,154))},N(ro,"LGraphToCGraphTransformer/lambda$1$Type",1732),P(1741,1,sr,Uqe),p.Mb=function(t){return Qf(),ve(f(t,60).g,10)},N(ro,"LGraphToCGraphTransformer/lambda$10$Type",1741),P(1742,1,Rn,Gqe),p.Cd=function(t){R_n(f(t,60))},N(ro,"LGraphToCGraphTransformer/lambda$11$Type",1742),P(1743,1,sr,Vqe),p.Mb=function(t){return Qf(),ve(f(t,60).g,154)},N(ro,"LGraphToCGraphTransformer/lambda$12$Type",1743),P(1747,1,Rn,zqe),p.Cd=function(t){nCn(f(t,60))},N(ro,"LGraphToCGraphTransformer/lambda$13$Type",1747),P(1744,1,Rn,bit),p.Cd=function(t){Tgn(this.a,f(t,8))},p.a=0,N(ro,"LGraphToCGraphTransformer/lambda$14$Type",1744),P(1745,1,Rn,git),p.Cd=function(t){Ign(this.a,f(t,116))},p.a=0,N(ro,"LGraphToCGraphTransformer/lambda$15$Type",1745),P(1746,1,Rn,wit),p.Cd=function(t){$gn(this.a,f(t,8))},p.a=0,N(ro,"LGraphToCGraphTransformer/lambda$16$Type",1746),P(1748,1,{},Kqe),p.Kb=function(t){return Qf(),new Wt(null,new Om(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(ro,"LGraphToCGraphTransformer/lambda$17$Type",1748),P(1749,1,sr,qqe),p.Mb=function(t){return Qf(),ms(f(t,18))},N(ro,"LGraphToCGraphTransformer/lambda$18$Type",1749),P(1750,1,Rn,mit),p.Cd=function(t){zkn(this.a,f(t,18))},N(ro,"LGraphToCGraphTransformer/lambda$19$Type",1750),P(1734,1,Rn,yit),p.Cd=function(t){y2n(this.a,f(t,154))},N(ro,"LGraphToCGraphTransformer/lambda$2$Type",1734),P(1751,1,{},Xqe),p.Kb=function(t){return Qf(),new Wt(null,new Vt(f(t,30).a,16))},N(ro,"LGraphToCGraphTransformer/lambda$20$Type",1751),P(1752,1,{},Jqe),p.Kb=function(t){return Qf(),new Wt(null,new Om(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(ro,"LGraphToCGraphTransformer/lambda$21$Type",1752),P(1753,1,{},Yqe),p.Kb=function(t){return Qf(),f(V(f(t,18),(nt(),Pw)),15)},N(ro,"LGraphToCGraphTransformer/lambda$22$Type",1753),P(1754,1,sr,Qqe),p.Mb=function(t){return L1n(f(t,15))},N(ro,"LGraphToCGraphTransformer/lambda$23$Type",1754),P(1755,1,Rn,vit),p.Cd=function(t){h5n(this.a,f(t,15))},N(ro,"LGraphToCGraphTransformer/lambda$24$Type",1755),P(1733,1,Rn,Dct),p.Cd=function(t){gEn(this.a,this.b,f(t,154))},N(ro,"LGraphToCGraphTransformer/lambda$3$Type",1733),P(1735,1,{},Zqe),p.Kb=function(t){return Qf(),new Wt(null,new Vt(f(t,30).a,16))},N(ro,"LGraphToCGraphTransformer/lambda$4$Type",1735),P(1736,1,{},eXe),p.Kb=function(t){return Qf(),new Wt(null,new Om(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(ro,"LGraphToCGraphTransformer/lambda$5$Type",1736),P(1737,1,{},tXe),p.Kb=function(t){return Qf(),f(V(f(t,18),(nt(),Pw)),15)},N(ro,"LGraphToCGraphTransformer/lambda$6$Type",1737),P(1739,1,Rn,_it),p.Cd=function(t){x5n(this.a,f(t,15))},N(ro,"LGraphToCGraphTransformer/lambda$8$Type",1739),P(1740,1,Rn,Lct),p.Cd=function(t){t1n(this.a,this.b,f(t,154))},N(ro,"LGraphToCGraphTransformer/lambda$9$Type",1740),P(1729,1,{},nXe),p.cf=function(t){var i,s,a,c,b;for(this.a=t,this.d=new wY,this.c=Fe(L4e,on,125,this.a.a.a.c.length,0,1),this.b=0,s=new ee(this.a.a.a);s.a=X&&(lt(b,ot(I)),_e=h.Math.max(_e,Ce[I-1]-D),m+=z,oe+=Ce[I-1]-oe,D=Ce[I-1],z=_[I]),z=h.Math.max(z,_[I]),++I;m+=z}U=h.Math.min(1/_e,1/i.b/m),U>a&&(a=U,s=b)}return s},p.pg=function(){return!1},N(Yh,"MSDCutIndexHeuristic",816),P(1683,1,ni,FXe),p.Kf=function(t,i){MMn(f(t,36),i)},N(Yh,"SingleEdgeGraphWrapper",1683),P(232,22,{3:1,34:1,22:1,232:1},v$);var B2,e4,t4,I_,WI,W2,n4=Wn(Zl,"CenterEdgeLabelPlacementStrategy",232,qn,vkn,Swn),c8t;P(431,22,{3:1,34:1,22:1,431:1},$we);var s$e,ile,l$e=Wn(Zl,"ConstraintCalculationStrategy",431,qn,B_n,Ewn),u8t;P(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},YY),p.dg=function(){return jEt(this)},p.qg=function(){return jEt(this)};var n9,HI,a$e,c$e=Wn(Zl,"CrossingMinimizationStrategy",322,qn,NSn,kwn),f8t;P(351,22,{3:1,34:1,22:1,351:1},QY);var u$e,ole,fV,f$e=Wn(Zl,"CuttingStrategy",351,qn,MSn,Rwn),d8t;P(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},JO),p.dg=function(){return Akt(this)},p.qg=function(){return Akt(this)};var d$e,sle,r4,lle,i4,h$e=Wn(Zl,"CycleBreakingStrategy",348,qn,jEn,xwn),h8t;P(428,22,{3:1,34:1,22:1,428:1},Iwe);var dV,p$e,b$e=Wn(Zl,"DirectionCongruency",428,qn,F_n,Cwn),p8t;P(460,22,{3:1,34:1,22:1,460:1},ZY);var o4,ale,H2,b8t=Wn(Zl,"EdgeConstraint",460,qn,DSn,Nwn),g8t;P(283,22,{3:1,34:1,22:1,283:1},_$);var cle,ule,fle,dle,hV,hle,g$e=Wn(Zl,"EdgeLabelSideSelection",283,qn,wkn,Mwn),w8t;P(488,22,{3:1,34:1,22:1,488:1},Pwe);var pV,w$e,m$e=Wn(Zl,"EdgeStraighteningStrategy",488,qn,K_n,Dwn),m8t;P(281,22,{3:1,34:1,22:1,281:1},S$);var ple,y$e,v$e,bV,_$e,S$e,E$e=Wn(Zl,"FixedAlignment",281,qn,mkn,Own),y8t;P(282,22,{3:1,34:1,22:1,282:1},E$);var k$e,R$e,x$e,C$e,UI,A$e,T$e=Wn(Zl,"GraphCompactionStrategy",282,qn,ykn,Awn),v8t;P(259,22,{3:1,34:1,22:1,259:1},Tv);var s4,gV,l4,af,GI,wV,a4,U2,mV,VI,ble=Wn(Zl,"GraphProperties",259,qn,rRn,Twn),_8t;P(299,22,{3:1,34:1,22:1,299:1},eQ);var r9,gle,wle,mle=Wn(Zl,"GreedySwitchType",299,qn,LSn,$wn),S8t;P(311,22,{3:1,34:1,22:1,311:1},tQ);var J3,i9,G2,E8t=Wn(Zl,"InLayerConstraint",311,qn,jSn,Iwn),k8t;P(429,22,{3:1,34:1,22:1,429:1},Owe);var yle,$$e,I$e=Wn(Zl,"InteractiveReferencePoint",429,qn,j_n,Pwn),R8t,P$e,Y3,Ey,yV,O$e,N$e,vV,M$e,o9,_V,zI,Q3,Pb,vle,SV,Dl,D$e,t0,ma,_le,Sle,s9,Iw,ky,Z3,L$e,eR,l9,P_,jd,Af,Ele,V2,Yr,Ur,j$e,F$e,B$e,W$e,H$e,kle,EV,Ic,Ry,Rle,tR,KI,hh,z2,xy,K2,q2,c4,Pw,U$e,xle,Cle,nR;P(171,22,{3:1,34:1,22:1,171:1},YO);var qI,n0,XI,O_,a9,G$e=Wn(Zl,"LayerConstraint",171,qn,BEn,Lwn),x8t;P(859,1,Ef,Ztt),p.hf=function(t){Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,BRe),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),e6e),(Cg(),pi)),b$e),Mt((Nd(),nn))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,WRe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(cn(),!1)),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,AU),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),s6e),pi),I$e),Mt(nn)))),qi(t,AU,yie,vPt),qi(t,AU,pI,yPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,HRe),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,URe),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),po),Li),Mt(nn)))),Ot(t,new Rt(Tbn(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,GRe),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),po),Li),Mt(Bw)),se(ie(_t,1),rt,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,VRe),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),p6e),pi),EIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,zRe),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),ot(7)),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,KRe),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,qRe),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,yie),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),Z$e),pi),h$e),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,CM),Uie),"Node Layering Strategy"),"Strategy for node layering."),c6e),pi),fIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,XRe),Uie),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),l6e),pi),G$e),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,JRe),Uie),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,YRe),Uie),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),ot(-1)),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,vie),JAt),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),ot(4)),bl),Ko),Mt(nn)))),qi(t,vie,CM,CPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,_ie),JAt),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),ot(2)),bl),Ko),Mt(nn)))),qi(t,_ie,CM,TPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Sie),YAt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),a6e),pi),vIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Eie),YAt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),ot(0)),bl),Ko),Mt(nn)))),qi(t,Eie,Sie,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,kie),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),ot(Nr)),bl),Ko),Mt(nn)))),qi(t,kie,CM,SPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,pI),DA),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),Q$e),pi),c$e),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,QRe),DA),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Rie),DA),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),es),Qi),Mt(nn)))),qi(t,Rie,WU,z8t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,xie),DA),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),po),Li),Mt(nn)))),qi(t,xie,pI,Q8t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ZRe),DA),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),oE),_t),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,exe),DA),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),oE),_t),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,txe),DA),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,nxe),DA),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),ot(-1)),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,rxe),QAt),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),ot(40)),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Cie),QAt),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),Y$e),pi),mle),Mt(nn)))),qi(t,Cie,pI,G8t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,TU),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),J$e),pi),mle),Mt(nn)))),qi(t,TU,pI,W8t),qi(t,TU,WU,H8t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,T2),ZAt),"Node Placement Strategy"),"Strategy for node placement."),h6e),pi),bIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,$U),ZAt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),po),Li),Mt(nn)))),qi(t,$U,T2,BPt),qi(t,$U,T2,WPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Aie),e4t),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),u6e),pi),m$e),Mt(nn)))),qi(t,Aie,T2,DPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Tie),e4t),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),f6e),pi),E$e),Mt(nn)))),qi(t,Tie,T2,jPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,$ie),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),es),Qi),Mt(nn)))),qi(t,$ie,T2,UPt),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Iie),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),pi),Xle),Mt(lo)))),qi(t,Iie,T2,KPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Pie),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),d6e),pi),Xle),Mt(nn)))),qi(t,Pie,T2,zPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ixe),t4t),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),r6e),pi),xIe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,oxe),t4t),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),i6e),pi),CIe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,IU),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),o6e),pi),TIe),Mt(nn)))),qi(t,IU,AM,cPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,PU),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),es),Qi),Mt(nn)))),qi(t,PU,AM,fPt),qi(t,PU,IU,dPt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Oie),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),es),Qi),Mt(nn)))),qi(t,Oie,AM,oPt),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,sxe),uh),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,lxe),uh),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,axe),uh),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,cxe),uh),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,uxe),vxe),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),ot(0)),bl),Ko),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fxe),vxe),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),ot(0)),bl),Ko),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,dxe),vxe),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),ot(0)),bl),Ko),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Nie),_xe),wAt),"Tries to further compact components (disconnected sub-graphs)."),!1),po),Li),Mt(nn)))),qi(t,Nie,cI,!0),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,hxe),n4t),"Post Compaction Strategy"),r4t),z$e),pi),T$e),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,pxe),n4t),"Post Compaction Constraint Calculation"),r4t),V$e),pi),l$e),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,OU),Sxe),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Mie),Sxe),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),ot(16)),bl),Ko),Mt(nn)))),qi(t,Mie,OU,!0),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Die),Sxe),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),ot(5)),bl),Ko),Mt(nn)))),qi(t,Die,OU,!0),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Tb),Exe),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),w6e),pi),OIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,NU),Exe),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),es),Qi),Mt(nn)))),qi(t,NU,Tb,sOt),qi(t,NU,Tb,lOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,MU),Exe),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),es),Qi),Mt(nn)))),qi(t,MU,Tb,cOt),qi(t,MU,Tb,uOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,bI),i4t),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),g6e),pi),f$e),Mt(nn)))),qi(t,bI,Tb,gOt),qi(t,bI,Tb,wOt),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Lie),i4t),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),bh),lf),Mt(nn)))),qi(t,Lie,bI,dOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,jie),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),b6e),bl),Ko),Mt(nn)))),qi(t,jie,bI,pOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,DU),o4t),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),m6e),pi),PIe),Mt(nn)))),qi(t,DU,Tb,TOt),qi(t,DU,Tb,$Ot),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,LU),o4t),"Valid Indices for Wrapping"),null),bh),lf),Mt(nn)))),qi(t,LU,Tb,xOt),qi(t,LU,Tb,COt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,jU),kxe),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),po),Li),Mt(nn)))),qi(t,jU,Tb,_Ot),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,FU),kxe),"Distance Penalty When Improving Cuts"),null),2),es),Qi),Mt(nn)))),qi(t,FU,Tb,yOt),qi(t,FU,jU,!0),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Fie),kxe),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),po),Li),Mt(nn)))),qi(t,Fie,Tb,EOt),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,bxe),Gie),"Edge Label Side Selection"),"Method to decide on edge label sides."),n6e),pi),g$e),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,gxe),Gie),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),t6e),pi),n4),ii(nn,se(ie(Mp,1),Je,170,0,[Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,BU),gI),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),X$e),pi),SIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,wxe),gI),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,mxe),gI),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Bie),gI),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),K$e),pi),hTe),Mt(nn)))),qi(t,Bie,cI,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,yxe),gI),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),q$e),pi),hIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Wie),gI),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),es),Qi),Mt(nn)))),qi(t,Wie,BU,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Hie),gI),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),es),Qi),Mt(nn)))),qi(t,Hie,BU,null),SCt((new ent,t))};var C8t,A8t,T8t,V$e,$8t,z$e,I8t,K$e,P8t,O8t,N8t,q$e,M8t,D8t,L8t,X$e,j8t,F8t,B8t,J$e,W8t,H8t,U8t,Y$e,G8t,V8t,z8t,K8t,q8t,X8t,J8t,Y8t,Q8t,Z8t,Q$e,ePt,Z$e,tPt,e6e,nPt,t6e,rPt,n6e,iPt,oPt,sPt,r6e,lPt,i6e,aPt,o6e,cPt,uPt,fPt,dPt,hPt,pPt,bPt,gPt,wPt,mPt,s6e,yPt,vPt,_Pt,SPt,EPt,kPt,l6e,RPt,xPt,CPt,APt,TPt,$Pt,IPt,a6e,PPt,c6e,OPt,NPt,MPt,u6e,DPt,LPt,f6e,jPt,FPt,BPt,WPt,HPt,UPt,GPt,VPt,d6e,zPt,KPt,qPt,h6e,XPt,p6e,JPt,YPt,QPt,ZPt,eOt,tOt,nOt,rOt,iOt,oOt,sOt,lOt,aOt,cOt,uOt,fOt,dOt,hOt,b6e,pOt,bOt,g6e,gOt,wOt,mOt,yOt,vOt,_Ot,SOt,EOt,kOt,w6e,ROt,xOt,COt,AOt,m6e,TOt,$Ot;N(Zl,"LayeredMetaDataProvider",859),P(998,1,Ef,ent),p.hf=function(t){SCt(t)};var np,Ale,kV,JI,RV,y6e,xV,N_,CV,v6e,_6e,AV,Tle,Np,$le,Cy,S6e,c9,Ile,E6e,IOt,POt,OOt,TV,Ple,YI,Ow,NOt,$u,k6e,R6e,$V,Ole,rp,IV,Ob,x6e,C6e,A6e,Nle,Mle,T6e,Ng,Dle,$6e,M_,I6e,P6e,O6e,PV,D_,Nw,N6e,M6e,Xs,D6e,MOt,Ha,OV,L6e,j6e,F6e,r0,Mw,NV,B6e,W6e,MV,Ay,H6e,Lle,QI,U6e,Ty,ZI,DV,Dw,jle,u4,LV,Lw,G6e,V6e,z6e,f4,K6e,DOt,LOt,jOt,FOt,$y,L_,Oi,Mg,BOt,j_,q6e,d4,X6e,F_,WOt,h4,J6e,rR,HOt,UOt,u9,Fle,Y6e,f9,ud,X2,J2,Iy,jw,jV,B_,Ble,p4,b4,Py,Y2,Wle,d9,e5,t5,GOt,VOt,zOt,Q6e,KOt,Hle,Z6e,eIe,tIe,nIe,Ule,rIe,iIe,oIe,sIe,Gle,FV;N(Zl,"LayeredOptions",998),P(999,1,{},BXe),p.sf=function(){var t;return t=new Hst,t},p.tf=function(t){},N(Zl,"LayeredOptions/LayeredFactory",999),P(1391,1,{}),p.a=0;var qOt;N(Ol,"ElkSpacings/AbstractSpacingsBuilder",1391),P(792,1391,{},C2e);var BV,XOt;N(Zl,"LayeredSpacings/LayeredSpacingsBuilder",792),P(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},LS),p.dg=function(){return L3t(this)},p.qg=function(){return L3t(this)};var g4,Vle,w4,lIe,aIe,cIe,WV,zle,uIe,fIe=Wn(Zl,"LayeringStrategy",265,qn,O3n,jwn),JOt;P(390,22,{3:1,34:1,22:1,390:1},nQ);var Kle,dIe,HV,hIe=Wn(Zl,"LongEdgeOrderingStrategy",390,qn,FSn,Fwn),YOt;P(203,22,{3:1,34:1,22:1,203:1},PF);var Q2,Z2,UV,qle,Xle=Wn(Zl,"NodeFlexibility",203,qn,q2n,Bwn),QOt;P(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},QO),p.dg=function(){return Ckt(this)},p.qg=function(){return Ckt(this)};var n5,Jle,Yle,r5,pIe,bIe=Wn(Zl,"NodePlacementStrategy",323,qn,FEn,Wwn),ZOt;P(243,22,{3:1,34:1,22:1,243:1},$v);var gIe,Oy,W_,h9,wIe,mIe,p9,yIe,GV,VV,vIe=Wn(Zl,"NodePromotionStrategy",243,qn,iRn,Hwn),e7t;P(284,22,{3:1,34:1,22:1,284:1},OF);var _Ie,Dg,Qle,Zle,SIe=Wn(Zl,"OrderingStrategy",284,qn,X2n,Uwn),t7t;P(430,22,{3:1,34:1,22:1,430:1},Nwe);var eae,tae,EIe=Wn(Zl,"PortSortingStrategy",430,qn,W_n,Gwn),n7t;P(463,22,{3:1,34:1,22:1,463:1},rQ);var Pc,Ta,i5,r7t=Wn(Zl,"PortType",463,qn,BSn,Vwn),i7t;P(387,22,{3:1,34:1,22:1,387:1},iQ);var kIe,nae,RIe,xIe=Wn(Zl,"SelfLoopDistributionStrategy",387,qn,WSn,zwn),o7t;P(349,22,{3:1,34:1,22:1,349:1},oQ);var rae,b9,iae,CIe=Wn(Zl,"SelfLoopOrderingStrategy",349,qn,HSn,Kwn),s7t;P(312,1,{312:1},yxt),N(Zl,"Spacings",312),P(350,22,{3:1,34:1,22:1,350:1},sQ);var oae,AIe,o5,TIe=Wn(Zl,"SplineRoutingMode",350,qn,USn,qwn),l7t;P(352,22,{3:1,34:1,22:1,352:1},lQ);var sae,$Ie,IIe,PIe=Wn(Zl,"ValidifyStrategy",352,qn,GSn,Xwn),a7t;P(388,22,{3:1,34:1,22:1,388:1},aQ);var H_,lae,m4,OIe=Wn(Zl,"WrappingStrategy",388,qn,VSn,Jwn),c7t;P(1398,1,$s,Vtt),p.rg=function(t){return f(t,36),u7t},p.Kf=function(t,i){A9n(this,f(t,36),i)};var u7t;N(VU,"DepthFirstCycleBreaker",1398),P(793,1,$s,Kye),p.rg=function(t){return f(t,36),f7t},p.Kf=function(t,i){Pjn(this,f(t,36),i)},p.sg=function(t){return f(yt(t,SH(this.d,t.c.length)),10)};var f7t;N(VU,"GreedyCycleBreaker",793),P(1401,793,$s,jut),p.sg=function(t){var i,s,a,c;for(c=null,i=Nr,a=new ee(t);a.a1&&(wt(gt(V(Go((Xt(0,t.c.length),f(t.c[0],10))),(pt(),Cy))))?Bkt(t,this.d,f(this,669)):(qt(),Hi(t,this.d)),Wyt(this.e,t))},p.lg=function(t,i,s,a){var c,b,g,m,_,k,I;for(i!=ipt(s,t.length)&&(b=t[i-(s?1:-1)],S_e(this.f,b,s?(Cs(),Ta):(Cs(),Pc))),c=t[i][0],I=!a||c.k==(gn(),Ui),k=Qd(t[i]),this.vg(k,I,!1,s),g=0,_=new ee(k);_.a<_.c.c.length;)m=f(Z(_),10),t[i][g++]=m;return!1},p.mg=function(t,i){var s,a,c,b,g;for(g=ipt(i,t.length),b=Qd(t[g]),this.vg(b,!1,!0,i),s=0,c=new ee(b);c.a"),t0?HZ(this.a,t[i-1],t[i]):!s&&i1&&(wt(gt(V(Go((Xt(0,t.c.length),f(t.c[0],10))),(pt(),Cy))))?Bkt(t,this.d,this):(qt(),Hi(t,this.d)),wt(gt(V(Go((Xt(0,t.c.length),f(t.c[0],10))),Cy)))||Wyt(this.e,t))},N(mc,"ModelOrderBarycenterHeuristic",669),P(1866,1,cr,Wit),p.Ne=function(t,i){return AIn(this.a,f(t,10),f(i,10))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(mc,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),P(1423,1,$s,nnt),p.rg=function(t){var i;return f(t,36),i=XF(C7t),gr(i,(Yo(),sa),(ss(),eV)),i},p.Kf=function(t,i){f_n((f(t,36),i))};var C7t;N(mc,"NoCrossingMinimizer",1423),P(809,413,oCe,rwe),p.tg=function(t,i,s){var a,c,b,g,m,_,k,I,D,W,U;switch(D=this.g,s.g){case 1:{for(c=0,b=0,I=new ee(t.j);I.a1&&(c.j==(ft(),_n)?this.b[t]=!0:c.j==wn&&t>0&&(this.b[t-1]=!0))},p.f=0,N($p,"AllCrossingsCounter",1861),P(595,1,{},BW),p.b=0,p.d=0,N($p,"BinaryIndexedTree",595),P(532,1,{},y7);var DIe,KV;N($p,"CrossingsCounter",532),P(1950,1,cr,Hit),p.Ne=function(t,i){return Lyn(this.a,f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N($p,"CrossingsCounter/lambda$0$Type",1950),P(1951,1,cr,Uit),p.Ne=function(t,i){return jyn(this.a,f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N($p,"CrossingsCounter/lambda$1$Type",1951),P(1952,1,cr,Git),p.Ne=function(t,i){return Fyn(this.a,f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N($p,"CrossingsCounter/lambda$2$Type",1952),P(1953,1,cr,Vit),p.Ne=function(t,i){return Byn(this.a,f(t,12),f(i,12))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N($p,"CrossingsCounter/lambda$3$Type",1953),P(1954,1,Rn,zit),p.Cd=function(t){Bkn(this.a,f(t,12))},N($p,"CrossingsCounter/lambda$4$Type",1954),P(1955,1,sr,Kit),p.Mb=function(t){return fgn(this.a,f(t,12))},N($p,"CrossingsCounter/lambda$5$Type",1955),P(1956,1,Rn,qit),p.Cd=function(t){Tut(this,t)},N($p,"CrossingsCounter/lambda$6$Type",1956),P(1957,1,Rn,Bct),p.Cd=function(t){var i;lC(),$1(this.b,(i=this.a,f(t,12),i))},N($p,"CrossingsCounter/lambda$7$Type",1957),P(839,1,Kh,P1e),p.Lb=function(t){return lC(),ri(f(t,12),(nt(),Ic))},p.Fb=function(t){return this===t},p.Mb=function(t){return lC(),ri(f(t,12),(nt(),Ic))},N($p,"CrossingsCounter/lambda$8$Type",839),P(1949,1,{},Xit),N($p,"HyperedgeCrossingsCounter",1949),P(478,1,{34:1,478:1},Udt),p.Fd=function(t){return FAn(this,f(t,478))},p.b=0,p.c=0,p.e=0,p.f=0;var yFn=N($p,"HyperedgeCrossingsCounter/Hyperedge",478);P(374,1,{34:1,374:1},WB),p.Fd=function(t){return Z8n(this,f(t,374))},p.b=0,p.c=0;var A7t=N($p,"HyperedgeCrossingsCounter/HyperedgeCorner",374);P(531,22,{3:1,34:1,22:1,531:1},Mwe);var l5,a5,T7t=Wn($p,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,qn,H_n,Qwn),$7t;P(1425,1,$s,rnt),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?I7t:null},p.Kf=function(t,i){u$n(this,f(t,36),i)};var I7t;N(Is,"InteractiveNodePlacer",1425),P(1426,1,$s,int),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?P7t:null},p.Kf=function(t,i){q4n(this,f(t,36),i)};var P7t,qV,XV;N(Is,"LinearSegmentsNodePlacer",1426),P(261,1,{34:1,261:1},I0e),p.Fd=function(t){return Ebn(this,f(t,261))},p.Fb=function(t){var i;return ve(t,261)?(i=f(t,261),this.b==i.b):!1},p.Hb=function(){return this.b},p.Ib=function(){return"ls"+B1(this.e)},p.a=0,p.b=0,p.c=-1,p.d=-1,p.g=0;var O7t=N(Is,"LinearSegmentsNodePlacer/LinearSegment",261);P(1428,1,$s,ppt),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?N7t:null},p.Kf=function(t,i){Ejn(this,f(t,36),i)},p.b=0,p.g=0;var N7t;N(Is,"NetworkSimplexPlacer",1428),P(1447,1,cr,JXe),p.Ne=function(t,i){return Xl(f(t,17).a,f(i,17).a)},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Is,"NetworkSimplexPlacer/0methodref$compare$Type",1447),P(1449,1,cr,YXe),p.Ne=function(t,i){return Xl(f(t,17).a,f(i,17).a)},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Is,"NetworkSimplexPlacer/1methodref$compare$Type",1449),P(655,1,{655:1},Wct);var vFn=N(Is,"NetworkSimplexPlacer/EdgeRep",655);P(412,1,{412:1},Cve),p.b=!1;var _Fn=N(Is,"NetworkSimplexPlacer/NodeRep",412);P(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},Yst),N(Is,"NetworkSimplexPlacer/Path",515),P(1429,1,{},QXe),p.Kb=function(t){return f(t,18).d.i.k},N(Is,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),P(1430,1,sr,ZXe),p.Mb=function(t){return f(t,273)==(gn(),vo)},N(Is,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),P(1431,1,{},eJe),p.Kb=function(t){return f(t,18).d.i},N(Is,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),P(1432,1,sr,Jit),p.Mb=function(t){return Cdt($_t(f(t,10)))},N(Is,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),P(1433,1,sr,tJe),p.Mb=function(t){return _yn(f(t,12))},N(Is,"NetworkSimplexPlacer/lambda$0$Type",1433),P(1434,1,Rn,Hct),p.Cd=function(t){n1n(this.a,this.b,f(t,12))},N(Is,"NetworkSimplexPlacer/lambda$1$Type",1434),P(1443,1,Rn,Yit),p.Cd=function(t){A5n(this.a,f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$10$Type",1443),P(1444,1,{},nJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$11$Type",1444),P(1445,1,Rn,Qit),p.Cd=function(t){S7n(this.a,f(t,10))},N(Is,"NetworkSimplexPlacer/lambda$12$Type",1445),P(1446,1,{},rJe),p.Kb=function(t){return mu(),ot(f(t,125).e)},N(Is,"NetworkSimplexPlacer/lambda$13$Type",1446),P(1448,1,{},iJe),p.Kb=function(t){return mu(),ot(f(t,125).e)},N(Is,"NetworkSimplexPlacer/lambda$15$Type",1448),P(1450,1,sr,oJe),p.Mb=function(t){return mu(),f(t,412).c.k==(gn(),ji)},N(Is,"NetworkSimplexPlacer/lambda$17$Type",1450),P(1451,1,sr,sJe),p.Mb=function(t){return mu(),f(t,412).c.j.c.length>1},N(Is,"NetworkSimplexPlacer/lambda$18$Type",1451),P(1452,1,Rn,Sbt),p.Cd=function(t){lAn(this.c,this.b,this.d,this.a,f(t,412))},p.c=0,p.d=0,N(Is,"NetworkSimplexPlacer/lambda$19$Type",1452),P(1435,1,{},lJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$2$Type",1435),P(1453,1,Rn,Zit),p.Cd=function(t){i1n(this.a,f(t,12))},p.a=0,N(Is,"NetworkSimplexPlacer/lambda$20$Type",1453),P(1454,1,{},aJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$21$Type",1454),P(1455,1,Rn,eot),p.Cd=function(t){g1n(this.a,f(t,10))},N(Is,"NetworkSimplexPlacer/lambda$22$Type",1455),P(1456,1,sr,cJe),p.Mb=function(t){return Cdt(t)},N(Is,"NetworkSimplexPlacer/lambda$23$Type",1456),P(1457,1,{},uJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$24$Type",1457),P(1458,1,sr,tot),p.Mb=function(t){return Rgn(this.a,f(t,10))},N(Is,"NetworkSimplexPlacer/lambda$25$Type",1458),P(1459,1,Rn,Uct),p.Cd=function(t){PIn(this.a,this.b,f(t,10))},N(Is,"NetworkSimplexPlacer/lambda$26$Type",1459),P(1460,1,sr,fJe),p.Mb=function(t){return mu(),!ms(f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$27$Type",1460),P(1461,1,sr,dJe),p.Mb=function(t){return mu(),!ms(f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$28$Type",1461),P(1462,1,{},not),p.Ve=function(t,i){return r1n(this.a,f(t,30),f(i,30))},N(Is,"NetworkSimplexPlacer/lambda$29$Type",1462),P(1436,1,{},hJe),p.Kb=function(t){return mu(),new Wt(null,new Om(new kn(xn(Wi(f(t,10)).a.Kc(),new O))))},N(Is,"NetworkSimplexPlacer/lambda$3$Type",1436),P(1437,1,sr,pJe),p.Mb=function(t){return mu(),O2n(f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$4$Type",1437),P(1438,1,Rn,rot),p.Cd=function(t){IMn(this.a,f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$5$Type",1438),P(1439,1,{},bJe),p.Kb=function(t){return mu(),new Wt(null,new Vt(f(t,30).a,16))},N(Is,"NetworkSimplexPlacer/lambda$6$Type",1439),P(1440,1,sr,gJe),p.Mb=function(t){return mu(),f(t,10).k==(gn(),ji)},N(Is,"NetworkSimplexPlacer/lambda$7$Type",1440),P(1441,1,{},wJe),p.Kb=function(t){return mu(),new Wt(null,new Om(new kn(xn(Sb(f(t,10)).a.Kc(),new O))))},N(Is,"NetworkSimplexPlacer/lambda$8$Type",1441),P(1442,1,sr,mJe),p.Mb=function(t){return mu(),vyn(f(t,18))},N(Is,"NetworkSimplexPlacer/lambda$9$Type",1442),P(1424,1,$s,ont),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?M7t:null},p.Kf=function(t,i){f9n(f(t,36),i)};var M7t;N(Is,"SimpleNodePlacer",1424),P(185,1,{185:1},y2),p.Ib=function(){var t;return t="",this.c==(jh(),Ny)?t+=D3:this.c==Lg&&(t+=M3),this.o==(Jd(),Fw)?t+=Yre:this.o==ph?t+="UP":t+="BALANCED",t},N(q1,"BKAlignedLayout",185),P(523,22,{3:1,34:1,22:1,523:1},Dwe);var Lg,Ny,D7t=Wn(q1,"BKAlignedLayout/HDirection",523,qn,G_n,Zwn),L7t;P(522,22,{3:1,34:1,22:1,522:1},Lwe);var Fw,ph,j7t=Wn(q1,"BKAlignedLayout/VDirection",522,qn,V_n,emn),F7t;P(1699,1,{},Gct),N(q1,"BKAligner",1699),P(1702,1,{},t2t),N(q1,"BKCompactor",1702),P(663,1,{663:1},yJe),p.a=0,N(q1,"BKCompactor/ClassEdge",663),P(467,1,{467:1},qst),p.a=null,p.b=0,N(q1,"BKCompactor/ClassNode",467),P(1427,1,$s,qct),p.rg=function(t){return f(V(f(t,36),(nt(),ma)),21).Hc((As(),af))?B7t:null},p.Kf=function(t,i){Wjn(this,f(t,36),i)},p.d=!1;var B7t;N(q1,"BKNodePlacer",1427),P(1700,1,{},vJe),p.d=0,N(q1,"NeighborhoodInformation",1700),P(1701,1,cr,iot),p.Ne=function(t,i){return b3n(this,f(t,42),f(i,42))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(q1,"NeighborhoodInformation/NeighborComparator",1701),P(823,1,{}),N(q1,"ThresholdStrategy",823),P(1825,823,{},Xst),p.wg=function(t,i,s){return this.a.o==(Jd(),ph)?hi:to},p.xg=function(){},N(q1,"ThresholdStrategy/NullThresholdStrategy",1825),P(587,1,{587:1},Xct),p.c=!1,p.d=!1,N(q1,"ThresholdStrategy/Postprocessable",587),P(1826,823,{},Jst),p.wg=function(t,i,s){var a,c,b;return c=i==s,a=this.a.a[s.p]==i,c||a?(b=t,this.a.c==(jh(),Ny)?(c&&(b=Jne(this,i,!0)),!isNaN(b)&&!isFinite(b)&&a&&(b=Jne(this,s,!1))):(c&&(b=Jne(this,i,!0)),!isNaN(b)&&!isFinite(b)&&a&&(b=Jne(this,s,!1))),b):t},p.xg=function(){for(var t,i,s,a,c;this.d.b!=0;)c=f(sSn(this.d),587),a=CRt(this,c),a.a&&(t=a.a,s=wt(this.a.f[this.a.g[c.b.p].p]),!(!s&&!ms(t)&&t.c.i.c==t.d.i.c)&&(i=Pkt(this,c),i||Agn(this.e,c)));for(;this.e.a.c.length!=0;)Pkt(this,f(Ovt(this.e),587))},N(q1,"ThresholdStrategy/SimpleThresholdStrategy",1826),P(645,1,{645:1,188:1,196:1},_Je),p.dg=function(){return Hyt(this)},p.qg=function(){return Hyt(this)};var aae;N(Xie,"EdgeRouterFactory",645),P(1485,1,$s,snt),p.rg=function(t){return QOn(f(t,36))},p.Kf=function(t,i){w9n(f(t,36),i)};var W7t,H7t,U7t,G7t,V7t,LIe,z7t,K7t;N(Xie,"OrthogonalEdgeRouter",1485),P(1478,1,$s,Kct),p.rg=function(t){return v$n(f(t,36))},p.Kf=function(t,i){WLn(this,f(t,36),i)};var q7t,X7t,J7t,Y7t,w9,Q7t;N(Xie,"PolylineEdgeRouter",1478),P(1479,1,Kh,EJe),p.Lb=function(t){return kSe(f(t,10))},p.Fb=function(t){return this===t},p.Mb=function(t){return kSe(f(t,10))},N(Xie,"PolylineEdgeRouter/1",1479),P(1872,1,sr,kJe),p.Mb=function(t){return f(t,132).c==(Td(),i0)},N(Md,"HyperEdgeCycleDetector/lambda$0$Type",1872),P(1873,1,{},RJe),p.Ze=function(t){return f(t,132).d},N(Md,"HyperEdgeCycleDetector/lambda$1$Type",1873),P(1874,1,sr,xJe),p.Mb=function(t){return f(t,132).c==(Td(),i0)},N(Md,"HyperEdgeCycleDetector/lambda$2$Type",1874),P(1875,1,{},CJe),p.Ze=function(t){return f(t,132).d},N(Md,"HyperEdgeCycleDetector/lambda$3$Type",1875),P(1876,1,{},AJe),p.Ze=function(t){return f(t,132).d},N(Md,"HyperEdgeCycleDetector/lambda$4$Type",1876),P(1877,1,{},SJe),p.Ze=function(t){return f(t,132).d},N(Md,"HyperEdgeCycleDetector/lambda$5$Type",1877),P(118,1,{34:1,118:1},aN),p.Fd=function(t){return kbn(this,f(t,118))},p.Fb=function(t){var i;return ve(t,118)?(i=f(t,118),this.g==i.g):!1},p.Hb=function(){return this.g},p.Ib=function(){var t,i,s,a;for(t=new gu("{"),a=new ee(this.n);a.a"+this.b+" ("+U1n(this.c)+")"},p.d=0,N(Md,"HyperEdgeSegmentDependency",132),P(528,22,{3:1,34:1,22:1,528:1},jwe);var i0,U_,Z7t=Wn(Md,"HyperEdgeSegmentDependency/DependencyType",528,qn,z_n,tmn),eNt;P(1878,1,{},oot),N(Md,"HyperEdgeSegmentSplitter",1878),P(1879,1,{},Ylt),p.a=0,p.b=0,N(Md,"HyperEdgeSegmentSplitter/AreaRating",1879),P(339,1,{339:1},JQ),p.a=0,p.b=0,p.c=0,N(Md,"HyperEdgeSegmentSplitter/FreeArea",339),P(1880,1,cr,TJe),p.Ne=function(t,i){return U0n(f(t,118),f(i,118))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Md,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),P(1881,1,Rn,Ebt),p.Cd=function(t){wEn(this.a,this.d,this.c,this.b,f(t,118))},p.b=0,N(Md,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),P(1882,1,{},$Je),p.Kb=function(t){return new Wt(null,new Vt(f(t,118).e,16))},N(Md,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),P(1883,1,{},IJe),p.Kb=function(t){return new Wt(null,new Vt(f(t,118).j,16))},N(Md,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),P(1884,1,{},PJe),p.Ye=function(t){return Ae(je(t))},N(Md,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),P(664,1,{},_Z),p.a=0,p.b=0,p.c=0,N(Md,"OrthogonalRoutingGenerator",664),P(1703,1,{},OJe),p.Kb=function(t){return new Wt(null,new Vt(f(t,118).e,16))},N(Md,"OrthogonalRoutingGenerator/lambda$0$Type",1703),P(1704,1,{},NJe),p.Kb=function(t){return new Wt(null,new Vt(f(t,118).j,16))},N(Md,"OrthogonalRoutingGenerator/lambda$1$Type",1704),P(670,1,{}),N(Jie,"BaseRoutingDirectionStrategy",670),P(1870,670,{},elt),p.yg=function(t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X;if(!(t.r&&!t.q))for(I=i+t.o*s,k=new ee(t.n);k.aXh&&(b=I,c=t,a=new tt(D,b),hr(g.a,a),oy(this,g,c,a,!1),W=t.r,W&&(U=Ae(je(tf(W.e,0))),a=new tt(U,b),hr(g.a,a),oy(this,g,c,a,!1),b=i+W.o*s,c=W,a=new tt(U,b),hr(g.a,a),oy(this,g,c,a,!1)),a=new tt(X,b),hr(g.a,a),oy(this,g,c,a,!1)))},p.zg=function(t){return t.i.n.a+t.n.a+t.a.a},p.Ag=function(){return ft(),jn},p.Bg=function(){return ft(),bn},N(Jie,"NorthToSouthRoutingStrategy",1870),P(1871,670,{},tlt),p.yg=function(t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X;if(!(t.r&&!t.q))for(I=i-t.o*s,k=new ee(t.n);k.aXh&&(b=I,c=t,a=new tt(D,b),hr(g.a,a),oy(this,g,c,a,!1),W=t.r,W&&(U=Ae(je(tf(W.e,0))),a=new tt(U,b),hr(g.a,a),oy(this,g,c,a,!1),b=i-W.o*s,c=W,a=new tt(U,b),hr(g.a,a),oy(this,g,c,a,!1)),a=new tt(X,b),hr(g.a,a),oy(this,g,c,a,!1)))},p.zg=function(t){return t.i.n.a+t.n.a+t.a.a},p.Ag=function(){return ft(),bn},p.Bg=function(){return ft(),jn},N(Jie,"SouthToNorthRoutingStrategy",1871),P(1869,670,{},nlt),p.yg=function(t,i,s){var a,c,b,g,m,_,k,I,D,W,U,z,X;if(!(t.r&&!t.q))for(I=i+t.o*s,k=new ee(t.n);k.aXh&&(b=I,c=t,a=new tt(b,D),hr(g.a,a),oy(this,g,c,a,!0),W=t.r,W&&(U=Ae(je(tf(W.e,0))),a=new tt(b,U),hr(g.a,a),oy(this,g,c,a,!0),b=i+W.o*s,c=W,a=new tt(b,U),hr(g.a,a),oy(this,g,c,a,!0)),a=new tt(b,X),hr(g.a,a),oy(this,g,c,a,!0)))},p.zg=function(t){return t.i.n.b+t.n.b+t.a.b},p.Ag=function(){return ft(),_n},p.Bg=function(){return ft(),wn},N(Jie,"WestToEastRoutingStrategy",1869),P(828,1,{},S3e),p.Ib=function(){return B1(this.a)},p.b=0,p.c=!1,p.d=!1,p.f=0,N(y_,"NubSpline",828),P(418,1,{418:1},f3t,tgt),N(y_,"NubSpline/PolarCP",418),P(1480,1,$s,KSt),p.rg=function(t){return c6n(f(t,36))},p.Kf=function(t,i){sjn(this,f(t,36),i)};var tNt,nNt,rNt,iNt,oNt;N(y_,"SplineEdgeRouter",1480),P(274,1,{274:1},uW),p.Ib=function(){return this.a+" ->("+this.c+") "+this.b},p.c=0,N(y_,"SplineEdgeRouter/Dependency",274),P(465,22,{3:1,34:1,22:1,465:1},Fwe);var o0,eE,sNt=Wn(y_,"SplineEdgeRouter/SideToProcess",465,qn,Q_n,nmn),lNt;P(1481,1,sr,MJe),p.Mb=function(t){return V6(),!f(t,131).o},N(y_,"SplineEdgeRouter/lambda$0$Type",1481),P(1482,1,{},DJe),p.Ze=function(t){return V6(),f(t,131).v+1},N(y_,"SplineEdgeRouter/lambda$1$Type",1482),P(1483,1,Rn,Jct),p.Cd=function(t){kyn(this.a,this.b,f(t,42))},N(y_,"SplineEdgeRouter/lambda$2$Type",1483),P(1484,1,Rn,Yct),p.Cd=function(t){Ryn(this.a,this.b,f(t,42))},N(y_,"SplineEdgeRouter/lambda$3$Type",1484),P(131,1,{34:1,131:1},REt,A3e),p.Fd=function(t){return Cbn(this,f(t,131))},p.b=0,p.e=!1,p.f=0,p.g=0,p.j=!1,p.k=!1,p.n=0,p.o=!1,p.p=!1,p.q=!1,p.s=0,p.u=0,p.v=0,p.F=0,N(y_,"SplineSegment",131),P(468,1,{468:1},LJe),p.a=0,p.b=!1,p.c=!1,p.d=!1,p.e=!1,p.f=0,N(y_,"SplineSegment/EdgeInformation",468),P(1198,1,{},jJe),N(Ib,RRe,1198),P(1199,1,cr,FJe),p.Ne=function(t,i){return V5n(f(t,121),f(i,121))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ib,_At,1199),P(1197,1,{},hat),N(Ib,"MrTree",1197),P(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},NF),p.dg=function(){return zEt(this)},p.qg=function(){return zEt(this)};var JV,c5,u5,f5,jIe=Wn(Ib,"TreeLayoutPhases",405,qn,eEn,rmn),aNt;P(1112,205,_w,Wdt),p.rf=function(t,i){var s,a,c,b,g,m,_,k;for(wt(gt(Qe(t,(Il(),c5e))))||N7((s=new QT((_m(),new hm(t))),s)),g=i.eh(Zie),g.Ug("build tGraph",1),m=(_=new U7,ol(_,t),Xe(_,(ei(),h5),t),k=new Fn,LNn(t,_,k),nMn(t,_,k),_),g.Vg(),g=i.eh(Zie),g.Ug("Split graph",1),b=UNn(this.a,m),g.Vg(),c=new ee(b);c.a"+nw(this.c):"e_"+ti(this)},N(wI,"TEdge",65),P(121,137,{3:1,121:1,96:1,137:1},U7),p.Ib=function(){var t,i,s,a,c;for(c=null,a=Hn(this.b,0);a.b!=a.d.c;)s=f(Bn(a),40),c+=(s.c==null||s.c.length==0?"n_"+s.g:"n_"+s.c)+` +`;for(i=Hn(this.a,0);i.b!=i.d.c;)t=f(Bn(i),65),c+=(t.b&&t.c?nw(t.b)+"->"+nw(t.c):"e_"+ti(t))+` +`;return c};var SFn=N(wI,"TGraph",121);P(643,508,{3:1,508:1,643:1,96:1,137:1}),N(wI,"TShape",643),P(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},Zee),p.Ib=function(){return nw(this)};var YV=N(wI,"TNode",40);P(236,1,Rp,sb),p.Jc=function(t){Vo(this,t)},p.Kc=function(){var t;return t=Hn(this.a.d,0),new OS(t)},N(wI,"TNode/2",236),P(329,1,ko,OS),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return f(Bn(this.a),65).c},p.Ob=function(){return jO(this.a)},p.Qb=function(){Cee(this.a)},N(wI,"TNode/2/1",329),P(1923,1,ni,zJe),p.Kf=function(t,i){Djn(this,f(t,121),i)},N(ba,"CompactionProcessor",1923),P(1924,1,cr,uot),p.Ne=function(t,i){return ERn(this.a,f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$0$Type",1924),P(1925,1,sr,Zct),p.Mb=function(t){return T_n(this.b,this.a,f(t,42))},p.a=0,p.b=0,N(ba,"CompactionProcessor/lambda$1$Type",1925),P(1934,1,cr,KJe),p.Ne=function(t,i){return vvn(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$10$Type",1934),P(1935,1,cr,qJe),p.Ne=function(t,i){return N1n(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$11$Type",1935),P(1936,1,cr,XJe),p.Ne=function(t,i){return _vn(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$12$Type",1936),P(1926,1,sr,fot),p.Mb=function(t){return w1n(this.a,f(t,42))},p.a=0,N(ba,"CompactionProcessor/lambda$2$Type",1926),P(1927,1,sr,dot),p.Mb=function(t){return m1n(this.a,f(t,42))},p.a=0,N(ba,"CompactionProcessor/lambda$3$Type",1927),P(1928,1,sr,JJe),p.Mb=function(t){return f(t,40).c.indexOf(KU)==-1},N(ba,"CompactionProcessor/lambda$4$Type",1928),P(1929,1,{},hot),p.Kb=function(t){return I2n(this.a,f(t,40))},p.a=0,N(ba,"CompactionProcessor/lambda$5$Type",1929),P(1930,1,{},pot),p.Kb=function(t){return Fkn(this.a,f(t,40))},p.a=0,N(ba,"CompactionProcessor/lambda$6$Type",1930),P(1931,1,cr,bot),p.Ne=function(t,i){return JEn(this.a,f(t,240),f(i,240))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$7$Type",1931),P(1932,1,cr,got),p.Ne=function(t,i){return YEn(this.a,f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$8$Type",1932),P(1933,1,cr,YJe),p.Ne=function(t,i){return M1n(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(ba,"CompactionProcessor/lambda$9$Type",1933),P(1921,1,ni,QJe),p.Kf=function(t,i){P7n(f(t,121),i)},N(ba,"DirectionProcessor",1921),P(1913,1,ni,Bdt),p.Kf=function(t,i){eMn(this,f(t,121),i)},N(ba,"FanProcessor",1913),P(1937,1,ni,ZJe),p.Kf=function(t,i){v7n(f(t,121),i)},N(ba,"GraphBoundsProcessor",1937),P(1938,1,{},eYe),p.Ye=function(t){return f(t,40).e.a},N(ba,"GraphBoundsProcessor/lambda$0$Type",1938),P(1939,1,{},tYe),p.Ye=function(t){return f(t,40).e.b},N(ba,"GraphBoundsProcessor/lambda$1$Type",1939),P(1940,1,{},nYe),p.Ye=function(t){return egn(f(t,40))},N(ba,"GraphBoundsProcessor/lambda$2$Type",1940),P(1941,1,{},rYe),p.Ye=function(t){return Zbn(f(t,40))},N(ba,"GraphBoundsProcessor/lambda$3$Type",1941),P(262,22,{3:1,34:1,22:1,262:1,196:1},Sm),p.dg=function(){switch(this.g){case 0:return new glt;case 1:return new Bdt;case 2:return new blt;case 3:return new aYe;case 4:return new oYe;case 8:return new iYe;case 5:return new QJe;case 6:return new uYe;case 7:return new zJe;case 9:return new ZJe;case 10:return new fYe;default:throw ne(new hn(bie+(this.f!=null?this.f:""+this.g)))}};var FIe,BIe,WIe,HIe,UIe,GIe,VIe,zIe,KIe,qIe,cae,EFn=Wn(ba,gie,262,qn,Nyt,imn),cNt;P(1920,1,ni,iYe),p.Kf=function(t,i){OLn(f(t,121),i)},N(ba,"LevelCoordinatesProcessor",1920),P(1918,1,ni,oYe),p.Kf=function(t,i){eOn(this,f(t,121),i)},p.a=0,N(ba,"LevelHeightProcessor",1918),P(1919,1,Rp,sYe),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return qt(),Qx(),JA},N(ba,"LevelHeightProcessor/1",1919),P(1914,1,ni,blt),p.Kf=function(t,i){p7n(this,f(t,121),i)},N(ba,"LevelProcessor",1914),P(1915,1,sr,lYe),p.Mb=function(t){return wt(gt(V(f(t,40),(ei(),s0))))},N(ba,"LevelProcessor/lambda$0$Type",1915),P(1916,1,ni,aYe),p.Kf=function(t,i){YIn(this,f(t,121),i)},p.a=0,N(ba,"NeighborsProcessor",1916),P(1917,1,Rp,cYe),p.Jc=function(t){Vo(this,t)},p.Kc=function(){return qt(),Qx(),JA},N(ba,"NeighborsProcessor/1",1917),P(1922,1,ni,uYe),p.Kf=function(t,i){ZNn(this,f(t,121),i)},p.a=0,N(ba,"NodePositionProcessor",1922),P(1912,1,ni,glt),p.Kf=function(t,i){M9n(this,f(t,121),i)},N(ba,"RootProcessor",1912),P(1942,1,ni,fYe),p.Kf=function(t,i){I4n(f(t,121),i)},N(ba,"Untreeifyer",1942),P(392,22,{3:1,34:1,22:1,392:1},fQ);var m9,uae,XIe,JIe=Wn($M,"EdgeRoutingMode",392,qn,KSn,omn),uNt,y9,y4,fae,YIe,QIe,dae,hae,ZIe,pae,e5e,bae,d5,gae,QV,ZV,fd,Fd,v4,h5,p5,jg,t5e,fNt,wae,s0,v9,_9;P(862,1,Ef,lnt),p.hf=function(t){Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,aCe),""),h4t),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(cn(),!1)),(Cg(),po)),Li),Mt((Nd(),nn))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,cCe),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,uCe),""),"Tree Level"),"The index for the tree level the node is in"),ot(0)),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fCe),""),h4t),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),ot(-1)),bl),Ko),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,dCe),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),i5e),pi),g5e),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,hCe),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),n5e),pi),JIe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,pCe),""),"Search Order"),"Which search order to use when computing a spanning tree."),r5e),pi),m5e),Mt(nn)))),nCt((new unt,t))};var dNt,hNt,pNt,n5e,bNt,gNt,r5e,wNt,mNt,i5e;N($M,"MrTreeMetaDataProvider",862),P(1006,1,Ef,unt),p.hf=function(t){nCt(t)};var yNt,o5e,s5e,My,l5e,a5e,mae,vNt,_Nt,SNt,ENt,kNt,RNt,xNt,c5e,u5e,f5e,CNt,tE,ez,d5e,ANt,h5e,yae,TNt,$Nt,INt,p5e,PNt,ip,b5e;N($M,"MrTreeOptions",1006),P(1007,1,{},dYe),p.sf=function(){var t;return t=new Wdt,t},p.tf=function(t){},N($M,"MrTreeOptions/MrtreeFactory",1007),P(353,22,{3:1,34:1,22:1,353:1},MF);var vae,tz,_ae,Sae,g5e=Wn($M,"OrderWeighting",353,qn,tEn,smn),ONt;P(433,22,{3:1,34:1,22:1,433:1},Bwe);var w5e,Eae,m5e=Wn($M,"TreeifyingOrder",433,qn,J_n,lmn),NNt;P(1486,1,$s,fnt),p.rg=function(t){return f(t,121),MNt},p.Kf=function(t,i){fRn(this,f(t,121),i)};var MNt;N("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),P(1487,1,$s,dnt),p.rg=function(t){return f(t,121),DNt},p.Kf=function(t,i){m7n(this,f(t,121),i)};var DNt;N(LA,"NodeOrderer",1487),P(1494,1,{},jhn),p.td=function(t){return Kht(t)},N(LA,"NodeOrderer/0methodref$lambda$6$Type",1494),P(1488,1,sr,AYe),p.Mb=function(t){return p3(),wt(gt(V(f(t,40),(ei(),s0))))},N(LA,"NodeOrderer/lambda$0$Type",1488),P(1489,1,sr,TYe),p.Mb=function(t){return p3(),f(V(f(t,40),(Il(),tE)),17).a<0},N(LA,"NodeOrderer/lambda$1$Type",1489),P(1490,1,sr,mot),p.Mb=function(t){return B3n(this.a,f(t,40))},N(LA,"NodeOrderer/lambda$2$Type",1490),P(1491,1,sr,wot),p.Mb=function(t){return N2n(this.a,f(t,40))},N(LA,"NodeOrderer/lambda$3$Type",1491),P(1492,1,cr,$Ye),p.Ne=function(t,i){return c3n(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(LA,"NodeOrderer/lambda$4$Type",1492),P(1493,1,sr,IYe),p.Mb=function(t){return p3(),f(V(f(t,40),(ei(),hae)),17).a!=0},N(LA,"NodeOrderer/lambda$5$Type",1493),P(1495,1,$s,cnt),p.rg=function(t){return f(t,121),LNt},p.Kf=function(t,i){xNn(this,f(t,121),i)},p.b=0;var LNt;N("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),P(1496,1,$s,ant),p.rg=function(t){return f(t,121),jNt},p.Kf=function(t,i){aNn(f(t,121),i)};var jNt,kFn=N(lu,"EdgeRouter",1496);P(1498,1,cr,CYe),p.Ne=function(t,i){return Xl(f(t,17).a,f(i,17).a)},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/0methodref$compare$Type",1498),P(1503,1,{},pYe),p.Ye=function(t){return Ae(je(t))},N(lu,"EdgeRouter/1methodref$doubleValue$Type",1503),P(1505,1,cr,bYe),p.Ne=function(t,i){return Qr(Ae(je(t)),Ae(je(i)))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/2methodref$compare$Type",1505),P(1507,1,cr,gYe),p.Ne=function(t,i){return Qr(Ae(je(t)),Ae(je(i)))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/3methodref$compare$Type",1507),P(1509,1,{},hYe),p.Ye=function(t){return Ae(je(t))},N(lu,"EdgeRouter/4methodref$doubleValue$Type",1509),P(1511,1,cr,wYe),p.Ne=function(t,i){return Qr(Ae(je(t)),Ae(je(i)))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/5methodref$compare$Type",1511),P(1513,1,cr,mYe),p.Ne=function(t,i){return Qr(Ae(je(t)),Ae(je(i)))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/6methodref$compare$Type",1513),P(1497,1,{},yYe),p.Kb=function(t){return mb(),f(V(f(t,40),(Il(),ip)),17)},N(lu,"EdgeRouter/lambda$0$Type",1497),P(1508,1,{},vYe),p.Kb=function(t){return q1n(f(t,40))},N(lu,"EdgeRouter/lambda$11$Type",1508),P(1510,1,{},eut),p.Kb=function(t){return Syn(this.b,this.a,f(t,40))},p.a=0,p.b=0,N(lu,"EdgeRouter/lambda$13$Type",1510),P(1512,1,{},tut),p.Kb=function(t){return X1n(this.b,this.a,f(t,40))},p.a=0,p.b=0,N(lu,"EdgeRouter/lambda$15$Type",1512),P(1514,1,cr,_Ye),p.Ne=function(t,i){return l4n(f(t,65),f(i,65))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$17$Type",1514),P(1515,1,cr,SYe),p.Ne=function(t,i){return a4n(f(t,65),f(i,65))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$18$Type",1515),P(1516,1,cr,EYe),p.Ne=function(t,i){return u4n(f(t,65),f(i,65))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$19$Type",1516),P(1499,1,sr,yot),p.Mb=function(t){return fSn(this.a,f(t,40))},p.a=0,N(lu,"EdgeRouter/lambda$2$Type",1499),P(1517,1,cr,kYe),p.Ne=function(t,i){return c4n(f(t,65),f(i,65))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$20$Type",1517),P(1500,1,cr,RYe),p.Ne=function(t,i){return ayn(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$3$Type",1500),P(1501,1,cr,xYe),p.Ne=function(t,i){return cyn(f(t,40),f(i,40))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"EdgeRouter/lambda$4$Type",1501),P(1502,1,{},PYe),p.Kb=function(t){return J1n(f(t,40))},N(lu,"EdgeRouter/lambda$5$Type",1502),P(1504,1,{},nut),p.Kb=function(t){return Eyn(this.b,this.a,f(t,40))},p.a=0,p.b=0,N(lu,"EdgeRouter/lambda$7$Type",1504),P(1506,1,{},rut),p.Kb=function(t){return Y1n(this.b,this.a,f(t,40))},p.a=0,p.b=0,N(lu,"EdgeRouter/lambda$9$Type",1506),P(675,1,{675:1},MSt),p.e=0,p.f=!1,p.g=!1,N(lu,"MultiLevelEdgeNodeNodeGap",675),P(1943,1,cr,OYe),p.Ne=function(t,i){return _Sn(f(t,240),f(i,240))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),P(1944,1,cr,NYe),p.Ne=function(t,i){return SSn(f(t,240),f(i,240))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(lu,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var nE;P(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},Wwe),p.dg=function(){return __t(this)},p.qg=function(){return __t(this)};var nz,rE,y5e=Wn(bCe,"RadialLayoutPhases",501,qn,U_n,amn),FNt;P(1113,205,_w,dat),p.rf=function(t,i){var s,a,c,b,g,m;if(s=s3t(this,t),i.Ug("Radial layout",s.c.length),wt(gt(Qe(t,(H1(),$5e))))||N7((a=new QT((_m(),new hm(t))),a)),m=d6n(t),zr(t,(JS(),nE),m),!m)throw ne(new hn("The given graph is not a tree!"));for(c=Ae(je(Qe(t,oz))),c==0&&(c=BEt(t)),zr(t,oz,c),g=new ee(s3t(this,t));g.a=3)for(Ze=f(Se(Ce,0),27),ut=f(Se(Ce,1),27),b=0;b+2=Ze.f+ut.f+I||ut.f>=Ke.f+Ze.f+I){Dt=!0;break}else++b;else Dt=!0;if(!Dt){for(W=Ce.i,m=new Sn(Ce);m.e!=m.i.gc();)g=f(Cn(m),27),zr(g,(Er(),M9),ot(W)),--W;DRt(t,new Ok),i.Vg();return}for(s=(T7(this.a),Cd(this.a,(uH(),E9),f(Qe(t,o8e),188)),Cd(this.a,sz,f(Qe(t,Z5e),188)),Cd(this.a,Mae,f(Qe(t,n8e),188)),ome(this.a,(ln=new Ki,gr(ln,E9,(_H(),jae)),gr(ln,sz,Lae),wt(gt(Qe(t,Y5e)))&&gr(ln,E9,Dae),ln)),tM(this.a,t)),k=1/s.c.length,z=new ee(s);z.a0&&Vvt((pn(i-1,t.length),t.charCodeAt(i-1)),PAt);)--i;if(a>=i)throw ne(new hn("The given string does not contain any numbers."));if(c=d_((Mo(a,i,t.length),t.substr(a,i-a)),`,|;|\r| +`),c.length!=2)throw ne(new hn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=o_(s_(c[0])),this.b=o_(s_(c[1]))}catch(b){throw b=mi(b),ve(b,130)?(s=b,ne(new hn(OAt+s))):ne(b)}},p.Ib=function(){return"("+this.a+","+this.b+")"},p.a=0,p.b=0;var wo=N(RM,"KVector",8);P(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},cc,aF,udt),p.Pc=function(){return Axn(this)},p.cg=function(t){var i,s,a,c,b,g;a=d_(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),wu(this);try{for(s=0,b=0,c=0,g=0;s0&&(b%2==0?c=o_(a[s]):g=o_(a[s]),b>0&&b%2!=0&&hr(this,new tt(c,g)),++b),++s}catch(m){throw m=mi(m),ve(m,130)?(i=m,ne(new hn("The given string does not match the expected format for vectors."+i))):ne(m)}},p.Ib=function(){var t,i,s;for(t=new gu("("),i=Hn(this,0);i.b!=i.d.c;)s=f(Bn(i),8),br(t,s.a+","+s.b),i.b!=i.d.c&&(t.a+="; ");return(t.a+=")",t).a};var H8e=N(RM,"KVectorChain",75);P(255,22,{3:1,34:1,22:1,255:1},k$);var ice,gz,wz,A9,T9,mz,U8e=Wn(Kc,"Alignment",255,qn,Rkn,Pmn),y9t;P(991,1,Ef,_nt),p.hf=function(t){yRt(t)};var G8e,oce,v9t,V8e,z8e,_9t,K8e,S9t,E9t,q8e,X8e,k9t;N(Kc,"BoxLayouterOptions",991),P(992,1,{},HQe),p.sf=function(){var t;return t=new VQe,t},p.tf=function(t){},N(Kc,"BoxLayouterOptions/BoxFactory",992),P(298,22,{3:1,34:1,22:1,298:1},R$);var S5,sce,E5,k5,R5,lce,ace=Wn(Kc,"ContentAlignment",298,qn,xkn,Omn),R9t;P(699,1,Ef,F1e),p.hf=function(t){Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,N4t),""),"Layout Algorithm"),"Select a specific layout algorithm."),(Cg(),oE)),_t),Mt((Nd(),nn))))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,M4t),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),bh),CFn),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,jxe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),J8e),pi),U8e),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,j3),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,YCe),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),bh),H8e),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,HU),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Q8e),sR),ace),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,TM),""),"Debug Mode"),"Whether additional debug information shall be generated."),(cn(),!1)),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,zie),""),mRe),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Z8e),pi),C5),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,AM),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),nPe),pi),Sce),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,XCe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,WU),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),oPe),pi),VPe),ii(nn,se(ie(Mp,1),Je,170,0,[lo]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fy),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),pPe),bh),bTe),ii(nn,se(ie(Mp,1),Je,170,0,[lo]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,uI),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,GU),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fI),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,die),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),yPe),pi),qPe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,UU),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),bh),wo),ii(lo,se(ie(Mp,1),Je,170,0,[Bw,Fg]))))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,yM),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),bl),Ko),ii(lo,se(ie(Mp,1),Je,170,0,[op]))))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,EU),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,cI),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Xxe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),sPe),bh),H8e),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Qxe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Zxe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,eFn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),bh),PFn),ii(nn,se(ie(Mp,1),Je,170,0,[Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,tCe),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),lPe),bh),pTe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Dxe),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),po),Li),ii(lo,se(ie(Mp,1),Je,170,0,[op,Bw,Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,D4t),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),es),Qi),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,L4t),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,j4t),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,vM),""),T4t),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),po),Li),Mt(nn)))),qi(t,vM,dy,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,F4t),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,B4t),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),ot(100)),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,W4t),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,H4t),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),ot(4e3)),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,U4t),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),ot(400)),bl),Ko),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,G4t),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,V4t),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,z4t),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,K4t),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,JCe),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Y8e),pi),iOe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Rxe),uh),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,xxe),uh),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,oie),uh),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Cxe),uh),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,fie),uh),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Vie),uh),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Axe),uh),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Ixe),uh),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Txe),uh),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,$xe),uh),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,m_),uh),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Pxe),uh),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),es),Qi),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Oxe),uh),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),es),Qi),ii(nn,se(ie(Mp,1),Je,170,0,[lo]))))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Nxe),uh),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),bh),dDt),ii(lo,se(ie(Mp,1),Je,170,0,[op,Bw,Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,nCe),uh),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),$Pe),bh),pTe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,qie),J4t),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),bl),Ko),ii(nn,se(ie(Mp,1),Je,170,0,[lo]))))),qi(t,qie,Kie,N9t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Kie),J4t),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),bPe),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Wxe),Y4t),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),cPe),bh),bTe),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,NA),Y4t),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),uPe),sR),Ps),ii(lo,se(ie(Mp,1),Je,170,0,[Fg]))))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Gxe),eG),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),wPe),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Vxe),eG),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,zxe),eG),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Kxe),eG),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,qxe),eG),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),pi),I5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,A2),goe),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),fPe),sR),N5),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,F3),goe),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),hPe),sR),JPe),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,B3),goe),"Node Size Minimum"),"The minimal size to which a node can be reduced."),dPe),bh),wo),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,OA),goe),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),po),Li),Mt(nn)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Jxe),Gie),"Edge Label Placement"),"Gives a hint on where to put edge labels."),ePe),pi),OPe),Mt(Fg)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,kU),Gie),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),po),Li),Mt(Fg)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,tFn),"font"),"Font Name"),"Font name used for a label."),oE),_t),Mt(Fg)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,q4t),"font"),"Font Size"),"Font size used for a label."),bl),Ko),Mt(Fg)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,eCe),woe),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),bh),wo),Mt(Bw)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Yxe),woe),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),bl),Ko),Mt(Bw)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Lxe),woe),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),SPe),pi),vs),Mt(Bw)))),Ot(t,new Rt(It($t(Pt(xt(Tt(Ct(At(new kt,Mxe),woe),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),es),Qi),Mt(Bw)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,MA),eAe),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),vPe),sR),kz),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Hxe),eAe),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Uxe),eAe),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,_M),PM),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),es),Qi),Mt(nn)))),qi(t,_M,dy,H9t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,QCe),PM),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),pi),$z),Mt(lo)))),qi(t,QCe,dy,U9t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,SM),PM),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),es),Qi),ii(nn,se(ie(Mp,1),Je,170,0,[lo]))))),qi(t,SM,dy,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,EM),PM),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),es),Qi),ii(nn,se(ie(Mp,1),Je,170,0,[lo]))))),qi(t,EM,dy,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,dy),PM),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),pi),QPe),Mt(lo)))),qi(t,dy,OA,null),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,ZCe),PM),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),es),Qi),Mt(nn)))),qi(t,ZCe,dy,W9t),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Fxe),Q4t),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),po),Li),Mt(lo)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,Bxe),Q4t),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),po),Li),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,sie),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),es),Qi),Mt(op)))),Ot(t,new Rt(It($t(Pt(Ut(xt(Tt(Ct(At(new kt,X4t),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),iPe),pi),FPe),Mt(op)))),p$(t,new l3(c$(Kx(zx(new Ak,vn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),p$(t,new l3(c$(Kx(zx(new Ak,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),p$(t,new l3(c$(Kx(zx(new Ak,Ba),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),p$(t,new l3(c$(Kx(zx(new Ak,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),p$(t,new l3(c$(Kx(zx(new Ak,p4t),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),p$(t,new l3(c$(Kx(zx(new Ak,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),p$(t,new l3(c$(Kx(zx(new Ak,rf),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),iRt((new Snt,t)),yRt((new _nt,t)),P3t((new Ent,t))};var S4,x9t,J8e,sE,C9t,A9t,Y8e,lE,aE,T9t,$9,Q8e,I9,Ww,Z8e,cce,uce,ePe,tPe,nPe,rPe,iPe,$9t,cE,oPe,I9t,P9,fce,O9,dce,Dy,sPe,E4,lPe,aPe,cPe,uE,uPe,Hw,fPe,V_,fE,dPe,l0,hPe,yz,N9,Bg,pPe,P9t,bPe,O9t,N9t,gPe,wPe,hce,pce,bce,gce,mPe,qc,x5,yPe,wce,mce,z_,vPe,_Pe,dE,SPe,lR,M9,yce,hE,M9t,vce,D9t,L9t,EPe,j9t,kPe,RPe,aR,xPe,vz,CPe,APe,Uw,F9t,TPe,$Pe,IPe,_z,D9,k4,cR,B9t,W9t,Sz,H9t,PPe,U9t;N(Kc,"CoreOptions",699),P(88,22,{3:1,34:1,22:1,88:1},i7);var gh,Js,al,wh,cf,C5=Wn(Kc,mRe,88,qn,$En,Nmn),G9t;P(278,22,{3:1,34:1,22:1,278:1},yQ);var R4,K_,x4,OPe=Wn(Kc,"EdgeLabelPlacement",278,qn,o2n,Mmn),V9t;P(223,22,{3:1,34:1,22:1,223:1},LF);var C4,L9,uR,_ce,Sce=Wn(Kc,"EdgeRouting",223,qn,oEn,Dmn),z9t;P(321,22,{3:1,34:1,22:1,321:1},x$);var NPe,MPe,DPe,LPe,Ece,jPe,FPe=Wn(Kc,"EdgeType",321,qn,kkn,Lmn),K9t;P(989,1,Ef,Snt),p.hf=function(t){iRt(t)};var BPe,WPe,HPe,UPe,q9t,GPe,A5;N(Kc,"FixedLayouterOptions",989),P(990,1,{},UQe),p.sf=function(){var t;return t=new eZe,t},p.tf=function(t){},N(Kc,"FixedLayouterOptions/FixedFactory",990),P(346,22,{3:1,34:1,22:1,346:1},vQ);var Wg,Ez,T5,VPe=Wn(Kc,"HierarchyHandling",346,qn,r2n,jmn),X9t;P(291,22,{3:1,34:1,22:1,291:1},jF);var Dp,a0,j9,F9,J9t=Wn(Kc,"LabelSide",291,qn,iEn,Fmn),Y9t;P(95,22,{3:1,34:1,22:1,95:1},jS);var Nb,dd,Tf,hd,Iu,pd,$f,Lp,bd,Ps=Wn(Kc,"NodeLabelPlacement",95,qn,R3n,Bmn),Q9t;P(256,22,{3:1,34:1,22:1,256:1},o7);var zPe,$5,c0,KPe,B9,I5=Wn(Kc,"PortAlignment",256,qn,VEn,Wmn),Z9t;P(101,22,{3:1,34:1,22:1,101:1},C$);var Gw,ya,jp,A4,mh,u0,qPe=Wn(Kc,"PortConstraints",101,qn,Ekn,Hmn),eDt;P(279,22,{3:1,34:1,22:1,279:1},A$);var P5,O5,Mb,W9,f0,fR,kz=Wn(Kc,"PortLabelPlacement",279,qn,Skn,Umn),tDt;P(64,22,{3:1,34:1,22:1,64:1},s7);var _n,bn,uf,ff,ec,Ua,yh,gd,Oc,vc,va,Nc,tc,nc,wd,Pu,Ou,If,jn,Cl,wn,vs=Wn(Kc,"PortSide",64,qn,IEn,Gmn),nDt;P(993,1,Ef,Ent),p.hf=function(t){P3t(t)};var rDt,iDt,XPe,oDt,sDt;N(Kc,"RandomLayouterOptions",993),P(994,1,{},GQe),p.sf=function(){var t;return t=new YQe,t},p.tf=function(t){},N(Kc,"RandomLayouterOptions/RandomFactory",994),P(386,22,{3:1,34:1,22:1,386:1},FF);var q_,H9,U9,Vw,N5=Wn(Kc,"SizeConstraint",386,qn,rEn,Vmn),lDt;P(264,22,{3:1,34:1,22:1,264:1},FS);var G9,Rz,T4,kce,V9,M5,xz,Cz,Az,JPe=Wn(Kc,"SizeOptions",264,qn,L3n,zmn),aDt;P(280,22,{3:1,34:1,22:1,280:1},_Q);var X_,YPe,Tz,QPe=Wn(Kc,"TopdownNodeTypes",280,qn,s2n,Kmn),cDt;P(347,22,tAe);var ZPe,eOe,$z=Wn(Kc,"TopdownSizeApproximator",347,qn,tSn,Xmn);P(987,347,tAe,zht),p.Tg=function(t){return SSt(t)},Wn(Kc,"TopdownSizeApproximator/1",987,$z,null,null),P(988,347,tAe,Ipt),p.Tg=function(t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt,ln;for(i=f(Qe(t,(Er(),hE)),143),ut=(v1(),U=new r$,U),VN(ut,t),Dt=new Fn,b=new Sn((!t.a&&(t.a=new qe($r,t,10,11)),t.a));b.e!=b.i.gc();)a=f(Cn(b),27),_e=(W=new r$,W),VH(_e,ut),VN(_e,a),ln=SSt(a),GS(_e,h.Math.max(a.g,ln.a),h.Math.max(a.f,ln.b)),Ca(Dt.f,a,_e);for(c=new Sn((!t.a&&(t.a=new qe($r,t,10,11)),t.a));c.e!=c.i.gc();)for(a=f(Cn(c),27),I=new Sn((!a.e&&(a.e=new en(Fi,a,7,4)),a.e));I.e!=I.i.gc();)k=f(Cn(I),74),Ke=f(tl(xs(Dt.f,a)),27),Ze=f(En(Dt,Se((!k.c&&(k.c=new en(Dn,k,5,8)),k.c),0)),27),Ce=(D=new QJ,D),zn((!Ce.b&&(Ce.b=new en(Dn,Ce,4,7)),Ce.b),Ke),zn((!Ce.c&&(Ce.c=new en(Dn,Ce,5,8)),Ce.c),Ze),GH(Ce,di(Ke)),VN(Ce,k);X=f(O7(i.f),205);try{X.rf(ut,new rZe),abt(i.f,X)}catch(an){throw an=mi(an),ve(an,103)?(z=an,ne(z)):ne(an)}return eh(ut,aE)||eh(ut,lE)||W3e(ut),_=Ae(je(Qe(ut,aE))),m=Ae(je(Qe(ut,lE))),g=_/m,s=Ae(je(Qe(ut,D9)))*h.Math.sqrt((!ut.a&&(ut.a=new qe($r,ut,10,11)),ut.a).i),Nt=f(Qe(ut,Bg),107),ge=Nt.b+Nt.c+1,oe=Nt.d+Nt.a+1,new tt(h.Math.max(ge,s),h.Math.max(oe,s/g))},Wn(Kc,"TopdownSizeApproximator/2",988,$z,null,null);var uDt;P(344,1,{871:1},Ok),p.Ug=function(t,i){return M2t(this,t,i)},p.Vg=function(){iEt(this)},p.Wg=function(){return this.q},p.Xg=function(){return this.f?DZ(this.f):null},p.Yg=function(){return DZ(this.a)},p.Zg=function(){return this.p},p.$g=function(){return!1},p._g=function(){return this.n},p.ah=function(){return this.p!=null&&!this.b},p.bh=function(t){var i;this.n&&(i=t,lt(this.f,i))},p.dh=function(t,i){var s,a;this.n&&t&&_2n(this,(s=new Upt,a=Bne(s,t),nLn(s),a),(JW(),xce))},p.eh=function(t){var i;return this.b?null:(i=s3n(this,this.g),hr(this.a,i),i.i=this,this.d=t,i)},p.fh=function(t){t>0&&!this.b&&iSe(this,t)},p.b=!1,p.c=0,p.d=-1,p.e=null,p.f=null,p.g=-1,p.j=!1,p.k=!1,p.n=!1,p.o=0,p.q=0,p.r=0,N(Ol,"BasicProgressMonitor",344),P(717,205,_w,VQe),p.rf=function(t,i){DRt(t,i)},N(Ol,"BoxLayoutProvider",717),P(983,1,cr,Iot),p.Ne=function(t,i){return nOn(this,f(t,27),f(i,27))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},p.a=!1,N(Ol,"BoxLayoutProvider/1",983),P(163,1,{163:1},CW,gdt),p.Ib=function(){return this.c?r3e(this.c):B1(this.b)},N(Ol,"BoxLayoutProvider/Group",163),P(320,22,{3:1,34:1,22:1,320:1},BF);var tOe,nOe,rOe,Rce,iOe=Wn(Ol,"BoxLayoutProvider/PackingMode",320,qn,sEn,Jmn),fDt;P(984,1,cr,zQe),p.Ne=function(t,i){return __n(f(t,163),f(i,163))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ol,"BoxLayoutProvider/lambda$0$Type",984),P(985,1,cr,KQe),p.Ne=function(t,i){return h_n(f(t,163),f(i,163))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ol,"BoxLayoutProvider/lambda$1$Type",985),P(986,1,cr,qQe),p.Ne=function(t,i){return p_n(f(t,163),f(i,163))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(Ol,"BoxLayoutProvider/lambda$2$Type",986),P(1384,1,{845:1},XQe),p.Mg=function(t,i){return wF(),!ve(i,167)||wat((g3(),f(t,167)),i)},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),P(1385,1,Rn,Pot),p.Cd=function(t){Ixn(this.a,f(t,149))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),P(1386,1,Rn,QQe),p.Cd=function(t){f(t,96),wF()},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),P(1390,1,Rn,Oot),p.Cd=function(t){Z3n(this.a,f(t,96))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),P(1388,1,sr,lut),p.Mb=function(t){return dxn(this.a,this.b,f(t,149))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),P(1387,1,sr,aut),p.Mb=function(t){return K1n(this.a,this.b,f(t,845))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),P(1389,1,Rn,cut),p.Cd=function(t){svn(this.a,this.b,f(t,149))},N(Ol,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),P(947,1,{},ZQe),p.Kb=function(t){return ift(t)},p.Fb=function(t){return this===t},N(Ol,"ElkUtil/lambda$0$Type",947),P(948,1,Rn,uut),p.Cd=function(t){o8n(this.a,this.b,f(t,74))},p.a=0,p.b=0,N(Ol,"ElkUtil/lambda$1$Type",948),P(949,1,Rn,fut),p.Cd=function(t){Jpn(this.a,this.b,f(t,166))},p.a=0,p.b=0,N(Ol,"ElkUtil/lambda$2$Type",949),P(950,1,Rn,dut),p.Cd=function(t){Vgn(this.a,this.b,f(t,135))},p.a=0,p.b=0,N(Ol,"ElkUtil/lambda$3$Type",950),P(951,1,Rn,Not),p.Cd=function(t){Cyn(this.a,f(t,377))},N(Ol,"ElkUtil/lambda$4$Type",951),P(325,1,{34:1,325:1},xpn),p.Fd=function(t){return v1n(this,f(t,242))},p.Fb=function(t){var i;return ve(t,325)?(i=f(t,325),this.a==i.a):!1},p.Hb=function(){return oo(this.a)},p.Ib=function(){return this.a+" (exclusive)"},p.a=0,N(Ol,"ExclusiveBounds/ExclusiveLowerBound",325),P(1119,205,_w,eZe),p.rf=function(t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge,_e,Ce,Ke,Ze,ut,Dt,Nt;for(i.Ug("Fixed Layout",1),b=f(Qe(t,(Er(),tPe)),223),D=0,W=0,_e=new Sn((!t.a&&(t.a=new qe($r,t,10,11)),t.a));_e.e!=_e.i.gc();){for(oe=f(Cn(_e),27),Nt=f(Qe(oe,(YW(),A5)),8),Nt&&(Wu(oe,Nt.a,Nt.b),f(Qe(oe,WPe),181).Hc((su(),q_))&&(U=f(Qe(oe,UPe),8),U.a>0&&U.b>0&&ly(oe,U.a,U.b,!0,!0))),D=h.Math.max(D,oe.i+oe.g),W=h.Math.max(W,oe.j+oe.f),k=new Sn((!oe.n&&(oe.n=new qe(Fs,oe,1,7)),oe.n));k.e!=k.i.gc();)m=f(Cn(k),135),Nt=f(Qe(m,A5),8),Nt&&Wu(m,Nt.a,Nt.b),D=h.Math.max(D,oe.i+m.i+m.g),W=h.Math.max(W,oe.j+m.j+m.f);for(Ze=new Sn((!oe.c&&(oe.c=new qe(Mc,oe,9,9)),oe.c));Ze.e!=Ze.i.gc();)for(Ke=f(Cn(Ze),123),Nt=f(Qe(Ke,A5),8),Nt&&Wu(Ke,Nt.a,Nt.b),ut=oe.i+Ke.i,Dt=oe.j+Ke.j,D=h.Math.max(D,ut+Ke.g),W=h.Math.max(W,Dt+Ke.f),_=new Sn((!Ke.n&&(Ke.n=new qe(Fs,Ke,1,7)),Ke.n));_.e!=_.i.gc();)m=f(Cn(_),135),Nt=f(Qe(m,A5),8),Nt&&Wu(m,Nt.a,Nt.b),D=h.Math.max(D,ut+m.i+m.g),W=h.Math.max(W,Dt+m.j+m.f);for(c=new kn(xn(Rb(oe).a.Kc(),new O));Un(c);)s=f(On(c),74),I=Jxt(s),D=h.Math.max(D,I.a),W=h.Math.max(W,I.b);for(a=new kn(xn(GN(oe).a.Kc(),new O));Un(a);)s=f(On(a),74),di(Sp(s))!=t&&(I=Jxt(s),D=h.Math.max(D,I.a),W=h.Math.max(W,I.b))}if(b==(_b(),C4))for(ge=new Sn((!t.a&&(t.a=new qe($r,t,10,11)),t.a));ge.e!=ge.i.gc();)for(oe=f(Cn(ge),27),a=new kn(xn(Rb(oe).a.Kc(),new O));Un(a);)s=f(On(a),74),g=lMn(s),g.b==0?zr(s,Dy,null):zr(s,Dy,g);wt(gt(Qe(t,(YW(),HPe))))||(Ce=f(Qe(t,q9t),107),X=D+Ce.b+Ce.c,z=W+Ce.d+Ce.a,ly(t,X,z,!0,!0)),i.Vg()},N(Ol,"FixedLayoutProvider",1119),P(385,137,{3:1,423:1,385:1,96:1,137:1},YJ,qwt),p.cg=function(t){var i,s,a,c,b,g,m,_,k;if(t)try{for(_=d_(t,";,;"),b=_,g=0,m=b.length;g>16&Ji|i^a<<16},p.Kc=function(){return new Mot(this)},p.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+dl(this.b)+")":this.b==null?"pair("+dl(this.a)+",null)":"pair("+dl(this.a)+","+dl(this.b)+")"},N(Ol,"Pair",42),P(995,1,ko,Mot),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},p.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw ne(new yl)},p.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),ne(new ac)},p.b=!1,p.c=!1,N(Ol,"Pair/1",995),P(455,1,{455:1},kbt),p.Fb=function(t){return Ul(this.a,f(t,455).a)&&Ul(this.c,f(t,455).c)&&Ul(this.d,f(t,455).d)&&Ul(this.b,f(t,455).b)},p.Hb=function(){return wN(se(ie(ho,1),on,1,5,[this.a,this.c,this.d,this.b]))},p.Ib=function(){return"("+this.a+ds+this.c+ds+this.d+ds+this.b+")"},N(Ol,"Quadruple",455),P(1108,205,_w,YQe),p.rf=function(t,i){var s,a,c,b,g;if(i.Ug("Random Layout",1),(!t.a&&(t.a=new qe($r,t,10,11)),t.a).i==0){i.Vg();return}b=f(Qe(t,(P2e(),oDt)),17),b&&b.a!=0?c=new sW(b.a):c=new Ete,s=LO(je(Qe(t,rDt))),g=LO(je(Qe(t,sDt))),a=f(Qe(t,iDt),107),RLn(t,c,s,g,a),i.Vg()},N(Ol,"RandomLayoutProvider",1108),P(240,1,{240:1},YQ),p.Fb=function(t){return Ul(this.a,f(t,240).a)&&Ul(this.b,f(t,240).b)&&Ul(this.c,f(t,240).c)},p.Hb=function(){return wN(se(ie(ho,1),on,1,5,[this.a,this.b,this.c]))},p.Ib=function(){return"("+this.a+ds+this.b+ds+this.c+")"},N(Ol,"Triple",240);var bDt;P(562,1,{}),p.Lf=function(){return new tt(this.f.i,this.f.j)},p.of=function(t){return Qbt(t,(Er(),qc))?Qe(this.f,gDt):Qe(this.f,t)},p.Mf=function(){return new tt(this.f.g,this.f.f)},p.Nf=function(){return this.g},p.pf=function(t){return eh(this.f,t)},p.Of=function(t){Da(this.f,t.a),La(this.f,t.b)},p.Pf=function(t){zm(this.f,t.a),Vm(this.f,t.b)},p.Qf=function(t){this.g=t},p.g=0;var gDt;N(vI,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),P(563,1,{853:1},Xj),p.Rf=function(){var t,i;if(!this.b)for(this.b=nW(FB(this.a).i),i=new Sn(FB(this.a));i.e!=i.i.gc();)t=f(Cn(i),135),lt(this.b,new CY(t));return this.b},p.b=null,N(vI,"ElkGraphAdapters/ElkEdgeAdapter",563),P(289,562,{},hm),p.Sf=function(){return GSt(this)},p.a=null,N(vI,"ElkGraphAdapters/ElkGraphAdapter",289),P(640,562,{187:1},CY),N(vI,"ElkGraphAdapters/ElkLabelAdapter",640),P(639,562,{695:1},MQ),p.Rf=function(){return dTn(this)},p.Vf=function(){var t;return t=f(Qe(this.f,(Er(),E4)),140),!t&&(t=new n$),t},p.Xf=function(){return hTn(this)},p.Zf=function(t){var i;i=new ZQ(t),zr(this.f,(Er(),E4),i)},p.$f=function(t){zr(this.f,(Er(),Bg),new Sye(t))},p.Tf=function(){return this.d},p.Uf=function(){var t,i;if(!this.a)for(this.a=new st,i=new kn(xn(GN(f(this.f,27)).a.Kc(),new O));Un(i);)t=f(On(i),74),lt(this.a,new Xj(t));return this.a},p.Wf=function(){var t,i;if(!this.c)for(this.c=new st,i=new kn(xn(Rb(f(this.f,27)).a.Kc(),new O));Un(i);)t=f(On(i),74),lt(this.c,new Xj(t));return this.c},p.Yf=function(){return GB(f(this.f,27)).i!=0||wt(gt(f(this.f,27).of((Er(),P9))))},p._f=function(){Vkn(this,(_m(),bDt))},p.a=null,p.b=null,p.c=null,p.d=null,p.e=null,N(vI,"ElkGraphAdapters/ElkNodeAdapter",639),P(1284,562,{852:1},Dot),p.Rf=function(){return _Tn(this)},p.Uf=function(){var t,i;if(!this.a)for(this.a=pp(f(this.f,123).hh().i),i=new Sn(f(this.f,123).hh());i.e!=i.i.gc();)t=f(Cn(i),74),lt(this.a,new Xj(t));return this.a},p.Wf=function(){var t,i;if(!this.c)for(this.c=pp(f(this.f,123).ih().i),i=new Sn(f(this.f,123).ih());i.e!=i.i.gc();)t=f(Cn(i),74),lt(this.c,new Xj(t));return this.c},p.ag=function(){return f(f(this.f,123).of((Er(),dE)),64)},p.bg=function(){var t,i,s,a,c,b,g,m;for(a=Xd(f(this.f,123)),s=new Sn(f(this.f,123).ih());s.e!=s.i.gc();)for(t=f(Cn(s),74),m=new Sn((!t.c&&(t.c=new en(Dn,t,5,8)),t.c));m.e!=m.i.gc();){if(g=f(Cn(m),84),Xv(sl(g),a))return!0;if(sl(g)==a&&wt(gt(Qe(t,(Er(),fce)))))return!0}for(i=new Sn(f(this.f,123).hh());i.e!=i.i.gc();)for(t=f(Cn(i),74),b=new Sn((!t.b&&(t.b=new en(Dn,t,4,7)),t.b));b.e!=b.i.gc();)if(c=f(Cn(b),84),Xv(sl(c),a))return!0;return!1},p.a=null,p.b=null,p.c=null,N(vI,"ElkGraphAdapters/ElkPortAdapter",1284),P(1285,1,cr,JQe),p.Ne=function(t,i){return Z7n(f(t,123),f(i,123))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(vI,"ElkGraphAdapters/PortComparator",1285);var d0=Ei(of,"EObject"),$4=Ei(I2,tTt),Nu=Ei(I2,nTt),z9=Ei(I2,rTt),K9=Ei(I2,"ElkShape"),Dn=Ei(I2,iTt),Fi=Ei(I2,nAe),ai=Ei(I2,oTt),q9=Ei(of,sTt),D5=Ei(of,"EFactory"),wDt,Cce=Ei(of,lTt),Bd=Ei(of,"EPackage"),_o,mDt,yDt,aOe,Iz,vDt,cOe,uOe,fOe,Fp,_Dt,SDt,Fs=Ei(I2,rAe),$r=Ei(I2,iAe),Mc=Ei(I2,oAe);P(93,1,aTt),p.th=function(){return this.uh(),null},p.uh=function(){return null},p.vh=function(){return this.uh(),!1},p.wh=function(){return!1},p.xh=function(t){Dr(this,t)},N(U3,"BasicNotifierImpl",93),P(99,93,dTt),p.Yh=function(){return eu(this)},p.yh=function(t,i){return t},p.zh=function(){throw ne(new rr)},p.Ah=function(t){var i;return i=Es(f(tn(this.Dh(),this.Fh()),19)),this.Ph().Th(this,i.n,i.f,t)},p.Bh=function(t,i){throw ne(new rr)},p.Ch=function(t,i,s){return xu(this,t,i,s)},p.Dh=function(){var t;return this.zh()&&(t=this.zh().Nk(),t)?t:this.ii()},p.Eh=function(){return Ene(this)},p.Fh=function(){throw ne(new rr)},p.Gh=function(){var t,i;return i=this.$h().Ok(),!i&&this.zh().Tk(i=(g$(),t=Mve(Gh(this.Dh())),t==null?Mce:new f7(this,t))),i},p.Hh=function(t,i){return t},p.Ih=function(t){var i;return i=t.pk(),i?t.Lj():yi(this.Dh(),t)},p.Jh=function(){var t;return t=this.zh(),t?t.Qk():null},p.Kh=function(){return this.zh()?this.zh().Nk():null},p.Lh=function(t,i,s){return yH(this,t,i,s)},p.Mh=function(t){return EC(this,t)},p.Nh=function(t,i){return aee(this,t,i)},p.Oh=function(){var t;return t=this.zh(),!!t&&t.Rk()},p.Ph=function(){throw ne(new rr)},p.Qh=function(){return dH(this)},p.Rh=function(t,i,s,a){return S3(this,t,i,a)},p.Sh=function(t,i,s){var a;return a=f(tn(this.Dh(),i),69),a.wk().zk(this,this.hi(),i-this.ji(),t,s)},p.Th=function(t,i,s,a){return qB(this,t,i,a)},p.Uh=function(t,i,s){var a;return a=f(tn(this.Dh(),i),69),a.wk().Ak(this,this.hi(),i-this.ji(),t,s)},p.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},p.Wh=function(t){return Nte(this,t)},p.Xh=function(t){return dgt(this,t)},p.Zh=function(t){return Nxt(this,t)},p.$h=function(){throw ne(new rr)},p._h=function(){return this.zh()?this.zh().Pk():null},p.ai=function(){return dH(this)},p.bi=function(t,i){mne(this,t,i)},p.ci=function(t){this.$h().Sk(t)},p.di=function(t){this.$h().Vk(t)},p.ei=function(t){this.$h().Uk(t)},p.fi=function(t,i){var s,a,c,b;return b=this.Jh(),b&&t&&(i=fs(b.El(),this,i),b.Il(this)),a=this.Ph(),a&&(Lne(this,this.Ph(),this.Fh()).Bb&ys?(c=a.Qh(),c&&(t?!b&&c.Il(this):c.Hl(this))):(i=(s=this.Fh(),s>=0?this.Ah(i):this.Ph().Th(this,-1-s,null,i)),i=this.Ch(null,-1,i))),this.di(t),i},p.gi=function(t){var i,s,a,c,b,g,m,_;if(s=this.Dh(),b=yi(s,t),i=this.ji(),b>=i)return f(t,69).wk().Dk(this,this.hi(),b-i);if(b<=-1)if(g=_2((gc(),qo),s,t),g){if(Ss(),f(g,69).xk()||(g=a3(Vs(qo,g))),c=(a=this.Ih(g),f(a>=0?this.Lh(a,!0,!0):iy(this,g,!0),160)),_=g.Ik(),_>1||_==-1)return f(f(c,220).Sl(t,!1),79)}else throw ne(new hn(X1+t.xe()+moe));else if(t.Jk())return a=this.Ih(t),f(a>=0?this.Lh(a,!1,!0):iy(this,t,!1),79);return m=new $ut(this,t),m},p.hi=function(){return B_e(this)},p.ii=function(){return(C1(),un).S},p.ji=function(){return Pn(this.ii())},p.ki=function(t){bne(this,t)},p.Ib=function(){return rd(this)},N(fn,"BasicEObjectImpl",99);var EDt;P(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),p.li=function(t){var i;return i=F_e(this),i[t]},p.mi=function(t,i){var s;s=F_e(this),Ci(s,t,i)},p.ni=function(t){var i;i=F_e(this),Ci(i,t,null)},p.th=function(){return f(dn(this,4),129)},p.uh=function(){throw ne(new rr)},p.vh=function(){return(this.Db&4)!=0},p.zh=function(){throw ne(new rr)},p.oi=function(t){v3(this,2,t)},p.Bh=function(t,i){this.Db=i<<16|this.Db&255,this.oi(t)},p.Dh=function(){return Xa(this)},p.Fh=function(){return this.Db>>16},p.Gh=function(){var t,i;return g$(),i=Mve(Gh((t=f(dn(this,16),29),t||this.ii()))),i==null?Mce:new f7(this,i)},p.wh=function(){return(this.Db&1)==0},p.Jh=function(){return f(dn(this,128),2034)},p.Kh=function(){return f(dn(this,16),29)},p.Oh=function(){return(this.Db&32)!=0},p.Ph=function(){return f(dn(this,2),54)},p.Vh=function(){return(this.Db&64)!=0},p.$h=function(){throw ne(new rr)},p._h=function(){return f(dn(this,64),288)},p.ci=function(t){v3(this,16,t)},p.di=function(t){v3(this,128,t)},p.ei=function(t){v3(this,64,t)},p.hi=function(){return ja(this)},p.Db=0,N(fn,"MinimalEObjectImpl",119),P(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.oi=function(t){this.Cb=t},p.Ph=function(){return this.Cb},N(fn,"MinimalEObjectImpl/Container",120),P(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.Lh=function(t,i,s){return tEe(this,t,i,s)},p.Uh=function(t,i,s){return GEe(this,t,i,s)},p.Wh=function(t){return Xve(this,t)},p.bi=function(t,i){BSe(this,t,i)},p.ii=function(){return Yl(),SDt},p.ki=function(t){TSe(this,t)},p.nf=function(){return uSt(this)},p.gh=function(){return!this.o&&(this.o=new pc((Yl(),Fp),Hg,this,0)),this.o},p.of=function(t){return Qe(this,t)},p.pf=function(t){return eh(this,t)},p.qf=function(t,i){return zr(this,t,i)},N(Rw,"EMapPropertyHolderImpl",2083),P(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},jj),p.Lh=function(t,i,s){switch(t){case 0:return this.a;case 1:return this.b}return yH(this,t,i,s)},p.Wh=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return Nte(this,t)},p.bi=function(t,i){switch(t){case 0:TW(this,Ae(je(i)));return;case 1:AW(this,Ae(je(i)));return}mne(this,t,i)},p.ii=function(){return Yl(),mDt},p.ki=function(t){switch(t){case 0:TW(this,0);return;case 1:AW(this,0);return}bne(this,t)},p.Ib=function(){var t;return this.Db&64?rd(this):(t=new wf(rd(this)),t.a+=" (x: ",NS(t,this.a),t.a+=", y: ",NS(t,this.b),t.a+=")",t.a)},p.a=0,p.b=0,N(Rw,"ElkBendPointImpl",572),P(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.Lh=function(t,i,s){return c2e(this,t,i,s)},p.Sh=function(t,i,s){return ane(this,t,i,s)},p.Uh=function(t,i,s){return Vee(this,t,i,s)},p.Wh=function(t){return ESe(this,t)},p.bi=function(t,i){vEe(this,t,i)},p.ii=function(){return Yl(),vDt},p.ki=function(t){e2e(this,t)},p.jh=function(){return this.k},p.kh=function(){return FB(this)},p.Ib=function(){return wte(this)},p.k=null,N(Rw,"ElkGraphElementImpl",739),P(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.Lh=function(t,i,s){return w2e(this,t,i,s)},p.Wh=function(t){return E2e(this,t)},p.bi=function(t,i){_Ee(this,t,i)},p.ii=function(){return Yl(),_Dt},p.ki=function(t){$2e(this,t)},p.lh=function(){return this.f},p.mh=function(){return this.g},p.nh=function(){return this.i},p.oh=function(){return this.j},p.ph=function(t,i){GS(this,t,i)},p.qh=function(t,i){Wu(this,t,i)},p.rh=function(t){Da(this,t)},p.sh=function(t){La(this,t)},p.Ib=function(){return hne(this)},p.f=0,p.g=0,p.i=0,p.j=0,N(Rw,"ElkShapeImpl",740),P(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),p.Lh=function(t,i,s){return q2e(this,t,i,s)},p.Sh=function(t,i,s){return pEe(this,t,i,s)},p.Uh=function(t,i,s){return bEe(this,t,i,s)},p.Wh=function(t){return FSe(this,t)},p.bi=function(t,i){Ake(this,t,i)},p.ii=function(){return Yl(),yDt},p.ki=function(t){U2e(this,t)},p.hh=function(){return!this.d&&(this.d=new en(Fi,this,8,5)),this.d},p.ih=function(){return!this.e&&(this.e=new en(Fi,this,7,4)),this.e},N(Rw,"ElkConnectableShapeImpl",741),P(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},QJ),p.Ah=function(t){return uEe(this,t)},p.Lh=function(t,i,s){switch(t){case 3:return M7(this);case 4:return!this.b&&(this.b=new en(Dn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new en(Dn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new qe(ai,this,6,6)),this.a;case 7:return cn(),!this.b&&(this.b=new en(Dn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new en(Dn,this,5,8)),this.c.i<=1));case 8:return cn(),!!W6(this);case 9:return cn(),!!ry(this);case 10:return cn(),!this.b&&(this.b=new en(Dn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new en(Dn,this,5,8)),this.c.i!=0)}return c2e(this,t,i,s)},p.Sh=function(t,i,s){var a;switch(i){case 3:return this.Cb&&(s=(a=this.Db>>16,a>=0?uEe(this,s):this.Cb.Th(this,-1-a,null,s))),Vme(this,f(t,27),s);case 4:return!this.b&&(this.b=new en(Dn,this,4,7)),xa(this.b,t,s);case 5:return!this.c&&(this.c=new en(Dn,this,5,8)),xa(this.c,t,s);case 6:return!this.a&&(this.a=new qe(ai,this,6,6)),xa(this.a,t,s)}return ane(this,t,i,s)},p.Uh=function(t,i,s){switch(i){case 3:return Vme(this,null,s);case 4:return!this.b&&(this.b=new en(Dn,this,4,7)),fs(this.b,t,s);case 5:return!this.c&&(this.c=new en(Dn,this,5,8)),fs(this.c,t,s);case 6:return!this.a&&(this.a=new qe(ai,this,6,6)),fs(this.a,t,s)}return Vee(this,t,i,s)},p.Wh=function(t){switch(t){case 3:return!!M7(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new en(Dn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new en(Dn,this,5,8)),this.c.i<=1));case 8:return W6(this);case 9:return ry(this);case 10:return!this.b&&(this.b=new en(Dn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new en(Dn,this,5,8)),this.c.i!=0)}return ESe(this,t)},p.bi=function(t,i){switch(t){case 3:GH(this,f(i,27));return;case 4:!this.b&&(this.b=new en(Dn,this,4,7)),Vn(this.b),!this.b&&(this.b=new en(Dn,this,4,7)),Ii(this.b,f(i,16));return;case 5:!this.c&&(this.c=new en(Dn,this,5,8)),Vn(this.c),!this.c&&(this.c=new en(Dn,this,5,8)),Ii(this.c,f(i,16));return;case 6:!this.a&&(this.a=new qe(ai,this,6,6)),Vn(this.a),!this.a&&(this.a=new qe(ai,this,6,6)),Ii(this.a,f(i,16));return}vEe(this,t,i)},p.ii=function(){return Yl(),aOe},p.ki=function(t){switch(t){case 3:GH(this,null);return;case 4:!this.b&&(this.b=new en(Dn,this,4,7)),Vn(this.b);return;case 5:!this.c&&(this.c=new en(Dn,this,5,8)),Vn(this.c);return;case 6:!this.a&&(this.a=new qe(ai,this,6,6)),Vn(this.a);return}e2e(this,t)},p.Ib=function(){return QRt(this)},N(Rw,"ElkEdgeImpl",326),P(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Fj),p.Ah=function(t){return sEe(this,t)},p.Lh=function(t,i,s){switch(t){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new zi(Nu,this,5)),this.a;case 6:return agt(this);case 7:return i?Fte(this):this.i;case 8:return i?jte(this):this.f;case 9:return!this.g&&(this.g=new en(ai,this,9,10)),this.g;case 10:return!this.e&&(this.e=new en(ai,this,10,9)),this.e;case 11:return this.d}return tEe(this,t,i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 6:return this.Cb&&(s=(c=this.Db>>16,c>=0?sEe(this,s):this.Cb.Th(this,-1-c,null,s))),Gme(this,f(t,74),s);case 9:return!this.g&&(this.g=new en(ai,this,9,10)),xa(this.g,t,s);case 10:return!this.e&&(this.e=new en(ai,this,10,9)),xa(this.e,t,s)}return b=f(tn((a=f(dn(this,16),29),a||(Yl(),Iz)),i),69),b.wk().zk(this,ja(this),i-Pn((Yl(),Iz)),t,s)},p.Uh=function(t,i,s){switch(i){case 5:return!this.a&&(this.a=new zi(Nu,this,5)),fs(this.a,t,s);case 6:return Gme(this,null,s);case 9:return!this.g&&(this.g=new en(ai,this,9,10)),fs(this.g,t,s);case 10:return!this.e&&(this.e=new en(ai,this,10,9)),fs(this.e,t,s)}return GEe(this,t,i,s)},p.Wh=function(t){switch(t){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!agt(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return Xve(this,t)},p.bi=function(t,i){switch(t){case 1:TC(this,Ae(je(i)));return;case 2:IC(this,Ae(je(i)));return;case 3:AC(this,Ae(je(i)));return;case 4:$C(this,Ae(je(i)));return;case 5:!this.a&&(this.a=new zi(Nu,this,5)),Vn(this.a),!this.a&&(this.a=new zi(Nu,this,5)),Ii(this.a,f(i,16));return;case 6:Ykt(this,f(i,74));return;case 7:DW(this,f(i,84));return;case 8:MW(this,f(i,84));return;case 9:!this.g&&(this.g=new en(ai,this,9,10)),Vn(this.g),!this.g&&(this.g=new en(ai,this,9,10)),Ii(this.g,f(i,16));return;case 10:!this.e&&(this.e=new en(ai,this,10,9)),Vn(this.e),!this.e&&(this.e=new en(ai,this,10,9)),Ii(this.e,f(i,16));return;case 11:fSe(this,or(i));return}BSe(this,t,i)},p.ii=function(){return Yl(),Iz},p.ki=function(t){switch(t){case 1:TC(this,0);return;case 2:IC(this,0);return;case 3:AC(this,0);return;case 4:$C(this,0);return;case 5:!this.a&&(this.a=new zi(Nu,this,5)),Vn(this.a);return;case 6:Ykt(this,null);return;case 7:DW(this,null);return;case 8:MW(this,null);return;case 9:!this.g&&(this.g=new en(ai,this,9,10)),Vn(this.g);return;case 10:!this.e&&(this.e=new en(ai,this,10,9)),Vn(this.e);return;case 11:fSe(this,null);return}TSe(this,t)},p.Ib=function(){return fkt(this)},p.b=0,p.c=0,p.d=null,p.j=0,p.k=0,N(Rw,"ElkEdgeSectionImpl",452),P(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),p.Lh=function(t,i,s){var a;return t==0?(!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab):qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Sh=function(t,i,s){var a,c;return i==0?(!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s)):(c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().zk(this,ja(this),i-Pn(this.ii()),t,s))},p.Uh=function(t,i,s){var a,c;return i==0?(!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s)):(c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().Ak(this,ja(this),i-Pn(this.ii()),t,s))},p.Wh=function(t){var i;return t==0?!!this.Ab&&this.Ab.i!=0:zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.Zh=function(t){return F3e(this,t)},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.di=function(t){v3(this,128,t)},p.ii=function(){return Kt(),WDt},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.pi=function(){this.Bb|=1},p.qi=function(t){return q6(this,t)},p.Bb=0,N(fn,"EModelElementImpl",158),P(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},W1e),p.ri=function(t,i){return Cxt(this,t,i)},p.si=function(t){var i,s,a,c,b;if(this.a!=vu(t)||t.Bb&256)throw ne(new hn(voe+t.zb+gy));for(a=rl(t);ra(a.a).i!=0;){if(s=f(nM(a,0,(i=f(Se(ra(a.a),0),89),b=i.c,ve(b,90)?f(b,29):(Kt(),Mf))),29),ny(s))return c=vu(s).wi().si(s),f(c,54).ci(t),c;a=rl(s)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new Ght(t):new Oye(t)},p.ti=function(t,i){return ay(this,t,i)},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.a}return qu(this,t-Pn((Kt(),g0)),tn((a=f(dn(this,16),29),a||g0),t),i,s)},p.Sh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 1:return this.a&&(s=f(this.a,54).Th(this,4,Bd,s)),ZSe(this,f(t,241),s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),g0)),i),69),c.wk().zk(this,ja(this),i-Pn((Kt(),g0)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 1:return ZSe(this,null,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),g0)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),g0)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return zu(this,t-Pn((Kt(),g0)),tn((i=f(dn(this,16),29),i||g0),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:q2t(this,f(i,241));return}Qu(this,t-Pn((Kt(),g0)),tn((s=f(dn(this,16),29),s||g0),t),i)},p.ii=function(){return Kt(),g0},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:q2t(this,null);return}Yu(this,t-Pn((Kt(),g0)),tn((i=f(dn(this,16),29),i||g0),t))};var L5,dOe,kDt;N(fn,"EFactoryImpl",720),P(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},oZe),p.ri=function(t,i){switch(t.hk()){case 12:return f(i,149).Pg();case 13:return dl(i);default:throw ne(new hn(HA+t.xe()+gy))}},p.si=function(t){var i,s,a,c,b,g,m,_;switch(t.G==-1&&(t.G=(i=vu(t),i?Rg(i.vi(),t):-1)),t.G){case 4:return b=new M1e,b;case 6:return g=new r$,g;case 7:return m=new M0e,m;case 8:return a=new QJ,a;case 9:return s=new jj,s;case 10:return c=new Fj,c;case 11:return _=new sZe,_;default:throw ne(new hn(voe+t.zb+gy))}},p.ti=function(t,i){switch(t.hk()){case 13:case 12:return null;default:throw ne(new hn(HA+t.xe()+gy))}},N(Rw,"ElkGraphFactoryImpl",1037),P(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),p.Gh=function(){var t,i;return i=(t=f(dn(this,16),29),Mve(Gh(t||this.ii()))),i==null?(g$(),g$(),Mce):new hdt(this,i)},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.xe()}return qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:this.ui(or(i));return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.ii=function(){return Kt(),HDt},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:this.ui(null);return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.xe=function(){return this.zb},p.ui=function(t){Ra(this,t)},p.Ib=function(){return S6(this)},p.zb=null,N(fn,"ENamedElementImpl",448),P(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},Bbt),p.Ah=function(t){return o2t(this,t)},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Fv(this,Wd,this)),this.rb;case 6:return!this.vb&&(this.vb=new Xk(Bd,this,6,7)),this.vb;case 7:return i?this.Db>>16==7?f(this.Cb,241):null:bgt(this)}return qu(this,t-Pn((Kt(),zg)),tn((a=f(dn(this,16),29),a||zg),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 4:return this.sb&&(s=f(this.sb,54).Th(this,1,D5,s)),n2e(this,f(t,480),s);case 5:return!this.rb&&(this.rb=new Fv(this,Wd,this)),xa(this.rb,t,s);case 6:return!this.vb&&(this.vb=new Xk(Bd,this,6,7)),xa(this.vb,t,s);case 7:return this.Cb&&(s=(c=this.Db>>16,c>=0?o2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,7,s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),zg)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),zg)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 4:return n2e(this,null,s);case 5:return!this.rb&&(this.rb=new Fv(this,Wd,this)),fs(this.rb,t,s);case 6:return!this.vb&&(this.vb=new Xk(Bd,this,6,7)),fs(this.vb,t,s);case 7:return xu(this,null,7,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),zg)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),zg)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!bgt(this)}return zu(this,t-Pn((Kt(),zg)),tn((i=f(dn(this,16),29),i||zg),t))},p.Zh=function(t){var i;return i=pOn(this,t),i||F3e(this,t)},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ra(this,or(i));return;case 2:HW(this,or(i));return;case 3:WW(this,or(i));return;case 4:dne(this,f(i,480));return;case 5:!this.rb&&(this.rb=new Fv(this,Wd,this)),Vn(this.rb),!this.rb&&(this.rb=new Fv(this,Wd,this)),Ii(this.rb,f(i,16));return;case 6:!this.vb&&(this.vb=new Xk(Bd,this,6,7)),Vn(this.vb),!this.vb&&(this.vb=new Xk(Bd,this,6,7)),Ii(this.vb,f(i,16));return}Qu(this,t-Pn((Kt(),zg)),tn((s=f(dn(this,16),29),s||zg),t),i)},p.ei=function(t){var i,s;if(t&&this.rb)for(s=new Sn(this.rb);s.e!=s.i.gc();)i=Cn(s),ve(i,364)&&(f(i,364).w=null);v3(this,64,t)},p.ii=function(){return Kt(),zg},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:Ra(this,null);return;case 2:HW(this,null);return;case 3:WW(this,null);return;case 4:dne(this,null);return;case 5:!this.rb&&(this.rb=new Fv(this,Wd,this)),Vn(this.rb);return;case 6:!this.vb&&(this.vb=new Xk(Bd,this,6,7)),Vn(this.vb);return}Yu(this,t-Pn((Kt(),zg)),tn((i=f(dn(this,16),29),i||zg),t))},p.pi=function(){Qte(this)},p.vi=function(){return!this.rb&&(this.rb=new Fv(this,Wd,this)),this.rb},p.wi=function(){return this.sb},p.xi=function(){return this.ub},p.yi=function(){return this.xb},p.zi=function(){return this.yb},p.Ai=function(t){this.ub=t},p.Ib=function(){var t;return this.Db&64?S6(this):(t=new wf(S6(this)),t.a+=" (nsURI: ",Ms(t,this.yb),t.a+=", nsPrefix: ",Ms(t,this.xb),t.a+=")",t.a)},p.xb=null,p.yb=null,N(fn,"EPackageImpl",184),P(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},vkt),p.q=!1,p.r=!1;var RDt=!1;N(Rw,"ElkGraphPackageImpl",569),P(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},M1e),p.Ah=function(t){return lEe(this,t)},p.Lh=function(t,i,s){switch(t){case 7:return ggt(this);case 8:return this.a}return w2e(this,t,i,s)},p.Sh=function(t,i,s){var a;switch(i){case 7:return this.Cb&&(s=(a=this.Db>>16,a>=0?lEe(this,s):this.Cb.Th(this,-1-a,null,s))),qye(this,f(t,167),s)}return ane(this,t,i,s)},p.Uh=function(t,i,s){return i==7?qye(this,null,s):Vee(this,t,i,s)},p.Wh=function(t){switch(t){case 7:return!!ggt(this);case 8:return!Ht("",this.a)}return E2e(this,t)},p.bi=function(t,i){switch(t){case 7:Wke(this,f(i,167));return;case 8:sSe(this,or(i));return}_Ee(this,t,i)},p.ii=function(){return Yl(),cOe},p.ki=function(t){switch(t){case 7:Wke(this,null);return;case 8:sSe(this,"");return}$2e(this,t)},p.Ib=function(){return aEt(this)},p.a="",N(Rw,"ElkLabelImpl",366),P(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},r$),p.Ah=function(t){return fEe(this,t)},p.Lh=function(t,i,s){switch(t){case 9:return!this.c&&(this.c=new qe(Mc,this,9,9)),this.c;case 10:return!this.a&&(this.a=new qe($r,this,10,11)),this.a;case 11:return di(this);case 12:return!this.b&&(this.b=new qe(Fi,this,12,3)),this.b;case 13:return cn(),!this.a&&(this.a=new qe($r,this,10,11)),this.a.i>0}return q2e(this,t,i,s)},p.Sh=function(t,i,s){var a;switch(i){case 9:return!this.c&&(this.c=new qe(Mc,this,9,9)),xa(this.c,t,s);case 10:return!this.a&&(this.a=new qe($r,this,10,11)),xa(this.a,t,s);case 11:return this.Cb&&(s=(a=this.Db>>16,a>=0?fEe(this,s):this.Cb.Th(this,-1-a,null,s))),tye(this,f(t,27),s);case 12:return!this.b&&(this.b=new qe(Fi,this,12,3)),xa(this.b,t,s)}return pEe(this,t,i,s)},p.Uh=function(t,i,s){switch(i){case 9:return!this.c&&(this.c=new qe(Mc,this,9,9)),fs(this.c,t,s);case 10:return!this.a&&(this.a=new qe($r,this,10,11)),fs(this.a,t,s);case 11:return tye(this,null,s);case 12:return!this.b&&(this.b=new qe(Fi,this,12,3)),fs(this.b,t,s)}return bEe(this,t,i,s)},p.Wh=function(t){switch(t){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!di(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new qe($r,this,10,11)),this.a.i>0}return FSe(this,t)},p.bi=function(t,i){switch(t){case 9:!this.c&&(this.c=new qe(Mc,this,9,9)),Vn(this.c),!this.c&&(this.c=new qe(Mc,this,9,9)),Ii(this.c,f(i,16));return;case 10:!this.a&&(this.a=new qe($r,this,10,11)),Vn(this.a),!this.a&&(this.a=new qe($r,this,10,11)),Ii(this.a,f(i,16));return;case 11:VH(this,f(i,27));return;case 12:!this.b&&(this.b=new qe(Fi,this,12,3)),Vn(this.b),!this.b&&(this.b=new qe(Fi,this,12,3)),Ii(this.b,f(i,16));return}Ake(this,t,i)},p.ii=function(){return Yl(),uOe},p.ki=function(t){switch(t){case 9:!this.c&&(this.c=new qe(Mc,this,9,9)),Vn(this.c);return;case 10:!this.a&&(this.a=new qe($r,this,10,11)),Vn(this.a);return;case 11:VH(this,null);return;case 12:!this.b&&(this.b=new qe(Fi,this,12,3)),Vn(this.b);return}U2e(this,t)},p.Ib=function(){return r3e(this)},N(Rw,"ElkNodeImpl",207),P(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},M0e),p.Ah=function(t){return aEe(this,t)},p.Lh=function(t,i,s){return t==9?Xd(this):q2e(this,t,i,s)},p.Sh=function(t,i,s){var a;switch(i){case 9:return this.Cb&&(s=(a=this.Db>>16,a>=0?aEe(this,s):this.Cb.Th(this,-1-a,null,s))),zme(this,f(t,27),s)}return pEe(this,t,i,s)},p.Uh=function(t,i,s){return i==9?zme(this,null,s):bEe(this,t,i,s)},p.Wh=function(t){return t==9?!!Xd(this):FSe(this,t)},p.bi=function(t,i){switch(t){case 9:Lke(this,f(i,27));return}Ake(this,t,i)},p.ii=function(){return Yl(),fOe},p.ki=function(t){switch(t){case 9:Lke(this,null);return}U2e(this,t)},p.Ib=function(){return J3t(this)},N(Rw,"ElkPortImpl",193);var xDt=Ei(hs,"BasicEMap/Entry");P(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},sZe),p.Fb=function(t){return this===t},p.ld=function(){return this.b},p.Hb=function(){return Cm(this)},p.Di=function(t){lSe(this,f(t,149))},p.Lh=function(t,i,s){switch(t){case 0:return this.b;case 1:return this.c}return yH(this,t,i,s)},p.Wh=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return Nte(this,t)},p.bi=function(t,i){switch(t){case 0:lSe(this,f(i,149));return;case 1:oSe(this,i);return}mne(this,t,i)},p.ii=function(){return Yl(),Fp},p.ki=function(t){switch(t){case 0:lSe(this,null);return;case 1:oSe(this,null);return}bne(this,t)},p.Bi=function(){var t;return this.a==-1&&(t=this.b,this.a=t?ti(t):0),this.a},p.md=function(){return this.c},p.Ci=function(t){this.a=t},p.nd=function(t){var i;return i=this.c,oSe(this,t),i},p.Ib=function(){var t;return this.Db&64?rd(this):(t=new m1,br(br(br(t,this.b?this.b.Pg():Za),hie),D$(this.c)),t.a)},p.a=-1,p.c=null;var Hg=N(Rw,"ElkPropertyToValueMapEntryImpl",1122);P(996,1,{},cZe),N(zo,"JsonAdapter",996),P(216,63,Cb,$h),N(zo,"JsonImportException",216),P(868,1,{},s2t),N(zo,"JsonImporter",868),P(903,1,{},hut),N(zo,"JsonImporter/lambda$0$Type",903),P(904,1,{},put),N(zo,"JsonImporter/lambda$1$Type",904),P(912,1,{},Lot),N(zo,"JsonImporter/lambda$10$Type",912),P(914,1,{},but),N(zo,"JsonImporter/lambda$11$Type",914),P(915,1,{},gut),N(zo,"JsonImporter/lambda$12$Type",915),P(921,1,{},Abt),N(zo,"JsonImporter/lambda$13$Type",921),P(920,1,{},Tbt),N(zo,"JsonImporter/lambda$14$Type",920),P(916,1,{},wut),N(zo,"JsonImporter/lambda$15$Type",916),P(917,1,{},mut),N(zo,"JsonImporter/lambda$16$Type",917),P(918,1,{},yut),N(zo,"JsonImporter/lambda$17$Type",918),P(919,1,{},vut),N(zo,"JsonImporter/lambda$18$Type",919),P(924,1,{},jot),N(zo,"JsonImporter/lambda$19$Type",924),P(905,1,{},Fot),N(zo,"JsonImporter/lambda$2$Type",905),P(922,1,{},Bot),N(zo,"JsonImporter/lambda$20$Type",922),P(923,1,{},Wot),N(zo,"JsonImporter/lambda$21$Type",923),P(927,1,{},Hot),N(zo,"JsonImporter/lambda$22$Type",927),P(925,1,{},Uot),N(zo,"JsonImporter/lambda$23$Type",925),P(926,1,{},Got),N(zo,"JsonImporter/lambda$24$Type",926),P(929,1,{},Vot),N(zo,"JsonImporter/lambda$25$Type",929),P(928,1,{},zot),N(zo,"JsonImporter/lambda$26$Type",928),P(930,1,Rn,_ut),p.Cd=function(t){Akn(this.b,this.a,or(t))},N(zo,"JsonImporter/lambda$27$Type",930),P(931,1,Rn,Sut),p.Cd=function(t){Tkn(this.b,this.a,or(t))},N(zo,"JsonImporter/lambda$28$Type",931),P(932,1,{},Eut),N(zo,"JsonImporter/lambda$29$Type",932),P(908,1,{},Kot),N(zo,"JsonImporter/lambda$3$Type",908),P(933,1,{},kut),N(zo,"JsonImporter/lambda$30$Type",933),P(934,1,{},qot),N(zo,"JsonImporter/lambda$31$Type",934),P(935,1,{},Xot),N(zo,"JsonImporter/lambda$32$Type",935),P(936,1,{},Jot),N(zo,"JsonImporter/lambda$33$Type",936),P(937,1,{},Yot),N(zo,"JsonImporter/lambda$34$Type",937),P(870,1,{},Qot),N(zo,"JsonImporter/lambda$35$Type",870),P(941,1,{},mht),N(zo,"JsonImporter/lambda$36$Type",941),P(938,1,Rn,Zot),p.Cd=function(t){NEn(this.a,f(t,377))},N(zo,"JsonImporter/lambda$37$Type",938),P(939,1,Rn,Rut),p.Cd=function(t){bgn(this.a,this.b,f(t,166))},N(zo,"JsonImporter/lambda$38$Type",939),P(940,1,Rn,xut),p.Cd=function(t){ggn(this.a,this.b,f(t,166))},N(zo,"JsonImporter/lambda$39$Type",940),P(906,1,{},est),N(zo,"JsonImporter/lambda$4$Type",906),P(942,1,Rn,tst),p.Cd=function(t){MEn(this.a,f(t,8))},N(zo,"JsonImporter/lambda$40$Type",942),P(907,1,{},nst),N(zo,"JsonImporter/lambda$5$Type",907),P(911,1,{},rst),N(zo,"JsonImporter/lambda$6$Type",911),P(909,1,{},ist),N(zo,"JsonImporter/lambda$7$Type",909),P(910,1,{},ost),N(zo,"JsonImporter/lambda$8$Type",910),P(913,1,{},sst),N(zo,"JsonImporter/lambda$9$Type",913),P(961,1,Rn,lst),p.Cd=function(t){r3(this.a,new Bv(or(t)))},N(zo,"JsonMetaDataConverter/lambda$0$Type",961),P(962,1,Rn,ast),p.Cd=function(t){xvn(this.a,f(t,245))},N(zo,"JsonMetaDataConverter/lambda$1$Type",962),P(963,1,Rn,cst),p.Cd=function(t){RSn(this.a,f(t,143))},N(zo,"JsonMetaDataConverter/lambda$2$Type",963),P(964,1,Rn,ust),p.Cd=function(t){Cvn(this.a,f(t,170))},N(zo,"JsonMetaDataConverter/lambda$3$Type",964),P(245,22,{3:1,34:1,22:1,245:1},Uk);var Pz,Oz,Ace,Nz,Mz,Dz,Tce,$ce,Lz=Wn(wM,"GraphFeature",245,qn,u3n,Zmn),CDt;P(11,1,{34:1,149:1},Xr,_i,Bt,Po),p.Fd=function(t){return _1n(this,f(t,149))},p.Fb=function(t){return Qbt(this,t)},p.Sg=function(){return dt(this)},p.Pg=function(){return this.b},p.Hb=function(){return mg(this.b)},p.Ib=function(){return this.b},N(wM,"Property",11),P(671,1,cr,dY),p.Ne=function(t,i){return ICn(this,f(t,96),f(i,96))},p.Fb=function(t){return this===t},p.Oe=function(){return new er(this)},N(wM,"PropertyHolderComparator",671),P(709,1,ko,g0e),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return Pkn(this)},p.Qb=function(){sat()},p.Ob=function(){return!!this.a},N(iG,"ElkGraphUtil/AncestorIterator",709);var hOe=Ei(hs,"EList");P(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),p.bd=function(t,i){k6(this,t,i)},p.Fc=function(t){return zn(this,t)},p.cd=function(t,i){return $Se(this,t,i)},p.Gc=function(t){return Ii(this,t)},p.Ii=function(){return new qk(this)},p.Ji=function(){return new d7(this)},p.Ki=function(t){return iN(this,t)},p.Li=function(){return!0},p.Mi=function(t,i){},p.Ni=function(){},p.Oi=function(t,i){dee(this,t,i)},p.Pi=function(t,i,s){},p.Qi=function(t,i){},p.Ri=function(t,i,s){},p.Fb=function(t){return N3t(this,t)},p.Hb=function(){return xSe(this)},p.Si=function(){return!1},p.Kc=function(){return new Sn(this)},p.ed=function(){return new Kk(this)},p.fd=function(t){var i;if(i=this.gc(),t<0||t>i)throw ne(new Lv(t,i));return new wZ(this,t)},p.Ui=function(t,i){this.Ti(t,this.dd(i))},p.Mc=function(t){return _W(this,t)},p.Wi=function(t,i){return i},p.hd=function(t,i){return c2(this,t,i)},p.Ib=function(){return v2e(this)},p.Yi=function(){return!0},p.Zi=function(t,i){return VC(this,i)},N(hs,"AbstractEList",70),P(66,70,ep,Bj,Gm,vSe),p.Ei=function(t,i){return cne(this,t,i)},p.Fi=function(t){return ISt(this,t)},p.Gi=function(t,i){yN(this,t,i)},p.Hi=function(t){H7(this,t)},p.$i=function(t){return N_e(this,t)},p.$b=function(){s6(this)},p.Hc=function(t){return lA(this,t)},p.Xb=function(t){return Se(this,t)},p._i=function(t){var i,s,a;++this.j,s=this.g==null?0:this.g.length,t>s&&(a=this.g,i=s+(s/2|0)+4,i=0?(this.gd(i),!0):!1},p.Xi=function(t,i){return this.Dj(t,this.Zi(t,i))},p.gc=function(){return this.Ej()},p.Pc=function(){return this.Fj()},p.Qc=function(t){return this.Gj(t)},p.Ib=function(){return this.Hj()},N(hs,"DelegatingEList",2093),P(2094,2093,JTt),p.Ei=function(t,i){return b3e(this,t,i)},p.Fi=function(t){return this.Ei(this.Ej(),t)},p.Gi=function(t,i){_kt(this,t,i)},p.Hi=function(t){ckt(this,t)},p.Li=function(){return!this.Mj()},p.$b=function(){eI(this)},p.Ij=function(t,i,s,a,c){return new Ybt(this,t,i,s,a,c)},p.Jj=function(t){Dr(this.jj(),t)},p.Kj=function(){return null},p.Lj=function(){return-1},p.jj=function(){return null},p.Mj=function(){return!1},p.Nj=function(t,i){return i},p.Oj=function(t,i){return i},p.Pj=function(){return!1},p.Qj=function(){return!this.Aj()},p.Ti=function(t,i){var s,a;return this.Pj()?(a=this.Qj(),s=WEe(this,t,i),this.Jj(this.Ij(7,ot(i),s,t,a)),s):WEe(this,t,i)},p.gd=function(t){var i,s,a,c;return this.Pj()?(s=null,a=this.Qj(),i=this.Ij(4,c=yB(this,t),null,t,a),this.Mj()&&c?(s=this.Oj(c,s),s?(s.nj(i),s.oj()):this.Jj(i)):s?(s.nj(i),s.oj()):this.Jj(i),c):(c=yB(this,t),this.Mj()&&c&&(s=this.Oj(c,null),s&&s.oj()),c)},p.Xi=function(t,i){return ARt(this,t,i)},N(U3,"DelegatingNotifyingListImpl",2094),P(152,1,NM),p.nj=function(t){return xEe(this,t)},p.oj=function(){vee(this)},p.gj=function(){return this.d},p.Kj=function(){return null},p.Rj=function(){return null},p.hj=function(t){return-1},p.ij=function(){return b3t(this)},p.jj=function(){return null},p.kj=function(){return zke(this)},p.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},p.Sj=function(){return!1},p.mj=function(t){var i,s,a,c,b,g,m,_,k,I,D;switch(this.d){case 1:case 2:switch(c=t.gj(),c){case 1:case 2:if(b=t.jj(),Ne(b)===Ne(this.jj())&&this.hj(null)==t.hj(null))return this.g=t.ij(),t.gj()==1&&(this.d=1),!0}case 4:{switch(c=t.gj(),c){case 4:{if(b=t.jj(),Ne(b)===Ne(this.jj())&&this.hj(null)==t.hj(null))return k=P3e(this),_=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,g=t.lj(),this.d=6,D=new Gm(2),_<=g?(zn(D,this.n),zn(D,t.kj()),this.g=se(ie(Xn,1),wr,28,15,[this.o=_,g+1])):(zn(D,t.kj()),zn(D,this.n),this.g=se(ie(Xn,1),wr,28,15,[this.o=g,_])),this.n=D,k||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=t.gj(),c){case 4:{if(b=t.jj(),Ne(b)===Ne(this.jj())&&this.hj(null)==t.hj(null)){for(k=P3e(this),g=t.lj(),I=f(this.g,53),a=Fe(Xn,wr,28,I.length+1,15,1),i=0;i>>0,i.toString(16))),a.a+=" (eventType: ",this.d){case 1:{a.a+="SET";break}case 2:{a.a+="UNSET";break}case 3:{a.a+="ADD";break}case 5:{a.a+="ADD_MANY";break}case 4:{a.a+="REMOVE";break}case 6:{a.a+="REMOVE_MANY";break}case 7:{a.a+="MOVE";break}case 8:{a.a+="REMOVING_ADAPTER";break}case 9:{a.a+="RESOLVE";break}default:{DY(a,this.d);break}}if(nRt(this)&&(a.a+=", touch: true"),a.a+=", position: ",DY(a,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),a.a+=", notifier: ",$$(a,this.jj()),a.a+=", feature: ",$$(a,this.Kj()),a.a+=", oldValue: ",$$(a,zke(this)),a.a+=", newValue: ",this.d==6&&ve(this.g,53)){for(s=f(this.g,53),a.a+="[",t=0;t10?((!this.b||this.c.j!=this.a)&&(this.b=new H$(this),this.a=this.j),Rd(this.b,t)):lA(this,t)},p.Yi=function(){return!0},p.a=0,N(hs,"AbstractEList/1",966),P(302,77,Lre,Lv),N(hs,"AbstractEList/BasicIndexOutOfBoundsException",302),P(37,1,ko,Sn),p.Nb=function(t){Uo(this,t)},p.Xj=function(){if(this.i.j!=this.f)throw ne(new Bu)},p.Yj=function(){return Cn(this)},p.Ob=function(){return this.e!=this.i.gc()},p.Pb=function(){return this.Yj()},p.Qb=function(){D6(this)},p.e=0,p.f=0,p.g=-1,N(hs,"AbstractEList/EIterator",37),P(286,37,kp,Kk,wZ),p.Qb=function(){D6(this)},p.Rb=function(t){T_t(this,t)},p.Zj=function(){var t;try{return t=this.d.Xb(--this.e),this.Xj(),this.g=this.e,t}catch(i){throw i=mi(i),ve(i,77)?(this.Xj(),ne(new yl)):ne(i)}},p.$j=function(t){NSt(this,t)},p.Sb=function(){return this.e!=0},p.Tb=function(){return this.e},p.Ub=function(){return this.Zj()},p.Vb=function(){return this.e-1},p.Wb=function(t){this.$j(t)},N(hs,"AbstractEList/EListIterator",286),P(355,37,ko,qk),p.Yj=function(){return Mte(this)},p.Qb=function(){throw ne(new rr)},N(hs,"AbstractEList/NonResolvingEIterator",355),P(398,286,kp,d7,aye),p.Rb=function(t){throw ne(new rr)},p.Yj=function(){var t;try{return t=this.c.Vi(this.e),this.Xj(),this.g=this.e++,t}catch(i){throw i=mi(i),ve(i,77)?(this.Xj(),ne(new yl)):ne(i)}},p.Zj=function(){var t;try{return t=this.c.Vi(--this.e),this.Xj(),this.g=this.e,t}catch(i){throw i=mi(i),ve(i,77)?(this.Xj(),ne(new yl)):ne(i)}},p.Qb=function(){throw ne(new rr)},p.Wb=function(t){throw ne(new rr)},N(hs,"AbstractEList/NonResolvingEListIterator",398),P(2080,70,YTt),p.Ei=function(t,i){var s,a,c,b,g,m,_,k,I,D,W;if(c=i.gc(),c!=0){for(k=f(dn(this.a,4),129),I=k==null?0:k.length,W=I+c,a=ite(this,W),D=I-t,D>0&&oa(k,t,a,t+c,D),_=i.Kc(),g=0;gs)throw ne(new Lv(t,s));return new ybt(this,t)},p.$b=function(){var t,i;++this.j,t=f(dn(this.a,4),129),i=t==null?0:t.length,rA(this,null),dee(this,i,t)},p.Hc=function(t){var i,s,a,c,b;if(i=f(dn(this.a,4),129),i!=null){if(t!=null){for(a=i,c=0,b=a.length;c=s)throw ne(new Lv(t,s));return i[t]},p.dd=function(t){var i,s,a;if(i=f(dn(this.a,4),129),i!=null){if(t!=null){for(s=0,a=i.length;ss)throw ne(new Lv(t,s));return new mbt(this,t)},p.Ti=function(t,i){var s,a,c;if(s=F_t(this),c=s==null?0:s.length,t>=c)throw ne(new Hs(Toe+t+xw+c));if(i>=c)throw ne(new Hs($oe+i+xw+c));return a=s[i],t!=i&&(t0&&oa(t,0,i,0,s),i},p.Qc=function(t){var i,s,a;return i=f(dn(this.a,4),129),a=i==null?0:i.length,a>0&&(t.lengtha&&Ci(t,a,null),t};var ADt;N(hs,"ArrayDelegatingEList",2080),P(1051,37,ko,v0t),p.Xj=function(){if(this.b.j!=this.f||Ne(f(dn(this.b.a,4),129))!==Ne(this.a))throw ne(new Bu)},p.Qb=function(){D6(this),this.a=f(dn(this.b.a,4),129)},N(hs,"ArrayDelegatingEList/EIterator",1051),P(722,286,kp,Ppt,mbt),p.Xj=function(){if(this.b.j!=this.f||Ne(f(dn(this.b.a,4),129))!==Ne(this.a))throw ne(new Bu)},p.$j=function(t){NSt(this,t),this.a=f(dn(this.b.a,4),129)},p.Qb=function(){D6(this),this.a=f(dn(this.b.a,4),129)},N(hs,"ArrayDelegatingEList/EListIterator",722),P(1052,355,ko,_0t),p.Xj=function(){if(this.b.j!=this.f||Ne(f(dn(this.b.a,4),129))!==Ne(this.a))throw ne(new Bu)},N(hs,"ArrayDelegatingEList/NonResolvingEIterator",1052),P(723,398,kp,Opt,ybt),p.Xj=function(){if(this.b.j!=this.f||Ne(f(dn(this.b.a,4),129))!==Ne(this.a))throw ne(new Bu)},N(hs,"ArrayDelegatingEList/NonResolvingEListIterator",723),P(615,302,Lre,SQ),N(hs,"BasicEList/BasicIndexOutOfBoundsException",615),P(710,66,ep,Jwe),p.bd=function(t,i){throw ne(new rr)},p.Fc=function(t){throw ne(new rr)},p.cd=function(t,i){throw ne(new rr)},p.Gc=function(t){throw ne(new rr)},p.$b=function(){throw ne(new rr)},p._i=function(t){throw ne(new rr)},p.Kc=function(){return this.Ii()},p.ed=function(){return this.Ji()},p.fd=function(t){return this.Ki(t)},p.Ti=function(t,i){throw ne(new rr)},p.Ui=function(t,i){throw ne(new rr)},p.gd=function(t){throw ne(new rr)},p.Mc=function(t){throw ne(new rr)},p.hd=function(t,i){throw ne(new rr)},N(hs,"BasicEList/UnmodifiableEList",710),P(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),p.bd=function(t,i){c1n(this,t,f(i,44))},p.Fc=function(t){return n0n(this,f(t,44))},p.Jc=function(t){Vo(this,t)},p.Xb=function(t){return f(Se(this.c,t),136)},p.Ti=function(t,i){return f(this.c.Ti(t,i),44)},p.Ui=function(t,i){u1n(this,t,f(i,44))},p.Lc=function(){return new Wt(null,new Vt(this,16))},p.gd=function(t){return f(this.c.gd(t),44)},p.hd=function(t,i){return Rvn(this,t,f(i,44))},p.jd=function(t){sw(this,t)},p.Nc=function(){return new Vt(this,16)},p.Oc=function(){return new Wt(null,new Vt(this,16))},p.cd=function(t,i){return this.c.cd(t,i)},p.Gc=function(t){return this.c.Gc(t)},p.$b=function(){this.c.$b()},p.Hc=function(t){return this.c.Hc(t)},p.Ic=function(t){return uN(this.c,t)},p._j=function(){var t,i,s;if(this.d==null){for(this.d=Fe(pOe,EAe,66,2*this.f+1,0,1),s=this.e,this.f=0,i=this.c.Kc();i.e!=i.i.gc();)t=f(i.Yj(),136),EH(this,t);this.e=s}},p.Fb=function(t){return sht(this,t)},p.Hb=function(){return xSe(this.c)},p.dd=function(t){return this.c.dd(t)},p.ak=function(){this.c=new fst(this)},p.dc=function(){return this.f==0},p.Kc=function(){return this.c.Kc()},p.ed=function(){return this.c.ed()},p.fd=function(t){return this.c.fd(t)},p.bk=function(){return V7(this)},p.ck=function(t,i,s){return new yht(t,i,s)},p.dk=function(){return new hZe},p.Mc=function(t){return zmt(this,t)},p.gc=function(){return this.f},p.kd=function(t,i){return new dg(this.c,t,i)},p.Pc=function(){return this.c.Pc()},p.Qc=function(t){return this.c.Qc(t)},p.Ib=function(){return v2e(this.c)},p.e=0,p.f=0,N(hs,"BasicEMap",721),P(1046,66,ep,fst),p.Mi=function(t,i){Wpn(this,f(i,136))},p.Pi=function(t,i,s){var a;++(a=this,f(i,136),a).a.e},p.Qi=function(t,i){Hpn(this,f(i,136))},p.Ri=function(t,i,s){W1n(this,f(i,136),f(s,136))},p.Oi=function(t,i){Fyt(this.a)},N(hs,"BasicEMap/1",1046),P(1047,66,ep,hZe),p.aj=function(t){return Fe(TFn,QTt,621,t,0,1)},N(hs,"BasicEMap/2",1047),P(1048,lh,wc,dst),p.$b=function(){this.a.c.$b()},p.Hc=function(t){return Rte(this.a,t)},p.Kc=function(){return this.a.f==0?(oC(),Y9.a):new qlt(this.a)},p.Mc=function(t){var i;return i=this.a.f,fH(this.a,t),this.a.f!=i},p.gc=function(){return this.a.f},N(hs,"BasicEMap/3",1048),P(1049,31,p_,hst),p.$b=function(){this.a.c.$b()},p.Hc=function(t){return M3t(this.a,t)},p.Kc=function(){return this.a.f==0?(oC(),Y9.a):new Xlt(this.a)},p.gc=function(){return this.a.f},N(hs,"BasicEMap/4",1049),P(1050,lh,wc,pst),p.$b=function(){this.a.c.$b()},p.Hc=function(t){var i,s,a,c,b,g,m,_,k;if(this.a.f>0&&ve(t,44)&&(this.a._j(),_=f(t,44),m=_.ld(),c=m==null?0:ti(m),b=Kme(this.a,c),i=this.a.d[b],i)){for(s=f(i.g,379),k=i.i,g=0;g"+this.c},p.a=0;var TFn=N(hs,"BasicEMap/EntryImpl",621);P(546,1,{},Wj),N(hs,"BasicEMap/View",546);var Y9;P(783,1,{}),p.Fb=function(t){return Tke((qt(),ps),t)},p.Hb=function(){return jSe((qt(),ps))},p.Ib=function(){return B1((qt(),ps))},N(hs,"ECollections/BasicEmptyUnmodifiableEList",783),P(1348,1,kp,pZe),p.Nb=function(t){Uo(this,t)},p.Rb=function(t){throw ne(new rr)},p.Ob=function(){return!1},p.Sb=function(){return!1},p.Pb=function(){throw ne(new yl)},p.Tb=function(){return 0},p.Ub=function(){throw ne(new yl)},p.Vb=function(){return-1},p.Qb=function(){throw ne(new rr)},p.Wb=function(t){throw ne(new rr)},N(hs,"ECollections/BasicEmptyUnmodifiableEList/1",1348),P(1346,783,{20:1,16:1,15:1,61:1},ilt),p.bd=function(t,i){yat()},p.Fc=function(t){return vat()},p.cd=function(t,i){return _at()},p.Gc=function(t){return Sat()},p.$b=function(){Eat()},p.Hc=function(t){return!1},p.Ic=function(t){return!1},p.Jc=function(t){Vo(this,t)},p.Xb=function(t){return Zwe((qt(),t)),null},p.dd=function(t){return-1},p.dc=function(){return!0},p.Kc=function(){return this.a},p.ed=function(){return this.a},p.fd=function(t){return this.a},p.Ti=function(t,i){return kat()},p.Ui=function(t,i){Rat()},p.Lc=function(){return new Wt(null,new Vt(this,16))},p.gd=function(t){return xat()},p.Mc=function(t){return Cat()},p.hd=function(t,i){return Aat()},p.gc=function(){return 0},p.jd=function(t){sw(this,t)},p.Nc=function(){return new Vt(this,16)},p.Oc=function(){return new Wt(null,new Vt(this,16))},p.kd=function(t,i){return qt(),new dg(ps,t,i)},p.Pc=function(){return Jye((qt(),ps))},p.Qc=function(t){return qt(),P6(ps,t)},N(hs,"ECollections/EmptyUnmodifiableEList",1346),P(1347,783,{20:1,16:1,15:1,61:1,597:1},olt),p.bd=function(t,i){yat()},p.Fc=function(t){return vat()},p.cd=function(t,i){return _at()},p.Gc=function(t){return Sat()},p.$b=function(){Eat()},p.Hc=function(t){return!1},p.Ic=function(t){return!1},p.Jc=function(t){Vo(this,t)},p.Xb=function(t){return Zwe((qt(),t)),null},p.dd=function(t){return-1},p.dc=function(){return!0},p.Kc=function(){return this.a},p.ed=function(){return this.a},p.fd=function(t){return this.a},p.Ti=function(t,i){return kat()},p.Ui=function(t,i){Rat()},p.Lc=function(){return new Wt(null,new Vt(this,16))},p.gd=function(t){return xat()},p.Mc=function(t){return Cat()},p.hd=function(t,i){return Aat()},p.gc=function(){return 0},p.jd=function(t){sw(this,t)},p.Nc=function(){return new Vt(this,16)},p.Oc=function(){return new Wt(null,new Vt(this,16))},p.kd=function(t,i){return qt(),new dg(ps,t,i)},p.Pc=function(){return Jye((qt(),ps))},p.Qc=function(t){return qt(),P6(ps,t)},p.bk=function(){return qt(),qt(),Ip},N(hs,"ECollections/EmptyUnmodifiableEMap",1347);var gOe=Ei(hs,"Enumerator"),jz;P(288,1,{288:1},Pne),p.Fb=function(t){var i;return this===t?!0:ve(t,288)?(i=f(t,288),this.f==i.f&&Wyn(this.i,i.i)&&oZ(this.a,this.f&256?i.f&256?i.a:null:i.f&256?null:i.a)&&oZ(this.d,i.d)&&oZ(this.g,i.g)&&oZ(this.e,i.e)&&f4n(this,i)):!1},p.Hb=function(){return this.f},p.Ib=function(){return pRt(this)},p.f=0;var TDt=0,$Dt=0,IDt=0,PDt=0,wOe=0,mOe=0,yOe=0,vOe=0,_Oe=0,ODt,j5=0,F5=0,NDt=0,MDt=0,Fz,SOe;N(hs,"URI",288),P(1121,45,k2,slt),p.zc=function(t,i){return f(Gs(this,or(t),f(i,288)),288)},N(hs,"URI/URICache",1121),P(506,66,ep,aZe,RB),p.Si=function(){return!0},N(hs,"UniqueEList",506),P(590,63,Cb,mW),N(hs,"WrappedException",590);var _r=Ei(of,t$t),J_=Ei(of,n$t),rc=Ei(of,r$t),Y_=Ei(of,i$t),Wd=Ei(of,o$t),Pf=Ei(of,"EClass"),Oce=Ei(of,"EDataType"),DDt;P(1233,45,k2,llt),p.xc=function(t){return Eo(t)?ua(this,t):tl(xs(this.f,t))},N(of,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var Bz=Ei(of,"EEnum"),Db=Ei(of,s$t),Os=Ei(of,l$t),Of=Ei(of,a$t),Nf,Ly=Ei(of,c$t),Q_=Ei(of,u$t);P(1042,1,{},lZe),p.Ib=function(){return"NIL"},N(of,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var LDt;P(1041,45,k2,alt),p.xc=function(t){return Eo(t)?ua(this,t):tl(xs(this.f,t))},N(of,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var Ga=Ei(of,f$t),dR=Ei(of,"EValidator/PatternMatcher"),EOe,kOe,un,Ug,Z_,p0,jDt,FDt,BDt,b0,Gg,g0,jy,vh,WDt,HDt,Mf,Vg,UDt,zg,eS,pE,_s,GDt,VDt,Fy,Wz=Ei(fi,"FeatureMap/Entry");P(545,1,{76:1},HF),p.Lk=function(){return this.a},p.md=function(){return this.b},N(fn,"BasicEObjectImpl/1",545),P(1040,1,Doe,$ut),p.Fk=function(t){return aee(this.a,this.b,t)},p.Qj=function(){return dgt(this.a,this.b)},p.Wb=function(t){jve(this.a,this.b,t)},p.Gk=function(){jvn(this.a,this.b)},N(fn,"BasicEObjectImpl/4",1040),P(2081,1,{114:1}),p.Mk=function(t){this.e=t==0?zDt:Fe(ho,on,1,t,5,1)},p.li=function(t){return this.e[t]},p.mi=function(t,i){this.e[t]=i},p.ni=function(t){this.e[t]=null},p.Nk=function(){return this.c},p.Ok=function(){throw ne(new rr)},p.Pk=function(){throw ne(new rr)},p.Qk=function(){return this.d},p.Rk=function(){return this.e!=null},p.Sk=function(t){this.c=t},p.Tk=function(t){throw ne(new rr)},p.Uk=function(t){throw ne(new rr)},p.Vk=function(t){this.d=t};var zDt;N(fn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),P(192,2081,{114:1},Ed),p.Ok=function(){return this.a},p.Pk=function(){return this.b},p.Tk=function(t){this.a=t},p.Uk=function(t){this.b=t},N(fn,"BasicEObjectImpl/EPropertiesHolderImpl",192),P(516,99,dTt,Hj),p.uh=function(){return this.f},p.zh=function(){return this.k},p.Bh=function(t,i){this.g=t,this.i=i},p.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},p.Fh=function(){return this.i},p.wh=function(){return(this.j&1)!=0},p.Ph=function(){return this.g},p.Vh=function(){return(this.j&4)!=0},p.$h=function(){return!this.k&&(this.k=new Ed),this.k},p.ci=function(t){this.$h().Sk(t),t?this.j|=2:this.j&=-3},p.ei=function(t){this.$h().Uk(t),t?this.j|=4:this.j&=-5},p.ii=function(){return(C1(),un).S},p.i=0,p.j=1,N(fn,"EObjectImpl",516),P(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},Oye),p.li=function(t){return this.e[t]},p.mi=function(t,i){this.e[t]=i},p.ni=function(t){this.e[t]=null},p.Dh=function(){return this.d},p.Ih=function(t){return yi(this.d,t)},p.Kh=function(){return this.d},p.Oh=function(){return this.e!=null},p.$h=function(){return!this.k&&(this.k=new bZe),this.k},p.ci=function(t){this.d=t},p.hi=function(){var t;return this.e==null&&(t=Pn(this.d),this.e=t==0?KDt:Fe(ho,on,1,t,5,1)),this},p.ji=function(){return 0};var KDt;N(fn,"DynamicEObjectImpl",798),P(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},Ght),p.Fb=function(t){return this===t},p.Hb=function(){return Cm(this)},p.ci=function(t){this.d=t,this.b=zN(t,"key"),this.c=zN(t,EI)},p.Bi=function(){var t;return this.a==-1&&(t=_ee(this,this.b),this.a=t==null?0:ti(t)),this.a},p.ld=function(){return _ee(this,this.b)},p.md=function(){return _ee(this,this.c)},p.Ci=function(t){this.a=t},p.Di=function(t){jve(this,this.b,t)},p.nd=function(t){var i;return i=_ee(this,this.c),jve(this,this.c,t),i},p.a=0,N(fn,"DynamicEObjectImpl/BasicEMapEntry",1522),P(1523,1,{114:1},bZe),p.Mk=function(t){throw ne(new rr)},p.li=function(t){throw ne(new rr)},p.mi=function(t,i){throw ne(new rr)},p.ni=function(t){throw ne(new rr)},p.Nk=function(){throw ne(new rr)},p.Ok=function(){return this.a},p.Pk=function(){return this.b},p.Qk=function(){return this.c},p.Rk=function(){throw ne(new rr)},p.Sk=function(t){throw ne(new rr)},p.Tk=function(t){this.a=t},p.Uk=function(t){this.b=t},p.Vk=function(t){this.c=t},N(fn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),P(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},D1e),p.Ah=function(t){return cEe(this,t)},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.d;case 2:return s?(!this.b&&(this.b=new nu((Kt(),_s),Ll,this)),this.b):(!this.b&&(this.b=new nu((Kt(),_s),Ll,this)),V7(this.b));case 3:return wgt(this);case 4:return!this.a&&(this.a=new zi(d0,this,4)),this.a;case 5:return!this.c&&(this.c=new KS(d0,this,5)),this.c}return qu(this,t-Pn((Kt(),Ug)),tn((a=f(dn(this,16),29),a||Ug),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 3:return this.Cb&&(s=(c=this.Db>>16,c>=0?cEe(this,s):this.Cb.Th(this,-1-c,null,s))),Xye(this,f(t,155),s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),Ug)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),Ug)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 2:return!this.b&&(this.b=new nu((Kt(),_s),Ll,this)),lB(this.b,t,s);case 3:return Xye(this,null,s);case 4:return!this.a&&(this.a=new zi(d0,this,4)),fs(this.a,t,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),Ug)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),Ug)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!wgt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return zu(this,t-Pn((Kt(),Ug)),tn((i=f(dn(this,16),29),i||Ug),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ayn(this,or(i));return;case 2:!this.b&&(this.b=new nu((Kt(),_s),Ll,this)),UW(this.b,i);return;case 3:n3t(this,f(i,155));return;case 4:!this.a&&(this.a=new zi(d0,this,4)),Vn(this.a),!this.a&&(this.a=new zi(d0,this,4)),Ii(this.a,f(i,16));return;case 5:!this.c&&(this.c=new KS(d0,this,5)),Vn(this.c),!this.c&&(this.c=new KS(d0,this,5)),Ii(this.c,f(i,16));return}Qu(this,t-Pn((Kt(),Ug)),tn((s=f(dn(this,16),29),s||Ug),t),i)},p.ii=function(){return Kt(),Ug},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:uSe(this,null);return;case 2:!this.b&&(this.b=new nu((Kt(),_s),Ll,this)),this.b.c.$b();return;case 3:n3t(this,null);return;case 4:!this.a&&(this.a=new zi(d0,this,4)),Vn(this.a);return;case 5:!this.c&&(this.c=new KS(d0,this,5)),Vn(this.c);return}Yu(this,t-Pn((Kt(),Ug)),tn((i=f(dn(this,16),29),i||Ug),t))},p.Ib=function(){return s_t(this)},p.d=null,N(fn,"EAnnotationImpl",519),P(141,721,kAe,pc),p.Gi=function(t,i){zgn(this,t,f(i,44))},p.Wk=function(t,i){return q0n(this,f(t,44),i)},p.$i=function(t){return f(f(this.c,71).$i(t),136)},p.Ii=function(){return f(this.c,71).Ii()},p.Ji=function(){return f(this.c,71).Ji()},p.Ki=function(t){return f(this.c,71).Ki(t)},p.Xk=function(t,i){return lB(this,t,i)},p.Fk=function(t){return f(this.c,79).Fk(t)},p.ak=function(){},p.Qj=function(){return f(this.c,79).Qj()},p.ck=function(t,i,s){var a;return a=f(vu(this.b).wi().si(this.b),136),a.Ci(t),a.Di(i),a.nd(s),a},p.dk=function(){return new m0e(this)},p.Wb=function(t){UW(this,t)},p.Gk=function(){f(this.c,79).Gk()},N(fi,"EcoreEMap",141),P(165,141,kAe,nu),p._j=function(){var t,i,s,a,c,b;if(this.d==null){for(b=Fe(pOe,EAe,66,2*this.f+1,0,1),s=this.c.Kc();s.e!=s.i.gc();)i=f(s.Yj(),136),a=i.Bi(),c=(a&Nr)%b.length,t=b[c],!t&&(t=b[c]=new m0e(this)),t.Fc(i);this.d=b}},N(fn,"EAnnotationImpl/1",165),P(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),p.Lh=function(t,i,s){var a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),!!this.Jk();case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q}return qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 9:return vZ(this,s)}return c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().Ak(this,ja(this),i-Pn(this.ii()),t,s)},p.Wh=function(t){var i,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0)}return zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:this.ui(or(i));return;case 2:_g(this,wt(gt(i)));return;case 3:Sg(this,wt(gt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:this.Zk(f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.ii=function(){return Kt(),VDt},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:this.ui(null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:this.Zk(1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.pi=function(){_f(this),this.Bb|=1},p.Hk=function(){return _f(this)},p.Ik=function(){return this.t},p.Jk=function(){var t;return t=this.t,t>1||t==-1},p.Si=function(){return(this.Bb&512)!=0},p.Yk=function(t,i){return r2e(this,t,i)},p.Zk=function(t){Jv(this,t)},p.Ib=function(){return vke(this)},p.s=0,p.t=1,N(fn,"ETypedElementImpl",292),P(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),p.Ah=function(t){return XSt(this,t)},p.Lh=function(t,i,s){var a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),!!this.Jk();case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return cn(),!!(this.Bb&sd);case 11:return cn(),!!(this.Bb&E_);case 12:return cn(),!!(this.Bb&g_);case 13:return this.j;case 14:return hA(this);case 15:return cn(),!!(this.Bb&yc);case 16:return cn(),!!(this.Bb&Vh);case 17:return Hv(this)}return qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 17:return this.Cb&&(s=(c=this.Db>>16,c>=0?XSt(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,17,s)}return b=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),b.wk().zk(this,ja(this),i-Pn(this.ii()),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 9:return vZ(this,s);case 17:return xu(this,null,17,s)}return c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().Ak(this,ja(this),i-Pn(this.ii()),t,s)},p.Wh=function(t){var i,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&E_)!=0;case 12:return(this.Bb&g_)!=0;case 13:return this.j!=null;case 14:return hA(this)!=null;case 15:return(this.Bb&yc)!=0;case 16:return(this.Bb&Vh)!=0;case 17:return!!Hv(this)}return zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:KZ(this,or(i));return;case 2:_g(this,wt(gt(i)));return;case 3:Sg(this,wt(gt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:this.Zk(f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return;case 10:JC(this,wt(gt(i)));return;case 11:ZC(this,wt(gt(i)));return;case 12:YC(this,wt(gt(i)));return;case 13:Xwe(this,or(i));return;case 15:QC(this,wt(gt(i)));return;case 16:eA(this,wt(gt(i)));return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.ii=function(){return Kt(),GDt},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,90)&&l_(Bc(f(this.Cb,90)),4),Ra(this,null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:this.Zk(1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return;case 10:JC(this,!0);return;case 11:ZC(this,!1);return;case 12:YC(this,!1);return;case 13:this.i=null,LW(this,null);return;case 15:QC(this,!1);return;case 16:eA(this,!1);return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.pi=function(){gC(Vs((gc(),qo),this)),_f(this),this.Bb|=1},p.pk=function(){return this.f},p.ik=function(){return hA(this)},p.qk=function(){return Hv(this)},p.uk=function(){return null},p.$k=function(){return this.k},p.Lj=function(){return this.n},p.vk=function(){return IH(this)},p.wk=function(){var t,i,s,a,c,b,g,m,_;return this.p||(s=Hv(this),(s.i==null&&Gh(s),s.i).length,a=this.uk(),a&&Pn(Hv(a)),c=_f(this),g=c.kk(),t=g?g.i&1?g==Xc?Li:g==Xn?Ko:g==nS?XA:g==Ro?Qi:g==m0?my:g==mE?yy:g==_c?G3:NI:g:null,i=hA(this),m=c.ik(),HCn(this),this.Bb&Vh&&((b=gEe((gc(),qo),s))&&b!=this||(b=a3(Vs(qo,this))))?this.p=new Put(this,b):this.Jk()?this.al()?a?this.Bb&yc?t?this.bl()?this.p=new Z0(47,t,this,a):this.p=new Z0(5,t,this,a):this.bl()?this.p=new iw(46,this,a):this.p=new iw(4,this,a):t?this.bl()?this.p=new Z0(49,t,this,a):this.p=new Z0(7,t,this,a):this.bl()?this.p=new iw(48,this,a):this.p=new iw(6,this,a):this.Bb&yc?t?t==Tw?this.p=new cg(50,xDt,this):this.bl()?this.p=new cg(43,t,this):this.p=new cg(1,t,this):this.bl()?this.p=new fg(42,this):this.p=new fg(0,this):t?t==Tw?this.p=new cg(41,xDt,this):this.bl()?this.p=new cg(45,t,this):this.p=new cg(3,t,this):this.bl()?this.p=new fg(44,this):this.p=new fg(2,this):ve(c,156)?t==Wz?this.p=new fg(40,this):this.Bb&512?this.Bb&yc?t?this.p=new cg(9,t,this):this.p=new fg(8,this):t?this.p=new cg(11,t,this):this.p=new fg(10,this):this.Bb&yc?t?this.p=new cg(13,t,this):this.p=new fg(12,this):t?this.p=new cg(15,t,this):this.p=new fg(14,this):a?(_=a.t,_>1||_==-1?this.bl()?this.Bb&yc?t?this.p=new Z0(25,t,this,a):this.p=new iw(24,this,a):t?this.p=new Z0(27,t,this,a):this.p=new iw(26,this,a):this.Bb&yc?t?this.p=new Z0(29,t,this,a):this.p=new iw(28,this,a):t?this.p=new Z0(31,t,this,a):this.p=new iw(30,this,a):this.bl()?this.Bb&yc?t?this.p=new Z0(33,t,this,a):this.p=new iw(32,this,a):t?this.p=new Z0(35,t,this,a):this.p=new iw(34,this,a):this.Bb&yc?t?this.p=new Z0(37,t,this,a):this.p=new iw(36,this,a):t?this.p=new Z0(39,t,this,a):this.p=new iw(38,this,a)):this.bl()?this.Bb&yc?t?this.p=new cg(17,t,this):this.p=new fg(16,this):t?this.p=new cg(19,t,this):this.p=new fg(18,this):this.Bb&yc?t?this.p=new cg(21,t,this):this.p=new fg(20,this):t?this.p=new cg(23,t,this):this.p=new fg(22,this):this._k()?this.bl()?this.p=new vht(f(c,29),this,a):this.p=new Dve(f(c,29),this,a):ve(c,156)?t==Wz?this.p=new fg(40,this):this.Bb&yc?t?this.p=new ypt(i,m,this,(xte(),g==Xn?IOe:g==Xc?xOe:g==m0?POe:g==nS?$Oe:g==Ro?TOe:g==mE?OOe:g==_c?COe:g==df?AOe:Dce)):this.p=new Pbt(f(c,156),i,m,this):t?this.p=new mpt(i,m,this,(xte(),g==Xn?IOe:g==Xc?xOe:g==m0?POe:g==nS?$Oe:g==Ro?TOe:g==mE?OOe:g==_c?COe:g==df?AOe:Dce)):this.p=new Ibt(f(c,156),i,m,this):this.al()?a?this.Bb&yc?this.bl()?this.p=new Sht(f(c,29),this,a):this.p=new _ye(f(c,29),this,a):this.bl()?this.p=new _ht(f(c,29),this,a):this.p=new QQ(f(c,29),this,a):this.Bb&yc?this.bl()?this.p=new mdt(f(c,29),this):this.p=new Mme(f(c,29),this):this.bl()?this.p=new wdt(f(c,29),this):this.p=new FQ(f(c,29),this):this.bl()?a?this.Bb&yc?this.p=new Eht(f(c,29),this,a):this.p=new yye(f(c,29),this,a):this.Bb&yc?this.p=new ydt(f(c,29),this):this.p=new Dme(f(c,29),this):a?this.Bb&yc?this.p=new kht(f(c,29),this,a):this.p=new vye(f(c,29),this,a):this.Bb&yc?this.p=new vdt(f(c,29),this):this.p=new kB(f(c,29),this)),this.p},p.rk=function(){return(this.Bb&sd)!=0},p._k=function(){return!1},p.al=function(){return!1},p.sk=function(){return(this.Bb&Vh)!=0},p.xk=function(){return See(this)},p.bl=function(){return!1},p.tk=function(){return(this.Bb&yc)!=0},p.cl=function(t){this.k=t},p.ui=function(t){KZ(this,t)},p.Ib=function(){return QH(this)},p.e=!1,p.n=0,N(fn,"EStructuralFeatureImpl",462),P(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},yY),p.Lh=function(t,i,s){var a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),!!pke(this);case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return cn(),!!(this.Bb&sd);case 11:return cn(),!!(this.Bb&E_);case 12:return cn(),!!(this.Bb&g_);case 13:return this.j;case 14:return hA(this);case 15:return cn(),!!(this.Bb&yc);case 16:return cn(),!!(this.Bb&Vh);case 17:return Hv(this);case 18:return cn(),!!(this.Bb&Vl);case 19:return i?zee(this):M0t(this)}return qu(this,t-Pn((Kt(),Z_)),tn((a=f(dn(this,16),29),a||Z_),t),i,s)},p.Wh=function(t){var i,s;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return pke(this);case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&E_)!=0;case 12:return(this.Bb&g_)!=0;case 13:return this.j!=null;case 14:return hA(this)!=null;case 15:return(this.Bb&yc)!=0;case 16:return(this.Bb&Vh)!=0;case 17:return!!Hv(this);case 18:return(this.Bb&Vl)!=0;case 19:return!!M0t(this)}return zu(this,t-Pn((Kt(),Z_)),tn((i=f(dn(this,16),29),i||Z_),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:KZ(this,or(i));return;case 2:_g(this,wt(gt(i)));return;case 3:Sg(this,wt(gt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:Qlt(this,f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return;case 10:JC(this,wt(gt(i)));return;case 11:ZC(this,wt(gt(i)));return;case 12:YC(this,wt(gt(i)));return;case 13:Xwe(this,or(i));return;case 15:QC(this,wt(gt(i)));return;case 16:eA(this,wt(gt(i)));return;case 18:mte(this,wt(gt(i)));return}Qu(this,t-Pn((Kt(),Z_)),tn((s=f(dn(this,16),29),s||Z_),t),i)},p.ii=function(){return Kt(),Z_},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,90)&&l_(Bc(f(this.Cb,90)),4),Ra(this,null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:this.b=0,Jv(this,1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return;case 10:JC(this,!0);return;case 11:ZC(this,!1);return;case 12:YC(this,!1);return;case 13:this.i=null,LW(this,null);return;case 15:QC(this,!1);return;case 16:eA(this,!1);return;case 18:mte(this,!1);return}Yu(this,t-Pn((Kt(),Z_)),tn((i=f(dn(this,16),29),i||Z_),t))},p.pi=function(){zee(this),gC(Vs((gc(),qo),this)),_f(this),this.Bb|=1},p.Jk=function(){return pke(this)},p.Yk=function(t,i){return this.b=0,this.a=null,r2e(this,t,i)},p.Zk=function(t){Qlt(this,t)},p.Ib=function(){var t;return this.Db&64?QH(this):(t=new wf(QH(this)),t.a+=" (iD: ",og(t,(this.Bb&Vl)!=0),t.a+=")",t.a)},p.b=0,N(fn,"EAttributeImpl",331),P(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),p.dl=function(t){return t.Dh()==this},p.Ah=function(t){return Yte(this,t)},p.Bh=function(t,i){this.w=null,this.Db=i<<16|this.Db&255,this.Cb=t},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return ny(this);case 4:return this.ik();case 5:return this.F;case 6:return i?vu(this):yC(this);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),this.A}return qu(this,t-Pn(this.ii()),tn((a=f(dn(this,16),29),a||this.ii()),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 6:return this.Cb&&(s=(c=this.Db>>16,c>=0?Yte(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,6,s)}return b=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),b.wk().zk(this,ja(this),i-Pn(this.ii()),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 6:return xu(this,null,6,s);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),fs(this.A,t,s)}return c=f(tn((a=f(dn(this,16),29),a||this.ii()),i),69),c.wk().Ak(this,ja(this),i-Pn(this.ii()),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!ny(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!yC(this);case 7:return!!this.A&&this.A.i!=0}return zu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:ZB(this,or(i));return;case 2:RQ(this,or(i));return;case 5:vA(this,or(i));return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A),!this.A&&(this.A=new uc(Ga,this,7)),Ii(this.A,f(i,16));return}Qu(this,t-Pn(this.ii()),tn((s=f(dn(this,16),29),s||this.ii()),t),i)},p.ii=function(){return Kt(),jDt},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,184)&&(f(this.Cb,184).tb=null),Ra(this,null);return;case 2:KC(this,null),PC(this,this.D);return;case 5:vA(this,null);return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A);return}Yu(this,t-Pn(this.ii()),tn((i=f(dn(this,16),29),i||this.ii()),t))},p.hk=function(){var t;return this.G==-1&&(this.G=(t=vu(this),t?Rg(t.vi(),this):-1)),this.G},p.ik=function(){return null},p.jk=function(){return vu(this)},p.el=function(){return this.v},p.kk=function(){return ny(this)},p.lk=function(){return this.D!=null?this.D:this.B},p.mk=function(){return this.F},p.fk=function(t){return Wne(this,t)},p.fl=function(t){this.v=t},p.gl=function(t){yyt(this,t)},p.hl=function(t){this.C=t},p.ui=function(t){ZB(this,t)},p.Ib=function(){return lH(this)},p.C=null,p.D=null,p.G=-1,N(fn,"EClassifierImpl",364),P(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},B1e),p.dl=function(t){return I0n(this,t.Dh())},p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return ny(this);case 4:return null;case 5:return this.F;case 6:return i?vu(this):yC(this);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),this.A;case 8:return cn(),!!(this.Bb&256);case 9:return cn(),!!(this.Bb&512);case 10:return rl(this);case 11:return!this.q&&(this.q=new qe(Of,this,11,10)),this.q;case 12:return v2(this);case 13:return Y6(this);case 14:return Y6(this),this.r;case 15:return v2(this),this.k;case 16:return rke(this);case 17:return Vne(this);case 18:return Gh(this);case 19:return UH(this);case 20:return v2(this),this.o;case 21:return!this.s&&(this.s=new qe(rc,this,21,17)),this.s;case 22:return ra(this);case 23:return Ine(this)}return qu(this,t-Pn((Kt(),p0)),tn((a=f(dn(this,16),29),a||p0),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 6:return this.Cb&&(s=(c=this.Db>>16,c>=0?Yte(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,6,s);case 11:return!this.q&&(this.q=new qe(Of,this,11,10)),xa(this.q,t,s);case 21:return!this.s&&(this.s=new qe(rc,this,21,17)),xa(this.s,t,s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),p0)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),p0)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 6:return xu(this,null,6,s);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),fs(this.A,t,s);case 11:return!this.q&&(this.q=new qe(Of,this,11,10)),fs(this.q,t,s);case 21:return!this.s&&(this.s=new qe(rc,this,21,17)),fs(this.s,t,s);case 22:return fs(ra(this),t,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),p0)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),p0)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!ny(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!yC(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&ra(this.u.a).i!=0&&!(this.n&&Bte(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return v2(this).i!=0;case 13:return Y6(this).i!=0;case 14:return Y6(this),this.r.i!=0;case 15:return v2(this),this.k.i!=0;case 16:return rke(this).i!=0;case 17:return Vne(this).i!=0;case 18:return Gh(this).i!=0;case 19:return UH(this).i!=0;case 20:return v2(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Bte(this.n);case 23:return Ine(this).i!=0}return zu(this,t-Pn((Kt(),p0)),tn((i=f(dn(this,16),29),i||p0),t))},p.Zh=function(t){var i;return i=this.i==null||this.q&&this.q.i!=0?null:zN(this,t),i||F3e(this,t)},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:ZB(this,or(i));return;case 2:RQ(this,or(i));return;case 5:vA(this,or(i));return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A),!this.A&&(this.A=new uc(Ga,this,7)),Ii(this.A,f(i,16));return;case 8:i2e(this,wt(gt(i)));return;case 9:o2e(this,wt(gt(i)));return;case 10:eI(rl(this)),Ii(rl(this),f(i,16));return;case 11:!this.q&&(this.q=new qe(Of,this,11,10)),Vn(this.q),!this.q&&(this.q=new qe(Of,this,11,10)),Ii(this.q,f(i,16));return;case 21:!this.s&&(this.s=new qe(rc,this,21,17)),Vn(this.s),!this.s&&(this.s=new qe(rc,this,21,17)),Ii(this.s,f(i,16));return;case 22:Vn(ra(this)),Ii(ra(this),f(i,16));return}Qu(this,t-Pn((Kt(),p0)),tn((s=f(dn(this,16),29),s||p0),t),i)},p.ii=function(){return Kt(),p0},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,184)&&(f(this.Cb,184).tb=null),Ra(this,null);return;case 2:KC(this,null),PC(this,this.D);return;case 5:vA(this,null);return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A);return;case 8:i2e(this,!1);return;case 9:o2e(this,!1);return;case 10:this.u&&eI(this.u);return;case 11:!this.q&&(this.q=new qe(Of,this,11,10)),Vn(this.q);return;case 21:!this.s&&(this.s=new qe(rc,this,21,17)),Vn(this.s);return;case 22:this.n&&Vn(this.n);return}Yu(this,t-Pn((Kt(),p0)),tn((i=f(dn(this,16),29),i||p0),t))},p.pi=function(){var t,i;if(v2(this),Y6(this),rke(this),Vne(this),Gh(this),UH(this),Ine(this),s6(ryn(Bc(this))),this.s)for(t=0,i=this.s.i;t=0;--i)Se(this,i);return T2e(this,t)},p.Gk=function(){Vn(this)},p.Zi=function(t,i){return Wmt(this,t,i)},N(fi,"EcoreEList",632),P(505,632,hl,k7),p.Li=function(){return!1},p.Lj=function(){return this.c},p.Mj=function(){return!1},p.ol=function(){return!0},p.Si=function(){return!0},p.Wi=function(t,i){return i},p.Yi=function(){return!1},p.c=0,N(fi,"EObjectEList",505),P(83,505,hl,zi),p.Mj=function(){return!0},p.ml=function(){return!1},p.al=function(){return!0},N(fi,"EObjectContainmentEList",83),P(555,83,hl,QF),p.Ni=function(){this.b=!0},p.Qj=function(){return this.b},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.b,this.b=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.b=!1},p.b=!1,N(fi,"EObjectContainmentEList/Unsettable",555),P(1161,555,hl,gpt),p.Ti=function(t,i){var s,a;return s=f(R6(this,t,i),89),eu(this.e)&&Ux(this,new z7(this.a,7,(Kt(),FDt),ot(i),(a=s.c,ve(a,90)?f(a,29):Mf),t)),s},p.Uj=function(t,i){return kAn(this,f(t,89),i)},p.Vj=function(t,i){return EAn(this,f(t,89),i)},p.Wj=function(t,i,s){return C$n(this,f(t,89),f(i,89),s)},p.Ij=function(t,i,s,a,c){switch(t){case 3:return e6(this,t,i,s,a,this.i>1);case 5:return e6(this,t,i,s,a,this.i-f(s,15).gc()>0);default:return new gb(this.e,t,this.c,i,s,a,!0)}},p.Tj=function(){return!0},p.Qj=function(){return Bte(this)},p.Gk=function(){Vn(this)},N(fn,"EClassImpl/1",1161),P(1175,1174,SAe),p.dj=function(t){var i,s,a,c,b,g,m;if(s=t.gj(),s!=8){if(a=o4n(t),a==0)switch(s){case 1:case 9:{m=t.kj(),m!=null&&(i=Bc(f(m,482)),!i.c&&(i.c=new Dx),_W(i.c,t.jj())),g=t.ij(),g!=null&&(c=f(g,482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),zn(i.c,f(t.jj(),29))));break}case 3:{g=t.ij(),g!=null&&(c=f(g,482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),zn(i.c,f(t.jj(),29))));break}case 5:{if(g=t.ij(),g!=null)for(b=f(g,16).Kc();b.Ob();)c=f(b.Pb(),482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),zn(i.c,f(t.jj(),29)));break}case 4:{m=t.kj(),m!=null&&(c=f(m,482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),_W(i.c,t.jj())));break}case 6:{if(m=t.kj(),m!=null)for(b=f(m,16).Kc();b.Ob();)c=f(b.Pb(),482),c.Bb&1||(i=Bc(c),!i.c&&(i.c=new Dx),_W(i.c,t.jj()));break}}this.ql(a)}},p.ql=function(t){H3t(this,t)},p.b=63,N(fn,"ESuperAdapter",1175),P(1176,1175,SAe,gst),p.ql=function(t){l_(this,t)},N(fn,"EClassImpl/10",1176),P(1165,710,hl),p.Ei=function(t,i){return cne(this,t,i)},p.Fi=function(t){return ISt(this,t)},p.Gi=function(t,i){yN(this,t,i)},p.Hi=function(t){H7(this,t)},p.$i=function(t){return N_e(this,t)},p.Xi=function(t,i){return Eee(this,t,i)},p.Wk=function(t,i){throw ne(new rr)},p.Ii=function(){return new qk(this)},p.Ji=function(){return new d7(this)},p.Ki=function(t){return iN(this,t)},p.Xk=function(t,i){throw ne(new rr)},p.Fk=function(t){return this},p.Qj=function(){return this.i!=0},p.Wb=function(t){throw ne(new rr)},p.Gk=function(){throw ne(new rr)},N(fi,"EcoreEList/UnmodifiableEList",1165),P(328,1165,hl,WS),p.Yi=function(){return!1},N(fi,"EcoreEList/UnmodifiableEList/FastCompare",328),P(1168,328,hl,dvt),p.dd=function(t){var i,s,a;if(ve(t,179)&&(i=f(t,179),s=i.Lj(),s!=-1)){for(a=this.i;s4)if(this.fk(t)){if(this.al()){if(a=f(t,54),s=a.Eh(),m=s==this.b&&(this.ml()?a.yh(a.Fh(),f(tn(Xa(this.b),this.Lj()).Hk(),29).kk())==Es(f(tn(Xa(this.b),this.Lj()),19)).n:-1-a.Fh()==this.Lj()),this.nl()&&!m&&!s&&a.Jh()){for(c=0;c<_;++c)if(i=bZ(this,this.xj(c)),Ne(i)===Ne(t))return!0}return m}else if(this.ml()&&!this.ll()){if(b=f(t,58).Mh(Es(f(tn(Xa(this.b),this.Lj()),19))),Ne(b)===Ne(this.b))return!0;if(b==null||!f(b,58).Vh())return!1}}else return!1;if(g=this.uj(t),this.nl()&&!g){for(c=0;c<_;++c)if(a=bZ(this,this.xj(c)),Ne(a)===Ne(t))return!0}return g}else return this.uj(t)},p.Ij=function(t,i,s,a,c){return new gb(this.b,t,this.Lj(),i,s,a,c)},p.Jj=function(t){Dr(this.b,t)},p.Fk=function(t){return this},p.Kj=function(){return tn(Xa(this.b),this.Lj())},p.Lj=function(){return yi(Xa(this.b),tn(Xa(this.b),this.Lj()))},p.jj=function(){return this.b},p.kl=function(){return!!tn(Xa(this.b),this.Lj()).Hk().kk()},p.Mj=function(){var t,i;return i=tn(Xa(this.b),this.Lj()),ve(i,102)?(t=f(i,19),(t.Bb&Vl)!=0||!!Es(f(i,19))):!1},p.ll=function(){var t,i,s,a;return i=tn(Xa(this.b),this.Lj()),ve(i,102)?(t=f(i,19),s=Es(t),!!s&&(a=s.t,a>1||a==-1)):!1},p.ml=function(){var t,i,s;return i=tn(Xa(this.b),this.Lj()),ve(i,102)?(t=f(i,19),s=Es(t),!!s):!1},p.nl=function(){var t,i;return i=tn(Xa(this.b),this.Lj()),ve(i,102)?(t=f(i,19),(t.Bb&ys)!=0):!1},p.dd=function(t){var i,s,a,c;if(a=this.zj(t),a>=0)return a;if(this.ol()){for(s=0,c=this.Ej();s=0;--t)nM(this,t,this.xj(t));return this.Fj()},p.Qc=function(t){var i;if(this.nl())for(i=this.Ej()-1;i>=0;--i)nM(this,i,this.xj(i));return this.Gj(t)},p.Gk=function(){eI(this)},p.Zi=function(t,i){return mwt(this,t,i)},N(fi,"DelegatingEcoreEList",756),P(1171,756,xAe,Pdt),p.qj=function(t,i){t0n(this,t,f(i,29))},p.rj=function(t){Ugn(this,f(t,29))},p.xj=function(t){var i,s;return i=f(Se(ra(this.a),t),89),s=i.c,ve(s,90)?f(s,29):(Kt(),Mf)},p.Cj=function(t){var i,s;return i=f(u_(ra(this.a),t),89),s=i.c,ve(s,90)?f(s,29):(Kt(),Mf)},p.Dj=function(t,i){return Q4n(this,t,f(i,29))},p.Li=function(){return!1},p.Ij=function(t,i,s,a,c){return null},p.sj=function(){return new yst(this)},p.tj=function(){Vn(ra(this.a))},p.uj=function(t){return a_t(this,t)},p.vj=function(t){var i,s;for(s=t.Kc();s.Ob();)if(i=s.Pb(),!a_t(this,i))return!1;return!0},p.wj=function(t){var i,s,a;if(ve(t,15)&&(a=f(t,15),a.gc()==ra(this.a).i)){for(i=a.Kc(),s=new Sn(this);i.Ob();)if(Ne(i.Pb())!==Ne(Cn(s)))return!1;return!0}return!1},p.yj=function(){var t,i,s,a,c;for(s=1,i=new Sn(ra(this.a));i.e!=i.i.gc();)t=f(Cn(i),89),a=(c=t.c,ve(c,90)?f(c,29):(Kt(),Mf)),s=31*s+(a?Cm(a):0);return s},p.zj=function(t){var i,s,a,c;for(a=0,s=new Sn(ra(this.a));s.e!=s.i.gc();){if(i=f(Cn(s),89),Ne(t)===Ne((c=i.c,ve(c,90)?f(c,29):(Kt(),Mf))))return a;++a}return-1},p.Aj=function(){return ra(this.a).i==0},p.Bj=function(){return null},p.Ej=function(){return ra(this.a).i},p.Fj=function(){var t,i,s,a,c,b;for(b=ra(this.a).i,c=Fe(ho,on,1,b,5,1),s=0,i=new Sn(ra(this.a));i.e!=i.i.gc();)t=f(Cn(i),89),c[s++]=(a=t.c,ve(a,90)?f(a,29):(Kt(),Mf));return c},p.Gj=function(t){var i,s,a,c,b,g,m;for(m=ra(this.a).i,t.lengthm&&Ci(t,m,null),a=0,s=new Sn(ra(this.a));s.e!=s.i.gc();)i=f(Cn(s),89),b=(g=i.c,ve(g,90)?f(g,29):(Kt(),Mf)),Ci(t,a++,b);return t},p.Hj=function(){var t,i,s,a,c;for(c=new ig,c.a+="[",t=ra(this.a),i=0,a=ra(this.a).i;i>16,c>=0?Yte(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,6,s);case 9:return!this.a&&(this.a=new qe(Db,this,9,5)),xa(this.a,t,s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),b0)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),b0)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 6:return xu(this,null,6,s);case 7:return!this.A&&(this.A=new uc(Ga,this,7)),fs(this.A,t,s);case 9:return!this.a&&(this.a=new qe(Db,this,9,5)),fs(this.a,t,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),b0)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),b0)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!ny(this);case 4:return!!zSe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!yC(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return zu(this,t-Pn((Kt(),b0)),tn((i=f(dn(this,16),29),i||b0),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:ZB(this,or(i));return;case 2:RQ(this,or(i));return;case 5:vA(this,or(i));return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A),!this.A&&(this.A=new uc(Ga,this,7)),Ii(this.A,f(i,16));return;case 8:tH(this,wt(gt(i)));return;case 9:!this.a&&(this.a=new qe(Db,this,9,5)),Vn(this.a),!this.a&&(this.a=new qe(Db,this,9,5)),Ii(this.a,f(i,16));return}Qu(this,t-Pn((Kt(),b0)),tn((s=f(dn(this,16),29),s||b0),t),i)},p.ii=function(){return Kt(),b0},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,184)&&(f(this.Cb,184).tb=null),Ra(this,null);return;case 2:KC(this,null),PC(this,this.D);return;case 5:vA(this,null);return;case 7:!this.A&&(this.A=new uc(Ga,this,7)),Vn(this.A);return;case 8:tH(this,!0);return;case 9:!this.a&&(this.a=new qe(Db,this,9,5)),Vn(this.a);return}Yu(this,t-Pn((Kt(),b0)),tn((i=f(dn(this,16),29),i||b0),t))},p.pi=function(){var t,i;if(this.a)for(t=0,i=this.a.i;t>16==5?f(this.Cb,685):null}return qu(this,t-Pn((Kt(),Gg)),tn((a=f(dn(this,16),29),a||Gg),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 5:return this.Cb&&(s=(c=this.Db>>16,c>=0?i2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,5,s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),Gg)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),Gg)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 5:return xu(this,null,5,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),Gg)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),Gg)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&f(this.Cb,685))}return zu(this,t-Pn((Kt(),Gg)),tn((i=f(dn(this,16),29),i||Gg),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ra(this,or(i));return;case 2:Tee(this,f(i,17).a);return;case 3:tkt(this,f(i,2039));return;case 4:Iee(this,or(i));return}Qu(this,t-Pn((Kt(),Gg)),tn((s=f(dn(this,16),29),s||Gg),t),i)},p.ii=function(){return Kt(),Gg},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:Ra(this,null);return;case 2:Tee(this,0);return;case 3:tkt(this,null);return;case 4:Iee(this,null);return}Yu(this,t-Pn((Kt(),Gg)),tn((i=f(dn(this,16),29),i||Gg),t))},p.Ib=function(){var t;return t=this.c,t??this.zb},p.b=null,p.c=null,p.d=0,N(fn,"EEnumLiteralImpl",582);var $Fn=Ei(fn,"EFactoryImpl/InternalEDateTimeFormat");P(499,1,{2114:1},NO),N(fn,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),P(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},dm),p.Ch=function(t,i,s){var a;return s=xu(this,t,i,s),this.e&&ve(t,179)&&(a=HH(this,this.e),a!=this.c&&(s=_A(this,a,s))),s},p.Lh=function(t,i,s){var a;switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new zi(Os,this,1)),this.d;case 2:return i?tU(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return i?Ute(this):this.a}return qu(this,t-Pn((Kt(),jy)),tn((a=f(dn(this,16),29),a||jy),t),i,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return Xvt(this,null,s);case 1:return!this.d&&(this.d=new zi(Os,this,1)),fs(this.d,t,s);case 3:return Jvt(this,null,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),jy)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),jy)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return zu(this,t-Pn((Kt(),jy)),tn((i=f(dn(this,16),29),i||jy),t))},p.bi=function(t,i){var s;switch(t){case 0:E2t(this,f(i,89));return;case 1:!this.d&&(this.d=new zi(Os,this,1)),Vn(this.d),!this.d&&(this.d=new zi(Os,this,1)),Ii(this.d,f(i,16));return;case 3:kEe(this,f(i,89));return;case 4:UEe(this,f(i,850));return;case 5:CC(this,f(i,142));return}Qu(this,t-Pn((Kt(),jy)),tn((s=f(dn(this,16),29),s||jy),t),i)},p.ii=function(){return Kt(),jy},p.ki=function(t){var i;switch(t){case 0:E2t(this,null);return;case 1:!this.d&&(this.d=new zi(Os,this,1)),Vn(this.d);return;case 3:kEe(this,null);return;case 4:UEe(this,null);return;case 5:CC(this,null);return}Yu(this,t-Pn((Kt(),jy)),tn((i=f(dn(this,16),29),i||jy),t))},p.Ib=function(){var t;return t=new gu(rd(this)),t.a+=" (expression: ",Yne(this,t),t.a+=")",t.a};var ROe;N(fn,"EGenericTypeImpl",248),P(2067,2062,cG),p.Gi=function(t,i){Tdt(this,t,i)},p.Wk=function(t,i){return Tdt(this,this.gc(),t),i},p.$i=function(t){return tf(this.pj(),t)},p.Ii=function(){return this.Ji()},p.pj=function(){return new Est(this)},p.Ji=function(){return this.Ki(0)},p.Ki=function(t){return this.pj().fd(t)},p.Xk=function(t,i){return e_(this,t,!0),i},p.Ti=function(t,i){var s,a;return a=ene(this,i),s=this.fd(t),s.Rb(a),a},p.Ui=function(t,i){var s;e_(this,i,!0),s=this.fd(t),s.Rb(i)},N(fi,"AbstractSequentialInternalEList",2067),P(496,2067,cG,f7),p.$i=function(t){return tf(this.pj(),t)},p.Ii=function(){return this.b==null?(lg(),lg(),Q9):this.sl()},p.pj=function(){return new qut(this.a,this.b)},p.Ji=function(){return this.b==null?(lg(),lg(),Q9):this.sl()},p.Ki=function(t){var i,s;if(this.b==null){if(t<0||t>1)throw ne(new Hs(kI+t+", size=0"));return lg(),lg(),Q9}for(s=this.sl(),i=0;i0;)if(i=this.c[--this.d],(!this.e||i.pk()!=$4||i.Lj()!=0)&&(!this.vl()||this.b.Xh(i))){if(b=this.b.Nh(i,this.ul()),this.f=(Ss(),f(i,69).xk()),this.f||i.Jk()){if(this.ul()?(a=f(b,15),this.k=a):(a=f(b,71),this.k=this.j=a),ve(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?wEt(this,this.p):AEt(this))return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(t=f(c,76),t.Lk(),s=t.md(),this.i=s):(s=c,this.i=s),this.g=-3,!0}else if(b!=null)return this.k=null,this.p=null,s=b,this.i=s,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(t=f(c,76),t.Lk(),s=t.md(),this.i=s):(s=c,this.i=s),this.g=-3,!0}},p.Pb=function(){return zW(this)},p.Tb=function(){return this.a},p.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw ne(new yl)},p.Vb=function(){return this.a-1},p.Qb=function(){throw ne(new rr)},p.ul=function(){return!1},p.Wb=function(t){throw ne(new rr)},p.vl=function(){return!0},p.a=0,p.d=0,p.f=!1,p.g=0,p.n=0,p.o=0;var Q9;N(fi,"EContentsEList/FeatureIteratorImpl",287),P(711,287,uG,Nme),p.ul=function(){return!0},N(fi,"EContentsEList/ResolvingFeatureIteratorImpl",711),P(1178,711,uG,pdt),p.vl=function(){return!1},N(fn,"ENamedElementImpl/1/1",1178),P(1179,287,uG,bdt),p.vl=function(){return!1},N(fn,"ENamedElementImpl/1/2",1179),P(39,152,NM,Vv,eee,yo,bee,gb,ed,K_e,qgt,q_e,Xgt,f_e,Jgt,Y_e,Ygt,d_e,Qgt,X_e,Zgt,K$,z7,MZ,J_e,e1t,h_e,t1t),p.Kj=function(){return $_e(this)},p.Rj=function(){var t;return t=$_e(this),t?t.ik():null},p.hj=function(t){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,t)},p.jj=function(){return this.c},p.Sj=function(){var t;return t=$_e(this),t?t.tk():!1},p.b=-1,N(fn,"ENotificationImpl",39),P(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},vY),p.Ah=function(t){return l2t(this,t)},p.Lh=function(t,i,s){var a,c,b;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),b=this.t,b>1||b==-1;case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?f(this.Cb,29):null;case 11:return!this.d&&(this.d=new uc(Ga,this,11)),this.d;case 12:return!this.c&&(this.c=new qe(Ly,this,12,10)),this.c;case 13:return!this.a&&(this.a=new g7(this,this)),this.a;case 14:return Wc(this)}return qu(this,t-Pn((Kt(),Vg)),tn((a=f(dn(this,16),29),a||Vg),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 10:return this.Cb&&(s=(c=this.Db>>16,c>=0?l2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,10,s);case 12:return!this.c&&(this.c=new qe(Ly,this,12,10)),xa(this.c,t,s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),Vg)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),Vg)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 9:return vZ(this,s);case 10:return xu(this,null,10,s);case 11:return!this.d&&(this.d=new uc(Ga,this,11)),fs(this.d,t,s);case 12:return!this.c&&(this.c=new qe(Ly,this,12,10)),fs(this.c,t,s);case 14:return fs(Wc(this),t,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),Vg)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),Vg)),t,s)},p.Wh=function(t){var i,s,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a=this.t,a>1||a==-1;case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return!!(this.Db>>16==10&&f(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&Wc(this.a.a).i!=0&&!(this.b&&Wte(this.b));case 14:return!!this.b&&Wte(this.b)}return zu(this,t-Pn((Kt(),Vg)),tn((i=f(dn(this,16),29),i||Vg),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ra(this,or(i));return;case 2:_g(this,wt(gt(i)));return;case 3:Sg(this,wt(gt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:Jv(this,f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return;case 11:!this.d&&(this.d=new uc(Ga,this,11)),Vn(this.d),!this.d&&(this.d=new uc(Ga,this,11)),Ii(this.d,f(i,16));return;case 12:!this.c&&(this.c=new qe(Ly,this,12,10)),Vn(this.c),!this.c&&(this.c=new qe(Ly,this,12,10)),Ii(this.c,f(i,16));return;case 13:!this.a&&(this.a=new g7(this,this)),eI(this.a),!this.a&&(this.a=new g7(this,this)),Ii(this.a,f(i,16));return;case 14:Vn(Wc(this)),Ii(Wc(this),f(i,16));return}Qu(this,t-Pn((Kt(),Vg)),tn((s=f(dn(this,16),29),s||Vg),t),i)},p.ii=function(){return Kt(),Vg},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:Ra(this,null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:Jv(this,1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return;case 11:!this.d&&(this.d=new uc(Ga,this,11)),Vn(this.d);return;case 12:!this.c&&(this.c=new qe(Ly,this,12,10)),Vn(this.c);return;case 13:this.a&&eI(this.a);return;case 14:this.b&&Vn(this.b);return}Yu(this,t-Pn((Kt(),Vg)),tn((i=f(dn(this,16),29),i||Vg),t))},p.pi=function(){var t,i;if(this.c)for(t=0,i=this.c.i;tm&&Ci(t,m,null),a=0,s=new Sn(Wc(this.a));s.e!=s.i.gc();)i=f(Cn(s),89),b=(g=i.c,g||(Kt(),vh)),Ci(t,a++,b);return t},p.Hj=function(){var t,i,s,a,c;for(c=new ig,c.a+="[",t=Wc(this.a),i=0,a=Wc(this.a).i;i1);case 5:return e6(this,t,i,s,a,this.i-f(s,15).gc()>0);default:return new gb(this.e,t,this.c,i,s,a,!0)}},p.Tj=function(){return!0},p.Qj=function(){return Wte(this)},p.Gk=function(){Vn(this)},N(fn,"EOperationImpl/2",1377),P(507,1,{2037:1,507:1},Iut),N(fn,"EPackageImpl/1",507),P(14,83,hl,qe),p.il=function(){return this.d},p.jl=function(){return this.b},p.ml=function(){return!0},p.b=0,N(fi,"EObjectContainmentWithInverseEList",14),P(365,14,hl,Xk),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectContainmentWithInverseEList/Resolving",365),P(308,365,hl,Fv),p.Ni=function(){this.a.tb=null},N(fn,"EPackageImpl/2",308),P(1278,1,{},Bhn),N(fn,"EPackageImpl/3",1278),P(733,45,k2,D0e),p._b=function(t){return Eo(t)?LZ(this,t):!!xs(this.f,t)},N(fn,"EPackageRegistryImpl",733),P(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},_Y),p.Ah=function(t){return a2t(this,t)},p.Lh=function(t,i,s){var a,c,b;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),b=this.t,b>1||b==-1;case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?f(this.Cb,62):null}return qu(this,t-Pn((Kt(),eS)),tn((a=f(dn(this,16),29),a||eS),t),i,s)},p.Sh=function(t,i,s){var a,c,b;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),xa(this.Ab,t,s);case 10:return this.Cb&&(s=(c=this.Db>>16,c>=0?a2t(this,s):this.Cb.Th(this,-1-c,null,s))),xu(this,t,10,s)}return b=f(tn((a=f(dn(this,16),29),a||(Kt(),eS)),i),69),b.wk().zk(this,ja(this),i-Pn((Kt(),eS)),t,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 9:return vZ(this,s);case 10:return xu(this,null,10,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),eS)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),eS)),t,s)},p.Wh=function(t){var i,s,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a=this.t,a>1||a==-1;case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return!!(this.Db>>16==10&&f(this.Cb,62))}return zu(this,t-Pn((Kt(),eS)),tn((i=f(dn(this,16),29),i||eS),t))},p.ii=function(){return Kt(),eS},N(fn,"EParameterImpl",518),P(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},Fme),p.Lh=function(t,i,s){var a,c,b,g;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return ot(this.s);case 5:return ot(this.t);case 6:return cn(),g=this.t,g>1||g==-1;case 7:return cn(),c=this.s,c>=1;case 8:return i?_f(this):this.r;case 9:return this.q;case 10:return cn(),!!(this.Bb&sd);case 11:return cn(),!!(this.Bb&E_);case 12:return cn(),!!(this.Bb&g_);case 13:return this.j;case 14:return hA(this);case 15:return cn(),!!(this.Bb&yc);case 16:return cn(),!!(this.Bb&Vh);case 17:return Hv(this);case 18:return cn(),!!(this.Bb&Vl);case 19:return cn(),b=Es(this),!!(b&&b.Bb&Vl);case 20:return cn(),!!(this.Bb&ys);case 21:return i?Es(this):this.b;case 22:return i?DSe(this):R0t(this);case 23:return!this.a&&(this.a=new KS(Y_,this,23)),this.a}return qu(this,t-Pn((Kt(),pE)),tn((a=f(dn(this,16),29),a||pE),t),i,s)},p.Wh=function(t){var i,s,a,c;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return s=this.s,s>=1;case 8:return!!this.r&&!this.q.e&&Mm(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Mm(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&E_)!=0;case 12:return(this.Bb&g_)!=0;case 13:return this.j!=null;case 14:return hA(this)!=null;case 15:return(this.Bb&yc)!=0;case 16:return(this.Bb&Vh)!=0;case 17:return!!Hv(this);case 18:return(this.Bb&Vl)!=0;case 19:return a=Es(this),!!a&&(a.Bb&Vl)!=0;case 20:return(this.Bb&ys)==0;case 21:return!!this.b;case 22:return!!R0t(this);case 23:return!!this.a&&this.a.i!=0}return zu(this,t-Pn((Kt(),pE)),tn((i=f(dn(this,16),29),i||pE),t))},p.bi=function(t,i){var s,a;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:KZ(this,or(i));return;case 2:_g(this,wt(gt(i)));return;case 3:Sg(this,wt(gt(i)));return;case 4:wg(this,f(i,17).a);return;case 5:Jv(this,f(i,17).a);return;case 8:dw(this,f(i,142));return;case 9:a=oh(this,f(i,89),null),a&&a.oj();return;case 10:JC(this,wt(gt(i)));return;case 11:ZC(this,wt(gt(i)));return;case 12:YC(this,wt(gt(i)));return;case 13:Xwe(this,or(i));return;case 15:QC(this,wt(gt(i)));return;case 16:eA(this,wt(gt(i)));return;case 18:kSn(this,wt(gt(i)));return;case 20:p2e(this,wt(gt(i)));return;case 21:dSe(this,f(i,19));return;case 23:!this.a&&(this.a=new KS(Y_,this,23)),Vn(this.a),!this.a&&(this.a=new KS(Y_,this,23)),Ii(this.a,f(i,16));return}Qu(this,t-Pn((Kt(),pE)),tn((s=f(dn(this,16),29),s||pE),t),i)},p.ii=function(){return Kt(),pE},p.ki=function(t){var i,s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:ve(this.Cb,90)&&l_(Bc(f(this.Cb,90)),4),Ra(this,null);return;case 2:_g(this,!0);return;case 3:Sg(this,!0);return;case 4:wg(this,0);return;case 5:Jv(this,1);return;case 8:dw(this,null);return;case 9:s=oh(this,null,null),s&&s.oj();return;case 10:JC(this,!0);return;case 11:ZC(this,!1);return;case 12:YC(this,!1);return;case 13:this.i=null,LW(this,null);return;case 15:QC(this,!1);return;case 16:eA(this,!1);return;case 18:h2e(this,!1),ve(this.Cb,90)&&l_(Bc(f(this.Cb,90)),2);return;case 20:p2e(this,!0);return;case 21:dSe(this,null);return;case 23:!this.a&&(this.a=new KS(Y_,this,23)),Vn(this.a);return}Yu(this,t-Pn((Kt(),pE)),tn((i=f(dn(this,16),29),i||pE),t))},p.pi=function(){DSe(this),gC(Vs((gc(),qo),this)),_f(this),this.Bb|=1},p.uk=function(){return Es(this)},p._k=function(){var t;return t=Es(this),!!t&&(t.Bb&Vl)!=0},p.al=function(){return(this.Bb&Vl)!=0},p.bl=function(){return(this.Bb&ys)!=0},p.Yk=function(t,i){return this.c=null,r2e(this,t,i)},p.Ib=function(){var t;return this.Db&64?QH(this):(t=new wf(QH(this)),t.a+=" (containment: ",og(t,(this.Bb&Vl)!=0),t.a+=", resolveProxies: ",og(t,(this.Bb&ys)!=0),t.a+=")",t.a)},N(fn,"EReferenceImpl",102),P(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},_Ze),p.Fb=function(t){return this===t},p.ld=function(){return this.b},p.md=function(){return this.c},p.Hb=function(){return Cm(this)},p.Di=function(t){Tyn(this,or(t))},p.nd=function(t){return pyn(this,or(t))},p.Lh=function(t,i,s){var a;switch(t){case 0:return this.b;case 1:return this.c}return qu(this,t-Pn((Kt(),_s)),tn((a=f(dn(this,16),29),a||_s),t),i,s)},p.Wh=function(t){var i;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return zu(this,t-Pn((Kt(),_s)),tn((i=f(dn(this,16),29),i||_s),t))},p.bi=function(t,i){var s;switch(t){case 0:$yn(this,or(i));return;case 1:cSe(this,or(i));return}Qu(this,t-Pn((Kt(),_s)),tn((s=f(dn(this,16),29),s||_s),t),i)},p.ii=function(){return Kt(),_s},p.ki=function(t){var i;switch(t){case 0:aSe(this,null);return;case 1:cSe(this,null);return}Yu(this,t-Pn((Kt(),_s)),tn((i=f(dn(this,16),29),i||_s),t))},p.Bi=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:mg(t)),this.a},p.Ci=function(t){this.a=t},p.Ib=function(){var t;return this.Db&64?rd(this):(t=new wf(rd(this)),t.a+=" (key: ",Ms(t,this.b),t.a+=", value: ",Ms(t,this.c),t.a+=")",t.a)},p.a=-1,p.b=null,p.c=null;var Ll=N(fn,"EStringToStringMapEntryImpl",561),XDt=Ei(fi,"FeatureMap/Entry/Internal");P(576,1,fG),p.xl=function(t){return this.yl(f(t,54))},p.yl=function(t){return this.xl(t)},p.Fb=function(t){var i,s;return this===t?!0:ve(t,76)?(i=f(t,76),i.Lk()==this.c?(s=this.md(),s==null?i.md()==null:Lr(s,i.md())):!1):!1},p.Lk=function(){return this.c},p.Hb=function(){var t;return t=this.md(),ti(this.c)^(t==null?0:ti(t))},p.Ib=function(){var t,i;return t=this.c,i=vu(t.qk()).yi(),t.xe(),(i!=null&&i.length!=0?i+":"+t.xe():t.xe())+"="+this.md()},N(fn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),P(791,576,fG,qme),p.yl=function(t){return new qme(this.c,t)},p.md=function(){return this.a},p.zl=function(t,i,s){return hRn(this,t,this.a,i,s)},p.Al=function(t,i,s){return pRn(this,t,this.a,i,s)},N(fn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),P(1350,1,{},Put),p.yk=function(t,i,s,a,c){var b;return b=f(EC(t,this.b),220),b.Yl(this.a).Fk(a)},p.zk=function(t,i,s,a,c){var b;return b=f(EC(t,this.b),220),b.Pl(this.a,a,c)},p.Ak=function(t,i,s,a,c){var b;return b=f(EC(t,this.b),220),b.Ql(this.a,a,c)},p.Bk=function(t,i,s){var a;return a=f(EC(t,this.b),220),a.Yl(this.a).Qj()},p.Ck=function(t,i,s,a){var c;c=f(EC(t,this.b),220),c.Yl(this.a).Wb(a)},p.Dk=function(t,i,s){return f(EC(t,this.b),220).Yl(this.a)},p.Ek=function(t,i,s){var a;a=f(EC(t,this.b),220),a.Yl(this.a).Gk()},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),P(91,1,{},cg,Z0,fg,iw),p.yk=function(t,i,s,a,c){var b;if(b=i.li(s),b==null&&i.mi(s,b=uU(this,t)),!c)switch(this.e){case 50:case 41:return f(b,597).bk();case 40:return f(b,220).Vl()}return b},p.zk=function(t,i,s,a,c){var b,g;return g=i.li(s),g==null&&i.mi(s,g=uU(this,t)),b=f(g,71).Wk(a,c),b},p.Ak=function(t,i,s,a,c){var b;return b=i.li(s),b!=null&&(c=f(b,71).Xk(a,c)),c},p.Bk=function(t,i,s){var a;return a=i.li(s),a!=null&&f(a,79).Qj()},p.Ck=function(t,i,s,a){var c;c=f(i.li(s),79),!c&&i.mi(s,c=uU(this,t)),c.Wb(a)},p.Dk=function(t,i,s){var a,c;return c=i.li(s),c==null&&i.mi(s,c=uU(this,t)),ve(c,79)?f(c,79):(a=f(i.li(s),15),new _st(a))},p.Ek=function(t,i,s){var a;a=f(i.li(s),79),!a&&i.mi(s,a=uU(this,t)),a.Gk()},p.b=0,p.e=0,N(fn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),P(512,1,{}),p.zk=function(t,i,s,a,c){throw ne(new rr)},p.Ak=function(t,i,s,a,c){throw ne(new rr)},p.Dk=function(t,i,s){return new $bt(this,t,i,s)};var Bp;N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),P(1367,1,Doe,$bt),p.Fk=function(t){return this.a.yk(this.c,this.d,this.b,t,!0)},p.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},p.Wb=function(t){this.a.Ck(this.c,this.d,this.b,t)},p.Gk=function(){this.a.Ek(this.c,this.d,this.b)},p.b=0,N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),P(784,512,{},Dve),p.yk=function(t,i,s,a,c){return Lne(t,t.Ph(),t.Fh())==this.b?this.bl()&&a?Ene(t):t.Ph():null},p.zk=function(t,i,s,a,c){var b,g;return t.Ph()&&(c=(b=t.Fh(),b>=0?t.Ah(c):t.Ph().Th(t,-1-b,null,c))),g=yi(t.Dh(),this.e),t.Ch(a,g,c)},p.Ak=function(t,i,s,a,c){var b;return b=yi(t.Dh(),this.e),t.Ch(null,b,c)},p.Bk=function(t,i,s){var a;return a=yi(t.Dh(),this.e),!!t.Ph()&&t.Fh()==a},p.Ck=function(t,i,s,a){var c,b,g,m,_;if(a!=null&&!Wne(this.a,a))throw ne(new Gx(dG+(ve(a,58)?EEe(f(a,58).Dh()):U_e(ou(a)))+hG+this.a+"'"));if(c=t.Ph(),g=yi(t.Dh(),this.e),Ne(a)!==Ne(c)||t.Fh()!=g&&a!=null){if(oA(t,f(a,58)))throw ne(new hn(SI+t.Ib()));_=null,c&&(_=(b=t.Fh(),b>=0?t.Ah(_):t.Ph().Th(t,-1-b,null,_))),m=f(a,54),m&&(_=m.Rh(t,yi(m.Dh(),this.b),null,_)),_=t.Ch(m,g,_),_&&_.oj()}else t.vh()&&t.wh()&&Dr(t,new yo(t,1,g,a,a))},p.Ek=function(t,i,s){var a,c,b,g;a=t.Ph(),a?(g=(c=t.Fh(),c>=0?t.Ah(null):t.Ph().Th(t,-1-c,null,null)),b=yi(t.Dh(),this.e),g=t.Ch(null,b,g),g&&g.oj()):t.vh()&&t.wh()&&Dr(t,new K$(t,1,this.e,null,null))},p.bl=function(){return!1},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),P(1351,784,{},vht),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),P(574,512,{}),p.yk=function(t,i,s,a,c){var b;return b=i.li(s),b==null?this.b:Ne(b)===Ne(Bp)?null:b},p.Bk=function(t,i,s){var a;return a=i.li(s),a!=null&&(Ne(a)===Ne(Bp)||!Lr(a,this.b))},p.Ck=function(t,i,s,a){var c,b;t.vh()&&t.wh()?(c=(b=i.li(s),b==null?this.b:Ne(b)===Ne(Bp)?null:b),a==null?this.c!=null?(i.mi(s,null),a=this.b):this.b!=null?i.mi(s,Bp):i.mi(s,null):(this.Bl(a),i.mi(s,a)),Dr(t,this.d.Cl(t,1,this.e,c,a))):a==null?this.c!=null?i.mi(s,null):this.b!=null?i.mi(s,Bp):i.mi(s,null):(this.Bl(a),i.mi(s,a))},p.Ek=function(t,i,s){var a,c;t.vh()&&t.wh()?(a=(c=i.li(s),c==null?this.b:Ne(c)===Ne(Bp)?null:c),i.ni(s),Dr(t,this.d.Cl(t,1,this.e,a,this.b))):i.ni(s)},p.Bl=function(t){throw ne(new Pst)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),P(N2,1,{},SZe),p.Cl=function(t,i,s,a,c){return new K$(t,i,s,a,c)},p.Dl=function(t,i,s,a,c,b){return new MZ(t,i,s,a,c,b)};var xOe,COe,AOe,TOe,$Oe,IOe,POe,Dce,OOe;N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",N2),P(1368,N2,{},EZe),p.Cl=function(t,i,s,a,c){return new h_e(t,i,s,wt(gt(a)),wt(gt(c)))},p.Dl=function(t,i,s,a,c,b){return new t1t(t,i,s,wt(gt(a)),wt(gt(c)),b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),P(1369,N2,{},kZe),p.Cl=function(t,i,s,a,c){return new K_e(t,i,s,f(a,222).a,f(c,222).a)},p.Dl=function(t,i,s,a,c,b){return new qgt(t,i,s,f(a,222).a,f(c,222).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),P(1370,N2,{},RZe),p.Cl=function(t,i,s,a,c){return new q_e(t,i,s,f(a,180).a,f(c,180).a)},p.Dl=function(t,i,s,a,c,b){return new Xgt(t,i,s,f(a,180).a,f(c,180).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),P(1371,N2,{},xZe),p.Cl=function(t,i,s,a,c){return new f_e(t,i,s,Ae(je(a)),Ae(je(c)))},p.Dl=function(t,i,s,a,c,b){return new Jgt(t,i,s,Ae(je(a)),Ae(je(c)),b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),P(1372,N2,{},CZe),p.Cl=function(t,i,s,a,c){return new Y_e(t,i,s,f(a,161).a,f(c,161).a)},p.Dl=function(t,i,s,a,c,b){return new Ygt(t,i,s,f(a,161).a,f(c,161).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),P(1373,N2,{},AZe),p.Cl=function(t,i,s,a,c){return new d_e(t,i,s,f(a,17).a,f(c,17).a)},p.Dl=function(t,i,s,a,c,b){return new Qgt(t,i,s,f(a,17).a,f(c,17).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),P(1374,N2,{},TZe),p.Cl=function(t,i,s,a,c){return new X_e(t,i,s,f(a,168).a,f(c,168).a)},p.Dl=function(t,i,s,a,c,b){return new Zgt(t,i,s,f(a,168).a,f(c,168).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),P(1375,N2,{},$Ze),p.Cl=function(t,i,s,a,c){return new J_e(t,i,s,f(a,191).a,f(c,191).a)},p.Dl=function(t,i,s,a,c,b){return new e1t(t,i,s,f(a,191).a,f(c,191).a,b)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),P(1353,574,{},Ibt),p.Bl=function(t){if(!this.a.fk(t))throw ne(new Gx(dG+ou(t)+hG+this.a+"'"))},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),P(1354,574,{},mpt),p.Bl=function(t){},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),P(785,574,{}),p.Bk=function(t,i,s){var a;return a=i.li(s),a!=null},p.Ck=function(t,i,s,a){var c,b;t.vh()&&t.wh()?(c=!0,b=i.li(s),b==null?(c=!1,b=this.b):Ne(b)===Ne(Bp)&&(b=null),a==null?this.c!=null?(i.mi(s,null),a=this.b):i.mi(s,Bp):(this.Bl(a),i.mi(s,a)),Dr(t,this.d.Dl(t,1,this.e,b,a,!c))):a==null?this.c!=null?i.mi(s,null):i.mi(s,Bp):(this.Bl(a),i.mi(s,a))},p.Ek=function(t,i,s){var a,c;t.vh()&&t.wh()?(a=!0,c=i.li(s),c==null?(a=!1,c=this.b):Ne(c)===Ne(Bp)&&(c=null),i.ni(s),Dr(t,this.d.Dl(t,2,this.e,c,this.b,a))):i.ni(s)},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),P(1355,785,{},Pbt),p.Bl=function(t){if(!this.a.fk(t))throw ne(new Gx(dG+ou(t)+hG+this.a+"'"))},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),P(1356,785,{},ypt),p.Bl=function(t){},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),P(410,512,{},kB),p.yk=function(t,i,s,a,c){var b,g,m,_,k;if(k=i.li(s),this.tk()&&Ne(k)===Ne(Bp))return null;if(this.bl()&&a&&k!=null){if(m=f(k,54),m.Vh()&&(_=D1(t,m),m!=_)){if(!Wne(this.a,_))throw ne(new Gx(dG+ou(_)+hG+this.a+"'"));i.mi(s,k=_),this.al()&&(b=f(_,54),g=m.Th(t,this.b?yi(m.Dh(),this.b):-1-yi(t.Dh(),this.e),null,null),!b.Ph()&&(g=b.Rh(t,this.b?yi(b.Dh(),this.b):-1-yi(t.Dh(),this.e),null,g)),g&&g.oj()),t.vh()&&t.wh()&&Dr(t,new K$(t,9,this.e,m,_))}return k}else return k},p.zk=function(t,i,s,a,c){var b,g;return g=i.li(s),Ne(g)===Ne(Bp)&&(g=null),i.mi(s,a),this.Mj()?Ne(g)!==Ne(a)&&g!=null&&(b=f(g,54),c=b.Th(t,yi(b.Dh(),this.b),null,c)):this.al()&&g!=null&&(c=f(g,54).Th(t,-1-yi(t.Dh(),this.e),null,c)),t.vh()&&t.wh()&&(!c&&(c=new y1(4)),c.nj(new K$(t,1,this.e,g,a))),c},p.Ak=function(t,i,s,a,c){var b;return b=i.li(s),Ne(b)===Ne(Bp)&&(b=null),i.ni(s),t.vh()&&t.wh()&&(!c&&(c=new y1(4)),this.tk()?c.nj(new K$(t,2,this.e,b,null)):c.nj(new K$(t,1,this.e,b,null))),c},p.Bk=function(t,i,s){var a;return a=i.li(s),a!=null},p.Ck=function(t,i,s,a){var c,b,g,m,_;if(a!=null&&!Wne(this.a,a))throw ne(new Gx(dG+(ve(a,58)?EEe(f(a,58).Dh()):U_e(ou(a)))+hG+this.a+"'"));_=i.li(s),m=_!=null,this.tk()&&Ne(_)===Ne(Bp)&&(_=null),g=null,this.Mj()?Ne(_)!==Ne(a)&&(_!=null&&(c=f(_,54),g=c.Th(t,yi(c.Dh(),this.b),null,g)),a!=null&&(c=f(a,54),g=c.Rh(t,yi(c.Dh(),this.b),null,g))):this.al()&&Ne(_)!==Ne(a)&&(_!=null&&(g=f(_,54).Th(t,-1-yi(t.Dh(),this.e),null,g)),a!=null&&(g=f(a,54).Rh(t,-1-yi(t.Dh(),this.e),null,g))),a==null&&this.tk()?i.mi(s,Bp):i.mi(s,a),t.vh()&&t.wh()?(b=new MZ(t,1,this.e,_,a,this.tk()&&!m),g?(g.nj(b),g.oj()):Dr(t,b)):g&&g.oj()},p.Ek=function(t,i,s){var a,c,b,g,m;m=i.li(s),g=m!=null,this.tk()&&Ne(m)===Ne(Bp)&&(m=null),b=null,m!=null&&(this.Mj()?(a=f(m,54),b=a.Th(t,yi(a.Dh(),this.b),null,b)):this.al()&&(b=f(m,54).Th(t,-1-yi(t.Dh(),this.e),null,b))),i.ni(s),t.vh()&&t.wh()?(c=new MZ(t,this.tk()?2:1,this.e,m,null,g),b?(b.nj(c),b.oj()):Dr(t,c)):b&&b.oj()},p.Mj=function(){return!1},p.al=function(){return!1},p.bl=function(){return!1},p.tk=function(){return!1},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),P(575,410,{},FQ),p.al=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),P(1359,575,{},wdt),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),P(787,575,{},Mme),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),P(1361,787,{},mdt),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),P(650,575,{},QQ),p.Mj=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),P(1360,650,{},_ht),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),P(788,650,{},_ye),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),P(1362,788,{},Sht),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),P(651,410,{},Dme),p.bl=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),P(1363,651,{},ydt),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),P(789,651,{},yye),p.Mj=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),P(1364,789,{},Eht),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),P(1357,410,{},vdt),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),P(786,410,{},vye),p.Mj=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),P(1358,786,{},kht),p.tk=function(){return!0},N(fn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),P(790,576,fG,wve),p.yl=function(t){return new wve(this.a,this.c,t)},p.md=function(){return this.b},p.zl=function(t,i,s){return fkn(this,t,this.b,s)},p.Al=function(t,i,s){return dkn(this,t,this.b,s)},N(fn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),P(1365,1,Doe,_st),p.Fk=function(t){return this.a},p.Qj=function(){return ve(this.a,97)?f(this.a,97).Qj():!this.a.dc()},p.Wb=function(t){this.a.$b(),this.a.Gc(f(t,15))},p.Gk=function(){ve(this.a,97)?f(this.a,97).Gk():this.a.$b()},N(fn,"EStructuralFeatureImpl/SettingMany",1365),P(1366,576,fG,z1t),p.xl=function(t){return new HQ((Jr(),U5),this.b.ri(this.a,t))},p.md=function(){return null},p.zl=function(t,i,s){return s},p.Al=function(t,i,s){return s},N(fn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),P(652,576,fG,HQ),p.xl=function(t){return new HQ(this.c,t)},p.md=function(){return this.a},p.zl=function(t,i,s){return s},p.Al=function(t,i,s){return s},N(fn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),P(403,506,ep,Dx),p.aj=function(t){return Fe(Pf,on,29,t,0,1)},p.Yi=function(){return!1},N(fn,"ESuperAdapter/1",403),P(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},eY),p.Lh=function(t,i,s){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new U$(this,Os,this)),this.a}return qu(this,t-Pn((Kt(),Fy)),tn((a=f(dn(this,16),29),a||Fy),t),i,s)},p.Uh=function(t,i,s){var a,c;switch(i){case 0:return!this.Ab&&(this.Ab=new qe(_r,this,0,3)),fs(this.Ab,t,s);case 2:return!this.a&&(this.a=new U$(this,Os,this)),fs(this.a,t,s)}return c=f(tn((a=f(dn(this,16),29),a||(Kt(),Fy)),i),69),c.wk().Ak(this,ja(this),i-Pn((Kt(),Fy)),t,s)},p.Wh=function(t){var i;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return zu(this,t-Pn((Kt(),Fy)),tn((i=f(dn(this,16),29),i||Fy),t))},p.bi=function(t,i){var s;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab),!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Ii(this.Ab,f(i,16));return;case 1:Ra(this,or(i));return;case 2:!this.a&&(this.a=new U$(this,Os,this)),Vn(this.a),!this.a&&(this.a=new U$(this,Os,this)),Ii(this.a,f(i,16));return}Qu(this,t-Pn((Kt(),Fy)),tn((s=f(dn(this,16),29),s||Fy),t),i)},p.ii=function(){return Kt(),Fy},p.ki=function(t){var i;switch(t){case 0:!this.Ab&&(this.Ab=new qe(_r,this,0,3)),Vn(this.Ab);return;case 1:Ra(this,null);return;case 2:!this.a&&(this.a=new U$(this,Os,this)),Vn(this.a);return}Yu(this,t-Pn((Kt(),Fy)),tn((i=f(dn(this,16),29),i||Fy),t))},N(fn,"ETypeParameterImpl",457),P(458,83,hl,U$),p.Nj=function(t,i){return x6n(this,f(t,89),i)},p.Oj=function(t,i){return C6n(this,f(t,89),i)},N(fn,"ETypeParameterImpl/1",458),P(647,45,k2,SY),p.ec=function(){return new Yj(this)},N(fn,"ETypeParameterImpl/2",647),P(570,lh,wc,Yj),p.Fc=function(t){return zdt(this,f(t,89))},p.Gc=function(t){var i,s,a;for(a=!1,s=t.Kc();s.Ob();)i=f(s.Pb(),89),xr(this.a,i,"")==null&&(a=!0);return a},p.$b=function(){xc(this.a)},p.Hc=function(t){return Na(this.a,t)},p.Kc=function(){var t;return t=new aw(new U0(this.a).a),new Qj(t)},p.Mc=function(t){return D0t(this,t)},p.gc=function(){return u$(this.a)},N(fn,"ETypeParameterImpl/2/1",570),P(571,1,ko,Qj),p.Nb=function(t){Uo(this,t)},p.Pb=function(){return f(Xm(this.a).ld(),89)},p.Ob=function(){return this.a.b},p.Qb=function(){Vwt(this.a)},N(fn,"ETypeParameterImpl/2/1/1",571),P(1329,45,k2,flt),p._b=function(t){return Eo(t)?LZ(this,t):!!xs(this.f,t)},p.xc=function(t){var i,s;return i=Eo(t)?ua(this,t):tl(xs(this.f,t)),ve(i,851)?(s=f(i,851),i=s.Kk(),xr(this,f(t,241),i),i):i??(t==null?(WY(),YDt):null)},N(fn,"EValidatorRegistryImpl",1329),P(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},IZe),p.ri=function(t,i){switch(t.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return i==null?null:dl(i);case 25:return E3n(i);case 27:return Lkn(i);case 28:return jkn(i);case 29:return i==null?null:Eft(L5[0],f(i,206));case 41:return i==null?"":z0(f(i,297));case 42:return dl(i);case 50:return or(i);default:throw ne(new hn(HA+t.xe()+gy))}},p.si=function(t){var i,s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe;switch(t.G==-1&&(t.G=(W=vu(t),W?Rg(W.vi(),t):-1)),t.G){case 0:return s=new yY,s;case 1:return i=new D1e,i;case 2:return a=new B1e,a;case 4:return c=new Zj,c;case 5:return b=new ult,b;case 6:return g=new Mst,g;case 7:return m=new W1e,m;case 10:return k=new Hj,k;case 11:return I=new vY,I;case 12:return D=new Bbt,D;case 13:return U=new _Y,U;case 14:return z=new Fme,z;case 17:return X=new _Ze,X;case 18:return _=new dm,_;case 19:return oe=new eY,oe;default:throw ne(new hn(voe+t.zb+gy))}},p.ti=function(t,i){switch(t.hk()){case 20:return i==null?null:new lwe(i);case 21:return i==null?null:new k1(i);case 23:case 22:return i==null?null:DAn(i);case 26:case 24:return i==null?null:Z7(Ru(i,-128,127)<<24>>24);case 25:return tPn(i);case 27:return ETn(i);case 28:return kTn(i);case 29:return K6n(i);case 32:case 31:return i==null?null:o_(i);case 38:case 37:return i==null?null:new k0e(i);case 40:case 39:return i==null?null:ot(Ru(i,Qo,Nr));case 41:return null;case 42:return i==null,null;case 44:case 43:return i==null?null:Eb(cU(i));case 49:case 48:return i==null?null:XC(Ru(i,pG,32767)<<16>>16);case 50:return i;default:throw ne(new hn(HA+t.xe()+gy))}},N(fn,"EcoreFactoryImpl",1349),P(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},ubt),p.gb=!1,p.hb=!1;var NOe,JDt=!1;N(fn,"EcorePackageImpl",560),P(1234,1,{851:1},PZe),p.Kk=function(){return Dft(),QDt},N(fn,"EcorePackageImpl/1",1234),P(1243,1,Rr,OZe),p.fk=function(t){return ve(t,155)},p.gk=function(t){return Fe(q9,on,155,t,0,1)},N(fn,"EcorePackageImpl/10",1243),P(1244,1,Rr,NZe),p.fk=function(t){return ve(t,197)},p.gk=function(t){return Fe(Cce,on,197,t,0,1)},N(fn,"EcorePackageImpl/11",1244),P(1245,1,Rr,MZe),p.fk=function(t){return ve(t,58)},p.gk=function(t){return Fe(d0,on,58,t,0,1)},N(fn,"EcorePackageImpl/12",1245),P(1246,1,Rr,DZe),p.fk=function(t){return ve(t,411)},p.gk=function(t){return Fe(Of,RAe,62,t,0,1)},N(fn,"EcorePackageImpl/13",1246),P(1247,1,Rr,LZe),p.fk=function(t){return ve(t,241)},p.gk=function(t){return Fe(Bd,on,241,t,0,1)},N(fn,"EcorePackageImpl/14",1247),P(1248,1,Rr,jZe),p.fk=function(t){return ve(t,518)},p.gk=function(t){return Fe(Ly,on,2116,t,0,1)},N(fn,"EcorePackageImpl/15",1248),P(1249,1,Rr,FZe),p.fk=function(t){return ve(t,102)},p.gk=function(t){return Fe(Q_,O2,19,t,0,1)},N(fn,"EcorePackageImpl/16",1249),P(1250,1,Rr,BZe),p.fk=function(t){return ve(t,179)},p.gk=function(t){return Fe(rc,O2,179,t,0,1)},N(fn,"EcorePackageImpl/17",1250),P(1251,1,Rr,WZe),p.fk=function(t){return ve(t,481)},p.gk=function(t){return Fe(J_,on,481,t,0,1)},N(fn,"EcorePackageImpl/18",1251),P(1252,1,Rr,HZe),p.fk=function(t){return ve(t,561)},p.gk=function(t){return Fe(Ll,QTt,561,t,0,1)},N(fn,"EcorePackageImpl/19",1252),P(1235,1,Rr,UZe),p.fk=function(t){return ve(t,331)},p.gk=function(t){return Fe(Y_,O2,35,t,0,1)},N(fn,"EcorePackageImpl/2",1235),P(1253,1,Rr,GZe),p.fk=function(t){return ve(t,248)},p.gk=function(t){return Fe(Os,b$t,89,t,0,1)},N(fn,"EcorePackageImpl/20",1253),P(1254,1,Rr,VZe),p.fk=function(t){return ve(t,457)},p.gk=function(t){return Fe(Ga,on,850,t,0,1)},N(fn,"EcorePackageImpl/21",1254),P(1255,1,Rr,zZe),p.fk=function(t){return Iv(t)},p.gk=function(t){return Fe(Li,rt,485,t,8,1)},N(fn,"EcorePackageImpl/22",1255),P(1256,1,Rr,KZe),p.fk=function(t){return ve(t,195)},p.gk=function(t){return Fe(_c,rt,195,t,0,2)},N(fn,"EcorePackageImpl/23",1256),P(1257,1,Rr,qZe),p.fk=function(t){return ve(t,222)},p.gk=function(t){return Fe(G3,rt,222,t,0,1)},N(fn,"EcorePackageImpl/24",1257),P(1258,1,Rr,XZe),p.fk=function(t){return ve(t,180)},p.gk=function(t){return Fe(NI,rt,180,t,0,1)},N(fn,"EcorePackageImpl/25",1258),P(1259,1,Rr,JZe),p.fk=function(t){return ve(t,206)},p.gk=function(t){return Fe(kG,rt,206,t,0,1)},N(fn,"EcorePackageImpl/26",1259),P(1260,1,Rr,YZe),p.fk=function(t){return!1},p.gk=function(t){return Fe(QOe,on,2215,t,0,1)},N(fn,"EcorePackageImpl/27",1260),P(1261,1,Rr,QZe),p.fk=function(t){return Pv(t)},p.gk=function(t){return Fe(Qi,rt,345,t,7,1)},N(fn,"EcorePackageImpl/28",1261),P(1262,1,Rr,ZZe),p.fk=function(t){return ve(t,61)},p.gk=function(t){return Fe(hOe,w_,61,t,0,1)},N(fn,"EcorePackageImpl/29",1262),P(1236,1,Rr,eet),p.fk=function(t){return ve(t,519)},p.gk=function(t){return Fe(_r,{3:1,4:1,5:1,2033:1},598,t,0,1)},N(fn,"EcorePackageImpl/3",1236),P(1263,1,Rr,tet),p.fk=function(t){return ve(t,582)},p.gk=function(t){return Fe(gOe,on,2039,t,0,1)},N(fn,"EcorePackageImpl/30",1263),P(1264,1,Rr,net),p.fk=function(t){return ve(t,160)},p.gk=function(t){return Fe(FOe,w_,160,t,0,1)},N(fn,"EcorePackageImpl/31",1264),P(1265,1,Rr,ret),p.fk=function(t){return ve(t,76)},p.gk=function(t){return Fe(Wz,k$t,76,t,0,1)},N(fn,"EcorePackageImpl/32",1265),P(1266,1,Rr,iet),p.fk=function(t){return ve(t,161)},p.gk=function(t){return Fe(XA,rt,161,t,0,1)},N(fn,"EcorePackageImpl/33",1266),P(1267,1,Rr,oet),p.fk=function(t){return ve(t,17)},p.gk=function(t){return Fe(Ko,rt,17,t,0,1)},N(fn,"EcorePackageImpl/34",1267),P(1268,1,Rr,set),p.fk=function(t){return ve(t,297)},p.gk=function(t){return Fe(jAe,on,297,t,0,1)},N(fn,"EcorePackageImpl/35",1268),P(1269,1,Rr,aet),p.fk=function(t){return ve(t,168)},p.gk=function(t){return Fe(my,rt,168,t,0,1)},N(fn,"EcorePackageImpl/36",1269),P(1270,1,Rr,cet),p.fk=function(t){return ve(t,85)},p.gk=function(t){return Fe(FAe,on,85,t,0,1)},N(fn,"EcorePackageImpl/37",1270),P(1271,1,Rr,uet),p.fk=function(t){return ve(t,599)},p.gk=function(t){return Fe(MOe,on,599,t,0,1)},N(fn,"EcorePackageImpl/38",1271),P(1272,1,Rr,fet),p.fk=function(t){return!1},p.gk=function(t){return Fe(ZOe,on,2216,t,0,1)},N(fn,"EcorePackageImpl/39",1272),P(1237,1,Rr,det),p.fk=function(t){return ve(t,90)},p.gk=function(t){return Fe(Pf,on,29,t,0,1)},N(fn,"EcorePackageImpl/4",1237),P(1273,1,Rr,het),p.fk=function(t){return ve(t,191)},p.gk=function(t){return Fe(yy,rt,191,t,0,1)},N(fn,"EcorePackageImpl/40",1273),P(1274,1,Rr,pet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(fn,"EcorePackageImpl/41",1274),P(1275,1,Rr,bet),p.fk=function(t){return ve(t,596)},p.gk=function(t){return Fe(bOe,on,596,t,0,1)},N(fn,"EcorePackageImpl/42",1275),P(1276,1,Rr,get),p.fk=function(t){return!1},p.gk=function(t){return Fe(e7e,rt,2217,t,0,1)},N(fn,"EcorePackageImpl/43",1276),P(1277,1,Rr,wet),p.fk=function(t){return ve(t,44)},p.gk=function(t){return Fe(Tw,dU,44,t,0,1)},N(fn,"EcorePackageImpl/44",1277),P(1238,1,Rr,met),p.fk=function(t){return ve(t,142)},p.gk=function(t){return Fe(Wd,on,142,t,0,1)},N(fn,"EcorePackageImpl/5",1238),P(1239,1,Rr,yet),p.fk=function(t){return ve(t,156)},p.gk=function(t){return Fe(Oce,on,156,t,0,1)},N(fn,"EcorePackageImpl/6",1239),P(1240,1,Rr,vet),p.fk=function(t){return ve(t,469)},p.gk=function(t){return Fe(Bz,on,685,t,0,1)},N(fn,"EcorePackageImpl/7",1240),P(1241,1,Rr,_et),p.fk=function(t){return ve(t,582)},p.gk=function(t){return Fe(Db,on,694,t,0,1)},N(fn,"EcorePackageImpl/8",1241),P(1242,1,Rr,Eet),p.fk=function(t){return ve(t,480)},p.gk=function(t){return Fe(D5,on,480,t,0,1)},N(fn,"EcorePackageImpl/9",1242),P(1038,2080,YTt,Plt),p.Mi=function(t,i){fCn(this,f(i,424))},p.Qi=function(t,i){xEt(this,t,f(i,424))},N(fn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),P(1039,152,NM,ebt),p.jj=function(){return this.a.a},N(fn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),P(1067,1066,{},pft),N("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var MOe=Ei(R$t,"Resource");P(799,1524,x$t),p.Hl=function(t){},p.Il=function(t){},p.El=function(){return!this.a&&(this.a=new hY(this)),this.a},p.Fl=function(t){var i,s,a,c,b;if(a=t.length,a>0)if(pn(0,t.length),t.charCodeAt(0)==47){for(b=new ka(4),c=1,i=1;i0&&(t=(Mo(0,s,t.length),t.substr(0,s))));return B5n(this,t)},p.Gl=function(){return this.c},p.Ib=function(){var t;return z0(this.Rm)+"@"+(t=ti(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},p.b=!1,N(Loe,"ResourceImpl",799),P(1525,799,x$t,Sst),N(Loe,"BinaryResourceImpl",1525),P(1190,708,Ioe),p.bj=function(t){return ve(t,58)?I_n(this,f(t,58)):ve(t,599)?new Sn(f(t,599).El()):Ne(t)===Ne(this.f)?f(t,16).Kc():(oC(),Y9.a)},p.Ob=function(){return wke(this)},p.a=!1,N(fi,"EcoreUtil/ContentTreeIterator",1190),P(1526,1190,Ioe,$pt),p.bj=function(t){return Ne(t)===Ne(this.f)?f(t,15).Kc():new C1t(f(t,58))},N(Loe,"ResourceImpl/5",1526),P(658,2092,p$t,hY),p.Hc=function(t){return this.i<=4?lA(this,t):ve(t,54)&&f(t,54).Jh()==this.a},p.Mi=function(t,i){t==this.i-1&&(this.a.b||(this.a.b=!0))},p.Oi=function(t,i){t==0?this.a.b||(this.a.b=!0):dee(this,t,i)},p.Qi=function(t,i){},p.Ri=function(t,i,s){},p.Lj=function(){return 2},p.jj=function(){return this.a},p.Mj=function(){return!0},p.Nj=function(t,i){var s;return s=f(t,54),i=s.fi(this.a,i),i},p.Oj=function(t,i){var s;return s=f(t,54),s.fi(null,i)},p.Pj=function(){return!1},p.Si=function(){return!0},p.aj=function(t){return Fe(d0,on,58,t,0,1)},p.Yi=function(){return!1},N(Loe,"ResourceImpl/ContentsEList",658),P(970,2062,xA,Est),p.fd=function(t){return this.a.Ki(t)},p.gc=function(){return this.a.gc()},N(fi,"AbstractSequentialInternalEList/1",970);var DOe,LOe,qo,jOe;P(634,1,{},Pht);var Hz,Uz;N(fi,"BasicExtendedMetaData",634),P(1181,1,{},Nut),p.Jl=function(){return null},p.Kl=function(){return this.a==-2&&upn(this,B6n(this.d,this.b)),this.a},p.Ll=function(){return null},p.Ml=function(){return qt(),qt(),ps},p.xe=function(){return this.c==VA&&fpn(this,J_t(this.d,this.b)),this.c},p.Nl=function(){return 0},p.a=-2,p.c=VA,N(fi,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),P(1182,1,{},r1t),p.Jl=function(){return this.a==(SC(),Hz)&&ppn(this,F7n(this.f,this.b)),this.a},p.Kl=function(){return 0},p.Ll=function(){return this.c==(SC(),Hz)&&dpn(this,B7n(this.f,this.b)),this.c},p.Ml=function(){return!this.d&&gpn(this,kMn(this.f,this.b)),this.d},p.xe=function(){return this.e==VA&&mpn(this,J_t(this.f,this.b)),this.e},p.Nl=function(){return this.g==-2&&vpn(this,o6n(this.f,this.b)),this.g},p.e=VA,p.g=-2,N(fi,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),P(1180,1,{},Mut),p.b=!1,p.c=!1,N(fi,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),P(1183,1,{},i1t),p.c=-2,p.e=VA,p.f=VA,N(fi,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),P(593,632,hl,pB),p.Lj=function(){return this.c},p.ol=function(){return!1},p.Wi=function(t,i){return i},p.c=0,N(fi,"EDataTypeEList",593);var FOe=Ei(fi,"FeatureMap");P(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Pi),p.bd=function(t,i){iOn(this,t,f(i,76))},p.Fc=function(t){return SPn(this,f(t,76))},p.Hi=function(t){Avn(this,f(t,76))},p.Nj=function(t,i){return X0n(this,f(t,76),i)},p.Oj=function(t,i){return cye(this,f(t,76),i)},p.Ti=function(t,i){return TNn(this,t,i)},p.Wi=function(t,i){return gDn(this,t,f(i,76))},p.hd=function(t,i){return VOn(this,t,f(i,76))},p.Uj=function(t,i){return J0n(this,f(t,76),i)},p.Vj=function(t,i){return lht(this,f(t,76),i)},p.Wj=function(t,i,s){return z$n(this,f(t,76),f(i,76),s)},p.Zi=function(t,i){return sne(this,t,f(i,76))},p.Ol=function(t,i){return a3e(this,t,i)},p.cd=function(t,i){var s,a,c,b,g,m,_,k,I;for(k=new Gm(i.gc()),c=i.Kc();c.Ob();)if(a=f(c.Pb(),76),b=a.Lk(),xb(this.e,b))(!b.Si()||!iW(this,b,a.md())&&!lA(k,a))&&zn(k,a);else{for(I=Fa(this.e.Dh(),b),s=f(this.g,124),g=!0,m=0;m=0;)if(i=t[this.c],this.k.am(i.Lk()))return this.j=this.f?i:i.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},N(fi,"BasicFeatureMap/FeatureEIterator",420),P(676,420,kp,EQ),p.ul=function(){return!0},N(fi,"BasicFeatureMap/ResolvingFeatureEIterator",676),P(968,496,cG,kft),p.pj=function(){return this},N(fi,"EContentsEList/1",968),P(969,496,cG,qut),p.ul=function(){return!1},N(fi,"EContentsEList/2",969),P(967,287,uG,Rft),p.wl=function(t){},p.Ob=function(){return!1},p.Sb=function(){return!1},N(fi,"EContentsEList/FeatureIteratorImpl/1",967),P(840,593,hl,gme),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EDataTypeEList/Unsettable",840),P(1958,593,hl,Pft),p.Si=function(){return!0},N(fi,"EDataTypeUniqueEList",1958),P(1959,840,hl,Oft),p.Si=function(){return!0},N(fi,"EDataTypeUniqueEList/Unsettable",1959),P(147,83,hl,uc),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectContainmentEList/Resolving",147),P(1184,555,hl,Nft),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectContainmentEList/Unsettable/Resolving",1184),P(766,14,hl,nye),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EObjectContainmentWithInverseEList/Unsettable",766),P(1222,766,hl,Kdt),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),P(757,505,hl,wme),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EObjectEList/Unsettable",757),P(338,505,hl,KS),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectResolvingEList",338),P(1844,757,hl,Mft),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectResolvingEList/Unsettable",1844),P(1527,1,{},ket);var YDt;N(fi,"EObjectValidator",1527),P(559,505,hl,IB),p.il=function(){return this.d},p.jl=function(){return this.b},p.Mj=function(){return!0},p.ml=function(){return!0},p.b=0,N(fi,"EObjectWithInverseEList",559),P(1225,559,hl,qdt),p.ll=function(){return!0},N(fi,"EObjectWithInverseEList/ManyInverse",1225),P(635,559,hl,GQ),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EObjectWithInverseEList/Unsettable",635),P(1224,635,hl,Xdt),p.ll=function(){return!0},N(fi,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),P(767,559,hl,rye),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectWithInverseResolvingEList",767),P(32,767,hl,en),p.ll=function(){return!0},N(fi,"EObjectWithInverseResolvingEList/ManyInverse",32),P(768,635,hl,iye),p.nl=function(){return!0},p.Wi=function(t,i){return A3(this,t,f(i,58))},N(fi,"EObjectWithInverseResolvingEList/Unsettable",768),P(1223,768,hl,Jdt),p.ll=function(){return!0},N(fi,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),P(1185,632,hl),p.Li=function(){return(this.b&1792)==0},p.Ni=function(){this.b|=1},p.kl=function(){return(this.b&4)!=0},p.Mj=function(){return(this.b&40)!=0},p.ll=function(){return(this.b&16)!=0},p.ml=function(){return(this.b&8)!=0},p.nl=function(){return(this.b&E_)!=0},p.al=function(){return(this.b&32)!=0},p.ol=function(){return(this.b&sd)!=0},p.fk=function(t){return this.d?D1t(this.d,t):this.Lk().Hk().fk(t)},p.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},p.Si=function(){return(this.b&128)!=0},p.Gk=function(){var t;Vn(this),this.b&2&&(eu(this.e)?(t=(this.b&1)!=0,this.b&=-2,Ux(this,new ed(this.e,2,yi(this.e.Dh(),this.Lk()),t,!1))):this.b&=-2)},p.Yi=function(){return(this.b&1536)==0},p.b=0,N(fi,"EcoreEList/Generic",1185),P(1186,1185,hl,Hbt),p.Lk=function(){return this.a},N(fi,"EcoreEList/Dynamic",1186),P(765,66,ep,m0e),p.aj=function(t){return rN(this.a.a,t)},N(fi,"EcoreEMap/1",765),P(764,83,hl,nve),p.Mi=function(t,i){EH(this.b,f(i,136))},p.Oi=function(t,i){Fyt(this.b)},p.Pi=function(t,i,s){var a;++(a=this.b,f(i,136),a).e},p.Qi=function(t,i){bte(this.b,f(i,136))},p.Ri=function(t,i,s){bte(this.b,f(s,136)),Ne(s)===Ne(i)&&f(s,136).Ci(Kgn(f(i,136).ld())),EH(this.b,f(i,136))},N(fi,"EcoreEMap/DelegateEObjectContainmentEList",764),P(1220,141,kAe,nyt),N(fi,"EcoreEMap/Unsettable",1220),P(1221,764,hl,Ydt),p.Ni=function(){this.a=!0},p.Qj=function(){return this.a},p.Gk=function(){var t;Vn(this),eu(this.e)?(t=this.a,this.a=!1,Dr(this.e,new ed(this.e,2,this.c,t,!1))):this.a=!1},p.a=!1,N(fi,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),P(1189,215,k2,Upt),p.a=!1,p.b=!1,N(fi,"EcoreUtil/Copier",1189),P(759,1,ko,C1t),p.Nb=function(t){Uo(this,t)},p.Ob=function(){return M_t(this)},p.Pb=function(){var t;return M_t(this),t=this.b,this.b=null,t},p.Qb=function(){this.a.Qb()},N(fi,"EcoreUtil/ProperContentIterator",759),P(1528,1527,{},knt);var QDt;N(fi,"EcoreValidator",1528);var ZDt;Ei(fi,"FeatureMapUtil/Validator"),P(1295,1,{2041:1},Ret),p.am=function(t){return!0},N(fi,"FeatureMapUtil/1",1295),P(773,1,{2041:1},L3e),p.am=function(t){var i;return this.c==t?!0:(i=gt(En(this.a,t)),i==null?z7n(this,t)?(C0t(this.a,t,(cn(),qA)),!0):(C0t(this.a,t,(cn(),Y1)),!1):i==(cn(),qA))},p.e=!1;var Lce;N(fi,"FeatureMapUtil/BasicValidator",773),P(774,45,k2,pme),N(fi,"FeatureMapUtil/BasicValidator/Cache",774),P(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},l7),p.bd=function(t,i){g3t(this.c,this.b,t,i)},p.Fc=function(t){return a3e(this.c,this.b,t)},p.cd=function(t,i){return h9n(this.c,this.b,t,i)},p.Gc=function(t){return N$(this,t)},p.Gi=function(t,i){a3n(this.c,this.b,t,i)},p.Wk=function(t,i){return e3e(this.c,this.b,t,i)},p.$i=function(t){return iU(this.c,this.b,t,!1)},p.Ii=function(){return sft(this.c,this.b)},p.Ji=function(){return Ngn(this.c,this.b)},p.Ki=function(t){return hkn(this.c,this.b,t)},p.Xk=function(t,i){return $dt(this,t,i)},p.$b=function(){Ik(this)},p.Hc=function(t){return iW(this.c,this.b,t)},p.Ic=function(t){return dRn(this.c,this.b,t)},p.Xb=function(t){return iU(this.c,this.b,t,!0)},p.Fk=function(t){return this},p.dd=function(t){return vEn(this.c,this.b,t)},p.dc=function(){return UF(this)},p.Qj=function(){return!kN(this.c,this.b)},p.Kc=function(){return Qkn(this.c,this.b)},p.ed=function(){return Zkn(this.c,this.b)},p.fd=function(t){return $Cn(this.c,this.b,t)},p.Ti=function(t,i){return IRt(this.c,this.b,t,i)},p.Ui=function(t,i){gkn(this.c,this.b,t,i)},p.gd=function(t){return cEt(this.c,this.b,t)},p.Mc=function(t){return pNn(this.c,this.b,t)},p.hd=function(t,i){return BRt(this.c,this.b,t,i)},p.Wb=function(t){FH(this.c,this.b),N$(this,f(t,15))},p.gc=function(){return TCn(this.c,this.b)},p.Pc=function(){return S2n(this.c,this.b)},p.Qc=function(t){return _En(this.c,this.b,t)},p.Ib=function(){var t,i;for(i=new ig,i.a+="[",t=sft(this.c,this.b);ote(t);)Ms(i,D$(vH(t))),ote(t)&&(i.a+=ds);return i.a+="]",i.a},p.Gk=function(){FH(this.c,this.b)},N(fi,"FeatureMapUtil/FeatureEList",509),P(644,39,NM,tee),p.hj=function(t){return E6(this,t)},p.mj=function(t){var i,s,a,c,b,g,m;switch(this.d){case 1:case 2:{if(b=t.jj(),Ne(b)===Ne(this.c)&&E6(this,null)==t.hj(null))return this.g=t.ij(),t.gj()==1&&(this.d=1),!0;break}case 3:{switch(c=t.gj(),c){case 3:{if(b=t.jj(),Ne(b)===Ne(this.c)&&E6(this,null)==t.hj(null))return this.d=5,i=new Gm(2),zn(i,this.g),zn(i,t.ij()),this.g=i,!0;break}}break}case 5:{switch(c=t.gj(),c){case 3:{if(b=t.jj(),Ne(b)===Ne(this.c)&&E6(this,null)==t.hj(null))return s=f(this.g,16),s.Fc(t.ij()),!0;break}}break}case 4:{switch(c=t.gj(),c){case 3:{if(b=t.jj(),Ne(b)===Ne(this.c)&&E6(this,null)==t.hj(null))return this.d=1,this.g=t.ij(),!0;break}case 4:{if(b=t.jj(),Ne(b)===Ne(this.c)&&E6(this,null)==t.hj(null))return this.d=6,m=new Gm(2),zn(m,this.n),zn(m,t.kj()),this.n=m,g=se(ie(Xn,1),wr,28,15,[this.o,t.lj()]),this.g=g,!0;break}}break}case 6:{switch(c=t.gj(),c){case 4:{if(b=t.jj(),Ne(b)===Ne(this.c)&&E6(this,null)==t.hj(null))return s=f(this.n,16),s.Fc(t.kj()),g=f(this.g,53),a=Fe(Xn,wr,28,g.length+1,15,1),oa(g,0,a,0,g.length),a[g.length]=t.lj(),this.g=a,!0;break}}break}}return!1},N(fi,"FeatureMapUtil/FeatureENotificationImpl",644),P(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},mB),p.Ol=function(t,i){return a3e(this.c,t,i)},p.Pl=function(t,i,s){return e3e(this.c,t,i,s)},p.Ql=function(t,i,s){return x3e(this.c,t,i,s)},p.Rl=function(){return this},p.Sl=function(t,i){return eM(this.c,t,i)},p.Tl=function(t){return f(iU(this.c,this.b,t,!1),76).Lk()},p.Ul=function(t){return f(iU(this.c,this.b,t,!1),76).md()},p.Vl=function(){return this.a},p.Wl=function(t){return!kN(this.c,t)},p.Xl=function(t,i){oU(this.c,t,i)},p.Yl=function(t){return oyt(this.c,t)},p.Zl=function(t){LSt(this.c,t)},N(fi,"FeatureMapUtil/FeatureFeatureMap",564),P(1294,1,Doe,Out),p.Fk=function(t){return iU(this.b,this.a,-1,t)},p.Qj=function(){return!kN(this.b,this.a)},p.Wb=function(t){oU(this.b,this.a,t)},p.Gk=function(){FH(this.b,this.a)},N(fi,"FeatureMapUtil/FeatureValue",1294);var hR,jce,Fce,pR,eLt,Z9=Ei(mG,"AnyType");P(680,63,Cb,$Y),N(mG,"InvalidDatatypeValueException",680);var Gz=Ei(mG,A$t),eD=Ei(mG,T$t),BOe=Ei(mG,$$t),tLt,zl,WOe,zw,nLt,rLt,iLt,oLt,sLt,lLt,aLt,cLt,uLt,fLt,dLt,bE,hLt,gE,W5,pLt,By,tD,nD,bLt,H5,U5;P(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},L0e),p.Lh=function(t,i,s){switch(t){case 0:return s?(!this.c&&(this.c=new Pi(this,0)),this.c):(!this.c&&(this.c=new Pi(this,0)),this.c.b);case 1:return s?(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)):(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),220)).Vl();case 2:return s?(!this.b&&(this.b=new Pi(this,2)),this.b):(!this.b&&(this.b=new Pi(this,2)),this.b.b)}return qu(this,t-Pn(this.ii()),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),t),i,s)},p.Uh=function(t,i,s){var a;switch(i){case 0:return!this.c&&(this.c=new Pi(this,0)),JN(this.c,t,s);case 1:return(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),71)).Xk(t,s);case 2:return!this.b&&(this.b=new Pi(this,2)),JN(this.b,t,s)}return a=f(tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),i),69),a.wk().Ak(this,B_e(this),i-Pn(this.ii()),t,s)},p.Wh=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return zu(this,t-Pn(this.ii()),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),t))},p.bi=function(t,i){switch(t){case 0:!this.c&&(this.c=new Pi(this,0)),C7(this.c,i);return;case 1:(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),220)).Wb(i);return;case 2:!this.b&&(this.b=new Pi(this,2)),C7(this.b,i);return}Qu(this,t-Pn(this.ii()),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),t),i)},p.ii=function(){return Jr(),WOe},p.ki=function(t){switch(t){case 0:!this.c&&(this.c=new Pi(this,0)),Vn(this.c);return;case 1:(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)).$b();return;case 2:!this.b&&(this.b=new Pi(this,2)),Vn(this.b);return}Yu(this,t-Pn(this.ii()),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():this.ii(),t))},p.Ib=function(){var t;return this.j&4?rd(this):(t=new wf(rd(this)),t.a+=" (mixed: ",$$(t,this.c),t.a+=", anyAttribute: ",$$(t,this.b),t.a+=")",t.a)},N(Yi,"AnyTypeImpl",844),P(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},Det),p.Lh=function(t,i,s){switch(t){case 0:return this.a;case 1:return this.b}return qu(this,t-Pn((Jr(),bE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():bE,t),i,s)},p.Wh=function(t){switch(t){case 0:return this.a!=null;case 1:return this.b!=null}return zu(this,t-Pn((Jr(),bE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():bE,t))},p.bi=function(t,i){switch(t){case 0:Epn(this,or(i));return;case 1:Rpn(this,or(i));return}Qu(this,t-Pn((Jr(),bE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():bE,t),i)},p.ii=function(){return Jr(),bE},p.ki=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}Yu(this,t-Pn((Jr(),bE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():bE,t))},p.Ib=function(){var t;return this.j&4?rd(this):(t=new wf(rd(this)),t.a+=" (data: ",Ms(t,this.a),t.a+=", target: ",Ms(t,this.b),t.a+=")",t.a)},p.a=null,p.b=null,N(Yi,"ProcessingInstructionImpl",681),P(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},dlt),p.Lh=function(t,i,s){switch(t){case 0:return s?(!this.c&&(this.c=new Pi(this,0)),this.c):(!this.c&&(this.c=new Pi(this,0)),this.c.b);case 1:return s?(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)):(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),220)).Vl();case 2:return s?(!this.b&&(this.b=new Pi(this,2)),this.b):(!this.b&&(this.b=new Pi(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Pi(this,0)),or(eM(this.c,(Jr(),W5),!0));case 4:return sye(this.a,(!this.c&&(this.c=new Pi(this,0)),or(eM(this.c,(Jr(),W5),!0))));case 5:return this.a}return qu(this,t-Pn((Jr(),gE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():gE,t),i,s)},p.Wh=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Pi(this,0)),or(eM(this.c,(Jr(),W5),!0))!=null;case 4:return sye(this.a,(!this.c&&(this.c=new Pi(this,0)),or(eM(this.c,(Jr(),W5),!0))))!=null;case 5:return!!this.a}return zu(this,t-Pn((Jr(),gE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():gE,t))},p.bi=function(t,i){switch(t){case 0:!this.c&&(this.c=new Pi(this,0)),C7(this.c,i);return;case 1:(!this.c&&(this.c=new Pi(this,0)),f(f(fa(this.c,(Jr(),zw)),160),220)).Wb(i);return;case 2:!this.b&&(this.b=new Pi(this,2)),C7(this.b,i);return;case 3:qve(this,or(i));return;case 4:qve(this,oye(this.a,i));return;case 5:kpn(this,f(i,156));return}Qu(this,t-Pn((Jr(),gE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():gE,t),i)},p.ii=function(){return Jr(),gE},p.ki=function(t){switch(t){case 0:!this.c&&(this.c=new Pi(this,0)),Vn(this.c);return;case 1:(!this.c&&(this.c=new Pi(this,0)),f(fa(this.c,(Jr(),zw)),160)).$b();return;case 2:!this.b&&(this.b=new Pi(this,2)),Vn(this.b);return;case 3:!this.c&&(this.c=new Pi(this,0)),oU(this.c,(Jr(),W5),null);return;case 4:qve(this,oye(this.a,null));return;case 5:this.a=null;return}Yu(this,t-Pn((Jr(),gE)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():gE,t))},N(Yi,"SimpleAnyTypeImpl",682),P(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},hlt),p.Lh=function(t,i,s){switch(t){case 0:return s?(!this.a&&(this.a=new Pi(this,0)),this.a):(!this.a&&(this.a=new Pi(this,0)),this.a.b);case 1:return s?(!this.b&&(this.b=new pc((Kt(),_s),Ll,this,1)),this.b):(!this.b&&(this.b=new pc((Kt(),_s),Ll,this,1)),V7(this.b));case 2:return s?(!this.c&&(this.c=new pc((Kt(),_s),Ll,this,2)),this.c):(!this.c&&(this.c=new pc((Kt(),_s),Ll,this,2)),V7(this.c));case 3:return!this.a&&(this.a=new Pi(this,0)),fa(this.a,(Jr(),tD));case 4:return!this.a&&(this.a=new Pi(this,0)),fa(this.a,(Jr(),nD));case 5:return!this.a&&(this.a=new Pi(this,0)),fa(this.a,(Jr(),H5));case 6:return!this.a&&(this.a=new Pi(this,0)),fa(this.a,(Jr(),U5))}return qu(this,t-Pn((Jr(),By)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():By,t),i,s)},p.Uh=function(t,i,s){var a;switch(i){case 0:return!this.a&&(this.a=new Pi(this,0)),JN(this.a,t,s);case 1:return!this.b&&(this.b=new pc((Kt(),_s),Ll,this,1)),lB(this.b,t,s);case 2:return!this.c&&(this.c=new pc((Kt(),_s),Ll,this,2)),lB(this.c,t,s);case 5:return!this.a&&(this.a=new Pi(this,0)),$dt(fa(this.a,(Jr(),H5)),t,s)}return a=f(tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():(Jr(),By),i),69),a.wk().Ak(this,B_e(this),i-Pn((Jr(),By)),t,s)},p.Wh=function(t){switch(t){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Pi(this,0)),!UF(fa(this.a,(Jr(),tD)));case 4:return!this.a&&(this.a=new Pi(this,0)),!UF(fa(this.a,(Jr(),nD)));case 5:return!this.a&&(this.a=new Pi(this,0)),!UF(fa(this.a,(Jr(),H5)));case 6:return!this.a&&(this.a=new Pi(this,0)),!UF(fa(this.a,(Jr(),U5)))}return zu(this,t-Pn((Jr(),By)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():By,t))},p.bi=function(t,i){switch(t){case 0:!this.a&&(this.a=new Pi(this,0)),C7(this.a,i);return;case 1:!this.b&&(this.b=new pc((Kt(),_s),Ll,this,1)),UW(this.b,i);return;case 2:!this.c&&(this.c=new pc((Kt(),_s),Ll,this,2)),UW(this.c,i);return;case 3:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),tD))),!this.a&&(this.a=new Pi(this,0)),N$(fa(this.a,tD),f(i,16));return;case 4:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),nD))),!this.a&&(this.a=new Pi(this,0)),N$(fa(this.a,nD),f(i,16));return;case 5:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),H5))),!this.a&&(this.a=new Pi(this,0)),N$(fa(this.a,H5),f(i,16));return;case 6:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),U5))),!this.a&&(this.a=new Pi(this,0)),N$(fa(this.a,U5),f(i,16));return}Qu(this,t-Pn((Jr(),By)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():By,t),i)},p.ii=function(){return Jr(),By},p.ki=function(t){switch(t){case 0:!this.a&&(this.a=new Pi(this,0)),Vn(this.a);return;case 1:!this.b&&(this.b=new pc((Kt(),_s),Ll,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new pc((Kt(),_s),Ll,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),tD)));return;case 4:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),nD)));return;case 5:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),H5)));return;case 6:!this.a&&(this.a=new Pi(this,0)),Ik(fa(this.a,(Jr(),U5)));return}Yu(this,t-Pn((Jr(),By)),tn(this.j&2?(!this.k&&(this.k=new Ed),this.k).Nk():By,t))},p.Ib=function(){var t;return this.j&4?rd(this):(t=new wf(rd(this)),t.a+=" (mixed: ",$$(t,this.a),t.a+=")",t.a)},N(Yi,"XMLTypeDocumentRootImpl",683),P(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},xet),p.ri=function(t,i){switch(t.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return i==null?null:dl(i);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return or(i);case 6:return s0n(f(i,195));case 12:case 47:case 49:case 11:return Cxt(this,t,i);case 13:return i==null?null:g9n(f(i,247));case 15:case 14:return i==null?null:Svn(Ae(je(i)));case 17:return k2t((Jr(),i));case 18:return k2t(i);case 21:case 20:return i==null?null:Evn(f(i,161).a);case 27:return l0n(f(i,195));case 30:return jSt((Jr(),f(i,15)));case 31:return jSt(f(i,15));case 40:return c0n((Jr(),i));case 42:return R2t((Jr(),i));case 43:return R2t(i);case 59:case 48:return a0n((Jr(),i));default:throw ne(new hn(HA+t.xe()+gy))}},p.si=function(t){var i,s,a,c,b;switch(t.G==-1&&(t.G=(s=vu(t),s?Rg(s.vi(),t):-1)),t.G){case 0:return i=new L0e,i;case 1:return a=new Det,a;case 2:return c=new dlt,c;case 3:return b=new hlt,b;default:throw ne(new hn(voe+t.zb+gy))}},p.ti=function(t,i){var s,a,c,b,g,m,_,k,I,D,W,U,z,X,oe,ge;switch(t.hk()){case 5:case 52:case 4:return i;case 6:return b4n(i);case 8:case 7:return i==null?null:t6n(i);case 9:return i==null?null:Z7(Ru((a=ha(i,!0),a.length>0&&(pn(0,a.length),a.charCodeAt(0)==43)?(pn(1,a.length+1),a.substr(1)):a),-128,127)<<24>>24);case 10:return i==null?null:Z7(Ru((c=ha(i,!0),c.length>0&&(pn(0,c.length),c.charCodeAt(0)==43)?(pn(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return or(ay(this,(Jr(),iLt),i));case 12:return or(ay(this,(Jr(),oLt),i));case 13:return i==null?null:new lwe(ha(i,!0));case 15:case 14:return kPn(i);case 16:return or(ay(this,(Jr(),sLt),i));case 17:return B_t((Jr(),i));case 18:return B_t(i);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return ha(i,!0);case 21:case 20:return NPn(i);case 22:return or(ay(this,(Jr(),lLt),i));case 23:return or(ay(this,(Jr(),aLt),i));case 24:return or(ay(this,(Jr(),cLt),i));case 25:return or(ay(this,(Jr(),uLt),i));case 26:return or(ay(this,(Jr(),fLt),i));case 27:return r4n(i);case 30:return W_t((Jr(),i));case 31:return W_t(i);case 32:return i==null?null:ot(Ru((I=ha(i,!0),I.length>0&&(pn(0,I.length),I.charCodeAt(0)==43)?(pn(1,I.length+1),I.substr(1)):I),Qo,Nr));case 33:return i==null?null:new k1((D=ha(i,!0),D.length>0&&(pn(0,D.length),D.charCodeAt(0)==43)?(pn(1,D.length+1),D.substr(1)):D));case 34:return i==null?null:ot(Ru((W=ha(i,!0),W.length>0&&(pn(0,W.length),W.charCodeAt(0)==43)?(pn(1,W.length+1),W.substr(1)):W),Qo,Nr));case 36:return i==null?null:Eb(cU((U=ha(i,!0),U.length>0&&(pn(0,U.length),U.charCodeAt(0)==43)?(pn(1,U.length+1),U.substr(1)):U)));case 37:return i==null?null:Eb(cU((z=ha(i,!0),z.length>0&&(pn(0,z.length),z.charCodeAt(0)==43)?(pn(1,z.length+1),z.substr(1)):z)));case 40:return eTn((Jr(),i));case 42:return H_t((Jr(),i));case 43:return H_t(i);case 44:return i==null?null:new k1((X=ha(i,!0),X.length>0&&(pn(0,X.length),X.charCodeAt(0)==43)?(pn(1,X.length+1),X.substr(1)):X));case 45:return i==null?null:new k1((oe=ha(i,!0),oe.length>0&&(pn(0,oe.length),oe.charCodeAt(0)==43)?(pn(1,oe.length+1),oe.substr(1)):oe));case 46:return ha(i,!1);case 47:return or(ay(this,(Jr(),dLt),i));case 59:case 48:return Z4n((Jr(),i));case 49:return or(ay(this,(Jr(),hLt),i));case 50:return i==null?null:XC(Ru((ge=ha(i,!0),ge.length>0&&(pn(0,ge.length),ge.charCodeAt(0)==43)?(pn(1,ge.length+1),ge.substr(1)):ge),pG,32767)<<16>>16);case 51:return i==null?null:XC(Ru((b=ha(i,!0),b.length>0&&(pn(0,b.length),b.charCodeAt(0)==43)?(pn(1,b.length+1),b.substr(1)):b),pG,32767)<<16>>16);case 53:return or(ay(this,(Jr(),pLt),i));case 55:return i==null?null:XC(Ru((g=ha(i,!0),g.length>0&&(pn(0,g.length),g.charCodeAt(0)==43)?(pn(1,g.length+1),g.substr(1)):g),pG,32767)<<16>>16);case 56:return i==null?null:XC(Ru((m=ha(i,!0),m.length>0&&(pn(0,m.length),m.charCodeAt(0)==43)?(pn(1,m.length+1),m.substr(1)):m),pG,32767)<<16>>16);case 57:return i==null?null:Eb(cU((_=ha(i,!0),_.length>0&&(pn(0,_.length),_.charCodeAt(0)==43)?(pn(1,_.length+1),_.substr(1)):_)));case 58:return i==null?null:Eb(cU((k=ha(i,!0),k.length>0&&(pn(0,k.length),k.charCodeAt(0)==43)?(pn(1,k.length+1),k.substr(1)):k)));case 60:return i==null?null:ot(Ru((s=ha(i,!0),s.length>0&&(pn(0,s.length),s.charCodeAt(0)==43)?(pn(1,s.length+1),s.substr(1)):s),Qo,Nr));case 61:return i==null?null:ot(Ru(ha(i,!0),Qo,Nr));default:throw ne(new hn(HA+t.xe()+gy))}};var gLt,HOe,wLt,UOe;N(Yi,"XMLTypeFactoryImpl",2028),P(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},fbt),p.N=!1,p.O=!1;var mLt=!1;N(Yi,"XMLTypePackageImpl",594),P(1961,1,{851:1},Cet),p.Kk=function(){return w3e(),CLt},N(Yi,"XMLTypePackageImpl/1",1961),P(1970,1,Rr,Aet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/10",1970),P(1971,1,Rr,Tet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/11",1971),P(1972,1,Rr,$et),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/12",1972),P(1973,1,Rr,Iet),p.fk=function(t){return Pv(t)},p.gk=function(t){return Fe(Qi,rt,345,t,7,1)},N(Yi,"XMLTypePackageImpl/13",1973),P(1974,1,Rr,Pet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/14",1974),P(1975,1,Rr,Oet),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/15",1975),P(1976,1,Rr,Net),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/16",1976),P(1977,1,Rr,Met),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/17",1977),P(1978,1,Rr,Let),p.fk=function(t){return ve(t,161)},p.gk=function(t){return Fe(XA,rt,161,t,0,1)},N(Yi,"XMLTypePackageImpl/18",1978),P(1979,1,Rr,jet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/19",1979),P(1962,1,Rr,Fet),p.fk=function(t){return ve(t,857)},p.gk=function(t){return Fe(Z9,on,857,t,0,1)},N(Yi,"XMLTypePackageImpl/2",1962),P(1980,1,Rr,Bet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/20",1980),P(1981,1,Rr,Wet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/21",1981),P(1982,1,Rr,Het),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/22",1982),P(1983,1,Rr,Uet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/23",1983),P(1984,1,Rr,Get),p.fk=function(t){return ve(t,195)},p.gk=function(t){return Fe(_c,rt,195,t,0,2)},N(Yi,"XMLTypePackageImpl/24",1984),P(1985,1,Rr,Vet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/25",1985),P(1986,1,Rr,zet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/26",1986),P(1987,1,Rr,Ket),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/27",1987),P(1988,1,Rr,qet),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/28",1988),P(1989,1,Rr,Xet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/29",1989),P(1963,1,Rr,Jet),p.fk=function(t){return ve(t,681)},p.gk=function(t){return Fe(Gz,on,2119,t,0,1)},N(Yi,"XMLTypePackageImpl/3",1963),P(1990,1,Rr,Yet),p.fk=function(t){return ve(t,17)},p.gk=function(t){return Fe(Ko,rt,17,t,0,1)},N(Yi,"XMLTypePackageImpl/30",1990),P(1991,1,Rr,Qet),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/31",1991),P(1992,1,Rr,Zet),p.fk=function(t){return ve(t,168)},p.gk=function(t){return Fe(my,rt,168,t,0,1)},N(Yi,"XMLTypePackageImpl/32",1992),P(1993,1,Rr,ett),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/33",1993),P(1994,1,Rr,ttt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/34",1994),P(1995,1,Rr,ntt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/35",1995),P(1996,1,Rr,rtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/36",1996),P(1997,1,Rr,itt),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/37",1997),P(1998,1,Rr,ott),p.fk=function(t){return ve(t,15)},p.gk=function(t){return Fe(lf,w_,15,t,0,1)},N(Yi,"XMLTypePackageImpl/38",1998),P(1999,1,Rr,stt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/39",1999),P(1964,1,Rr,ltt),p.fk=function(t){return ve(t,682)},p.gk=function(t){return Fe(eD,on,2120,t,0,1)},N(Yi,"XMLTypePackageImpl/4",1964),P(2e3,1,Rr,att),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/40",2e3),P(2001,1,Rr,ctt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/41",2001),P(2002,1,Rr,utt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/42",2002),P(2003,1,Rr,ftt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/43",2003),P(2004,1,Rr,dtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/44",2004),P(2005,1,Rr,htt),p.fk=function(t){return ve(t,191)},p.gk=function(t){return Fe(yy,rt,191,t,0,1)},N(Yi,"XMLTypePackageImpl/45",2005),P(2006,1,Rr,ptt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/46",2006),P(2007,1,Rr,btt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/47",2007),P(2008,1,Rr,gtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/48",2008),P(2009,1,Rr,wtt),p.fk=function(t){return ve(t,191)},p.gk=function(t){return Fe(yy,rt,191,t,0,1)},N(Yi,"XMLTypePackageImpl/49",2009),P(1965,1,Rr,mtt),p.fk=function(t){return ve(t,683)},p.gk=function(t){return Fe(BOe,on,2121,t,0,1)},N(Yi,"XMLTypePackageImpl/5",1965),P(2010,1,Rr,ytt),p.fk=function(t){return ve(t,168)},p.gk=function(t){return Fe(my,rt,168,t,0,1)},N(Yi,"XMLTypePackageImpl/50",2010),P(2011,1,Rr,vtt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/51",2011),P(2012,1,Rr,_tt),p.fk=function(t){return ve(t,17)},p.gk=function(t){return Fe(Ko,rt,17,t,0,1)},N(Yi,"XMLTypePackageImpl/52",2012),P(1966,1,Rr,Stt),p.fk=function(t){return Eo(t)},p.gk=function(t){return Fe(_t,rt,2,t,6,1)},N(Yi,"XMLTypePackageImpl/6",1966),P(1967,1,Rr,Ett),p.fk=function(t){return ve(t,195)},p.gk=function(t){return Fe(_c,rt,195,t,0,2)},N(Yi,"XMLTypePackageImpl/7",1967),P(1968,1,Rr,ktt),p.fk=function(t){return Iv(t)},p.gk=function(t){return Fe(Li,rt,485,t,8,1)},N(Yi,"XMLTypePackageImpl/8",1968),P(1969,1,Rr,Rtt),p.fk=function(t){return ve(t,222)},p.gk=function(t){return Fe(G3,rt,222,t,0,1)},N(Yi,"XMLTypePackageImpl/9",1969);var _h,Kg,G5,Vz,fe;P(55,63,Cb,ar),N(Og,"RegEx/ParseException",55),P(836,1,{},j1e),p.bm=function(t){return ts*16)throw ne(new ar(dr((ir(),WTt))));s=s*16+c}while(!0);if(this.a!=125)throw ne(new ar(dr((ir(),HTt))));if(s>zA)throw ne(new ar(dr((ir(),UTt))));t=s}else{if(c=0,this.c!=0||(c=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(s=c,Ir(this),this.c!=0||(c=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));s=s*16+c,t=s}break;case 117:if(a=0,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));i=i*16+a,t=i;break;case 118:if(Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,Ir(this),this.c!=0||(a=pw(this.a))<0)throw ne(new ar(dr((ir(),Pg))));if(i=i*16+a,i>zA)throw ne(new ar(dr((ir(),"parser.descappe.4"))));t=i;break;case 65:case 90:case 122:throw ne(new ar(dr((ir(),GTt))))}return t},p.dm=function(t){var i,s;switch(t){case 100:s=(this.e&32)==32?U1("Nd",!0):(Or(),zz);break;case 68:s=(this.e&32)==32?U1("Nd",!1):(Or(),XOe);break;case 119:s=(this.e&32)==32?U1("IsWord",!0):(Or(),O4);break;case 87:s=(this.e&32)==32?U1("IsWord",!1):(Or(),YOe);break;case 115:s=(this.e&32)==32?U1("IsSpace",!0):(Or(),bR);break;case 83:s=(this.e&32)==32?U1("IsSpace",!1):(Or(),JOe);break;default:throw ne(new vl((i=t,G$t+i.toString(16))))}return s},p.em=function(t){var i,s,a,c,b,g,m,_,k,I,D,W;for(this.b=1,Ir(this),i=null,this.c==0&&this.a==94?(Ir(this),t?I=(Or(),Or(),new yu(5)):(i=(Or(),Or(),new yu(4)),da(i,0,zA),I=new yu(4))):I=(Or(),Or(),new yu(4)),c=!0;(W=this.c)!=1&&!(W==0&&this.a==93&&!c);){if(c=!1,s=this.a,a=!1,W==10)switch(s){case 100:case 68:case 119:case 87:case 115:case 83:h_(I,this.dm(s)),a=!0;break;case 105:case 73:case 99:case 67:s=this.um(I,s),s<0&&(a=!0);break;case 112:case 80:if(D=bke(this,s),!D)throw ne(new ar(dr((ir(),Ooe))));h_(I,D),a=!0;break;default:s=this.cm()}else if(W==20){if(g=nC(this.i,58,this.d),g<0)throw ne(new ar(dr((ir(),mAe))));if(m=!0,Jo(this.i,this.d)==94&&(++this.d,m=!1),b=Vu(this.i,this.d,g),_=gwt(b,m,(this.e&512)==512),!_)throw ne(new ar(dr((ir(),DTt))));if(h_(I,_),a=!0,g+1>=this.j||Jo(this.i,g+1)!=93)throw ne(new ar(dr((ir(),mAe))));this.d=g+2}if(Ir(this),!a)if(this.c!=0||this.a!=45)da(I,s,s);else{if(Ir(this),(W=this.c)==1)throw ne(new ar(dr((ir(),lG))));W==0&&this.a==93?(da(I,s,s),da(I,45,45)):(k=this.a,W==10&&(k=this.cm()),Ir(this),da(I,s,k))}(this.e&sd)==sd&&this.c==0&&this.a==44&&Ir(this)}if(this.c==1)throw ne(new ar(dr((ir(),lG))));return i&&(tI(i,I),I=i),b2(I),Z6(I),this.b=0,Ir(this),I},p.fm=function(){var t,i,s,a;for(s=this.em(!1);(a=this.c)!=7;)if(t=this.a,a==0&&(t==45||t==38)||a==4){if(Ir(this),this.c!=9)throw ne(new ar(dr((ir(),jTt))));if(i=this.em(!1),a==4)h_(s,i);else if(t==45)tI(s,i);else if(t==38)Ext(s,i);else throw ne(new vl("ASSERT"))}else throw ne(new ar(dr((ir(),FTt))));return Ir(this),s},p.gm=function(){var t,i;return t=this.a-48,i=(Or(),Or(),new BZ(12,null,t)),!this.g&&(this.g=new tF),eF(this.g,new y0e(t)),Ir(this),i},p.hm=function(){return Ir(this),Or(),_Lt},p.im=function(){return Ir(this),Or(),vLt},p.jm=function(){throw ne(new ar(dr((ir(),sf))))},p.km=function(){throw ne(new ar(dr((ir(),sf))))},p.lm=function(){return Ir(this),mxn()},p.mm=function(){return Ir(this),Or(),ELt},p.nm=function(){return Ir(this),Or(),RLt},p.om=function(){var t;if(this.d>=this.j||((t=Jo(this.i,this.d++))&65504)!=64)throw ne(new ar(dr((ir(),OTt))));return Ir(this),Or(),Or(),new gp(0,t-64)},p.pm=function(){return Ir(this),_Mn()},p.qm=function(){return Ir(this),Or(),xLt},p.rm=function(){var t;return t=(Or(),Or(),new gp(0,105)),Ir(this),t},p.sm=function(){return Ir(this),Or(),kLt},p.tm=function(){return Ir(this),Or(),SLt},p.um=function(t,i){return this.cm()},p.vm=function(){return Ir(this),Or(),KOe},p.wm=function(){var t,i,s,a,c;if(this.d+1>=this.j)throw ne(new ar(dr((ir(),$Tt))));if(a=-1,i=null,t=Jo(this.i,this.d),49<=t&&t<=57){if(a=t-48,!this.g&&(this.g=new tF),eF(this.g,new y0e(a)),++this.d,Jo(this.i,this.d)!=41)throw ne(new ar(dr((ir(),Cw))));++this.d}else switch(t==63&&--this.d,Ir(this),i=H3e(this),i.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw ne(new ar(dr((ir(),Cw))));break;default:throw ne(new ar(dr((ir(),ITt))))}if(Ir(this),c=ey(this),s=null,c.e==2){if(c.Pm()!=2)throw ne(new ar(dr((ir(),PTt))));s=c.Lm(1),c=c.Lm(0)}if(this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),Or(),Or(),new Ywt(a,i,c,s)},p.xm=function(){return Ir(this),Or(),qOe},p.ym=function(){var t;if(Ir(this),t=PB(24,ey(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.zm=function(){var t;if(Ir(this),t=PB(20,ey(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Am=function(){var t;if(Ir(this),t=PB(22,ey(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Bm=function(){var t,i,s,a,c;for(t=0,s=0,i=-1;this.d=this.j)throw ne(new ar(dr((ir(),gAe))));if(i==45){for(++this.d;this.d=this.j)throw ne(new ar(dr((ir(),gAe))))}if(i==58){if(++this.d,Ir(this),a=zpt(ey(this),t,s),this.c!=7)throw ne(new ar(dr((ir(),Cw))));Ir(this)}else if(i==41)++this.d,Ir(this),a=zpt(ey(this),t,s);else throw ne(new ar(dr((ir(),TTt))));return a},p.Cm=function(){var t;if(Ir(this),t=PB(21,ey(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Dm=function(){var t;if(Ir(this),t=PB(23,ey(this)),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Em=function(){var t,i;if(Ir(this),t=this.f++,i=pZ(ey(this),t),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),i},p.Fm=function(){var t;if(Ir(this),t=pZ(ey(this),0),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Gm=function(t){return Ir(this),this.c==5?(Ir(this),EB(t,(Or(),Or(),new Gv(9,t)))):EB(t,(Or(),Or(),new Gv(3,t)))},p.Hm=function(t){var i;return Ir(this),i=(Or(),Or(),new O$(2)),this.c==5?(Ir(this),ww(i,z5),ww(i,t)):(ww(i,t),ww(i,z5)),i},p.Im=function(t){return Ir(this),this.c==5?(Ir(this),Or(),Or(),new Gv(9,t)):(Or(),Or(),new Gv(3,t))},p.a=0,p.b=0,p.c=0,p.d=0,p.e=0,p.f=1,p.g=null,p.j=0,N(Og,"RegEx/RegexParser",836),P(1947,836,{},plt),p.bm=function(t){return!1},p.cm=function(){return Jke(this)},p.dm=function(t){return wA(t)},p.em=function(t){return mCt(this)},p.fm=function(){throw ne(new ar(dr((ir(),sf))))},p.gm=function(){throw ne(new ar(dr((ir(),sf))))},p.hm=function(){throw ne(new ar(dr((ir(),sf))))},p.im=function(){throw ne(new ar(dr((ir(),sf))))},p.jm=function(){return Ir(this),wA(67)},p.km=function(){return Ir(this),wA(73)},p.lm=function(){throw ne(new ar(dr((ir(),sf))))},p.mm=function(){throw ne(new ar(dr((ir(),sf))))},p.nm=function(){throw ne(new ar(dr((ir(),sf))))},p.om=function(){return Ir(this),wA(99)},p.pm=function(){throw ne(new ar(dr((ir(),sf))))},p.qm=function(){throw ne(new ar(dr((ir(),sf))))},p.rm=function(){return Ir(this),wA(105)},p.sm=function(){throw ne(new ar(dr((ir(),sf))))},p.tm=function(){throw ne(new ar(dr((ir(),sf))))},p.um=function(t,i){return h_(t,wA(i)),-1},p.vm=function(){return Ir(this),Or(),Or(),new gp(0,94)},p.wm=function(){throw ne(new ar(dr((ir(),sf))))},p.xm=function(){return Ir(this),Or(),Or(),new gp(0,36)},p.ym=function(){throw ne(new ar(dr((ir(),sf))))},p.zm=function(){throw ne(new ar(dr((ir(),sf))))},p.Am=function(){throw ne(new ar(dr((ir(),sf))))},p.Bm=function(){throw ne(new ar(dr((ir(),sf))))},p.Cm=function(){throw ne(new ar(dr((ir(),sf))))},p.Dm=function(){throw ne(new ar(dr((ir(),sf))))},p.Em=function(){var t;if(Ir(this),t=pZ(ey(this),0),this.c!=7)throw ne(new ar(dr((ir(),Cw))));return Ir(this),t},p.Fm=function(){throw ne(new ar(dr((ir(),sf))))},p.Gm=function(t){return Ir(this),EB(t,(Or(),Or(),new Gv(3,t)))},p.Hm=function(t){var i;return Ir(this),i=(Or(),Or(),new O$(2)),ww(i,t),ww(i,z5),i},p.Im=function(t){return Ir(this),Or(),Or(),new Gv(3,t)};var wE=null,I4=null;N(Og,"RegEx/ParserForXMLSchema",1947),P(122,1,KA,fm),p.Jm=function(t){throw ne(new vl("Not supported."))},p.Km=function(){return-1},p.Lm=function(t){return null},p.Mm=function(){return null},p.Nm=function(t){},p.Om=function(t){},p.Pm=function(){return 0},p.Ib=function(){return this.Qm(0)},p.Qm=function(t){return this.e==11?".":""},p.e=0;var GOe,P4,V5,yLt,VOe,tS=null,zz,Bce=null,zOe,z5,Wce=null,KOe,qOe,XOe,JOe,YOe,vLt,bR,_Lt,SLt,ELt,kLt,O4,RLt,xLt,IFn=N(Og,"RegEx/Token",122);P(138,122,{3:1,138:1,122:1},yu),p.Qm=function(t){var i,s,a;if(this.e==4)if(this==zOe)s=".";else if(this==zz)s="\\d";else if(this==O4)s="\\w";else if(this==bR)s="\\s";else{for(a=new ig,a.a+="[",i=0;i0&&(a.a+=","),this.b[i]===this.b[i+1]?Ms(a,ZN(this.b[i])):(Ms(a,ZN(this.b[i])),a.a+="-",Ms(a,ZN(this.b[i+1])));a.a+="]",s=a.a}else if(this==XOe)s="\\D";else if(this==YOe)s="\\W";else if(this==JOe)s="\\S";else{for(a=new ig,a.a+="[^",i=0;i0&&(a.a+=","),this.b[i]===this.b[i+1]?Ms(a,ZN(this.b[i])):(Ms(a,ZN(this.b[i])),a.a+="-",Ms(a,ZN(this.b[i+1])));a.a+="]",s=a.a}return s},p.a=!1,p.c=!1,N(Og,"RegEx/RangeToken",138),P(592,1,{592:1},y0e),p.a=0,N(Og,"RegEx/RegexParser/ReferencePosition",592),P(591,1,{3:1,591:1},Tat),p.Fb=function(t){var i;return t==null||!ve(t,591)?!1:(i=f(t,591),Ht(this.b,i.b)&&this.a==i.a)},p.Hb=function(){return mg(this.b+"/"+Uke(this.a))},p.Ib=function(){return this.c.Qm(this.a)},p.a=0,N(Og,"RegEx/RegularExpression",591),P(228,122,KA,gp),p.Km=function(){return this.a},p.Qm=function(t){var i,s,a;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:a="\\"+UQ(this.a&Ji);break;case 12:a="\\f";break;case 10:a="\\n";break;case 13:a="\\r";break;case 9:a="\\t";break;case 27:a="\\e";break;default:this.a>=ys?(s=(i=this.a>>>0,"0"+i.toString(16)),a="\\v"+Vu(s,s.length-6,s.length)):a=""+UQ(this.a&Ji)}break;case 8:this==KOe||this==qOe?a=""+UQ(this.a&Ji):a="\\"+UQ(this.a&Ji);break;default:a=null}return a},p.a=0,N(Og,"RegEx/Token/CharToken",228),P(318,122,KA,Gv),p.Lm=function(t){return this.a},p.Nm=function(t){this.b=t},p.Om=function(t){this.c=t},p.Pm=function(){return 1},p.Qm=function(t){var i;if(this.e==3)if(this.c<0&&this.b<0)i=this.a.Qm(t)+"*";else if(this.c==this.b)i=this.a.Qm(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)i=this.a.Qm(t)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)i=this.a.Qm(t)+"{"+this.c+",}";else throw ne(new vl("Token#toString(): CLOSURE "+this.c+ds+this.b));else if(this.c<0&&this.b<0)i=this.a.Qm(t)+"*?";else if(this.c==this.b)i=this.a.Qm(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)i=this.a.Qm(t)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)i=this.a.Qm(t)+"{"+this.c+",}?";else throw ne(new vl("Token#toString(): NONGREEDYCLOSURE "+this.c+ds+this.b));return i},p.b=0,p.c=0,N(Og,"RegEx/Token/ClosureToken",318),P(837,122,KA,ave),p.Lm=function(t){return t==0?this.a:this.b},p.Pm=function(){return 2},p.Qm=function(t){var i;return this.b.e==3&&this.b.Lm(0)==this.a?i=this.a.Qm(t)+"+":this.b.e==9&&this.b.Lm(0)==this.a?i=this.a.Qm(t)+"+?":i=this.a.Qm(t)+(""+this.b.Qm(t)),i},N(Og,"RegEx/Token/ConcatToken",837),P(1945,122,KA,Ywt),p.Lm=function(t){if(t==0)return this.d;if(t==1)return this.b;throw ne(new vl("Internal Error: "+t))},p.Pm=function(){return this.b?2:1},p.Qm=function(t){var i;return this.c>0?i="(?("+this.c+")":this.a.e==8?i="(?("+this.a+")":i="(?"+this.a,this.b?i+=this.d+"|"+this.b+")":i+=this.d+")",i},p.c=0,N(Og,"RegEx/Token/ConditionToken",1945),P(1946,122,KA,Wgt),p.Lm=function(t){return this.b},p.Pm=function(){return 1},p.Qm=function(t){return"(?"+(this.a==0?"":Uke(this.a))+(this.c==0?"":Uke(this.c))+":"+this.b.Qm(t)+")"},p.a=0,p.c=0,N(Og,"RegEx/Token/ModifierToken",1946),P(838,122,KA,mve),p.Lm=function(t){return this.a},p.Pm=function(){return 1},p.Qm=function(t){var i;switch(i=null,this.e){case 6:this.b==0?i="(?:"+this.a.Qm(t)+")":i="("+this.a.Qm(t)+")";break;case 20:i="(?="+this.a.Qm(t)+")";break;case 21:i="(?!"+this.a.Qm(t)+")";break;case 22:i="(?<="+this.a.Qm(t)+")";break;case 23:i="(?"+this.a.Qm(t)+")"}return i},p.b=0,N(Og,"RegEx/Token/ParenToken",838),P(530,122,{3:1,122:1,530:1},BZ),p.Mm=function(){return this.b},p.Qm=function(t){return this.e==12?"\\"+this.a:hPn(this.b)},p.a=0,N(Og,"RegEx/Token/StringToken",530),P(477,122,KA,O$),p.Jm=function(t){ww(this,t)},p.Lm=function(t){return f(Dm(this.a,t),122)},p.Pm=function(){return this.a?this.a.a.c.length:0},p.Qm=function(t){var i,s,a,c,b;if(this.e==1){if(this.a.a.c.length==2)i=f(Dm(this.a,0),122),s=f(Dm(this.a,1),122),s.e==3&&s.Lm(0)==i?c=i.Qm(t)+"+":s.e==9&&s.Lm(0)==i?c=i.Qm(t)+"+?":c=i.Qm(t)+(""+s.Qm(t));else{for(b=new ig,a=0;a=this.c.b:this.a<=this.c.b},p.Sb=function(){return this.b>0},p.Tb=function(){return this.b},p.Vb=function(){return this.b-1},p.Qb=function(){throw ne(new ng(Y$t))},p.a=0,p.b=0,N(LAe,"ExclusiveRange/RangeIterator",258);var df=pC(aG,"C"),Xn=pC(AI,"I"),Xc=pC($3,"Z"),m0=pC(TI,"J"),_c=pC(RI,"B"),Ro=pC(xI,"D"),nS=pC(CI,"F"),mE=pC($I,"S"),PFn=Ei("org.eclipse.elk.core.labels","ILabelManager"),QOe=Ei(hs,"DiagnosticChain"),ZOe=Ei(R$t,"ResourceSet"),e7e=N(hs,"InvocationTargetException",null),ALt=(oF(),zEn),TLt=TLt=L$n;F3n(Mpn),M3n("permProps",[[["locale","default"],[Q$t,"gecko1_8"]],[["locale","default"],[Q$t,"safari"]]]),TLt(null,"elk",null)}).call(this)}).call(this,typeof window<"u"?window:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(o,l,u){function d(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")}function h(E,A){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:E}function w(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);E.prototype=Object.create(A&&A.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(E,A):E.__proto__=A)}var v=o("./elk-api.js").default,y=function(E){w(A,E);function A(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};d(this,A);var R=Object.assign({},C),O=!1;try{o.resolve("web-worker"),O=!0}catch{}if(C.workerUrl)if(O){var M=o("web-worker");R.workerFactory=function(G){return new M(G)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +Consider installing the package or pass your own 'workerFactory' to ELK's constructor. +... Falling back to non-web worker version.`);if(!R.workerFactory){var L=o("./elk-worker.min.js"),H=L.Worker;R.workerFactory=function(G){return new H(G)}}return h(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,R))}return A}(v);Object.defineProperty(l.exports,"__esModule",{value:!0}),l.exports=y,y.default=y},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(o,l,u){l.exports=Worker},{}]},{},[3])(3)})})(Xdn);var ejr=Xdn.exports;const tjr=cv(ejr),njr=76,HJt=52;function rjr(){async function n(r,o){const l={algorithm:"mrtree","org.eclipse.elk.direction":"RIGHT","org.eclipse.elk.spacing.nodeNode":"400","org.eclipse.elk.spacing.edgeEdge":"20","org.eclipse.elk.spacing.edgeNode":"30","org.eclipse.elk.mrtree.spacing.level":"500","org.eclipse.elk.mrtree.compaction.strategy":"DOWN","org.eclipse.elk.mrtree.nodePlacement.strategy":"SIMPLE","org.eclipse.elk.mrtree.nodePlacement.bk.fixedAlignment":"BALANCED"},u=r.map(v=>({id:v.id,width:1e3,height:njr+HJt*v.data.resource.properties.length,labels:[{text:v.data.resource.name}],properties:v.data.resource.properties.map(y=>({id:y.id,width:1e3,height:HJt,labels:[{text:y.name}]}))})),d=o.map(v=>({id:`${v.source}-${v.target}`,sources:[v.source],targets:[v.target]})),h={id:"root",layoutOptions:l,children:u,edges:d};return new tjr().layout(h).then(v=>{const y=r.map(E=>{const A=v.children.find(C=>C.id===E.id);return E.position={x:A.x,y:A.y},E});for(const E of o){const A=y.find(R=>R.id===E.source),C=y.find(R=>R.id===E.target);if(A.position.xmL(r.term)),l=To(()=>r.term.termType!=="Literal"?null:r.term.language??null);function u(d){d.stopPropagation()}return(d,h)=>(ze(),Lt("div",null,[r.term.termType==="NamedNode"?(ze(),Lt("span",{key:0,class:"term",onMousedown:u,style:{cursor:"pointer"}},na(o.value),33)):fr("",!0),r.term.termType==="BlankNode"?(ze(),Lt("span",{key:1,class:"term",onMousedown:u,style:{cursor:"pointer"}},"["+na(o.value)+"]",33)):fr("",!0),r.term.termType==="Literal"?(ze(),Lt("span",{key:2,class:"term literal",onMousedown:u},[nm(na(o.value),1),l.value?(ze(),Lt("small",ijr,"@"+na(l.value),1)):fr("",!0)],32)):fr("",!0)]))}}),sjr=hJ(ojr,[["__scopeId","data-v-3bf480c8"]]),ljr={class:"resource-card"},ajr={class:"resource-card-header"},cjr={class:"resource-title"},ujr={class:"table-container"},fjr=["data-id"],djr={class:"predicate"},hjr={class:"object"},pjr=["onClick"],bjr=Ka({__name:"ResourceNode",props:{id:{},type:{},selected:{type:Boolean},connectable:{type:[Boolean,Number,String,Function]},position:{},dimensions:{},label:{},isValidTargetPos:{type:Function},isValidSourcePos:{type:Function},parent:{},parentNodeId:{},dragging:{type:Boolean},resizing:{type:Boolean},zIndex:{},targetPosition:{},sourcePosition:{},dragHandle:{},data:{},events:{}},setup(n){const{fitView:r,nodeLookup:o}=hu(),l=n;function u(d){if(!(d.termType==="NamedNode"||d.termType==="BlankNode"))return;const h=o.value.get(d.value);h&&r({nodes:[h.id],duration:1e3,padding:.3})}return(d,h)=>(ze(),Lt("div",null,[mr("div",ljr,[mr("header",ajr,[mr("h3",cjr,na(l.data.resource.name),1)]),mr("div",ujr,[(ze(!0),Lt(gi,null,uu(l.data.resource.properties,(w,v)=>(ze(),Lt("div",{key:v,"data-id":w.id,class:"table-row"},[mr("div",null,[(ze(!0),Lt(gi,null,uu(w.values,y=>(ze(),Lt("div",{key:y.value,style:{position:"relative"}},[y.termType==="NamedNode"||y.termType==="BlankNode"?(ze(),Nn(Wr(ej),{key:0,type:"source",position:Wr($i).Left,id:`${l.data.resource.id}-${w.id}-left`,style:{opacity:"0"},connectable:!1},null,8,["position","id"])):fr("",!0)]))),128))]),mr("div",djr,na(w.name),1),mr("div",hjr,[(ze(!0),Lt(gi,null,uu(w.values,y=>(ze(),Lt("div",{key:y.value,onClick:E=>u(y)},[bi(sjr,{term:y,env:l.data.env},null,8,["term","env"])],8,pjr))),128))]),(ze(!0),Lt(gi,null,uu(w.values,y=>(ze(),Lt("div",{key:y.value,style:{position:"relative"}},[y.termType==="NamedNode"||y.termType==="BlankNode"?(ze(),Nn(Wr(ej),{key:0,type:"source",position:Wr($i).Right,id:`${l.data.resource.id}-${w.id}-right`,style:{opacity:"0"},connectable:!1},null,8,["position","id"])):fr("",!0)]))),128))],8,fjr))),128))])])]))}}),gjr=hJ(bjr,[["__scopeId","data-v-0fcec032"]]),wjr={style:{height:"100%",width:"100%"}},mjr=Ka({__name:"GraphView",props:{dataset:{}},setup(n){const r=n,{elkLayout:o}=rjr(),{fitView:l,nodeLookup:u}=hu(),d=To(()=>t7r(r.dataset)),h=To(()=>n7r(d.value)),w=Fo([]),v=Fo([]);Zs(d,async A=>{const C=A.map(M=>({id:M.id,type:"custom",position:{x:0,y:0},data:{resource:M}})),R=h.value.map(M=>({id:`${M.source}-${M.sourceProperty}-${M.target}`,source:M.source,target:M.target,sourceHandle:`${M.source}-${M.sourceProperty}-right`,animated:!1,data:M,type:"custom",markerEnd:jhe.ArrowClosed})),O=await o(C,R);w.value=O.nodes,v.value=O.edges,setTimeout(()=>{l()},0)});function y(A){const C=A.node;v.value.filter(H=>H.source===C.id).flatMap(H=>u.value.get(H.target)).forEach(H=>{(H==null?void 0:H.position.x)j.source===C.id&&j.target===H.id).forEach(j=>{var te;const Q=j.sourceHandle;Q!=null&&Q.endsWith("-right")&&(j.sourceHandle=`${C.id}-${(te=j.data)==null?void 0:te.sourceProperty}-left`)}):v.value.filter(j=>j.source===C.id&&j.target===H.id).forEach(j=>{var te;const Q=j.sourceHandle;Q!=null&&Q.endsWith("-left")&&(j.sourceHandle=`${C.id}-${(te=j.data)==null?void 0:te.sourceProperty}-right`)})}),v.value.filter(H=>H.target===C.id).flatMap(H=>{const G=u.value.get(H.source);return G?[G]:[]}).forEach(H=>{H.position.xj.target===C.id&&j.source===H.id).forEach(j=>{const Q=j.sourceHandle;Q&&Q.endsWith("-left")&&(j.sourceHandle=`${H.id}-${j.data.sourceProperty}-right`)}):v.value.filter(j=>j.target===C.id&&j.source===H.id).forEach(j=>{const Q=j.sourceHandle;Q&&(Q!=null&&Q.endsWith("-right"))&&(j.sourceHandle=`${H.id}-${j.data.sourceProperty}-left`)})}),v.value=[...v.value]}function E(A){l({nodes:[A.edge.sourceNode.id],duration:1e3,padding:.3})}return(A,C)=>(ze(),Lt("div",wjr,[bi(Wr(YLr),{nodes:w.value,edges:v.value,"min-zoom":.05,"max-zoom":10,onNodeDrag:y,onEdgeClick:E},{"node-custom":vi(R=>[bi(gjr,EL(kLe(R)),null,16)]),"edge-custom":vi(R=>[bi(ZLr,EL(kLe(R)),null,16)]),_:1},8,["nodes","edges"])]))}});var Jdn={name:"ArrowDownIcon",extends:Fc};function yjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z",fill:"currentColor"},null,-1)]),16)}Jdn.render=yjr;var Ydn={name:"ArrowUpIcon",extends:Fc};function vjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z",fill:"currentColor"},null,-1)]),16)}Ydn.render=vjr;function PX(n){"@babel/helpers - typeof";return PX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},PX(n)}function _jr(n,r,o){return(r=Sjr(r))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function Sjr(n){var r=Ejr(n,"string");return PX(r)=="symbol"?r:r+""}function Ejr(n,r){if(PX(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var l=o.call(n,r||"default");if(PX(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}var kjr=function(r){var o=r.dt;return` +.p-paginator { + display: flex; + align-items: center; + justify-content: center; + flex-wrap: wrap; + background: `.concat(o("paginator.background"),`; + color: `).concat(o("paginator.color"),`; + padding: `).concat(o("paginator.padding"),`; + border-radius: `).concat(o("paginator.border.radius"),`; + gap: `).concat(o("paginator.gap"),`; +} + +.p-paginator-content { + display: flex; + align-items: center; + justify-content: center; + flex-wrap: wrap; + gap: `).concat(o("paginator.gap"),`; +} + +.p-paginator-content-start { + margin-inline-end: auto; +} + +.p-paginator-content-end { + margin-inline-start: auto; +} + +.p-paginator-page, +.p-paginator-next, +.p-paginator-last, +.p-paginator-first, +.p-paginator-prev { + cursor: pointer; + display: inline-flex; + align-items: center; + justify-content: center; + line-height: 1; + user-select: none; + overflow: hidden; + position: relative; + background: `).concat(o("paginator.nav.button.background"),`; + border: 0 none; + color: `).concat(o("paginator.nav.button.color"),`; + min-width: `).concat(o("paginator.nav.button.width"),`; + height: `).concat(o("paginator.nav.button.height"),`; + transition: background `).concat(o("paginator.transition.duration"),", color ").concat(o("paginator.transition.duration"),", outline-color ").concat(o("paginator.transition.duration"),", box-shadow ").concat(o("paginator.transition.duration"),`; + border-radius: `).concat(o("paginator.nav.button.border.radius"),`; + padding: 0; + margin: 0; +} + +.p-paginator-page:focus-visible, +.p-paginator-next:focus-visible, +.p-paginator-last:focus-visible, +.p-paginator-first:focus-visible, +.p-paginator-prev:focus-visible { + box-shadow: `).concat(o("paginator.nav.button.focus.ring.shadow"),`; + outline: `).concat(o("paginator.nav.button.focus.ring.width")," ").concat(o("paginator.nav.button.focus.ring.style")," ").concat(o("paginator.nav.button.focus.ring.color"),`; + outline-offset: `).concat(o("paginator.nav.button.focus.ring.offset"),`; +} + +.p-paginator-page:not(.p-disabled):not(.p-paginator-page-selected):hover, +.p-paginator-first:not(.p-disabled):hover, +.p-paginator-prev:not(.p-disabled):hover, +.p-paginator-next:not(.p-disabled):hover, +.p-paginator-last:not(.p-disabled):hover { + background: `).concat(o("paginator.nav.button.hover.background"),`; + color: `).concat(o("paginator.nav.button.hover.color"),`; +} + +.p-paginator-page.p-paginator-page-selected { + background: `).concat(o("paginator.nav.button.selected.background"),`; + color: `).concat(o("paginator.nav.button.selected.color"),`; +} + +.p-paginator-current { + color: `).concat(o("paginator.current.page.report.color"),`; +} + +.p-paginator-pages { + display: flex; + align-items: center; + gap: `).concat(o("paginator.gap"),`; +} + +.p-paginator-jtp-input .p-inputtext { + max-width: `).concat(o("paginator.jump.to.page.input.max.width"),`; +} + +.p-paginator-first:dir(rtl), +.p-paginator-prev:dir(rtl), +.p-paginator-next:dir(rtl), +.p-paginator-last:dir(rtl) { + transform: rotate(180deg); +} +`)},Rjr={paginator:function(r){var o=r.instance,l=r.key;return["p-paginator p-component",_jr({"p-paginator-default":!o.hasBreakpoints()},"p-paginator-".concat(l),o.hasBreakpoints())]},content:"p-paginator-content",contentStart:"p-paginator-content-start",contentEnd:"p-paginator-content-end",first:function(r){var o=r.instance;return["p-paginator-first",{"p-disabled":o.$attrs.disabled}]},firstIcon:"p-paginator-first-icon",prev:function(r){var o=r.instance;return["p-paginator-prev",{"p-disabled":o.$attrs.disabled}]},prevIcon:"p-paginator-prev-icon",next:function(r){var o=r.instance;return["p-paginator-next",{"p-disabled":o.$attrs.disabled}]},nextIcon:"p-paginator-next-icon",last:function(r){var o=r.instance;return["p-paginator-last",{"p-disabled":o.$attrs.disabled}]},lastIcon:"p-paginator-last-icon",pages:"p-paginator-pages",page:function(r){var o=r.props,l=r.pageLink;return["p-paginator-page",{"p-paginator-page-selected":l-1===o.page}]},current:"p-paginator-current",pcRowPerPageDropdown:"p-paginator-rpp-dropdown",pcJumpToPageDropdown:"p-paginator-jtp-dropdown",pcJumpToPageInputText:"p-paginator-jtp-input"},xjr=Bs.extend({name:"paginator",theme:kjr,classes:Rjr}),Qdn={name:"AngleDoubleLeftIcon",extends:Fc};function Cjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z",fill:"currentColor"},null,-1)]),16)}Qdn.render=Cjr;var Zdn={name:"AngleDownIcon",extends:Fc};function Ajr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z",fill:"currentColor"},null,-1)]),16)}Zdn.render=Ajr;var ehn={name:"AngleUpIcon",extends:Fc};function Tjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z",fill:"currentColor"},null,-1)]),16)}ehn.render=Tjr;var $jr=function(r){var o=r.dt;return` +.p-inputnumber { + display: inline-flex; + position: relative; +} + +.p-inputnumber-button { + display: flex; + align-items: center; + justify-content: center; + flex: 0 0 auto; + cursor: pointer; + background: `.concat(o("inputnumber.button.background"),`; + color: `).concat(o("inputnumber.button.color"),`; + width: `).concat(o("inputnumber.button.width"),`; + transition: background `).concat(o("inputnumber.transition.duration"),", color ").concat(o("inputnumber.transition.duration"),", border-color ").concat(o("inputnumber.transition.duration"),", outline-color ").concat(o("inputnumber.transition.duration"),`; +} + +.p-inputnumber-button:hover { + background: `).concat(o("inputnumber.button.hover.background"),`; + color: `).concat(o("inputnumber.button.hover.color"),`; +} + +.p-inputnumber-button:active { + background: `).concat(o("inputnumber.button.active.background"),`; + color: `).concat(o("inputnumber.button.active.color"),`; +} + +.p-inputnumber-stacked .p-inputnumber-button { + position: relative; + border: 0 none; +} + +.p-inputnumber-stacked .p-inputnumber-button-group { + display: flex; + flex-direction: column; + position: absolute; + inset-block-start: 1px; + inset-inline-end: 1px; + height: calc(100% - 2px); + z-index: 1; +} + +.p-inputnumber-stacked .p-inputnumber-increment-button { + padding: 0; + border-start-end-radius: calc(`).concat(o("inputnumber.button.border.radius"),` - 1px); +} + +.p-inputnumber-stacked .p-inputnumber-decrement-button { + padding: 0; + border-end-end-radius: calc(`).concat(o("inputnumber.button.border.radius"),` - 1px); +} + +.p-inputnumber-stacked .p-inputnumber-button { + flex: 1 1 auto; + border: 0 none; +} + +.p-inputnumber-horizontal .p-inputnumber-button { + border: 1px solid `).concat(o("inputnumber.button.border.color"),`; +} + +.p-inputnumber-horizontal .p-inputnumber-button:hover { + border-color: `).concat(o("inputnumber.button.hover.border.color"),`; +} + +.p-inputnumber-horizontal .p-inputnumber-button:active { + border-color: `).concat(o("inputnumber.button.active.border.color"),`; +} + +.p-inputnumber-horizontal .p-inputnumber-increment-button { + order: 3; + border-start-end-radius: `).concat(o("inputnumber.button.border.radius"),`; + border-end-end-radius: `).concat(o("inputnumber.button.border.radius"),`; + border-inline-start: 0 none; +} + +.p-inputnumber-horizontal .p-inputnumber-input { + order: 2; + border-radius: 0; +} + +.p-inputnumber-horizontal .p-inputnumber-decrement-button { + order: 1; + border-start-start-radius: `).concat(o("inputnumber.button.border.radius"),`; + border-end-start-radius: `).concat(o("inputnumber.button.border.radius"),`; + border-inline-end: 0 none; +} + +.p-floatlabel:has(.p-inputnumber-horizontal) label { + margin-inline-start: `).concat(o("inputnumber.button.width"),`; +} + +.p-inputnumber-vertical { + flex-direction: column; +} + +.p-inputnumber-vertical .p-inputnumber-button { + border: 1px solid `).concat(o("inputnumber.button.border.color"),`; + padding: `).concat(o("inputnumber.button.vertical.padding"),`; +} + +.p-inputnumber-vertical .p-inputnumber-button:hover { + border-color: `).concat(o("inputnumber.button.hover.border.color"),`; +} + +.p-inputnumber-vertical .p-inputnumber-button:active { + border-color: `).concat(o("inputnumber.button.active.border.color"),`; +} + +.p-inputnumber-vertical .p-inputnumber-increment-button { + order: 1; + border-start-start-radius: `).concat(o("inputnumber.button.border.radius"),`; + border-start-end-radius: `).concat(o("inputnumber.button.border.radius"),`; + width: 100%; + border-block-end: 0 none; +} + +.p-inputnumber-vertical .p-inputnumber-input { + order: 2; + border-radius: 0; + text-align: center; +} + +.p-inputnumber-vertical .p-inputnumber-decrement-button { + order: 3; + border-end-start-radius: `).concat(o("inputnumber.button.border.radius"),`; + border-end-end-radius: `).concat(o("inputnumber.button.border.radius"),`; + width: 100%; + border-block-start: 0 none; +} + +.p-inputnumber-input { + flex: 1 1 auto; +} + +.p-inputnumber-fluid { + width: 100%; +} + +.p-inputnumber-fluid .p-inputnumber-input { + width: 1%; +} + +.p-inputnumber-fluid.p-inputnumber-vertical .p-inputnumber-input { + width: 100%; +} + +.p-inputnumber:has(.p-inputtext-sm) .p-inputnumber-button .p-icon { + font-size: `).concat(o("form.field.sm.font.size"),`; + width: `).concat(o("form.field.sm.font.size"),`; + height: `).concat(o("form.field.sm.font.size"),`; +} + +.p-inputnumber:has(.p-inputtext-lg) .p-inputnumber-button .p-icon { + font-size: `).concat(o("form.field.lg.font.size"),`; + width: `).concat(o("form.field.lg.font.size"),`; + height: `).concat(o("form.field.lg.font.size"),`; +} +`)},Ijr={root:function(r){var o=r.instance,l=r.props;return["p-inputnumber p-component p-inputwrapper",{"p-inputwrapper-filled":o.$filled||l.allowEmpty===!1,"p-inputwrapper-focus":o.focused,"p-inputnumber-stacked":l.showButtons&&l.buttonLayout==="stacked","p-inputnumber-horizontal":l.showButtons&&l.buttonLayout==="horizontal","p-inputnumber-vertical":l.showButtons&&l.buttonLayout==="vertical","p-inputnumber-fluid":o.$fluid}]},pcInputText:"p-inputnumber-input",buttonGroup:"p-inputnumber-button-group",incrementButton:function(r){var o=r.instance,l=r.props;return["p-inputnumber-button p-inputnumber-increment-button",{"p-disabled":l.showButtons&&l.max!==null&&o.maxBoundry()}]},decrementButton:function(r){var o=r.instance,l=r.props;return["p-inputnumber-button p-inputnumber-decrement-button",{"p-disabled":l.showButtons&&l.min!==null&&o.minBoundry()}]}},Pjr=Bs.extend({name:"inputnumber",theme:$jr,classes:Ijr}),Ojr={name:"BaseInputNumber",extends:QX,props:{format:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!1},buttonLayout:{type:String,default:"stacked"},incrementButtonClass:{type:String,default:null},decrementButtonClass:{type:String,default:null},incrementButtonIcon:{type:String,default:void 0},incrementIcon:{type:String,default:void 0},decrementButtonIcon:{type:String,default:void 0},decrementIcon:{type:String,default:void 0},locale:{type:String,default:void 0},localeMatcher:{type:String,default:void 0},mode:{type:String,default:"decimal"},prefix:{type:String,default:null},suffix:{type:String,default:null},currency:{type:String,default:void 0},currencyDisplay:{type:String,default:void 0},useGrouping:{type:Boolean,default:!0},minFractionDigits:{type:Number,default:void 0},maxFractionDigits:{type:Number,default:void 0},roundingMode:{type:String,default:"halfExpand",validator:function(r){return["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"].includes(r)}},min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:1},allowEmpty:{type:Boolean,default:!0},highlightOnFocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{type:String,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Pjr,provide:function(){return{$pcInputNumber:this,$parentInstance:this}}};function OX(n){"@babel/helpers - typeof";return OX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},OX(n)}function UJt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function GJt(n){for(var r=1;rn.length)&&(r=n.length);for(var o=0,l=Array(r);o1){var v=this.isNumeralChar(d.charAt(o))?o+1:o+2;this.$refs.input.$el.setSelectionRange(v,v)}else this.isNumeralChar(d.charAt(o-1))||r.preventDefault();break;case"ArrowRight":if(u>1){var y=l-1;this.$refs.input.$el.setSelectionRange(y,y)}else this.isNumeralChar(d.charAt(o))||r.preventDefault();break;case"Tab":case"Enter":case"NumpadEnter":h=this.validateValue(this.parseValue(d)),this.$refs.input.$el.value=this.formatValue(h),this.$refs.input.$el.setAttribute("aria-valuenow",h),this.updateModel(r,h);break;case"Backspace":{if(r.preventDefault(),o===l){var E=d.charAt(o-1),A=this.getDecimalCharIndexes(d),C=A.decimalCharIndex,R=A.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(E)){var O=this.getDecimalLength(d);if(this._group.test(E))this._group.lastIndex=0,h=d.slice(0,o-2)+d.slice(o-1);else if(this._decimal.test(E))this._decimal.lastIndex=0,O?this.$refs.input.$el.setSelectionRange(o-1,o-1):h=d.slice(0,o-1)+d.slice(o);else if(C>0&&o>C){var M=this.isDecimalMode()&&(this.minFractionDigits||0)0?h:""):h=d.slice(0,o-1)+d.slice(o)}this.updateValue(r,h,null,"delete-single")}else h=this.deleteRange(d,o,l),this.updateValue(r,h,null,"delete-range");break}case"Delete":if(r.preventDefault(),o===l){var L=d.charAt(o),H=this.getDecimalCharIndexes(d),G=H.decimalCharIndex,j=H.decimalCharIndexWithoutPrefix;if(this.isNumeralChar(L)){var Q=this.getDecimalLength(d);if(this._group.test(L))this._group.lastIndex=0,h=d.slice(0,o)+d.slice(o+2);else if(this._decimal.test(L))this._decimal.lastIndex=0,Q?this.$refs.input.$el.setSelectionRange(o+1,o+1):h=d.slice(0,o)+d.slice(o+1);else if(G>0&&o>G){var te=this.isDecimalMode()&&(this.minFractionDigits||0)0?h:""):h=d.slice(0,o)+d.slice(o+1)}this.updateValue(r,h,null,"delete-back-single")}else h=this.deleteRange(d,o,l),this.updateValue(r,h,null,"delete-range");break;case"Home":r.preventDefault(),ks(this.min)&&this.updateModel(r,this.min);break;case"End":r.preventDefault(),ks(this.max)&&this.updateModel(r,this.max);break}}},onInputKeyPress:function(r){if(!this.readonly){var o=r.key,l=this.isDecimalSign(o),u=this.isMinusSign(o);r.code!=="Enter"&&r.preventDefault(),(Number(o)>=0&&Number(o)<=9||u||l)&&this.insert(r,o,{isDecimalSign:l,isMinusSign:u})}},onPaste:function(r){r.preventDefault();var o=(r.clipboardData||window.clipboardData).getData("Text");if(o){var l=this.parseValue(o);l!=null&&this.insert(r,l.toString())}},allowMinusSign:function(){return this.min===null||this.min<0},isMinusSign:function(r){return this._minusSign.test(r)||r==="-"?(this._minusSign.lastIndex=0,!0):!1},isDecimalSign:function(r){return this._decimal.test(r)?(this._decimal.lastIndex=0,!0):!1},isDecimalMode:function(){return this.mode==="decimal"},getDecimalCharIndexes:function(r){var o=r.search(this._decimal);this._decimal.lastIndex=0;var l=r.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,""),u=l.search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:o,decimalCharIndexWithoutPrefix:u}},getCharIndexes:function(r){var o=r.search(this._decimal);this._decimal.lastIndex=0;var l=r.search(this._minusSign);this._minusSign.lastIndex=0;var u=r.search(this._suffix);this._suffix.lastIndex=0;var d=r.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:o,minusCharIndex:l,suffixCharIndex:u,currencyCharIndex:d}},insert:function(r,o){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},u=o.search(this._minusSign);if(this._minusSign.lastIndex=0,!(!this.allowMinusSign()&&u!==-1)){var d=this.$refs.input.$el.selectionStart,h=this.$refs.input.$el.selectionEnd,w=this.$refs.input.$el.value.trim(),v=this.getCharIndexes(w),y=v.decimalCharIndex,E=v.minusCharIndex,A=v.suffixCharIndex,C=v.currencyCharIndex,R;if(l.isMinusSign)d===0&&(R=w,(E===-1||h!==0)&&(R=this.insertText(w,o,0,h)),this.updateValue(r,R,o,"insert"));else if(l.isDecimalSign)y>0&&d===y?this.updateValue(r,w,o,"insert"):y>d&&y0&&d>y){if(d+o.length-(y+1)<=O){var L=C>=d?C-1:A>=d?A:w.length;R=w.slice(0,d)+o+w.slice(d+o.length,L)+w.slice(L),this.updateValue(r,R,o,M)}}else R=this.insertText(w,o,d,h),this.updateValue(r,R,o,M)}}},insertText:function(r,o,l,u){var d=o==="."?o:o.split(".");if(d.length===2){var h=r.slice(l,u).search(this._decimal);return this._decimal.lastIndex=0,h>0?r.slice(0,l)+this.formatValue(o)+r.slice(u):this.formatValue(o)||r}else return u-l===r.length?this.formatValue(o):l===0?o+r.slice(u):u===r.length?r.slice(0,l)+o:r.slice(0,l)+o+r.slice(u)},deleteRange:function(r,o,l){var u;return l-o===r.length?u="":o===0?u=r.slice(l):l===r.length?u=r.slice(0,o):u=r.slice(0,o)+r.slice(l),u},initCursor:function(){var r=this.$refs.input.$el.selectionStart,o=this.$refs.input.$el.value,l=o.length,u=null,d=(this.prefixChar||"").length;o=o.replace(this._prefix,""),r=r-d;var h=o.charAt(r);if(this.isNumeralChar(h))return r+d;for(var w=r-1;w>=0;)if(h=o.charAt(w),this.isNumeralChar(h)){u=w+d;break}else w--;if(u!==null)this.$refs.input.$el.setSelectionRange(u+1,u+1);else{for(w=r;wthis.max?this.max:r},updateInput:function(r,o,l,u){o=o||"";var d=this.$refs.input.$el.value,h=this.formatValue(r),w=d.length;if(h!==u&&(h=this.concatValues(h,u)),w===0){this.$refs.input.$el.value=h,this.$refs.input.$el.setSelectionRange(0,0);var v=this.initCursor(),y=v+o.length;this.$refs.input.$el.setSelectionRange(y,y)}else{var E=this.$refs.input.$el.selectionStart,A=this.$refs.input.$el.selectionEnd;this.$refs.input.$el.value=h;var C=h.length;if(l==="range-insert"){var R=this.parseValue((d||"").slice(0,E)),O=R!==null?R.toString():"",M=O.split("").join("(".concat(this.groupChar,")?")),L=new RegExp(M,"g");L.test(h);var H=o.split("").join("(".concat(this.groupChar,")?")),G=new RegExp(H,"g");G.test(h.slice(L.lastIndex)),A=L.lastIndex+G.lastIndex,this.$refs.input.$el.setSelectionRange(A,A)}else if(C===w)l==="insert"||l==="delete-back-single"?this.$refs.input.$el.setSelectionRange(A+1,A+1):l==="delete-single"?this.$refs.input.$el.setSelectionRange(A-1,A-1):(l==="delete-range"||l==="spin")&&this.$refs.input.$el.setSelectionRange(A,A);else if(l==="delete-back-single"){var j=d.charAt(A-1),Q=d.charAt(A),te=w-C,pe=this._group.test(Q);pe&&te===1?A+=1:!pe&&this.isNumeralChar(j)&&(A+=-1*te+1),this._group.lastIndex=0,this.$refs.input.$el.setSelectionRange(A,A)}else if(d==="-"&&l==="insert"){this.$refs.input.$el.setSelectionRange(0,0);var Le=this.initCursor(),Ee=Le+o.length+1;this.$refs.input.$el.setSelectionRange(Ee,Ee)}else A=A+(C-w),this.$refs.input.$el.setSelectionRange(A,A)}this.$refs.input.$el.setAttribute("aria-valuenow",r)},concatValues:function(r,o){if(r&&o){var l=o.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?l!==-1?r.replace(this.suffixChar,"").split(this._decimal)[0]+o.replace(this.suffixChar,"").slice(l)+this.suffixChar:r:l!==-1?r.split(this._decimal)[0]+o.slice(l):r}return r},getDecimalLength:function(r){if(r){var o=r.split(this._decimal);if(o.length===2)return o[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0},updateModel:function(r,o){this.writeValue(o,r)},onInputFocus:function(r){this.focused=!0,!this.disabled&&!this.readonly&&this.$refs.input.$el.value!==Ajt()&&this.highlightOnFocus&&r.target.select(),this.$emit("focus",r)},onInputBlur:function(r){var o,l;this.focused=!1;var u=r.target,d=this.validateValue(this.parseValue(u.value));this.$emit("blur",{originalEvent:r,value:u.value}),(o=(l=this.formField).onBlur)===null||o===void 0||o.call(l,r),u.value=this.formatValue(d),u.setAttribute("aria-valuenow",d),this.updateModel(r,d),!this.disabled&&!this.readonly&&this.highlightOnFocus&&Afe()},clearTimer:function(){this.timer&&clearInterval(this.timer)},maxBoundry:function(){return this.d_value>=this.max},minBoundry:function(){return this.d_value<=this.min}},computed:{upButtonListeners:function(){var r=this;return{mousedown:function(l){return r.onUpButtonMouseDown(l)},mouseup:function(l){return r.onUpButtonMouseUp(l)},mouseleave:function(l){return r.onUpButtonMouseLeave(l)},keydown:function(l){return r.onUpButtonKeyDown(l)},keyup:function(l){return r.onUpButtonKeyUp(l)}}},downButtonListeners:function(){var r=this;return{mousedown:function(l){return r.onDownButtonMouseDown(l)},mouseup:function(l){return r.onDownButtonMouseUp(l)},mouseleave:function(l){return r.onDownButtonMouseLeave(l)},keydown:function(l){return r.onDownButtonKeyDown(l)},keyup:function(l){return r.onDownButtonKeyUp(l)}}},formattedValue:function(){var r=!this.d_value&&!this.allowEmpty?0:this.d_value;return this.formatValue(r)},getFormatter:function(){return this.numberFormat}},components:{InputText:W8,AngleUpIcon:ehn,AngleDownIcon:Zdn}},Hjr=["disabled"],Ujr=["disabled"],Gjr=["disabled"],Vjr=["disabled"];function zjr(n,r,o,l,u,d){var h=Ni("InputText");return ze(),Lt("span",Et({class:n.cx("root")},n.ptmi("root")),[bi(h,{ref:"input",id:n.inputId,role:"spinbutton",class:Lo([n.cx("pcInputText"),n.inputClass]),style:Vb(n.inputStyle),value:d.formattedValue,"aria-valuemin":n.min,"aria-valuemax":n.max,"aria-valuenow":n.d_value,inputmode:n.mode==="decimal"&&!n.minFractionDigits?"numeric":"decimal",disabled:n.disabled,readonly:n.readonly,placeholder:n.placeholder,"aria-labelledby":n.ariaLabelledby,"aria-label":n.ariaLabel,size:n.size,invalid:n.invalid,variant:n.variant,onInput:d.onUserInput,onKeydown:d.onInputKeyDown,onKeypress:d.onInputKeyPress,onPaste:d.onPaste,onClick:d.onInputClick,onFocus:d.onInputFocus,onBlur:d.onInputBlur,pt:n.ptm("pcInputText"),unstyled:n.unstyled},null,8,["id","class","style","value","aria-valuemin","aria-valuemax","aria-valuenow","inputmode","disabled","readonly","placeholder","aria-labelledby","aria-label","size","invalid","variant","onInput","onKeydown","onKeypress","onPaste","onClick","onFocus","onBlur","pt","unstyled"]),n.showButtons&&n.buttonLayout==="stacked"?(ze(),Lt("span",Et({key:0,class:n.cx("buttonGroup")},n.ptm("buttonGroup")),[Vr(n.$slots,"incrementbutton",{listeners:d.upButtonListeners},function(){return[mr("button",Et({class:[n.cx("incrementButton"),n.incrementButtonClass]},Xce(d.upButtonListeners),{disabled:n.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},n.ptm("incrementButton")),[Vr(n.$slots,n.$slots.incrementicon?"incrementicon":"incrementbuttonicon",{},function(){return[(ze(),Nn(jo(n.incrementIcon||n.incrementButtonIcon?"span":"AngleUpIcon"),Et({class:[n.incrementIcon,n.incrementButtonIcon]},n.ptm("incrementIcon"),{"data-pc-section":"incrementicon"}),null,16,["class"]))]})],16,Hjr)]}),Vr(n.$slots,"decrementbutton",{listeners:d.downButtonListeners},function(){return[mr("button",Et({class:[n.cx("decrementButton"),n.decrementButtonClass]},Xce(d.downButtonListeners),{disabled:n.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},n.ptm("decrementButton")),[Vr(n.$slots,n.$slots.decrementicon?"decrementicon":"decrementbuttonicon",{},function(){return[(ze(),Nn(jo(n.decrementIcon||n.decrementButtonIcon?"span":"AngleDownIcon"),Et({class:[n.decrementIcon,n.decrementButtonIcon]},n.ptm("decrementIcon"),{"data-pc-section":"decrementicon"}),null,16,["class"]))]})],16,Ujr)]})],16)):fr("",!0),Vr(n.$slots,"incrementbutton",{listeners:d.upButtonListeners},function(){return[n.showButtons&&n.buttonLayout!=="stacked"?(ze(),Lt("button",Et({key:0,class:[n.cx("incrementButton"),n.incrementButtonClass]},Xce(d.upButtonListeners),{disabled:n.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},n.ptm("incrementButton")),[Vr(n.$slots,n.$slots.incrementicon?"incrementicon":"incrementbuttonicon",{},function(){return[(ze(),Nn(jo(n.incrementIcon||n.incrementButtonIcon?"span":"AngleUpIcon"),Et({class:[n.incrementIcon,n.incrementButtonIcon]},n.ptm("incrementIcon"),{"data-pc-section":"incrementicon"}),null,16,["class"]))]})],16,Gjr)):fr("",!0)]}),Vr(n.$slots,"decrementbutton",{listeners:d.downButtonListeners},function(){return[n.showButtons&&n.buttonLayout!=="stacked"?(ze(),Lt("button",Et({key:0,class:[n.cx("decrementButton"),n.decrementButtonClass]},Xce(d.downButtonListeners),{disabled:n.disabled,tabindex:-1,"aria-hidden":"true",type:"button"},n.ptm("decrementButton")),[Vr(n.$slots,n.$slots.decrementicon?"decrementicon":"decrementbuttonicon",{},function(){return[(ze(),Nn(jo(n.decrementIcon||n.decrementButtonIcon?"span":"AngleDownIcon"),Et({class:[n.decrementIcon,n.decrementButtonIcon]},n.ptm("decrementIcon"),{"data-pc-section":"decrementicon"}),null,16,["class"]))]})],16,Vjr)):fr("",!0)]})],16)}thn.render=zjr;var nhn={name:"AngleDoubleRightIcon",extends:Fc};function Kjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z",fill:"currentColor"},null,-1)]),16)}nhn.render=Kjr;var rhn={name:"AngleRightIcon",extends:Fc};function qjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z",fill:"currentColor"},null,-1)]),16)}rhn.render=qjr;var ihn={name:"AngleLeftIcon",extends:Fc};function Xjr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z",fill:"currentColor"},null,-1)]),16)}ihn.render=Xjr;var Jjr={name:"BasePaginator",extends:Kl,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},currentPageReportTemplate:{type:null,default:"({currentPage} of {totalPages})"},alwaysShow:{type:Boolean,default:!0}},style:xjr,provide:function(){return{$pcPaginator:this,$parentInstance:this}}},ohn={name:"CurrentPageReport",hostName:"Paginator",extends:Kl,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:"({currentPage} of {totalPages})"}},computed:{text:function(){var r=this.template.replace("{currentPage}",this.currentPage).replace("{totalPages}",this.pageCount).replace("{first}",this.pageCount>0?this.first+1:0).replace("{last}",Math.min(this.first+this.rows,this.totalRecords)).replace("{rows}",this.rows).replace("{totalRecords}",this.totalRecords);return r}}};function Yjr(n,r,o,l,u,d){return ze(),Lt("span",Et({class:n.cx("current")},n.ptm("current")),na(d.text),17)}ohn.render=Yjr;var shn={name:"FirstPageLink",hostName:"Paginator",extends:Kl,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(r){return this.ptm(r,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:Qdn},directives:{ripple:bk}};function Qjr(n,r,o,l,u,d){var h=TS("ripple");return AS((ze(),Lt("button",Et({class:n.cx("first"),type:"button"},d.getPTOptions("first"),{"data-pc-group-section":"pagebutton"}),[(ze(),Nn(jo(o.template||"AngleDoubleLeftIcon"),Et({class:n.cx("firstIcon")},d.getPTOptions("firstIcon")),null,16,["class"]))],16)),[[h]])}shn.render=Qjr;var lhn={name:"JumpToPageDropdown",hostName:"Paginator",extends:Kl,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean,templates:null},methods:{onChange:function(r){this.$emit("page-change",r)}},computed:{pageOptions:function(){for(var r=[],o=0;on.length)&&(r=n.length);for(var o=0,l=Array(r);o0&&r&&this.d_first>=r&&this.changePage(this.pageCount-1)}},mounted:function(){this.createStyle()},methods:{changePage:function(r){var o=this.pageCount;if(r>=0&&r0?this.page+1:0},last:function(){return Math.min(this.d_first+this.rows,this.totalRecords)}},components:{CurrentPageReport:ohn,FirstPageLink:shn,LastPageLink:chn,NextPageLink:uhn,PageLinks:fhn,PrevPageLink:dhn,RowsPerPageDropdown:hhn,JumpToPageDropdown:lhn,JumpToPageInput:ahn}};function fFr(n,r,o,l,u,d){var h=Ni("FirstPageLink"),w=Ni("PrevPageLink"),v=Ni("NextPageLink"),y=Ni("LastPageLink"),E=Ni("PageLinks"),A=Ni("CurrentPageReport"),C=Ni("RowsPerPageDropdown"),R=Ni("JumpToPageDropdown"),O=Ni("JumpToPageInput");return n.alwaysShow||d.pageLinks&&d.pageLinks.length>1?(ze(),Lt("nav",EL(Et({key:0},n.ptmi("paginatorContainer"))),[(ze(!0),Lt(gi,null,uu(d.templateItems,function(M,L){return ze(),Lt("div",Et({key:L,ref_for:!0,ref:"paginator",class:n.cx("paginator",{key:L})},n.ptm("root")),[n.$slots.container?Vr(n.$slots,"container",{key:0,first:u.d_first+1,last:d.last,rows:u.d_rows,page:d.page,pageCount:d.pageCount,totalRecords:n.totalRecords,firstPageCallback:d.changePageToFirst,lastPageCallback:d.changePageToLast,prevPageCallback:d.changePageToPrev,nextPageCallback:d.changePageToNext,rowChangeCallback:d.onRowChange}):(ze(),Lt(gi,{key:1},[n.$slots.start?(ze(),Lt("div",Et({key:0,class:n.cx("contentStart"),ref_for:!0},n.ptm("contentStart")),[Vr(n.$slots,"start",{state:d.currentState})],16)):fr("",!0),mr("div",Et({class:n.cx("content"),ref_for:!0},n.ptm("content")),[(ze(!0),Lt(gi,null,uu(M,function(H){return ze(),Lt(gi,{key:H},[H==="FirstPageLink"?(ze(),Nn(h,{key:0,"aria-label":d.getAriaLabel("firstPageLabel"),template:n.$slots.firsticon||n.$slots.firstpagelinkicon,onClick:r[0]||(r[0]=function(G){return d.changePageToFirst(G)}),disabled:d.isFirstPage||d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):H==="PrevPageLink"?(ze(),Nn(w,{key:1,"aria-label":d.getAriaLabel("prevPageLabel"),template:n.$slots.previcon||n.$slots.prevpagelinkicon,onClick:r[1]||(r[1]=function(G){return d.changePageToPrev(G)}),disabled:d.isFirstPage||d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):H==="NextPageLink"?(ze(),Nn(v,{key:2,"aria-label":d.getAriaLabel("nextPageLabel"),template:n.$slots.nexticon||n.$slots.nextpagelinkicon,onClick:r[2]||(r[2]=function(G){return d.changePageToNext(G)}),disabled:d.isLastPage||d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):H==="LastPageLink"?(ze(),Nn(y,{key:3,"aria-label":d.getAriaLabel("lastPageLabel"),template:n.$slots.lasticon||n.$slots.lastpagelinkicon,onClick:r[3]||(r[3]=function(G){return d.changePageToLast(G)}),disabled:d.isLastPage||d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):H==="PageLinks"?(ze(),Nn(E,{key:4,"aria-label":d.getAriaLabel("pageLabel"),value:d.pageLinks,page:d.page,onClick:r[4]||(r[4]=function(G){return d.changePageLink(G)}),unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","value","page","unstyled","pt"])):H==="CurrentPageReport"?(ze(),Nn(A,{key:5,"aria-live":"polite",template:n.currentPageReportTemplate,currentPage:d.currentPage,page:d.page,pageCount:d.pageCount,first:u.d_first,rows:u.d_rows,totalRecords:n.totalRecords,unstyled:n.unstyled,pt:n.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","unstyled","pt"])):H==="RowsPerPageDropdown"&&n.rowsPerPageOptions?(ze(),Nn(C,{key:6,"aria-label":d.getAriaLabel("rowsPerPageLabel"),rows:u.d_rows,options:n.rowsPerPageOptions,onRowsChange:r[5]||(r[5]=function(G){return d.onRowChange(G)}),disabled:d.empty,templates:n.$slots,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","rows","options","disabled","templates","unstyled","pt"])):H==="JumpToPageDropdown"?(ze(),Nn(R,{key:7,"aria-label":d.getAriaLabel("jumpToPageDropdownLabel"),page:d.page,pageCount:d.pageCount,onPageChange:r[6]||(r[6]=function(G){return d.changePage(G)}),disabled:d.empty,templates:n.$slots,unstyled:n.unstyled,pt:n.pt},null,8,["aria-label","page","pageCount","disabled","templates","unstyled","pt"])):H==="JumpToPageInput"?(ze(),Nn(O,{key:8,page:d.currentPage,onPageChange:r[7]||(r[7]=function(G){return d.changePage(G)}),disabled:d.empty,unstyled:n.unstyled,pt:n.pt},null,8,["page","disabled","unstyled","pt"])):fr("",!0)],64)}),128))],16),n.$slots.end?(ze(),Lt("div",Et({key:1,class:n.cx("contentEnd"),ref_for:!0},n.ptm("contentEnd")),[Vr(n.$slots,"end",{state:d.currentState})],16)):fr("",!0)],64))],16)}),128))],16)):fr("",!0)}phn.render=fFr;var dFr=function(r){var o=r.dt;return` +.p-datatable { + position: relative; +} + +.p-datatable-table { + border-spacing: 0; + border-collapse: separate; + width: 100%; +} + +.p-datatable-scrollable > .p-datatable-table-container { + position: relative; +} + +.p-datatable-scrollable-table > .p-datatable-thead { + inset-block-start: 0; + z-index: 1; +} + +.p-datatable-scrollable-table > .p-datatable-frozen-tbody { + position: sticky; + z-index: 1; +} + +.p-datatable-scrollable-table > .p-datatable-tfoot { + inset-block-end: 0; + z-index: 1; +} + +.p-datatable-scrollable .p-datatable-frozen-column { + position: sticky; + background: `.concat(o("datatable.header.cell.background"),`; +} + +.p-datatable-scrollable th.p-datatable-frozen-column { + z-index: 1; +} + +.p-datatable-scrollable > .p-datatable-table-container > .p-datatable-table > .p-datatable-thead, +.p-datatable-scrollable > .p-datatable-table-container > .p-virtualscroller > .p-datatable-table > .p-datatable-thead { + background: `).concat(o("datatable.header.cell.background"),`; +} + +.p-datatable-scrollable > .p-datatable-table-container > .p-datatable-table > .p-datatable-tfoot, +.p-datatable-scrollable > .p-datatable-table-container > .p-virtualscroller > .p-datatable-table > .p-datatable-tfoot { + background: `).concat(o("datatable.footer.cell.background"),`; +} + +.p-datatable-flex-scrollable { + display: flex; + flex-direction: column; + height: 100%; +} + +.p-datatable-flex-scrollable > .p-datatable-table-container { + display: flex; + flex-direction: column; + flex: 1; + height: 100%; +} + +.p-datatable-scrollable-table > .p-datatable-tbody > .p-datatable-row-group-header { + position: sticky; + z-index: 1; +} + +.p-datatable-resizable-table > .p-datatable-thead > tr > th, +.p-datatable-resizable-table > .p-datatable-tfoot > tr > td, +.p-datatable-resizable-table > .p-datatable-tbody > tr > td { + overflow: hidden; + white-space: nowrap; +} + +.p-datatable-resizable-table > .p-datatable-thead > tr > th.p-datatable-resizable-column:not(.p-datatable-frozen-column) { + background-clip: padding-box; + position: relative; +} + +.p-datatable-resizable-table-fit > .p-datatable-thead > tr > th.p-datatable-resizable-column:last-child .p-datatable-column-resizer { + display: none; +} + +.p-datatable-column-resizer { + display: block; + position: absolute; + inset-block-start: 0; + inset-inline-end: 0; + margin: 0; + width: `).concat(o("datatable.column.resizer.width"),`; + height: 100%; + padding: 0; + cursor: col-resize; + border: 1px solid transparent; +} + +.p-datatable-column-header-content { + display: flex; + align-items: center; + gap: `).concat(o("datatable.header.cell.gap"),`; +} + +.p-datatable-column-resize-indicator { + width: `).concat(o("datatable.resize.indicator.width"),`; + position: absolute; + z-index: 10; + display: none; + background: `).concat(o("datatable.resize.indicator.color"),`; +} + +.p-datatable-row-reorder-indicator-up, +.p-datatable-row-reorder-indicator-down { + position: absolute; + display: none; +} + +.p-datatable-reorderable-column, +.p-datatable-reorderable-row-handle { + cursor: move; +} + +.p-datatable-mask { + position: absolute; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; +} + +.p-datatable-inline-filter { + display: flex; + align-items: center; + width: 100%; + gap: `).concat(o("datatable.filter.inline.gap"),`; +} + +.p-datatable-inline-filter .p-datatable-filter-element-container { + flex: 1 1 auto; + width: 1%; +} + +.p-datatable-filter-overlay { + background: `).concat(o("datatable.filter.overlay.select.background"),`; + color: `).concat(o("datatable.filter.overlay.select.color"),`; + border: 1px solid `).concat(o("datatable.filter.overlay.select.border.color"),`; + border-radius: `).concat(o("datatable.filter.overlay.select.border.radius"),`; + box-shadow: `).concat(o("datatable.filter.overlay.select.shadow"),`; + min-width: 12.5rem; +} + +.p-datatable-filter-constraint-list { + margin: 0; + list-style: none; + display: flex; + flex-direction: column; + padding: `).concat(o("datatable.filter.constraint.list.padding"),`; + gap: `).concat(o("datatable.filter.constraint.list.gap"),`; +} + +.p-datatable-filter-constraint { + padding: `).concat(o("datatable.filter.constraint.padding"),`; + color: `).concat(o("datatable.filter.constraint.color"),`; + border-radius: `).concat(o("datatable.filter.constraint.border.radius"),`; + cursor: pointer; + transition: background `).concat(o("datatable.transition.duration"),", color ").concat(o("datatable.transition.duration"),", border-color ").concat(o("datatable.transition.duration"),`, + box-shadow `).concat(o("datatable.transition.duration"),`; +} + +.p-datatable-filter-constraint-selected { + background: `).concat(o("datatable.filter.constraint.selected.background"),`; + color: `).concat(o("datatable.filter.constraint.selected.color"),`; +} + +.p-datatable-filter-constraint:not(.p-datatable-filter-constraint-selected):not(.p-disabled):hover { + background: `).concat(o("datatable.filter.constraint.focus.background"),`; + color: `).concat(o("datatable.filter.constraint.focus.color"),`; +} + +.p-datatable-filter-constraint:focus-visible { + outline: 0 none; + background: `).concat(o("datatable.filter.constraint.focus.background"),`; + color: `).concat(o("datatable.filter.constraint.focus.color"),`; +} + +.p-datatable-filter-constraint-selected:focus-visible { + outline: 0 none; + background: `).concat(o("datatable.filter.constraint.selected.focus.background"),`; + color: `).concat(o("datatable.filter.constraint.selected.focus.color"),`; +} + +.p-datatable-filter-constraint-separator { + border-block-start: 1px solid `).concat(o("datatable.filter.constraint.separator.border.color"),`; +} + +.p-datatable-popover-filter { + display: inline-flex; + margin-inline-start: auto; +} + +.p-datatable-filter-overlay-popover { + background: `).concat(o("datatable.filter.overlay.popover.background"),`; + color: `).concat(o("datatable.filter.overlay.popover.color"),`; + border: 1px solid `).concat(o("datatable.filter.overlay.popover.border.color"),`; + border-radius: `).concat(o("datatable.filter.overlay.popover.border.radius"),`; + box-shadow: `).concat(o("datatable.filter.overlay.popover.shadow"),`; + min-width: 12.5rem; + padding: `).concat(o("datatable.filter.overlay.popover.padding"),`; + display: flex; + flex-direction: column; + gap: `).concat(o("datatable.filter.overlay.popover.gap"),`; +} + +.p-datatable-filter-operator-dropdown { + width: 100%; +} + +.p-datatable-filter-rule-list, +.p-datatable-filter-rule { + display: flex; + flex-direction: column; + gap: `).concat(o("datatable.filter.overlay.popover.gap"),`; +} + +.p-datatable-filter-rule { + border-block-end: 1px solid `).concat(o("datatable.filter.rule.border.color"),`; + padding-bottom: `).concat(o("datatable.filter.overlay.popover.gap"),`; +} + +.p-datatable-filter-rule:last-child { + border-block-end: 0 none; + padding-bottom: 0; +} + +.p-datatable-filter-add-rule-button { + width: 100%; +} + +.p-datatable-filter-remove-rule-button { + width: 100%; +} + +.p-datatable-filter-buttonbar { + padding: 0; + display: flex; + align-items: center; + justify-content: space-between; +} + +.p-datatable-virtualscroller-spacer { + display: flex; +} + +.p-datatable .p-virtualscroller .p-virtualscroller-loading { + transform: none !important; + min-height: 0; + position: sticky; + inset-block-start: 0; + inset-inline-start: 0; +} + +.p-datatable-paginator-top { + border-color: `).concat(o("datatable.paginator.top.border.color"),`; + border-style: solid; + border-width: `).concat(o("datatable.paginator.top.border.width"),`; +} + +.p-datatable-paginator-bottom { + border-color: `).concat(o("datatable.paginator.bottom.border.color"),`; + border-style: solid; + border-width: `).concat(o("datatable.paginator.bottom.border.width"),`; +} + +.p-datatable-header { + background: `).concat(o("datatable.header.background"),`; + color: `).concat(o("datatable.header.color"),`; + border-color: `).concat(o("datatable.header.border.color"),`; + border-style: solid; + border-width: `).concat(o("datatable.header.border.width"),`; + padding: `).concat(o("datatable.header.padding"),`; +} + +.p-datatable-footer { + background: `).concat(o("datatable.footer.background"),`; + color: `).concat(o("datatable.footer.color"),`; + border-color: `).concat(o("datatable.footer.border.color"),`; + border-style: solid; + border-width: `).concat(o("datatable.footer.border.width"),`; + padding: `).concat(o("datatable.footer.padding"),`; +} + +.p-datatable-header-cell { + padding: `).concat(o("datatable.header.cell.padding"),`; + background: `).concat(o("datatable.header.cell.background"),`; + border-color: `).concat(o("datatable.header.cell.border.color"),`; + border-style: solid; + border-width: 0 0 1px 0; + color: `).concat(o("datatable.header.cell.color"),`; + font-weight: normal; + text-align: start; + transition: background `).concat(o("datatable.transition.duration"),", color ").concat(o("datatable.transition.duration"),", border-color ").concat(o("datatable.transition.duration"),`, + outline-color `).concat(o("datatable.transition.duration"),", box-shadow ").concat(o("datatable.transition.duration"),`; +} + +.p-datatable-column-title { + font-weight: `).concat(o("datatable.column.title.font.weight"),`; +} + +.p-datatable-tbody > tr { + outline-color: transparent; + background: `).concat(o("datatable.row.background"),`; + color: `).concat(o("datatable.row.color"),`; + transition: background `).concat(o("datatable.transition.duration"),", color ").concat(o("datatable.transition.duration"),", border-color ").concat(o("datatable.transition.duration"),`, + outline-color `).concat(o("datatable.transition.duration"),", box-shadow ").concat(o("datatable.transition.duration"),`; +} + +.p-datatable-tbody > tr > td { + text-align: start; + border-color: `).concat(o("datatable.body.cell.border.color"),`; + border-style: solid; + border-width: 0 0 1px 0; + padding: `).concat(o("datatable.body.cell.padding"),`; +} + +.p-datatable-hoverable .p-datatable-tbody > tr:not(.p-datatable-row-selected):hover { + background: `).concat(o("datatable.row.hover.background"),`; + color: `).concat(o("datatable.row.hover.color"),`; +} + +.p-datatable-tbody > tr.p-datatable-row-selected { + background: `).concat(o("datatable.row.selected.background"),`; + color: `).concat(o("datatable.row.selected.color"),`; +} + +.p-datatable-tbody > tr:has(+ .p-datatable-row-selected) > td { + border-block-end-color: `).concat(o("datatable.body.cell.selected.border.color"),`; +} + +.p-datatable-tbody > tr.p-datatable-row-selected > td { + border-block-end-color: `).concat(o("datatable.body.cell.selected.border.color"),`; +} + +.p-datatable-tbody > tr:focus-visible, +.p-datatable-tbody > tr.p-datatable-contextmenu-row-selected { + box-shadow: `).concat(o("datatable.row.focus.ring.shadow"),`; + outline: `).concat(o("datatable.row.focus.ring.width")," ").concat(o("datatable.row.focus.ring.style")," ").concat(o("datatable.row.focus.ring.color"),`; + outline-offset: `).concat(o("datatable.row.focus.ring.offset"),`; +} + +.p-datatable-tfoot > tr > td { + text-align: start; + padding: `).concat(o("datatable.footer.cell.padding"),`; + border-color: `).concat(o("datatable.footer.cell.border.color"),`; + border-style: solid; + border-width: 0 0 1px 0; + color: `).concat(o("datatable.footer.cell.color"),`; + background: `).concat(o("datatable.footer.cell.background"),`; +} + +.p-datatable-column-footer { + font-weight: `).concat(o("datatable.column.footer.font.weight"),`; +} + +.p-datatable-sortable-column { + cursor: pointer; + user-select: none; + outline-color: transparent; +} + +.p-datatable-column-title, +.p-datatable-sort-icon, +.p-datatable-sort-badge { + vertical-align: middle; +} + +.p-datatable-sort-icon { + color: `).concat(o("datatable.sort.icon.color"),`; + font-size: `).concat(o("datatable.sort.icon.size"),`; + width: `).concat(o("datatable.sort.icon.size"),`; + height: `).concat(o("datatable.sort.icon.size"),`; + transition: color `).concat(o("datatable.transition.duration"),`; +} + +.p-datatable-sortable-column:not(.p-datatable-column-sorted):hover { + background: `).concat(o("datatable.header.cell.hover.background"),`; + color: `).concat(o("datatable.header.cell.hover.color"),`; +} + +.p-datatable-sortable-column:not(.p-datatable-column-sorted):hover .p-datatable-sort-icon { + color: `).concat(o("datatable.sort.icon.hover.color"),`; +} + +.p-datatable-column-sorted { + background: `).concat(o("datatable.header.cell.selected.background"),`; + color: `).concat(o("datatable.header.cell.selected.color"),`; +} + +.p-datatable-column-sorted .p-datatable-sort-icon { + color: `).concat(o("datatable.header.cell.selected.color"),`; +} + +.p-datatable-sortable-column:focus-visible { + box-shadow: `).concat(o("datatable.header.cell.focus.ring.shadow"),`; + outline: `).concat(o("datatable.header.cell.focus.ring.width")," ").concat(o("datatable.header.cell.focus.ring.style")," ").concat(o("datatable.header.cell.focus.ring.color"),`; + outline-offset: `).concat(o("datatable.header.cell.focus.ring.offset"),`; +} + +.p-datatable-hoverable .p-datatable-selectable-row { + cursor: pointer; +} + +.p-datatable-tbody > tr.p-datatable-dragpoint-top > td { + box-shadow: inset 0 2px 0 0 `).concat(o("datatable.drop.point.color"),`; +} + +.p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td { + box-shadow: inset 0 -2px 0 0 `).concat(o("datatable.drop.point.color"),`; +} + +.p-datatable-loading-icon { + font-size: `).concat(o("datatable.loading.icon.size"),`; + width: `).concat(o("datatable.loading.icon.size"),`; + height: `).concat(o("datatable.loading.icon.size"),`; +} + +.p-datatable-gridlines .p-datatable-header { + border-width: 1px 1px 0 1px; +} + +.p-datatable-gridlines .p-datatable-footer { + border-width: 0 1px 1px 1px; +} + +.p-datatable-gridlines .p-datatable-paginator-top { + border-width: 1px 1px 0 1px; +} + +.p-datatable-gridlines .p-datatable-paginator-bottom { + border-width: 0 1px 1px 1px; +} + +.p-datatable-gridlines .p-datatable-thead > tr > th { + border-width: 1px 0 1px 1px; +} + +.p-datatable-gridlines .p-datatable-thead > tr > th:last-child { + border-width: 1px; +} + +.p-datatable-gridlines .p-datatable-tbody > tr > td { + border-width: 1px 0 0 1px; +} + +.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child { + border-width: 1px 1px 0 1px; +} + +.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td { + border-width: 1px 0 1px 1px; +} + +.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td:last-child { + border-width: 1px; +} + +.p-datatable-gridlines .p-datatable-tfoot > tr > td { + border-width: 1px 0 1px 1px; +} + +.p-datatable-gridlines .p-datatable-tfoot > tr > td:last-child { + border-width: 1px 1px 1px 1px; +} + +.p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td { + border-width: 0 0 1px 1px; +} + +.p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td:last-child { + border-width: 0 1px 1px 1px; +} + +.p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td { + border-width: 0 0 1px 1px; +} + +.p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td:last-child { + border-width: 0 1px 1px 1px; +} + +.p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td { + border-width: 0 0 0 1px; +} + +.p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td:last-child { + border-width: 0 1px 0 1px; +} + +.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd { + background: `).concat(o("datatable.row.striped.background"),`; +} + +.p-datatable.p-datatable-striped .p-datatable-tbody > tr.p-row-odd.p-datatable-row-selected { + background: `).concat(o("datatable.row.selected.background"),`; + color: `).concat(o("datatable.row.selected.color"),`; +} + +.p-datatable-striped.p-datatable-hoverable .p-datatable-tbody > tr:not(.p-datatable-row-selected):hover { + background: `).concat(o("datatable.row.hover.background"),`; + color: `).concat(o("datatable.row.hover.color"),`; +} + +.p-datatable.p-datatable-sm .p-datatable-header { + padding: 0.375rem 0.5rem; +} + +.p-datatable.p-datatable-sm .p-datatable-thead > tr > th { + padding: 0.375rem 0.5rem; +} + +.p-datatable.p-datatable-sm .p-datatable-tbody > tr > td { + padding: 0.375rem 0.5rem; +} + +.p-datatable.p-datatable-sm .p-datatable-tfoot > tr > td { + padding: 0.375rem 0.5rem; +} + +.p-datatable.p-datatable-sm .p-datatable-footer { + padding: 0.375rem 0.5rem; +} + +.p-datatable.p-datatable-lg .p-datatable-header { + padding: 1rem 1.25rem; +} + +.p-datatable.p-datatable-lg .p-datatable-thead > tr > th { + padding: 1rem 1.25rem; +} + +.p-datatable.p-datatable-lg .p-datatable-tbody > tr > td { + padding: 1rem 1.25rem; +} + +.p-datatable.p-datatable-lg .p-datatable-tfoot > tr > td { + padding: 1rem 1.25rem; +} + +.p-datatable.p-datatable-lg .p-datatable-footer { + padding: 1rem 1.25rem; +} + +.p-datatable-row-toggle-button { + display: inline-flex; + align-items: center; + justify-content: center; + overflow: hidden; + position: relative; + width: `).concat(o("datatable.row.toggle.button.size"),`; + height: `).concat(o("datatable.row.toggle.button.size"),`; + color: `).concat(o("datatable.row.toggle.button.color"),`; + border: 0 none; + background: transparent; + cursor: pointer; + border-radius: `).concat(o("datatable.row.toggle.button.border.radius"),`; + transition: background `).concat(o("datatable.transition.duration"),", color ").concat(o("datatable.transition.duration"),", border-color ").concat(o("datatable.transition.duration"),`, + outline-color `).concat(o("datatable.transition.duration"),", box-shadow ").concat(o("datatable.transition.duration"),`; + outline-color: transparent; + user-select: none; +} + +.p-datatable-row-toggle-button:enabled:hover { + color: `).concat(o("datatable.row.toggle.button.hover.color"),`; + background: `).concat(o("datatable.row.toggle.button.hover.background"),`; +} + +.p-datatable-tbody > tr.p-datatable-row-selected .p-datatable-row-toggle-button:hover { + background: `).concat(o("datatable.row.toggle.button.selected.hover.background"),`; + color: `).concat(o("datatable.row.toggle.button.selected.hover.color"),`; +} + +.p-datatable-row-toggle-button:focus-visible { + box-shadow: `).concat(o("datatable.row.toggle.button.focus.ring.shadow"),`; + outline: `).concat(o("datatable.row.toggle.button.focus.ring.width")," ").concat(o("datatable.row.toggle.button.focus.ring.style")," ").concat(o("datatable.row.toggle.button.focus.ring.color"),`; + outline-offset: `).concat(o("datatable.row.toggle.button.focus.ring.offset"),`; +} + +.p-datatable-row-toggle-icon:dir(rtl) { + transform: rotate(180deg); +} +`)},hFr={root:function(r){var o=r.props;return["p-datatable p-component",{"p-datatable-hoverable":o.rowHover||o.selectionMode,"p-datatable-resizable":o.resizableColumns,"p-datatable-resizable-fit":o.resizableColumns&&o.columnResizeMode==="fit","p-datatable-scrollable":o.scrollable,"p-datatable-flex-scrollable":o.scrollable&&o.scrollHeight==="flex","p-datatable-striped":o.stripedRows,"p-datatable-gridlines":o.showGridlines,"p-datatable-sm":o.size==="small","p-datatable-lg":o.size==="large"}]},mask:"p-datatable-mask p-overlay-mask",loadingIcon:"p-datatable-loading-icon",header:"p-datatable-header",pcPaginator:function(r){var o=r.position;return"p-datatable-paginator-"+o},tableContainer:"p-datatable-table-container",table:function(r){var o=r.props;return["p-datatable-table",{"p-datatable-scrollable-table":o.scrollable,"p-datatable-resizable-table":o.resizableColumns,"p-datatable-resizable-table-fit":o.resizableColumns&&o.columnResizeMode==="fit"}]},thead:"p-datatable-thead",headerCell:function(r){var o=r.instance,l=r.props,u=r.column;return u&&!o.columnProp(u,"hidden")&&(l.rowGroupMode!=="subheader"||l.groupRowsBy!==o.columnProp(u,"field"))?["p-datatable-header-cell",{"p-datatable-frozen-column":o.columnProp(u,"frozen")}]:["p-datatable-header-cell",{"p-datatable-sortable-column":o.columnProp("sortable"),"p-datatable-resizable-column":o.resizableColumns,"p-datatable-column-sorted":o.isColumnSorted(),"p-datatable-frozen-column":o.columnProp("frozen"),"p-datatable-reorderable-column":l.reorderableColumns}]},columnResizer:"p-datatable-column-resizer",columnHeaderContent:"p-datatable-column-header-content",columnTitle:"p-datatable-column-title",columnFooter:"p-datatable-column-footer",sortIcon:"p-datatable-sort-icon",pcSortBadge:"p-datatable-sort-badge",filter:function(r){var o=r.props;return["p-datatable-filter",{"p-datatable-inline-filter":o.display==="row","p-datatable-popover-filter":o.display==="menu"}]},filterElementContainer:"p-datatable-filter-element-container",pcColumnFilterButton:"p-datatable-column-filter-button",pcColumnFilterClearButton:"p-datatable-column-filter-clear-button",filterOverlay:function(r){r.instance;var o=r.props;return["p-datatable-filter-overlay p-component",{"p-datatable-filter-overlay-popover":o.display==="menu"}]},filterConstraintList:"p-datatable-filter-constraint-list",filterConstraint:function(r){var o=r.instance,l=r.matchMode;return["p-datatable-filter-constraint",{"p-datatable-filter-constraint-selected":l&&o.isRowMatchModeSelected(l.value)}]},filterConstraintSeparator:"p-datatable-filter-constraint-separator",filterOperator:"p-datatable-filter-operator",pcFilterOperatorDropdown:"p-datatable-filter-operator-dropdown",filterRuleList:"p-datatable-filter-rule-list",filterRule:"p-datatable-filter-rule",pcFilterConstraintDropdown:"p-datatable-filter-constraint-dropdown",pcFilterRemoveRuleButton:"p-datatable-filter-remove-rule-button",pcFilterAddRuleButton:"p-datatable-filter-add-rule-button",filterButtonbar:"p-datatable-filter-buttonbar",pcFilterClearButton:"p-datatable-filter-clear-button",pcFilterApplyButton:"p-datatable-filter-apply-button",tbody:function(r){var o=r.props;return o.frozenRow?"p-datatable-tbody p-datatable-frozen-tbody":"p-datatable-tbody"},rowGroupHeader:"p-datatable-row-group-header",rowToggleButton:"p-datatable-row-toggle-button",rowToggleIcon:"p-datatable-row-toggle-icon",row:function(r){var o=r.instance,l=r.props,u=r.index,d=r.columnSelectionMode,h=[];return l.selectionMode&&h.push("p-datatable-selectable-row"),l.selection&&h.push({"p-datatable-row-selected":d?o.isSelected&&o.$parentInstance.$parentInstance.highlightOnSelect:o.isSelected}),l.contextMenuSelection&&h.push({"p-datatable-contextmenu-row-selected":o.isSelectedWithContextMenu}),h.push(u%2===0?"p-row-even":"p-row-odd"),h},rowExpansion:"p-datatable-row-expansion",rowGroupFooter:"p-datatable-row-group-footer",emptyMessage:"p-datatable-empty-message",bodyCell:function(r){var o=r.instance;return[{"p-datatable-frozen-column":o.columnProp("frozen")}]},reorderableRowHandle:"p-datatable-reorderable-row-handle",pcRowEditorInit:"p-datatable-row-editor-init",pcRowEditorSave:"p-datatable-row-editor-save",pcRowEditorCancel:"p-datatable-row-editor-cancel",tfoot:"p-datatable-tfoot",footerCell:function(r){var o=r.instance;return[{"p-datatable-frozen-column":o.columnProp("frozen")}]},virtualScrollerSpacer:"p-datatable-virtualscroller-spacer",footer:"p-datatable-footer",columnResizeIndicator:"p-datatable-column-resize-indicator",rowReorderIndicatorUp:"p-datatable-row-reorder-indicator-up",rowReorderIndicatorDown:"p-datatable-row-reorder-indicator-down"},pFr={tableContainer:{overflow:"auto"},thead:{position:"sticky"},tfoot:{position:"sticky"}},bFr=Bs.extend({name:"datatable",theme:dFr,classes:hFr,inlineStyles:pFr}),IVe={name:"ChevronRightIcon",extends:Fc};function gFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1)]),16)}IVe.render=gFr;var bhn={name:"BarsIcon",extends:Fc};function wFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z",fill:"currentColor"},null,-1)]),16)}bhn.render=wFr;var ghn={name:"PencilIcon",extends:Fc};function mFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M0.609628 13.959C0.530658 13.9599 0.452305 13.9451 0.379077 13.9156C0.305849 13.8861 0.239191 13.8424 0.18294 13.787C0.118447 13.7234 0.0688234 13.6464 0.0376166 13.5614C0.00640987 13.4765 -0.00560954 13.3857 0.00241768 13.2956L0.25679 10.1501C0.267698 10.0041 0.331934 9.86709 0.437312 9.76516L9.51265 0.705715C10.0183 0.233014 10.6911 -0.0203041 11.3835 0.00127367C12.0714 0.00660201 12.7315 0.27311 13.2298 0.746671C13.7076 1.23651 13.9824 1.88848 13.9992 2.57201C14.0159 3.25554 13.7733 3.92015 13.32 4.4327L4.23648 13.5331C4.13482 13.6342 4.0017 13.6978 3.85903 13.7133L0.667067 14L0.609628 13.959ZM1.43018 10.4696L1.25787 12.714L3.50619 12.5092L12.4502 3.56444C12.6246 3.35841 12.7361 3.10674 12.7714 2.83933C12.8067 2.57193 12.7644 2.30002 12.6495 2.05591C12.5346 1.8118 12.3519 1.60575 12.1231 1.46224C11.8943 1.31873 11.6291 1.2438 11.3589 1.24633C11.1813 1.23508 11.0033 1.25975 10.8355 1.31887C10.6677 1.37798 10.5136 1.47033 10.3824 1.59036L1.43018 10.4696Z",fill:"currentColor"},null,-1)]),16)}ghn.render=mFr;var whn={name:"MinusIcon",extends:Fc};function yFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"},null,-1)]),16)}whn.render=yFr;var vFr=function(r){var o=r.dt;return` +.p-checkbox { + position: relative; + display: inline-flex; + user-select: none; + vertical-align: bottom; + width: `.concat(o("checkbox.width"),`; + height: `).concat(o("checkbox.height"),`; +} + +.p-checkbox-input { + cursor: pointer; + appearance: none; + position: absolute; + inset-block-start: 0; + inset-inline-start: 0; + width: 100%; + height: 100%; + padding: 0; + margin: 0; + opacity: 0; + z-index: 1; + outline: 0 none; + border: 1px solid transparent; + border-radius: `).concat(o("checkbox.border.radius"),`; +} + +.p-checkbox-box { + display: flex; + justify-content: center; + align-items: center; + border-radius: `).concat(o("checkbox.border.radius"),`; + border: 1px solid `).concat(o("checkbox.border.color"),`; + background: `).concat(o("checkbox.background"),`; + width: `).concat(o("checkbox.width"),`; + height: `).concat(o("checkbox.height"),`; + transition: background `).concat(o("checkbox.transition.duration"),", color ").concat(o("checkbox.transition.duration"),", border-color ").concat(o("checkbox.transition.duration"),", box-shadow ").concat(o("checkbox.transition.duration"),", outline-color ").concat(o("checkbox.transition.duration"),`; + outline-color: transparent; + box-shadow: `).concat(o("checkbox.shadow"),`; +} + +.p-checkbox-icon { + transition-duration: `).concat(o("checkbox.transition.duration"),`; + color: `).concat(o("checkbox.icon.color"),`; + font-size: `).concat(o("checkbox.icon.size"),`; + width: `).concat(o("checkbox.icon.size"),`; + height: `).concat(o("checkbox.icon.size"),`; +} + +.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box { + border-color: `).concat(o("checkbox.hover.border.color"),`; +} + +.p-checkbox-checked .p-checkbox-box { + border-color: `).concat(o("checkbox.checked.border.color"),`; + background: `).concat(o("checkbox.checked.background"),`; +} + +.p-checkbox-checked .p-checkbox-icon { + color: `).concat(o("checkbox.icon.checked.color"),`; +} + +.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box { + background: `).concat(o("checkbox.checked.hover.background"),`; + border-color: `).concat(o("checkbox.checked.hover.border.color"),`; +} + +.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon { + color: `).concat(o("checkbox.icon.checked.hover.color"),`; +} + +.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box { + border-color: `).concat(o("checkbox.focus.border.color"),`; + box-shadow: `).concat(o("checkbox.focus.ring.shadow"),`; + outline: `).concat(o("checkbox.focus.ring.width")," ").concat(o("checkbox.focus.ring.style")," ").concat(o("checkbox.focus.ring.color"),`; + outline-offset: `).concat(o("checkbox.focus.ring.offset"),`; +} + +.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box { + border-color: `).concat(o("checkbox.checked.focus.border.color"),`; +} + +.p-checkbox.p-invalid > .p-checkbox-box { + border-color: `).concat(o("checkbox.invalid.border.color"),`; +} + +.p-checkbox.p-variant-filled .p-checkbox-box { + background: `).concat(o("checkbox.filled.background"),`; +} + +.p-checkbox-checked.p-variant-filled .p-checkbox-box { + background: `).concat(o("checkbox.checked.background"),`; +} + +.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box { + background: `).concat(o("checkbox.checked.hover.background"),`; +} + +.p-checkbox.p-disabled { + opacity: 1; +} + +.p-checkbox.p-disabled .p-checkbox-box { + background: `).concat(o("checkbox.disabled.background"),`; + border-color: `).concat(o("checkbox.checked.disabled.border.color"),`; +} + +.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon { + color: `).concat(o("checkbox.icon.disabled.color"),`; +} + +.p-checkbox-sm, +.p-checkbox-sm .p-checkbox-box { + width: `).concat(o("checkbox.sm.width"),`; + height: `).concat(o("checkbox.sm.height"),`; +} + +.p-checkbox-sm .p-checkbox-icon { + font-size: `).concat(o("checkbox.icon.sm.size"),`; + width: `).concat(o("checkbox.icon.sm.size"),`; + height: `).concat(o("checkbox.icon.sm.size"),`; +} + +.p-checkbox-lg, +.p-checkbox-lg .p-checkbox-box { + width: `).concat(o("checkbox.lg.width"),`; + height: `).concat(o("checkbox.lg.height"),`; +} + +.p-checkbox-lg .p-checkbox-icon { + font-size: `).concat(o("checkbox.icon.lg.size"),`; + width: `).concat(o("checkbox.icon.lg.size"),`; + height: `).concat(o("checkbox.icon.lg.size"),`; +} +`)},_Fr={root:function(r){var o=r.instance,l=r.props;return["p-checkbox p-component",{"p-checkbox-checked":o.checked,"p-disabled":l.disabled,"p-invalid":o.$pcCheckboxGroup?o.$pcCheckboxGroup.$invalid:o.$invalid,"p-variant-filled":o.$variant==="filled","p-checkbox-sm p-inputfield-sm":l.size==="small","p-checkbox-lg p-inputfield-lg":l.size==="large"}]},box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},SFr=Bs.extend({name:"checkbox",theme:vFr,classes:_Fr}),EFr={name:"BaseCheckbox",extends:QX,props:{value:null,binary:Boolean,indeterminate:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:SFr,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}};function kFr(n){return AFr(n)||CFr(n)||xFr(n)||RFr()}function RFr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xFr(n,r){if(n){if(typeof n=="string")return oWe(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?oWe(n,r):void 0}}function CFr(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function AFr(n){if(Array.isArray(n))return oWe(n)}function oWe(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o .p-radiobutton-box { + border-color: `).concat(o("radiobutton.invalid.border.color"),`; +} + +.p-radiobutton.p-variant-filled .p-radiobutton-box { + background: `).concat(o("radiobutton.filled.background"),`; +} + +.p-radiobutton.p-variant-filled.p-radiobutton-checked .p-radiobutton-box { + background: `).concat(o("radiobutton.checked.background"),`; +} + +.p-radiobutton.p-variant-filled:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box { + background: `).concat(o("radiobutton.checked.hover.background"),`; +} + +.p-radiobutton.p-disabled { + opacity: 1; +} + +.p-radiobutton.p-disabled .p-radiobutton-box { + background: `).concat(o("radiobutton.disabled.background"),`; + border-color: `).concat(o("radiobutton.checked.disabled.border.color"),`; +} + +.p-radiobutton-checked.p-disabled .p-radiobutton-box .p-radiobutton-icon { + background: `).concat(o("radiobutton.icon.disabled.color"),`; +} + +.p-radiobutton-sm, +.p-radiobutton-sm .p-radiobutton-box { + width: `).concat(o("radiobutton.sm.width"),`; + height: `).concat(o("radiobutton.sm.height"),`; +} + +.p-radiobutton-sm .p-radiobutton-icon { + font-size: `).concat(o("radiobutton.icon.sm.size"),`; + width: `).concat(o("radiobutton.icon.sm.size"),`; + height: `).concat(o("radiobutton.icon.sm.size"),`; +} + +.p-radiobutton-lg, +.p-radiobutton-lg .p-radiobutton-box { + width: `).concat(o("radiobutton.lg.width"),`; + height: `).concat(o("radiobutton.lg.height"),`; +} + +.p-radiobutton-lg .p-radiobutton-icon { + font-size: `).concat(o("radiobutton.icon.lg.size"),`; + width: `).concat(o("radiobutton.icon.lg.size"),`; + height: `).concat(o("radiobutton.icon.lg.size"),`; +} +`)},OFr={root:function(r){var o=r.instance,l=r.props;return["p-radiobutton p-component",{"p-radiobutton-checked":o.checked,"p-disabled":l.disabled,"p-invalid":o.$pcRadioButtonGroup?o.$pcRadioButtonGroup.$invalid:o.$invalid,"p-variant-filled":o.$variant==="filled","p-radiobutton-sm p-inputfield-sm":l.size==="small","p-radiobutton-lg p-inputfield-lg":l.size==="large"}]},box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},NFr=Bs.extend({name:"radiobutton",theme:PFr,classes:OFr}),MFr={name:"BaseRadioButton",extends:QX,props:{value:null,binary:Boolean,readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:NFr,provide:function(){return{$pcRadioButton:this,$parentInstance:this}}},mhn={name:"RadioButton",extends:MFr,inheritAttrs:!1,emits:["change","focus","blur"],inject:{$pcRadioButtonGroup:{default:void 0}},methods:{getPTOptions:function(r){var o=r==="root"?this.ptmi:this.ptm;return o(r,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(r){if(!this.disabled&&!this.readonly){var o=this.binary?!this.checked:this.value;this.$pcRadioButtonGroup?this.$pcRadioButtonGroup.writeValue(o,r):this.writeValue(o,r),this.$emit("change",r)}},onFocus:function(r){this.$emit("focus",r)},onBlur:function(r){var o,l;this.$emit("blur",r),(o=(l=this.formField).onBlur)===null||o===void 0||o.call(l,r)}},computed:{groupName:function(){return this.$pcRadioButtonGroup?this.$pcRadioButtonGroup.groupName:this.$formName},checked:function(){var r=this.$pcRadioButtonGroup?this.$pcRadioButtonGroup.d_value:this.d_value;return r!=null&&(this.binary?!!r:WP(r,this.value))}}},DFr=["data-p-checked","data-p-disabled"],LFr=["id","value","name","checked","tabindex","disabled","readonly","aria-labelledby","aria-label","aria-invalid"];function jFr(n,r,o,l,u,d){return ze(),Lt("div",Et({class:n.cx("root")},d.getPTOptions("root"),{"data-p-checked":d.checked,"data-p-disabled":n.disabled}),[mr("input",Et({id:n.inputId,type:"radio",class:[n.cx("input"),n.inputClass],style:n.inputStyle,value:n.value,name:d.groupName,checked:d.checked,tabindex:n.tabindex,disabled:n.disabled,readonly:n.readonly,"aria-labelledby":n.ariaLabelledby,"aria-label":n.ariaLabel,"aria-invalid":n.invalid||void 0,onFocus:r[0]||(r[0]=function(){return d.onFocus&&d.onFocus.apply(d,arguments)}),onBlur:r[1]||(r[1]=function(){return d.onBlur&&d.onBlur.apply(d,arguments)}),onChange:r[2]||(r[2]=function(){return d.onChange&&d.onChange.apply(d,arguments)})},d.getPTOptions("input")),null,16,LFr),mr("div",Et({class:n.cx("box")},d.getPTOptions("box")),[mr("div",Et({class:n.cx("icon")},d.getPTOptions("icon")),null,16)],16)],16,DFr)}mhn.render=jFr;var yhn={name:"FilterIcon",extends:Fc};function FFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z",fill:"currentColor"},null,-1)]),16)}yhn.render=FFr;var vhn={name:"FilterSlashIcon",extends:Fc};function BFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z",fill:"currentColor"},null,-1)]),16)}vhn.render=BFr;var _hn={name:"PlusIcon",extends:Fc};function WFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z",fill:"currentColor"},null,-1)]),16)}_hn.render=WFr;var Shn={name:"TrashIcon",extends:Fc};function HFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z",fill:"currentColor"},null,-1)]),16)}Shn.render=HFr;var sWe={name:"SortAltIcon",extends:Fc};function UFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z",fill:"currentColor"},null,-1),mr("path",{d:"M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z",fill:"currentColor"},null,-1),mr("path",{d:"M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z",fill:"currentColor"},null,-1),mr("path",{d:"M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z",fill:"currentColor"},null,-1)]),16)}sWe.render=UFr;var lWe={name:"SortAmountDownIcon",extends:Fc};function GFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z",fill:"currentColor"},null,-1)]),16)}lWe.render=GFr;var aWe={name:"SortAmountUpAltIcon",extends:Fc};function VFr(n,r,o,l,u,d){return ze(),Lt("svg",Et({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.pti()),r[0]||(r[0]=[mr("path",{d:"M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z",fill:"currentColor"},null,-1)]),16)}aWe.render=VFr;var zFr={name:"BaseDataTable",extends:Kl,props:{value:{type:Array,default:null},dataKey:{type:[String,Function],default:null},rows:{type:Number,default:0},first:{type:Number,default:0},totalRecords:{type:Number,default:0},paginator:{type:Boolean,default:!1},paginatorPosition:{type:String,default:"bottom"},alwaysShowPaginator:{type:Boolean,default:!0},paginatorTemplate:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},currentPageReportTemplate:{type:String,default:"({currentPage} of {totalPages})"},lazy:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},sortField:{type:[String,Function],default:null},sortOrder:{type:Number,default:null},defaultSortOrder:{type:Number,default:1},nullSortOrder:{type:Number,default:1},multiSortMeta:{type:Array,default:null},sortMode:{type:String,default:"single"},removableSort:{type:Boolean,default:!1},filters:{type:Object,default:null},filterDisplay:{type:String,default:null},globalFilterFields:{type:Array,default:null},filterLocale:{type:String,default:void 0},selection:{type:[Array,Object],default:null},selectionMode:{type:String,default:null},compareSelectionBy:{type:String,default:"deepEquals"},metaKeySelection:{type:Boolean,default:!1},contextMenu:{type:Boolean,default:!1},contextMenuSelection:{type:Object,default:null},selectAll:{type:Boolean,default:null},rowHover:{type:Boolean,default:!1},csvSeparator:{type:String,default:","},exportFilename:{type:String,default:"download"},exportFunction:{type:Function,default:null},resizableColumns:{type:Boolean,default:!1},columnResizeMode:{type:String,default:"fit"},reorderableColumns:{type:Boolean,default:!1},expandedRows:{type:[Array,Object],default:null},expandedRowIcon:{type:String,default:void 0},collapsedRowIcon:{type:String,default:void 0},rowGroupMode:{type:String,default:null},groupRowsBy:{type:[Array,String,Function],default:null},expandableRowGroups:{type:Boolean,default:!1},expandedRowGroups:{type:Array,default:null},stateStorage:{type:String,default:"session"},stateKey:{type:String,default:null},editMode:{type:String,default:null},editingRows:{type:Array,default:null},rowClass:{type:Function,default:null},rowStyle:{type:Function,default:null},scrollable:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},scrollHeight:{type:String,default:null},frozenValue:{type:Array,default:null},breakpoint:{type:String,default:"960px"},showHeaders:{type:Boolean,default:!0},showGridlines:{type:Boolean,default:!1},stripedRows:{type:Boolean,default:!1},highlightOnSelect:{type:Boolean,default:!1},size:{type:String,default:null},tableStyle:{type:null,default:null},tableClass:{type:[String,Object],default:null},tableProps:{type:Object,default:null},filterInputProps:{type:null,default:null},filterButtonProps:{type:Object,default:function(){return{filter:{severity:"secondary",text:!0,rounded:!0},inline:{clear:{severity:"secondary",text:!0,rounded:!0}},popover:{addRule:{severity:"info",text:!0,size:"small"},removeRule:{severity:"danger",text:!0,size:"small"},apply:{size:"small"},clear:{outlined:!0,size:"small"}}}}},editButtonProps:{type:Object,default:function(){return{init:{severity:"secondary",text:!0,rounded:!0},save:{severity:"secondary",text:!0,rounded:!0},cancel:{severity:"secondary",text:!0,rounded:!0}}}}},style:bFr,provide:function(){return{$pcDataTable:this,$parentInstance:this}}},Ehn={name:"RowCheckbox",hostName:"DataTable",extends:Kl,emits:["change"],props:{value:null,checked:null,column:null,rowCheckboxIconTemplate:{type:Function,default:null},index:{type:Number,default:null}},methods:{getColumnPT:function(r){var o={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,checked:this.checked,disabled:this.$attrs.disabled}};return Et(this.ptm("column.".concat(r),{column:o}),this.ptm("column.".concat(r),o),this.ptmo(this.getColumnProp(),r,o))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},onChange:function(r){this.$attrs.disabled||this.$emit("change",{originalEvent:r,data:this.value})}},computed:{checkboxAriaLabel:function(){return this.$primevue.config.locale.aria?this.checked?this.$primevue.config.locale.aria.selectRow:this.$primevue.config.locale.aria.unselectRow:void 0}},components:{CheckIcon:rj,Checkbox:PVe}};function KFr(n,r,o,l,u,d){var h=Ni("CheckIcon"),w=Ni("Checkbox");return ze(),Nn(w,{modelValue:o.checked,binary:!0,disabled:n.$attrs.disabled,"aria-label":d.checkboxAriaLabel,onChange:d.onChange,unstyled:n.unstyled,pt:d.getColumnPT("pcRowCheckbox")},{icon:vi(function(v){return[o.rowCheckboxIconTemplate?(ze(),Nn(jo(o.rowCheckboxIconTemplate),{key:0,checked:v.checked,class:Lo(v.class)},null,8,["checked","class"])):!o.rowCheckboxIconTemplate&&v.checked?(ze(),Nn(h,Et({key:1,class:v.class},d.getColumnPT("pcRowCheckbox").icon),null,16,["class"])):fr("",!0)]}),_:1},8,["modelValue","disabled","aria-label","onChange","unstyled","pt"])}Ehn.render=KFr;var khn={name:"RowRadioButton",hostName:"DataTable",extends:Kl,emits:["change"],props:{value:null,checked:null,name:null,column:null,index:{type:Number,default:null}},methods:{getColumnPT:function(r){var o={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,checked:this.checked,disabled:this.$attrs.disabled}};return Et(this.ptm("column.".concat(r),{column:o}),this.ptm("column.".concat(r),o),this.ptmo(this.getColumnProp(),r,o))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},onChange:function(r){this.$attrs.disabled||this.$emit("change",{originalEvent:r,data:this.value})}},components:{RadioButton:mhn}};function qFr(n,r,o,l,u,d){var h=Ni("RadioButton");return ze(),Nn(h,{modelValue:o.checked,binary:!0,disabled:n.$attrs.disabled,name:o.name,onChange:d.onChange,unstyled:n.unstyled,pt:d.getColumnPT("pcRowRadiobutton")},null,8,["modelValue","disabled","name","onChange","unstyled","pt"])}khn.render=qFr;var Rhn={name:"BodyCell",hostName:"DataTable",extends:Kl,emits:["cell-edit-init","cell-edit-complete","cell-edit-cancel","row-edit-init","row-edit-save","row-edit-cancel","row-toggle","radio-change","checkbox-change","editing-meta-change"],props:{rowData:{type:Object,default:null},column:{type:Object,default:null},frozenRow:{type:Boolean,default:!1},rowIndex:{type:Number,default:null},index:{type:Number,default:null},isRowExpanded:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},editing:{type:Boolean,default:!1},editingMeta:{type:Object,default:null},editMode:{type:String,default:null},virtualScrollerContentProps:{type:Object,default:null},ariaControls:{type:String,default:null},name:{type:String,default:null},expandedRowIcon:{type:String,default:null},collapsedRowIcon:{type:String,default:null},editButtonProps:{type:Object,default:null}},documentEditListener:null,selfClick:!1,overlayEventListener:null,data:function(){return{d_editing:this.editing,styleObject:{}}},watch:{editing:function(r){this.d_editing=r},"$data.d_editing":function(r){this.$emit("editing-meta-change",{data:this.rowData,field:this.field||"field_".concat(this.index),index:this.rowIndex,editing:r})}},mounted:function(){this.columnProp("frozen")&&this.updateStickyPosition()},updated:function(){var r=this;this.columnProp("frozen")&&this.updateStickyPosition(),this.d_editing&&(this.editMode==="cell"||this.editMode==="row"&&this.columnProp("rowEditor"))&&setTimeout(function(){var o=D8(r.$el);o&&o.focus()},1)},beforeUnmount:function(){this.overlayEventListener&&(Zy.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null)},methods:{columnProp:function(r){return KR(this.column,r)},getColumnPT:function(r){var o,l,u={props:this.column.props,parent:{instance:this,props:this.$props,state:this.$data},context:{index:this.index,size:(o=this.$parentInstance)===null||o===void 0||(o=o.$parentInstance)===null||o===void 0?void 0:o.size,showGridlines:(l=this.$parentInstance)===null||l===void 0||(l=l.$parentInstance)===null||l===void 0?void 0:l.showGridlines}};return Et(this.ptm("column.".concat(r),{column:u}),this.ptm("column.".concat(r),u),this.ptmo(this.getColumnProp(),r,u))},getColumnProp:function(){return this.column.props&&this.column.props.pt?this.column.props.pt:void 0},resolveFieldData:function(){return Bl(this.rowData,this.field)},toggleRow:function(r){this.$emit("row-toggle",{originalEvent:r,data:this.rowData})},toggleRowWithRadio:function(r,o){this.$emit("radio-change",{originalEvent:r.originalEvent,index:o,data:r.data})},toggleRowWithCheckbox:function(r,o){this.$emit("checkbox-change",{originalEvent:r.originalEvent,index:o,data:r.data})},isEditable:function(){return this.column.children&&this.column.children.editor!=null},bindDocumentEditListener:function(){var r=this;this.documentEditListener||(this.documentEditListener=function(o){r.selfClick||r.completeEdit(o,"outside"),r.selfClick=!1},document.addEventListener("click",this.documentEditListener))},unbindDocumentEditListener:function(){this.documentEditListener&&(document.removeEventListener("click",this.documentEditListener),this.documentEditListener=null,this.selfClick=!1)},switchCellToViewMode:function(){this.d_editing=!1,this.unbindDocumentEditListener(),Zy.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null},onClick:function(r){var o=this;this.editMode==="cell"&&this.isEditable()&&(this.selfClick=!0,this.d_editing||(this.d_editing=!0,this.bindDocumentEditListener(),this.$emit("cell-edit-init",{originalEvent:r,data:this.rowData,field:this.field,index:this.rowIndex}),this.overlayEventListener=function(l){o.$el&&o.$el.contains(l.target)&&(o.selfClick=!0)},Zy.on("overlay-click",this.overlayEventListener)))},completeEdit:function(r,o){var l={originalEvent:r,data:this.rowData,newData:this.editingRowData,value:this.rowData[this.field],newValue:this.editingRowData[this.field],field:this.field,index:this.rowIndex,type:o,defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0}};this.$emit("cell-edit-complete",l),l.defaultPrevented||this.switchCellToViewMode()},onKeyDown:function(r){if(this.editMode==="cell")switch(r.code){case"Enter":case"NumpadEnter":this.completeEdit(r,"enter");break;case"Escape":this.switchCellToViewMode(),this.$emit("cell-edit-cancel",{originalEvent:r,data:this.rowData,field:this.field,index:this.rowIndex});break;case"Tab":this.completeEdit(r,"tab"),r.shiftKey?this.moveToPreviousCell(r):this.moveToNextCell(r);break}},moveToPreviousCell:function(r){var o=this.findCell(r.target),l=this.findPreviousEditableColumn(o);l&&(Tjt(l,"click"),r.preventDefault())},moveToNextCell:function(r){var o=this.findCell(r.target),l=this.findNextEditableColumn(o);l&&(Tjt(l,"click"),r.preventDefault())},findCell:function(r){if(r){for(var o=r;o&&!cp(o,"data-p-cell-editing");)o=o.parentElement;return o}else return null},findPreviousEditableColumn:function(r){var o=r.previousElementSibling;if(!o){var l=r.parentElement.previousElementSibling;l&&(o=l.lastElementChild)}return o?cp(o,"data-p-editable-column")?o:this.findPreviousEditableColumn(o):null},findNextEditableColumn:function(r){var o=r.nextElementSibling;if(!o){var l=r.parentElement.nextElementSibling;l&&(o=l.firstElementChild)}return o?cp(o,"data-p-editable-column")?o:this.findNextEditableColumn(o):null},onRowEditInit:function(r){this.$emit("row-edit-init",{originalEvent:r,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},onRowEditSave:function(r){this.$emit("row-edit-save",{originalEvent:r,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},onRowEditCancel:function(r){this.$emit("row-edit-cancel",{originalEvent:r,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},editorInitCallback:function(r){this.$emit("row-edit-init",{originalEvent:r,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex})},editorSaveCallback:function(r){this.editMode==="row"?this.$emit("row-edit-save",{originalEvent:r,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex}):this.completeEdit(r,"enter")},editorCancelCallback:function(r){this.editMode==="row"?this.$emit("row-edit-cancel",{originalEvent:r,data:this.rowData,newData:this.editingRowData,field:this.field,index:this.rowIndex}):(this.switchCellToViewMode(),this.$emit("cell-edit-cancel",{originalEvent:r,data:this.rowData,field:this.field,index:this.rowIndex}))},updateStickyPosition:function(){if(this.columnProp("frozen")){var r=this.columnProp("alignFrozen");if(r==="right"){var o=0,l=OWe(this.$el,'[data-p-frozen-column="true"]');l&&(o=Kp(l)+parseFloat(l.style.right||0)),this.styleObject.insetInlineEnd=o+"px"}else{var u=0,d=NWe(this.$el,'[data-p-frozen-column="true"]');d&&(u=Kp(d)+parseFloat(d.style.left||0)),this.styleObject.insetInlineStart=u+"px"}}},getVirtualScrollerProp:function(r){return this.virtualScrollerContentProps?this.virtualScrollerContentProps[r]:null}},computed:{editingRowData:function(){return this.editingMeta[this.rowIndex]?this.editingMeta[this.rowIndex].data:this.rowData},field:function(){return this.columnProp("field")},containerClass:function(){return[this.columnProp("bodyClass"),this.columnProp("class"),this.cx("bodyCell")]},containerStyle:function(){var r=this.columnProp("bodyStyle"),o=this.columnProp("style");return this.columnProp("frozen")?[o,r,this.styleObject]:[o,r]},loading:function(){return this.getVirtualScrollerProp("loading")},loadingOptions:function(){var r=this.getVirtualScrollerProp("getLoaderOptions");return r&&r(this.rowIndex,{cellIndex:this.index,cellFirst:this.index===0,cellLast:this.index===this.getVirtualScrollerProp("columns").length-1,cellEven:this.index%2===0,cellOdd:this.index%2!==0,column:this.column,field:this.field})},expandButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.isRowExpanded?this.$primevue.config.locale.aria.expandRow:this.$primevue.config.locale.aria.collapseRow:void 0},initButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.editRow:void 0},saveButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.saveEdit:void 0},cancelButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.cancelEdit:void 0}},components:{DTRadioButton:khn,DTCheckbox:Ehn,Button:Jy,ChevronDownIcon:spe,ChevronRightIcon:IVe,BarsIcon:bhn,PencilIcon:ghn,CheckIcon:rj,TimesIcon:lpe},directives:{ripple:bk}};function NX(n){"@babel/helpers - typeof";return NX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},NX(n)}function KJt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function _fe(n){for(var r=1;r=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(y){throw y},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,w=!1;return{s:function(){o=o.call(n)},n:function(){var y=o.next();return h=y.done,y},e:function(y){w=!0,d=y},f:function(){try{h||o.return==null||o.return()}finally{if(w)throw d}}}}function nBr(n,r){if(n){if(typeof n=="string")return qJt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?qJt(n,r):void 0}}function qJt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o-1:this.groupRowsBy===o:!1},findIndexInSelection:function(r){return this.findIndex(r,this.selection)},findIndex:function(r,o){var l=-1;if(o&&o.length){for(var u=0;u-1:!1},isRowGroupExpanded:function(){if(this.expandableRowGroups&&this.expandedRowGroups){var r=Bl(this.rowData,this.groupRowsBy);return this.expandedRowGroups.indexOf(r)>-1}return!1},isSelected:function(){return this.rowData&&this.selection?this.dataKey?this.selectionKeys?this.selectionKeys[Bl(this.rowData,this.dataKey)]!==void 0:!1:this.selection instanceof Array?this.findIndexInSelection(this.rowData)>-1:this.equals(this.rowData,this.selection):!1},isSelectedWithContextMenu:function(){return this.rowData&&this.contextMenuSelection?this.equals(this.rowData,this.contextMenuSelection,this.dataKey):!1},shouldRenderRowGroupHeader:function(){var r=Bl(this.rowData,this.groupRowsBy),o=this.value[this.rowIndex-1];if(o){var l=Bl(o,this.groupRowsBy);return r!==l}else return!0},shouldRenderRowGroupFooter:function(){if(this.expandableRowGroups&&!this.isRowGroupExpanded)return!1;var r=Bl(this.rowData,this.groupRowsBy),o=this.value[this.rowIndex+1];if(o){var l=Bl(o,this.groupRowsBy);return r!==l}else return!0},columnsLength:function(){var r=this;if(this.columns){var o=0;return this.columns.forEach(function(l){r.columnProp(l,"selectionMode")==="single"&&o--,r.columnProp(l,"hidden")&&o++}),this.columns.length-o}return 0}},components:{DTBodyCell:Rhn,ChevronDownIcon:spe,ChevronRightIcon:IVe}};function DX(n){"@babel/helpers - typeof";return DX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},DX(n)}function YJt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function j4(n){for(var r=1;r=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(y){throw y},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,w=!1;return{s:function(){o=o.call(n)},n:function(){var y=o.next();return h=y.done,y},e:function(y){w=!0,d=y},f:function(){try{h||o.return==null||o.return()}finally{if(w)throw d}}}}function EBr(n,r){if(n){if(typeof n=="string")return eYt(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?eYt(n,r):void 0}}function eYt(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);o1},removeRuleButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.removeRule:void 0},addRuleButtonLabel:function(){return this.$primevue.config.locale?this.$primevue.config.locale.addRule:void 0},isShowAddConstraint:function(){return this.showAddButton&&this.filters[this.field].operator&&this.fieldConstraints&&this.fieldConstraints.length-1?r:r+1},isMultiSorted:function(){return this.sortMode==="multiple"&&this.columnProp("sortable")&&this.getMultiSortMetaIndex()>-1},isColumnSorted:function(){return this.sortMode==="single"?this.sortField&&(this.sortField===this.columnProp("field")||this.sortField===this.columnProp("sortField")):this.isMultiSorted()},updateStickyPosition:function(){if(this.columnProp("frozen")){var r=this.columnProp("alignFrozen");if(r==="right"){var o=0,l=OWe(this.$el,'[data-p-frozen-column="true"]');l&&(o=Kp(l)+parseFloat(l.style.right||0)),this.styleObject.insetInlineEnd=o+"px"}else{var u=0,d=NWe(this.$el,'[data-p-frozen-column="true"]');d&&(u=Kp(d)+parseFloat(d.style.left||0)),this.styleObject.insetInlineStart=u+"px"}var h=this.$el.parentElement.nextElementSibling;if(h){var w=Tfe(this.$el);h.children[w]&&(h.children[w].style.left=this.styleObject.left,h.children[w].style.right=this.styleObject.right)}}},onHeaderCheckboxChange:function(r){this.$emit("checkbox-change",r)}},computed:{containerClass:function(){return[this.cx("headerCell"),this.filterColumn?this.columnProp("filterHeaderClass"):this.columnProp("headerClass"),this.columnProp("class")]},containerStyle:function(){var r=this.filterColumn?this.columnProp("filterHeaderStyle"):this.columnProp("headerStyle"),o=this.columnProp("style");return this.columnProp("frozen")?[o,r,this.styleObject]:[o,r]},sortState:function(){var r=!1,o=null;if(this.sortMode==="single")r=this.sortField&&(this.sortField===this.columnProp("field")||this.sortField===this.columnProp("sortField")),o=r?this.sortOrder:0;else if(this.sortMode==="multiple"){var l=this.getMultiSortMetaIndex();l>-1&&(r=!0,o=this.multiSortMeta[l].order)}return{sorted:r,sortOrder:o}},sortableColumnIcon:function(){var r=this.sortState,o=r.sorted,l=r.sortOrder;if(o){if(o&&l>0)return aWe;if(o&&l<0)return lWe}else return sWe;return null},ariaSort:function(){if(this.columnProp("sortable")){var r=this.sortState,o=r.sorted,l=r.sortOrder;return o&&l<0?"descending":o&&l>0?"ascending":"none"}else return null}},components:{Badge:LWe,DTHeaderCheckbox:NVe,DTColumnFilter:OVe,SortAltIcon:sWe,SortAmountUpAltIcon:aWe,SortAmountDownIcon:lWe}};function WX(n){"@babel/helpers - typeof";return WX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},WX(n)}function iYt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function oYt(n){for(var r=1;r=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(y){throw y},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d,h=!0,w=!1;return{s:function(){o=o.call(n)},n:function(){var y=o.next();return h=y.done,y},e:function(y){w=!0,d=y},f:function(){try{h||o.return==null||o.return()}finally{if(w)throw d}}}}function Lu(n){return iWr(n)||rWr(n)||MVe(n)||nWr()}function nWr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MVe(n,r){if(n){if(typeof n=="string")return cWe(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?cWe(n,r):void 0}}function rWr(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function iWr(n){if(Array.isArray(n))return cWe(n)}function cWe(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,l=Array(r);ol?this.multisortField(r,o,l+1):0:Sjt(u,d,this.d_multiSortMeta[l].order,h,this.d_nullSortOrder)},addMultiSortField:function(r){var o=this.d_multiSortMeta.findIndex(function(l){return l.field===r});o>=0?this.removableSort&&this.d_multiSortMeta[o].order*-1===this.defaultSortOrder?this.d_multiSortMeta.splice(o,1):this.d_multiSortMeta[o]={field:r,order:this.d_multiSortMeta[o].order*-1}:this.d_multiSortMeta.push({field:r,order:this.defaultSortOrder}),this.d_multiSortMeta=Lu(this.d_multiSortMeta)},getActiveFilters:function(r){var o=function(h){var w=aYt(h,2),v=w[0],y=w[1];if(y.constraints){var E=y.constraints.filter(function(A){return A.value!==null});if(E.length>0)return[v,Jw(Jw({},y),{},{constraints:E})]}else if(y.value!==null)return[v,y]},l=function(h){return h!==void 0},u=Object.entries(r).map(o).filter(l);return Object.fromEntries(u)},filter:function(r){var o=this;if(r){this.clearEditingMetaData();var l=this.getActiveFilters(this.filters),u;l.global&&(u=this.globalFilterFields||this.columns.map(function(Q){return o.columnProp(Q,"filterField")||o.columnProp(Q,"field")}));for(var d=[],h=0;h=h.length?h.length-1:l+1;this.onRowClick({originalEvent:r,data:h[w],index:w})}r.preventDefault()},onArrowUpKey:function(r,o,l,u){var d=this.findPrevSelectableRow(o);if(d&&this.focusRowChange(o,d),r.shiftKey){var h=this.dataToRender(u.rows),w=l-1<=0?0:l-1;this.onRowClick({originalEvent:r,data:h[w],index:w})}r.preventDefault()},onHomeKey:function(r,o,l,u){var d=this.findFirstSelectableRow();if(d&&this.focusRowChange(o,d),r.ctrlKey&&r.shiftKey){var h=this.dataToRender(u.rows);this.$emit("update:selection",h.slice(0,l+1))}r.preventDefault()},onEndKey:function(r,o,l,u){var d=this.findLastSelectableRow();if(d&&this.focusRowChange(o,d),r.ctrlKey&&r.shiftKey){var h=this.dataToRender(u.rows);this.$emit("update:selection",h.slice(l,h.length))}r.preventDefault()},onEnterKey:function(r,o,l){this.onRowClick({originalEvent:r,data:o,index:l}),r.preventDefault()},onSpaceKey:function(r,o,l,u){if(this.onEnterKey(r,o,l),r.shiftKey&&this.selection!==null){var d=this.dataToRender(u.rows),h;if(this.selection.length>0){var w,v;w=y7e(this.selection[0],d),v=y7e(this.selection[this.selection.length-1],d),h=l<=w?v:w}else h=y7e(this.selection,d);var y=h!==l?d.slice(Math.min(h,l),Math.max(h,l)+1):o;this.$emit("update:selection",y)}},onTabKey:function(r,o){var l=this.$refs.bodyRef&&this.$refs.bodyRef.$el,u=wD(l,'tr[data-p-selectable-row="true"]');if(r.code==="Tab"&&u&&u.length>0){var d=pT(l,'tr[data-p-selected="true"]'),h=pT(l,'tr[data-p-selectable-row="true"][tabindex="0"]');d?(d.tabIndex="0",h&&h!==d&&(h.tabIndex="-1")):(u[0].tabIndex="0",h!==u[0]&&(u[o].tabIndex="-1"))}},findNextSelectableRow:function(r){var o=r.nextElementSibling;return o?cp(o,"data-p-selectable-row")===!0?o:this.findNextSelectableRow(o):null},findPrevSelectableRow:function(r){var o=r.previousElementSibling;return o?cp(o,"data-p-selectable-row")===!0?o:this.findPrevSelectableRow(o):null},findFirstSelectableRow:function(){var r=pT(this.$refs.table,'tr[data-p-selectable-row="true"]');return r},findLastSelectableRow:function(){var r=wD(this.$refs.table,'tr[data-p-selectable-row="true"]');return r?r[r.length-1]:null},focusRowChange:function(r,o){r.tabIndex="-1",o.tabIndex="0",Gp(o)},toggleRowWithRadio:function(r){var o=r.data;this.isSelected(o)?(this.$emit("update:selection",null),this.$emit("row-unselect",{originalEvent:r.originalEvent,data:o,index:r.index,type:"radiobutton"})):(this.$emit("update:selection",o),this.$emit("row-select",{originalEvent:r.originalEvent,data:o,index:r.index,type:"radiobutton"}))},toggleRowWithCheckbox:function(r){var o=r.data;if(this.isSelected(o)){var l=this.findIndexInSelection(o),u=this.selection.filter(function(h,w){return w!=l});this.$emit("update:selection",u),this.$emit("row-unselect",{originalEvent:r.originalEvent,data:o,index:r.index,type:"checkbox"})}else{var d=this.selection?Lu(this.selection):[];d=[].concat(Lu(d),[o]),this.$emit("update:selection",d),this.$emit("row-select",{originalEvent:r.originalEvent,data:o,index:r.index,type:"checkbox"})}},toggleRowsWithCheckbox:function(r){if(this.selectAll!==null)this.$emit("select-all-change",r);else{var o=r.originalEvent,l=r.checked,u=[];l?(u=this.frozenValue?[].concat(Lu(this.frozenValue),Lu(this.processedData)):this.processedData,this.$emit("row-select-all",{originalEvent:o,data:u})):this.$emit("row-unselect-all",{originalEvent:o}),this.$emit("update:selection",u)}},isSingleSelectionMode:function(){return this.selectionMode==="single"},isMultipleSelectionMode:function(){return this.selectionMode==="multiple"},isSelected:function(r){return r&&this.selection?this.dataKey?this.d_selectionKeys?this.d_selectionKeys[Bl(r,this.dataKey)]!==void 0:!1:this.selection instanceof Array?this.findIndexInSelection(r)>-1:this.equals(r,this.selection):!1},findIndexInSelection:function(r){return this.findIndex(r,this.selection)},findIndex:function(r,o){var l=-1;if(o&&o.length){for(var u=0;uthis.anchorRowIndex?(o=this.anchorRowIndex,l=this.rangeRowIndex):this.rangeRowIndexparseInt(u,10)){if(this.columnResizeMode==="fit"){var d=this.resizeColumnElement.nextElementSibling,h=d.offsetWidth-r;l>15&&h>15&&this.resizeTableCells(l,h)}else if(this.columnResizeMode==="expand"){var w=this.$refs.table.offsetWidth+r+"px",v=function(C){C&&(C.style.width=C.style.minWidth=w)};if(this.resizeTableCells(l),v(this.$refs.table),!this.virtualScrollerDisabled){var y=this.$refs.bodyRef&&this.$refs.bodyRef.$el,E=this.$refs.frozenBodyRef&&this.$refs.frozenBodyRef.$el;v(y),v(E)}}this.$emit("column-resize-end",{element:this.resizeColumnElement,delta:r})}this.$refs.resizeHelper.style.display="none",this.resizeColumn=null,this.$el.removeAttribute("data-p-unselectable-text"),!this.isUnstyled&&(this.$el.style["user-select"]=""),this.unbindColumnResizeEvents(),this.isStateful()&&this.saveState()},resizeTableCells:function(r,o){var l=Tfe(this.resizeColumnElement),u=[],d=wD(this.$refs.table,'thead[data-pc-section="thead"] > tr > th');d.forEach(function(v){return u.push(Kp(v))}),this.destroyStyleElement(),this.createStyleElement();var h="",w='[data-pc-name="datatable"]['.concat(this.$attrSelector,'] > [data-pc-section="tablecontainer"] ').concat(this.virtualScrollerDisabled?"":'> [data-pc-name="virtualscroller"]',' > table[data-pc-section="table"]');u.forEach(function(v,y){var E=y===l?r:o&&y===l+1?o:v,A="width: ".concat(E,"px !important; max-width: ").concat(E,"px !important");h+=` + `.concat(w,' > thead[data-pc-section="thead"] > tr > th:nth-child(').concat(y+1,`), + `).concat(w,' > tbody[data-pc-section="tbody"] > tr > td:nth-child(').concat(y+1,`), + `).concat(w,' > tfoot[data-pc-section="tfoot"] > tr > td:nth-child(').concat(y+1,`) { + `).concat(A,` + } + `)}),this.styleElement.innerHTML=h},bindColumnResizeEvents:function(){var r=this;this.documentColumnResizeListener||(this.documentColumnResizeListener=document.addEventListener("mousemove",function(){r.columnResizing&&r.onColumnResize(event)})),this.documentColumnResizeEndListener||(this.documentColumnResizeEndListener=document.addEventListener("mouseup",function(){r.columnResizing&&(r.columnResizing=!1,r.onColumnResizeEnd())}))},unbindColumnResizeEvents:function(){this.documentColumnResizeListener&&(document.removeEventListener("document",this.documentColumnResizeListener),this.documentColumnResizeListener=null),this.documentColumnResizeEndListener&&(document.removeEventListener("document",this.documentColumnResizeEndListener),this.documentColumnResizeEndListener=null)},onColumnHeaderMouseDown:function(r){var o=r.originalEvent,l=r.column;this.reorderableColumns&&this.columnProp(l,"reorderableColumn")!==!1&&(o.target.nodeName==="INPUT"||o.target.nodeName==="TEXTAREA"||cp(o.target,'[data-pc-section="columnresizer"]')?o.currentTarget.draggable=!1:o.currentTarget.draggable=!0)},onColumnHeaderDragStart:function(r){var o=r.originalEvent,l=r.column;if(this.columnResizing){o.preventDefault();return}this.colReorderIconWidth=BHn(this.$refs.reorderIndicatorUp),this.colReorderIconHeight=FHn(this.$refs.reorderIndicatorUp),this.draggedColumn=l,this.draggedColumnElement=this.findParentHeader(o.target),o.dataTransfer.setData("text","b")},onColumnHeaderDragOver:function(r){var o=r.originalEvent,l=r.column,u=this.findParentHeader(o.target);if(this.reorderableColumns&&this.draggedColumnElement&&u&&!this.columnProp(l,"frozen")){o.preventDefault();var d=sT(this.$el),h=sT(u);if(this.draggedColumnElement!==u){var w=h.left-d.left,v=h.left+u.offsetWidth/2;this.$refs.reorderIndicatorUp.style.top=h.top-d.top-(this.colReorderIconHeight-1)+"px",this.$refs.reorderIndicatorDown.style.top=h.top-d.top+u.offsetHeight+"px",o.pageX>v?(this.$refs.reorderIndicatorUp.style.left=w+u.offsetWidth-Math.ceil(this.colReorderIconWidth/2)+"px",this.$refs.reorderIndicatorDown.style.left=w+u.offsetWidth-Math.ceil(this.colReorderIconWidth/2)+"px",this.dropPosition=1):(this.$refs.reorderIndicatorUp.style.left=w-Math.ceil(this.colReorderIconWidth/2)+"px",this.$refs.reorderIndicatorDown.style.left=w-Math.ceil(this.colReorderIconWidth/2)+"px",this.dropPosition=-1),this.$refs.reorderIndicatorUp.style.display="block",this.$refs.reorderIndicatorDown.style.display="block"}}},onColumnHeaderDragLeave:function(r){var o=r.originalEvent;this.reorderableColumns&&this.draggedColumnElement&&(o.preventDefault(),this.$refs.reorderIndicatorUp.style.display="none",this.$refs.reorderIndicatorDown.style.display="none")},onColumnHeaderDrop:function(r){var o=this,l=r.originalEvent,u=r.column;if(l.preventDefault(),this.draggedColumnElement){var d=Tfe(this.draggedColumnElement),h=Tfe(this.findParentHeader(l.target)),w=d!==h;if(w&&(h-d===1&&this.dropPosition===-1||h-d===-1&&this.dropPosition===1)&&(w=!1),w){var v=function(H,G){return o.columnProp(H,"columnKey")||o.columnProp(G,"columnKey")?o.columnProp(H,"columnKey")===o.columnProp(G,"columnKey"):o.columnProp(H,"field")===o.columnProp(G,"field")},y=this.columns.findIndex(function(L){return v(L,o.draggedColumn)}),E=this.columns.findIndex(function(L){return v(L,u)}),A=[],C=wD(this.$el,'thead[data-pc-section="thead"] > tr > th');C.forEach(function(L){return A.push(Kp(L))});var R=A.find(function(L,H){return H===y}),O=A.filter(function(L,H){return H!==y}),M=[].concat(Lu(O.slice(0,E)),[R],Lu(O.slice(E)));this.addColumnWidthStyles(M),Ey&&this.dropPosition===-1&&E--,_jt(this.columns,y,E),this.updateReorderableColumns(),this.$emit("column-reorder",{originalEvent:l,dragIndex:y,dropIndex:E})}this.$refs.reorderIndicatorUp.style.display="none",this.$refs.reorderIndicatorDown.style.display="none",this.draggedColumnElement.draggable=!1,this.draggedColumnElement=null,this.draggedColumn=null,this.dropPosition=null}},findParentHeader:function(r){if(r.nodeName==="TH")return r;for(var o=r.parentElement;o.nodeName!=="TH"&&(o=o.parentElement,!!o););return o},findColumnByKey:function(r,o){if(r&&r.length)for(var l=0;lthis.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1,l=Lu(this.processedData);_jt(l,this.draggedRowIndex+this.d_first,o+this.d_first),this.$emit("row-reorder",{originalEvent:r,dragIndex:this.draggedRowIndex,dropIndex:o,value:l})}this.onRowDragLeave(r),this.onRowDragEnd(r),r.preventDefault()},toggleRow:function(r){var o=this,l=r.expanded,u=qBr(r,KBr),d=r.data,h;if(this.dataKey){var w=Bl(d,this.dataKey);h=this.expandedRows?Jw({},this.expandedRows):{},l?h[w]=!0:delete h[w]}else h=this.expandedRows?Lu(this.expandedRows):[],l?h.push(d):h=h.filter(function(v){return!o.equals(d,v)});this.$emit("update:expandedRows",h),l?this.$emit("row-expand",u):this.$emit("row-collapse",u)},toggleRowGroup:function(r){var o=r.originalEvent,l=r.data,u=Bl(l,this.groupRowsBy),d=this.expandedRowGroups?Lu(this.expandedRowGroups):[];this.isRowGroupExpanded(l)?(d=d.filter(function(h){return h!==u}),this.$emit("update:expandedRowGroups",d),this.$emit("rowgroup-collapse",{originalEvent:o,data:u})):(d.push(u),this.$emit("update:expandedRowGroups",d),this.$emit("rowgroup-expand",{originalEvent:o,data:u}))},isRowGroupExpanded:function(r){if(this.expandableRowGroups&&this.expandedRowGroups){var o=Bl(r,this.groupRowsBy);return this.expandedRowGroups.indexOf(o)>-1}return!1},isStateful:function(){return this.stateKey!=null},getStorage:function(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},saveState:function(){var r=this.getStorage(),o={};this.paginator&&(o.first=this.d_first,o.rows=this.d_rows),this.d_sortField&&(o.sortField=this.d_sortField,o.sortOrder=this.d_sortOrder),this.d_multiSortMeta&&(o.multiSortMeta=this.d_multiSortMeta),this.hasFilters&&(o.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(o),this.reorderableColumns&&(o.columnOrder=this.d_columnOrder),this.expandedRows&&(o.expandedRows=this.expandedRows),this.expandedRowGroups&&(o.expandedRowGroups=this.expandedRowGroups),this.selection&&(o.selection=this.selection,o.selectionKeys=this.d_selectionKeys),Object.keys(o).length&&r.setItem(this.stateKey,JSON.stringify(o)),this.$emit("state-save",o)},restoreState:function(){var r=this.getStorage(),o=r.getItem(this.stateKey),l=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,u=function(w,v){return typeof v=="string"&&l.test(v)?new Date(v):v};if(o){var d=JSON.parse(o,u);this.paginator&&(this.d_first=d.first,this.d_rows=d.rows),d.sortField&&(this.d_sortField=d.sortField,this.d_sortOrder=d.sortOrder),d.multiSortMeta&&(this.d_multiSortMeta=d.multiSortMeta),d.filters&&this.$emit("update:filters",d.filters),this.resizableColumns&&(this.columnWidthsState=d.columnWidths,this.tableWidthState=d.tableWidth),this.reorderableColumns&&(this.d_columnOrder=d.columnOrder),d.expandedRows&&this.$emit("update:expandedRows",d.expandedRows),d.expandedRowGroups&&this.$emit("update:expandedRowGroups",d.expandedRowGroups),d.selection&&(this.d_selectionKeys=d.d_selectionKeys,this.$emit("update:selection",d.selection)),this.$emit("state-restore",d)}},saveColumnWidths:function(r){var o=[],l=wD(this.$el,'thead[data-pc-section="thead"] > tr > th');l.forEach(function(u){return o.push(Kp(u))}),r.columnWidths=o.join(","),this.columnResizeMode==="expand"&&(r.tableWidth=Kp(this.$refs.table)+"px")},addColumnWidthStyles:function(r){this.createStyleElement();var o="",l='[data-pc-name="datatable"]['.concat(this.$attrSelector,'] > [data-pc-section="tablecontainer"] ').concat(this.virtualScrollerDisabled?"":'> [data-pc-name="virtualscroller"]',' > table[data-pc-section="table"]');r.forEach(function(u,d){var h="width: ".concat(u,"px !important; max-width: ").concat(u,"px !important");o+=` + `.concat(l,' > thead[data-pc-section="thead"] > tr > th:nth-child(').concat(d+1,`), + `).concat(l,' > tbody[data-pc-section="tbody"] > tr > td:nth-child(').concat(d+1,`), + `).concat(l,' > tfoot[data-pc-section="tfoot"] > tr > td:nth-child(').concat(d+1,`) { + `).concat(h,` + } + `)}),this.styleElement.innerHTML=o},restoreColumnWidths:function(){if(this.columnWidthsState){var r=this.columnWidthsState.split(",");this.columnResizeMode==="expand"&&this.tableWidthState&&(this.$refs.table.style.width=this.tableWidthState,this.$refs.table.style.minWidth=this.tableWidthState),ks(r)&&this.addColumnWidthStyles(r)}},onCellEditInit:function(r){this.$emit("cell-edit-init",r)},onCellEditComplete:function(r){this.$emit("cell-edit-complete",r)},onCellEditCancel:function(r){this.$emit("cell-edit-cancel",r)},onRowEditInit:function(r){var o=this.editingRows?Lu(this.editingRows):[];o.push(r.data),this.$emit("update:editingRows",o),this.$emit("row-edit-init",r)},onRowEditSave:function(r){var o=Lu(this.editingRows);o.splice(this.findIndex(r.data,o),1),this.$emit("update:editingRows",o),this.$emit("row-edit-save",r)},onRowEditCancel:function(r){var o=Lu(this.editingRows);o.splice(this.findIndex(r.data,o),1),this.$emit("update:editingRows",o),this.$emit("row-edit-cancel",r)},onEditingMetaChange:function(r){var o=r.data,l=r.field,u=r.index,d=r.editing,h=Jw({},this.d_editingMeta),w=h[u];if(d)!w&&(w=h[u]={data:Jw({},o),fields:[]}),w.fields.push(l);else if(w){var v=w.fields.filter(function(y){return y!==l});v.length?w.fields=v:delete h[u]}this.d_editingMeta=h},clearEditingMetaData:function(){this.editMode&&(this.d_editingMeta={})},createLazyLoadEvent:function(r){return{originalEvent:r,first:this.d_first,rows:this.d_rows,sortField:this.d_sortField,sortOrder:this.d_sortOrder,multiSortMeta:this.d_multiSortMeta,filters:this.d_filters}},hasGlobalFilter:function(){return this.filters&&Object.prototype.hasOwnProperty.call(this.filters,"global")},onFilterChange:function(r){this.d_filters=r},onFilterApply:function(){this.d_first=0,this.$emit("update:first",this.d_first),this.$emit("update:filters",this.d_filters),this.lazy&&this.$emit("filter",this.createLazyLoadEvent())},cloneFilters:function(){var r={};return this.filters&&Object.entries(this.filters).forEach(function(o){var l=aYt(o,2),u=l[0],d=l[1];r[u]=d.operator?{operator:d.operator,constraints:d.constraints.map(function(h){return Jw({},h)})}:Jw({},d)}),r},updateReorderableColumns:function(){var r=this,o=[];this.columns.forEach(function(l){return o.push(r.columnProp(l,"columnKey")||r.columnProp(l,"field"))}),this.d_columnOrder=o},createStyleElement:function(){var r;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",JX(this.styleElement,"nonce",(r=this.$primevue)===null||r===void 0||(r=r.config)===null||r===void 0||(r=r.csp)===null||r===void 0?void 0:r.nonce),document.head.appendChild(this.styleElement)},destroyStyleElement:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},dataToRender:function(r){var o=r||this.processedData;if(o&&this.paginator){var l=this.lazy?0:this.d_first;return o.slice(l,l+this.d_rows)}return o},getVirtualScrollerRef:function(){return this.$refs.virtualScroller},hasSpacerStyle:function(r){return ks(r)}},computed:{columns:function(){var r=this.d_columns.get(this);if(this.reorderableColumns&&this.d_columnOrder){var o=[],l=vK(this.d_columnOrder),u;try{for(l.s();!(u=l.n()).done;){var d=u.value,h=this.findColumnByKey(r,d);h&&!this.columnProp(h,"hidden")&&o.push(h)}}catch(w){l.e(w)}finally{l.f()}return[].concat(o,Lu(r.filter(function(w){return o.indexOf(w)<0})))}return r},columnGroups:function(){return this.d_columnGroups.get(this)},headerColumnGroup:function(){var r,o=this;return(r=this.columnGroups)===null||r===void 0?void 0:r.find(function(l){return o.columnProp(l,"type")==="header"})},footerColumnGroup:function(){var r,o=this;return(r=this.columnGroups)===null||r===void 0?void 0:r.find(function(l){return o.columnProp(l,"type")==="footer"})},hasFilters:function(){return this.filters&&Object.keys(this.filters).length>0&&this.filters.constructor===Object},processedData:function(){var r,o=this.value||[];return!this.lazy&&!((r=this.virtualScrollerOptions)!==null&&r!==void 0&&r.lazy)&&o&&o.length&&(this.hasFilters&&(o=this.filter(o)),this.sorted&&(this.sortMode==="single"?o=this.sortSingle(o):this.sortMode==="multiple"&&(o=this.sortMultiple(o)))),o},totalRecordsLength:function(){if(this.lazy)return this.totalRecords;var r=this.processedData;return r?r.length:0},empty:function(){var r=this.processedData;return!r||r.length===0},paginatorTop:function(){return this.paginator&&(this.paginatorPosition!=="bottom"||this.paginatorPosition==="both")},paginatorBottom:function(){return this.paginator&&(this.paginatorPosition!=="top"||this.paginatorPosition==="both")},sorted:function(){return this.d_sortField||this.d_multiSortMeta&&this.d_multiSortMeta.length>0},allRowsSelected:function(){var r=this;if(this.selectAll!==null)return this.selectAll;var o=this.frozenValue?[].concat(Lu(this.frozenValue),Lu(this.processedData)):this.processedData;return ks(o)&&this.selection&&Array.isArray(this.selection)&&o.every(function(l){return r.selection.some(function(u){return r.equals(u,l)})})},groupRowSortField:function(){return this.sortMode==="single"?this.sortField:this.d_groupRowsSortMeta?this.d_groupRowsSortMeta.field:null},headerFilterButtonProps:function(){return Jw(Jw({filter:{severity:"secondary",text:!0,rounded:!0}},this.filterButtonProps),{},{inline:Jw({clear:{severity:"secondary",text:!0,rounded:!0}},this.filterButtonProps.inline),popover:Jw({addRule:{severity:"info",text:!0,size:"small"},removeRule:{severity:"danger",text:!0,size:"small"},apply:{size:"small"},clear:{outlined:!0,size:"small"}},this.filterButtonProps.popover)})},rowEditButtonProps:function(){return Jw(Jw({},{init:{severity:"secondary",text:!0,rounded:!0},save:{severity:"secondary",text:!0,rounded:!0},cancel:{severity:"secondary",text:!0,rounded:!0}}),this.editButtonProps)},virtualScrollerDisabled:function(){return ov(this.virtualScrollerOptions)||!this.scrollable}},components:{DTPaginator:phn,DTTableHeader:Ihn,DTTableBody:Chn,DTTableFooter:Thn,DTVirtualScroller:FWe,ArrowDownIcon:Jdn,ArrowUpIcon:Ydn,SpinnerIcon:YX}};function GX(n){"@babel/helpers - typeof";return GX=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},GX(n)}function cYt(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);r&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),o.push.apply(o,l)}return o}function uYt(n){for(var r=1;r{const v=[];return o.dataset.forEach(y=>{v.push({subject:mL(y.subject),subjectTerm:y.subject,predicate:mL(y.predicate),predicateTerm:y.predicate,object:mL(y.object),objectTerm:y.object,context:y.graph.value})}),v}),d=To(()=>u.value.some(v=>v.context!=="")),h=Fo({global:{value:null,matchMode:pf.CONTAINS},subject:{value:null,matchMode:pf.CONTAINS},predicate:{value:null,matchMode:pf.CONTAINS},object:{value:null,matchMode:pf.CONTAINS},context:{value:null,matchMode:pf.CONTAINS}});function w(v){l("selected",v)}return(v,y)=>(ze(),Nn(Wr(Phn),{filters:h.value,"onUpdate:filters":y[0]||(y[0]=E=>h.value=E),filterDisplay:"row",value:u.value,scrollable:"",scrollHeight:"flex"},{default:vi(()=>[bi(Wr(Efe),{field:"subject",header:"Subject",style:{width:"20%"}},{filter:vi(({filterModel:E,filterCallback:A})=>[bi(Wr(W8),{size:"small",modelValue:E.value,"onUpdate:modelValue":C=>E.value=C,type:"text",onInput:C=>A(),placeholder:"Search Subject"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),body:vi(({data:E})=>[mr("span",{onClick:A=>w(E.subjectTerm),class:"node-link"},na(E.subject),9,fWr)]),_:1}),bi(Wr(Efe),{field:"predicate",header:"Predicate",style:{width:"20%"}},{filter:vi(({filterModel:E,filterCallback:A})=>[bi(Wr(W8),{size:"small",modelValue:E.value,"onUpdate:modelValue":C=>E.value=C,type:"text",onInput:C=>A(),placeholder:"Search Predicate"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),body:vi(({data:E})=>[mr("span",{onClick:A=>w(E.subjectTerm),class:"node-link"},na(E.predicate),9,dWr)]),_:1}),bi(Wr(Efe),{field:"object",header:"Object",style:{width:"20%"}},{filter:vi(({filterModel:E,filterCallback:A})=>[bi(Wr(W8),{size:"small",modelValue:E.value,"onUpdate:modelValue":C=>E.value=C,type:"text",onInput:C=>A(),placeholder:"Search Object"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),body:vi(({data:E})=>[E.predicateTerm.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"||E.objectTerm.termType==="Literal"?(ze(),Lt("span",hWr,na(E.object),1)):(ze(),Lt("span",{key:1,onClick:A=>w(E.objectTerm),class:"node-link"},na(E.object),9,pWr))]),_:1}),d.value?(ze(),Nn(Wr(Efe),{key:0,field:"context",header:"Context",style:{width:"20%"}},{filter:vi(({filterModel:E,filterCallback:A})=>[bi(Wr(W8),{modelValue:E.value,"onUpdate:modelValue":C=>E.value=C,type:"text",onInput:C=>A(),placeholder:"Search Context aka Named Graph"},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:1})):fr("",!0)]),_:1},8,["filters","value"]))}}),gWr=hJ(bWr,[["__scopeId","data-v-ff7b29fe"]]);var wWr=function(r){var o=r.dt;return` +.p-popover { + margin-block-start: `.concat(o("popover.gutter"),`; + background: `).concat(o("popover.background"),`; + color: `).concat(o("popover.color"),`; + border: 1px solid `).concat(o("popover.border.color"),`; + border-radius: `).concat(o("popover.border.radius"),`; + box-shadow: `).concat(o("popover.shadow"),`; +} + +.p-popover-content { + padding: `).concat(o("popover.content.padding"),`; +} + +.p-popover-flipped { + margin-block-start: calc(`).concat(o("popover.gutter"),` * -1); + margin-block-end: `).concat(o("popover.gutter"),`; +} + +.p-popover-enter-from { + opacity: 0; + transform: scaleY(0.8); +} + +.p-popover-leave-to { + opacity: 0; +} + +.p-popover-enter-active { + transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1); +} + +.p-popover-leave-active { + transition: opacity 0.1s linear; +} + +.p-popover:after, +.p-popover:before { + bottom: 100%; + left: calc(`).concat(o("popover.arrow.offset")," + ").concat(o("popover.arrow.left"),`); + content: " "; + height: 0; + width: 0; + position: absolute; + pointer-events: none; +} + +.p-popover:after { + border-width: calc(`).concat(o("popover.gutter"),` - 2px); + margin-left: calc(-1 * (`).concat(o("popover.gutter"),` - 2px)); + border-style: solid; + border-color: transparent; + border-bottom-color: `).concat(o("popover.background"),`; +} + +.p-popover:before { + border-width: `).concat(o("popover.gutter"),`; + margin-left: calc(-1 * `).concat(o("popover.gutter"),`); + border-style: solid; + border-color: transparent; + border-bottom-color: `).concat(o("popover.border.color"),`; +} + +.p-popover-flipped:after, +.p-popover-flipped:before { + bottom: auto; + top: 100%; +} + +.p-popover.p-popover-flipped:after { + border-bottom-color: transparent; + border-top-color: `).concat(o("popover.background"),`; +} + +.p-popover.p-popover-flipped:before { + border-bottom-color: transparent; + border-top-color: `).concat(o("popover.border.color"),`; +} +`)},mWr={root:"p-popover p-component",content:"p-popover-content"},yWr=Bs.extend({name:"popover",theme:wWr,classes:mWr}),vWr={name:"BasePopover",extends:Kl,props:{dismissable:{type:Boolean,default:!0},appendTo:{type:[String,Object],default:"body"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},breakpoints:{type:Object,default:null},closeOnEscape:{type:Boolean,default:!0}},style:yWr,provide:function(){return{$pcPopover:this,$parentInstance:this}}},Ohn={name:"Popover",extends:vWr,inheritAttrs:!1,emits:["show","hide"],data:function(){return{visible:!1}},watch:{dismissable:{immediate:!0,handler:function(r){r?this.bindOutsideClickListener():this.unbindOutsideClickListener()}}},selfClick:!1,target:null,eventTarget:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,styleElement:null,overlayEventListener:null,documentKeydownListener:null,beforeUnmount:function(){this.dismissable&&this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.destroyStyle(),this.unbindResizeListener(),this.target=null,this.container&&this.autoZIndex&&nv.clear(this.container),this.overlayEventListener&&(Zy.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.container=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{toggle:function(r,o){this.visible?this.hide():this.show(r,o)},show:function(r,o){this.visible=!0,this.eventTarget=r.currentTarget,this.target=o||r.currentTarget},hide:function(){this.visible=!1},onContentClick:function(){this.selfClick=!0},onEnter:function(r){var o=this;xL(r,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.dismissable&&this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&nv.set("overlay",r,this.baseZIndex+this.$primevue.config.zIndex.overlay),this.overlayEventListener=function(l){o.container.contains(l.target)&&(o.selfClick=!0)},this.focus(),Zy.on("overlay-click",this.overlayEventListener),this.$emit("show"),this.closeOnEscape&&this.bindDocumentKeyDownListener()},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.unbindDocumentKeyDownListener(),Zy.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null,this.$emit("hide")},onAfterLeave:function(r){this.autoZIndex&&nv.clear(r)},alignOverlay:function(){$We(this.container,this.target,!1);var r=sT(this.container),o=sT(this.target),l=0;r.left2e3&&h(u.value),o.value.toggle(v))}async function h(v){const y=new URLSearchParams({url:v}),E=await fetch("https://s.zazuko.com/api/v1/shorten/",{method:"POST",body:y}),A=await E;A.status<200||A.status>=300?console.error("shortener error",A.status):u.value=await E.text()}function w(v){navigator.clipboard.writeText(v).then(()=>{o.value&&o.value.hide()}).catch(y=>{console.error("copy failed",y),o.value&&o.value.hide()})}return(v,y)=>(ze(),Lt("div",EWr,[bi(Wr(Jy),{icon:"pi pi-share-alt",onClick:d,severity:"secondary",text:""}),bi(Wr(Ohn),{ref_key:"popoverElement",ref:o},{default:vi(()=>[mr("div",kWr,[mr("div",RWr,[mr("div",xWr,[mr("div",CWr,na(u.value),1),u.value.startsWith("https://s.zazuko.com/")?fr("",!0):(ze(),Lt("div",AWr,"..."))]),bi(Wr(Jy),{icon:"pi pi-clipboard",onClick:y[0]||(y[0]=E=>w(u.value)),variant:"text",rounded:"","aria-label":"Copy to Clipboard"})]),bi(Wr(Jy),{disabled:u.value.startsWith("https://s.zazuko.com/"),type:"button",severity:"secondary",onClick:y[1]||(y[1]=E=>h(u.value)),label:"Shorten"},null,8,["disabled"])])]),_:1},512)]))}}),$Wr=hJ(TWr,[["__scopeId","data-v-28872e37"]]),IWr=Ka({__name:"App",setup(n){const{fitView:r,nodeLookup:o}=hu(),l=Fo(DR.find(H=>H.type===zpe.Turtle)??DR[0]),u=Fo(DR),d=Fo(""),h=To(()=>l.value.type),w=Fo(WBe.dataset()),v=Fo(!1),y=Fo(!0),E=Fo(!1);function A(H){const G=WBe.dataset(H.quads);Ufn.update(H.prefix),d.value=H.rdfText,w.value=G}function C(){v.value=!0}function R(){v.value=!1}function O(){y.value=!y.value}function M(H){const G=DR.find(j=>j.type===H)??DR[0];l.value=G}function L(H){if(!(H.termType==="NamedNode"||H.termType==="BlankNode"))return;const G=o.value.get(H.value);G&&r({nodes:[G.id],duration:1e3,padding:.3})}return(H,G)=>(ze(),Lt(gi,null,[bi(Wr(UQt),null,{start:vi(()=>[v.value?fr("",!0):(ze(),Nn(Wr(Jy),{key:0,icon:"pi pi-file-edit",class:"mr-2",severity:"secondary",onClick:C,text:""})),v.value?(ze(),Nn(Wr(Jy),{key:1,icon:"pi pi-file-edit",class:"mr-2",severity:"secondary",onClick:R,text:""})):fr("",!0),bi(Wr(eJ),{modelValue:l.value,"onUpdate:modelValue":G[0]||(G[0]=j=>l.value=j),options:u.value,optionLabel:"name",placeholder:"Select RDF Serialization",checkmark:"",highlightOnSelect:!1},null,8,["modelValue","options"])]),center:vi(()=>G[3]||(G[3]=[mr("span",null,"Sketch",-1)])),end:vi(()=>[bi(Wr(Jy),{icon:"pi pi-search",class:"mr-2",severity:"secondary",onClick:O,text:""}),bi($Wr,{format:h.value,"rdf-text":d.value},null,8,["format","rdf-text"]),bi(Wr(Jy),{icon:"pi pi-lightbulb",class:"mr-2",severity:"secondary",onClick:G[1]||(G[1]=j=>E.value=!E.value),text:""}),bi(Wr(Jy),{as:"a",icon:"pi pi-github",class:"mr-2",severity:"secondary",href:"https://github.com/zazuko/rdf-sketch",target:"_blank",text:""})]),_:1}),bi(Wr(VQt),{style:{height:"calc(100vh - (67.5px + ( 2 * 8px) + 8px) )","margin-top":"8px"},class:"mb-8"},{default:vi(()=>[bi(Wr($fe),{style:Vb({display:v.value?"none":"flex"}),class:"flex items-center justify-center"},{default:vi(()=>[bi(isr,{format:h.value,onChange:A,onFormatChange:M},null,8,["format"])]),_:1},8,["style"]),bi(Wr($fe),{class:"flex items-center justify-center"},{default:vi(()=>[bi(mjr,{dataset:w.value},null,8,["dataset"])]),_:1}),y.value?fr("",!0):(ze(),Nn(Wr($fe),{key:0},{default:vi(()=>[bi(gWr,{dataset:w.value,onSelected:L},null,8,["dataset"])]),_:1}))]),_:1}),bi(Wr(eZt),{visible:E.value,"onUpdate:visible":G[2]||(G[2]=j=>E.value=j),modal:"",header:"Zazuko RDF Sketch",style:{width:"60rem"}},{default:vi(()=>G[4]||(G[4]=[mr("div",{style:{display:"flex","flex-direction":"row",gap:"24px"}},[mr("img",{src:rVn,alt:"Zazuko Logo",style:{width:"100px"}}),mr("div",{style:{opacity:"0.8"}},[nm(" Sketch is a simple yet powerful tool for visualizing RDF graphs. It allows you to: "),mr("ul",{style:{"padding-left":"20px"}},[mr("li",null," Traverse and Explore: Seamlessly navigate through your RDF graphs. "),mr("li",null," Search with Ease:Quickly locate nodes and connections. "),mr("li",null," Interact Intuitively: Click edges and Objects (SPO) to navigate. ")]),nm(" You can find more tools and resources at "),mr("a",{href:"https://zazuko.com",target:"_blank"},"Zazuko.com"),nm(". ")])],-1)])),_:1},8,["visible"])],64))}});function PWr(n){return zhe()?(qK(n),!0):!1}function Nhn(n){return typeof n=="function"?n():Wr(n)}const OWr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const NWr=Object.prototype.toString,MWr=n=>NWr.call(n)==="[object Object]",DWr=()=>{};function LWr(n,r){function o(...l){return new Promise((u,d)=>{Promise.resolve(n(()=>r.apply(this,l),{fn:r,thisArg:this,args:l})).then(u).catch(d)})}return o}const Mhn=n=>n();function jWr(n=Mhn){const r=Fo(!0);function o(){r.value=!1}function l(){r.value=!0}const u=(...d)=>{r.value&&n(...d)};return{isActive:zX(r),pause:o,resume:l,eventFilter:u}}function FWr(n,r,o={}){const{eventFilter:l=Mhn,...u}=o;return Zs(n,LWr(l,r),u)}function BWr(n,r,o={}){const{eventFilter:l,...u}=o,{eventFilter:d,pause:h,resume:w,isActive:v}=jWr(l);return{stop:FWr(n,r,{...u,eventFilter:d}),pause:h,resume:w,isActive:v}}function WWr(n){var r;const o=Nhn(n);return(r=o==null?void 0:o.$el)!=null?r:o}const Dhn=OWr?window:void 0;function fYt(...n){let r,o,l,u;if(typeof n[0]=="string"||Array.isArray(n[0])?([o,l,u]=n,r=Dhn):[r,o,l,u]=n,!r)return DWr;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const d=[],h=()=>{d.forEach(E=>E()),d.length=0},w=(E,A,C,R)=>(E.addEventListener(A,C,R),()=>E.removeEventListener(A,C,R)),v=Zs(()=>[WWr(r),Nhn(u)],([E,A])=>{if(h(),!E)return;const C=MWr(A)?{...A}:A;d.push(...o.flatMap(R=>l.map(O=>w(E,R,O,C))))},{immediate:!0,flush:"post"}),y=()=>{v(),h()};return PWr(y),y}function HWr(n="history",r={}){const{initialValue:o={},removeNullishValues:l=!0,removeFalsyValues:u=!1,write:d=!0,window:h=Dhn}=r;if(!h)return mP(o);const w=mP({});function v(){if(n==="history")return h.location.search||"";if(n==="hash"){const H=h.location.hash||"",G=H.indexOf("?");return G>0?H.slice(G):""}else return(h.location.hash||"").replace(/^#/,"")}function y(H){const G=H.toString();if(n==="history")return`${G?`?${G}`:""}${h.location.hash||""}`;if(n==="hash-params")return`${h.location.search||""}${G?`#${G}`:""}`;const j=h.location.hash||"#",Q=j.indexOf("?");return Q>0?`${j.slice(0,Q)}${G?`?${G}`:""}`:`${j}${G?`?${G}`:""}`}function E(){return new URLSearchParams(v())}function A(H){const G=new Set(Object.keys(w));for(const j of H.keys()){const Q=H.getAll(j);w[j]=Q.length>1?Q:H.get(j)||"",G.delete(j)}Array.from(G).forEach(j=>delete w[j])}const{pause:C,resume:R}=BWr(w,()=>{const H=new URLSearchParams("");Object.keys(w).forEach(G=>{const j=w[G];Array.isArray(j)?j.forEach(Q=>H.append(G,Q)):l&&j==null||u&&!j?H.delete(G):H.set(G,j)}),O(H)},{deep:!0});function O(H,G){C(),G&&A(H),h.history.replaceState(h.history.state,h.document.title,h.location.pathname+y(H)),R()}function M(){d&&O(E(),!0)}fYt(h,"popstate",M,!1),n!=="history"&&fYt(h,"hashchange",M,!1);const L=E();return L.keys().next().value?A(L):Object.assign(w,o),w}const v8=HWr("hash-params"),Lhn=aHn(IWr);Lhn.use(wUn,{theme:{preset:nVn},options:{darkModeSelector:".my-app-dark",cssLayer:!1}});UWr();Lhn.mount("#app");function UWr(){if(v8.rdf){const n=(Array.isArray(v8.rdf)?v8.rdf[0]:v8.rdf)??"",r=((Array.isArray(v8.format)?v8.format[0]:v8.format)??zpe.Turtle).replace(" ","+");n.length>0&&DR.find(o=>o.type===r)&&(localStorage.setItem(Hfe,n),localStorage.setItem(Ufe,r))}}export{Lgr as B,rFe as D,aL as L,Ngr as N,uon as Q,NAr as S,yk as T,jgr as V,Wun as a,Kr as b,fu as c,lUr as d,Jpe as e,qwr as f,cv as g,xue as h,gon as i,rUr as j,Xwr as k,con as l,Knr as m,$E as n,Fgr as o,Wl as p,oHe as r,rm as s,Rue as t}; diff --git a/assets/main-Cn_tAjBT.css b/assets/main-_2tfKWhP.css similarity index 99% rename from assets/main-Cn_tAjBT.css rename to assets/main-_2tfKWhP.css index e48e1fb..11183bf 100644 --- a/assets/main-Cn_tAjBT.css +++ b/assets/main-_2tfKWhP.css @@ -1 +1 @@ -@font-face{font-family:primeicons;font-display:block;src:url(/assets/primeicons-DMOk5skT.eot);src:url(/assets/primeicons-DMOk5skT.eot?#iefix) format("embedded-opentype"),url(/assets/primeicons-C6QP2o4f.woff2) format("woff2"),url(/assets/primeicons-WjwUDZjB.woff) format("woff"),url(/assets/primeicons-MpK4pl85.ttf) format("truetype"),url(/assets/primeicons-Dr5RGzOO.svg?#primeicons) format("svg");font-weight:400;font-style:normal}.pi{font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.pi:before{--webkit-backface-visibility:hidden;backface-visibility:hidden}.pi-fw{width:1.28571429em;text-align:center}.pi-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}@media (prefers-reduced-motion: reduce){.pi-spin{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.pi-folder-plus:before{content:""}.pi-receipt:before{content:""}.pi-asterisk:before{content:""}.pi-face-smile:before{content:""}.pi-pinterest:before{content:""}.pi-expand:before{content:""}.pi-pen-to-square:before{content:""}.pi-wave-pulse:before{content:""}.pi-turkish-lira:before{content:""}.pi-spinner-dotted:before{content:""}.pi-crown:before{content:""}.pi-pause-circle:before{content:""}.pi-warehouse:before{content:""}.pi-objects-column:before{content:""}.pi-clipboard:before{content:""}.pi-play-circle:before{content:""}.pi-venus:before{content:""}.pi-cart-minus:before{content:""}.pi-file-plus:before{content:""}.pi-microchip:before{content:""}.pi-twitch:before{content:""}.pi-building-columns:before{content:""}.pi-file-check:before{content:""}.pi-microchip-ai:before{content:""}.pi-trophy:before{content:""}.pi-barcode:before{content:""}.pi-file-arrow-up:before{content:""}.pi-mars:before{content:""}.pi-tiktok:before{content:""}.pi-arrow-up-right-and-arrow-down-left-from-center:before{content:""}.pi-ethereum:before{content:""}.pi-list-check:before{content:""}.pi-thumbtack:before{content:""}.pi-arrow-down-left-and-arrow-up-right-to-center:before{content:""}.pi-equals:before{content:""}.pi-lightbulb:before{content:""}.pi-star-half:before{content:""}.pi-address-book:before{content:""}.pi-chart-scatter:before{content:""}.pi-indian-rupee:before{content:""}.pi-star-half-fill:before{content:""}.pi-cart-arrow-down:before{content:""}.pi-calendar-clock:before{content:""}.pi-sort-up-fill:before{content:""}.pi-sparkles:before{content:""}.pi-bullseye:before{content:""}.pi-sort-down-fill:before{content:""}.pi-graduation-cap:before{content:""}.pi-hammer:before{content:""}.pi-bell-slash:before{content:""}.pi-gauge:before{content:""}.pi-shop:before{content:""}.pi-headphones:before{content:""}.pi-eraser:before{content:""}.pi-stopwatch:before{content:""}.pi-verified:before{content:""}.pi-delete-left:before{content:""}.pi-hourglass:before{content:""}.pi-truck:before{content:""}.pi-wrench:before{content:""}.pi-microphone:before{content:""}.pi-megaphone:before{content:""}.pi-arrow-right-arrow-left:before{content:""}.pi-bitcoin:before{content:""}.pi-file-edit:before{content:""}.pi-language:before{content:""}.pi-file-export:before{content:""}.pi-file-import:before{content:""}.pi-file-word:before{content:""}.pi-gift:before{content:""}.pi-cart-plus:before{content:""}.pi-thumbs-down-fill:before{content:""}.pi-thumbs-up-fill:before{content:""}.pi-arrows-alt:before{content:""}.pi-calculator:before{content:""}.pi-sort-alt-slash:before{content:""}.pi-arrows-h:before{content:""}.pi-arrows-v:before{content:""}.pi-pound:before{content:""}.pi-prime:before{content:""}.pi-chart-pie:before{content:""}.pi-reddit:before{content:""}.pi-code:before{content:""}.pi-sync:before{content:""}.pi-shopping-bag:before{content:""}.pi-server:before{content:""}.pi-database:before{content:""}.pi-hashtag:before{content:""}.pi-bookmark-fill:before{content:""}.pi-filter-fill:before{content:""}.pi-heart-fill:before{content:""}.pi-flag-fill:before{content:""}.pi-circle:before{content:""}.pi-circle-fill:before{content:""}.pi-bolt:before{content:""}.pi-history:before{content:""}.pi-box:before{content:""}.pi-at:before{content:""}.pi-arrow-up-right:before{content:""}.pi-arrow-up-left:before{content:""}.pi-arrow-down-left:before{content:""}.pi-arrow-down-right:before{content:""}.pi-telegram:before{content:""}.pi-stop-circle:before{content:""}.pi-stop:before{content:""}.pi-whatsapp:before{content:""}.pi-building:before{content:""}.pi-qrcode:before{content:""}.pi-car:before{content:""}.pi-instagram:before{content:""}.pi-linkedin:before{content:""}.pi-send:before{content:""}.pi-slack:before{content:""}.pi-sun:before{content:""}.pi-moon:before{content:""}.pi-vimeo:before{content:""}.pi-youtube:before{content:""}.pi-flag:before{content:""}.pi-wallet:before{content:""}.pi-map:before{content:""}.pi-link:before{content:""}.pi-credit-card:before{content:""}.pi-discord:before{content:""}.pi-percentage:before{content:""}.pi-euro:before{content:""}.pi-book:before{content:""}.pi-shield:before{content:""}.pi-paypal:before{content:""}.pi-amazon:before{content:""}.pi-phone:before{content:""}.pi-filter-slash:before{content:""}.pi-facebook:before{content:""}.pi-github:before{content:""}.pi-twitter:before{content:""}.pi-step-backward-alt:before{content:""}.pi-step-forward-alt:before{content:""}.pi-forward:before{content:""}.pi-backward:before{content:""}.pi-fast-backward:before{content:""}.pi-fast-forward:before{content:""}.pi-pause:before{content:""}.pi-play:before{content:""}.pi-compass:before{content:""}.pi-id-card:before{content:""}.pi-ticket:before{content:""}.pi-file-o:before{content:""}.pi-reply:before{content:""}.pi-directions-alt:before{content:""}.pi-directions:before{content:""}.pi-thumbs-up:before{content:""}.pi-thumbs-down:before{content:""}.pi-sort-numeric-down-alt:before{content:""}.pi-sort-numeric-up-alt:before{content:""}.pi-sort-alpha-down-alt:before{content:""}.pi-sort-alpha-up-alt:before{content:""}.pi-sort-numeric-down:before{content:""}.pi-sort-numeric-up:before{content:""}.pi-sort-alpha-down:before{content:""}.pi-sort-alpha-up:before{content:""}.pi-sort-alt:before{content:""}.pi-sort-amount-up:before{content:""}.pi-sort-amount-down:before{content:""}.pi-sort-amount-down-alt:before{content:""}.pi-sort-amount-up-alt:before{content:""}.pi-palette:before{content:""}.pi-undo:before{content:""}.pi-desktop:before{content:""}.pi-sliders-v:before{content:""}.pi-sliders-h:before{content:""}.pi-search-plus:before{content:""}.pi-search-minus:before{content:""}.pi-file-excel:before{content:""}.pi-file-pdf:before{content:""}.pi-check-square:before{content:""}.pi-chart-line:before{content:""}.pi-user-edit:before{content:""}.pi-exclamation-circle:before{content:""}.pi-android:before{content:""}.pi-google:before{content:""}.pi-apple:before{content:""}.pi-microsoft:before{content:""}.pi-heart:before{content:""}.pi-mobile:before{content:""}.pi-tablet:before{content:""}.pi-key:before{content:""}.pi-shopping-cart:before{content:""}.pi-comments:before{content:""}.pi-comment:before{content:""}.pi-briefcase:before{content:""}.pi-bell:before{content:""}.pi-paperclip:before{content:""}.pi-share-alt:before{content:""}.pi-envelope:before{content:""}.pi-volume-down:before{content:""}.pi-volume-up:before{content:""}.pi-volume-off:before{content:""}.pi-eject:before{content:""}.pi-money-bill:before{content:""}.pi-images:before{content:""}.pi-image:before{content:""}.pi-sign-in:before{content:""}.pi-sign-out:before{content:""}.pi-wifi:before{content:""}.pi-sitemap:before{content:""}.pi-chart-bar:before{content:""}.pi-camera:before{content:""}.pi-dollar:before{content:""}.pi-lock-open:before{content:""}.pi-table:before{content:""}.pi-map-marker:before{content:""}.pi-list:before{content:""}.pi-eye-slash:before{content:""}.pi-eye:before{content:""}.pi-folder-open:before{content:""}.pi-folder:before{content:""}.pi-video:before{content:""}.pi-inbox:before{content:""}.pi-lock:before{content:""}.pi-unlock:before{content:""}.pi-tags:before{content:""}.pi-tag:before{content:""}.pi-power-off:before{content:""}.pi-save:before{content:""}.pi-question-circle:before{content:""}.pi-question:before{content:""}.pi-copy:before{content:""}.pi-file:before{content:""}.pi-clone:before{content:""}.pi-calendar-times:before{content:""}.pi-calendar-minus:before{content:""}.pi-calendar-plus:before{content:""}.pi-ellipsis-v:before{content:""}.pi-ellipsis-h:before{content:""}.pi-bookmark:before{content:""}.pi-globe:before{content:""}.pi-replay:before{content:""}.pi-filter:before{content:""}.pi-print:before{content:""}.pi-align-right:before{content:""}.pi-align-left:before{content:""}.pi-align-center:before{content:""}.pi-align-justify:before{content:""}.pi-cog:before{content:""}.pi-cloud-download:before{content:""}.pi-cloud-upload:before{content:""}.pi-cloud:before{content:""}.pi-pencil:before{content:""}.pi-users:before{content:""}.pi-clock:before{content:""}.pi-user-minus:before{content:""}.pi-user-plus:before{content:""}.pi-trash:before{content:""}.pi-external-link:before{content:""}.pi-window-maximize:before{content:""}.pi-window-minimize:before{content:""}.pi-refresh:before{content:""}.pi-user:before{content:""}.pi-exclamation-triangle:before{content:""}.pi-calendar:before{content:""}.pi-chevron-circle-left:before{content:""}.pi-chevron-circle-down:before{content:""}.pi-chevron-circle-right:before{content:""}.pi-chevron-circle-up:before{content:""}.pi-angle-double-down:before{content:""}.pi-angle-double-left:before{content:""}.pi-angle-double-right:before{content:""}.pi-angle-double-up:before{content:""}.pi-angle-down:before{content:""}.pi-angle-left:before{content:""}.pi-angle-right:before{content:""}.pi-angle-up:before{content:""}.pi-upload:before{content:""}.pi-download:before{content:""}.pi-ban:before{content:""}.pi-star-fill:before{content:""}.pi-star:before{content:""}.pi-chevron-left:before{content:""}.pi-chevron-right:before{content:""}.pi-chevron-down:before{content:""}.pi-chevron-up:before{content:""}.pi-caret-left:before{content:""}.pi-caret-right:before{content:""}.pi-caret-down:before{content:""}.pi-caret-up:before{content:""}.pi-search:before{content:""}.pi-check:before{content:""}.pi-check-circle:before{content:""}.pi-times:before{content:""}.pi-times-circle:before{content:""}.pi-plus:before{content:""}.pi-plus-circle:before{content:""}.pi-minus:before{content:""}.pi-minus-circle:before{content:""}.pi-circle-on:before{content:""}.pi-circle-off:before{content:""}.pi-sort-down:before{content:""}.pi-sort-up:before{content:""}.pi-sort:before{content:""}.pi-step-backward:before{content:""}.pi-step-forward:before{content:""}.pi-th-large:before{content:""}.pi-arrow-down:before{content:""}.pi-arrow-left:before{content:""}.pi-arrow-right:before{content:""}.pi-arrow-up:before{content:""}.pi-bars:before{content:""}.pi-arrow-circle-down:before{content:""}.pi-arrow-circle-left:before{content:""}.pi-arrow-circle-right:before{content:""}.pi-arrow-circle-up:before{content:""}.pi-info:before{content:""}.pi-info-circle:before{content:""}.pi-home:before{content:""}.pi-spinner:before{content:""}@layer tailwind-base,primevue,tailwind-utilities;@layer tailwind-base{@tailwind base;}@layer tailwind-utilities{@tailwind components;@tailwind utilities;}body{height:100vh;max-height:100vh;overflow:hidden;margin:8px;font-family:Helvetica Neue,sans-serif}a{text-decoration:none}.editor-container[data-v-abcbd41c]{height:100%;width:100%;border-top-left-radius:6px;border-bottom-left-radius:6px;overflow:hidden}rdf-editor[data-v-abcbd41c]{height:100%;width:100%}.term[data-v-3bf480c8]{cursor:default;-webkit-user-select:text;user-select:text}.literal[data-v-3bf480c8]{max-width:300px;text-overflow:ellipsis;overflow:hidden;display:block;white-space:nowrap}.resource-card[data-v-0fcec032]{border-radius:5px;background-color:#fff;box-shadow:0 4px 6px #6b6b6bcc;min-width:500px}.resource-card-header[data-v-0fcec032]{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;background-color:gray;border-top-left-radius:5px;border-top-right-radius:5px}.resource-title[data-v-0fcec032]{font-weight:700}table[data-v-0fcec032]{width:100%;border-collapse:collapse;color:gray}tr[data-v-0fcec032]{position:relative}tr[data-v-0fcec032]:not(:last-child){border-bottom:1px solid lightgray!important}.table-container[data-v-0fcec032]{display:table;width:100%}.table-row[data-v-0fcec032]{display:table-row;position:relative!important;border-bottom:1px solid gray;right:0;top:0}.predicate[data-v-0fcec032],.object[data-v-0fcec032]{display:table-cell;padding:16px 8px;text-align:left;color:#000}.predicate[data-v-0fcec032]{padding-left:16px;text-align:left;color:#000;padding-top:16px;padding-bottom:16px}.object[data-v-0fcec032]{padding-right:16px;text-align:left}.vue-flow{position:relative;width:100%;height:100%;overflow:hidden;z-index:0;direction:ltr}.vue-flow__container{position:absolute;height:100%;width:100%;left:0;top:0}.vue-flow__pane{z-index:1}.vue-flow__pane.draggable{cursor:grab}.vue-flow__pane.selection{cursor:pointer}.vue-flow__pane.dragging{cursor:grabbing}.vue-flow__transformationpane{transform-origin:0 0;z-index:2;pointer-events:none}.vue-flow__viewport{z-index:4;overflow:clip}.vue-flow__selection{z-index:6}.vue-flow__edge-labels{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible{outline:none}.vue-flow .vue-flow__edges{pointer-events:none;overflow:visible}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.vue-flow__edge{pointer-events:visibleStroke;cursor:pointer}.vue-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__edge.animated path.vue-flow__edge-interaction{stroke-dasharray:none;animation:none}.vue-flow__edge.inactive{pointer-events:none}.vue-flow__edge.selected,.vue-flow__edge:focus,.vue-flow__edge:focus-visible{outline:none}.vue-flow__edge.selected .vue-flow__edge-path,.vue-flow__edge:focus .vue-flow__edge-path,.vue-flow__edge:focus-visible .vue-flow__edge-path{stroke:#555}.vue-flow__edge-textwrapper{pointer-events:all}.vue-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__connection{pointer-events:none}.vue-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__connectionline{z-index:1001}.vue-flow__nodes{pointer-events:none;transform-origin:0 0}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{border-width:1px;border-style:solid;border-color:#bbb}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible,.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible,.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid #555}.vue-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.vue-flow__node.draggable{cursor:grab;pointer-events:all}.vue-flow__node.draggable.dragging{cursor:grabbing}.vue-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.vue-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.vue-flow__nodesselection-rect.dragging{cursor:grabbing}.vue-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px}.vue-flow__handle.connectable{pointer-events:all;cursor:crosshair}.vue-flow__handle-bottom{left:50%;bottom:0;transform:translate(-50%,50%)}.vue-flow__handle-top{left:50%;top:0;transform:translate(-50%,-50%)}.vue-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.vue-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.vue-flow__edgeupdater{cursor:move;pointer-events:all}.vue-flow__panel{position:absolute;z-index:5;margin:15px}.vue-flow__panel.top{top:0}.vue-flow__panel.bottom{bottom:0}.vue-flow__panel.left{left:0}.vue-flow__panel.right{right:0}.vue-flow__panel.center{left:50%;transform:translate(-50%)}@keyframes dashdraw{0%{stroke-dashoffset:10}}:root{--vf-node-bg: #fff;--vf-node-text: #222;--vf-connection-path: #b1b1b7;--vf-handle: #555}.vue-flow__edge.updating .vue-flow__edge-path{stroke:#777}.vue-flow__edge-text{font-size:10px}.vue-flow__edge-textbg{fill:#fff}.vue-flow__connection-path{stroke:var(--vf-connection-path)}.vue-flow__node{cursor:grab}.vue-flow__node.selectable:focus,.vue-flow__node.selectable:focus-visible{outline:none}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{padding:10px;border-radius:3px;width:150px;font-size:12px;text-align:center;border-width:1px;border-style:solid;color:var(--vf-node-text);background-color:var(--vf-node-bg);border-color:var(--vf-node-color)}.vue-flow__node-default.selected,.vue-flow__node-default.selected:hover,.vue-flow__node-input.selected,.vue-flow__node-input.selected:hover,.vue-flow__node-output.selected,.vue-flow__node-output.selected:hover{box-shadow:0 0 0 .5px var(--vf-box-shadow)}.vue-flow__node-default .vue-flow__handle,.vue-flow__node-input .vue-flow__handle,.vue-flow__node-output .vue-flow__handle{background:var(--vf-handle)}.vue-flow__node-default.selectable:hover,.vue-flow__node-input.selectable:hover,.vue-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.vue-flow__node-input{--vf-node-color: var(--vf-node-color, #0041d0);--vf-handle: var(--vf-node-color, #0041d0);--vf-box-shadow: var(--vf-node-color, #0041d0);background:var(--vf-node-bg);border-color:var(--vf-node-color, #0041d0)}.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible{outline:none;border:1px solid var(--vf-node-color, #0041d0)}.vue-flow__node-default{--vf-handle: var(--vf-node-color, #1a192b);--vf-box-shadow: var(--vf-node-color, #1a192b);background:var(--vf-node-bg);border-color:var(--vf-node-color, #1a192b)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible{outline:none;border:1px solid var(--vf-node-color, #1a192b)}.vue-flow__node-output{--vf-handle: var(--vf-node-color, #ff0072);--vf-box-shadow: var(--vf-node-color, #ff0072);background:var(--vf-node-bg);border-color:var(--vf-node-color, #ff0072)}.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid var(--vf-node-color, #ff0072)}.vue-flow__nodesselection-rect,.vue-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible,.vue-flow__selection:focus,.vue-flow__selection:focus-visible{outline:none}.vue-flow__handle{width:6px;height:6px;background:var(--vf-handle);border:1px solid #fff;border-radius:100%}#menu{position:fixed;bottom:20px;right:20px;background-color:#fff;border:1px solid black;padding:10px;pointer-events:auto}.control{display:flex;flex-direction:row;align-items:center;gap:.5rem}.cog{margin-left:auto;margin-right:0;color:#8a9ba1}span[data-v-accad2da]{font-size:12px}.node-link[data-v-accad2da]{cursor:pointer;text-decoration:underline}.limit[data-v-28872e37]{display:inline-block;white-space:nowrap;width:253px;overflow:hidden}.content[data-v-28872e37]{display:flex;flex-direction:column;gap:1rem;padding:1rem}.group[data-v-28872e37]{display:flex;flex-direction:row;gap:1rem;align-items:center} +@font-face{font-family:primeicons;font-display:block;src:url(/assets/primeicons-DMOk5skT.eot);src:url(/assets/primeicons-DMOk5skT.eot?#iefix) format("embedded-opentype"),url(/assets/primeicons-C6QP2o4f.woff2) format("woff2"),url(/assets/primeicons-WjwUDZjB.woff) format("woff"),url(/assets/primeicons-MpK4pl85.ttf) format("truetype"),url(/assets/primeicons-Dr5RGzOO.svg?#primeicons) format("svg");font-weight:400;font-style:normal}.pi{font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.pi:before{--webkit-backface-visibility:hidden;backface-visibility:hidden}.pi-fw{width:1.28571429em;text-align:center}.pi-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}@media (prefers-reduced-motion: reduce){.pi-spin{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.pi-folder-plus:before{content:""}.pi-receipt:before{content:""}.pi-asterisk:before{content:""}.pi-face-smile:before{content:""}.pi-pinterest:before{content:""}.pi-expand:before{content:""}.pi-pen-to-square:before{content:""}.pi-wave-pulse:before{content:""}.pi-turkish-lira:before{content:""}.pi-spinner-dotted:before{content:""}.pi-crown:before{content:""}.pi-pause-circle:before{content:""}.pi-warehouse:before{content:""}.pi-objects-column:before{content:""}.pi-clipboard:before{content:""}.pi-play-circle:before{content:""}.pi-venus:before{content:""}.pi-cart-minus:before{content:""}.pi-file-plus:before{content:""}.pi-microchip:before{content:""}.pi-twitch:before{content:""}.pi-building-columns:before{content:""}.pi-file-check:before{content:""}.pi-microchip-ai:before{content:""}.pi-trophy:before{content:""}.pi-barcode:before{content:""}.pi-file-arrow-up:before{content:""}.pi-mars:before{content:""}.pi-tiktok:before{content:""}.pi-arrow-up-right-and-arrow-down-left-from-center:before{content:""}.pi-ethereum:before{content:""}.pi-list-check:before{content:""}.pi-thumbtack:before{content:""}.pi-arrow-down-left-and-arrow-up-right-to-center:before{content:""}.pi-equals:before{content:""}.pi-lightbulb:before{content:""}.pi-star-half:before{content:""}.pi-address-book:before{content:""}.pi-chart-scatter:before{content:""}.pi-indian-rupee:before{content:""}.pi-star-half-fill:before{content:""}.pi-cart-arrow-down:before{content:""}.pi-calendar-clock:before{content:""}.pi-sort-up-fill:before{content:""}.pi-sparkles:before{content:""}.pi-bullseye:before{content:""}.pi-sort-down-fill:before{content:""}.pi-graduation-cap:before{content:""}.pi-hammer:before{content:""}.pi-bell-slash:before{content:""}.pi-gauge:before{content:""}.pi-shop:before{content:""}.pi-headphones:before{content:""}.pi-eraser:before{content:""}.pi-stopwatch:before{content:""}.pi-verified:before{content:""}.pi-delete-left:before{content:""}.pi-hourglass:before{content:""}.pi-truck:before{content:""}.pi-wrench:before{content:""}.pi-microphone:before{content:""}.pi-megaphone:before{content:""}.pi-arrow-right-arrow-left:before{content:""}.pi-bitcoin:before{content:""}.pi-file-edit:before{content:""}.pi-language:before{content:""}.pi-file-export:before{content:""}.pi-file-import:before{content:""}.pi-file-word:before{content:""}.pi-gift:before{content:""}.pi-cart-plus:before{content:""}.pi-thumbs-down-fill:before{content:""}.pi-thumbs-up-fill:before{content:""}.pi-arrows-alt:before{content:""}.pi-calculator:before{content:""}.pi-sort-alt-slash:before{content:""}.pi-arrows-h:before{content:""}.pi-arrows-v:before{content:""}.pi-pound:before{content:""}.pi-prime:before{content:""}.pi-chart-pie:before{content:""}.pi-reddit:before{content:""}.pi-code:before{content:""}.pi-sync:before{content:""}.pi-shopping-bag:before{content:""}.pi-server:before{content:""}.pi-database:before{content:""}.pi-hashtag:before{content:""}.pi-bookmark-fill:before{content:""}.pi-filter-fill:before{content:""}.pi-heart-fill:before{content:""}.pi-flag-fill:before{content:""}.pi-circle:before{content:""}.pi-circle-fill:before{content:""}.pi-bolt:before{content:""}.pi-history:before{content:""}.pi-box:before{content:""}.pi-at:before{content:""}.pi-arrow-up-right:before{content:""}.pi-arrow-up-left:before{content:""}.pi-arrow-down-left:before{content:""}.pi-arrow-down-right:before{content:""}.pi-telegram:before{content:""}.pi-stop-circle:before{content:""}.pi-stop:before{content:""}.pi-whatsapp:before{content:""}.pi-building:before{content:""}.pi-qrcode:before{content:""}.pi-car:before{content:""}.pi-instagram:before{content:""}.pi-linkedin:before{content:""}.pi-send:before{content:""}.pi-slack:before{content:""}.pi-sun:before{content:""}.pi-moon:before{content:""}.pi-vimeo:before{content:""}.pi-youtube:before{content:""}.pi-flag:before{content:""}.pi-wallet:before{content:""}.pi-map:before{content:""}.pi-link:before{content:""}.pi-credit-card:before{content:""}.pi-discord:before{content:""}.pi-percentage:before{content:""}.pi-euro:before{content:""}.pi-book:before{content:""}.pi-shield:before{content:""}.pi-paypal:before{content:""}.pi-amazon:before{content:""}.pi-phone:before{content:""}.pi-filter-slash:before{content:""}.pi-facebook:before{content:""}.pi-github:before{content:""}.pi-twitter:before{content:""}.pi-step-backward-alt:before{content:""}.pi-step-forward-alt:before{content:""}.pi-forward:before{content:""}.pi-backward:before{content:""}.pi-fast-backward:before{content:""}.pi-fast-forward:before{content:""}.pi-pause:before{content:""}.pi-play:before{content:""}.pi-compass:before{content:""}.pi-id-card:before{content:""}.pi-ticket:before{content:""}.pi-file-o:before{content:""}.pi-reply:before{content:""}.pi-directions-alt:before{content:""}.pi-directions:before{content:""}.pi-thumbs-up:before{content:""}.pi-thumbs-down:before{content:""}.pi-sort-numeric-down-alt:before{content:""}.pi-sort-numeric-up-alt:before{content:""}.pi-sort-alpha-down-alt:before{content:""}.pi-sort-alpha-up-alt:before{content:""}.pi-sort-numeric-down:before{content:""}.pi-sort-numeric-up:before{content:""}.pi-sort-alpha-down:before{content:""}.pi-sort-alpha-up:before{content:""}.pi-sort-alt:before{content:""}.pi-sort-amount-up:before{content:""}.pi-sort-amount-down:before{content:""}.pi-sort-amount-down-alt:before{content:""}.pi-sort-amount-up-alt:before{content:""}.pi-palette:before{content:""}.pi-undo:before{content:""}.pi-desktop:before{content:""}.pi-sliders-v:before{content:""}.pi-sliders-h:before{content:""}.pi-search-plus:before{content:""}.pi-search-minus:before{content:""}.pi-file-excel:before{content:""}.pi-file-pdf:before{content:""}.pi-check-square:before{content:""}.pi-chart-line:before{content:""}.pi-user-edit:before{content:""}.pi-exclamation-circle:before{content:""}.pi-android:before{content:""}.pi-google:before{content:""}.pi-apple:before{content:""}.pi-microsoft:before{content:""}.pi-heart:before{content:""}.pi-mobile:before{content:""}.pi-tablet:before{content:""}.pi-key:before{content:""}.pi-shopping-cart:before{content:""}.pi-comments:before{content:""}.pi-comment:before{content:""}.pi-briefcase:before{content:""}.pi-bell:before{content:""}.pi-paperclip:before{content:""}.pi-share-alt:before{content:""}.pi-envelope:before{content:""}.pi-volume-down:before{content:""}.pi-volume-up:before{content:""}.pi-volume-off:before{content:""}.pi-eject:before{content:""}.pi-money-bill:before{content:""}.pi-images:before{content:""}.pi-image:before{content:""}.pi-sign-in:before{content:""}.pi-sign-out:before{content:""}.pi-wifi:before{content:""}.pi-sitemap:before{content:""}.pi-chart-bar:before{content:""}.pi-camera:before{content:""}.pi-dollar:before{content:""}.pi-lock-open:before{content:""}.pi-table:before{content:""}.pi-map-marker:before{content:""}.pi-list:before{content:""}.pi-eye-slash:before{content:""}.pi-eye:before{content:""}.pi-folder-open:before{content:""}.pi-folder:before{content:""}.pi-video:before{content:""}.pi-inbox:before{content:""}.pi-lock:before{content:""}.pi-unlock:before{content:""}.pi-tags:before{content:""}.pi-tag:before{content:""}.pi-power-off:before{content:""}.pi-save:before{content:""}.pi-question-circle:before{content:""}.pi-question:before{content:""}.pi-copy:before{content:""}.pi-file:before{content:""}.pi-clone:before{content:""}.pi-calendar-times:before{content:""}.pi-calendar-minus:before{content:""}.pi-calendar-plus:before{content:""}.pi-ellipsis-v:before{content:""}.pi-ellipsis-h:before{content:""}.pi-bookmark:before{content:""}.pi-globe:before{content:""}.pi-replay:before{content:""}.pi-filter:before{content:""}.pi-print:before{content:""}.pi-align-right:before{content:""}.pi-align-left:before{content:""}.pi-align-center:before{content:""}.pi-align-justify:before{content:""}.pi-cog:before{content:""}.pi-cloud-download:before{content:""}.pi-cloud-upload:before{content:""}.pi-cloud:before{content:""}.pi-pencil:before{content:""}.pi-users:before{content:""}.pi-clock:before{content:""}.pi-user-minus:before{content:""}.pi-user-plus:before{content:""}.pi-trash:before{content:""}.pi-external-link:before{content:""}.pi-window-maximize:before{content:""}.pi-window-minimize:before{content:""}.pi-refresh:before{content:""}.pi-user:before{content:""}.pi-exclamation-triangle:before{content:""}.pi-calendar:before{content:""}.pi-chevron-circle-left:before{content:""}.pi-chevron-circle-down:before{content:""}.pi-chevron-circle-right:before{content:""}.pi-chevron-circle-up:before{content:""}.pi-angle-double-down:before{content:""}.pi-angle-double-left:before{content:""}.pi-angle-double-right:before{content:""}.pi-angle-double-up:before{content:""}.pi-angle-down:before{content:""}.pi-angle-left:before{content:""}.pi-angle-right:before{content:""}.pi-angle-up:before{content:""}.pi-upload:before{content:""}.pi-download:before{content:""}.pi-ban:before{content:""}.pi-star-fill:before{content:""}.pi-star:before{content:""}.pi-chevron-left:before{content:""}.pi-chevron-right:before{content:""}.pi-chevron-down:before{content:""}.pi-chevron-up:before{content:""}.pi-caret-left:before{content:""}.pi-caret-right:before{content:""}.pi-caret-down:before{content:""}.pi-caret-up:before{content:""}.pi-search:before{content:""}.pi-check:before{content:""}.pi-check-circle:before{content:""}.pi-times:before{content:""}.pi-times-circle:before{content:""}.pi-plus:before{content:""}.pi-plus-circle:before{content:""}.pi-minus:before{content:""}.pi-minus-circle:before{content:""}.pi-circle-on:before{content:""}.pi-circle-off:before{content:""}.pi-sort-down:before{content:""}.pi-sort-up:before{content:""}.pi-sort:before{content:""}.pi-step-backward:before{content:""}.pi-step-forward:before{content:""}.pi-th-large:before{content:""}.pi-arrow-down:before{content:""}.pi-arrow-left:before{content:""}.pi-arrow-right:before{content:""}.pi-arrow-up:before{content:""}.pi-bars:before{content:""}.pi-arrow-circle-down:before{content:""}.pi-arrow-circle-left:before{content:""}.pi-arrow-circle-right:before{content:""}.pi-arrow-circle-up:before{content:""}.pi-info:before{content:""}.pi-info-circle:before{content:""}.pi-home:before{content:""}.pi-spinner:before{content:""}@layer tailwind-base,primevue,tailwind-utilities;@layer tailwind-base{@tailwind base;}@layer tailwind-utilities{@tailwind components;@tailwind utilities;}body{height:100vh;max-height:100vh;overflow:hidden;margin:8px;font-family:Helvetica Neue,sans-serif}a{text-decoration:none}.editor-container[data-v-abcbd41c]{height:100%;width:100%;border-top-left-radius:6px;border-bottom-left-radius:6px;overflow:hidden}rdf-editor[data-v-abcbd41c]{height:100%;width:100%}.term[data-v-3bf480c8]{cursor:default;-webkit-user-select:text;user-select:text}.literal[data-v-3bf480c8]{max-width:300px;text-overflow:ellipsis;overflow:hidden;display:block;white-space:nowrap}.resource-card[data-v-0fcec032]{border-radius:5px;background-color:#fff;box-shadow:0 4px 6px #6b6b6bcc;min-width:500px}.resource-card-header[data-v-0fcec032]{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;background-color:gray;border-top-left-radius:5px;border-top-right-radius:5px}.resource-title[data-v-0fcec032]{font-weight:700}table[data-v-0fcec032]{width:100%;border-collapse:collapse;color:gray}tr[data-v-0fcec032]{position:relative}tr[data-v-0fcec032]:not(:last-child){border-bottom:1px solid lightgray!important}.table-container[data-v-0fcec032]{display:table;width:100%}.table-row[data-v-0fcec032]{display:table-row;position:relative!important;border-bottom:1px solid gray;right:0;top:0}.predicate[data-v-0fcec032],.object[data-v-0fcec032]{display:table-cell;padding:16px 8px;text-align:left;color:#000}.predicate[data-v-0fcec032]{padding-left:16px;text-align:left;color:#000;padding-top:16px;padding-bottom:16px}.object[data-v-0fcec032]{padding-right:16px;text-align:left}.vue-flow{position:relative;width:100%;height:100%;overflow:hidden;z-index:0;direction:ltr}.vue-flow__container{position:absolute;height:100%;width:100%;left:0;top:0}.vue-flow__pane{z-index:1}.vue-flow__pane.draggable{cursor:grab}.vue-flow__pane.selection{cursor:pointer}.vue-flow__pane.dragging{cursor:grabbing}.vue-flow__transformationpane{transform-origin:0 0;z-index:2;pointer-events:none}.vue-flow__viewport{z-index:4;overflow:clip}.vue-flow__selection{z-index:6}.vue-flow__edge-labels{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible{outline:none}.vue-flow .vue-flow__edges{pointer-events:none;overflow:visible}.vue-flow__edge-path,.vue-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.vue-flow__edge{pointer-events:visibleStroke;cursor:pointer}.vue-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__edge.animated path.vue-flow__edge-interaction{stroke-dasharray:none;animation:none}.vue-flow__edge.inactive{pointer-events:none}.vue-flow__edge.selected,.vue-flow__edge:focus,.vue-flow__edge:focus-visible{outline:none}.vue-flow__edge.selected .vue-flow__edge-path,.vue-flow__edge:focus .vue-flow__edge-path,.vue-flow__edge:focus-visible .vue-flow__edge-path{stroke:#555}.vue-flow__edge-textwrapper{pointer-events:all}.vue-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__connection{pointer-events:none}.vue-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__connectionline{z-index:1001}.vue-flow__nodes{pointer-events:none;transform-origin:0 0}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{border-width:1px;border-style:solid;border-color:#bbb}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible,.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible,.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid #555}.vue-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.vue-flow__node.draggable{cursor:grab;pointer-events:all}.vue-flow__node.draggable.dragging{cursor:grabbing}.vue-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.vue-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.vue-flow__nodesselection-rect.dragging{cursor:grabbing}.vue-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px}.vue-flow__handle.connectable{pointer-events:all;cursor:crosshair}.vue-flow__handle-bottom{left:50%;bottom:0;transform:translate(-50%,50%)}.vue-flow__handle-top{left:50%;top:0;transform:translate(-50%,-50%)}.vue-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.vue-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.vue-flow__edgeupdater{cursor:move;pointer-events:all}.vue-flow__panel{position:absolute;z-index:5;margin:15px}.vue-flow__panel.top{top:0}.vue-flow__panel.bottom{bottom:0}.vue-flow__panel.left{left:0}.vue-flow__panel.right{right:0}.vue-flow__panel.center{left:50%;transform:translate(-50%)}@keyframes dashdraw{0%{stroke-dashoffset:10}}:root{--vf-node-bg: #fff;--vf-node-text: #222;--vf-connection-path: #b1b1b7;--vf-handle: #555}.vue-flow__edge.updating .vue-flow__edge-path{stroke:#777}.vue-flow__edge-text{font-size:10px}.vue-flow__edge-textbg{fill:#fff}.vue-flow__connection-path{stroke:var(--vf-connection-path)}.vue-flow__node{cursor:grab}.vue-flow__node.selectable:focus,.vue-flow__node.selectable:focus-visible{outline:none}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{padding:10px;border-radius:3px;width:150px;font-size:12px;text-align:center;border-width:1px;border-style:solid;color:var(--vf-node-text);background-color:var(--vf-node-bg);border-color:var(--vf-node-color)}.vue-flow__node-default.selected,.vue-flow__node-default.selected:hover,.vue-flow__node-input.selected,.vue-flow__node-input.selected:hover,.vue-flow__node-output.selected,.vue-flow__node-output.selected:hover{box-shadow:0 0 0 .5px var(--vf-box-shadow)}.vue-flow__node-default .vue-flow__handle,.vue-flow__node-input .vue-flow__handle,.vue-flow__node-output .vue-flow__handle{background:var(--vf-handle)}.vue-flow__node-default.selectable:hover,.vue-flow__node-input.selectable:hover,.vue-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.vue-flow__node-input{--vf-node-color: var(--vf-node-color, #0041d0);--vf-handle: var(--vf-node-color, #0041d0);--vf-box-shadow: var(--vf-node-color, #0041d0);background:var(--vf-node-bg);border-color:var(--vf-node-color, #0041d0)}.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible{outline:none;border:1px solid var(--vf-node-color, #0041d0)}.vue-flow__node-default{--vf-handle: var(--vf-node-color, #1a192b);--vf-box-shadow: var(--vf-node-color, #1a192b);background:var(--vf-node-bg);border-color:var(--vf-node-color, #1a192b)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible{outline:none;border:1px solid var(--vf-node-color, #1a192b)}.vue-flow__node-output{--vf-handle: var(--vf-node-color, #ff0072);--vf-box-shadow: var(--vf-node-color, #ff0072);background:var(--vf-node-bg);border-color:var(--vf-node-color, #ff0072)}.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid var(--vf-node-color, #ff0072)}.vue-flow__nodesselection-rect,.vue-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible,.vue-flow__selection:focus,.vue-flow__selection:focus-visible{outline:none}.vue-flow__handle{width:6px;height:6px;background:var(--vf-handle);border:1px solid #fff;border-radius:100%}#menu{position:fixed;bottom:20px;right:20px;background-color:#fff;border:1px solid black;padding:10px;pointer-events:auto}.control{display:flex;flex-direction:row;align-items:center;gap:.5rem}.cog{margin-left:auto;margin-right:0;color:#8a9ba1}span[data-v-ff7b29fe]{font-size:12px}.node-link[data-v-ff7b29fe]{cursor:pointer;text-decoration:underline}.limit[data-v-28872e37]{display:inline-block;white-space:nowrap;width:253px;overflow:hidden}.content[data-v-28872e37]{display:flex;flex-direction:column;gap:1rem;padding:1rem}.group[data-v-28872e37]{display:flex;flex-direction:row;gap:1rem;align-items:center} diff --git a/assets/main-iH2f1yx-.js b/assets/main-gYTlQIEk.js similarity index 97% rename from assets/main-iH2f1yx-.js rename to assets/main-gYTlQIEk.js index 99f6979..f0b4f54 100644 --- a/assets/main-iH2f1yx-.js +++ b/assets/main-gYTlQIEk.js @@ -1,4 +1,4 @@ -import{g as T,m as S}from"./main-CO-45Vwa.js";import{m as C}from"./main-DQofh_ad.js";function I(l,e){for(var t=0;ti[r]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let l=Promise.resolve();try{queueMicrotask=e=>l.then(e).catch(t=>setTimeout(()=>{throw t},0))}catch{}}const u=S,A=C,k=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?)?$/u,p=1,w=2,E=4;class h extends A{constructor(e={}){super(e);let{prefixes:t={},lists:i=null,debug:r=!1,style:s=null}=e;if(Object.assign(this,{_b_debug:r,_s_indent:" ",_b_simplify_default_graph:!1,_xc_directives:0,_s_token_prefix:"@prefix"}),s){s.indent&&(this._s_indent=s.indent.replace(/[^\s]/g,""));let f=s.directives||s.directives;if(f)switch(f){case"sparql":{this._xc_directives=p,this._s_token_prefix="prefix";break}case"Sparql":{this._xc_directives=p|w,this._s_token_prefix="Prefix";break}case"SPARQL":{this._xc_directives=p|E,this._s_token_prefix="PREFIX";break}case"turtle":break;case"Turtle":{this._xc_directives=w,this._s_token_prefix="@Prefix";break}case"TURTLE":{this._xc_directives=E,this._s_token_prefix="@PREFIX";break}default:throw new Error(`Value not understood for 'directives' option: ${f}`)}}i&&(this._serialize_list_object=function(f,a){let d=this._transcode_list(f);return this._encode_objects(d,a)});let _=this._s_token_prefix,n=this._xc_directives&p?` +import{g as T,m as S}from"./main-DsJMMZjG.js";import{m as C}from"./main-CntB7osZ.js";function I(l,e){for(var t=0;ti[r]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}if(typeof queueMicrotask!="function"){let l=Promise.resolve();try{queueMicrotask=e=>l.then(e).catch(t=>setTimeout(()=>{throw t},0))}catch{}}const u=S,A=C,k=/^([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}]([A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}.]*[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u{02ff}\u{0370}-\u{037d}\u{037f}-\u{1fff}\u{200c}-\u{200d}\u{2070}-\u{218f}\u{2c00}-\u{2fef}\u{3001}-\u{d7ff}\u{f900}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{effff}_\-0-9\xb7\u{0300}-\u{036f}\u{203f}-\u{2040}])?)?$/u,p=1,w=2,E=4;class h extends A{constructor(e={}){super(e);let{prefixes:t={},lists:i=null,debug:r=!1,style:s=null}=e;if(Object.assign(this,{_b_debug:r,_s_indent:" ",_b_simplify_default_graph:!1,_xc_directives:0,_s_token_prefix:"@prefix"}),s){s.indent&&(this._s_indent=s.indent.replace(/[^\s]/g,""));let f=s.directives||s.directives;if(f)switch(f){case"sparql":{this._xc_directives=p,this._s_token_prefix="prefix";break}case"Sparql":{this._xc_directives=p|w,this._s_token_prefix="Prefix";break}case"SPARQL":{this._xc_directives=p|E,this._s_token_prefix="PREFIX";break}case"turtle":break;case"Turtle":{this._xc_directives=w,this._s_token_prefix="@Prefix";break}case"TURTLE":{this._xc_directives=E,this._s_token_prefix="@PREFIX";break}default:throw new Error(`Value not understood for 'directives' option: ${f}`)}}i&&(this._serialize_list_object=function(f,a){let d=this._transcode_list(f);return this._encode_objects(d,a)});let _=this._s_token_prefix,n=this._xc_directives&p?` `:` . `,o="";try{for(let f in t){if(!k.test(f))throw new Error(`Invlalid prefix id for text/turtle RDF serialization format: '${f}'`);o+=`${_} ${f}: ${u.namedNode(t[f]).verbose()}${n}`}}catch(f){queueMicrotask(()=>{this.emit("error",f)})}o&&this.push(o)}_serialize_prefixes(e){let t=this._xc_state===2?` diff --git a/assets/main-BEQE4T9J.js b/assets/main-y9VuuvvT.js similarity index 98% rename from assets/main-BEQE4T9J.js rename to assets/main-y9VuuvvT.js index 65e3c29..65a9584 100644 --- a/assets/main-BEQE4T9J.js +++ b/assets/main-y9VuuvvT.js @@ -1,2 +1,2 @@ -import{b as d,p as f,r as b}from"./main-CO-45Vwa.js";const u=b;class c extends u.Readable{constructor(e={}){if(super(e),e.iterator)throw new Error("readable stream iterator shortcut not yet implemented")}until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}}class m extends u.Writable{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}import(e){return e.on("data",s=>this.write(s)).on("end",()=>this.end()).on("error",s=>this.emit("error",s)),this}}class w extends u.Duplex{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}}class h extends u.Transform{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}import(e){return e.on("data",s=>this.write(s)).on("end",()=>this.end()).on("error",s=>this.emit("error",s)),this}demolish(e){if(this.push=s=>{if(s!==null)throw new Error("[ERR_STREAM_DESTROYED]: Cannot push after stream was destroyed")},this.emit=function(s,...i){s!=="end"&&Object.getPrototypeOf(this).emit.apply(this,[s,...i])},e)return u.Transform.prototype.destroy.call(this,e)}}const _=new Function("try {return this===global;}catch(e){return false;}")(),[P,g]=typeof f>"u"?[!0,!1]:f.browser?[!0,!0]:f.versions==="undefined"||f.versions.node==="undefined"?[!0,!1]:[!1,!1];(g||_&&+/^v(\d+)/.exec(f.version)[1]<10)&&(h.prototype.destroy=w.prototype.destroy=function(l,e){this._readableState.destroyed=!0,this._writableState.destroyed=!0;let s=()=>{this._writableState.emitClose&&this._readableState.emitClose&&this.emit("close")};return this._destroy(l||null,i=>{!e&&i?(f.nextTick(()=>{this.emit("error",i),s()}),this._writableState.errorEmitted=!0):(f.nextTick(s),e&&e(i))}),this},h.prototype._destroy=w.prototype._destroy=(l,e)=>e(l));class p extends h{constructor(e={}){super({...e,writableObjectMode:!0,readableObjectMode:!0}),this._as_inputs=new Set,this.on("pipe",s=>{this._as_inputs.add(s),s.on("prefix",(...i)=>{this.emit("prefix",...i)}).on("comment",(...i)=>{this.emit("comment",...i)})}),this.on("unpipe",s=>{this._as_inputs.delete(s)})}_destroy(){for(let e of this._as_inputs)e.destroy()}}class S extends p{_transform(e,s,i){i(null,JSON.stringify(e.isolate())+` +import{b as d,p as f,r as b}from"./main-DsJMMZjG.js";const u=b;class c extends u.Readable{constructor(e={}){if(super(e),e.iterator)throw new Error("readable stream iterator shortcut not yet implemented")}until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}}class m extends u.Writable{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}import(e){return e.on("data",s=>this.write(s)).on("end",()=>this.end()).on("error",s=>this.emit("error",s)),this}}class w extends u.Duplex{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}}class h extends u.Transform{until(e,s){return new Promise((i,n)=>{this.on("error",t=>{n(t)}),s?this.once(e,(...t)=>{i(this,...t)}):this.once(e,i)})}bucket(e="utf8"){if(this._readableState.objectMode)return new Promise((i,n)=>{let t=[];this.pipe(new u.Writable({write(r,o,a){t.push(r),a()},writev(r,o){t.push(...r),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="utf8"||e==="utf-8")return new Promise((i,n)=>{let t="";this.setEncoding(e),this.pipe(new u.Writable({decodeStrings:!1,write(r,o,a){t+=r,a()},writev(r,o){t+=r.join(""),o()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})});if(e==="buffer")return new Promise((i,n)=>{let t=d.Buffer.from([]);this.pipe(new u.Writable({decodeStrings:!0,write(r,o,a){t=d.Buffer.concat([t,r],t.length+r.length),a()}})).on("error",r=>{n(r)}).on("finish",()=>{i(t)})})}import(e){return e.on("data",s=>this.write(s)).on("end",()=>this.end()).on("error",s=>this.emit("error",s)),this}demolish(e){if(this.push=s=>{if(s!==null)throw new Error("[ERR_STREAM_DESTROYED]: Cannot push after stream was destroyed")},this.emit=function(s,...i){s!=="end"&&Object.getPrototypeOf(this).emit.apply(this,[s,...i])},e)return u.Transform.prototype.destroy.call(this,e)}}const _=new Function("try {return this===global;}catch(e){return false;}")(),[P,g]=typeof f>"u"?[!0,!1]:f.browser?[!0,!0]:f.versions==="undefined"||f.versions.node==="undefined"?[!0,!1]:[!1,!1];(g||_&&+/^v(\d+)/.exec(f.version)[1]<10)&&(h.prototype.destroy=w.prototype.destroy=function(l,e){this._readableState.destroyed=!0,this._writableState.destroyed=!0;let s=()=>{this._writableState.emitClose&&this._readableState.emitClose&&this.emit("close")};return this._destroy(l||null,i=>{!e&&i?(f.nextTick(()=>{this.emit("error",i),s()}),this._writableState.errorEmitted=!0):(f.nextTick(s),e&&e(i))}),this},h.prototype._destroy=w.prototype._destroy=(l,e)=>e(l));class p extends h{constructor(e={}){super({...e,writableObjectMode:!0,readableObjectMode:!0}),this._as_inputs=new Set,this.on("pipe",s=>{this._as_inputs.add(s),s.on("prefix",(...i)=>{this.emit("prefix",...i)}).on("comment",(...i)=>{this.emit("comment",...i)})}),this.on("unpipe",s=>{this._as_inputs.delete(s)})}_destroy(){for(let e of this._as_inputs)e.destroy()}}class S extends p{_transform(e,s,i){i(null,JSON.stringify(e.isolate())+` `)}}class y extends p{_transform(e,s,i){i(null,{type:"quad",value:e})}}h.QuadsToOther=p;var W={...u,Readable:c,Writable:m,Duplex:w,Transform:h,QuadsToOther:p,quads_to_json(){return new S},quads_to_writable(){return new y},source(l,e=null){return!e&&typeof l=="string"&&(e="utf8"),new c({objectMode:!e&&typeof l!="string"&&!d.Buffer.isBuffer(l),read(){this.push(l,e),this.push(null)}})}};export{W as m}; diff --git a/assets/readable-BmS1kvD9.js b/assets/readable-BmS1kvD9.js deleted file mode 100644 index 535e6c1..0000000 --- a/assets/readable-BmS1kvD9.js +++ /dev/null @@ -1 +0,0 @@ -const n=new Set(["_write","_writableState","writable"]);function u(a){return new Proxy(a,{has(r,e){return n.has(e)?!1:Reflect.has(...arguments)},get(r,e){if(n.has(e))return;const t=Reflect.get(...arguments);return t&&typeof t.bind=="function"?t.bind(r):t},set(r,e,t){if(!n.has(e))return Reflect.set(...arguments)}})}export{u as r}; diff --git a/assets/stream-DR3nFz_Q.js b/assets/stream-DnaGyEVM.js similarity index 83% rename from assets/stream-DR3nFz_Q.js rename to assets/stream-DnaGyEVM.js index 831d1d2..e318c62 100644 --- a/assets/stream-DR3nFz_Q.js +++ b/assets/stream-DnaGyEVM.js @@ -1 +1 @@ -import{p as a,b as n,g as o,r}from"./main-CO-45Vwa.js";var i=u;const c=r;class d extends c.Readable{constructor(t,s){super(),this._str=t,this._encoding=s||"utf8"}_read(){this.ended||(a.nextTick(()=>{this.push(n.Buffer.from(this._str,this._encoding)),this.push(null)}),this.ended=!0)}}function u(e,t){return new d(e,t)}const f=o(i),m=f,p=r.Readable;export{p as Readable,m as toStream}; +import{p as a,b as n,g as o,r}from"./main-DsJMMZjG.js";var i=u;const c=r;class d extends c.Readable{constructor(t,s){super(),this._str=t,this._encoding=s||"utf8"}_read(){this.ended||(a.nextTick(()=>{this.push(n.Buffer.from(this._str,this._encoding)),this.push(null)}),this.ended=!0)}}function u(e,t){return new d(e,t)}const f=o(i),m=f,p=r.Readable;export{p as Readable,m as toStream}; diff --git a/index.html b/index.html index 49a4156..411e12a 100644 --- a/index.html +++ b/index.html @@ -10,8 +10,8 @@ Zazuko RDF Sketch - - + + diff --git a/service-worker.js b/service-worker.js index f8541bf..96302e8 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1 +1 @@ -if(!self.define){let s,e={};const i=(i,n)=>(i=new URL(i+".js",n).href,e[i]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=i,s.onload=e,document.head.appendChild(s)}else s=i,importScripts(i),e()})).then((()=>{let s=e[i];if(!s)throw new Error(`Module ${i} didn’t register its module`);return s})));self.define=(n,r)=>{const l=s||("document"in self?document.currentScript.src:"")||location.href;if(e[l])return;let a={};const o=s=>i(s,l),u={module:{uri:l},exports:a,require:o};e[l]=Promise.all(n.map((s=>u[s]||o(s)))).then((s=>(r(...s),a)))}}define(["./workbox-5ffe50d4"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"apple-touch-icon.png",revision:"45a9d073e13dc6da956715f9e81ed6fc"},{url:"assets/canonicalize-Bd8h0v92.js",revision:null},{url:"assets/CustomJsonLdSerializer-DTZy0vPJ.js",revision:null},{url:"assets/CustomRdfXmlParser-BnFBQjMk.js",revision:null},{url:"assets/index-BMw9Z_By.js",revision:null},{url:"assets/index-BOvYCoiN.js",revision:null},{url:"assets/index-CpxM9Dlb.js",revision:null},{url:"assets/index-d5GvA7NS.js",revision:null},{url:"assets/index-jd32SyoQ.js",revision:null},{url:"assets/index-keipGPtm.js",revision:null},{url:"assets/index-wrpfIQEt.js",revision:null},{url:"assets/main-B94FsnA1.js",revision:null},{url:"assets/main-BEQE4T9J.js",revision:null},{url:"assets/main-BIUkwmxE.js",revision:null},{url:"assets/main-Cn_tAjBT.css",revision:null},{url:"assets/main-CO-45Vwa.js",revision:null},{url:"assets/main-DQofh_ad.js",revision:null},{url:"assets/main-DvYAR6pV.js",revision:null},{url:"assets/main-iH2f1yx-.js",revision:null},{url:"assets/main-Rstpr1kO.js",revision:null},{url:"assets/main-V12eunPc.js",revision:null},{url:"assets/N3StreamParser-Bkfk54FL.js",revision:null},{url:"assets/primeicons-C6QP2o4f.woff2",revision:null},{url:"assets/primeicons-Dr5RGzOO.svg",revision:null},{url:"assets/primeicons-WjwUDZjB.woff",revision:null},{url:"assets/readable-BmS1kvD9.js",revision:null},{url:"assets/stream-DR3nFz_Q.js",revision:null},{url:"favicon-96x96.png",revision:"275ecb711d5bfd9651ebfd68fac51322"},{url:"favicon.ico",revision:"873abf72f4f693cf67266d7caf42f2a6"},{url:"favicon.svg",revision:"f06571cc81d76ad5f8e281def81a4549"},{url:"img/icons/zazuko_icon.svg",revision:"049394536d76b8e49af24ecc352f1996"},{url:"index.html",revision:"aa065d042a6b13052bd252157cf7016c"},{url:"manifest.webmanifest",revision:"8a9fe5d65c729a2210be1dfc77392944"},{url:"registerSW.js",revision:"38013143dc2183340ede8bc1c5124507"},{url:"site.webmanifest",revision:"881827f24d54a9791bca578c6dbaba49"},{url:"web-app-manifest-192x192.png",revision:"5e22dba4727f0d17032d5dbbc20623db"},{url:"web-app-manifest-512x512.png",revision:"cfdf277a5514f2744218fb81ca27266c"},{url:"manifest.webmanifest",revision:"8a9fe5d65c729a2210be1dfc77392944"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))})); +if(!self.define){let s,e={};const i=(i,n)=>(i=new URL(i+".js",n).href,e[i]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=i,s.onload=e,document.head.appendChild(s)}else s=i,importScripts(i),e()})).then((()=>{let s=e[i];if(!s)throw new Error(`Module ${i} didn’t register its module`);return s})));self.define=(n,r)=>{const l=s||("document"in self?document.currentScript.src:"")||location.href;if(e[l])return;let o={};const a=s=>i(s,l),u={module:{uri:l},exports:o,require:a};e[l]=Promise.all(n.map((s=>u[s]||a(s)))).then((s=>(r(...s),o)))}}define(["./workbox-5ffe50d4"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"apple-touch-icon.png",revision:"45a9d073e13dc6da956715f9e81ed6fc"},{url:"assets/CustomJsonLdSerializer-DTOusYP8.js",revision:null},{url:"assets/CustomRdfXmlParser-CK1Us3uO.js",revision:null},{url:"assets/index-bEMZdyV6.js",revision:null},{url:"assets/index-CZ2V_JFV.js",revision:null},{url:"assets/main-_2tfKWhP.css",revision:null},{url:"assets/main-Bw33fkyv.js",revision:null},{url:"assets/main-CntB7osZ.js",revision:null},{url:"assets/main-CPJAraVa.js",revision:null},{url:"assets/main-Crg7QqIq.js",revision:null},{url:"assets/main-Dhp4ePPX.js",revision:null},{url:"assets/main-DimUcN7z.js",revision:null},{url:"assets/main-DsJMMZjG.js",revision:null},{url:"assets/main-gYTlQIEk.js",revision:null},{url:"assets/main-y9VuuvvT.js",revision:null},{url:"assets/primeicons-C6QP2o4f.woff2",revision:null},{url:"assets/primeicons-Dr5RGzOO.svg",revision:null},{url:"assets/primeicons-WjwUDZjB.woff",revision:null},{url:"assets/stream-DnaGyEVM.js",revision:null},{url:"favicon-96x96.png",revision:"275ecb711d5bfd9651ebfd68fac51322"},{url:"favicon.ico",revision:"873abf72f4f693cf67266d7caf42f2a6"},{url:"favicon.svg",revision:"f06571cc81d76ad5f8e281def81a4549"},{url:"img/icons/zazuko_icon.svg",revision:"049394536d76b8e49af24ecc352f1996"},{url:"index.html",revision:"dd475e934cf28f26ae109973bc244086"},{url:"manifest.webmanifest",revision:"8a9fe5d65c729a2210be1dfc77392944"},{url:"registerSW.js",revision:"38013143dc2183340ede8bc1c5124507"},{url:"site.webmanifest",revision:"881827f24d54a9791bca578c6dbaba49"},{url:"web-app-manifest-192x192.png",revision:"5e22dba4727f0d17032d5dbbc20623db"},{url:"web-app-manifest-512x512.png",revision:"cfdf277a5514f2744218fb81ca27266c"},{url:"manifest.webmanifest",revision:"8a9fe5d65c729a2210be1dfc77392944"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));