/* eslint-disable */ //prettier-ignore module.exports = { name: "@yarnpkg/plugin-cyclonedx", factory: function (require) { "use strict";var plugin=(()=>{var bN=Object.create;var ks=Object.defineProperty;var wN=Object.getOwnPropertyDescriptor;var SN=Object.getOwnPropertyNames;var EN=Object.getPrototypeOf,xN=Object.prototype.hasOwnProperty;var je=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var _=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),NN=(t,e)=>{for(var r in e)ks(t,r,{get:e[r],enumerable:!0})},_v=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of SN(e))!xN.call(t,i)&&i!==r&&ks(t,i,{get:()=>e[i],enumerable:!(n=wN(e,i))||n.enumerable});return t};var tr=(t,e,r)=>(r=t!=null?bN(EN(t)):{},_v(e||!t||!t.__esModule?ks(r,"default",{value:t,enumerable:!0}):r,t)),CN=t=>_v(ks({},"__esModule",{value:!0}),t);var ed=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var pr=(t,e,r)=>(ed(t,e,"read from private field"),r?r.call(t):e.get(t)),Oi=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},td=(t,e,r,n)=>(ed(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var tt=(t,e,r)=>(ed(t,e,"access private method"),r);var vv=_((bG,AN)=>{AN.exports={self:{name:"@cyclonedx/yarn-plugin-cyclonedx",version:"1.0.2+git.4f6eb7e",homepage:"https://github.com/CycloneDX/cyclonedx-node-yarn#readme",repository:{type:"git",url:"git+https://github.com/CycloneDX/cyclonedx-node-yarn.git"},bugs:{url:"https://github.com/CycloneDX/cyclonedx-node-yarn/issues"}},cdxLib:{name:"@cyclonedx/cyclonedx-library",version:"6.11.0",homepage:"https://github.com/CycloneDX/cyclonedx-javascript-library#readme"}}});var yv=_(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.splitNameGroup=ON;function ON(t){let e=t[0]==="@"?t.indexOf("/",2):0;return e>0?[t.slice(e+1),t.slice(0,e)]:[t,void 0]}});var Bs=_(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.ComponentType=void 0;var gv;(function(t){t.Application="application",t.Framework="framework",t.Library="library",t.Container="container",t.Platform="platform",t.OperatingSystem="operating-system",t.Device="device",t.DeviceDriver="device-driver",t.Firmware="firmware",t.File="file",t.MachineLearningModel="machine-learning-model",t.Data="data",t.CryptographicAsset="cryptographic-asset"})(gv||(qs.ComponentType=gv={}))});var Ot=_(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.SortableNumbers=rt.SortableStringables=rt.SortableComparables=rt.SortableSet=rt.compareObjectsSymbol=void 0;rt.compareObjectsSymbol=Symbol("internal compare function");var Li=class extends Set{sorted(){return Array.from(this).sort(this[rt.compareObjectsSymbol])}compare(e){let r=e.sorted(),n=this.sorted();if(n.length!==r.length)return n.length-r.length;for(let i=n.length-1;i>=0;--i){let o=this[rt.compareObjectsSymbol](n[i],r[i]);if(o!==0)return o}return 0}};rt.SortableSet=Li;var nd=class extends Li{[rt.compareObjectsSymbol](e,r){return e.constructor===r.constructor?e.compare(r):e.constructor.name.localeCompare(r.constructor.name)}};rt.SortableComparables=nd;var id=class extends Li{[rt.compareObjectsSymbol](e,r){return e.toString().localeCompare(r.toString())}};rt.SortableStringables=id;var od=class extends Li{[rt.compareObjectsSymbol](e,r){return e-r}};rt.SortableNumbers=od});var Ho=_(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.treeIteratorSymbol=void 0;js.treeIteratorSymbol=Symbol("iterator of a tree/nesting-like structure")});var bv=_(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.isCPE=TN;var LN=/^([c][pP][eE]:\/[AHOaho]?(:[A-Za-z0-9\._\-~%]*){0,6})$|^(cpe:2\.3:[aho\*\-](:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,\/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[\*\-]))(:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,\/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){4})$/;function TN(t){return typeof t=="string"&&LN.test(t)}});var Gs=_(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.BomRefRepository=Ti.BomRef=void 0;var sd=class{constructor(e){this.value=e}compare(e){return this.toString().localeCompare(e.toString())}toString(){return this.value??""}};Ti.BomRef=sd;var ld=class extends Set{};Ti.BomRefRepository=ld});var Wo=_(Pi=>{"use strict";var PN=Pi&&Pi.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ud,wv;Object.defineProperty(Pi,"__esModule",{value:!0});Pi.HashDictionary=void 0;var Us=class extends Map{sorted(){return Array.from(this.entries()).sort(PN(ud,ud,"m",wv))}};Pi.HashDictionary=Us;ud=Us,wv=function([e,r],[n,i]){return e.localeCompare(n)||r.localeCompare(i)}});var Ii=_(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.ExternalReferenceRepository=Di.ExternalReference=void 0;var DN=Ot(),IN=Wo(),cd=class{constructor(e,r,n={}){this.url=e,this.type=r,this.hashes=n.hashes??new IN.HashDictionary,this.comment=n.comment}compare(e){return this.type.localeCompare(e.type)||this.url.toString().localeCompare(e.url.toString())}};Di.ExternalReference=cd;var fd=class extends DN.SortableComparables{};Di.ExternalReferenceRepository=fd});var an=_(Lt=>{"use strict";var on=Lt&&Lt.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},_d=Lt&&Lt.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Fi,Hs,Mi,dd,Sv;Object.defineProperty(Lt,"__esModule",{value:!0});Lt.LicenseRepository=Lt.SpdxLicense=Lt.NamedLicense=Lt.LicenseExpression=void 0;var pd=class{constructor(e){Fi.set(this,void 0),this.expression=e}get expression(){return on(this,Fi,"f")}set expression(e){if(e==="")throw new RangeError("value is empty string");_d(this,Fi,e,"f")}compare(e){return on(this,Fi,"f").localeCompare(on(e,Fi,"f"))}};Lt.LicenseExpression=pd;Fi=new WeakMap;var Ws=class{constructor(e={}){Hs.set(this,void 0),this.acknowledgement=e.acknowledgement,this.text=e.text,this.url=e.url}get url(){return on(this,Hs,"f")}set url(e){_d(this,Hs,e===""?void 0:e,"f")}};Hs=new WeakMap;var hd=class extends Ws{constructor(e,r={}){super(r),this.name=e}compare(e){return this.name.localeCompare(e.name)}};Lt.NamedLicense=hd;var md=class extends Ws{constructor(e,r={}){super(r),Mi.set(this,void 0),this.id=e}get id(){return on(this,Mi,"f")}set id(e){if(e==="")throw new RangeError("value is empty string");_d(this,Mi,e,"f")}compare(e){return on(this,Mi,"f").localeCompare(on(e,Mi,"f"))}};Lt.SpdxLicense=md;Mi=new WeakMap;var $s=class extends Set{sorted(){return Array.from(this).sort(on(dd,dd,"m",Sv))}};Lt.LicenseRepository=$s;dd=$s,Sv=function(e,r){return e.constructor===r.constructor?e.compare(r):e.constructor.name.localeCompare(r.constructor.name)}});var $o=_(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.PropertyRepository=Ri.Property=void 0;var FN=Ot(),vd=class{constructor(e,r){this.name=e,this.value=r}compare(e){return this.name.localeCompare(e.name)||this.value.localeCompare(e.value)}};Ri.Property=vd;var yd=class extends FN.SortableComparables{};Ri.PropertyRepository=yd});var Ys=_(Ht=>{"use strict";var Ev=Ht&&Ht.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},ki=Ht&&Ht.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Vs,sn;Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ComponentEvidence=Ht.ComponentRepository=Ht.Component=void 0;var Cv=Ot(),xv=Ho(),MN=bv(),Nv=Gs(),RN=Ii(),kN=Wo(),Av=an(),zN=$o(),gd=class{constructor(e,r,n={}){Vs.set(this,void 0),sn.set(this,void 0),Ev(this,Vs,new Nv.BomRef(n.bomRef),"f"),this.type=e,this.name=r,this.supplier=n.supplier,this.author=n.author,this.copyright=n.copyright,this.externalReferences=n.externalReferences??new RN.ExternalReferenceRepository,this.group=n.group,this.hashes=n.hashes??new kN.HashDictionary,this.licenses=n.licenses??new Av.LicenseRepository,this.publisher=n.publisher,this.purl=n.purl,this.scope=n.scope,this.swid=n.swid,this.version=n.version,this.description=n.description,this.dependencies=n.dependencies??new Nv.BomRefRepository,this.components=n.components??new Xs,this.cpe=n.cpe,this.properties=n.properties??new zN.PropertyRepository,this.evidence=n.evidence}get bomRef(){return ki(this,Vs,"f")}get cpe(){return ki(this,sn,"f")}set cpe(e){if(e!==void 0&&!(0,MN.isCPE)(e))throw new TypeError("Not CPE nor undefined");Ev(this,sn,e,"f")}compare(e){let r=this.bomRef.compare(e.bomRef);return r!==0?r:this.purl!==void 0&&e.purl!==void 0?this.purl.toString().localeCompare(e.purl.toString()):ki(this,sn,"f")!==void 0&&ki(e,sn,"f")!==void 0?ki(this,sn,"f").localeCompare(ki(e,sn,"f")):(this.group??"").localeCompare(e.group??"")||this.name.localeCompare(e.name)||(this.version??"").localeCompare(e.version??"")}};Ht.Component=gd;Vs=new WeakMap,sn=new WeakMap;var Xs=class extends Cv.SortableComparables{*[xv.treeIteratorSymbol](){for(let e of this)yield e,yield*e.components[xv.treeIteratorSymbol]()}};Ht.ComponentRepository=Xs;var bd=class{constructor(e={}){this.licenses=e.licenses??new Av.LicenseRepository,this.copyright=e.copyright??new Cv.SortableStringables}};Ht.ComponentEvidence=bd});var Vo=_(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.ToolRepository=zi.Tool=void 0;var qN=Ot(),BN=Ii(),jN=Wo(),wd=class{constructor(e={}){this.vendor=e.vendor,this.name=e.name,this.version=e.version,this.hashes=e.hashes??new jN.HashDictionary,this.externalReferences=e.externalReferences??new BN.ExternalReferenceRepository}compare(e){return(this.vendor??"").localeCompare(e.vendor??"")||(this.name??"").localeCompare(e.name??"")||(this.version??"").localeCompare(e.version??"")}};zi.Tool=wd;var Sd=class extends qN.SortableComparables{};zi.ToolRepository=Sd});var Tv=_(hr=>{"use strict";var Ed=hr&&hr.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Vn=hr&&hr.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Xo,Yo,qi;Object.defineProperty(hr,"__esModule",{value:!0});hr.ComponentBuilder=hr.ToolBuilder=void 0;var Ov=yv(),GN=Bs(),UN=Ys(),Lv=Ii(),HN=an(),WN=Vo(),xd=class{constructor(e){Xo.set(this,void 0),Ed(this,Xo,e,"f")}get extRefFactory(){return Vn(this,Xo,"f")}makeTool(e){let[r,n]=typeof e.name=="string"?(0,Ov.splitNameGroup)(e.name):[];return new WN.Tool({vendor:n,name:r,version:typeof e.version=="string"?e.version:void 0,externalReferences:new Lv.ExternalReferenceRepository(Vn(this,Xo,"f").makeExternalReferences(e))})}};hr.ToolBuilder=xd;Xo=new WeakMap;var Nd=class{constructor(e,r){Yo.set(this,void 0),qi.set(this,void 0),Ed(this,Yo,e,"f"),Ed(this,qi,r,"f")}get extRefFactory(){return Vn(this,Yo,"f")}get licenseFactory(){return Vn(this,qi,"f")}makeComponent(e,r=GN.ComponentType.Library){if(typeof e.name!="string")return;let[n,i]=(0,Ov.splitNameGroup)(e.name);if(n.length<=0)return;let o=typeof e.author=="string"?e.author:typeof e.author?.name=="string"?e.author.name:void 0,a=typeof e.description=="string"?e.description:void 0,s=typeof e.version=="string"?e.version:void 0,l=Vn(this,Yo,"f").makeExternalReferences(e),u=new HN.LicenseRepository;if(typeof e.license=="string"&&u.add(Vn(this,qi,"f").makeFromString(e.license)),Array.isArray(e.licenses)){for(let c of e.licenses)if(typeof c?.type=="string"){let f=Vn(this,qi,"f").makeDisjunctive(c.type);f.url=typeof c.url=="string"?c.url:void 0,u.add(f)}}return new UN.Component(r,n,{author:o,description:a,externalReferences:new Lv.ExternalReferenceRepository(l),group:i,licenses:u,version:s})}};hr.ComponentBuilder=Nd;Yo=new WeakMap,qi=new WeakMap});var Pv=_(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.FromNodePackageJson=void 0;Js.FromNodePackageJson=Tv()});var Iv=_(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.AttachmentEncoding=void 0;var Dv;(function(t){t.Base64="base64"})(Dv||(Ks.AttachmentEncoding=Dv={}))});var Mv=_(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.ComponentScope=void 0;var Fv;(function(t){t.Required="required",t.Optional="optional",t.Excluded="excluded"})(Fv||(Qs.ComponentScope=Fv={}))});var Jo=_(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.ExternalReferenceType=void 0;var Rv;(function(t){t.VCS="vcs",t.IssueTracker="issue-tracker",t.Website="website",t.Advisories="advisories",t.BOM="bom",t.MailingList="mailing-list",t.Social="social",t.Chat="chat",t.Documentation="documentation",t.Support="support",t.SourceDistribution="source-distribution",t.Distribution="distribution",t.DistributionIntake="distribution-intake",t.License="license",t.BuildMeta="build-meta",t.BuildSystem="build-system",t.ReleaseNotes="release-notes",t.SecurityContact="security-contact",t.ModelCard="model-card",t.Log="log",t.Configuration="configuration",t.Evidence="evidence",t.Formulation="formulation",t.Attestation="attestation",t.ThreatModel="threat-model",t.AdversaryModel="adversary-model",t.RiskAssessment="risk-assessment",t.VulnerabilityAssertion="vulnerability-assertion",t.ExploitabilityStatement="exploitability-statement",t.PentestReport="pentest-report",t.StaticAnalysisReport="static-analysis-report",t.DynamicAnalysisReport="dynamic-analysis-report",t.RuntimeAnalysisReport="runtime-analysis-report",t.ComponentAnalysisReport="component-analysis-report",t.MaturityReport="maturity-report",t.CertificationReport="certification-report",t.CodifiedInfrastructure="codified-infrastructure",t.QualityMetrics="quality-metrics",t.POAM="poam",t.ElectronicSignature="electronic-signature",t.DigitalSignature="digital-signature",t.RFC9116="rfc-9116",t.Other="other"})(Rv||(Zs.ExternalReferenceType=Rv={}))});var Cd=_(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.HashAlgorithm=void 0;var kv;(function(t){t.MD5="MD5",t["SHA-1"]="SHA-1",t["SHA-256"]="SHA-256",t["SHA-384"]="SHA-384",t["SHA-512"]="SHA-512",t["SHA3-256"]="SHA3-256",t["SHA3-384"]="SHA3-384",t["SHA3-512"]="SHA3-512",t["BLAKE2b-256"]="BLAKE2b-256",t["BLAKE2b-384"]="BLAKE2b-384",t["BLAKE2b-512"]="BLAKE2b-512",t.BLAKE3="BLAKE3"})(kv||(el.HashAlgorithm=kv={}))});var qv=_(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.LicenseAcknowledgement=void 0;var zv;(function(t){t.Declared="declared",t.Concluded="concluded"})(zv||(tl.LicenseAcknowledgement=zv={}))});var jv=_(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.LifecyclePhase=void 0;var Bv;(function(t){t.Design="design",t.PreBuild="pre-build",t.Build="build",t.PostBuild="post-build",t.Operations="operations",t.Discovery="discovery",t.Decommission="decommission"})(Bv||(rl.LifecyclePhase=Bv={}))});var Uv=_(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.AffectStatus=void 0;var Gv;(function(t){t.Affected="affected",t.Unaffected="unaffected",t.Unknown="unknown"})(Gv||(nl.AffectStatus=Gv={}))});var Wv=_(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.AnalysisJustification=void 0;var Hv;(function(t){t.CodeNotPresent="code_not_present",t.CodeNotReachable="code_not_reachable",t.RequiresConfiguration="requires_configuration",t.RequiresDependency="requires_dependency",t.RequiresEnvironment="requires_environment",t.ProtectedByCompiler="protected_by_compiler",t.ProtectedAtRuntime="protected_at_runtime",t.ProtectedAtPerimeter="protected_at_perimeter",t.ProtectedByMitigatingControl="protected_by_mitigating_control"})(Hv||(il.AnalysisJustification=Hv={}))});var Od=_(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.AnalysisResponseRepository=Bi.AnalysisResponse=void 0;var $N=Ot(),$v;(function(t){t.CanNotFix="can_not_fix",t.WillNotFix="will_not_fix",t.Update="update",t.Rollback="rollback",t.WorkaroundAvailable="workaround_available"})($v||(Bi.AnalysisResponse=$v={}));var Ad=class extends $N.SortableStringables{};Bi.AnalysisResponseRepository=Ad});var Xv=_(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.AnalysisState=void 0;var Vv;(function(t){t.Resolved="resolved",t.ResolvedWithPedigree="resolved_with_pedigree",t.Exploitable="exploitable",t.InTriage="in_triage",t.FalsePositive="false_positive",t.NotAffected="not_affected"})(Vv||(ol.AnalysisState=Vv={}))});var Ld=_(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.RatingMethod=void 0;var Yv;(function(t){t.CVSSv2="CVSSv2",t.CVSSv3="CVSSv3",t.CVSSv31="CVSSv31",t.CVSSv4="CVSSv4",t.OWASP="OWASP",t.SSVC="SSVC",t.Other="other"})(Yv||(al.RatingMethod=Yv={}))});var Kv=_(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.Severity=void 0;var Jv;(function(t){t.Critical="critical",t.High="high",t.Medium="medium",t.Low="low",t.Info="info",t.None="none",t.Unknown="unknown"})(Jv||(sl.Severity=Jv={}))});var Qv=_(Wt=>{"use strict";var VN=Wt&&Wt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ji=Wt&&Wt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&VN(e,t,r)};Object.defineProperty(Wt,"__esModule",{value:!0});ji(Uv(),Wt);ji(Wv(),Wt);ji(Od(),Wt);ji(Xv(),Wt);ji(Ld(),Wt);ji(Kv(),Wt)});var Td=_(wt=>{"use strict";var XN=wt&&wt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Xn=wt&&wt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&XN(e,t,r)};Object.defineProperty(wt,"__esModule",{value:!0});wt.Vulnerability=void 0;Xn(Iv(),wt);Xn(Mv(),wt);Xn(Bs(),wt);Xn(Jo(),wt);Xn(Cd(),wt);Xn(qv(),wt);Xn(jv(),wt);wt.Vulnerability=Qv()});var ll=_((JG,YN)=>{YN.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIT","MIT-0","MIT-CMU","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var Pd=_((KG,JN)=>{JN.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var Dd=_((QG,KN)=>{KN.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var ey=_((ZG,Zv)=>{"use strict";var QN=[].concat(ll()).concat(Pd()),ZN=Dd();Zv.exports=function(t){var e=0;function r(){return e1&&t[e-2]===" ")throw new Error("Space before `+`");return h&&{type:"OPERATOR",string:h.toUpperCase()}}function a(){return n(/[A-Za-z0-9-.]+/)}function s(){var h=a();if(!h)throw new Error("Expected idstring at offset "+e);return h}function l(){if(n("DocumentRef-")){var h=s();return{type:"DOCUMENTREF",string:h}}}function u(){if(n("LicenseRef-")){var h=s();return{type:"LICENSEREF",string:h}}}function c(){var h=e,m=a();if(QN.indexOf(m)!==-1)return{type:"LICENSE",string:m};if(ZN.indexOf(m)!==-1)return{type:"EXCEPTION",string:m};e=h}function f(){return o()||l()||u()||c()}for(var d=[];r()&&(i(),!!r());){var p=f();if(!p)throw new Error("Unexpected `"+t[e]+"` at offset "+e);d.push(p)}return d}});var ry=_((eU,ty)=>{"use strict";ty.exports=function(t){var e=0;function r(){return e{"use strict";var eC=ey(),tC=ry();ny.exports=function(t){return tC(eC(t))}});var oy=_((rU,rC)=>{rC.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://cyclonedx.org/schema/spdx.schema.json",$comment:"v1.0-3.24.0",type:"string",enum:["0BSD","3D-Slicer-1.0","AAL","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","Afmparse","AGPL-1.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0","AGPL-3.0-only","AGPL-3.0-or-later","Aladdin","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","any-OSI","Apache-1.0","Apache-1.1","Apache-2.0","APAFML","APL-1.0","App-s2p","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Arphic-1999","Artistic-1.0","Artistic-1.0-cl8","Artistic-1.0-Perl","Artistic-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Baekmuk","Bahyph","Barr","bcrypt-Solar-Designer","Beerware","Bitstream-Charter","Bitstream-Vera","BitTorrent-1.0","BitTorrent-1.1","blessing","BlueOak-1.0.0","Boehm-GC","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-first-lines","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-acpica","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-flex","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-beginning-file","BSD-Source-Code","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","bzip2-1.0.5","bzip2-1.0.6","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","Caldera","Caldera-no-preamble","Catharon","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","check-cvs","checkmk","ClArtistic","Clips","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","Community-Spec-1.0","Condor-1.1","copyleft-next-0.3.0","copyleft-next-0.3.1","Cornell-Lossless-JPEG","CPAL-1.0","CPL-1.0","CPOL-1.02","Cronyx","Crossword","CrystalStacker","CUA-OPL-1.0","Cube","curl","cve-tou","D-FSL-1.0","DEC-3-Clause","diffmark","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","Dotseqn","DRL-1.0","DRL-1.1","DSDP","dtoa","dvipdfm","ECL-1.0","ECL-2.0","eCos-2.0","EFL-1.0","EFL-2.0","eGenix","Elastic-2.0","Entessa","EPICS","EPL-1.0","EPL-2.0","ErlPL-1.1","etalab-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Eurosym","Fair","FBM","FDK-AAC","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Furuseth","fwlw","GCR-docs","GD","GFDL-1.1","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","Giftware","GL2PS","Glide","Glulxe","GLWTPL","gnuplot","GPL-1.0","GPL-1.0+","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0","GPL-2.0+","GPL-2.0-only","GPL-2.0-or-later","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-2.0-with-GCC-exception","GPL-3.0","GPL-3.0+","GPL-3.0-only","GPL-3.0-or-later","GPL-3.0-with-autoconf-exception","GPL-3.0-with-GCC-exception","Graphics-Gems","gSOAP-1.3b","gtkbook","Gutmann","HaskellReport","hdparm","Hippocratic-2.1","HP-1986","HP-1989","HPND","HPND-DEC","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-Markus-Kuhn","HPND-merchantability-variant","HPND-MIT-disclaimer","HPND-Pbmplus","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HPND-UC","HPND-UC-export-US","HTMLTIDY","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","ImageMagick","iMatix","Imlib2","Info-ZIP","Inner-Net-2.0","Intel","Intel-ACPI","Interbase-1.0","IPA","IPL-1.0","ISC","ISC-Veillard","Jam","JasPer-2.0","JPL-image","JPNIC","JSON","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","Latex2e","Latex2e-translated-notice","Leptonica","LGPL-2.0","LGPL-2.0+","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1","LGPL-2.1+","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0","LGPL-3.0+","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","Libpng","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Linux-OpenIB","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","lsof","Lucida-Bitmap-Fonts","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","magaz","mailprio","MakeIndex","Martin-Birgmeier","McPhee-slideshow","metamail","Minpack","MirOS","MIT","MIT-0","MIT-advertising","MIT-CMU","MIT-enna","MIT-feh","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-open-group","MIT-testregex","MIT-Wu","MITNFA","MMIXware","Motosoto","MPEG-SSG","mpi-permissive","mpich2","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","mplus","MS-LPL","MS-PL","MS-RL","MTLL","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","Naumen","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","Net-SNMP","NetCDF","Newsletr","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","Nokia","NOSL","Noweb","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Nunit","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODbL-1.0","ODC-By-1.0","OFFIS","OFL-1.0","OFL-1.0-no-RFN","OFL-1.0-RFN","OFL-1.1","OFL-1.1-no-RFN","OFL-1.1-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","PADL","Parity-6.0.0","Parity-7.0.0","PDDL-1.0","PHP-3.0","PHP-3.01","Pixar","pkgconf","Plexus","pnmstitch","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","PPL","PSF-2.0","psfrag","psutils","Python-2.0","Python-2.0.1","python-ldap","Qhull","QPL-1.0","QPL-1.0-INRIA-2004","radvd","Rdisc","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Ruby","SAX-PD","SAX-PD-2.0","Saxpath","SCEA","SchemeReport","Sendmail","Sendmail-8.23","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SimPL-2.0","SISSL","SISSL-1.2","SL","Sleepycat","SMLNJ","SMPPL","SNIA","snprintf","softSurfer","Soundex","Spencer-86","Spencer-94","Spencer-99","SPL-1.0","ssh-keyscan","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","StandardML-NJ","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","SWL","swrule","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TermReadKey","TGPPL-1.0","threeparttable","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","UCAR","UCL-1.0","ulem","UMich-Merit","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","UPL-1.0","URT-RLE","Vim","VOSTROM","VSL-1.0","W3C","W3C-19980720","W3C-20150513","w3m","Watcom-1.0","Widget-Workshop","Wsuipa","WTFPL","wxWindows","X11","X11-distribute-modifications-variant","Xdebug-1.03","Xerox","Xfig","XFree86-1.1","xinetd","xkeyboard-config-Zinoviev","xlock","Xnet","xpp","XSkat","xzoom","YPL-1.0","YPL-1.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","zlib-acknowledgement","ZPL-1.1","ZPL-2.0","ZPL-2.1","389-exception","Asterisk-exception","Asterisk-linking-protocols-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PCRE2-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","RRDtool-FLOSS-exception-2.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]}});var ul=_(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.isSupportedSpdxId=aC;Ko.fixupSpdxId=sC;Ko.isValidSpdxLicenseExpression=lC;var nC=iy(),ay=oy(),iC=new Set(ay.enum),oC=Object.freeze(Object.fromEntries(ay.enum.map(t=>[t.toLowerCase(),t])));function aC(t){return iC.has(t)}function sC(t){return typeof t=="string"&&t.length>0?oC[t.toLowerCase()]:void 0}function lC(t){if(typeof t!="string")return!1;try{nC(t)}catch{return!1}return!0}});var ly=_(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.LicenseFactory=void 0;var Id=an(),sy=ul(),Fd=class{makeFromString(e){try{return this.makeSpdxLicense(e)}catch{}try{return this.makeExpression(e)}catch{}return this.makeNamedLicense(e)}makeExpression(e){let r=String(e);if((0,sy.isValidSpdxLicenseExpression)(r))return new Id.LicenseExpression(r);throw new RangeError("Invalid SPDX license expression")}makeDisjunctive(e){try{return this.makeSpdxLicense(e)}catch{return this.makeNamedLicense(e)}}makeSpdxLicense(e){let r=(0,sy.fixupSpdxId)(String(e));if(r===void 0)throw new RangeError("Unsupported SPDX license ID");return new Id.SpdxLicense(r)}makeNamedLicense(e){return new Id.NamedLicense(String(e))}};cl.LicenseFactory=Fd});var cy=_((oU,uy)=>{var uC=Object.freeze({RepositoryUrl:"repository_url",DownloadUrl:"download_url",VcsUrl:"vcs_url",FileName:"file_name",Checksum:"checksum"}),Qo=class{static get KnownQualifierNames(){return uC}constructor(e,r,n,i,o,a){let s={type:e,name:n};Object.keys(s).forEach(u=>{if(!s[u])throw new Error('Invalid purl: "'+u+'" is a required field.')});let l={type:e,namespace:r,name:n,versions:i,subpath:a};if(Object.keys(l).forEach(u=>{if(!(l[u]&&typeof l[u]=="string"||!l[u]))throw new Error('Invalid purl: "'+u+'" argument must be a string.')}),o){if(typeof o!="object")throw new Error('Invalid purl: "qualifiers" argument must be a dictionary.');Object.keys(o).forEach(u=>{if(!/^[a-z]+$/i.test(u)&&!/[\.-_]/.test(u))throw new Error('Invalid purl: qualifier "'+u+'" contains an illegal character.')})}this.type=e,this.name=n,this.namespace=r,this.version=i,this.qualifiers=o,this.subpath=a}_handlePyPi(){this.name=this.name.toLowerCase().replace(/_/g,"-")}_handlePub(){if(this.name=this.name.toLowerCase(),!/^[a-z0-9_]+$/i.test(this.name))throw new Error("Invalid purl: contains an illegal character.")}toString(){var e=["pkg:",encodeURIComponent(this.type),"/"];if(this.type==="pypi"&&this._handlePyPi(),this.type==="pub"&&this._handlePub(),this.namespace&&(e.push(encodeURIComponent(this.namespace).replace(/%3A/g,":").replace(/%2F/g,"/")),e.push("/")),e.push(encodeURIComponent(this.name).replace(/%3A/g,":")),this.version&&(e.push("@"),e.push(encodeURIComponent(this.version).replace(/%3A/g,":").replace(/%2B/g,"+"))),this.qualifiers){e.push("?");let r=this.qualifiers,n=[];Object.keys(r).sort().forEach(i=>{n.push(encodeURIComponent(i).replace(/%3A/g,":")+"="+encodeURIComponent(r[i]).replace(/%2F/g,"/"))}),e.push(n.join("&"))}return this.subpath&&(e.push("#"),e.push(encodeURIComponent(this.subpath).replace(/%3A/g,":").replace(/%2F/g,"/"))),e.join("")}static fromString(e){if(!e||typeof e!="string"||!e.trim())throw new Error("A purl string argument is required.");let r=e.slice(0,e.indexOf(":")),n=e.slice(e.indexOf(":")+1);if(r!=="pkg")throw new Error('purl is missing the required "pkg" scheme component.');n=n.trim().replace(/^\/+/g,"");let i;if([i,n]=n.split("/",2),!i||!n)throw new Error('purl is missing the required "type" component.');i=decodeURIComponent(i);let o=new URL(e),a=null;o.searchParams.forEach((p,h)=>{a||(a={}),a[h]=p});let s=o.hash;if(s.indexOf("#")===0&&(s=s.substring(1)),s=s.length===0?null:decodeURIComponent(s),o.username!==""||o.password!=="")throw new Error('Invalid purl: cannot contain a "user:pass@host:port"');let l=o.pathname.trim().replace(/^\/+/g,""),u=null;if(l.includes("@")){let p=l.indexOf("@"),h=l.substring(p+1);u=decodeURIComponent(h);let m=encodeURIComponent(u).replace(/%3A/g,":").replace(/%2B/g,"+");if(h!==m)throw new Error("Invalid purl: version must be percent-encoded");n=l.substring(0,p)}else n=l;let c=n.split("/").slice(1),f=null,d=null;if(c.length>1){let p=c.length-1,h=c.slice(0,p);f=decodeURIComponent(c[p]),d=decodeURIComponent(h.join("/"))}else c.length===1&&(f=decodeURIComponent(c[0]));if(f==="")throw new Error('purl is missing the required "name" component.');return new Qo(i,d,f,u,a,s)}};uy.exports=Qo});var dy=_((aU,fy)=>{var cC=cy();fy.exports={PackageURL:cC}});var Md=_(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.PackageUrlQualifierNames=void 0;var py;(function(t){t.DownloadURL="download_url",t.VcsUrl="vcs_url",t.Checksum="checksum"})(py||(fl.PackageUrlQualifierNames=py={}))});var zd=_(ln=>{"use strict";var fC=ln&&ln.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},hy=ln&&ln.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Zo;Object.defineProperty(ln,"__esModule",{value:!0});ln.PackageUrlFactory=void 0;var dC=dy(),Rd=Md(),my=Jo(),kd=class{constructor(e){Zo.set(this,void 0),fC(this,Zo,e,"f")}get type(){return hy(this,Zo,"f")}makeFromComponent(e,r=!1){let n={},i,o=r?e.externalReferences.sorted():e.externalReferences;for(let s of o){let l=s.url.toString();if(!(l.length<=0))switch(s.type){case my.ExternalReferenceType.VCS:[n[Rd.PackageUrlQualifierNames.VcsUrl],i]=l.split("#",2);break;case my.ExternalReferenceType.Distribution:n[Rd.PackageUrlQualifierNames.DownloadURL]=l;break}}let a=e.hashes;a.size>0&&(n[Rd.PackageUrlQualifierNames.Checksum]=Array.from(r?a.sorted():a,([s,l])=>`${s.toLowerCase()}:${l.toLowerCase()}`).join(","));try{return new dC.PackageURL(hy(this,Zo,"f"),e.group,e.name,e.version,n,i)}catch{return}}};ln.PackageUrlFactory=kd;Zo=new WeakMap});var vy=_(un=>{"use strict";var pC=un&&un.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),_y=un&&un.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&pC(e,t,r)};Object.defineProperty(un,"__esModule",{value:!0});_y(ly(),un);_y(zd(),un)});var yy=_(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.tryCanonicalizeGitUrl=mC;var hC=/^(?[^@:]+)@(?[^:]+):(?.*)$/;function mC(t){if(t===void 0||t.length<=0)return;try{return new URL(t)}catch{}let e=hC.exec(t)?.groups;if(e!==void 0)try{let r=new URL(`git+ssh://${e.host}`);return r.username=e.user,r.pathname=e.path,r}catch{}return t}});var dl=_(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.isNotUndefined=_C;function _C(t){return t!==void 0}});var wy=_(cn=>{"use strict";var vC=cn&&cn.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Ud,by;Object.defineProperty(cn,"__esModule",{value:!0});cn.PackageUrlFactory=cn.ExternalReferenceFactory=void 0;var gy=yy(),yC=dl(),Gi=Md(),jd=Jo(),Gd=Ii(),gC=zd(),Hd=class{makeExternalReferences(e){let r=[];try{r.push(this.makeVcs(e))}catch{}try{r.push(this.makeHomepage(e))}catch{}try{r.push(this.makeIssueTracker(e))}catch{}return r.filter(yC.isNotUndefined)}makeVcs(e){let r=e.repository,n,i;return typeof r=="object"?(n=(0,gy.tryCanonicalizeGitUrl)(r.url),i='as detected from PackageJson property "repository.url"',typeof r.directory=="string"&&n instanceof URL&&(n.hash=r.directory.replace(/#/g,"%23"),i+=' and "repository.directory"')):(n=(0,gy.tryCanonicalizeGitUrl)(r),i='as detected from PackageJson property "repository"'),n===void 0?void 0:new Gd.ExternalReference(n.toString(),jd.ExternalReferenceType.VCS,{comment:i})}makeHomepage(e){let r=e.homepage;return typeof r=="string"&&r.length>0?new Gd.ExternalReference(r,jd.ExternalReferenceType.Website,{comment:'as detected from PackageJson property "homepage"'}):void 0}makeIssueTracker(e){let r=e.bugs,n,i;return typeof r=="object"?(n=r.url,i='as detected from PackageJson property "bugs.url"'):(n=r,i='as detected from PackageJson property "bugs"'),typeof n=="string"&&n.length>0?new Gd.ExternalReference(n,jd.ExternalReferenceType.IssueTracker,{comment:i}):void 0}};cn.ExternalReferenceFactory=Hd;var bC=/^https?:\/\/registry\.npmjs\.org(:?\/|$)/,Wd=class extends gC.PackageUrlFactory{constructor(){super(...arguments),Ud.add(this)}makeFromComponent(e,r=!1){let n=super.makeFromComponent(e,r);return n===void 0?void 0:vC(this,Ud,"m",by).call(this,n)}};cn.PackageUrlFactory=Wd;Ud=new WeakSet,by=function(e){let r=new Map(Object.entries(e.qualifiers??{})),n=r.get(Gi.PackageUrlQualifierNames.DownloadURL);return n!==void 0&&(r.delete(Gi.PackageUrlQualifierNames.VcsUrl),bC.test(n)&&r.delete(Gi.PackageUrlQualifierNames.DownloadURL)),!r.has(Gi.PackageUrlQualifierNames.DownloadURL)&&!r.has(Gi.PackageUrlQualifierNames.VcsUrl)&&r.delete(Gi.PackageUrlQualifierNames.Checksum),e.qualifiers=r.size>0?Object.fromEntries(r.entries()):void 0,e}});var Sy=_(Pr=>{"use strict";var wC=Pr&&Pr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),SC=Pr&&Pr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&wC(e,t,r)};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.FromNodePackageJson=void 0;SC(vy(),Pr);Pr.FromNodePackageJson=wy()});var Xd=_(fn=>{"use strict";var Ey=fn&&fn.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Hi=fn&&fn.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},$d,Ui,ea,xy;Object.defineProperty(fn,"__esModule",{value:!0});fn.BomRefDiscriminator=void 0;var Vd=class{constructor(e,r="BomRef"){$d.add(this),Ui.set(this,void 0),ea.set(this,void 0),Ey(this,Ui,Array.from(e,n=>[n,n.value]),"f"),Ey(this,ea,r,"f")}get prefix(){return Hi(this,ea,"f")}*[(Ui=new WeakMap,ea=new WeakMap,$d=new WeakSet,Symbol.iterator)](){for(let[e]of Hi(this,Ui,"f"))yield e}discriminate(){let e=new Set([""]);for(let[r]of Hi(this,Ui,"f")){let n=r.value;(n===void 0||e.has(n))&&(n=Hi(this,$d,"m",xy).call(this),r.value=n),e.add(n)}}reset(){for(let[e,r]of Hi(this,Ui,"f"))e.value=r}};fn.BomRefDiscriminator=Vd;xy=function(){return`${Hi(this,ea,"f")}${Math.random().toString(32).substring(1)}${Math.random().toString(32).substring(1)}`}});var hl=_(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.OptPlugError=void 0;var Yd=class extends Error{constructor(e,r){super(e),this.cause=r}};pl.OptPlugError=Yd});var Kd=_(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.MissingOptionalDependencyError=void 0;var EC=hl(),Jd=class extends EC.OptPlugError{};ml.MissingOptionalDependencyError=Jd});var Cy=_(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0})});var vl=_(Wi=>{"use strict";var Ly=Wi&&Wi.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},_l,Ay,Ty;Object.defineProperty(Wi,"__esModule",{value:!0});Wi.BaseSerializer=void 0;var Oy=Ho(),xC=Xd(),Qd=class{constructor(){_l.add(this)}serialize(e,r){return this._serialize(Ly(this,_l,"m",Ty).call(this,e,r),r)}};Wi.BaseSerializer=Qd;_l=new WeakSet,Ay=function*(e){if(e.metadata.component!==void 0){yield e.metadata.component.bomRef;for(let{bomRef:r}of e.metadata.component.components[Oy.treeIteratorSymbol]())yield r}for(let{bomRef:r}of e.components[Oy.treeIteratorSymbol]())yield r;for(let{bomRef:r}of e.vulnerabilities)yield r},Ty=function(e,r){let n=new xC.BomRefDiscriminator(Ly(this,_l,"m",Ay).call(this,e));n.discriminate();try{return this._normalize(e,r)}finally{n.reset()}}});var ep=_(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.escapeUri=CC;var NC=[[/ /g,"%20"],[/\[/g,"%5B"],[/]/g,"%5D"],[//g,"%3E"],[/\{/g,"%7B"],[/}/g,"%7D"]];function CC(t){if(t===void 0)return t;for(let[e,r]of NC)t=t.replace(e,r);return t}});var ta=_(dn=>{"use strict";var AC=dn&&dn.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},tp,Py;Object.defineProperty(dn,"__esModule",{value:!0});dn.LifecycleRepository=dn.NamedLifecycle=void 0;var yl=class{constructor(e,r={}){this.name=e,this.description=r.description}compare(e){return this.name.localeCompare(e.name)}};dn.NamedLifecycle=yl;var gl=class extends Set{sorted(){return Array.from(this).sort(AC(tp,tp,"m",Py))}};dn.LifecycleRepository=gl;tp=gl,Py=function(e,r){return e.constructor===r.constructor?e instanceof yl?e.compare(r):e.localeCompare(r):e.constructor.name.localeCompare(r.constructor.name)}});var ra=_($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.AffectedVersionRepository=$t.AffectedVersionRange=$t.AffectedSingleVersion=$t.AffectRepository=$t.Affect=void 0;var Dy=Ot(),rp=class{constructor(e,r={}){this.ref=e,this.versions=r.versions??new bl}compare(e){return this.ref.compare(e.ref)||this.versions.compare(e.versions)}};$t.Affect=rp;var np=class extends Dy.SortableComparables{};$t.AffectRepository=np;var ip=class{constructor(e,r={}){this.version=e,this.status=r.status}compare(e){return this.version.localeCompare(e.version)||(this.status??"").localeCompare(e.status??"")}};$t.AffectedSingleVersion=ip;var op=class{constructor(e,r={}){this.range=e,this.status=r.status}compare(e){return this.range.localeCompare(e.range)||(this.status??"").localeCompare(e.status??"")}};$t.AffectedVersionRange=op;var bl=class extends Dy.SortableComparables{};$t.AffectedVersionRepository=bl});var Yn=_($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.Format=$i.Version=void 0;var Iy;(function(t){t.v1dot6="1.6",t.v1dot5="1.5",t.v1dot4="1.4",t.v1dot3="1.3",t.v1dot2="1.2",t.v1dot1="1.1",t.v1dot0="1.0"})(Iy||($i.Version=Iy={}));var Fy;(function(t){t.XML="xml",t.JSON="json"})(Fy||($i.Format=Fy={}))});var ap=_(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.JsonSchema=void 0;var My;(function(t){function e(n){return typeof n=="string"&&n.length>0}t.isIriReference=e;function r(n){return typeof n=="string"&&n.length>0}t.isIdnEmail=r})(My||(wl.JsonSchema=My={}))});var Hy=_(k=>{"use strict";var OC=k&&k.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Vt=k&&k.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Sl,sp,zy,oa,lp,Jn,up,qy,cp,fp,By,El,jy,Gy;Object.defineProperty(k,"__esModule",{value:!0});k.VulnerabilityAnalysisNormalizer=k.VulnerabilityAffectedVersionNormalizer=k.VulnerabilityAffectNormalizer=k.VulnerabilityCreditsNormalizer=k.VulnerabilityAdvisoryNormalizer=k.VulnerabilityRatingNormalizer=k.VulnerabilityReferenceNormalizer=k.VulnerabilitySourceNormalizer=k.VulnerabilityNormalizer=k.DependencyGraphNormalizer=k.PropertyNormalizer=k.AttachmentNormalizer=k.ExternalReferenceNormalizer=k.SWIDNormalizer=k.LicenseNormalizer=k.ComponentEvidenceNormalizer=k.ComponentNormalizer=k.OrganizationalEntityNormalizer=k.OrganizationalContactNormalizer=k.HashNormalizer=k.ToolNormalizer=k.LifecycleNormalizer=k.MetadataNormalizer=k.BomNormalizer=k.Factory=void 0;var Yi=dl(),Ry=Ho(),Vi=ep(),na=an(),LC=ta(),ky=ra(),TC=ul(),ia=Yn(),Xi=ap(),dp=class{constructor(e){Sl.set(this,void 0),OC(this,Sl,e,"f")}get spec(){return Vt(this,Sl,"f")}makeForBom(){return new xl(this)}makeForMetadata(){return new Nl(this)}makeForComponent(){return new Pl(this)}makeForComponentEvidence(){return new aa(this)}makeForLifecycle(){return new Cl(this)}makeForTool(){return new Al(this)}makeForOrganizationalContact(){return new Ll(this)}makeForOrganizationalEntity(){return new Tl(this)}makeForHash(){return new Ol(this)}makeForLicense(){return new Dl(this)}makeForSWID(){return new Il(this)}makeForExternalReference(){return new Fl(this)}makeForAttachment(){return new Ml(this)}makeForProperty(){return new Rl(this)}makeForDependencyGraph(){return new kl(this)}makeForVulnerability(){return new zl(this)}makeForVulnerabilitySource(){return new ql(this)}makeForVulnerabilityReference(){return new Bl(this)}makeForVulnerabilityRating(){return new jl(this)}makeForVulnerabilityAdvisory(){return new Gl(this)}makeForVulnerabilityCredits(){return new Ul(this)}makeForVulnerabilityAffect(){return new Hl(this)}makeForVulnerabilityAffectedVersion(){return new Wl(this)}makeForVulnerabilityAnalysis(){return new $l(this)}};k.Factory=dp;Sl=new WeakMap;var PC=new Map([[ia.Version.v1dot6,"http://cyclonedx.org/schema/bom-1.6.schema.json"],[ia.Version.v1dot5,"http://cyclonedx.org/schema/bom-1.5.schema.json"],[ia.Version.v1dot4,"http://cyclonedx.org/schema/bom-1.4.schema.json"],[ia.Version.v1dot3,"http://cyclonedx.org/schema/bom-1.3a.schema.json"],[ia.Version.v1dot2,"http://cyclonedx.org/schema/bom-1.2b.schema.json"]]),_e=class{constructor(e){this._factory=e}get factory(){return this._factory}},xl=class extends _e{constructor(){super(...arguments),sp.add(this)}normalize(e,r){return{$schema:PC.get(this._factory.spec.version),bomFormat:"CycloneDX",specVersion:this._factory.spec.version,version:e.version,serialNumber:Vt(this,sp,"m",zy).call(this,e.serialNumber)?e.serialNumber:void 0,metadata:this._factory.makeForMetadata().normalize(e.metadata,r),components:e.components.size>0?this._factory.makeForComponent().normalizeIterable(e.components,r):[],dependencies:this._factory.spec.supportsDependencyGraph?this._factory.makeForDependencyGraph().normalize(e,r):void 0,vulnerabilities:this._factory.spec.supportsVulnerabilities&&e.vulnerabilities.size>0?this._factory.makeForVulnerability().normalizeIterable(e.vulnerabilities,r):void 0}}};k.BomNormalizer=xl;sp=new WeakSet,zy=function(e){return e!==void 0&&/^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e)};var Nl=class extends _e{normalize(e,r){let n=this._factory.makeForOrganizationalEntity();return{timestamp:e.timestamp?.toISOString(),lifecycles:this._factory.spec.supportsMetadataLifecycles&&e.lifecycles.size>0?this._factory.makeForLifecycle().normalizeIterable(e.lifecycles,r):void 0,tools:e.tools.size>0?this._factory.makeForTool().normalizeIterable(e.tools,r):void 0,authors:e.authors.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(e.authors,r):void 0,component:e.component===void 0?void 0:this._factory.makeForComponent().normalize(e.component,r),manufacture:e.manufacture===void 0?void 0:n.normalize(e.manufacture,r),supplier:e.supplier===void 0?void 0:n.normalize(e.supplier,r),licenses:this._factory.spec.supportsMetadataLicenses&&e.licenses.size>0?this._factory.makeForLicense().normalizeIterable(e.licenses,r):void 0,properties:this._factory.spec.supportsMetadataProperties&&e.properties.size>0?this._factory.makeForProperty().normalizeIterable(e.properties,r):void 0}}};k.MetadataNormalizer=Nl;var Cl=class extends _e{normalize(e,r){return e instanceof LC.NamedLifecycle?{name:e.name,description:e.description}:{phase:e}}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r))}};k.LifecycleNormalizer=Cl;var Al=class extends _e{normalize(e,r){return{vendor:e.vendor||void 0,name:e.name||void 0,version:e.version||void 0,hashes:e.hashes.size>0?this._factory.makeForHash().normalizeIterable(e.hashes,r):void 0,externalReferences:this._factory.spec.supportsToolReferences&&e.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(e.externalReferences,r):void 0}}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r))}};k.ToolNormalizer=Al;var Ol=class extends _e{normalize([e,r],n){let i=this._factory.spec;return i.supportsHashAlgorithm(e)&&i.supportsHashValue(r)?{alg:e,content:r}:void 0}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r)).filter(Yi.isNotUndefined)}};k.HashNormalizer=Ol;var Ll=class extends _e{normalize(e,r){return{name:e.name||void 0,email:Xi.JsonSchema.isIdnEmail(e.email)?e.email:void 0,phone:e.phone||void 0}}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r))}};k.OrganizationalContactNormalizer=Ll;var Tl=class extends _e{normalize(e,r){let n=Uy(Array.from(e.url,i=>(0,Vi.escapeUri)(i.toString())),r).filter(Xi.JsonSchema.isIriReference);return{name:e.name||void 0,url:n.length>0?n:void 0,contact:e.contact.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(e.contact,r):void 0}}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r))}};k.OrganizationalEntityNormalizer=Tl;var Pl=class extends _e{normalize(e,r){let n=this._factory.spec;if(!n.supportsComponentType(e.type))return;let i=e.version??"";return{type:e.type,name:e.name,group:e.group||void 0,version:i.length>0||n.requiresComponentVersion?i:void 0,"bom-ref":e.bomRef.value||void 0,supplier:e.supplier===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(e.supplier,r),author:e.author||void 0,publisher:e.publisher||void 0,description:e.description||void 0,scope:e.scope,hashes:e.hashes.size>0?this._factory.makeForHash().normalizeIterable(e.hashes,r):void 0,licenses:e.licenses.size>0?this._factory.makeForLicense().normalizeIterable(e.licenses,r):void 0,copyright:e.copyright?.toString()||void 0,cpe:e.cpe||void 0,purl:e.purl?.toString(),swid:e.swid===void 0?void 0:this._factory.makeForSWID().normalize(e.swid,r),externalReferences:e.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(e.externalReferences,r):void 0,properties:n.supportsProperties(e)&&e.properties.size>0?this._factory.makeForProperty().normalizeIterable(e.properties,r):void 0,components:e.components.size>0?this.normalizeIterable(e.components,r):void 0,evidence:n.supportsComponentEvidence&&e.evidence!==void 0?this._factory.makeForComponentEvidence().normalize(e.evidence,r):void 0}}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r)).filter(Yi.isNotUndefined)}};k.ComponentNormalizer=Pl;var aa=class extends _e{normalize(e,r){return{licenses:e.licenses.size>0?this._factory.makeForLicense().normalizeIterable(e.licenses,r):void 0,copyright:e.copyright.size>0?r.sortLists?e.copyright.sorted().map(Vt(oa,oa,"m",lp)):Array.from(e.copyright,Vt(oa,oa,"m",lp)):void 0}}};k.ComponentEvidenceNormalizer=aa;oa=aa,lp=function(e){return{text:e.toString()}};var Dl=class extends _e{constructor(){super(...arguments),Jn.add(this)}normalize(e,r){switch(!0){case e instanceof na.NamedLicense:return Vt(this,Jn,"m",up).call(this,e,r);case e instanceof na.SpdxLicense:return(0,TC.isSupportedSpdxId)(e.id)?Vt(this,Jn,"m",qy).call(this,e,r):Vt(this,Jn,"m",up).call(this,new na.NamedLicense(e.id,{url:e.url}),r);case e instanceof na.LicenseExpression:return Vt(this,Jn,"m",cp).call(this,e);default:throw new TypeError("Unexpected LicenseChoice")}}normalizeIterable(e,r){let n=r.sortLists??!1?e.sorted():Array.from(e);if(n.length>1){let i=n.filter(o=>o instanceof na.LicenseExpression);if(i.length>0)return[Vt(this,Jn,"m",cp).call(this,i[0])]}return n.map(i=>this.normalize(i,r))}};k.LicenseNormalizer=Dl;Jn=new WeakSet,up=function(e,r){let n=(0,Vi.escapeUri)(e.url?.toString());return{license:{name:e.name,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?e.acknowledgement:void 0,text:e.text===void 0?void 0:this._factory.makeForAttachment().normalize(e.text,r),url:Xi.JsonSchema.isIriReference(n)?n:void 0}}},qy=function(e,r){let n=(0,Vi.escapeUri)(e.url?.toString());return{license:{id:e.id,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?e.acknowledgement:void 0,text:e.text===void 0?void 0:this._factory.makeForAttachment().normalize(e.text,r),url:Xi.JsonSchema.isIriReference(n)?n:void 0}}},cp=function(e){return{expression:e.expression,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?e.acknowledgement:void 0}};var Il=class extends _e{normalize(e,r){let n=(0,Vi.escapeUri)(e.url?.toString());return{tagId:e.tagId,name:e.name,version:e.version||void 0,tagVersion:e.tagVersion,patch:e.patch,text:e.text===void 0?void 0:this._factory.makeForAttachment().normalize(e.text,r),url:Xi.JsonSchema.isIriReference(n)?n:void 0}}};k.SWIDNormalizer=Il;var Fl=class extends _e{normalize(e,r){return this._factory.spec.supportsExternalReferenceType(e.type)?{url:(0,Vi.escapeUri)(e.url.toString()),type:e.type,hashes:this._factory.spec.supportsExternalReferenceHashes&&e.hashes.size>0?this._factory.makeForHash().normalizeIterable(e.hashes,r):void 0,comment:e.comment||void 0}:void 0}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r)).filter(Yi.isNotUndefined)}};k.ExternalReferenceNormalizer=Fl;var Ml=class extends _e{normalize(e,r){return{content:e.content.toString(),contentType:e.contentType||void 0,encoding:e.encoding}}};k.AttachmentNormalizer=Ml;var Rl=class extends _e{normalize(e,r){return{name:e.name,value:e.value}}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r))}};k.PropertyNormalizer=Rl;var kl=class extends _e{constructor(){super(...arguments),fp.add(this)}normalize(e,r){let n=new Map;if(e.metadata.component!==void 0){n.set(e.metadata.component.bomRef,e.metadata.component.dependencies);for(let o of e.metadata.component.components[Ry.treeIteratorSymbol]())n.set(o.bomRef,o.dependencies)}for(let o of e.components[Ry.treeIteratorSymbol]())n.set(o.bomRef,o.dependencies);let i=[];for(let[o,a]of n){let s=Vt(this,fp,"m",By).call(this,o,a,n,r);(0,Yi.isNotUndefined)(s)&&i.push(s)}return(r.sortLists??!1)&&i.sort(({ref:o},{ref:a})=>o.localeCompare(a)),i}};k.DependencyGraphNormalizer=kl;fp=new WeakSet,By=function(e,r,n,i){let o=e.toString();if(o.length===0)return;let a=Uy(Array.from(r).filter(s=>n.has(s)&&s!==e),i).filter(s=>s.length>0);return{ref:o,dependsOn:a.length>0?a:void 0}};var zl=class extends _e{normalize(e,r){return{"bom-ref":e.bomRef.value||void 0,id:e.id||void 0,source:e.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(e.source,r),references:e.references.size>0?this._factory.makeForVulnerabilityReference().normalizeIterable(e.references,r):void 0,ratings:e.ratings.size>0?this._factory.makeForVulnerabilityRating().normalizeIterable(e.ratings,r):void 0,cwes:e.cwes.size>0?r.sortLists??!1?e.cwes.sorted():Array.from(e.cwes):void 0,description:e.description,detail:e.detail,recommendation:e.recommendation,advisories:e.advisories.size>0?this._factory.makeForVulnerabilityAdvisory().normalizeIterable(e.advisories,r):void 0,created:e.created?.toISOString(),published:e.published?.toISOString(),updated:e.updated?.toISOString(),credits:e.credits===void 0?void 0:this._factory.makeForVulnerabilityCredits().normalize(e.credits,r),tools:e.tools.size>0?this._factory.makeForTool().normalizeIterable(e.tools,r):void 0,analysis:e.analysis===void 0?void 0:this._factory.makeForVulnerabilityAnalysis().normalize(e.analysis,r),affects:e.affects.size>0?this._factory.makeForVulnerabilityAffect().normalizeIterable(e.affects,r):void 0,properties:e.properties.size>0?this._factory.makeForProperty().normalizeIterable(e.properties,r):void 0}}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r))}};k.VulnerabilityNormalizer=zl;var ql=class extends _e{normalize(e,r){return{name:e.name,url:e.url?.toString()}}};k.VulnerabilitySourceNormalizer=ql;var Bl=class extends _e{normalize(e,r){return{id:e.id,source:this._factory.makeForVulnerabilitySource().normalize(e.source,r)}}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r))}};k.VulnerabilityReferenceNormalizer=Bl;var jl=class extends _e{normalize(e,r){return{source:e.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(e.source,r),score:e.score,severity:e.severity,method:this._factory.spec.supportsVulnerabilityRatingMethod(e.method)?e.method:void 0,vector:e.vector,justification:e.justification}}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r))}};k.VulnerabilityRatingNormalizer=jl;var Gl=class extends _e{normalize(e,r){let n=(0,Vi.escapeUri)(e.url.toString());if(!!Xi.JsonSchema.isIriReference(n))return{title:e.title,url:n}}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r)).filter(Yi.isNotUndefined)}};k.VulnerabilityAdvisoryNormalizer=Gl;var Ul=class extends _e{normalize(e,r){return{organizations:e.organizations.size>0?this._factory.makeForOrganizationalEntity().normalizeIterable(e.organizations,r):void 0,individuals:e.individuals.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(e.individuals,r):void 0}}};k.VulnerabilityCreditsNormalizer=Ul;var Hl=class extends _e{normalize(e,r){return{ref:e.ref.toString(),versions:e.versions.size>0?this._factory.makeForVulnerabilityAffectedVersion().normalizeIterable(e.versions,r):void 0}}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r))}};k.VulnerabilityAffectNormalizer=Hl;var Wl=class extends _e{constructor(){super(...arguments),El.add(this)}normalize(e,r){switch(!0){case e instanceof ky.AffectedSingleVersion:return Vt(this,El,"m",jy).call(this,e);case e instanceof ky.AffectedVersionRange:return Vt(this,El,"m",Gy).call(this,e);default:throw new TypeError("Unexpected Vulnerability AffectedVersion")}}normalizeIterable(e,r){return(r.sortLists??!1?e.sorted():Array.from(e)).map(n=>this.normalize(n,r)).filter(Yi.isNotUndefined)}};k.VulnerabilityAffectedVersionNormalizer=Wl;El=new WeakSet,jy=function(e){return e.version.length<1?void 0:{version:e.version.substring(0,1024),status:e.status}},Gy=function(e){return e.range.length<1?void 0:{range:e.range.substring(0,1024),status:e.status}};var $l=class extends _e{normalize(e,r){return{state:e.state,justification:e.justification,response:e.response.size>0?r.sortLists??!1?e.response.sorted():Array.from(e.response):void 0,detail:e.detail}}};k.VulnerabilityAnalysisNormalizer=$l;function Uy(t,e){let r=Array.from(t,n=>n.toString());return(e.sortLists??!1)&&r.sort((n,i)=>n.localeCompare(i)),r}});var Wy=_(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.Types=Ji.Normalize=void 0;Ji.Normalize=Hy();Ji.Types=ap()});var Xl=_(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.UnsupportedFormatError=void 0;var pp=class extends Error{};Vl.UnsupportedFormatError=pp});var Vy=_(pn=>{"use strict";var DC=pn&&pn.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},$y=pn&&pn.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},sa;Object.defineProperty(pn,"__esModule",{value:!0});pn.JsonSerializer=void 0;var IC=Yn(),FC=Xl(),MC=vl(),hp=class extends MC.BaseSerializer{constructor(e){if(!e.spec.supportsFormat(IC.Format.JSON))throw new FC.UnsupportedFormatError("Spec does not support JSON format.");super(),sa.set(this,void 0),DC(this,sa,e,"f")}get normalizerFactory(){return $y(this,sa,"f")}_normalize(e,r={}){return $y(this,sa,"f").makeForBom().normalize(e,r)}_serialize(e,{space:r}={}){return JSON.stringify(e,null,r)}};pn.JsonSerializer=hp;sa=new WeakMap});var Yy=_(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.normalizedString=Xy;Yl.token=BC;var RC=/\r\n|\t|\n|\r/g,kC=" ";function Xy(t){return t.replace(RC,kC)}var zC=/ {2,}/g,qC=" ";function BC(t){return Xy(t).trim().replace(zC,qC)}});var mp=_(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.XmlSchema=void 0;var Jy;(function(t){let e=/^[a-z][a-z0-9+\-.]*$/i;function r(n){if(typeof n!="string"||n.length===0)return!1;let i=n.indexOf("#"),o;if(i>=0){if(n.includes("#",i+1))return!1;o=n.slice(void 0,i)}else o=n;let a=o.indexOf(":");return!(a>=0&&!e.test(o.slice(void 0,a)))}t.isAnyURI=r})(Jy||(Jl.XmlSchema=Jy={}))});var og=_(z=>{"use strict";var jC=z&&z.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},mr=z&&z.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Kl,_p,Zy,Qn,vp,eg,yp,gp,tg,Ql,rg,ng;Object.defineProperty(z,"__esModule",{value:!0});z.VulnerabilityAffectedVersionNormalizer=z.VulnerabilityAffectNormalizer=z.VulnerabilityAnalysisNormalizer=z.VulnerabilityCreditsNormalizer=z.VulnerabilityAdvisoryNormalizer=z.VulnerabilityRatingNormalizer=z.VulnerabilityReferenceNormalizer=z.VulnerabilitySourceNormalizer=z.VulnerabilityNormalizer=z.DependencyGraphNormalizer=z.PropertyNormalizer=z.AttachmentNormalizer=z.ExternalReferenceNormalizer=z.SWIDNormalizer=z.LicenseNormalizer=z.ComponentEvidenceNormalizer=z.ComponentNormalizer=z.OrganizationalEntityNormalizer=z.OrganizationalContactNormalizer=z.HashNormalizer=z.ToolNormalizer=z.LifecycleNormalizer=z.MetadataNormalizer=z.BomNormalizer=z.Factory=void 0;var ve=dl(),Ky=Ho(),Zn=ep(),la=an(),GC=ta(),Qy=ra(),UC=ul(),Kn=Yn(),be=Yy(),ei=mp(),bp=class{constructor(e){Kl.set(this,void 0),jC(this,Kl,e,"f")}get spec(){return mr(this,Kl,"f")}makeForBom(){return new eu(this)}makeForMetadata(){return new tu(this)}makeForLifecycle(){return new ru(this)}makeForComponent(){return new su(this)}makeForComponentEvidence(){return new lu(this)}makeForTool(){return new nu(this)}makeForOrganizationalContact(){return new ou(this)}makeForOrganizationalEntity(){return new au(this)}makeForHash(){return new iu(this)}makeForLicense(){return new uu(this)}makeForSWID(){return new cu(this)}makeForExternalReference(){return new fu(this)}makeForAttachment(){return new du(this)}makeForProperty(){return new pu(this)}makeForDependencyGraph(){return new hu(this)}makeForVulnerability(){return new mu(this)}makeForVulnerabilitySource(){return new _u(this)}makeForVulnerabilityReference(){return new vu(this)}makeForVulnerabilityRating(){return new yu(this)}makeForVulnerabilityAdvisory(){return new gu(this)}makeForVulnerabilityCredits(){return new bu(this)}makeForVulnerabilityAffect(){return new Su(this)}makeForVulnerabilityAffectedVersion(){return new Eu(this)}makeForVulnerabilityAnalysis(){return new wu(this)}};z.Factory=bp;Kl=new WeakMap;var HC=new Map([[Kn.Version.v1dot6,"http://cyclonedx.org/schema/bom/1.6"],[Kn.Version.v1dot5,"http://cyclonedx.org/schema/bom/1.5"],[Kn.Version.v1dot4,"http://cyclonedx.org/schema/bom/1.4"],[Kn.Version.v1dot3,"http://cyclonedx.org/schema/bom/1.3"],[Kn.Version.v1dot2,"http://cyclonedx.org/schema/bom/1.2"],[Kn.Version.v1dot1,"http://cyclonedx.org/schema/bom/1.1"],[Kn.Version.v1dot0,"http://cyclonedx.org/schema/bom/1.0"]]),ye=class{constructor(e){this._factory=e}get factory(){return this._factory}},eu=class extends ye{constructor(){super(...arguments),_p.add(this)}normalize(e,r){let n={type:"element",name:"components",children:e.components.size>0?this._factory.makeForComponent().normalizeIterable(e.components,r,"component"):void 0},i=this._factory.spec.supportsVulnerabilities&&e.vulnerabilities.size>0?{type:"element",name:"vulnerabilities",children:this._factory.makeForVulnerability().normalizeIterable(e.vulnerabilities,r,"vulnerability")}:void 0;return{type:"element",name:"bom",namespace:HC.get(this._factory.spec.version),attributes:{version:e.version,serialNumber:mr(this,_p,"m",Zy).call(this,e.serialNumber)?e.serialNumber:void 0},children:[e.metadata?this._factory.makeForMetadata().normalize(e.metadata,r,"metadata"):void 0,n,this._factory.spec.supportsDependencyGraph?this._factory.makeForDependencyGraph().normalize(e,r,"dependencies"):void 0,i].filter(ve.isNotUndefined)}}};z.BomNormalizer=eu;_p=new WeakSet,Zy=function(e){return e!==void 0&&/^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}$/.test(e)};var tu=class extends ye{normalize(e,r,n){let i=this._factory.makeForOrganizationalEntity(),o=this._factory.spec.supportsMetadataLifecycles&&e.lifecycles.size>0?{type:"element",name:"lifecycles",children:this._factory.makeForLifecycle().normalizeIterable(e.lifecycles,r,"lifecycle")}:void 0,a=e.tools.size>0?{type:"element",name:"tools",children:this._factory.makeForTool().normalizeIterable(e.tools,r,"tool")}:void 0,s=e.authors.size>0?{type:"element",name:"authors",children:this._factory.makeForOrganizationalContact().normalizeIterable(e.authors,r,"author")}:void 0,l=this._factory.spec.supportsMetadataLicenses&&e.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(e.licenses,r)}:void 0,u=this._factory.spec.supportsMetadataProperties&&e.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(e.properties,r,"property")}:void 0;return{type:"element",name:n,children:[Zl(e.timestamp,"timestamp"),o,a,s,e.component===void 0?void 0:this._factory.makeForComponent().normalize(e.component,r,"component"),e.manufacture===void 0?void 0:i.normalize(e.manufacture,r,"manufacture"),e.supplier===void 0?void 0:i.normalize(e.supplier,r,"supplier"),l,u].filter(ve.isNotUndefined)}}};z.MetadataNormalizer=tu;var ru=class extends ye{normalize(e,r,n){return e instanceof GC.NamedLifecycle?{type:"element",name:n,children:[Ae(e.name,"name",be.normalizedString),K(e.description,"description")].filter(ve.isNotUndefined)}:{type:"element",name:n,children:[Ae(e,"phase")]}}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n))}};z.LifecycleNormalizer=ru;var nu=class extends ye{normalize(e,r,n){let i=e.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(e.hashes,r,"hash")}:void 0,o=this._factory.spec.supportsToolReferences&&e.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(e.externalReferences,r,"reference")}:void 0;return{type:"element",name:n,children:[K(e.vendor,"vendor",be.normalizedString),K(e.name,"name",be.normalizedString),K(e.version,"version",be.normalizedString),i,o].filter(ve.isNotUndefined)}}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n))}};z.ToolNormalizer=nu;var iu=class extends ye{normalize([e,r],n,i){let o=this._factory.spec;return o.supportsHashAlgorithm(e)&&o.supportsHashValue(r)?{type:"element",name:i,attributes:{alg:e},children:(0,be.token)(r)}:void 0}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n)).filter(ve.isNotUndefined)}};z.HashNormalizer=iu;var ou=class extends ye{normalize(e,r,n){return{type:"element",name:n,children:[K(e.name,"name",be.normalizedString),K(e.email,"email",be.normalizedString),K(e.phone,"phone",be.normalizedString)].filter(ve.isNotUndefined)}}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n))}};z.OrganizationalContactNormalizer=ou;var au=class extends ye{normalize(e,r,n){return{type:"element",name:n,children:[K(e.name,"name",be.normalizedString),...ig(Array.from(e.url,i=>(0,Zn.escapeUri)(i.toString())),r,"url").filter(({children:i})=>ei.XmlSchema.isAnyURI(i)),...this._factory.makeForOrganizationalContact().normalizeIterable(e.contact,r,"contact")].filter(ve.isNotUndefined)}}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n))}};z.OrganizationalEntityNormalizer=au;var su=class extends ye{normalize(e,r,n){let i=this._factory.spec;if(!i.supportsComponentType(e.type))return;let o=e.supplier===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(e.supplier,r,"supplier"),a=(i.requiresComponentVersion?Ae:K)(e.version??"","version",be.normalizedString),s=e.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(e.hashes,r,"hash")}:void 0,l=e.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(e.licenses,r)}:void 0,u=e.swid===void 0?void 0:this._factory.makeForSWID().normalize(e.swid,r,"swid"),c=e.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(e.externalReferences,r,"reference")}:void 0,f=i.supportsProperties(e)&&e.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(e.properties,r,"property")}:void 0,d=e.components.size>0?{type:"element",name:"components",children:this.normalizeIterable(e.components,r,"component")}:void 0,p=i.supportsComponentEvidence&&e.evidence!==void 0?this._factory.makeForComponentEvidence().normalize(e.evidence,r,"evidence"):void 0;return{type:"element",name:n,attributes:{type:e.type,"bom-ref":e.bomRef.value},children:[o,K(e.author,"author",be.normalizedString),K(e.publisher,"publisher",be.normalizedString),K(e.group,"group",be.normalizedString),Ae(e.name,"name",be.normalizedString),a,K(e.description,"description",be.normalizedString),K(e.scope,"scope"),s,l,K(e.copyright,"copyright",be.normalizedString),K(e.cpe,"cpe"),K(e.purl,"purl"),u,c,f,d,p].filter(ve.isNotUndefined)}}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n)).filter(ve.isNotUndefined)}};z.ComponentNormalizer=su;var lu=class extends ye{normalize(e,r,n){let i=e.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(e.licenses,r)}:void 0,o=e.copyright.size>0?{type:"element",name:"copyright",children:ig(e.copyright,r,"text")}:void 0;return{type:"element",name:n,children:[i,o].filter(ve.isNotUndefined)}}};z.ComponentEvidenceNormalizer=lu;var uu=class extends ye{constructor(){super(...arguments),Qn.add(this)}normalize(e,r){switch(!0){case e instanceof la.NamedLicense:return mr(this,Qn,"m",vp).call(this,e,r);case e instanceof la.SpdxLicense:return(0,UC.isSupportedSpdxId)(e.id)?mr(this,Qn,"m",eg).call(this,e,r):mr(this,Qn,"m",vp).call(this,new la.NamedLicense(e.id,{url:e.url}),r);case e instanceof la.LicenseExpression:return mr(this,Qn,"m",yp).call(this,e);default:throw new TypeError("Unexpected LicenseChoice")}}normalizeIterable(e,r){let n=r.sortLists??!1?e.sorted():Array.from(e);if(n.length>1){let i=n.filter(o=>o instanceof la.LicenseExpression);if(i.length>0)return[mr(this,Qn,"m",yp).call(this,i[0])]}return n.map(i=>this.normalize(i,r))}};z.LicenseNormalizer=uu;Qn=new WeakSet,vp=function(e,r){let n=(0,Zn.escapeUri)(e.url?.toString());return{type:"element",name:"license",attributes:{acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?e.acknowledgement:void 0},children:[Ae(e.name,"name",be.normalizedString),e.text===void 0?void 0:this._factory.makeForAttachment().normalize(e.text,r,"text"),ei.XmlSchema.isAnyURI(n)?Ae(n,"url"):void 0].filter(ve.isNotUndefined)}},eg=function(e,r){let n=(0,Zn.escapeUri)(e.url?.toString());return{type:"element",name:"license",attributes:{acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?e.acknowledgement:void 0},children:[Ae(e.id,"id"),e.text===void 0?void 0:this._factory.makeForAttachment().normalize(e.text,r,"text"),ei.XmlSchema.isAnyURI(n)?Ae(n,"url"):void 0].filter(ve.isNotUndefined)}},yp=function(e){let r=Ae(e.expression,"expression",be.normalizedString);return r.attributes={acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?e.acknowledgement:void 0},r};var cu=class extends ye{normalize(e,r,n){let i=(0,Zn.escapeUri)(e.url?.toString());return{type:"element",name:n,attributes:{tagId:e.tagId,name:e.name,version:e.version||void 0,tagVersion:e.tagVersion,patch:e.patch===void 0?void 0:e.patch?"true":"false"},children:[e.text===void 0?void 0:this._factory.makeForAttachment().normalize(e.text,r,"text"),ei.XmlSchema.isAnyURI(i)?Ae(i,"url"):void 0].filter(ve.isNotUndefined)}}};z.SWIDNormalizer=cu;var fu=class extends ye{normalize(e,r,n){let i=(0,Zn.escapeUri)(e.url.toString()),o=this._factory.spec.supportsExternalReferenceHashes&&e.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(e.hashes,r,"hash")}:void 0;return this._factory.spec.supportsExternalReferenceType(e.type)&&ei.XmlSchema.isAnyURI(i)?{type:"element",name:n,attributes:{type:e.type},children:[Ae(i,"url"),K(e.comment,"comment"),o].filter(ve.isNotUndefined)}:void 0}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n)).filter(ve.isNotUndefined)}};z.ExternalReferenceNormalizer=fu;var du=class extends ye{normalize(e,r,n){return{type:"element",name:n,attributes:{"content-type":e.contentType?(0,be.normalizedString)(e.contentType):void 0,encoding:e.encoding||void 0},children:e.content.toString()}}};z.AttachmentNormalizer=du;var pu=class extends ye{normalize(e,r,n){return{type:"element",name:n,attributes:{name:e.name},children:(0,be.normalizedString)(e.value)}}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n))}};z.PropertyNormalizer=pu;var hu=class extends ye{constructor(){super(...arguments),gp.add(this)}normalize(e,r,n){let i=new Map;if(e.metadata.component!==void 0){i.set(e.metadata.component.bomRef,e.metadata.component.dependencies);for(let a of e.metadata.component.components[Ky.treeIteratorSymbol]())i.set(a.bomRef,a.dependencies)}for(let a of e.components[Ky.treeIteratorSymbol]())i.set(a.bomRef,a.dependencies);let o=[];for(let[a,s]of i){let l=mr(this,gp,"m",tg).call(this,a,s,i,r);(0,ve.isNotUndefined)(l)&&o.push(l)}return(r.sortLists??!1)&&o.sort(({attributes:{ref:a}},{attributes:{ref:s}})=>a.localeCompare(s)),{type:"element",name:n,children:o}}};z.DependencyGraphNormalizer=hu;gp=new WeakSet,tg=function(e,r,n,i){let o=e.toString();if(o.length===0)return;let a=Array.from(r).filter(s=>n.has(s)&&s!==e).map(s=>s.toString()).filter(s=>s.length>0);return(i.sortLists??!1)&&a.sort((s,l)=>s.localeCompare(l)),{type:"element",name:"dependency",attributes:{ref:o},children:a.map(s=>({type:"element",name:"dependency",attributes:{ref:s}}))}};var mu=class extends ye{normalize(e,r,n){let i=e.references.size>0?{type:"element",name:"references",children:this._factory.makeForVulnerabilityReference().normalizeIterable(e.references,r,"reference")}:void 0,o=e.ratings.size>0?{type:"element",name:"ratings",children:this._factory.makeForVulnerabilityRating().normalizeIterable(e.ratings,r,"rating")}:void 0,a=e.cwes.size>0?{type:"element",name:"cwes",children:(r.sortLists?e.cwes.sorted():Array.from(e.cwes)).map(f=>Ae(f,"cwe"))}:void 0,s=e.advisories.size>0?{type:"element",name:"advisories",children:this._factory.makeForVulnerabilityAdvisory().normalizeIterable(e.advisories,r,"advisory")}:void 0,l=e.tools.size>0?{type:"element",name:"tools",children:this._factory.makeForTool().normalizeIterable(e.tools,r,"tool")}:void 0,u=e.affects.size>0?{type:"element",name:"affects",children:this._factory.makeForVulnerabilityAffect().normalizeIterable(e.affects,r,"target")}:void 0,c=e.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(e.properties,r,"property")}:void 0;return{type:"element",name:n,attributes:{"bom-ref":e.bomRef.value||void 0},children:[K(e.id,"id",be.normalizedString),e.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(e.source,r,"source"),i,o,a,K(e.description,"description"),K(e.detail,"detail"),K(e.recommendation,"recommendation"),s,Zl(e.created,"created"),Zl(e.created,"published"),Zl(e.created,"updated"),e.credits===void 0?void 0:this._factory.makeForVulnerabilityCredits().normalize(e.credits,r,"credits"),l,e.analysis===void 0?void 0:this._factory.makeForVulnerabilityAnalysis().normalize(e.analysis,r,"analysis"),u,c].filter(ve.isNotUndefined)}}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n))}};z.VulnerabilityNormalizer=mu;var _u=class extends ye{normalize(e,r,n){let i=(0,Zn.escapeUri)(e.url?.toString());return{type:"element",name:n,children:[K(e.name,"name",be.normalizedString),ei.XmlSchema.isAnyURI(i)?Ae(i,"url"):void 0].filter(ve.isNotUndefined)}}};z.VulnerabilitySourceNormalizer=_u;var vu=class extends ye{normalize(e,r,n){return{type:"element",name:n,children:[Ae(e.id,"id"),this._factory.makeForVulnerabilitySource().normalize(e.source,r,"source")]}}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n))}};z.VulnerabilityReferenceNormalizer=vu;var yu=class extends ye{normalize(e,r,n){return{type:"element",name:n,children:[e.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(e.source,r,"source"),K(e.score,"score"),K(e.severity,"severity"),this._factory.spec.supportsVulnerabilityRatingMethod(e.method)?K(e.method,"method"):void 0,K(e.vector,"vector",be.normalizedString),K(e.justification,"justification")].filter(ve.isNotUndefined)}}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n))}};z.VulnerabilityRatingNormalizer=yu;var gu=class extends ye{normalize(e,r,n){let i=(0,Zn.escapeUri)(e.url.toString());if(!!ei.XmlSchema.isAnyURI(i))return{type:"element",name:n,children:[K(e.title,"title"),Ae(i,"url")].filter(ve.isNotUndefined)}}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n)).filter(ve.isNotUndefined)}};z.VulnerabilityAdvisoryNormalizer=gu;var bu=class extends ye{normalize(e,r,n){let i=e.organizations.size>0?{type:"element",name:"organizations",children:this._factory.makeForOrganizationalEntity().normalizeIterable(e.organizations,r,"organization")}:void 0,o=e.individuals.size>0?{type:"element",name:"individuals",children:this._factory.makeForOrganizationalContact().normalizeIterable(e.individuals,r,"individual")}:void 0;return{type:"element",name:n,children:[i,o].filter(ve.isNotUndefined)}}};z.VulnerabilityCreditsNormalizer=bu;var wu=class extends ye{normalize(e,r,n){let i=e.response.size>0?{type:"element",name:"responses",children:(r.sortLists??!1?e.response.sorted():Array.from(e.response)).map(o=>Ae(o,"response"))}:void 0;return{type:"element",name:n,children:[K(e.state,"state"),K(e.justification,"justification"),i,K(e.detail,"detail")].filter(ve.isNotUndefined)}}};z.VulnerabilityAnalysisNormalizer=wu;var Su=class extends ye{normalize(e,r,n){let i=e.versions.size>0?{type:"element",name:"versions",children:this._factory.makeForVulnerabilityAffectedVersion().normalizeIterable(e.versions,r,"version")}:void 0;return{type:"element",name:n,children:[Ae(e.ref,"ref"),i].filter(ve.isNotUndefined)}}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n))}};z.VulnerabilityAffectNormalizer=Su;var Eu=class extends ye{constructor(){super(...arguments),Ql.add(this)}normalize(e,r,n){switch(!0){case e instanceof Qy.AffectedSingleVersion:return mr(this,Ql,"m",rg).call(this,e,n);case e instanceof Qy.AffectedVersionRange:return mr(this,Ql,"m",ng).call(this,e,n);default:throw new TypeError("Unexpected Vulnerability AffectedVersion")}}normalizeIterable(e,r,n){return(r.sortLists??!1?e.sorted():Array.from(e)).map(i=>this.normalize(i,r,n))}};z.VulnerabilityAffectedVersionNormalizer=Eu;Ql=new WeakSet,rg=function(e,r){return{type:"element",name:r,children:[Ae(e.version,"version",be.normalizedString),K(e.status,"status")].filter(ve.isNotUndefined)}},ng=function(e,r){return{type:"element",name:r,children:[Ae(e.range,"range",be.normalizedString),K(e.status,"status")].filter(ve.isNotUndefined)}};var xu=t=>t;function K(t,e,r=xu){let n=r(t?.toString()??"");return n.length>0?Ae(n,e):void 0}function Ae(t,e,r=xu){return{type:"element",name:e,children:r(t.toString())}}function ig(t,e,r,n=xu){let i=Array.from(t,o=>Ae(o,r,n));return(e.sortLists??!1)&&i.sort(({children:o},{children:a})=>o.localeCompare(a)),i}function Zl(t,e,r=xu){let n=t?.toISOString();return n===void 0?void 0:Ae(n,e,r)}});var ag=_(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.Types=Ki.Normalize=void 0;Ki.Normalize=og();Ki.Types=mp()});var Sp=_(hn=>{"use strict";var WC=hn&&hn.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},sg=hn&&hn.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ua;Object.defineProperty(hn,"__esModule",{value:!0});hn.XmlBaseSerializer=void 0;var $C=Yn(),VC=Xl(),XC=vl(),wp=class extends XC.BaseSerializer{constructor(e){if(!e.spec.supportsFormat($C.Format.XML))throw new VC.UnsupportedFormatError("Spec does not support XML format.");super(),ua.set(this,void 0),WC(this,ua,e,"f")}get normalizerFactory(){return sg(this,ua,"f")}_normalize(e,r={}){return sg(this,ua,"f").makeForBom().normalize(e,r)}};hn.XmlBaseSerializer=wp;ua=new WeakMap});var lg=_(nt=>{"use strict";var YC=nt&&nt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ca=nt&&nt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&YC(e,t,r)};Object.defineProperty(nt,"__esModule",{value:!0});nt.XML=nt.JSON=nt.Types=void 0;ca(Xd(),nt);ca(Kd(),nt);nt.Types=Cy();ca(vl(),nt);nt.JSON=Wy();ca(Vy(),nt);nt.XML=ag();ca(Sp(),nt)});var ug=_(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.default=QC;var JC=hl();function KC(t){let e=function(){throw new JC.OptPlugError(t)};return e.fails=!0,Object.freeze(e)}function QC(t,e){for(let[,r]of e)try{return r()}catch{}return KC(`No ${t} available. Please install one of the optional dependencies: `+e.map(r=>r[0]).join(" || "))}});var Nu=_(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.DefaultBuilderOptions={version:"1.0",encoding:void 0,standalone:void 0,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,skipWhitespaceOnlyText:!0,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"},invalidCharReplacement:void 0,parser:void 0};Qi.XMLBuilderOptionKeys=new Set(Object.keys(Qi.DefaultBuilderOptions));Qi.DefaultXMLBuilderCBOptions={format:"xml",wellFormed:!1,prettyPrint:!1,indent:" ",newline:` `,offset:0,width:0,allowEmptyTags:!1,spaceBeforeSlash:!1,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"}}});var cg=_(ti=>{"use strict";var Cu=ti&&ti.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ti,"__esModule",{value:!0});var ZC=function(){function t(e){e===void 0&&(e=1e3),this._items=new Set,this._limit=e}return t.prototype.add=function(e){if(this._items.add(e),this._items.size>this._limit){var r=this._items.values().next();r.done||this._items.delete(r.value)}return this},t.prototype.delete=function(e){return this._items.delete(e)},t.prototype.has=function(e){return this._items.has(e)},t.prototype.clear=function(){this._items.clear()},Object.defineProperty(t.prototype,"size",{get:function(){return this._items.size},enumerable:!0,configurable:!0}),t.prototype.forEach=function(e,r){var n=this;this._items.forEach(function(i){return e.call(r,i,i,n)})},t.prototype.keys=function(){return Cu(this,function(e){switch(e.label){case 0:return[5,Au(this._items.keys())];case 1:return e.sent(),[2]}})},t.prototype.values=function(){return Cu(this,function(e){switch(e.label){case 0:return[5,Au(this._items.values())];case 1:return e.sent(),[2]}})},t.prototype.entries=function(){return Cu(this,function(e){switch(e.label){case 0:return[5,Au(this._items.entries())];case 1:return e.sent(),[2]}})},t.prototype[Symbol.iterator]=function(){return Cu(this,function(e){switch(e.label){case 0:return[5,Au(this._items)];case 1:return e.sent(),[2]}})},Object.defineProperty(t.prototype,Symbol.toStringTag,{get:function(){return"FixedSizeSet"},enumerable:!0,configurable:!0}),t}();ti.FixedSizeSet=ZC});var fg=_(ri=>{"use strict";var Ou=ri&&ri.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ri,"__esModule",{value:!0});var eA=function(){function t(e){e===void 0&&(e=1e3),this._items=new Map,this._limit=e}return t.prototype.get=function(e){return this._items.get(e)},t.prototype.set=function(e,r){if(this._items.set(e,r),this._items.size>this._limit){var n=this._items.keys().next();n.done||this._items.delete(n.value)}},t.prototype.delete=function(e){return this._items.delete(e)},t.prototype.has=function(e){return this._items.has(e)},t.prototype.clear=function(){this._items.clear()},Object.defineProperty(t.prototype,"size",{get:function(){return this._items.size},enumerable:!0,configurable:!0}),t.prototype.forEach=function(e,r){this._items.forEach(function(n,i){return e.call(r,i,n)})},t.prototype.keys=function(){return Ou(this,function(e){switch(e.label){case 0:return[5,Lu(this._items.keys())];case 1:return e.sent(),[2]}})},t.prototype.values=function(){return Ou(this,function(e){switch(e.label){case 0:return[5,Lu(this._items.values())];case 1:return e.sent(),[2]}})},t.prototype.entries=function(){return Ou(this,function(e){switch(e.label){case 0:return[5,Lu(this._items.entries())];case 1:return e.sent(),[2]}})},t.prototype[Symbol.iterator]=function(){return Ou(this,function(e){switch(e.label){case 0:return[5,Lu(this._items)];case 1:return e.sent(),[2]}})},Object.defineProperty(t.prototype,Symbol.toStringTag,{get:function(){return"ObjectCache"},enumerable:!0,configurable:!0}),t}();ri.ObjectCache=eA});var dg=_(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var tA=function(){function t(e){e===void 0&&(e=1e3),this._items=new Map,this._limit=e}return t.prototype.check=function(e,r){if(this._items.get(e)===r)return!0;if(this._items.get(r)===e)return!1;var n=Math.random()<.5;if(n?this._items.set(e,r):this._items.set(r,e),this._items.size>this._limit){var i=this._items.keys().next();i.done||this._items.delete(i.value)}return n},t}();xp.CompareCache=tA});var pg=_(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});var rA=function(){function t(e){this._initialized=!1,this._value=void 0,this._initFunc=e}return Object.defineProperty(t.prototype,"value",{get:function(){return this._initialized||(this._value=this._initFunc(),this._initialized=!0),this._value},enumerable:!0,configurable:!0}),t}();Np.Lazy=rA});var hg=_(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var nA=function(){function t(e){this._pointer=0,this._chars=Array.from(e),this._length=this._chars.length}return Object.defineProperty(t.prototype,"eof",{get:function(){return this._pointer>=this._length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.codePoint=function(){if(this._codePoint===void 0)if(this.eof)this._codePoint=-1;else{var e=this._chars[this._pointer].codePointAt(0);e!==void 0?this._codePoint=e:this._codePoint=-1}return this._codePoint},t.prototype.c=function(){return this._c===void 0&&(this._c=this.eof?"":this._chars[this._pointer]),this._c},t.prototype.remaining=function(){return this._remaining===void 0&&(this._remaining=this.eof?"":this._chars.slice(this._pointer+1).join("")),this._remaining},t.prototype.substring=function(){return this._substring===void 0&&(this._substring=this.eof?"":this._chars.slice(this._pointer).join("")),this._substring},Object.defineProperty(t.prototype,"pointer",{get:function(){return this._pointer},set:function(e){e!==this._pointer&&(this._pointer=e,this._codePoint=void 0,this._c=void 0,this._remaining=void 0,this._substring=void 0)},enumerable:!0,configurable:!0}),t}();Cp.StringWalker=nA});var le=_(re=>{"use strict";var iA=re&&re.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(re,"__esModule",{value:!0});var oA=cg();re.FixedSizeSet=oA.FixedSizeSet;var aA=fg();re.ObjectCache=aA.ObjectCache;var sA=dg();re.CompareCache=sA.CompareCache;var lA=pg();re.Lazy=lA.Lazy;var uA=hg();re.StringWalker=uA.StringWalker;function cA(t,e){for(var r=[],n=2;n>6|192;else{if(i>55295&&i<56320){if(++n>=t.length)throw new Error("Incomplete surrogate pair.");var o=t.charCodeAt(n);if(o<56320||o>57343)throw new Error("Invalid surrogate character.");i=65536+((i&1023)<<10)+(o&1023),e[r++]=i>>18|240,e[r++]=i>>12&63|128}else e[r++]=i>>12|224;e[r++]=i>>6&63|128}e[r++]=i&63|128}return e.subarray(0,r)}re.utf8Encode=SA;function EA(t){for(var e="",r=0;r127)if(n>191&&n<224){if(r>=t.length)throw new Error("Incomplete 2-byte sequence.");n=(n&31)<<6|t[r++]&63}else if(n>223&&n<240){if(r+1>=t.length)throw new Error("Incomplete 3-byte sequence.");n=(n&15)<<12|(t[r++]&63)<<6|t[r++]&63}else if(n>239&&n<248){if(r+2>=t.length)throw new Error("Incomplete 4-byte sequence.");n=(n&7)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63}else throw new Error("Unknown multi-byte start.");if(n<=65535)e+=String.fromCharCode(n);else if(n<=1114111)n-=65536,e+=String.fromCharCode(n>>10|55296),e+=String.fromCharCode(n&1023|56320);else throw new Error("Code point exceeds UTF-16 limit.")}return e}re.utf8Decode=EA});var oe=_(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});var xA;(function(t){t[t.Before=0]="Before",t[t.Equal=1]="Equal",t[t.After=2]="After"})(xA=lt.BoundaryPosition||(lt.BoundaryPosition={}));var NA;(function(t){t[t.None=0]="None",t[t.Capturing=1]="Capturing",t[t.AtTarget=2]="AtTarget",t[t.Bubbling=3]="Bubbling"})(NA=lt.EventPhase||(lt.EventPhase={}));var CA;(function(t){t[t.Element=1]="Element",t[t.Attribute=2]="Attribute",t[t.Text=3]="Text",t[t.CData=4]="CData",t[t.EntityReference=5]="EntityReference",t[t.Entity=6]="Entity",t[t.ProcessingInstruction=7]="ProcessingInstruction",t[t.Comment=8]="Comment",t[t.Document=9]="Document",t[t.DocumentType=10]="DocumentType",t[t.DocumentFragment=11]="DocumentFragment",t[t.Notation=12]="Notation"})(CA=lt.NodeType||(lt.NodeType={}));var AA;(function(t){t[t.Disconnected=1]="Disconnected",t[t.Preceding=2]="Preceding",t[t.Following=4]="Following",t[t.Contains=8]="Contains",t[t.ContainedBy=16]="ContainedBy",t[t.ImplementationSpecific=32]="ImplementationSpecific"})(AA=lt.Position||(lt.Position={}));var OA;(function(t){t[t.Accept=1]="Accept",t[t.Reject=2]="Reject",t[t.Skip=3]="Skip"})(OA=lt.FilterResult||(lt.FilterResult={}));var LA;(function(t){t[t.All=4294967295]="All",t[t.Element=1]="Element",t[t.Attribute=2]="Attribute",t[t.Text=4]="Text",t[t.CDataSection=8]="CDataSection",t[t.EntityReference=16]="EntityReference",t[t.Entity=32]="Entity",t[t.ProcessingInstruction=64]="ProcessingInstruction",t[t.Comment=128]="Comment",t[t.Document=256]="Document",t[t.DocumentType=512]="DocumentType",t[t.DocumentFragment=1024]="DocumentFragment",t[t.Notation=2048]="Notation"})(LA=lt.WhatToShow||(lt.WhatToShow={}));var TA;(function(t){t[t.StartToStart=0]="StartToStart",t[t.StartToEnd=1]="StartToEnd",t[t.EndToEnd=2]="EndToEnd",t[t.EndToStart=3]="EndToStart"})(TA=lt.HowToCompare||(lt.HowToCompare={}))});var fa=_(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var PA=function(){function t(){this._items={},this._nullItems={}}return t.prototype.set=function(e,r){e===null?this._nullItems[r]=!0:this._items[e]?this._items[e][r]=!0:(this._items[e]={},this._items[e][r]=!0)},t.prototype.has=function(e,r){return e===null?this._nullItems[r]===!0:this._items[e]?this._items[e][r]===!0:!1},t}();Tp.LocalNameSet=PA});var Du=_(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var DA=function(){function t(){this._items={},this._nullItems=[]}return t.prototype.copy=function(){var e=new t;for(var r in this._items)e._items[r]=this._items[r].slice(0);return e._nullItems=this._nullItems.slice(0),e},t.prototype.get=function(e,r){var n=r===null?this._nullItems:this._items[r]||null;if(n===null)return null;for(var i=null,o=0;o{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.Surrogate=/[\uD800-\uDFFF]/;Ge.ScalarValue=/[\uD800-\uDFFF]/;Ge.NonCharacter=/[\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]/;Ge.ASCIICodePoint=/[\u0000-\u007F]/;Ge.ASCIITabOrNewLine=/[\t\n\r]/;Ge.ASCIIWhiteSpace=/[\t\n\f\r ]/;Ge.C0Control=/[\u0000-\u001F]/;Ge.C0ControlOrSpace=/[\u0000-\u001F ]/;Ge.Control=/[\u0000-\u001F\u007F-\u009F]/;Ge.ASCIIDigit=/[0-9]/;Ge.ASCIIUpperHexDigit=/[0-9A-F]/;Ge.ASCIILowerHexDigit=/[0-9a-f]/;Ge.ASCIIHexDigit=/[0-9A-Fa-f]/;Ge.ASCIIUpperAlpha=/[A-Z]/;Ge.ASCIILowerAlpha=/[a-z]/;Ge.ASCIIAlpha=/[A-Za-z]/;Ge.ASCIIAlphanumeric=/[0-9A-Za-z]/});var yg=_(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});var IA=Iu();function FA(t){return Buffer.from(t).toString("base64")}Fu.forgivingBase64Encode=FA;function MA(t){return t===""?"":(t=t.replace(IA.ASCIIWhiteSpace,""),t.length%4===0&&(t.endsWith("==")?t=t.substr(0,t.length-2):t.endsWith("=")&&(t=t.substr(0,t.length-1))),t.length%4===1||!/[0-9A-Za-z+/]/.test(t)?null:Buffer.from(t,"base64").toString("utf8"))}Fu.forgivingBase64Decode=MA});var Ip=_(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});function RA(t){return t>=0&&t<=127}Dp.isASCIIByte=RA});var Fp=_(zt=>{"use strict";var kA=zt&&zt.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},zA=zt&&zt.__spread||function(){for(var t=[],e=0;e=65&&r<=90&&(t[e]=r+32)}}zt.byteLowercase=BA;function jA(t){for(var e=0;e=97&&r<=122&&(t[e]=r-32)}}zt.byteUppercase=jA;function GA(t,e){if(t.length!==e.length)return!1;for(var r=0;r=65&&n<=90&&(n+=32),i>=65&&i<=90&&(i+=32),n!==i)return!1}return!0}zt.byteCaseInsensitiveMatch=GA;function UA(t,e){for(var r=0;;){if(r>=t.length)return!1;if(r>=e.length)return!0;if(t[r]!==e[r])return!1;r++}}zt.startsWith=UA;function HA(t,e){for(var r=0;;){if(r>=t.length)return!1;if(r>=e.length)return!0;var n=t[r],i=e[r];if(ni)return!1;r++}}zt.byteLessThan=HA;function WA(t){return String.fromCodePoint.apply(String,zA(t))}zt.isomorphicDecode=WA});var gg=_(mn=>{"use strict";var $A=mn&&mn.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mn,"__esModule",{value:!0});var eo=le();function VA(t){var e=eo.utf8Decode(t);return JSON.parse.call(void 0,e)}mn.parseJSONFromBytes=VA;function XA(t){var e=JSON.stringify.call(void 0,t);return eo.utf8Encode(e)}mn.serializeJSONToBytes=XA;function YA(t){var e=JSON.parse.call(void 0,t);return Mu(e)}mn.parseJSONIntoInfraValues=YA;function Mu(t){var e,r;if(t===null||eo.isString(t)||eo.isNumber(t))return t;if(eo.isArray(t)){var n=new Array;try{for(var i=$A(t),o=i.next();!o.done;o=i.next()){var a=o.value;n.push(Mu(a))}}catch(u){e={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}else if(eo.isObject(t)){var n=new Map;for(var s in t)if(t.hasOwnProperty(s)){var l=t[s];n.set(s,Mu(l))}return n}return t}mn.convertAJSONDerivedJavaScriptValueToAnInfraValue=Mu});var wg=_(Se=>{"use strict";var JA=Se&&Se.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},bg=Se&&Se.__spread||function(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Se,"__esModule",{value:!0});var Mp=le();function QA(t,e){t.push(e)}Se.append=QA;function ZA(t,e){t.push.apply(t,bg(e))}Se.extend=ZA;function e1(t,e){t.unshift(e)}Se.prepend=e1;function t1(t,e,r){var n,i,o=0;try{for(var a=da(t),s=a.next();!s.done;s=a.next()){var l=s.value;if(Mp.isFunction(e))e.call(null,l)&&(t[o]=r);else if(l===e){t[o]=r;return}o++}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}Se.replace=t1;function r1(t,e,r){t.splice(r,0,e)}Se.insert=r1;function n1(t,e){for(var r=t.length;r--;){var n=t[r];if(Mp.isFunction(e))e.call(null,n)&&t.splice(r,1);else if(n===e){t.splice(r,1);return}}}Se.remove=n1;function i1(t){t.length=0}Se.empty=i1;function o1(t,e){var r,n;try{for(var i=da(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(Mp.isFunction(e)){if(e.call(null,a))return!0}else if(a===e)return!0}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1}Se.contains=o1;function a1(t,e){var r,n;if(e===void 0)return t.length;var i=0;try{for(var o=da(t),a=o.next();!a.done;a=o.next()){var s=a.value;e.call(null,s)&&i++}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i}Se.size=a1;function s1(t){return t.length===0}Se.isEmpty=s1;function l1(t,e){var r,n,i,o,a,s;return JA(this,function(l){switch(l.label){case 0:return e!==void 0?[3,2]:[5,da(t)];case 1:return l.sent(),[3,9];case 2:l.trys.push([2,7,8,9]),r=da(t),n=r.next(),l.label=3;case 3:return n.done?[3,6]:(i=n.value,e.call(null,i)?[4,i]:[3,5]);case 4:l.sent(),l.label=5;case 5:return n=r.next(),[3,3];case 6:return[3,9];case 7:return o=l.sent(),a={error:o},[3,9];case 8:try{n&&!n.done&&(s=r.return)&&s.call(r)}finally{if(a)throw a.error}return[7];case 9:return[2]}})}Se.forEach=l1;function u1(t){return new(Array.bind.apply(Array,bg([void 0],t)))}Se.clone=u1;function c1(t,e){return t.sort(function(r,n){return e.call(null,r,n)?-1:1})}Se.sortInAscendingOrder=c1;function f1(t,e){return t.sort(function(r,n){return e.call(null,r,n)?1:-1})}Se.sortInDescendingOrder=f1});var Eg=_(Oe=>{"use strict";var d1=Oe&&Oe.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p1=Oe&&Oe.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},Rp=Oe&&Oe.__spread||function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.HTML="http://www.w3.org/1999/xhtml";_n.XML="http://www.w3.org/XML/1998/namespace";_n.XMLNS="http://www.w3.org/2000/xmlns/";_n.MathML="http://www.w3.org/1998/Math/MathML";_n.SVG="http://www.w3.org/2000/svg";_n.XLink="http://www.w3.org/1999/xlink"});var Ng=_(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});function C1(t,e){t.push(e)}Ru.enqueue=C1;function A1(t){return t.shift()||null}Ru.dequeue=A1});var Og=_(ue=>{"use strict";var O1=ue&&ue.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},L1=ue&&ue.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},Cg=ue&&ue.__spread||function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});function X1(t,e){t.push(e)}ku.push=X1;function Y1(t){return t.pop()||null}ku.pop=Y1});var Rg=_(xe=>{"use strict";var zu=xe&&xe.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(xe,"__esModule",{value:!0});var Tg=Iu(),J1=Fp(),K1=Ip(),qu=le();function zp(t,e){for(var r=0;;){var n=r=65&&s<=90?n+=String.fromCodePoint(s+32):n+=a}}catch(l){e={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}xe.asciiLowercase=qp;function Z1(t){var e,r,n="";try{for(var i=zu(t),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.codePointAt(0);s!==void 0&&s>=97&&s<=122?n+=String.fromCodePoint(s-32):n+=a}}catch(l){e={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}xe.asciiUppercase=Z1;function eO(t,e){return qp(t)===qp(e)}xe.asciiCaseInsensitiveMatch=eO;function tO(t){return console.assert(Dg(t),"asciiEncode requires an ASCII string."),Pg(t)}xe.asciiEncode=tO;function rO(t){var e,r;try{for(var n=zu(t),i=n.next();!i.done;i=n.next()){var o=i.value;console.assert(K1.isASCIIByte(o),"asciiDecode requires an ASCII byte sequence.")}}catch(a){e={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return J1.isomorphicDecode(t)}xe.asciiDecode=rO;function nO(t){return t.replace(/[\n\r]/g,"")}xe.stripNewlines=nO;function iO(t){return t.replace(/\r\n/g,` `).replace(/\r/g,` `)}xe.normalizeNewlines=iO;function jp(t){return t.replace(/^[\t\n\f\r ]+/,"").replace(/[\t\n\f\r ]+$/,"")}xe.stripLeadingAndTrailingASCIIWhitespace=jp;function oO(t){return jp(t.replace(/[\t\n\f\r ]{2,}/g," "))}xe.stripAndCollapseASCIIWhitespace=oO;function ni(t,e,r){if(!qu.isArray(e))return ni(t,Array.from(e),r);for(var n="";r.position{"use strict";var Xt=ut&&ut.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(ut,"__esModule",{value:!0});var sO=Xt(yg());ut.base64=sO;var lO=Xt(Ip());ut.byte=lO;var uO=Xt(Fp());ut.byteSequence=uO;var cO=Xt(Iu());ut.codePoint=cO;var fO=Xt(gg());ut.json=fO;var dO=Xt(wg());ut.list=dO;var pO=Xt(Eg());ut.map=pO;var hO=Xt(xg());ut.namespace=hO;var mO=Xt(Ng());ut.queue=mO;var _O=Xt(Og());ut.set=_O;var vO=Xt(Lg());ut.stack=vO;var yO=Xt(Rg());ut.string=yO});var ct=_(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});function gO(t,e,r){Object.defineProperty(t,e,{writable:!1,enumerable:!0,configurable:!1,value:r})}Gp.idl_defineConst=gO});var Hp=_(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var bO=De(),ro=Fe(),rr=Z(),wO=ct(),kg=function(){function t(e){this._associatedDocument=e||bO.dom.window.document}return t.prototype.createDocumentType=function(e,r,n){return rr.namespace_validate(e),rr.create_documentType(this._associatedDocument,e,r,n)},t.prototype.createDocument=function(e,r,n){n===void 0&&(n=null);var i=rr.create_xmlDocument(),o=null;return r&&(o=rr.document_internalCreateElementNS(i,e,r)),n&&i.appendChild(n),o&&i.appendChild(o),i._origin=this._associatedDocument._origin,e===ro.namespace.HTML?i._contentType="application/xhtml+xml":e===ro.namespace.SVG?i._contentType="image/svg+xml":i._contentType="application/xml",i},t.prototype.createHTMLDocument=function(e){var r=rr.create_document();r._type="html",r._contentType="text/html",r.appendChild(rr.create_documentType(r,"html","",""));var n=rr.element_createAnElement(r,"html",ro.namespace.HTML);r.appendChild(n);var i=rr.element_createAnElement(r,"head",ro.namespace.HTML);if(n.appendChild(i),e!==void 0){var o=rr.element_createAnElement(r,"title",ro.namespace.HTML);i.appendChild(o);var a=rr.create_text(r,e);o.appendChild(a)}var s=rr.element_createAnElement(r,"body",ro.namespace.HTML);return n.appendChild(s),r._origin=this._associatedDocument._origin,r},t.prototype.hasFeature=function(){return!0},t._create=function(e){return new t(e)},t}();Up.DOMImplementationImpl=kg;wO.idl_defineConst(kg.prototype,"_ID","@oozcitak/dom")});var Ue=_(ae=>{"use strict";var he=ae&&ae.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ae,"__esModule",{value:!0});var me=function(t){he(e,t);function e(r,n){n===void 0&&(n="");var i=t.call(this,n)||this;return i.name=r,i}return e}(Error);ae.DOMException=me;var SO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"DOMStringSizeError",r)||this}return e}(me);ae.DOMStringSizeError=SO;var EO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"WrongDocumentError","The object is in the wrong document. "+r)||this}return e}(me);ae.WrongDocumentError=EO;var xO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"NoDataAllowedError",r)||this}return e}(me);ae.NoDataAllowedError=xO;var NO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"NoModificationAllowedError","The object can not be modified. "+r)||this}return e}(me);ae.NoModificationAllowedError=NO;var CO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"NotSupportedError","The operation is not supported. "+r)||this}return e}(me);ae.NotSupportedError=CO;var AO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"InUseAttributeError",r)||this}return e}(me);ae.InUseAttributeError=AO;var OO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"InvalidStateError","The object is in an invalid state. "+r)||this}return e}(me);ae.InvalidStateError=OO;var LO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"InvalidModificationError","The object can not be modified in this way. "+r)||this}return e}(me);ae.InvalidModificationError=LO;var TO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"NamespaceError","The operation is not allowed by Namespaces in XML. [XMLNS] "+r)||this}return e}(me);ae.NamespaceError=TO;var PO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"InvalidAccessError","The object does not support the operation or argument. "+r)||this}return e}(me);ae.InvalidAccessError=PO;var DO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"ValidationError",r)||this}return e}(me);ae.ValidationError=DO;var IO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"TypeMismatchError",r)||this}return e}(me);ae.TypeMismatchError=IO;var FO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"SecurityError","The operation is insecure. "+r)||this}return e}(me);ae.SecurityError=FO;var MO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"NetworkError","A network error occurred. "+r)||this}return e}(me);ae.NetworkError=MO;var RO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"AbortError","The operation was aborted. "+r)||this}return e}(me);ae.AbortError=RO;var kO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"URLMismatchError","The given URL does not match another URL. "+r)||this}return e}(me);ae.URLMismatchError=kO;var zO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"QuotaExceededError","The quota has been exceeded. "+r)||this}return e}(me);ae.QuotaExceededError=zO;var qO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"TimeoutError","The operation timed out. "+r)||this}return e}(me);ae.TimeoutError=qO;var BO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"InvalidNodeTypeError","The supplied node is incorrect or has an incorrect ancestor for this operation. "+r)||this}return e}(me);ae.InvalidNodeTypeError=BO;var jO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"DataCloneError","The object can not be cloned. "+r)||this}return e}(me);ae.DataCloneError=jO;var GO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"NotImplementedError","The DOM method is not implemented by this module. "+r)||this}return e}(me);ae.NotImplementedError=GO;var UO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"HierarchyRequestError","The operation would yield an incorrect node tree. "+r)||this}return e}(me);ae.HierarchyRequestError=UO;var HO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"NotFoundError","The object can not be found here. "+r)||this}return e}(me);ae.NotFoundError=HO;var WO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"IndexSizeError","The index is not in the allowed range. "+r)||this}return e}(me);ae.IndexSizeError=WO;var $O=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"SyntaxError","The string did not match the expected pattern. "+r)||this}return e}(me);ae.SyntaxError=$O;var VO=function(t){he(e,t);function e(r){return r===void 0&&(r=""),t.call(this,"InvalidCharacterError","The string contains invalid characters. "+r)||this}return e}(me);ae.InvalidCharacterError=VO});var $p=_(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var St=oe(),XO=function(){function t(){}return t.isNode=function(e){return!!e&&e._nodeType!==void 0},t.isDocumentNode=function(e){return t.isNode(e)&&e._nodeType===St.NodeType.Document},t.isDocumentTypeNode=function(e){return t.isNode(e)&&e._nodeType===St.NodeType.DocumentType},t.isDocumentFragmentNode=function(e){return t.isNode(e)&&e._nodeType===St.NodeType.DocumentFragment},t.isAttrNode=function(e){return t.isNode(e)&&e._nodeType===St.NodeType.Attribute},t.isCharacterDataNode=function(e){if(!t.isNode(e))return!1;var r=e._nodeType;return r===St.NodeType.Text||r===St.NodeType.ProcessingInstruction||r===St.NodeType.Comment||r===St.NodeType.CData},t.isTextNode=function(e){return t.isNode(e)&&(e._nodeType===St.NodeType.Text||e._nodeType===St.NodeType.CData)},t.isExclusiveTextNode=function(e){return t.isNode(e)&&e._nodeType===St.NodeType.Text},t.isCDATASectionNode=function(e){return t.isNode(e)&&e._nodeType===St.NodeType.CData},t.isCommentNode=function(e){return t.isNode(e)&&e._nodeType===St.NodeType.Comment},t.isProcessingInstructionNode=function(e){return t.isNode(e)&&e._nodeType===St.NodeType.ProcessingInstruction},t.isElementNode=function(e){return t.isNode(e)&&e._nodeType===St.NodeType.Element},t.isCustomElementNode=function(e){return t.isElementNode(e)&&e._customElementState==="custom"},t.isShadowRoot=function(e){return!!e&&e.host!==void 0},t.isMouseEvent=function(e){return!!e&&e.screenX!==void 0&&e.screenY!=null},t.isSlotable=function(e){return!!e&&e._name!==void 0&&e._assignedSlot!==void 0&&(t.isTextNode(e)||t.isElementNode(e))},t.isSlot=function(e){return!!e&&e._name!==void 0&&e._assignedNodes!==void 0&&t.isElementNode(e)},t.isWindow=function(e){return!!e&&e.navigator!==void 0},t.isEventListener=function(e){return!!e&&e.handleEvent!==void 0},t.isRegisteredObserver=function(e){return!!e&&e.observer!==void 0&&e.options!==void 0},t.isTransientRegisteredObserver=function(e){return!!e&&e.source!==void 0&&t.isRegisteredObserver(e)},t}();Wp.Guard=XO});var zg=_(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var YO=$p(),JO=function(){function t(){}return t.asNode=function(e){if(YO.Guard.isNode(e))return e;throw new Error("Invalid object. Node expected.")},t}();Vp.Cast=JO});var qg=_(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var KO=function(){function t(){}return Object.defineProperty(t.prototype,"size",{get:function(){return 0},enumerable:!0,configurable:!0}),t.prototype.add=function(e){throw new Error("Cannot add to an empty set.")},t.prototype.clear=function(){},t.prototype.delete=function(e){return!1},t.prototype.forEach=function(e,r){},t.prototype.has=function(e){return!1},t.prototype[Symbol.iterator]=function(){return new Bu},t.prototype.entries=function(){return new Bu},t.prototype.keys=function(){return new Bu},t.prototype.values=function(){return new Bu},Object.defineProperty(t.prototype,Symbol.toStringTag,{get:function(){return"EmptySet"},enumerable:!0,configurable:!0}),t}();Xp.EmptySet=KO;var Bu=function(){function t(){}return t.prototype[Symbol.iterator]=function(){return this},t.prototype.next=function(){return{done:!0,value:null}},t}()});var de=_(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var QO=zg();pa.Cast=QO.Cast;var ZO=$p();pa.Guard=ZO.Guard;var eL=qg();pa.EmptySet=eL.EmptySet});var ma=_(ha=>{"use strict";var tL=ha&&ha.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(ha,"__esModule",{value:!0});var rL=Ue(),Bg=de(),no=Z(),nL=function(){function t(){}return Object.defineProperty(t.prototype,"_eventListenerList",{get:function(){return this.__eventListenerList||(this.__eventListenerList=[])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_eventHandlerMap",{get:function(){return this.__eventHandlerMap||(this.__eventHandlerMap={})},enumerable:!0,configurable:!0}),t.prototype.addEventListener=function(e,r,n){n===void 0&&(n={passive:!1,once:!1,capture:!1});var i=tL(no.eventTarget_flattenMore(n),3),o=i[0],a=i[1],s=i[2],l;if(r)Bg.Guard.isEventListener(r)?l=r:l={handleEvent:r};else return;no.eventTarget_addEventListener(this,{type:e,callback:l,capture:o,passive:a,once:s,removed:!1})},t.prototype.removeEventListener=function(e,r,n){n===void 0&&(n={capture:!1});var i=no.eventTarget_flatten(n);if(!!r)for(var o=0;o{"use strict";var iL=_a&&_a.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(_a,"__esModule",{value:!0});var oL=ma(),aL=le(),sL=Z(),lL=function(t){iL(e,t);function e(){var r=t.call(this)||this;return r._signalSlots=new Set,r._mutationObserverMicrotaskQueued=!1,r._mutationObservers=new Set,r._iteratorList=new aL.FixedSizeSet,r._associatedDocument=sL.create_document(),r}return Object.defineProperty(e.prototype,"document",{get:function(){return this._associatedDocument},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this._currentEvent},enumerable:!0,configurable:!0}),e._create=function(){return new e},e}(oL.EventTargetImpl);_a.WindowImpl=lL});var jg=_(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var uL;(function(t){t[t.SchemeStart=0]="SchemeStart",t[t.Scheme=1]="Scheme",t[t.NoScheme=2]="NoScheme",t[t.SpecialRelativeOrAuthority=3]="SpecialRelativeOrAuthority",t[t.PathOrAuthority=4]="PathOrAuthority",t[t.Relative=5]="Relative",t[t.RelativeSlash=6]="RelativeSlash",t[t.SpecialAuthoritySlashes=7]="SpecialAuthoritySlashes",t[t.SpecialAuthorityIgnoreSlashes=8]="SpecialAuthorityIgnoreSlashes",t[t.Authority=9]="Authority",t[t.Host=10]="Host",t[t.Hostname=11]="Hostname",t[t.Port=12]="Port",t[t.File=13]="File",t[t.FileSlash=14]="FileSlash",t[t.FileHost=15]="FileHost",t[t.PathStart=16]="PathStart",t[t.Path=17]="Path",t[t.CannotBeABaseURLPath=18]="CannotBeABaseURLPath",t[t.Query=19]="Query",t[t.Fragment=20]="Fragment"})(uL=va.ParserState||(va.ParserState={}));va.OpaqueOrigin=["","",null,null]});var sh=_(H=>{"use strict";var qt=H&&H.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},cL=H&&H.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(H,"__esModule",{value:!0});var Et=le(),x=jg(),Ye=Fe(),Gg=je("url"),Jp,Ug={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Hg=/[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,fL=/[ "<>`]|[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,dL=/[ "<>`#?{}]|[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,nh=/[ "<>`#?{}/:;=@\[\]\\\^\|]|[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ju=/[0-9A-Za-z!\$&-\/:;=\?@_~\xA0-\uD7FF\uE000-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uD83E\uD840-\uD87E\uD880-\uD8BE\uD8C0-\uD8FE\uD900-\uD93E\uD940-\uD97E\uD980-\uD9BE\uD9C0-\uD9FE\uDA00-\uDA3E\uDA40-\uDA7E\uDA80-\uDABE\uDAC0-\uDAFE\uDB00-\uDB3E\uDB40-\uDB7E\uDB80-\uDBBE\uDBC0-\uDBFE][\uDC00-\uDFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDC00-\uDFFD]/,pL=/[\0\t\f\r #%/:?@\[\\\]]/;function hL(t){Jp=t}H.setValidationErrorCallback=hL;function R(t){Jp!==void 0&&Jp.call(null,"Validation Error: "+t)}function Wg(){return{scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,_cannotBeABaseURLFlag:!1,_blobURLEntry:null}}H.newURL=Wg;function io(t){return t in Ug}H.isSpecialScheme=io;function He(t){return io(t.scheme)}H.isSpecial=He;function Kp(t){return Ug[t]||null}H.defaultPort=Kp;function Uu(t){return t.username!==""||t.password!==""}H.includesCredentials=Uu;function mL(t){return t.host===null||t.host===""||t._cannotBeABaseURLFlag||t.scheme==="file"}H.cannotHaveAUsernamePasswordPort=mL;function Qp(t,e){var r,n;e===void 0&&(e=!1);var i=t.scheme+":";if(t.host!==null?(i+="//",Uu(t)&&(i+=t.username,t.password!==""&&(i+=":"+t.password),i+="@"),i+=ih(t.host),t.port!==null&&(i+=":"+t.port)):t.host===null&&t.scheme==="file"&&(i+="//"),t._cannotBeABaseURLFlag)i+=t.path[0];else try{for(var o=qt(t.path),a=o.next();!a.done;a=o.next()){var s=a.value;i+="/"+s}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return t.query!==null&&(i+="?"+t.query),!e&&t.fragment!==null&&(i+="#"+t.fragment),i}H.urlSerializer=Qp;function ih(t){return Et.isNumber(t)?$g(t):Et.isArray(t)?"["+Vg(t)+"]":t}H.hostSerializer=ih;function $g(t){for(var e="",r=t,n=1;n<=4;n++)e=(r%256).toString()+e,n!==4&&(e="."+e),r=Math.floor(r/256);return e}H.iPv4Serializer=$g;function Vg(t){for(var e="",r=null,n=-1,i=0,o=0,a=0;a<8;a++)if(t[a]===0){i=1;for(var s=a+1;s<8&&t[s]===0;s++)i++;i>o&&(o=i,n=a)}o>1&&(r=n);for(var l=!1,u=0;u<8;u++)if(!(l&&t[u]===0)){if(l&&(l=!1),r===u){e+=u===0?"::":":",l=!0;continue}e+=t[u].toString(16),u!==7&&(e+=":")}return e}H.iPv6Serializer=Vg;function _L(t,e,r){var n=oh(t,e,r);if(n===null)return null;if(n.scheme!=="blob")return n;var i=Zg(n);return i!==null?n._blobURLEntry=i:n._blobURLEntry=null,n}H.urlParser=_L;function oh(t,e,r,n,i){var o,a,s,l;if(n===void 0){n=Wg();var u=/^[\u0000-\u001F\u0020]+/,c=/[\u0000-\u001F\u0020]+$/;(u.test(t)||c.test(t))&&R("Input string contains leading or trailing control characters or space."),t=t.replace(u,""),t=t.replace(c,"")}var f=/[\u0009\u000A\u000D]/g;f.test(t)&&R("Input string contains tab or newline characters."),t=t.replace(f,"");var d=i===void 0?x.ParserState.SchemeStart:i;e===void 0&&(e=null);for(var p=r===void 0||r==="replacement"||r==="UTF-16BE"||r==="UTF-16LE"?"UTF-8":r,h="",m=!1,y=!1,g=!1,b="",v=new Et.StringWalker(t);;){switch(d){case x.ParserState.SchemeStart:if(Ye.codePoint.ASCIIAlpha.test(v.c()))h+=v.c().toLowerCase(),d=x.ParserState.Scheme;else if(i===void 0)d=x.ParserState.NoScheme,v.pointer--;else return R("Invalid scheme start character."),null;break;case x.ParserState.Scheme:if(Ye.codePoint.ASCIIAlphanumeric.test(v.c())||v.c()==="+"||v.c()==="-"||v.c()===".")h+=v.c().toLowerCase();else if(v.c()===":"){if(i!==void 0&&(io(n.scheme)&&!io(h)||!io(n.scheme)&&io(h)||(Uu(n)||n.port!==null)&&h==="file"||n.scheme==="file"&&(n.host===""||n.host===null)))return n;if(n.scheme=h,i!==void 0)return n.port===Kp(n.scheme)&&(n.port=null),n;h="",n.scheme==="file"?(v.remaining().startsWith("//")||R("Invalid file URL scheme, '//' expected."),d=x.ParserState.File):He(n)&&e!==null&&e.scheme===n.scheme?d=x.ParserState.SpecialRelativeOrAuthority:He(n)?d=x.ParserState.SpecialAuthoritySlashes:v.remaining().startsWith("/")?(d=x.ParserState.PathOrAuthority,v.pointer++):(n._cannotBeABaseURLFlag=!0,n.path.push(""),d=x.ParserState.CannotBeABaseURLPath)}else if(i===void 0){h="",d=x.ParserState.NoScheme,v.pointer=0;continue}else return R("Invalid input string."),null;break;case x.ParserState.NoScheme:if(e===null||e._cannotBeABaseURLFlag&&v.c()!=="#")return R("Invalid input string."),null;e._cannotBeABaseURLFlag&&v.c()==="#"?(n.scheme=e.scheme,n.path=Ye.list.clone(e.path),n.query=e.query,n.fragment="",n._cannotBeABaseURLFlag=!0,d=x.ParserState.Fragment):e.scheme!=="file"?(d=x.ParserState.Relative,v.pointer--):(d=x.ParserState.File,v.pointer--);break;case x.ParserState.SpecialRelativeOrAuthority:v.c()==="/"&&v.remaining().startsWith("/")?(d=x.ParserState.SpecialAuthorityIgnoreSlashes,v.pointer++):(R("Invalid input string."),d=x.ParserState.Relative,v.pointer--);break;case x.ParserState.PathOrAuthority:v.c()==="/"?d=x.ParserState.Authority:(d=x.ParserState.Path,v.pointer--);break;case x.ParserState.Relative:if(e===null)throw new Error("Invalid parser state. Base URL is null.");switch(n.scheme=e.scheme,v.c()){case b:n.username=e.username,n.password=e.password,n.host=e.host,n.port=e.port,n.path=Ye.list.clone(e.path),n.query=e.query;break;case"/":d=x.ParserState.RelativeSlash;break;case"?":n.username=e.username,n.password=e.password,n.host=e.host,n.port=e.port,n.path=Ye.list.clone(e.path),n.query="",d=x.ParserState.Query;break;case"#":n.username=e.username,n.password=e.password,n.host=e.host,n.port=e.port,n.path=Ye.list.clone(e.path),n.query=e.query,n.fragment="",d=x.ParserState.Fragment;break;default:He(n)&&v.c()==="\\"?(R("Invalid input string."),d=x.ParserState.RelativeSlash):(n.username=e.username,n.password=e.password,n.host=e.host,n.port=e.port,n.path=Ye.list.clone(e.path),n.path.length!==0&&n.path.splice(n.path.length-1,1),d=x.ParserState.Path,v.pointer--);break}break;case x.ParserState.RelativeSlash:if(He(n)&&(v.c()==="/"||v.c()==="\\"))v.c()==="\\"&&R("Invalid input string."),d=x.ParserState.SpecialAuthorityIgnoreSlashes;else if(v.c()==="/")d=x.ParserState.Authority;else{if(e===null)throw new Error("Invalid parser state. Base URL is null.");n.username=e.username,n.password=e.password,n.host=e.host,n.port=e.port,d=x.ParserState.Path,v.pointer--}break;case x.ParserState.SpecialAuthoritySlashes:v.c()==="/"&&v.remaining().startsWith("/")?(d=x.ParserState.SpecialAuthorityIgnoreSlashes,v.pointer++):(R("Expected '//'."),d=x.ParserState.SpecialAuthorityIgnoreSlashes,v.pointer--);break;case x.ParserState.SpecialAuthorityIgnoreSlashes:v.c()!=="/"&&v.c()!=="\\"?(d=x.ParserState.Authority,v.pointer--):R("Unexpected '/' or '\\'.");break;case x.ParserState.Authority:if(v.c()==="@"){R("Unexpected '@'."),m&&(h="%40"+h),m=!0;try{for(var S=(o=void 0,qt(h)),E=S.next();!E.done;E=S.next()){var A=E.value;if(A===":"&&!g){g=!0;continue}var N=vn(A,nh);g?n.password+=N:n.username+=N}}catch(Te){o={error:Te}}finally{try{E&&!E.done&&(a=S.return)&&a.call(S)}finally{if(o)throw o.error}}h=""}else if(v.c()===b||v.c()==="/"||v.c()==="?"||v.c()==="#"||He(n)&&v.c()==="\\"){if(m&&h==="")return R("Invalid input string."),null;v.pointer-=h.length+1,h="",d=x.ParserState.Host}else h+=v.c();break;case x.ParserState.Host:case x.ParserState.Hostname:if(i!==void 0&&n.scheme==="file")v.pointer--,d=x.ParserState.FileHost;else if(v.c()===":"&&!y){if(h==="")return R("Invalid input string."),null;var D=Gu(h,!He(n));if(D===null)return null;if(n.host=D,h="",d=x.ParserState.Port,i===x.ParserState.Hostname)return n}else if(v.c()===b||v.c()==="/"||v.c()==="?"||v.c()==="#"||He(n)&&v.c()==="\\"){if(v.pointer--,He(n)&&h==="")return R("Invalid input string."),null;if(i!==void 0&&h===""&&(Uu(n)||n.port!==null))return R("Invalid input string."),n;var D=Gu(h,!He(n));if(D===null)return null;if(n.host=D,h="",d=x.ParserState.PathStart,i!==void 0)return n}else v.c()==="["&&(y=!0),v.c()==="]"&&(y=!1),h+=v.c();break;case x.ParserState.Port:if(Ye.codePoint.ASCIIDigit.test(v.c()))h+=v.c();else if(v.c()===b||v.c()==="/"||v.c()==="?"||v.c()==="#"||He(n)&&v.c()==="\\"||i){if(h!==""&&h!==""){var P=parseInt(h,10);if(P>Math.pow(2,16)-1)return R("Invalid port number."),null;n.port=P===Kp(n.scheme)?null:P,h=""}if(i!==void 0)return n;d=x.ParserState.PathStart,v.pointer--}else return R("Invalid input string."),null;break;case x.ParserState.File:if(n.scheme="file",v.c()==="/"||v.c()==="\\")v.c()==="\\"&&R("Invalid input string."),d=x.ParserState.FileSlash;else if(e!==null&&e.scheme==="file")switch(v.c()){case b:n.host=e.host,n.path=Ye.list.clone(e.path),n.query=e.query;break;case"?":n.host=e.host,n.path=Ye.list.clone(e.path),n.query="",d=x.ParserState.Query;break;case"#":n.host=e.host,n.path=Ye.list.clone(e.path),n.query=e.query,n.fragment="",d=x.ParserState.Fragment;break;default:th(v.substring())?R("Unexpected windows drive letter in input string."):(n.host=e.host,n.path=Ye.list.clone(e.path),eh(n)),d=x.ParserState.Path,v.pointer--;break}else d=x.ParserState.Path,v.pointer--;break;case x.ParserState.FileSlash:v.c()==="/"||v.c()==="\\"?(v.c()==="\\"&&R("Invalid input string."),d=x.ParserState.FileHost):(e!==null&&e.scheme==="file"&&!th(v.substring())&&(ah(e.path[0])?n.path.push(e.path[0]):n.host=e.host),d=x.ParserState.Path,v.pointer--);break;case x.ParserState.FileHost:if(v.c()===b||v.c()==="/"||v.c()==="\\"||v.c()==="?"||v.c()==="#")if(v.pointer--,i===void 0&&Hu(h))R("Unexpected windows drive letter in input string."),d=x.ParserState.Path;else if(h===""){if(n.host="",i!==void 0)return n;d=x.ParserState.PathStart}else{var D=Gu(h,!He(n));if(D===null)return null;if(D==="localhost"&&(D=""),n.host=D,i!==void 0)return n;h="",d=x.ParserState.PathStart}else h+=v.c();break;case x.ParserState.PathStart:He(n)?(v.c()==="\\"&&R("Invalid input string."),d=x.ParserState.Path,v.c()!=="/"&&v.c()!=="\\"&&v.pointer--):i===void 0&&v.c()==="?"?(n.query="",d=x.ParserState.Query):i===void 0&&v.c()==="#"?(n.fragment="",d=x.ParserState.Fragment):v.c()!==b&&(d=x.ParserState.Path,v.c()!=="/"&&v.pointer--);break;case x.ParserState.Path:if(v.c()===b||v.c()==="/"||He(n)&&v.c()==="\\"||i===void 0&&(v.c()==="?"||v.c()==="#")){if(He(n)&&v.c()==="\\"&&R("Invalid input string."),Xg(h))eh(n),v.c()!=="/"&&!(He(n)&&v.c()==="\\")&&n.path.push("");else if(Zp(h)&&v.c()!=="/"&&!(He(n)&&v.c()==="\\"))n.path.push("");else if(!Zp(h)){if(n.scheme==="file"&&n.path.length===0&&Hu(h)){n.host!==null&&n.host!==""&&(R("Invalid input string."),n.host="");var C=Array.from(h);h=C.slice(0,1)+":"+C.slice(2)}n.path.push(h)}if(h="",n.scheme==="file"&&(v.c()===b||v.c()==="?"||v.c()==="#"))for(;n.path.length>1&&n.path[0]==="";)R("Invalid input string."),n.path.splice(0,1);v.c()==="?"&&(n.query="",d=x.ParserState.Query),v.c()==="#"&&(n.fragment="",d=x.ParserState.Fragment)}else!ju.test(v.c())&&v.c()!=="%"&&R("Character is not a URL code point or a percent encoded character."),v.c()==="%"&&!/^[0-9a-fA-F][0-9a-fA-F]/.test(v.remaining())&&R("Percent encoded character must be followed by two hex digits."),h+=vn(v.c(),dL);break;case x.ParserState.CannotBeABaseURLPath:v.c()==="?"?(n.query="",d=x.ParserState.Query):v.c()==="#"?(n.fragment="",d=x.ParserState.Fragment):(v.c()!==b&&!ju.test(v.c())&&v.c()!=="%"&&R("Character is not a URL code point or a percent encoded character."),v.c()==="%"&&!/^[0-9a-fA-F][0-9a-fA-F]/.test(v.remaining())&&R("Percent encoded character must be followed by two hex digits."),v.c()!==b&&(n.path[0]+=vn(v.c(),Hg)));break;case x.ParserState.Query:if(p!=="UTF-8"&&(!He(n)||n.scheme==="ws"||n.scheme==="wss")&&(p="UTF-8"),i===void 0&&v.c()==="#")n.fragment="",d=x.ParserState.Fragment;else if(v.c()!==b){if(!ju.test(v.c())&&v.c()!=="%"&&R("Character is not a URL code point or a percent encoded character."),v.c()==="%"&&!/^[0-9a-fA-F][0-9a-fA-F]/.test(v.remaining())&&R("Percent encoded character must be followed by two hex digits."),p.toUpperCase()!=="UTF-8")throw new Error("Only UTF-8 encoding is supported.");var T=Et.utf8Encode(v.c());if(T.length>=3&&T[0]===38&&T[1]===35&&T[T.length-1]===59)T=T.subarray(2,T.length-1),n.query+="%26%23"+Ye.byteSequence.isomorphicDecode(T)+"%3B";else try{for(var B=(s=void 0,qt(T)),M=B.next();!M.done;M=B.next()){var U=M.value;U<33||U>126||U===34||U===35||U===60||U===62||U===39&&He(n)?n.query+=Wu(U):n.query+=String.fromCharCode(U)}}catch(Te){s={error:Te}}finally{try{M&&!M.done&&(l=B.return)&&l.call(B)}finally{if(s)throw s.error}}}break;case x.ParserState.Fragment:v.c()===b||(v.c()==="\0"?R("NULL character in input string."):(!ju.test(v.c())&&v.c()!=="%"&&R("Unexpected character in fragment string."),v.c()==="%"&&!/^[A-Za-z0-9][A-Za-z0-9]/.test(v.remaining())&&R("Unexpected character in fragment string."),n.fragment+=vn(v.c(),fL)));break}if(v.eof)break;v.pointer++}return n}H.basicURLParser=oh;function vL(t,e){var r,n,i="";try{for(var o=qt(e),a=o.next();!a.done;a=o.next()){var s=a.value;i+=vn(s,nh)}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.username=i}H.setTheUsername=vL;function yL(t,e){var r,n,i="";try{for(var o=qt(e),a=o.next();!a.done;a=o.next()){var s=a.value;i+=vn(s,nh)}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.password=i}H.setThePassword=yL;function Zp(t){return t==="."||t.toLowerCase()==="%2e"}H.isSingleDotPathSegment=Zp;function Xg(t){var e=t.toLowerCase();return e===".."||e===".%2e"||e==="%2e."||e==="%2e%2e"}H.isDoubleDotPathSegment=Xg;function eh(t){var e=t.path;e.length!==0&&(t.scheme==="file"&&e.length===1&&ah(e[0])||t.path.splice(t.path.length-1,1))}H.shorten=eh;function ah(t){return t.length>=2&&Ye.codePoint.ASCIIAlpha.test(t[0])&&t[1]===":"}H.isNormalizedWindowsDriveLetter=ah;function Hu(t){return t.length>=2&&Ye.codePoint.ASCIIAlpha.test(t[0])&&(t[1]===":"||t[1]==="|")}H.isWindowsDriveLetter=Hu;function th(t){return t.length>=2&&Hu(t)&&(t.length===2||t[2]==="/"||t[2]==="\\"||t[2]==="?"||t[2]==="#")}H.startsWithAWindowsDriveLetter=th;function Gu(t,e){if(e===void 0&&(e=!1),t.startsWith("["))return t.endsWith("]")?Kg(t.substring(1,t.length-1)):(R("Expected ']' after '['."),null);if(e)return Qg(t);var r=Et.utf8Decode(t0(t)),n=i0(r);if(n===null||pL.test(n))return R("Invalid domain."),null;var i=Jg(n);return i===null||Et.isNumber(i)?i:n}H.hostParser=Gu;function Yg(t,e){e===void 0&&(e={value:!1});var r=10;if(t.startsWith("0x")||t.startsWith("0X")?(e.value=!0,t=t.substr(2),r=16):t.length>=2&&t[0]==="0"&&(e.value=!0,t=t.substr(1),r=8),t==="")return 0;var n=r===10?/^[0-9]+$/:r===16?/^[0-9A-Fa-f]+$/:/^[0-7]+$/;return n.test(t)?parseInt(t,r):null}H.iPv4NumberParser=Yg;function Jg(t){var e,r,n,i,o={value:!1},a=t.split(".");if(a[a.length-1]===""&&(o.value=!0,a.length>1&&a.pop()),a.length>4)return t;var s=[];try{for(var l=qt(a),u=l.next();!u.done;u=l.next()){var c=u.value;if(c==="")return t;var f=Yg(c,o);if(f===null)return t;s.push(f)}}catch(b){e={error:b}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}o.value&&R("Invalid IP v4 address.");for(var d=0;d255&&(R("Invalid IP v4 address."),d=Math.pow(256,5-s.length))return R("Invalid IP v4 address."),null;var h=s[s.length-1];s.pop();var m=0;try{for(var y=qt(s),g=y.next();!g.done;g=y.next()){var f=g.value;h+=f*Math.pow(256,3-m),m++}}catch(b){n={error:b}}finally{try{g&&!g.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}return h}H.iPv4Parser=Jg;function Kg(t){var e,r="",n=[0,0,0,0,0,0,0,0],i=0,o=null,a=new Et.StringWalker(t);if(a.c()===":"){if(!a.remaining().startsWith(":"))return R("Invalid IP v6 address."),null;a.pointer+=2,i+=1,o=i}for(;a.c()!==r;){if(i===8)return R("Invalid IP v6 address."),null;if(a.c()===":"){if(o!==null)return R("Invalid IP v6 address."),null;a.pointer++,i++,o=i;continue}for(var s=0,l=0;l<4&&Ye.codePoint.ASCIIHexDigit.test(a.c());)s=s*16+parseInt(a.c(),16),a.pointer++,l++;if(a.c()==="."){if(l===0||(a.pointer-=l,i>6))return R("Invalid IP v6 address."),null;for(var u=0;a.c()!==r;){var c=null;if(u>0)if(a.c()==="."&&u<4)a.pointer++;else return R("Invalid IP v6 address."),null;if(!Ye.codePoint.ASCIIDigit.test(a.c()))return R("Invalid IP v6 address."),null;for(;Ye.codePoint.ASCIIDigit.test(a.c());){var f=parseInt(a.c(),10);if(c===null)c=f;else{if(c===0)return R("Invalid IP v6 address."),null;c=c*10+f}if(c>255)return R("Invalid IP v6 address."),null;a.pointer++}if(c===null)return R("Invalid IP v6 address."),null;n[i]=n[i]*256+c,u++,(u===2||u===4)&&i++}if(u!==4)return R("Invalid IP v6 address."),null;break}else if(a.c()===":"){if(a.pointer++,a.c()===r)return R("Invalid IP v6 address."),null}else if(a.c()!==r)return R("Invalid IP v6 address."),null;n[i]=s,i++}if(o!==null){var d=i-o;for(i=7;i!==0&&d>0;)e=cL([n[o+d-1],n[i]],2),n[i]=e[0],n[o+d-1]=e[1],i--,d--}else if(o===null&&i!==8)return R("Invalid IP v6 address."),null;return n}H.iPv6Parser=Kg;function Qg(t){var e,r,n=/[\x00\t\f\r #/:?@\[\\\]]/;if(n.test(t))return R("Invalid host string."),null;var i="";try{for(var o=qt(t),a=o.next();!a.done;a=o.next()){var s=a.value;i+=vn(s,Hg)}}catch(l){e={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return i}H.opaqueHostParser=Qg;function Zg(t){return null}H.resolveABlobURL=Zg;function Wu(t){return"%"+("00"+t.toString(16).toUpperCase()).slice(-2)}H.percentEncode=Wu;function e0(t){for(var e=function(s){return s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102},r=new Uint8Array(t.length),n=0,i=0;i=t.length-2)r[n]=o,n++;else if(o===37&&(!e(t[i+1])||!e(t[i+2])))r[n]=o,n++;else{var a=parseInt(Et.utf8Decode(Uint8Array.of(t[i+1],t[i+2])),16);r[n]=a,n++,i+=2}}return r.subarray(0,n)}H.percentDecode=e0;function t0(t){return e0(Et.utf8Encode(t))}H.stringPercentDecode=t0;function vn(t,e){var r,n;if(!e.test(t))return t;var i=Et.utf8Encode(t),o="";try{for(var a=qt(i),s=a.next();!s.done;s=a.next()){var l=s.value;o+=Wu(l)}}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}H.utf8PercentEncode=vn;function gL(t,e){return t===e}H.hostEquals=gL;function bL(t,e,r){return r===void 0&&(r=!1),Qp(t,r)===Qp(e,r)}H.urlEquals=bL;function wL(t){return r0(Et.utf8Encode(t))}H.urlEncodedStringParser=wL;function r0(t){var e,r,n,i,o=[],a=[];try{for(var s=qt(t),l=s.next();!l.done;l=s.next()){var u=l.value;u===38?(o.push(Uint8Array.from(a)),a=[]):a.push(u)}}catch(S){e={error:S}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}a.length!==0&&o.push(Uint8Array.from(a));var c=[];try{for(var f=qt(o),d=f.next();!d.done;d=f.next()){var p=d.value;if(p.length!==0){for(var h=p.indexOf(61),m=h!==-1?p.slice(0,h):p,y=h!==-1?p.slice(h+1):new Uint8Array,g=0;g=48&&a<=57||a>=65&&a<=90||a===95||a>=97&&a<=122?n+=String.fromCodePoint(a):n+=Wu(a)}}catch(s){e={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}H.urlEncodedByteSerializer=rh;function SL(t,e){var r,n,i=e===void 0||e==="replacement"||e==="UTF-16BE"||e==="UTF-16LE"?"UTF-8":e;if(i.toUpperCase()!=="UTF-8")throw new Error("Only UTF-8 encoding is supported.");var o="";try{for(var a=qt(t),s=a.next();!s.done;s=a.next()){var l=s.value,u=rh(Et.utf8Encode(l[0])),c=l[1];c=rh(Et.utf8Encode(c)),o!==""&&(o+="&"),o+=u+"="+c}}catch(f){r={error:f}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}H.urlEncodedSerializer=SL;function n0(t){switch(t.scheme){case"blob":t._blobURLEntry;var e=oh(t.path[0]);return e===null?x.OpaqueOrigin:n0(e);case"ftp":case"http":case"https":case"ws":case"wss":return[t.scheme,t.host===null?"":t.host,t.port,null];case"file":return x.OpaqueOrigin;default:return x.OpaqueOrigin}}H.origin=n0;function i0(t,e){e===void 0&&(e=!1);var r=Gg.domainToASCII(t);return r===""?(R("Invalid domain name."),null):r}H.domainToASCII=i0;function EL(t,e){e===void 0&&(e=!1);var r=Gg.domainToUnicode(t);return r===""&&R("Invalid domain name."),r}H.domainToUnicode=EL;function xL(t){if(t[0]===""&&t[1]===""&&t[2]===null&&t[3]===null)return"null";var e=t[0]+"://"+ih(t[1]);return t[2]!==null&&(e+=":"+t[2].toString()),e}H.asciiSerializationOfAnOrigin=xL});var yn=_(ii=>{"use strict";var NL=ii&&ii.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),o0=ii&&ii.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ii,"__esModule",{value:!0});var $u=De(),ft=oe(),CL=ma(),X=de(),AL=Ue(),$=Z(),OL=sh(),Je=ct(),Me=function(t){NL(e,t);function e(){var r=t.call(this)||this;return r._parent=null,r._firstChild=null,r._lastChild=null,r._previousSibling=null,r._nextSibling=null,r}return Object.defineProperty(e.prototype,"_childNodes",{get:function(){return this.__childNodes||(this.__childNodes=$.create_nodeList(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_nodeDocument",{get:function(){return this._nodeDocumentOverride||$u.dom.window._associatedDocument},set:function(r){this._nodeDocumentOverride=r},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_registeredObserverList",{get:function(){return this.__registeredObserverList||(this.__registeredObserverList=[])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeType",{get:function(){return this._nodeType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeName",{get:function(){return X.Guard.isElementNode(this)?this._htmlUppercasedQualifiedName:X.Guard.isAttrNode(this)?this._qualifiedName:X.Guard.isExclusiveTextNode(this)?"#text":X.Guard.isCDATASectionNode(this)?"#cdata-section":X.Guard.isProcessingInstructionNode(this)?this._target:X.Guard.isCommentNode(this)?"#comment":X.Guard.isDocumentNode(this)?"#document":X.Guard.isDocumentTypeNode(this)?this._name:X.Guard.isDocumentFragmentNode(this)?"#document-fragment":""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseURI",{get:function(){return OL.urlSerializer(this._nodeDocument._URL)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isConnected",{get:function(){return X.Guard.isElementNode(this)&&$.shadowTree_isConnected(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ownerDocument",{get:function(){return this._nodeType===ft.NodeType.Document?null:this._nodeDocument},enumerable:!0,configurable:!0}),e.prototype.getRootNode=function(r){return $.tree_rootNode(this,!!r&&r.composed)},Object.defineProperty(e.prototype,"parentNode",{get:function(){return this._nodeType===ft.NodeType.Attribute?null:this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this._parent&&X.Guard.isElementNode(this._parent)?this._parent:null},enumerable:!0,configurable:!0}),e.prototype.hasChildNodes=function(){return this._firstChild!==null},Object.defineProperty(e.prototype,"childNodes",{get:function(){return this._childNodes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._firstChild},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this._lastChild},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this._previousSibling},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this._nextSibling},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeValue",{get:function(){return X.Guard.isAttrNode(this)?this._value:X.Guard.isCharacterDataNode(this)?this._data:null},set:function(r){r===null&&(r=""),X.Guard.isAttrNode(this)?$.attr_setAnExistingAttributeValue(this,r):X.Guard.isCharacterDataNode(this)&&$.characterData_replaceData(this,0,this._data.length,r)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{get:function(){return X.Guard.isDocumentFragmentNode(this)||X.Guard.isElementNode(this)?$.text_descendantTextContent(this):X.Guard.isAttrNode(this)?this._value:X.Guard.isCharacterDataNode(this)?this._data:null},set:function(r){r===null&&(r=""),X.Guard.isDocumentFragmentNode(this)||X.Guard.isElementNode(this)?$.node_stringReplaceAll(r,this):X.Guard.isAttrNode(this)?$.attr_setAnExistingAttributeValue(this,r):X.Guard.isCharacterDataNode(this)&&$.characterData_replaceData(this,0,$.tree_nodeLength(this),r)},enumerable:!0,configurable:!0}),e.prototype.normalize=function(){for(var r,n,i,o,a=[],s=$.tree_getFirstDescendantNode(this,!1,!1,function(N){return X.Guard.isExclusiveTextNode(N)});s!==null;)a.push(s),s=$.tree_getNextDescendantNode(this,s,!1,!1,function(N){return X.Guard.isExclusiveTextNode(N)});for(var l=0;l{"use strict";var LL=Ir&&Ir.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),TL=Ir&&Ir.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},PL=Ir&&Ir.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(Ir,"__esModule",{value:!0});var DL=De(),uh=oe(),Dr=Ue(),IL=yn(),ya=de(),lh=le(),FL=Fe(),ML=sh(),ge=Z(),RL=ct(),a0=function(t){LL(e,t);function e(){var r=t.call(this)||this;return r._children=new Set,r._encoding={name:"UTF-8",labels:["unicode-1-1-utf-8","utf-8","utf8"]},r._contentType="application/xml",r._URL={scheme:"about",username:"",password:"",host:null,port:null,path:["blank"],query:null,fragment:null,_cannotBeABaseURLFlag:!0,_blobURLEntry:null},r._origin=null,r._type="xml",r._mode="no-quirks",r._documentElement=null,r._hasNamespaces=!1,r._nodeDocumentOverwrite=null,r}return Object.defineProperty(e.prototype,"_nodeDocument",{get:function(){return this._nodeDocumentOverwrite||this},set:function(r){this._nodeDocumentOverwrite=r},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"implementation",{get:function(){return this._implementation||(this._implementation=ge.create_domImplementation(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"URL",{get:function(){return ML.urlSerializer(this._URL)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentURI",{get:function(){return this.URL},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"origin",{get:function(){return"null"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compatMode",{get:function(){return this._mode==="quirks"?"BackCompat":"CSS1Compat"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"characterSet",{get:function(){return this._encoding.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"charset",{get:function(){return this._encoding.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputEncoding",{get:function(){return this._encoding.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentType",{get:function(){return this._contentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"doctype",{get:function(){var r,n;try{for(var i=TL(this._children),o=i.next();!o.done;o=i.next()){var a=o.value;if(ya.Guard.isDocumentTypeNode(a))return a}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentElement",{get:function(){return this._documentElement},enumerable:!0,configurable:!0}),e.prototype.getElementsByTagName=function(r){return ge.node_listOfElementsWithQualifiedName(r,this)},e.prototype.getElementsByTagNameNS=function(r,n){return ge.node_listOfElementsWithNamespace(r,n,this)},e.prototype.getElementsByClassName=function(r){return ge.node_listOfElementsWithClassNames(r,this)},e.prototype.createElement=function(r,n){if(!ge.xml_isName(r))throw new Dr.InvalidCharacterError;this._type==="html"&&(r=r.toLowerCase());var i=null;n!==void 0&&(lh.isString(n)?i=n:i=n.is);var o=this._type==="html"||this._contentType==="application/xhtml+xml"?FL.namespace.HTML:null;return ge.element_createAnElement(this,r,o,null,i,!0)},e.prototype.createElementNS=function(r,n,i){return ge.document_internalCreateElementNS(this,r,n,i)},e.prototype.createDocumentFragment=function(){return ge.create_documentFragment(this)},e.prototype.createTextNode=function(r){return ge.create_text(this,r)},e.prototype.createCDATASection=function(r){if(this._type==="html")throw new Dr.NotSupportedError;if(r.indexOf("]]>")!==-1)throw new Dr.InvalidCharacterError;return ge.create_cdataSection(this,r)},e.prototype.createComment=function(r){return ge.create_comment(this,r)},e.prototype.createProcessingInstruction=function(r,n){if(!ge.xml_isName(r))throw new Dr.InvalidCharacterError;if(n.indexOf("?>")!==-1)throw new Dr.InvalidCharacterError;return ge.create_processingInstruction(this,r,n)},e.prototype.importNode=function(r,n){if(n===void 0&&(n=!1),ya.Guard.isDocumentNode(r)||ya.Guard.isShadowRoot(r))throw new Dr.NotSupportedError;return ge.node_clone(r,this,n)},e.prototype.adoptNode=function(r){if(ya.Guard.isDocumentNode(r))throw new Dr.NotSupportedError;if(ya.Guard.isShadowRoot(r))throw new Dr.HierarchyRequestError;return ge.document_adopt(r,this),r},e.prototype.createAttribute=function(r){if(!ge.xml_isName(r))throw new Dr.InvalidCharacterError;this._type==="html"&&(r=r.toLowerCase());var n=ge.create_attr(this,r);return n},e.prototype.createAttributeNS=function(r,n){var i=PL(ge.namespace_validateAndExtract(r,n),3),o=i[0],a=i[1],s=i[2],l=ge.create_attr(this,s);return l._namespace=o,l._namespacePrefix=a,l},e.prototype.createEvent=function(r){return ge.event_createLegacyEvent(r)},e.prototype.createRange=function(){var r=ge.create_range();return r._start=[this,0],r._end=[this,0],r},e.prototype.createNodeIterator=function(r,n,i){n===void 0&&(n=uh.WhatToShow.All),i===void 0&&(i=null);var o=ge.create_nodeIterator(r,r,!0);return o._whatToShow=n,o._iteratorCollection=ge.create_nodeList(r),lh.isFunction(i)?(o._filter=ge.create_nodeFilter(),o._filter.acceptNode=i):o._filter=i,o},e.prototype.createTreeWalker=function(r,n,i){n===void 0&&(n=uh.WhatToShow.All),i===void 0&&(i=null);var o=ge.create_treeWalker(r,r);return o._whatToShow=n,lh.isFunction(i)?(o._filter=ge.create_nodeFilter(),o._filter.acceptNode=i):o._filter=i,o},e.prototype._getTheParent=function(r){return r._type==="load"?null:DL.dom.window},e.prototype.getElementById=function(r){throw new Error("Mixin: NonElementParentNode not implemented.")},Object.defineProperty(e.prototype,"children",{get:function(){throw new Error("Mixin: ParentNode not implemented.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){throw new Error("Mixin: ParentNode not implemented.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){throw new Error("Mixin: ParentNode not implemented.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){throw new Error("Mixin: ParentNode not implemented.")},enumerable:!0,configurable:!0}),e.prototype.prepend=function(){for(var r=[],n=0;n{"use strict";var kL=ga&&ga.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ga,"__esModule",{value:!0});var zL=Vu(),qL=function(t){kL(e,t);function e(){return t.call(this)||this}return e}(zL.DocumentImpl);ga.XMLDocumentImpl=qL});var dh=_(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var s0=Z(),BL=function(){function t(){this._signal=s0.create_abortSignal()}return Object.defineProperty(t.prototype,"signal",{get:function(){return this._signal},enumerable:!0,configurable:!0}),t.prototype.abort=function(){s0.abort_signalAbort(this._signal)},t}();fh.AbortControllerImpl=BL});var ph=_(ba=>{"use strict";var jL=ba&&ba.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ba,"__esModule",{value:!0});var GL=ma(),l0=Z(),UL=function(t){jL(e,t);function e(){var r=t.call(this)||this;return r._abortedFlag=!1,r._abortAlgorithms=new Set,r}return Object.defineProperty(e.prototype,"aborted",{get:function(){return this._abortedFlag},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onabort",{get:function(){return l0.event_getterEventHandlerIDLAttribute(this,"onabort")},set:function(r){l0.event_setterEventHandlerIDLAttribute(this,"onabort",r)},enumerable:!0,configurable:!0}),e._create=function(){return new e},e}(GL.EventTargetImpl);ba.AbortSignalImpl=UL});var hh=_(wa=>{"use strict";var HL=wa&&wa.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(wa,"__esModule",{value:!0});var WL=oe(),$L=yn(),VL=ct(),u0=function(t){HL(e,t);function e(r,n,i){var o=t.call(this)||this;return o._name="",o._publicId="",o._systemId="",o._name=r,o._publicId=n,o._systemId=i,o}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"publicId",{get:function(){return this._publicId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"systemId",{get:function(){return this._systemId},enumerable:!0,configurable:!0}),e.prototype.before=function(){for(var r=[],n=0;n{"use strict";var XL=Mr&&Mr.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),YL=Mr&&Mr.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},JL=Mr&&Mr.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(Mr,"__esModule",{value:!0});var KL=oe(),QL=yn(),Fr=Ue(),Sa=Fe(),V=Z(),ZL=ct(),c0=function(t){XL(e,t);function e(){var r=t.call(this)||this;return r._children=new Set,r._namespace=null,r._namespacePrefix=null,r._localName="",r._customElementState="undefined",r._customElementDefinition=null,r._is=null,r._shadowRoot=null,r._attributeList=V.create_namedNodeMap(r),r._attributeChangeSteps=[],r._name="",r._assignedSlot=null,r}return Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return this._namespace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"prefix",{get:function(){return this._namespacePrefix},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localName",{get:function(){return this._localName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this._htmlUppercasedQualifiedName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return V.element_getAnAttributeValue(this,"id")},set:function(r){V.element_setAnAttributeValue(this,"id",r)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return V.element_getAnAttributeValue(this,"class")},set:function(r){V.element_setAnAttributeValue(this,"class",r)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classList",{get:function(){var r=V.element_getAnAttributeByName("class",this);return r===null&&(r=V.create_attr(this._nodeDocument,"class")),V.create_domTokenList(this,r)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slot",{get:function(){return V.element_getAnAttributeValue(this,"slot")},set:function(r){V.element_setAnAttributeValue(this,"slot",r)},enumerable:!0,configurable:!0}),e.prototype.hasAttributes=function(){return this._attributeList.length!==0},Object.defineProperty(e.prototype,"attributes",{get:function(){return this._attributeList},enumerable:!0,configurable:!0}),e.prototype.getAttributeNames=function(){var r,n,i=[];try{for(var o=YL(this._attributeList),a=o.next();!a.done;a=o.next()){var s=a.value;i.push(s._qualifiedName)}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},e.prototype.getAttribute=function(r){var n=V.element_getAnAttributeByName(r,this);return n?n._value:null},e.prototype.getAttributeNS=function(r,n){var i=V.element_getAnAttributeByNamespaceAndLocalName(r,n,this);return i?i._value:null},e.prototype.setAttribute=function(r,n){if(!V.xml_isName(r))throw new Fr.InvalidCharacterError;this._namespace===Sa.namespace.HTML&&this._nodeDocument._type==="html"&&(r=r.toLowerCase());for(var i=null,o=0;o{"use strict";var eT=Ea&&Ea.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ea,"__esModule",{value:!0});var tT=oe(),rT=yn(),nT=ct(),f0=function(t){eT(e,t);function e(r){r===void 0&&(r=null);var n=t.call(this)||this;return n._children=new Set,n._host=r,n}return e.prototype.getElementById=function(r){throw new Error("Mixin: NonElementParentNode not implemented.")},Object.defineProperty(e.prototype,"children",{get:function(){throw new Error("Mixin: ParentNode not implemented.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){throw new Error("Mixin: ParentNode not implemented.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){throw new Error("Mixin: ParentNode not implemented.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){throw new Error("Mixin: ParentNode not implemented.")},enumerable:!0,configurable:!0}),e.prototype.prepend=function(){for(var r=[],n=0;n{"use strict";var iT=xa&&xa.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(xa,"__esModule",{value:!0});var oT=Yu(),aT=le(),sT=Z(),lT=function(t){iT(e,t);function e(r,n){var i=t.call(this)||this;return i._host=r,i._mode=n,i}return Object.defineProperty(e.prototype,"mode",{get:function(){return this._mode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"host",{get:function(){return this._host},enumerable:!0,configurable:!0}),e.prototype._getTheParent=function(r){return!r._composedFlag&&!aT.isEmpty(r._path)&&sT.tree_rootNode(r._path[0].invocationTarget)===this?null:this._host},e._create=function(r,n){return new e(n,"closed")},e}(oT.DocumentFragmentImpl);xa.ShadowRootImpl=lT});var vh=_(Na=>{"use strict";var uT=Na&&Na.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Na,"__esModule",{value:!0});var cT=oe(),fT=yn(),dT=Z(),d0=ct(),_h=function(t){uT(e,t);function e(r){var n=t.call(this)||this;return n._namespace=null,n._namespacePrefix=null,n._element=null,n._value="",n._localName=r,n}return Object.defineProperty(e.prototype,"ownerElement",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return this._namespace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"prefix",{get:function(){return this._namespacePrefix},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localName",{get:function(){return this._localName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._qualifiedName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(r){dT.attr_setAnExistingAttributeValue(this,r)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_qualifiedName",{get:function(){return this._namespacePrefix!==null?this._namespacePrefix+":"+this._localName:this._localName},enumerable:!0,configurable:!0}),e._create=function(r,n){var i=new e(n);return i._nodeDocument=r,i},e}(fT.NodeImpl);Na.AttrImpl=_h;d0.idl_defineConst(_h.prototype,"_nodeType",cT.NodeType.Attribute);d0.idl_defineConst(_h.prototype,"specified",!0)});var Aa=_(Ca=>{"use strict";var pT=Ca&&Ca.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ca,"__esModule",{value:!0});var hT=yn(),oo=Z(),mT=function(t){pT(e,t);function e(r){var n=t.call(this)||this;return n._data=r,n}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(r){oo.characterData_replaceData(this,0,this._data.length,r)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._data.length},enumerable:!0,configurable:!0}),e.prototype.substringData=function(r,n){return oo.characterData_substringData(this,r,n)},e.prototype.appendData=function(r){return oo.characterData_replaceData(this,this._data.length,0,r)},e.prototype.insertData=function(r,n){oo.characterData_replaceData(this,r,0,n)},e.prototype.deleteData=function(r,n){oo.characterData_replaceData(this,r,n,"")},e.prototype.replaceData=function(r,n,i){oo.characterData_replaceData(this,r,n,i)},Object.defineProperty(e.prototype,"previousElementSibling",{get:function(){throw new Error("Mixin: NonDocumentTypeChildNode not implemented.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextElementSibling",{get:function(){throw new Error("Mixin: NonDocumentTypeChildNode not implemented.")},enumerable:!0,configurable:!0}),e.prototype.before=function(){for(var r=[],n=0;n{"use strict";var _T=oi&&oi.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),vT=oi&&oi.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(oi,"__esModule",{value:!0});var yT=oe(),gT=Aa(),p0=Z(),bT=ct(),h0=function(t){_T(e,t);function e(r){r===void 0&&(r="");var n=t.call(this,r)||this;return n._name="",n._assignedSlot=null,n}return Object.defineProperty(e.prototype,"wholeText",{get:function(){var r,n,i="";try{for(var o=vT(p0.text_contiguousTextNodes(this,!0)),a=o.next();!a.done;a=o.next()){var s=a.value;i=i+s._data}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},enumerable:!0,configurable:!0}),e.prototype.splitText=function(r){return p0.text_split(this,r)},Object.defineProperty(e.prototype,"assignedSlot",{get:function(){throw new Error("Mixin: Slotable not implemented.")},enumerable:!0,configurable:!0}),e._create=function(r,n){n===void 0&&(n="");var i=new e(n);return i._nodeDocument=r,i},e}(gT.CharacterDataImpl);oi.TextImpl=h0;bT.idl_defineConst(h0.prototype,"_nodeType",yT.NodeType.Text)});var yh=_(Oa=>{"use strict";var wT=Oa&&Oa.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Oa,"__esModule",{value:!0});var ST=Ju(),ET=oe(),xT=ct(),m0=function(t){wT(e,t);function e(r){return t.call(this,r)||this}return e._create=function(r,n){n===void 0&&(n="");var i=new e(n);return i._nodeDocument=r,i},e}(ST.TextImpl);Oa.CDATASectionImpl=m0;xT.idl_defineConst(m0.prototype,"_nodeType",ET.NodeType.CData)});var gh=_(La=>{"use strict";var NT=La&&La.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(La,"__esModule",{value:!0});var CT=oe(),AT=Aa(),OT=ct(),_0=function(t){NT(e,t);function e(r){return r===void 0&&(r=""),t.call(this,r)||this}return e._create=function(r,n){n===void 0&&(n="");var i=new e(n);return i._nodeDocument=r,i},e}(AT.CharacterDataImpl);La.CommentImpl=_0;OT.idl_defineConst(_0.prototype,"_nodeType",CT.NodeType.Comment)});var bh=_(Ta=>{"use strict";var LT=Ta&&Ta.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ta,"__esModule",{value:!0});var TT=oe(),PT=Aa(),DT=ct(),v0=function(t){LT(e,t);function e(r,n){var i=t.call(this,n)||this;return i._target=r,i}return Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),e._create=function(r,n,i){var o=new e(n,i);return o._nodeDocument=r,o},e}(PT.CharacterDataImpl);Ta.ProcessingInstructionImpl=v0;DT.idl_defineConst(v0.prototype,"_nodeType",TT.NodeType.ProcessingInstruction)});var Sh=_(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var IT=Fe(),Rr=Z(),gn=de(),y0=le(),FT=function(){function t(e,r){return this._live=!0,this._root=e,this._filter=r,new Proxy(this,this)}return Object.defineProperty(t.prototype,"length",{get:function(){for(var e=this,r=0,n=Rr.tree_getFirstDescendantNode(this._root,!1,!1,function(i){return gn.Guard.isElementNode(i)&&e._filter(i)});n!==null;)r++,n=Rr.tree_getNextDescendantNode(this._root,n,!1,!1,function(i){return gn.Guard.isElementNode(i)&&e._filter(i)});return r},enumerable:!0,configurable:!0}),t.prototype.item=function(e){for(var r=this,n=0,i=Rr.tree_getFirstDescendantNode(this._root,!1,!1,function(o){return gn.Guard.isElementNode(o)&&r._filter(o)});i!==null;){if(n===e)return i;n++,i=Rr.tree_getNextDescendantNode(this._root,i,!1,!1,function(o){return gn.Guard.isElementNode(o)&&r._filter(o)})}return null},t.prototype.namedItem=function(e){var r=this;if(e==="")return null;for(var n=Rr.tree_getFirstDescendantNode(this._root,!1,!1,function(a){return gn.Guard.isElementNode(a)&&r._filter(a)});n!=null;){if(n._uniqueIdentifier===e)return n;if(n._namespace===IT.namespace.HTML)for(var i=0;i{"use strict";var MT=Pa&&Pa.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Pa,"__esModule",{value:!0});var RT=De(),g0=le(),kT=Z(),zT=function(){function t(e){return this._live=!0,this._filter=null,this._length=0,this._root=e,new Proxy(this,this)}return Object.defineProperty(t.prototype,"length",{get:function(){return this._root._children.size},enumerable:!0,configurable:!0}),t.prototype.item=function(e){if(e<0||e>this.length-1)return null;if(e{"use strict";var qT=Da&&Da.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Da,"__esModule",{value:!0});var BT=De(),b0=le(),jT=function(){function t(e){return this._live=!1,this._items=[],this._length=0,this._root=e,this._items=[],this._filter=function(r){return!0},new Proxy(this,this)}return Object.defineProperty(t.prototype,"length",{get:function(){return this._items.length},enumerable:!0,configurable:!0}),t.prototype.item=function(e){return e<0||e>this.length-1?null:this._items[e]},t.prototype.keys=function(){var e;return e={},e[Symbol.iterator]=function(){var r=0;return{next:function(){return r===this.length?{done:!0,value:null}:{done:!1,value:r++}}.bind(this)}}.bind(this),e},t.prototype.values=function(){var e;return e={},e[Symbol.iterator]=function(){var r=this[Symbol.iterator]();return{next:function(){return r.next()}}}.bind(this),e},t.prototype.entries=function(){var e;return e={},e[Symbol.iterator]=function(){var r=this[Symbol.iterator](),n=0;return{next:function(){var i=r.next();return i.done?{done:!0,value:null}:{done:!1,value:[n++,i.value]}}}}.bind(this),e},t.prototype[Symbol.iterator]=function(){var e=this._items[Symbol.iterator]();return{next:function(){return e.next()}}},t.prototype.forEach=function(e,r){var n,i;r===void 0&&(r=BT.dom.window);var o=0;try{for(var a=qT(this._items),s=a.next();!s.done;s=a.next()){var l=s.value;e.call(r,l,o++,this)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},t.prototype.get=function(e,r,n){if(!b0.isString(r))return Reflect.get(e,r,n);var i=Number(r);return isNaN(i)?Reflect.get(e,r,n):e._items[i]||void 0},t.prototype.set=function(e,r,n,i){if(!b0.isString(r))return Reflect.set(e,r,n,i);var o=Number(r);return isNaN(o)?Reflect.set(e,r,n,i):o>=0&&o{"use strict";var GT=Ia&&Ia.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ia,"__esModule",{value:!0});var w0=Ue(),ao=Z(),UT=function(t){GT(e,t);function e(r){var n=t.call(this)||this;return n._element=r,Object.setPrototypeOf(n,e.prototype),n}return e.prototype._asArray=function(){return this},e.prototype.item=function(r){return this[r]||null},e.prototype.getNamedItem=function(r){return ao.element_getAnAttributeByName(r,this._element)},e.prototype.getNamedItemNS=function(r,n){return ao.element_getAnAttributeByNamespaceAndLocalName(r||"",n,this._element)},e.prototype.setNamedItem=function(r){return ao.element_setAnAttribute(r,this._element)},e.prototype.setNamedItemNS=function(r){return ao.element_setAnAttribute(r,this._element)},e.prototype.removeNamedItem=function(r){var n=ao.element_removeAnAttributeByName(r,this._element);if(n===null)throw new w0.NotFoundError;return n},e.prototype.removeNamedItemNS=function(r,n){var i=ao.element_removeAnAttributeByNamespaceAndLocalName(r||"",n,this._element);if(i===null)throw new w0.NotFoundError;return i},e._create=function(r){return new e(r)},e}(Array);Ia.NamedNodeMapImpl=UT});var Ku=_(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});var HT=function(){function t(){}return Object.defineProperty(t.prototype,"_startNode",{get:function(){return this._start[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_startOffset",{get:function(){return this._start[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_endNode",{get:function(){return this._end[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_endOffset",{get:function(){return this._end[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_collapsed",{get:function(){return this._start[0]===this._end[0]&&this._start[1]===this._end[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startContainer",{get:function(){return this._startNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startOffset",{get:function(){return this._startOffset},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endContainer",{get:function(){return this._endNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endOffset",{get:function(){return this._endOffset},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"collapsed",{get:function(){return this._collapsed},enumerable:!0,configurable:!0}),t}();Ch.AbstractRangeImpl=HT});var Oh=_(ai=>{"use strict";var WT=ai&&ai.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Qu=ai&&ai.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ai,"__esModule",{value:!0});var Ah=De(),dt=oe(),$T=Ku(),xt=Ue(),q=Z(),Zu=ct(),Tt=de(),Fa=function(t){WT(e,t);function e(){var r=t.call(this)||this,n=Ah.dom.window._associatedDocument;return r._start=[n,0],r._end=[n,0],Ah.dom.rangeList.add(r),r}return Object.defineProperty(e.prototype,"commonAncestorContainer",{get:function(){for(var r=this._start[0];!q.tree_isAncestorOf(this._end[0],r,!0);){if(r._parent===null)throw new Error("Parent node is null.");r=r._parent}return r},enumerable:!0,configurable:!0}),e.prototype.setStart=function(r,n){q.range_setTheStart(this,r,n)},e.prototype.setEnd=function(r,n){q.range_setTheEnd(this,r,n)},e.prototype.setStartBefore=function(r){var n=r._parent;if(n===null)throw new xt.InvalidNodeTypeError;q.range_setTheStart(this,n,q.tree_index(r))},e.prototype.setStartAfter=function(r){var n=r._parent;if(n===null)throw new xt.InvalidNodeTypeError;q.range_setTheStart(this,n,q.tree_index(r)+1)},e.prototype.setEndBefore=function(r){var n=r._parent;if(n===null)throw new xt.InvalidNodeTypeError;q.range_setTheEnd(this,n,q.tree_index(r))},e.prototype.setEndAfter=function(r){var n=r._parent;if(n===null)throw new xt.InvalidNodeTypeError;q.range_setTheEnd(this,n,q.tree_index(r)+1)},e.prototype.collapse=function(r){r?this._end=this._start:this._start=this._end},e.prototype.selectNode=function(r){q.range_select(r,this)},e.prototype.selectNodeContents=function(r){if(Tt.Guard.isDocumentTypeNode(r))throw new xt.InvalidNodeTypeError;var n=q.tree_nodeLength(r);this._start=[r,0],this._end=[r,n]},e.prototype.compareBoundaryPoints=function(r,n){if(r!==dt.HowToCompare.StartToStart&&r!==dt.HowToCompare.StartToEnd&&r!==dt.HowToCompare.EndToEnd&&r!==dt.HowToCompare.EndToStart)throw new xt.NotSupportedError;if(q.range_root(this)!==q.range_root(n))throw new xt.WrongDocumentError;var i,o;switch(r){case dt.HowToCompare.StartToStart:i=this._start,o=n._start;break;case dt.HowToCompare.StartToEnd:i=this._end,o=n._start;break;case dt.HowToCompare.EndToEnd:i=this._end,o=n._end;break;case dt.HowToCompare.EndToStart:i=this._start,o=n._end;break;default:throw new xt.NotSupportedError}var a=q.boundaryPoint_position(i,o);return a===dt.BoundaryPosition.Before?-1:a===dt.BoundaryPosition.After?1:0},e.prototype.deleteContents=function(){var r,n,i,o;if(!q.range_collapsed(this)){var a=this._startNode,s=this._startOffset,l=this._endNode,u=this._endOffset;if(a===l&&Tt.Guard.isCharacterDataNode(a)){q.characterData_replaceData(a,s,u-s,"");return}var c=[];try{for(var f=Qu(q.range_getContainedNodes(this)),d=f.next();!d.done;d=f.next()){var p=d.value,h=p._parent;h!==null&&q.range_isContained(h,this)||c.push(p)}}catch(S){r={error:S}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}var m,y;if(q.tree_isAncestorOf(l,a,!0))m=a,y=s;else{for(var g=a;g._parent!==null&&!q.tree_isAncestorOf(l,g._parent,!0);)g=g._parent;if(g._parent===null)throw new Error("Parent node is null.");m=g._parent,y=q.tree_index(g)+1}Tt.Guard.isCharacterDataNode(a)&&q.characterData_replaceData(a,s,q.tree_nodeLength(a)-s,"");try{for(var b=Qu(c),v=b.next();!v.done;v=b.next()){var p=v.value;p._parent&&q.mutation_remove(p,p._parent)}}catch(S){i={error:S}}finally{try{v&&!v.done&&(o=b.return)&&o.call(b)}finally{if(i)throw i.error}}Tt.Guard.isCharacterDataNode(l)&&q.characterData_replaceData(l,0,u,""),this._start=[m,y],this._end=[m,y]}},e.prototype.extractContents=function(){return q.range_extract(this)},e.prototype.cloneContents=function(){return q.range_cloneTheContents(this)},e.prototype.insertNode=function(r){return q.range_insert(r,this)},e.prototype.surroundContents=function(r){var n,i;try{for(var o=Qu(q.range_getPartiallyContainedNodes(this)),a=o.next();!a.done;a=o.next()){var s=a.value;if(!Tt.Guard.isTextNode(s))throw new xt.InvalidStateError}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}if(Tt.Guard.isDocumentNode(r)||Tt.Guard.isDocumentTypeNode(r)||Tt.Guard.isDocumentFragmentNode(r))throw new xt.InvalidNodeTypeError;var l=q.range_extract(this);r._children.size!==0&&q.mutation_replaceAll(null,r),q.range_insert(r,this),q.mutation_append(l,r),q.range_select(r,this)},e.prototype.cloneRange=function(){return q.create_range(this._start,this._end)},e.prototype.detach=function(){Ah.dom.rangeList.delete(this)},e.prototype.isPointInRange=function(r,n){if(q.tree_rootNode(r)!==q.range_root(this))return!1;if(Tt.Guard.isDocumentTypeNode(r))throw new xt.InvalidNodeTypeError;if(n>q.tree_nodeLength(r))throw new xt.IndexSizeError;var i=[r,n];return!(q.boundaryPoint_position(i,this._start)===dt.BoundaryPosition.Before||q.boundaryPoint_position(i,this._end)===dt.BoundaryPosition.After)},e.prototype.comparePoint=function(r,n){if(q.tree_rootNode(r)!==q.range_root(this))throw new xt.WrongDocumentError;if(Tt.Guard.isDocumentTypeNode(r))throw new xt.InvalidNodeTypeError;if(n>q.tree_nodeLength(r))throw new xt.IndexSizeError;var i=[r,n];return q.boundaryPoint_position(i,this._start)===dt.BoundaryPosition.Before?-1:q.boundaryPoint_position(i,this._end)===dt.BoundaryPosition.After?1:0},e.prototype.intersectsNode=function(r){if(q.tree_rootNode(r)!==q.range_root(this))return!1;var n=r._parent;if(n===null)return!0;var i=q.tree_index(r);return q.boundaryPoint_position([n,i],this._end)===dt.BoundaryPosition.Before&&q.boundaryPoint_position([n,i+1],this._start)===dt.BoundaryPosition.After},e.prototype.toString=function(){var r,n,i="";if(this._startNode===this._endNode&&Tt.Guard.isTextNode(this._startNode))return this._startNode._data.substring(this._startOffset,this._endOffset);Tt.Guard.isTextNode(this._startNode)&&(i+=this._startNode._data.substring(this._startOffset));try{for(var o=Qu(q.range_getContainedNodes(this)),a=o.next();!a.done;a=o.next()){var s=a.value;Tt.Guard.isTextNode(s)&&(i+=s._data)}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return Tt.Guard.isTextNode(this._endNode)&&(i+=this._endNode._data.substring(0,this._endOffset)),i},e._create=function(r,n){var i=new e;return r&&(i._start=r),n&&(i._end=n),i},e.START_TO_START=0,e.START_TO_END=1,e.END_TO_END=2,e.END_TO_START=3,e}($T.AbstractRangeImpl);ai.RangeImpl=Fa;Zu.idl_defineConst(Fa.prototype,"START_TO_START",0);Zu.idl_defineConst(Fa.prototype,"START_TO_END",1);Zu.idl_defineConst(Fa.prototype,"END_TO_END",2);Zu.idl_defineConst(Fa.prototype,"END_TO_START",3)});var ec=_(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});var VT=oe(),XT=function(){function t(e){this._activeFlag=!1,this._root=e,this._whatToShow=VT.WhatToShow.All,this._filter=null}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"whatToShow",{get:function(){return this._whatToShow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),t}();Lh.TraverserImpl=XT});var Th=_(Ma=>{"use strict";var YT=Ma&&Ma.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ma,"__esModule",{value:!0});var JT=ec(),tc=Z(),KT=function(t){YT(e,t);function e(r,n,i){var o=t.call(this,r)||this;return o._iteratorCollection=void 0,o._reference=n,o._pointerBeforeReference=i,tc.nodeIterator_iteratorList().add(o),o}return Object.defineProperty(e.prototype,"referenceNode",{get:function(){return this._reference},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerBeforeReferenceNode",{get:function(){return this._pointerBeforeReference},enumerable:!0,configurable:!0}),e.prototype.nextNode=function(){return tc.nodeIterator_traverse(this,!0)},e.prototype.previousNode=function(){return tc.nodeIterator_traverse(this,!1)},e.prototype.detach=function(){tc.nodeIterator_iteratorList().delete(this)},e._create=function(r,n,i){return new e(r,n,i)},e}(JT.TraverserImpl);Ma.NodeIteratorImpl=KT});var Ph=_(Ra=>{"use strict";var QT=Ra&&Ra.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ra,"__esModule",{value:!0});var bn=oe(),ZT=ec(),vr=Z(),eP=function(t){QT(e,t);function e(r,n){var i=t.call(this,r)||this;return i._current=n,i}return Object.defineProperty(e.prototype,"currentNode",{get:function(){return this._current},set:function(r){this._current=r},enumerable:!0,configurable:!0}),e.prototype.parentNode=function(){for(var r=this._current;r!==null&&r!==this._root;)if(r=r._parent,r!==null&&vr.traversal_filter(this,r)===bn.FilterResult.Accept)return this._current=r,r;return null},e.prototype.firstChild=function(){return vr.treeWalker_traverseChildren(this,!0)},e.prototype.lastChild=function(){return vr.treeWalker_traverseChildren(this,!1)},e.prototype.nextSibling=function(){return vr.treeWalker_traverseSiblings(this,!0)},e.prototype.previousNode=function(){for(var r=this._current;r!==this._root;){for(var n=r._previousSibling;n;){r=n;for(var i=vr.traversal_filter(this,r);i!==bn.FilterResult.Reject&&r._lastChild;)r=r._lastChild,i=vr.traversal_filter(this,r);if(i===bn.FilterResult.Accept)return this._current=r,r;n=r._previousSibling}if(r===this._root||r._parent===null)return null;if(r=r._parent,vr.traversal_filter(this,r)===bn.FilterResult.Accept)return this._current=r,r}return null},e.prototype.previousSibling=function(){return vr.treeWalker_traverseSiblings(this,!1)},e.prototype.nextNode=function(){for(var r=this._current,n=bn.FilterResult.Accept;;){for(;n!==bn.FilterResult.Reject&&r._firstChild;)if(r=r._firstChild,n=vr.traversal_filter(this,r),n===bn.FilterResult.Accept)return this._current=r,r;for(var i=null,o=r;o!==null;){if(o===this._root)return null;if(i=o._nextSibling,i!==null){r=i;break}o=o._parent}if(n=vr.traversal_filter(this,r),n===bn.FilterResult.Accept)return this._current=r,r}},e._create=function(r,n){return new e(r,n)},e}(ZT.TraverserImpl);Ra.TreeWalkerImpl=eP});var Ih=_(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});var tP=oe(),pt=ct(),it=function(){function t(){}return t.prototype.acceptNode=function(e){return tP.FilterResult.Accept},t._create=function(){return new t},t.FILTER_ACCEPT=1,t.FILTER_REJECT=2,t.FILTER_SKIP=3,t.SHOW_ALL=4294967295,t.SHOW_ELEMENT=1,t.SHOW_ATTRIBUTE=2,t.SHOW_TEXT=4,t.SHOW_CDATA_SECTION=8,t.SHOW_ENTITY_REFERENCE=16,t.SHOW_ENTITY=32,t.SHOW_PROCESSING_INSTRUCTION=64,t.SHOW_COMMENT=128,t.SHOW_DOCUMENT=256,t.SHOW_DOCUMENT_TYPE=512,t.SHOW_DOCUMENT_FRAGMENT=1024,t.SHOW_NOTATION=2048,t}();Dh.NodeFilterImpl=it;pt.idl_defineConst(it.prototype,"FILTER_ACCEPT",1);pt.idl_defineConst(it.prototype,"FILTER_REJECT",2);pt.idl_defineConst(it.prototype,"FILTER_SKIP",3);pt.idl_defineConst(it.prototype,"SHOW_ALL",4294967295);pt.idl_defineConst(it.prototype,"SHOW_ELEMENT",1);pt.idl_defineConst(it.prototype,"SHOW_ATTRIBUTE",2);pt.idl_defineConst(it.prototype,"SHOW_TEXT",4);pt.idl_defineConst(it.prototype,"SHOW_CDATA_SECTION",8);pt.idl_defineConst(it.prototype,"SHOW_ENTITY_REFERENCE",16);pt.idl_defineConst(it.prototype,"SHOW_ENTITY",32);pt.idl_defineConst(it.prototype,"SHOW_PROCESSING_INSTRUCTION",64);pt.idl_defineConst(it.prototype,"SHOW_COMMENT",128);pt.idl_defineConst(it.prototype,"SHOW_DOCUMENT",256);pt.idl_defineConst(it.prototype,"SHOW_DOCUMENT_TYPE",512);pt.idl_defineConst(it.prototype,"SHOW_DOCUMENT_FRAGMENT",1024);pt.idl_defineConst(it.prototype,"SHOW_NOTATION",2048)});var Mh=_(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var rP=function(){function t(e,r,n,i,o,a,s,l,u){this._type=e,this._target=r,this._addedNodes=n,this._removedNodes=i,this._previousSibling=o,this._nextSibling=a,this._attributeName=s,this._attributeNamespace=l,this._oldValue=u}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addedNodes",{get:function(){return this._addedNodes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removedNodes",{get:function(){return this._removedNodes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this._previousSibling},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this._nextSibling},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attributeName",{get:function(){return this._attributeName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attributeNamespace",{get:function(){return this._attributeNamespace},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"oldValue",{get:function(){return this._oldValue},enumerable:!0,configurable:!0}),t._create=function(e,r,n,i,o,a,s,l,u){return new t(e,r,n,i,o,a,s,l,u)},t}();Fh.MutationRecordImpl=rP});var kh=_(ka=>{"use strict";var Rh=ka&&ka.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ka,"__esModule",{value:!0});var nP=De(),wn=Ue(),so=Fe(),nr=Z(),iP=function(){function t(e,r){this._element=e,this._attribute=r,this._tokenSet=new Set;var n=r._localName,i=nr.element_getAnAttributeValue(e,n),o=this;function a(s,l,u,c,f){l===o._attribute._localName&&f===null&&(c?o._tokenSet=nr.orderedSet_parse(c):o._tokenSet.clear())}this._element._attributeChangeSteps.push(a),nP.dom.features.steps&&nr.dom_runAttributeChangeSteps(e,n,i,i,null)}return Object.defineProperty(t.prototype,"length",{get:function(){return this._tokenSet.size},enumerable:!0,configurable:!0}),t.prototype.item=function(e){var r,n,i=0;try{for(var o=Rh(this._tokenSet),a=o.next();!a.done;a=o.next()){var s=a.value;if(i===e)return s;i++}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},t.prototype.contains=function(e){return this._tokenSet.has(e)},t.prototype.add=function(){for(var e,r,n=[],i=0;i{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});var oP=Hp(),aP=Yp(),sP=ch(),lP=Vu(),uP=dh(),cP=ph(),fP=hh(),zh=Xu(),dP=Yu(),pP=mh(),hP=vh(),mP=Ju(),_P=yh(),vP=gh(),yP=bh(),gP=Sh(),bP=Eh(),wP=xh(),SP=Nh(),EP=Oh(),xP=Th(),NP=Ph(),CP=Ih(),AP=Mh(),OP=kh();function LP(t){return oP.DOMImplementationImpl._create(t)}ce.create_domImplementation=LP;function TP(){return aP.WindowImpl._create()}ce.create_window=TP;function PP(){return new sP.XMLDocumentImpl}ce.create_xmlDocument=PP;function DP(){return new lP.DocumentImpl}ce.create_document=DP;function IP(){return new uP.AbortControllerImpl}ce.create_abortController=IP;function FP(){return cP.AbortSignalImpl._create()}ce.create_abortSignal=FP;function MP(t,e,r,n){return fP.DocumentTypeImpl._create(t,e,r,n)}ce.create_documentType=MP;function RP(t,e,r,n){return zh.ElementImpl._create(t,e,r,n)}ce.create_element=RP;function kP(t,e,r,n){return zh.ElementImpl._create(t,e,r,n)}ce.create_htmlElement=kP;function zP(t,e,r,n){return zh.ElementImpl._create(t,e,r,n)}ce.create_htmlUnknownElement=zP;function qP(t){return dP.DocumentFragmentImpl._create(t)}ce.create_documentFragment=qP;function BP(t,e){return pP.ShadowRootImpl._create(t,e)}ce.create_shadowRoot=BP;function jP(t,e){return hP.AttrImpl._create(t,e)}ce.create_attr=jP;function GP(t,e){return mP.TextImpl._create(t,e)}ce.create_text=GP;function UP(t,e){return _P.CDATASectionImpl._create(t,e)}ce.create_cdataSection=UP;function HP(t,e){return vP.CommentImpl._create(t,e)}ce.create_comment=HP;function WP(t,e,r){return yP.ProcessingInstructionImpl._create(t,e,r)}ce.create_processingInstruction=WP;function $P(t,e){return e===void 0&&(e=function(){return!0}),gP.HTMLCollectionImpl._create(t,e)}ce.create_htmlCollection=$P;function VP(t){return bP.NodeListImpl._create(t)}ce.create_nodeList=VP;function XP(t,e){return wP.NodeListStaticImpl._create(t,e)}ce.create_nodeListStatic=XP;function YP(t){return SP.NamedNodeMapImpl._create(t)}ce.create_namedNodeMap=YP;function JP(t,e){return EP.RangeImpl._create(t,e)}ce.create_range=JP;function KP(t,e,r){return xP.NodeIteratorImpl._create(t,e,r)}ce.create_nodeIterator=KP;function QP(t,e){return NP.TreeWalkerImpl._create(t,e)}ce.create_treeWalker=QP;function ZP(){return CP.NodeFilterImpl._create()}ce.create_nodeFilter=ZP;function eD(t,e,r,n,i,o,a,s,l){return AP.MutationRecordImpl._create(t,e,r,n,i,o,a,s,l)}ce.create_mutationRecord=eD;function tD(t,e){return OP.DOMTokenListImpl._create(t,e)}ce.create_domTokenList=tD});var De=_(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var qh=le(),rD=kr(),nD=function(){function t(){this._features={mutationObservers:!0,customElements:!0,slots:!0,steps:!0},this._window=null,this._compareCache=new qh.CompareCache,this._rangeList=new qh.FixedSizeSet}return t.prototype.setFeatures=function(e){if(e===void 0&&(e=!0),qh.isObject(e))for(var r in e)this._features[r]=e[r]||!1;else for(var r in this._features)this._features[r]=e},Object.defineProperty(t.prototype,"features",{get:function(){return this._features},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this._window===null&&(this._window=rD.create_window()),this._window},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"compareCache",{get:function(){return this._compareCache},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rangeList",{get:function(){return this._rangeList},enumerable:!0,configurable:!0}),Object.defineProperty(t,"instance",{get:function(){return t._instance||(t._instance=new t),t._instance},enumerable:!0,configurable:!0}),t}();Bh.dom=nD.instance});var nc=_(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var iD=oe(),jh=Z(),rc=ct(),za=function(){function t(e,r){this._target=null,this._relatedTarget=null,this._touchTargetList=[],this._path=[],this._currentTarget=null,this._eventPhase=iD.EventPhase.None,this._stopPropagationFlag=!1,this._stopImmediatePropagationFlag=!1,this._canceledFlag=!1,this._inPassiveListenerFlag=!1,this._composedFlag=!1,this._initializedFlag=!1,this._dispatchFlag=!1,this._isTrusted=!1,this._bubbles=!1,this._cancelable=!1,this._type=e,r&&(this._bubbles=r.bubbles||!1,this._cancelable=r.cancelable||!1,this._composedFlag=r.composed||!1),this._initializedFlag=!0,this._timeStamp=new Date().getTime()}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"srcElement",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentTarget",{get:function(){return this._currentTarget},enumerable:!0,configurable:!0}),t.prototype.composedPath=function(){var e=[],r=this._path;if(r.length===0)return e;var n=this._currentTarget;if(n===null)throw new Error("Event currentTarget is null.");e.push(n);for(var i=0,o=0,a=r.length-1;a>=0;){if(r[a].rootOfClosedTree&&o++,r[a].invocationTarget===n){i=a;break}r[a].slotInClosedTree&&o--,a--}var s=o,l=o;for(a=i-1;a>=0;)r[a].rootOfClosedTree&&s++,s<=l&&e.unshift(r[a].invocationTarget),r[a].slotInClosedTree&&(s--,s{"use strict";var oD=qa&&qa.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(qa,"__esModule",{value:!0});var aD=nc(),sD=Z(),lD=function(t){oD(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i._detail=null,i._detail=n&&n.detail||null,i}return Object.defineProperty(e.prototype,"detail",{get:function(){return this._detail},enumerable:!0,configurable:!0}),e.prototype.initCustomEvent=function(r,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1),o===void 0&&(o=null),!this._dispatchFlag&&(sD.event_initialize(this,r,n,i),this._detail=o)},e}(aD.EventImpl);qa.CustomEventImpl=lD});var Bt=_(Q=>{"use strict";var Hh=Q&&Q.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Q,"__esModule",{value:!0});var Yt=de(),ot=oe();function si(t,e,r){if(r===void 0&&(r=!1),r&&Yt.Guard.isElementNode(e)&&Yt.Guard.isShadowRoot(e.shadowRoot)&&e.shadowRoot._firstChild)return e.shadowRoot._firstChild;if(e._firstChild)return e._firstChild;if(e===t)return null;if(e._nextSibling)return e._nextSibling;for(var n=e._parent;n&&n!==t;){if(n._nextSibling)return n._nextSibling;n=n._parent}return null}function ac(){var t;return t={},t[Symbol.iterator]=function(){return{next:function(){return{done:!0,value:null}}}},t}function Wh(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);for(var i=e?t:si(t,t,r);i&&n&&!n(i);)i=si(t,i,r);return i}Q.tree_getFirstDescendantNode=Wh;function $h(t,e,r,n,i){r===void 0&&(r=!1),n===void 0&&(n=!1);for(var o=si(t,e,n);o&&i&&!i(o);)o=si(t,o,n);return o}Q.tree_getNextDescendantNode=$h;function S0(t,e,r,n){var i;return e===void 0&&(e=!1),r===void 0&&(r=!1),!e&&t._children.size===0?ac():(i={},i[Symbol.iterator]=function(){var o=e?t:si(t,t,r);return{next:function(){for(;o&&n&&!n(o);)o=si(t,o,r);if(o===null)return{done:!0,value:null};var a={done:!1,value:o};return o=si(t,o,r),a}}},i)}Q.tree_getDescendantNodes=S0;function uD(t,e,r,n){var i;return e===void 0&&(e=!1),r===void 0&&(r=!1),!e&&t._children.size===0?ac():(i={},i[Symbol.iterator]=function(){var o=S0(t,e,r,function(s){return Yt.Guard.isElementNode(s)})[Symbol.iterator](),a=o.next().value;return{next:function(){for(;a&&n&&!n(a);)a=o.next().value;if(a===null)return{done:!0,value:null};var s={done:!1,value:a};return a=o.next().value,s}}},i)}Q.tree_getDescendantElements=uD;function cD(t,e,r){var n;return e===void 0&&(e=!1),!t._parent||t._parent._children.size===0?ac():(n={},n[Symbol.iterator]=function(){var i=t._parent?t._parent._firstChild:null;return{next:function(){for(;i&&(r&&!r(i)||!e&&i===t);)i=i._nextSibling;if(i===null)return{done:!0,value:null};var o={done:!1,value:i};return i=i._nextSibling,o}}},n)}Q.tree_getSiblingNodes=cD;function ic(t,e,r){e===void 0&&(e=!1);for(var n=e?t:t._parent;n&&r&&!r(n);)n=n._parent;return n}Q.tree_getFirstAncestorNode=ic;function oc(t,e,r,n){r===void 0&&(r=!1);for(var i=e._parent;i&&n&&!n(i);)i=i._parent;return i}Q.tree_getNextAncestorNode=oc;function fD(t,e,r){var n;return e===void 0&&(e=!1),!e&&!t._parent?ac():(n={},n[Symbol.iterator]=function(){var i=ic(t,e,r);return{next:function(){if(i===null)return{done:!0,value:null};var o={done:!1,value:i};return i=oc(t,i,e,r),o}}},n)}Q.tree_getAncestorNodes=fD;function dD(t,e){if(t===e)return t._parent;for(var r=[],n=[],i=ic(t,!0);i!==null;)r.push(i),i=oc(t,i,!0);for(var o=ic(e,!0);o!==null;)n.push(o),o=oc(e,o,!0);for(var a=r.length,s=n.length,l=null,u=Math.min(a,s);u>0;u--){var c=r[--a],f=n[--s];if(c!==f)break;l=c}return l}Q.tree_getCommonAncestor=dD;function pD(t,e){if(e._firstChild)return e._firstChild;if(e._nextSibling)return e._nextSibling;for(;;){var r=e._parent;if(r===null||r===t)return null;if(r._nextSibling)return r._nextSibling;e=r}}Q.tree_getFollowingNode=pD;function hD(t,e){return e===t?null:e._previousSibling?(e=e._previousSibling,e._lastChild?e._lastChild:e):e._parent}Q.tree_getPrecedingNode=hD;function E0(t){var e,r,n,i,o,a;switch(t._nodeType){case ot.NodeType.Document:var s=!1,l=!1;try{for(var u=Hh(t._children),c=u.next();!c.done;c=u.next()){var f=c.value;switch(f._nodeType){case ot.NodeType.ProcessingInstruction:case ot.NodeType.Comment:break;case ot.NodeType.DocumentType:if(s||l)return!1;s=!0;break;case ot.NodeType.Element:if(l)return!1;l=!0;break;default:return!1}}}catch(y){e={error:y}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}break;case ot.NodeType.DocumentFragment:case ot.NodeType.Element:try{for(var d=Hh(t._children),p=d.next();!p.done;p=d.next()){var f=p.value;switch(f._nodeType){case ot.NodeType.Element:case ot.NodeType.Text:case ot.NodeType.ProcessingInstruction:case ot.NodeType.CData:case ot.NodeType.Comment:break;default:return!1}}}catch(y){n={error:y}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}break;case ot.NodeType.DocumentType:case ot.NodeType.Text:case ot.NodeType.ProcessingInstruction:case ot.NodeType.CData:case ot.NodeType.Comment:return!t.hasChildNodes()}try{for(var h=Hh(t._children),m=h.next();!m.done;m=h.next()){var f=m.value;if(!E0(f))return!1}}catch(y){o={error:y}}finally{try{m&&!m.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return!0}Q.tree_isConstrained=E0;function x0(t){return Yt.Guard.isDocumentTypeNode(t)?0:Yt.Guard.isCharacterDataNode(t)?t._data.length:t._children.size}Q.tree_nodeLength=x0;function mD(t){return x0(t)===0}Q.tree_isEmpty=mD;function ir(t,e){if(e===void 0&&(e=!1),e){var r=ir(t,!1);return Yt.Guard.isShadowRoot(r)?ir(r._host,!0):r}else return t._parent?ir(t._parent):t}Q.tree_rootNode=ir;function _D(t,e,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);for(var i=Wh(t,r,n);i!==null;){if(i===e)return!0;i=$h(t,i,r,n)}return!1}Q.tree_isDescendantOf=_D;function Vh(t,e,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);for(var i=r?t:n&&Yt.Guard.isShadowRoot(t)?t._host:t._parent;i!==null;){if(i===e)return!0;i=n&&Yt.Guard.isShadowRoot(i)?i._host:i._parent}return!1}Q.tree_isAncestorOf=Vh;function N0(t,e,r){if(r===void 0&&(r=!1),Vh(t,e,r))return!0;var n=ir(t);return!!(Yt.Guard.isDocumentFragmentNode(n)&&n._host!==null&&N0(n._host,e,r))}Q.tree_isHostIncludingAncestorOf=N0;function vD(t,e,r){if(r===void 0&&(r=!1),t===e){if(r)return!0}else return t._parent!==null&&t._parent===e._parent;return!1}Q.tree_isSiblingOf=vD;function yD(t,e){var r=Ba(t),n=Ba(e);return r===-1||n===-1||ir(t)!==ir(e)?!1:nr}Q.tree_isFollowing=gD;function bD(t,e){return t._parent===e}Q.tree_isParentOf=bD;function wD(t,e){return e._parent===t}Q.tree_isChildOf=wD;function SD(t){return t._previousSibling}Q.tree_previousSibling=SD;function ED(t){return t._nextSibling}Q.tree_nextSibling=ED;function xD(t){return t._firstChild}Q.tree_firstChild=xD;function ND(t){return t._lastChild}Q.tree_lastChild=ND;function Ba(t){for(var e=ir(t),r=0,n=Wh(e);n!==null;){if(r++,n===t)return r;n=$h(e,n)}return-1}Q.tree_treePosition=Ba;function CD(t){for(var e=0;t._previousSibling!==null;)e++,t=t._previousSibling;return e}Q.tree_index=CD;function AD(t,e){for(;;){if(!t||!Yt.Guard.isNode(t))return t;var r=ir(t);if(!Yt.Guard.isShadowRoot(r)||e&&Yt.Guard.isNode(e)&&Vh(r,e,!0,!0))return t;t=r.host}}Q.tree_retarget=AD});var lo=_(or=>{"use strict";var Yh=or&&or.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},OD=or&&or.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(or,"__esModule",{value:!0});var Jh=De(),LD=de(),li=Fe(),Xh=kr(),C0=Bt(),TD=sc();function A0(){var t=Jh.dom.window;t._mutationObserverMicrotaskQueued||(t._mutationObserverMicrotaskQueued=!0,Promise.resolve().then(function(){O0()}))}or.observer_queueAMutationObserverMicrotask=A0;function O0(){var t,e,r,n,i=Jh.dom.window;i._mutationObserverMicrotaskQueued=!1;var o=li.set.clone(i._mutationObservers),a=li.set.clone(i._signalSlots);li.set.empty(i._signalSlots);var s=function(h){var m=li.list.clone(h._recordQueue);li.list.empty(h._recordQueue);for(var y=0;y{"use strict";var lc=at&&at.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ID=at&&at.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},FD=at&&at.__spread||function(){for(var t=[],e=0;e{"use strict";var GD=Pt&&Pt.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Pt,"__esModule",{value:!0});var UD=De(),ui=Bt(),P0=de(),uc=ja(),D0=new Map;function HD(t,e){}Pt.dom_runRemovingSteps=HD;function WD(t,e,r,n){}Pt.dom_runCloningSteps=WD;function $D(t,e){}Pt.dom_runAdoptingSteps=$D;function VD(t,e,r,n,i){var o,a;UD.dom.features.slots&&(rI.call(t,t,e,r,n,i),tI.call(t,t,e,r,n,i)),nI.call(t,t,e,n,i);try{for(var s=GD(t._attributeChangeSteps),l=s.next();!l.done;l=s.next()){var u=l.value;u.call(t,t,e,r,n,i)}}catch(c){o={error:c}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}}Pt.dom_runAttributeChangeSteps=VD;function XD(t){}Pt.dom_runInsertionSteps=XD;function YD(t,e){eI.call(t,t,e)}Pt.dom_runNodeIteratorPreRemovingSteps=YD;function JD(t){return D0.has(t)}Pt.dom_hasSupportedTokens=JD;function KD(t){return D0.get(t)||new Set}Pt.dom_getSupportedTokens=KD;function QD(t){}Pt.dom_runEventConstructingSteps=QD;function ZD(t){}Pt.dom_runChildTextContentChangeSteps=ZD;function eI(t,e){if(!(e===t._root||!ui.tree_isAncestorOf(t._reference,e,!0))){if(t._pointerBeforeReference)for(;;){var r=ui.tree_getFollowingNode(t._root,e);if(r!==null&&ui.tree_isDescendantOf(t._root,r,!0)&&!ui.tree_isDescendantOf(e,r,!0)){t._reference=r;return}else if(r===null){t._pointerBeforeReference=!1;return}}if(e._previousSibling===null)e._parent!==null&&(t._reference=e._parent);else{for(var n=e._previousSibling,i=ui.tree_getFirstDescendantNode(e._previousSibling,!0,!1);i!==null;)i!==null&&(n=i),i=ui.tree_getNextDescendantNode(e._previousSibling,i,!0,!1);t._reference=n}}}function tI(t,e,r,n,i){if(P0.Guard.isSlot(t)&&e==="name"&&i===null){if(n===r||n===null&&r===""||n===""&&r===null)return;n===null||n===""?t._name="":t._name=n,uc.shadowTree_assignSlotablesForATree(ui.tree_rootNode(t))}}function rI(t,e,r,n,i){if(P0.Guard.isSlotable(t)&&e==="slot"&&i===null){if(n===r||n===null&&r===""||n===""&&r===null)return;n===null||n===""?t._name="":t._name=n,uc.shadowTree_isAssigned(t)&&uc.shadowTree_assignSlotables(t._assignedSlot),uc.shadowTree_assignASlot(t)}}function nI(t,e,r,n){e==="id"&&n===null&&(r?t._uniqueIdentifier=r:t._uniqueIdentifier=void 0)}});var sc=_(Ee=>{"use strict";var I0=Ee&&Ee.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},iI=Ee&&Ee.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},oI=Ee&&Ee.__spread||function(){for(var t=[],e=0;e=0;C--){var T=P[C];if(T.shadowAdjustedTarget!==null){D=T;break}}if(D!==null)if(Ie.Guard.isNode(D.shadowAdjustedTarget)&&Ie.Guard.isShadowRoot(ar.tree_rootNode(D.shadowAdjustedTarget,!0)))l=!0;else if(Ie.Guard.isNode(D.relatedTarget)&&Ie.Guard.isShadowRoot(ar.tree_rootNode(D.relatedTarget,!0)))l=!0;else for(var B=0;B=0;C--){var T=P[C];T.shadowAdjustedTarget!==null?t._eventPhase=Ga.EventPhase.AtTarget:t._eventPhase=Ga.EventPhase.Capturing,tm(T,t,"capturing",n)}for(var C=0;C0&&(s=i[o-1],s.shadowAdjustedTarget!==null&&(e._target=s.shadowAdjustedTarget))}if(e._relatedTarget=t.relatedTarget,e._touchTargetList=t.touchTargetList,!e._stopPropagationFlag){e._currentTarget=t.invocationTarget;var l=e._currentTarget,u=l._eventListenerList,c=new(Array.bind.apply(Array,oI([void 0],u))),f=rm(e,c,r,t,n);if(!f&&e._isTrusted){var d=e._type;d==="animationend"?e._type="webkitAnimationEnd":d==="animationiteration"?e._type="webkitAnimationIteration":d==="animationstart"?e._type="webkitAnimationStart":d==="transitionend"&&(e._type="webkitTransitionEnd"),rm(e,c,r,t,n),e._type=d}}}Ee.event_invoke=tm;function rm(t,e,r,n,i){i===void 0&&(i={value:!1});for(var o=!1,a=0;a{"use strict";var yI=ci&&ci.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ci,"__esModule",{value:!0});var gI=sc();function bI(t,e){e._abortedFlag||e._abortAlgorithms.add(t)}ci.abort_add=bI;function wI(t,e){e._abortAlgorithms.delete(t)}ci.abort_remove=wI;function SI(t){var e,r;if(!t._abortedFlag){t._abortedFlag=!0;try{for(var n=yI(t._abortAlgorithms),i=n.next();!i.done;i=n.next()){var o=i.value;o.call(t)}}catch(a){e={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}t._abortAlgorithms.clear(),gI.event_fireAnEvent("abort",t)}}ci.abort_signalAbort=SI});var Ua=_(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});var EI=/[a-z]([\0-\t\x2D\._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-\t\x2D\._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])*/,xI=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),NI=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"]),CI=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),AI=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"]);function OI(t){return!(!EI.test(t)||xI.has(t))}sr.customElement_isValidCustomElementName=OI;function LI(t){return NI.has(t)}sr.customElement_isValidElementName=LI;function TI(t){return CI.has(t)}sr.customElement_isVoidElementName=TI;function PI(t){return AI.has(t)}sr.customElement_isValidShadowHostName=PI;function DI(t,e){}sr.customElement_enqueueACustomElementUpgradeReaction=DI;function II(t,e,r){}sr.customElement_enqueueACustomElementCallbackReaction=II;function FI(t,e){}sr.customElement_upgrade=FI;function MI(t){}sr.customElement_tryToUpgrade=MI;function RI(t,e,r,n){return null}sr.customElement_lookUpACustomElementDefinition=RI});var fc=_(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});var im=oe(),kI=Ue();function zI(t,e){if(t._activeFlag)throw new kI.InvalidStateError;var r=e._nodeType-1,n=1<{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});var qI=De(),BI=oe(),jI=fc(),j0=Bt();function GI(t,e){for(var r=t._reference,n=t._pointerBeforeReference;;){if(e)if(n)n=!1;else{var i=j0.tree_getFollowingNode(t._root,r);if(i)r=i;else return null}else if(n){var o=j0.tree_getPrecedingNode(t.root,r);if(o)r=o;else return null}else n=!0;var a=jI.traversal_filter(t,r);if(a===BI.FilterResult.Accept)break}return t._reference=r,t._pointerBeforeReference=n,r}dc.nodeIterator_traverse=GI;function UI(){return qI.dom.window._iteratorList}dc.nodeIterator_iteratorList=UI});var sm=_(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});function HI(t){for(var e=0;e=97&&r<=122||r>=65&&r<=90||r===58||r===95||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)&&!(e!==0&&(r===45||r===46||r>=48&&r<=57||r===183||r>=768&&r<=879||r>=8255&&r<=8256))){if(r>=55296&&r<=56319&&e=56320&&n<=57343&&(r=(r-55296)*1024+n-56320+65536,e++,r>=65536&&r<=983039))continue}return!1}}return!0}uo.xml_isName=HI;function WI(t){for(var e=!1,r=0;r=97&&n<=122||n>=65&&n<=90||n===95||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=767||n>=880&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533)){{if(r!==0&&(n===45||n===46||n>=48&&n<=57||n===183||n>=768&&n<=879||n>=8255&&n<=8256))continue;if(r!==0&&n===58){if(e||r===t.length-1)return!1;e=!0;continue}}if(n>=55296&&n<=56319&&r=56320&&i<=57343&&(n=(n-55296)*1024+i-56320+65536,r++,n>=65536&&n<=983039))continue}return!1}}return!0}uo.xml_isQName=WI;function $I(t){for(var e=0;e=32&&r<=55295||r>=57344&&r<=65533)){if(r>=55296&&r<=56319&&e=56320&&n<=57343&&(r=(r-55296)*1024+n-56320+65536,e++,r>=65536&&r<=1114111))continue}return!1}}return!0}uo.xml_isLegalChar=$I;function VI(t){for(var e=0;e=97&&r<=122||r>=65&&r<=90||r>=39&&r<=59||r===32||r===13||r===10||r>=35&&r<=37||r===33||r===61||r===63||r===64||r===95))return!1}return!0}uo.xml_isPubidChar=VI});var cm=_(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var co=Ue(),lm=Fe(),G0=sm();function um(t){if(!G0.xml_isName(t))throw new co.InvalidCharacterError("Invalid XML name: "+t);if(!G0.xml_isQName(t))throw new co.InvalidCharacterError("Invalid XML qualified name: "+t+".")}Ha.namespace_validate=um;function XI(t,e){t||(t=null),um(e);var r=e.split(":"),n=r.length===2?r[0]:null,i=r.length===2?r[1]:e;if(n&&t===null)throw new co.NamespaceError("Qualified name includes a prefix but the namespace is null.");if(n==="xml"&&t!==lm.namespace.XML)throw new co.NamespaceError('Qualified name includes the "xml" prefix but the namespace is not the XML namespace.');if(t!==lm.namespace.XMLNS&&(n==="xmlns"||e==="xmlns"))throw new co.NamespaceError('Qualified name includes the "xmlns" prefix but the namespace is not the XMLNS namespace.');if(t===lm.namespace.XMLNS&&n!=="xmlns"&&e!=="xmlns")throw new co.NamespaceError('Qualified name does not include the "xmlns" prefix but the namespace is the XMLNS namespace.');return[t,n,i]}Ha.namespace_validateAndExtract=XI;function YI(t){um(t);var e=t.split(":"),r=e.length===2?e[0]:null,n=e.length===2?e[1]:t;return[r,n]}Ha.namespace_extractQName=YI});var pc=_(qr=>{"use strict";var JI=qr&&qr.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},KI=qr&&qr.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(qr,"__esModule",{value:!0});var U0=De(),H0=de(),QI=le(),ZI=Xu(),eF=Ua(),W0=Bt(),tF=cm(),rF=zr(),nF=fo(),iF=fi();function oF(t,e){return ZI.ElementImpl}qr.document_elementInterface=oF;function aF(t,e,r,n){var i=JI(tF.namespace_validateAndExtract(e,r),3),o=i[0],a=i[1],s=i[2],l=null;return n!==void 0&&(QI.isString(n)?l=n:l=n.is),nF.element_createAnElement(t,s,o,a,l,!0)}qr.document_internalCreateElementNS=aF;function sF(t,e){var r,n;if(!(t._nodeDocument===e&&t._parent===null)){var i=t._nodeDocument;if(t._parent&&iF.mutation_remove(t,t._parent),e!==i)for(var o=W0.tree_getFirstDescendantNode(t,!0,!0);o!==null;){if(o._nodeDocument=e,H0.Guard.isElementNode(o))try{for(var a=(r=void 0,KI(o._attributeList._asArray())),s=a.next();!s.done;s=a.next()){var l=s.value;l._nodeDocument=e}}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}U0.dom.features.customElements&&H0.Guard.isElementNode(o)&&o._customElementState==="custom"&&eF.customElement_enqueueACustomElementCallbackReaction(o,"adoptedCallback",[i,e]),U0.dom.features.steps&&rF.dom_runAdoptingSteps(o,i),o=W0.tree_getNextDescendantNode(t,o,!0,!0)}}}qr.document_adopt=sF});var fi=_(ht=>{"use strict";var Dt=ht&&ht.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lF=ht&&ht.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},uF=ht&&ht.__spread||function(){for(var t=[],e=0;e1)throw new ne.HierarchyRequestError("A document node can only have one document element node. Document fragment to be inserted has "+h+" element nodes.");if(h===1){try{for(var b=Dt(e._children),v=b.next();!v.done;v=b.next()){var S=v.value;if(S._nodeType===I.NodeType.Element)throw new ne.HierarchyRequestError("The document node already has a document element node.")}}catch(T){o={error:T}}finally{try{v&&!v.done&&(a=b.return)&&a.call(b)}finally{if(o)throw o.error}}if(r){if(p===I.NodeType.DocumentType)throw new ne.HierarchyRequestError("Cannot insert an element node before a document type node.");for(var E=r._nextSibling;E;){if(E._nodeType===I.NodeType.DocumentType)throw new ne.HierarchyRequestError("Cannot insert an element node before a document type node.");E=E._nextSibling}}}}else if(d===I.NodeType.Element){try{for(var A=Dt(e._children),N=A.next();!N.done;N=A.next()){var S=N.value;if(S._nodeType===I.NodeType.Element)throw new ne.HierarchyRequestError("Document already has a document element node. Node is "+t.nodeName+".")}}catch(T){s={error:T}}finally{try{N&&!N.done&&(l=A.return)&&l.call(A)}finally{if(s)throw s.error}}if(r){if(p===I.NodeType.DocumentType)throw new ne.HierarchyRequestError("Cannot insert an element node before a document type node. Node is "+t.nodeName+".");for(var E=r._nextSibling;E;){if(E._nodeType===I.NodeType.DocumentType)throw new ne.HierarchyRequestError("Cannot insert an element node before a document type node. Node is "+t.nodeName+".");E=E._nextSibling}}}else if(d===I.NodeType.DocumentType){try{for(var D=Dt(e._children),P=D.next();!P.done;P=D.next()){var S=P.value;if(S._nodeType===I.NodeType.DocumentType)throw new ne.HierarchyRequestError("Document already has a document type node. Node is "+t.nodeName+".")}}catch(T){u={error:T}}finally{try{P&&!P.done&&(c=D.return)&&c.call(D)}finally{if(u)throw u.error}}if(r)for(var C=r._previousSibling;C;){if(C._nodeType===I.NodeType.Element)throw new ne.HierarchyRequestError("Cannot insert a document type node before an element node. Node is "+t.nodeName+".");C=C._previousSibling}else for(var C=e._firstChild;C;){if(C._nodeType===I.NodeType.Element)throw new ne.HierarchyRequestError("Cannot insert a document type node before an element node. Node is "+t.nodeName+".");C=C._nextSibling}}}}ht.mutation_ensurePreInsertionValidity=V0;function X0(t,e,r){V0(t,e,r);var n=r;return n===t&&(n=t._nextSibling),dm.document_adopt(t,e._nodeDocument),hc(t,e,n),t}ht.mutation_preInsert=X0;function hc(t,e,r,n){var i,o;if(r===null&&t._nodeType!==I.NodeType.DocumentFragment){fF(t,e,n);return}var a=t._nodeType===I.NodeType.DocumentFragment?t._children.size:1;if(r!==null&&ee.dom.rangeList.size!==0){var s=Re.tree_index(r);try{for(var l=Dt(ee.dom.rangeList),u=l.next();!u.done;u=l.next()){var c=u.value;c._start[0]===e&&c._start[1]>s&&(c._start[1]+=a),c._end[0]===e&&c._end[1]>s&&(c._end[1]+=a)}}catch(v){i={error:v}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}}var f=t._nodeType===I.NodeType.DocumentFragment?new(Array.bind.apply(Array,uF([void 0],t._children))):[t];if(t._nodeType===I.NodeType.DocumentFragment)for(;t._firstChild;)Wa(t._firstChild,t,!0);ee.dom.features.mutationObservers&&t._nodeType===I.NodeType.DocumentFragment&&ho.observer_queueTreeMutationRecord(t,[],f,null,null);for(var d=r?r._previousSibling:e._lastChild,p=r===null?-1:Re.tree_index(r),h=0;h1)throw new ne.HierarchyRequestError("A document node can only have one document element node. Document fragment to be inserted has "+f+" element nodes.");if(f===1){try{for(var m=Dt(r._children),y=m.next();!y.done;y=m.next()){var g=y.value;if(g._nodeType===I.NodeType.Element&&g!==t)throw new ne.HierarchyRequestError("The document node already has a document element node.")}}catch(B){o={error:B}}finally{try{y&&!y.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}for(var b=t._nextSibling;b;){if(b._nodeType===I.NodeType.DocumentType)throw new ne.HierarchyRequestError("Cannot insert an element node before a document type node.");b=b._nextSibling}}}else if(e._nodeType===I.NodeType.Element){try{for(var v=Dt(r._children),S=v.next();!S.done;S=v.next()){var g=S.value;if(g._nodeType===I.NodeType.Element&&g!==t)throw new ne.HierarchyRequestError("Document already has a document element node. Node is "+e.nodeName+".")}}catch(M){s={error:M}}finally{try{S&&!S.done&&(l=v.return)&&l.call(v)}finally{if(s)throw s.error}}for(var b=t._nextSibling;b;){if(b._nodeType===I.NodeType.DocumentType)throw new ne.HierarchyRequestError("Cannot insert an element node before a document type node. Node is "+e.nodeName+".");b=b._nextSibling}}else if(e._nodeType===I.NodeType.DocumentType){try{for(var E=Dt(r._children),A=E.next();!A.done;A=E.next()){var g=A.value;if(g._nodeType===I.NodeType.DocumentType&&g!==t)throw new ne.HierarchyRequestError("Document already has a document type node. Node is "+e.nodeName+".")}}catch(B){u={error:B}}finally{try{A&&!A.done&&(c=E.return)&&c.call(E)}finally{if(u)throw u.error}}for(var N=t._previousSibling;N;){if(N._nodeType===I.NodeType.Element)throw new ne.HierarchyRequestError("Cannot insert a document type node before an element node. Node is "+e.nodeName+".");N=N._previousSibling}}}var D=t._nextSibling;D===e&&(D=e._nextSibling);var P=t._previousSibling;dm.document_adopt(e,r._nodeDocument);var C=[];t._parent!==null&&(C.push(t),Wa(t,t._parent,!0));var T=[];return e._nodeType===I.NodeType.DocumentFragment?T=Array.from(e._children):T.push(e),hc(e,r,D,!0),ee.dom.features.mutationObservers&&ho.observer_queueTreeMutationRecord(r,T,C,P,D),t}ht.mutation_replace=pF;function hF(t,e){var r,n;t!==null&&dm.document_adopt(t,e._nodeDocument);var i=Array.from(e._children),o=[];t&&t._nodeType===I.NodeType.DocumentFragment?o=Array.from(t._children):t!==null&&o.push(t);try{for(var a=Dt(i),s=a.next();!s.done;s=a.next()){var l=s.value;Wa(l,e,!0)}}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}t!==null&&hc(t,e,null,!0),ee.dom.features.mutationObservers&&ho.observer_queueTreeMutationRecord(e,o,i,null,null)}ht.mutation_replaceAll=hF;function mF(t,e){if(t._parent!==e)throw new ne.NotFoundError("The child node cannot be found under parent node. Child node is "+t.nodeName+", parent node is "+e.nodeName+".");return Wa(t,e),t}ht.mutation_preRemove=mF;function Wa(t,e,r){var n,i,o,a,s,l,u,c;if(ee.dom.rangeList.size!==0){var f=Re.tree_index(t);try{for(var d=Dt(ee.dom.rangeList),p=d.next();!p.done;p=d.next()){var h=p.value;Re.tree_isDescendantOf(t,h._start[0],!0)&&(h._start=[e,f]),Re.tree_isDescendantOf(t,h._end[0],!0)&&(h._end=[e,f]),h._start[0]===e&&h._start[1]>f&&h._start[1]--,h._end[0]===e&&h._end[1]>f&&h._end[1]--}}catch(U){n={error:U}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}try{for(var m=Dt(ee.dom.rangeList),y=m.next();!y.done;y=m.next()){var h=y.value;h._start[0]===e&&h._start[1]>f&&(h._start[1]-=1),h._end[0]===e&&h._end[1]>f&&(h._end[1]-=1)}}catch(U){o={error:U}}finally{try{y&&!y.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}}if(ee.dom.features.steps)try{for(var g=Dt(cF.nodeIterator_iteratorList()),b=g.next();!b.done;b=g.next()){var v=b.value;v._root._nodeDocument===t._nodeDocument&&En.dom_runNodeIteratorPreRemovingSteps(v,t)}}catch(U){s={error:U}}finally{try{b&&!b.done&&(l=g.return)&&l.call(g)}finally{if(s)throw s.error}}var S=t._previousSibling,E=t._nextSibling;we.Guard.isDocumentNode(e)&&we.Guard.isElementNode(t)&&(e._documentElement=null),t._parent=null,e._children.delete(t);var A=t._previousSibling,N=t._nextSibling;if(t._previousSibling=null,t._nextSibling=null,A&&(A._nextSibling=N),N&&(N._previousSibling=A),A||(e._firstChild=N),N||(e._lastChild=A),ee.dom.features.slots&&we.Guard.isSlotable(t)&&t._assignedSlot!==null&&jt.shadowTree_isAssigned(t)&&jt.shadowTree_assignSlotables(t._assignedSlot),ee.dom.features.slots&&we.Guard.isShadowRoot(Re.tree_rootNode(e))&&we.Guard.isSlot(e)&&fm.isEmpty(e._assignedNodes)&&jt.shadowTree_signalASlotChange(e),ee.dom.features.slots){var D=Re.tree_getFirstDescendantNode(t,!0,!1,function(U){return we.Guard.isSlot(U)});D!==null&&(jt.shadowTree_assignSlotablesForATree(Re.tree_rootNode(e)),jt.shadowTree_assignSlotablesForATree(t))}ee.dom.features.steps&&En.dom_runRemovingSteps(t,e),ee.dom.features.customElements&&we.Guard.isCustomElementNode(t)&&po.customElement_enqueueACustomElementCallbackReaction(t,"disconnectedCallback",[]);for(var P=Re.tree_getFirstDescendantNode(t,!1,!0);P!==null;)ee.dom.features.steps&&En.dom_runRemovingSteps(P,t),ee.dom.features.customElements&&we.Guard.isCustomElementNode(P)&&po.customElement_enqueueACustomElementCallbackReaction(P,"disconnectedCallback",[]),P=Re.tree_getNextDescendantNode(t,P,!1,!0);if(ee.dom.features.mutationObservers)for(var C=Re.tree_getFirstAncestorNode(e,!0);C!==null;){try{for(var T=(u=void 0,Dt(C._registeredObserverList)),B=T.next();!B.done;B=T.next()){var M=B.value;M.options.subtree&&t._registeredObserverList.push({observer:M.observer,options:M.options,source:M})}}catch(U){u={error:U}}finally{try{B&&!B.done&&(c=T.return)&&c.call(T)}finally{if(u)throw u.error}}C=Re.tree_getNextAncestorNode(e,C,!0)}ee.dom.features.mutationObservers&&(r||ho.observer_queueTreeMutationRecord(e,[],[t],S,E)),ee.dom.features.steps&&we.Guard.isTextNode(t)&&En.dom_runChildTextContentChangeSteps(e)}ht.mutation_remove=Wa});var fo=_(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});var Gt=De(),di=Fe(),vc=de(),pi=Ue(),_c=kr(),Br=Ua(),yc=lo(),gc=zr(),mc=fi(),Y0=pc();function _F(t,e){return e._attributeList._asArray().indexOf(t)!==-1}mt.element_has=_F;function J0(t,e,r){Gt.dom.features.mutationObservers&&yc.observer_queueAttributeMutationRecord(e,t._localName,t._namespace,t._value),Gt.dom.features.customElements&&vc.Guard.isCustomElementNode(e)&&Br.customElement_enqueueACustomElementCallbackReaction(e,"attributeChangedCallback",[t._localName,t._value,r,t._namespace]),Gt.dom.features.steps&&gc.dom_runAttributeChangeSteps(e,t._localName,t._value,r,t._namespace),t._value=r}mt.element_change=J0;function pm(t,e){Gt.dom.features.mutationObservers&&yc.observer_queueAttributeMutationRecord(e,t._localName,t._namespace,null),Gt.dom.features.customElements&&vc.Guard.isCustomElementNode(e)&&Br.customElement_enqueueACustomElementCallbackReaction(e,"attributeChangedCallback",[t._localName,null,t._value,t._namespace]),Gt.dom.features.steps&&gc.dom_runAttributeChangeSteps(e,t._localName,null,t._value,t._namespace),e._attributeList._asArray().push(t),t._element=e,!e._nodeDocument._hasNamespaces&&(t._namespace!==null||t._namespacePrefix!==null||t._localName==="xmlns")&&(e._nodeDocument._hasNamespaces=!0)}mt.element_append=pm;function hm(t,e){Gt.dom.features.mutationObservers&&yc.observer_queueAttributeMutationRecord(e,t._localName,t._namespace,t._value),Gt.dom.features.customElements&&vc.Guard.isCustomElementNode(e)&&Br.customElement_enqueueACustomElementCallbackReaction(e,"attributeChangedCallback",[t._localName,t._value,null,t._namespace]),Gt.dom.features.steps&&gc.dom_runAttributeChangeSteps(e,t._localName,t._value,null,t._namespace);var r=e._attributeList._asArray().indexOf(t);e._attributeList._asArray().splice(r,1),t._element=null}mt.element_remove=hm;function K0(t,e,r){Gt.dom.features.mutationObservers&&yc.observer_queueAttributeMutationRecord(r,t._localName,t._namespace,t._value),Gt.dom.features.customElements&&vc.Guard.isCustomElementNode(r)&&Br.customElement_enqueueACustomElementCallbackReaction(r,"attributeChangedCallback",[t._localName,t._value,e._value,t._namespace]),Gt.dom.features.steps&&gc.dom_runAttributeChangeSteps(r,t._localName,t._value,e._value,t._namespace);var n=r._attributeList._asArray().indexOf(t);n!==-1&&(r._attributeList._asArray()[n]=e),t._element=null,e._element=r,!r._nodeDocument._hasNamespaces&&(e._namespace!==null||e._namespacePrefix!==null||e._localName==="xmlns")&&(r._nodeDocument._hasNamespaces=!0)}mt.element_replace=K0;function Q0(t,e){return e._namespace===di.namespace.HTML&&e._nodeDocument._type==="html"&&(t=t.toLowerCase()),e._attributeList._asArray().find(function(r){return r._qualifiedName===t})||null}mt.element_getAnAttributeByName=Q0;function $a(t,e,r){var n=t||null;return r._attributeList._asArray().find(function(i){return i._namespace===n&&i._localName===e})||null}mt.element_getAnAttributeByNamespaceAndLocalName=$a;function vF(t,e,r){r===void 0&&(r="");var n=$a(r,e,t);return n===null?"":n._value}mt.element_getAnAttributeValue=vF;function yF(t,e){if(t._element!==null&&t._element!==e)throw new pi.InUseAttributeError("This attribute already exists in the document: "+t._qualifiedName+" as a child of "+t._element._qualifiedName+".");var r=$a(t._namespace||"",t._localName,e);return r===t?t:(r!==null?K0(r,t,e):pm(t,e),r)}mt.element_setAnAttribute=yF;function gF(t,e,r,n,i){n===void 0&&(n=null),i===void 0&&(i=null);var o=$a(i||"",e,t);if(o===null){var a=_c.create_attr(t._nodeDocument,e);a._namespace=i,a._namespacePrefix=n,a._value=r,pm(a,t);return}J0(o,t,r)}mt.element_setAnAttributeValue=gF;function bF(t,e){var r=Q0(t,e);return r!==null&&hm(r,e),r}mt.element_removeAnAttributeByName=bF;function wF(t,e,r){var n=$a(t,e,r);return n!==null&&hm(n,r),n}mt.element_removeAnAttributeByNamespaceAndLocalName=wF;function SF(t,e,r,n,i,o){n===void 0&&(n=null),i===void 0&&(i=null),o===void 0&&(o=!1);var a=null;if(!Gt.dom.features.customElements)return a=_c.create_element(t,e,r,n),a._customElementState="uncustomized",a._customElementDefinition=null,a._is=i,a;var s=Br.customElement_lookUpACustomElementDefinition(t,r,e,i);if(s!==null&&s.name!==s.localName){var l=Y0.document_elementInterface(e,di.namespace.HTML);a=new l,a._localName=e,a._namespace=di.namespace.HTML,a._namespacePrefix=n,a._customElementState="undefined",a._customElementDefinition=null,a._is=i,a._nodeDocument=t,o?Br.customElement_upgrade(s,a):Br.customElement_enqueueACustomElementUpgradeReaction(a,s)}else if(s!==null)if(o)try{var u=s.constructor,c=new u;if(console.assert(c._customElementState!==void 0),console.assert(c._customElementDefinition!==void 0),console.assert(c._namespace===di.namespace.HTML),c._attributeList.length!==0)throw new pi.NotSupportedError("Custom element already has attributes.");if(c._children.size!==0)throw new pi.NotSupportedError("Custom element already has child nodes.");if(c._parent!==null)throw new pi.NotSupportedError("Custom element already has a parent node.");if(c._nodeDocument!==t)throw new pi.NotSupportedError("Custom element is already in a document.");if(c._localName!==e)throw new pi.NotSupportedError("Custom element has a different local name.");c._namespacePrefix=n,c._is=null}catch{a=_c.create_htmlUnknownElement(t,e,di.namespace.HTML,n),a._customElementState="failed",a._customElementDefinition=null,a._is=null}else a=_c.create_htmlElement(t,e,di.namespace.HTML,n),a._customElementState="undefined",a._customElementDefinition=null,a._is=null,Br.customElement_enqueueACustomElementUpgradeReaction(a,s);else{var f=Y0.document_elementInterface(e,r);a=new f,a._localName=e,a._namespace=r,a._namespacePrefix=n,a._customElementState="uncustomized",a._customElementDefinition=null,a._is=i,a._nodeDocument=t,r===di.namespace.HTML&&(i!==null||Br.customElement_isValidCustomElementName(e))&&(a._customElementState="undefined")}if(a===null)throw new Error("Unable to create element.");return a}mt.element_createAnElement=SF;function EF(t,e,r){switch(e.toLowerCase()){case"beforebegin":return t._parent===null?null:mc.mutation_preInsert(r,t._parent,t);case"afterbegin":return mc.mutation_preInsert(r,t,t._firstChild);case"beforeend":return mc.mutation_preInsert(r,t,null);case"afterend":return t._parent===null?null:mc.mutation_preInsert(r,t._parent,t._nextSibling);default:throw new pi.SyntaxError(`Invalid 'where' argument. "beforebegin", "afterbegin", "beforeend" or "afterend" expected`)}}mt.element_insertAdjacent=EF});var Z0=_(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});var xF=fo();function NF(t,e){t._element===null?t._value=e:xF.element_change(t,t._element,e)}mm.attr_setAnExistingAttributeValue=NF});var vm=_(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var jr=oe(),mo=Bt();function eb(t,e){var r=t[0],n=t[1],i=e[0],o=e[1];if(console.assert(mo.tree_rootNode(r)===mo.tree_rootNode(i),"Boundary points must share the same root node."),r===i)return n===o?jr.BoundaryPosition.Equal:n{"use strict";var CF=_o&&_o.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(_o,"__esModule",{value:!0});var ym=De(),AF=de(),tb=Ue(),rb=Bt(),OF=lo(),LF=zr();function TF(t,e,r,n){var i,o,a=rb.tree_nodeLength(t);if(e>a)throw new tb.IndexSizeError("Offset exceeds character data length. Offset: "+e+", Length: "+a+", Node is "+t.nodeName+".");e+r>a&&(r=a-e),ym.dom.features.mutationObservers&&OF.observer_queueMutationRecord("characterData",t,null,null,t._data,[],[],null,null);var s=t._data.substring(0,e)+n+t._data.substring(e+r);t._data=s;try{for(var l=CF(ym.dom.rangeList),u=l.next();!u.done;u=l.next()){var c=u.value;c._start[0]===t&&c._start[1]>e&&c._start[1]<=e+r&&(c._start[1]=e),c._end[0]===t&&c._end[1]>e&&c._end[1]<=e+r&&(c._end[1]=e),c._start[0]===t&&c._start[1]>e+r&&(c._start[1]+=n.length-r),c._end[0]===t&&c._end[1]>e+r&&(c._end[1]+=n.length-r)}}catch(f){i={error:f}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}ym.dom.features.steps&&AF.Guard.isTextNode(t)&&t._parent!==null&&LF.dom_runChildTextContentChangeSteps(t._parent)}_o.characterData_replaceData=TF;function PF(t,e,r){var n=rb.tree_nodeLength(t);if(e>n)throw new tb.IndexSizeError("Offset exceeds character data length. Offset: "+e+", Length: "+n+", Node is "+t.nodeName+".");return e+r>n?t._data.substr(e):t._data.substr(e,r)}_o.characterData_substringData=PF});var wc=_(Kt=>{"use strict";var DF=Kt&&Kt.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},IF=Kt&&Kt.__spread||function(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Kt,"__esModule",{value:!0});var FF=Fe();function ib(t){var e=FF.string.splitAStringOnASCIIWhitespace(t);return new Set(e)}Kt.orderedSet_parse=ib;function ob(t){return IF(t).join(" ")}Kt.orderedSet_serialize=ob;function MF(t){return ob(ib(t))}Kt.orderedSet_sanitize=MF;function RF(t,e,r){var n,i,o,a;try{for(var s=nb(e),l=s.next();!l.done;l=s.next()){var u=l.value,c=!1;try{for(var f=(o=void 0,nb(t)),d=f.next();!d.done;d=f.next()){var p=d.value;if(r){if(p===u){c=!0;break}}else if(p.toUpperCase()===u.toUpperCase()){c=!0;break}}}catch(h){o={error:h}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}if(!c)return!1}}catch(h){n={error:h}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return!0}Kt.orderedSet_contains=RF});var lb=_(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var kF=wc(),ab=zr(),sb=fo();function zF(t,e){if(!ab.dom_hasSupportedTokens(t._attribute._localName))throw new TypeError("There are no supported tokens defined for attribute name: '"+t._attribute._localName+"'.");return ab.dom_getSupportedTokens(t._attribute._localName).has(e.toLowerCase())}Va.tokenList_validationSteps=zF;function qF(t){!t._element.hasAttribute(t._attribute._localName)&&t._tokenSet.size===0||sb.element_setAnAttributeValue(t._element,t._attribute._localName,kF.orderedSet_serialize(t._tokenSet))}Va.tokenList_updateSteps=qF;function BF(t){return sb.element_getAnAttributeValue(t._element,t._attribute._localName)}Va.tokenList_serializeSteps=BF});var fb=_(Gr=>{"use strict";var jF=Gr&&Gr.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Gr,"__esModule",{value:!0});var ub=le();function cb(t){return ub.isBoolean(t)?t:t.capture||!1}Gr.eventTarget_flatten=cb;function GF(t){var e=cb(t),r=!1,n=!1;return ub.isBoolean(t)||(r=t.once||!1,n=t.passive||!1),[e,n,r]}Gr.eventTarget_flattenMore=GF;function UF(t,e){if(e.callback!==null){for(var r=0;r{"use strict";var Sc=Qt&&Qt.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Qt,"__esModule",{value:!0});var $F=De(),fe=de(),Ec=Fe(),Ke=kr(),db=wc(),VF=zr(),hb=fi(),pb=fo();function XF(t,e){var r=null;t!==""&&(r=Ke.create_text(e._nodeDocument,t)),hb.mutation_replaceAll(r,e)}Qt.node_stringReplaceAll=XF;function gm(t,e,r){var n,i,o,a;e===void 0&&(e=null),r===void 0&&(r=!1),e===null&&(e=t._nodeDocument);var s;if(fe.Guard.isElementNode(t)){s=pb.element_createAnElement(e,t._localName,t._namespace,t._namespacePrefix,t._is,!1);try{for(var l=Sc(t._attributeList),u=l.next();!u.done;u=l.next()){var c=u.value,f=gm(c,e);pb.element_append(f,s)}}catch(v){n={error:v}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}else if(fe.Guard.isDocumentNode(t)){var d=Ke.create_document();d._encoding=t._encoding,d._contentType=t._contentType,d._URL=t._URL,d._origin=t._origin,d._type=t._type,d._mode=t._mode,s=d}else if(fe.Guard.isDocumentTypeNode(t)){var p=Ke.create_documentType(e,t._name,t._publicId,t._systemId);s=p}else if(fe.Guard.isAttrNode(t)){var h=Ke.create_attr(e,t.localName);h._namespace=t._namespace,h._namespacePrefix=t._namespacePrefix,h._value=t._value,s=h}else fe.Guard.isExclusiveTextNode(t)?s=Ke.create_text(e,t._data):fe.Guard.isCDATASectionNode(t)?s=Ke.create_cdataSection(e,t._data):fe.Guard.isCommentNode(t)?s=Ke.create_comment(e,t._data):fe.Guard.isProcessingInstructionNode(t)?s=Ke.create_processingInstruction(e,t._target,t._data):fe.Guard.isDocumentFragmentNode(t)?s=Ke.create_documentFragment(e):s=Object.create(t);if(fe.Guard.isDocumentNode(s)?(s._nodeDocument=s,e=s):s._nodeDocument=e,$F.dom.features.steps&&VF.dom_runCloningSteps(s,t,e,r),r)try{for(var m=Sc(t._children),y=m.next();!y.done;y=m.next()){var g=y.value,b=gm(g,e,!0);hb.mutation_append(b,s)}}catch(v){o={error:v}}finally{try{y&&!y.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}return s}Qt.node_clone=gm;function bm(t,e){var r,n,i,o;if(t._nodeType!==e._nodeType)return!1;if(fe.Guard.isDocumentTypeNode(t)&&fe.Guard.isDocumentTypeNode(e)){if(t._name!==e._name||t._publicId!==e._publicId||t._systemId!==e._systemId)return!1}else if(fe.Guard.isElementNode(t)&&fe.Guard.isElementNode(e)){if(t._namespace!==e._namespace||t._namespacePrefix!==e._namespacePrefix||t._localName!==e._localName||t._attributeList.length!==e._attributeList.length)return!1}else if(fe.Guard.isAttrNode(t)&&fe.Guard.isAttrNode(e)){if(t._namespace!==e._namespace||t._localName!==e._localName||t._value!==e._value)return!1}else if(fe.Guard.isProcessingInstructionNode(t)&&fe.Guard.isProcessingInstructionNode(e)){if(t._target!==e._target||t._data!==e._data)return!1}else if(fe.Guard.isCharacterDataNode(t)&&fe.Guard.isCharacterDataNode(e)&&t._data!==e._data)return!1;if(fe.Guard.isElementNode(t)&&fe.Guard.isElementNode(e)){var a={};try{for(var s=Sc(t._attributeList),l=s.next();!l.done;l=s.next()){var u=l.value;a[u._localName]=u}}catch(v){r={error:v}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}try{for(var c=Sc(e._attributeList),f=c.next();!f.done;f=c.next()){var d=f.value,u=a[d._localName];if(!u||!bm(u,d))return!1}}catch(v){i={error:v}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}}if(t._children.size!==e._children.size)return!1;for(var p=t._children[Symbol.iterator](),h=e._children[Symbol.iterator](),m=p.next(),y=h.next();!m.done&&!y.done;){var g=m.value,b=y.value;if(!bm(g,b))return!1;m=p.next(),y=h.next()}return!0}Qt.node_equals=bm;function YF(t,e){return t==="*"?Ke.create_htmlCollection(e):e._nodeDocument._type==="html"?Ke.create_htmlCollection(e,function(r){return r._namespace===Ec.namespace.HTML&&r._qualifiedName===t.toLowerCase()?!0:r._namespace!==Ec.namespace.HTML&&r._qualifiedName===t}):Ke.create_htmlCollection(e,function(r){return r._qualifiedName===t})}Qt.node_listOfElementsWithQualifiedName=YF;function JF(t,e,r){return t===""&&(t=null),t==="*"&&e==="*"?Ke.create_htmlCollection(r):t==="*"?Ke.create_htmlCollection(r,function(n){return n._localName===e}):e==="*"?Ke.create_htmlCollection(r,function(n){return n._namespace===t}):Ke.create_htmlCollection(r,function(n){return n._localName===e&&n._namespace===t})}Qt.node_listOfElementsWithNamespace=JF;function KF(t,e){var r=db.orderedSet_parse(t);if(r.size===0)return Ke.create_htmlCollection(e,function(){return!1});var n=e._nodeDocument._mode!=="quirks";return Ke.create_htmlCollection(e,function(i){var o=i.classList;return db.orderedSet_contains(o._tokenSet,r,n)})}Qt.node_listOfElementsWithClassNames=KF;function mb(t,e){if(t._namespace===e&&t._namespacePrefix!==null)return t._namespacePrefix;for(var r=0;r{"use strict";var QF=Ya&&Ya.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ya,"__esModule",{value:!0});var ZF=le(),_b=kr();function eM(t,e){for(var r,n,i=null,o=0;o{"use strict";var tM=Nn&&Nn.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Nn,"__esModule",{value:!0});var rM=De(),xn=de(),nM=Ue(),iM=kr(),Sm=Bt(),yb=bc(),oM=fi();function aM(t,e){var r;return e===void 0&&(e=!1),r={},r[Symbol.iterator]=function(){for(var n=t;n&&xn.Guard.isTextNode(n._previousSibling);)n=n._previousSibling;return{next:function(){if(n&&!e&&n===t&&(xn.Guard.isTextNode(n._nextSibling)?n=n._nextSibling:n=null),n===null)return{done:!0,value:null};var i={done:!1,value:n};return xn.Guard.isTextNode(n._nextSibling)?n=n._nextSibling:n=null,i}}},r}Nn.text_contiguousTextNodes=aM;function sM(t,e){var r;return e===void 0&&(e=!1),r={},r[Symbol.iterator]=function(){for(var n=t;n&&xn.Guard.isExclusiveTextNode(n._previousSibling);)n=n._previousSibling;return{next:function(){if(n&&!e&&n===t&&(xn.Guard.isExclusiveTextNode(n._nextSibling)?n=n._nextSibling:n=null),n===null)return{done:!0,value:null};var i={done:!1,value:n};return xn.Guard.isExclusiveTextNode(n._nextSibling)?n=n._nextSibling:n=null,i}}},r}Nn.text_contiguousExclusiveTextNodes=sM;function lM(t){for(var e="",r=Sm.tree_getFirstDescendantNode(t,!1,!1,function(n){return xn.Guard.isTextNode(n)});r!==null;)e+=r._data,r=Sm.tree_getNextDescendantNode(t,r,!1,!1,function(n){return xn.Guard.isTextNode(n)});return e}Nn.text_descendantTextContent=lM;function uM(t,e){var r,n,i=t._data.length;if(e>i)throw new nM.IndexSizeError;var o=i-e,a=yb.characterData_substringData(t,e,o),s=iM.create_text(t._nodeDocument,a),l=t._parent;if(l!==null){oM.mutation_insert(s,l,t._nextSibling);try{for(var u=tM(rM.dom.rangeList),c=u.next();!c.done;c=u.next()){var f=c.value;f._start[0]===t&&f._start[1]>e&&(f._start[0]=s,f._start[1]-=e),f._end[0]===t&&f._end[1]>e&&(f._end[0]=s,f._end[1]-=e);var d=Sm.tree_index(t);f._start[0]===l&&f._start[1]===d+1&&f._start[1]++,f._end[0]===l&&f._end[1]===d+1&&f._end[1]++}}catch(p){r={error:p}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}return yb.characterData_replaceData(t,e,o,""),s}Nn.text_split=uM});var wb=_(ke=>{"use strict";var hi=ke&&ke.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},cM=ke&&ke.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},gb=ke&&ke.__spread||function(){for(var t=[],e=0;ete.tree_nodeLength(e))throw new Cn.IndexSizeError;var n=[e,r];(Oc(t)!==te.tree_rootNode(e)||Nc.boundaryPoint_position(n,t._end)===xc.BoundaryPosition.After)&&(t._end=n),t._start=n}ke.range_setTheStart=dM;function pM(t,e,r){if(_t.Guard.isDocumentTypeNode(e))throw new Cn.InvalidNodeTypeError;if(r>te.tree_nodeLength(e))throw new Cn.IndexSizeError;var n=[e,r];(Oc(t)!==te.tree_rootNode(e)||Nc.boundaryPoint_position(n,t._start)===xc.BoundaryPosition.Before)&&(t._start=n),t._end=n}ke.range_setTheEnd=pM;function hM(t,e){var r=t._parent;if(r===null)throw new Cn.InvalidNodeTypeError;var n=te.tree_index(t);e._start=[r,n],e._end=[r,n+1]}ke.range_select=hM;function Cc(t){var e,r,n,i,o,a,s=vo.create_documentFragment(t._startNode._nodeDocument);if(Ac(t))return s;var l=t._startNode,u=t._startOffset,c=t._endNode,f=t._endOffset;if(l===c&&_t.Guard.isCharacterDataNode(l)){var d=lr.node_clone(l);return d._data=Ur.characterData_substringData(l,u,f-u),Qe.mutation_append(d,s),Ur.characterData_replaceData(l,u,f-u,""),s}for(var p=l;!te.tree_isAncestorOf(c,p,!0);){if(p._parent===null)throw new Error("Parent node is null.");p=p._parent}var h=null;if(!te.tree_isAncestorOf(c,l,!0))try{for(var m=hi(p._children),y=m.next();!y.done;y=m.next()){var g=y.value;if(yo(g,t)){h=g;break}}}catch(Ce){e={error:Ce}}finally{try{y&&!y.done&&(r=m.return)&&r.call(m)}finally{if(e)throw e.error}}var b=null;if(!te.tree_isAncestorOf(l,c,!0))for(var v=gb(p._children),S=v.length-1;S>0;S--){var g=v[S];if(yo(g,t)){b=g;break}}var E=[];try{for(var A=hi(p._children),N=A.next();!N.done;N=A.next()){var D=N.value;if(Lc(D,t)){if(_t.Guard.isDocumentTypeNode(D))throw new Cn.HierarchyRequestError;E.push(D)}}}catch(Ce){n={error:Ce}}finally{try{N&&!N.done&&(i=A.return)&&i.call(A)}finally{if(n)throw n.error}}var P,C;if(te.tree_isAncestorOf(c,l,!0))P=l,C=u;else{for(var T=l;T._parent!==null&&!te.tree_isAncestorOf(c,T._parent);)T=T._parent;if(T._parent===null)throw new Error("Parent node is null.");P=T._parent,C=1+te.tree_index(T)}if(_t.Guard.isCharacterDataNode(h)){var d=lr.node_clone(l);d._data=Ur.characterData_substringData(l,u,te.tree_nodeLength(l)-u),Qe.mutation_append(d,s),Ur.characterData_replaceData(l,u,te.tree_nodeLength(l)-u,"")}else if(h!==null){var d=lr.node_clone(h);Qe.mutation_append(d,s);var B=vo.create_range([l,u],[h,te.tree_nodeLength(h)]),M=Cc(B);Qe.mutation_append(M,d)}try{for(var U=hi(E),Te=U.next();!Te.done;Te=U.next()){var D=Te.value;Qe.mutation_append(D,s)}}catch(Ce){o={error:Ce}}finally{try{Te&&!Te.done&&(a=U.return)&&a.call(U)}finally{if(o)throw o.error}}if(_t.Guard.isCharacterDataNode(b)){var d=lr.node_clone(c);d._data=Ur.characterData_substringData(c,0,f),Qe.mutation_append(d,s),Ur.characterData_replaceData(c,0,f,"")}else if(b!==null){var d=lr.node_clone(b);Qe.mutation_append(d,s);var B=vo.create_range([b,0],[c,f]),M=Cc(B);Qe.mutation_append(M,d)}return t._start=[P,C],t._end=[P,C],s}ke.range_extract=Cc;function bb(t){var e,r,n,i,o,a,s=vo.create_documentFragment(t._startNode._nodeDocument);if(Ac(t))return s;var l=t._startNode,u=t._startOffset,c=t._endNode,f=t._endOffset;if(l===c&&_t.Guard.isCharacterDataNode(l)){var d=lr.node_clone(l);d._data=Ur.characterData_substringData(l,u,f-u),Qe.mutation_append(d,s)}for(var p=l;!te.tree_isAncestorOf(c,p,!0);){if(p._parent===null)throw new Error("Parent node is null.");p=p._parent}var h=null;if(!te.tree_isAncestorOf(c,l,!0))try{for(var m=hi(p._children),y=m.next();!y.done;y=m.next()){var g=y.value;if(yo(g,t)){h=g;break}}}catch(M){e={error:M}}finally{try{y&&!y.done&&(r=m.return)&&r.call(m)}finally{if(e)throw e.error}}var b=null;if(!te.tree_isAncestorOf(l,c,!0))for(var v=gb(p._children),S=v.length-1;S>0;S--){var g=v[S];if(yo(g,t)){b=g;break}}var E=[];try{for(var A=hi(p._children),N=A.next();!N.done;N=A.next()){var D=N.value;if(Lc(D,t)){if(_t.Guard.isDocumentTypeNode(D))throw new Cn.HierarchyRequestError;E.push(D)}}}catch(M){n={error:M}}finally{try{N&&!N.done&&(i=A.return)&&i.call(A)}finally{if(n)throw n.error}}if(_t.Guard.isCharacterDataNode(h)){var d=lr.node_clone(l);d._data=Ur.characterData_substringData(l,u,te.tree_nodeLength(l)-u),Qe.mutation_append(d,s)}else if(h!==null){var d=lr.node_clone(h);Qe.mutation_append(d,s);var P=vo.create_range([l,u],[h,te.tree_nodeLength(h)]),C=bb(P);Qe.mutation_append(C,d)}try{for(var T=hi(E),B=T.next();!B.done;B=T.next()){var D=B.value,d=lr.node_clone(D);Qe.mutation_append(d,s)}}catch(M){o={error:M}}finally{try{B&&!B.done&&(a=T.return)&&a.call(T)}finally{if(o)throw o.error}}if(_t.Guard.isCharacterDataNode(b)){var d=lr.node_clone(c);d._data=Ur.characterData_substringData(c,0,f),Qe.mutation_append(d,s)}else if(b!==null){var d=lr.node_clone(b);s.append(d);var P=vo.create_range([b,0],[c,f]),C=Cc(P);Qe.mutation_append(C,d)}return s}ke.range_cloneTheContents=bb;function mM(t,e){var r,n;if(_t.Guard.isProcessingInstructionNode(e._startNode)||_t.Guard.isCommentNode(e._startNode)||_t.Guard.isTextNode(e._startNode)&&e._startNode._parent===null||e._startNode===t)throw new Cn.HierarchyRequestError;var i=null;if(_t.Guard.isTextNode(e._startNode))i=e._startNode;else{var o=0;try{for(var a=hi(e._startNode._children),s=a.next();!s.done;s=a.next()){var l=s.value;if(o===e._startOffset){i=l;break}o++}}catch(f){r={error:f}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}var u;if(i===null)u=e._startNode;else{if(i._parent===null)throw new Error("Parent node is null.");u=i._parent}Qe.mutation_ensurePreInsertionValidity(t,u,i),_t.Guard.isTextNode(e._startNode)&&(i=fM.text_split(e._startNode,e._startOffset)),t===i&&(i=t._nextSibling),t._parent!==null&&Qe.mutation_remove(t,t._parent);var c=i===null?te.tree_nodeLength(u):te.tree_index(i);_t.Guard.isDocumentFragmentNode(t)?c+=te.tree_nodeLength(t):c++,Qe.mutation_preInsert(t,u,i),Ac(e)&&(e._end=[u,c])}ke.range_insert=mM;function _M(t){var e;return e={},e[Symbol.iterator]=function(){var r=t.commonAncestorContainer,n=te.tree_getFirstDescendantNode(r);return{next:function(){for(;n&&!Lc(n,t);)n=te.tree_getNextDescendantNode(r,n);if(n===null)return{done:!0,value:null};var i={done:!1,value:n};return n=te.tree_getNextDescendantNode(r,n),i}}},e}ke.range_getContainedNodes=_M;function vM(t){var e;return e={},e[Symbol.iterator]=function(){var r=t.commonAncestorContainer,n=te.tree_getFirstDescendantNode(r);return{next:function(){for(;n&&!yo(n,t);)n=te.tree_getNextDescendantNode(r,n);if(n===null)return{done:!0,value:null};var i={done:!1,value:n};return n=te.tree_getNextDescendantNode(r,n),i}}},e}ke.range_getPartiallyContainedNodes=vM});var Sb=_(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var yM=Ue();function gM(t,e){throw new yM.NotSupportedError}xm.selectors_scopeMatchASelectorsString=gM});var Eb=_(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var Ja=oe(),Nm=fc();function bM(t,e){for(var r=e?t._current._firstChild:t._current._lastChild;r!==null;){var n=Nm.traversal_filter(t,r);if(n===Ja.FilterResult.Accept)return t._current=r,r;if(n===Ja.FilterResult.Skip){var i=e?r._firstChild:r._lastChild;if(i!==null){r=i;continue}}for(;r!==null;){var o=e?r._nextSibling:r._previousSibling;if(o!==null){r=o;break}var a=r._parent;if(a===null||a===t._root||a===t._current)return null;r=a}}return null}Tc.treeWalker_traverseChildren=bM;function wM(t,e){var r=t._current;if(r===t._root)return null;for(;;){for(var n=e?r._nextSibling:r._previousSibling;n!==null;){r=n;var i=Nm.traversal_filter(t,r);if(i===Ja.FilterResult.Accept)return t._current=r,r;n=e?r._firstChild:r._lastChild,(i===Ja.FilterResult.Reject||n===null)&&(n=e?r._nextSibling:r._previousSibling)}if(r=r._parent,r===null||r===t._root||Nm.traversal_filter(t,r)===Ja.FilterResult.Accept)return null}}Tc.treeWalker_traverseSiblings=wM});var Z=_(Pc=>{"use strict";function pe(t){for(var e in t)Pc.hasOwnProperty(e)||(Pc[e]=t[e])}Object.defineProperty(Pc,"__esModule",{value:!0});pe(B0());pe(Z0());pe(vm());pe(bc());pe(kr());pe(Ua());pe(pc());pe(zr());pe(lb());pe(fo());pe(sc());pe(fb());pe(fi());pe(lo());pe(cm());pe(wm());pe(am());pe(wc());pe(vb());pe(wb());pe(Sb());pe(ja());pe(Em());pe(fc());pe(Bt());pe(Eb());pe(ct());pe(sm())});var xb=_(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.nonEntityAmpersandRegex=/&(?![A-Za-z]+;|#\d+;)/g});var go=_(Wr=>{"use strict";var yr=Wr&&Wr.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},SM=Wr&&Wr.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},EM=Wr&&Wr.__spread||function(){for(var t=[],e=0;e/g,">");this.text(n)},t.prototype._serializeDocumentFragmentNS=function(e,r,n,i,o){var a,s;try{for(var l=yr(e.childNodes),u=l.next();!u.done;u=l.next()){var c=u.value;this._serializeNodeNS(c,r,n,i,o)}}catch(f){a={error:f}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}},t.prototype._serializeDocumentFragment=function(e,r){var n,i;try{for(var o=yr(e._children),a=o.next();!a.done;a=o.next()){var s=a.value;this._serializeNode(s,r)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype._serializeDocumentType=function(e,r){if(r&&!gr.xml_isPubidChar(e.publicId))throw new Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(r&&(!gr.xml_isLegalChar(e.systemId)||e.systemId.indexOf('"')!==-1&&e.systemId.indexOf("'")!==-1))throw new Error("DocType system identifier contains invalid characters (well-formed required).");this.docType(e.name,e.publicId,e.systemId)},t.prototype._serializeProcessingInstruction=function(e,r){if(r&&(e.target.indexOf(":")!==-1||/^xml$/i.test(e.target)))throw new Error("Processing instruction target contains invalid characters (well-formed required).");if(r&&(!gr.xml_isLegalChar(e.data)||e.data.indexOf("?>")!==-1))throw new Error("Processing instruction data contains invalid characters (well-formed required).");this.instruction(e.target,e.data)},t.prototype._serializeCData=function(e,r){if(r&&e.data.indexOf("]]>")!==-1)throw new Error("CDATA contains invalid characters (well-formed required).");this.cdata(e.data)},t.prototype._serializeAttributesNS=function(e,r,n,i,o,a){var s,l,u=[],c=a?new xM.LocalNameSet:void 0;try{for(var f=yr(e.attributes),d=f.next();!d.done;d=f.next()){var p=d.value;if(!a&&!o&&p.namespaceURI===null){u.push([null,null,p.localName,this._serializeAttributeValue(p.value,a)]);continue}if(a&&c&&c.has(p.namespaceURI,p.localName))throw new Error("Element contains duplicate attributes (well-formed required).");a&&c&&c.set(p.namespaceURI,p.localName);var h=p.namespaceURI,m=null;if(h!==null)if(m=r.get(p.prefix,h),h===Hr.namespace.XMLNS){if(p.value===Hr.namespace.XML||p.prefix===null&&o||p.prefix!==null&&(!(p.localName in i)||i[p.localName]!==p.value)&&r.has(p.localName,p.value))continue;if(a&&p.value===Hr.namespace.XMLNS)throw new Error("XMLNS namespace is reserved (well-formed required).");if(a&&p.value==="")throw new Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");p.prefix==="xmlns"&&(m="xmlns")}else m===null&&(p.prefix!==null&&(!r.hasPrefix(p.prefix)||r.has(p.prefix,h))?m=p.prefix:m=this._generatePrefix(h,r,n),u.push([null,"xmlns",m,this._serializeAttributeValue(h,a)]));var y="";if(m!==null&&(y=m),a&&(p.localName.indexOf(":")!==-1||!gr.xml_isName(p.localName)||p.localName==="xmlns"&&h===null))throw new Error("Attribute local name contains invalid characters (well-formed required).");u.push([h,m,p.localName,this._serializeAttributeValue(p.value,a)])}}catch(g){s={error:g}}finally{try{d&&!d.done&&(l=f.return)&&l.call(f)}finally{if(s)throw s.error}}return u},t.prototype._serializeAttributes=function(e,r){var n,i,o=[],a=r?{}:void 0;try{for(var s=yr(e.attributes),l=s.next();!l.done;l=s.next()){var u=l.value;if(!r){o.push([null,null,u.localName,this._serializeAttributeValue(u.value,r)]);continue}if(r&&a&&u.localName in a)throw new Error("Element contains duplicate attributes (well-formed required).");if(r&&a&&(a[u.localName]=!0),r&&(u.localName.indexOf(":")!==-1||!gr.xml_isName(u.localName)))throw new Error("Attribute local name contains invalid characters (well-formed required).");o.push([null,null,u.localName,this._serializeAttributeValue(u.value,r)])}}catch(c){n={error:c}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},t.prototype._recordNamespaceInformation=function(e,r,n){var i,o,a=null;try{for(var s=yr(e.attributes),l=s.next();!l.done;l=s.next()){var u=l.value,c=u.namespaceURI,f=u.prefix;if(c===Hr.namespace.XMLNS)if(f===null){a=u.value;continue}else{var d=u.localName,p=u.value;if(p===Hr.namespace.XML||(p===""&&(p=null),r.has(d,p)))continue;r.set(d,p),n[d]=p||""}}}catch(h){i={error:h}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a},t.prototype._generatePrefix=function(e,r,n){var i="ns"+n.value.toString();return n.value++,r.set(i,e),i},t.prototype._serializeAttributeValue=function(e,r){if(r&&e!==null&&!gr.xml_isLegalChar(e))throw new Error("Invalid characters in attribute value.");return e===null?"":e.replace(Nb.nonEntityAmpersandRegex,"&").replace(//g,">").replace(/"/g,""")},t._VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),t}();Wr.BaseWriter=CM});var Ka=_(mi=>{"use strict";var AM=mi&&mi.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),OM=mi&&mi.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(mi,"__esModule",{value:!0});var br=le(),An=oe(),LM=go(),TM=function(t){AM(e,t);function e(r,n){var i=t.call(this,r)||this;return i._writerOptions=br.applyDefaults(n,{format:"object",wellFormed:!1,group:!1,verbose:!1}),i}return e.prototype.serialize=function(r){return this._currentList=[],this._currentIndex=0,this._listRegister=[this._currentList],this.serializeNode(r,this._writerOptions.wellFormed),this._process(this._currentList,this._writerOptions)},e.prototype._process=function(r,n){var i,o,a,s,l,u,c;if(r.length===0)return{};for(var f={},d=!1,p=0,h=0,m=0,y=0,g=0;g2)try{for(var c=OM(r),f=c.next();!f.done;f=c.next()){var d=f.value,p=o+(s++).toString();n[p]=d}}catch(h){l={error:h}}finally{try{f&&!f.done&&(u=c.return)&&u.call(c)}finally{if(l)throw l.error}}else{var p=a>1?o+(s++).toString():o;n[p]=r}return s},e.prototype.beginElement=function(r){var n,i,o=[];if(this._currentList.length===0)this._currentList.push((n={},n[r]=o,n));else{var a=this._currentList[this._currentList.length-1];if(this._isElementNode(a,r))if(a[r].length!==0&&br.isArray(a[r][0])){var s=a[r];s.push(o)}else a[r]=[a[r],o];else this._currentList.push((i={},i[r]=o,i))}this._currentIndex++,this._listRegister.length>this._currentIndex?this._listRegister[this._currentIndex]=o:this._listRegister.push(o),this._currentList=o},e.prototype.endElement=function(){this._currentList=this._listRegister[--this._currentIndex]},e.prototype.attribute=function(r,n){var i,o;if(this._currentList.length===0)this._currentList.push({"@":(i={},i[r]=n,i)});else{var a=this._currentList[this._currentList.length-1];this._isAttrNode(a)?a["@"][r]=n:this._currentList.push({"@":(o={},o[r]=n,o)})}},e.prototype.comment=function(r){if(this._currentList.length===0)this._currentList.push({"!":r});else{var n=this._currentList[this._currentList.length-1];this._isCommentNode(n)?br.isArray(n["!"])?n["!"].push(r):n["!"]=[n["!"],r]:this._currentList.push({"!":r})}},e.prototype.text=function(r){if(this._currentList.length===0)this._currentList.push({"#":r});else{var n=this._currentList[this._currentList.length-1];this._isTextNode(n)?br.isArray(n["#"])?n["#"].push(r):n["#"]=[n["#"],r]:this._currentList.push({"#":r})}},e.prototype.instruction=function(r,n){var i=n===""?r:r+" "+n;if(this._currentList.length===0)this._currentList.push({"?":i});else{var o=this._currentList[this._currentList.length-1];this._isInstructionNode(o)?br.isArray(o["?"])?o["?"].push(i):o["?"]=[o["?"],i]:this._currentList.push({"?":i})}},e.prototype.cdata=function(r){if(this._currentList.length===0)this._currentList.push({$:r});else{var n=this._currentList[this._currentList.length-1];this._isCDATANode(n)?br.isArray(n.$)?n.$.push(r):n.$=[n.$,r]:this._currentList.push({$:r})}},e.prototype._isAttrNode=function(r){return"@"in r},e.prototype._isTextNode=function(r){return"#"in r},e.prototype._isCommentNode=function(r){return"!"in r},e.prototype._isInstructionNode=function(r){return"?"in r},e.prototype._isCDATANode=function(r){return"$"in r},e.prototype._isElementNode=function(r,n){return n in r},e.prototype._getAttrKey=function(){return this._builderOptions.convert.att},e.prototype._getNodeKey=function(r){switch(r){case An.NodeType.Comment:return this._builderOptions.convert.comment;case An.NodeType.Text:return this._builderOptions.convert.text;case An.NodeType.ProcessingInstruction:return this._builderOptions.convert.ins;case An.NodeType.CData:return this._builderOptions.convert.cdata;default:throw new Error("Invalid node type.")}},e}(LM.BaseWriter);mi.ObjectWriter=TM});var Cb=_(Qa=>{"use strict";var PM=Qa&&Qa.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Qa,"__esModule",{value:!0});var Dc=le(),DM=Ka(),IM=go(),FM=function(t){PM(e,t);function e(r,n){var i=t.call(this,r)||this;return i._writerOptions=Dc.applyDefaults(n,{format:"map",wellFormed:!1,group:!1,verbose:!1}),i}return e.prototype.serialize=function(r){var n=Dc.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1,verbose:!1}),i=new DM.ObjectWriter(this._builderOptions,n),o=i.serialize(r);return this._convertObject(o)},e.prototype._convertObject=function(r){if(Dc.isArray(r)){for(var n=0;n{"use strict";var MM=Za&&Za.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Za,"__esModule",{value:!0});var RM=le(),kM=oe(),zM=go(),Ab=de(),qM=function(t){MM(e,t);function e(r,n){var i=t.call(this,r)||this;return i._indentation={},i._lengthToLastNewline=0,i._writerOptions=RM.applyDefaults(n,{wellFormed:!1,headless:!1,prettyPrint:!1,indent:" ",newline:` `,offset:0,width:0,allowEmptyTags:!1,indentTextOnlyNodes:!1,spaceBeforeSlash:!1}),i}return e.prototype.serialize=function(r){return this._refs={suppressPretty:!1,emptyNode:!1,markup:""},r.nodeType===kM.NodeType.Document&&!this._writerOptions.headless&&this.declaration(this._builderOptions.version,this._builderOptions.encoding,this._builderOptions.standalone),this.serializeNode(r,this._writerOptions.wellFormed),this._writerOptions.prettyPrint&&this._refs.markup.slice(-this._writerOptions.newline.length)===this._writerOptions.newline&&(this._refs.markup=this._refs.markup.slice(0,-this._writerOptions.newline.length)),this._refs.markup},e.prototype.declaration=function(r,n,i){this._beginLine(),this._refs.markup+='",this._endLine()},e.prototype.docType=function(r,n,i){this._beginLine(),n&&i?this._refs.markup+="':n?this._refs.markup+="':i?this._refs.markup+="':this._refs.markup+="",this._endLine()},e.prototype.openTagBegin=function(r){this._beginLine(),this._refs.markup+="<"+r},e.prototype.openTagEnd=function(r,n,i){if(this._refs.suppressPretty=!1,this._refs.emptyNode=!1,this._writerOptions.prettyPrint&&!n&&!i){for(var o=!0,a=!0,s=this.currentNode.firstChild,l=0,u=0;s;){if(Ab.Guard.isExclusiveTextNode(s))u++;else if(Ab.Guard.isCDATASectionNode(s))l++;else{o=!1,a=!1;break}s.data!==""&&(a=!1),s=s.nextSibling}this._refs.suppressPretty=!this._writerOptions.indentTextOnlyNodes&&o&&(l<=1&&u===0||l===0),this._refs.emptyNode=a}(i||n||this._refs.emptyNode)&&this._writerOptions.allowEmptyTags?this._refs.markup+=">":this._refs.markup+=i?" />":n||this._refs.emptyNode?this._writerOptions.spaceBeforeSlash?" />":"/>":">",this._endLine()},e.prototype.closeTag=function(r){this._refs.emptyNode||(this._beginLine(),this._refs.markup+=""),this._refs.suppressPretty=!1,this._refs.emptyNode=!1,this._endLine()},e.prototype.attribute=function(r,n){var i=r+'="'+n+'"';this._writerOptions.prettyPrint&&this._writerOptions.width>0&&this._refs.markup.length-this._lengthToLastNewline+1+i.length>this._writerOptions.width?(this._endLine(),this._beginLine(),this._refs.markup+=this._indent(1)+i):this._refs.markup+=" "+i},e.prototype.text=function(r){r!==""&&(this._beginLine(),this._refs.markup+=r,this._endLine())},e.prototype.cdata=function(r){r!==""&&(this._beginLine(),this._refs.markup+="",this._endLine())},e.prototype.comment=function(r){this._beginLine(),this._refs.markup+="",this._endLine()},e.prototype.instruction=function(r,n){this._beginLine(),this._refs.markup+="",this._endLine()},e.prototype._beginLine=function(){this._writerOptions.prettyPrint&&!this._refs.suppressPretty&&(this._refs.markup+=this._indent(this._writerOptions.offset+this.level))},e.prototype._endLine=function(){this._writerOptions.prettyPrint&&!this._refs.suppressPretty&&(this._refs.markup+=this._writerOptions.newline,this._lengthToLastNewline=this._refs.markup.length)},e.prototype._indent=function(r){if(r<=0)return"";if(this._indentation[r]!==void 0)return this._indentation[r];var n=this._writerOptions.indent.repeat(r);return this._indentation[r]=n,n},e}(zM.BaseWriter);Za.XMLWriter=qM});var Lb=_(_i=>{"use strict";var BM=_i&&_i.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),jM=_i&&_i.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(_i,"__esModule",{value:!0});var GM=Ka(),wr=le(),UM=go(),HM=function(t){BM(e,t);function e(r,n){var i=t.call(this,r)||this;return i._writerOptions=wr.applyDefaults(n,{wellFormed:!1,prettyPrint:!1,indent:" ",newline:` `,offset:0,group:!1,verbose:!1}),i}return e.prototype.serialize=function(r){var n=wr.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1}),i=new GM.ObjectWriter(this._builderOptions,n),o=i.serialize(r);return this._beginLine(this._writerOptions,0)+this._convertObject(o,this._writerOptions)},e.prototype._convertObject=function(r,n,i){var o,a,s=this;i===void 0&&(i=0);var l="",u=this._isLeafNode(r);if(wr.isArray(r)){l+="[";var c=r.length,f=0;try{for(var d=jM(r),p=d.next();!p.done;p=d.next()){var h=p.value;l+=this._endLine(n,i+1)+this._beginLine(n,i+1)+this._convertObject(h,n,i+1),f0)return new Array(i).join(r.indent)}else return"";return""},e.prototype._endLine=function(r,n){return r.prettyPrint?r.newline:""},e.prototype._key=function(r){return'"'+r+'":'},e.prototype._val=function(r){return JSON.stringify(r)},e.prototype._isLeafNode=function(r){return this._descendantCount(r)<=1},e.prototype._descendantCount=function(r,n){var i=this;return n===void 0&&(n=0),wr.isArray(r)?wr.forEachArray(r,function(o){return n+=i._descendantCount(o,n)},this):wr.isObject(r)?wr.forEachObject(r,function(o,a){return n+=i._descendantCount(a,n)},this):n++,n},e}(UM.BaseWriter);_i.JSONWriter=HM});var Tb=_(vi=>{"use strict";var WM=vi&&vi.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),$M=vi&&vi.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(vi,"__esModule",{value:!0});var VM=Ka(),On=le(),XM=go(),YM=function(t){WM(e,t);function e(r,n){var i=t.call(this,r)||this;if(i._writerOptions=On.applyDefaults(n,{wellFormed:!1,indent:" ",newline:` `,offset:0,group:!1,verbose:!1}),i._writerOptions.indent.length<2)throw new Error("YAML indententation string must be at least two characters long.");if(i._writerOptions.offset<0)throw new Error("YAML offset should be zero or a positive number.");return i}return e.prototype.serialize=function(r){var n=On.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1}),i=new VM.ObjectWriter(this._builderOptions,n),o=i.serialize(r),a=this._beginLine(this._writerOptions,0)+"---"+this._endLine(this._writerOptions)+this._convertObject(o,this._writerOptions,0);return a.slice(-this._writerOptions.newline.length)===this._writerOptions.newline&&(a=a.slice(0,-this._writerOptions.newline.length)),a},e.prototype._convertObject=function(r,n,i,o){var a,s,l=this;o===void 0&&(o=!1);var u="";if(On.isArray(r))try{for(var c=$M(r),f=c.next();!f.done;f=c.next()){var d=f.value;u+=this._beginLine(n,i,!0),On.isObject(d)?On.isEmpty(d)?u+='""'+this._endLine(n):u+=this._convertObject(d,n,i,!0):u+=this._val(d)+this._endLine(n)}}catch(p){a={error:p}}finally{try{f&&!f.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}else On.forEachObject(r,function(p,h){o?(u+=l._key(p),o=!1):u+=l._beginLine(n,i)+l._key(p),On.isObject(h)?On.isEmpty(h)?u+=' ""'+l._endLine(n):u+=l._endLine(n)+l._convertObject(h,n,i+1):u+=" "+l._val(h)+l._endLine(n)},this);return u},e.prototype._beginLine=function(r,n,i){i===void 0&&(i=!1);var o=r.offset+n+1,a=new Array(o).join(r.indent);return i?a.substr(0,a.length-2)+"-"+a.substr(-1,1):a},e.prototype._endLine=function(r){return r.newline},e.prototype._key=function(r){return'"'+r+'":'},e.prototype._val=function(r){return JSON.stringify(r)},e}(XM.BaseWriter);vi.YAMLWriter=YM});var Pb=_(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var JM=Cb();yi.MapWriter=JM.MapWriter;var KM=Ob();yi.XMLWriter=KM.XMLWriter;var QM=Ka();yi.ObjectWriter=QM.ObjectWriter;var ZM=Lb();yi.JSONWriter=ZM.JSONWriter;var eR=Tb();yi.YAMLWriter=eR.YAMLWriter});var Db=_(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var Ic=de(),Ln=Z(),tR=function(){function t(){}return t.prototype.before=function(){for(var e=[],r=0;r{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});var rR=function(){function t(){}return t}();Om.DocumentOrShadowRootImpl=rR});var Fb=_(es=>{"use strict";var Lm=es&&es.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(es,"__esModule",{value:!0});var nR=De(),iR=de(),Tm=Fe(),oR=function(){function t(e){this._nodeList=[],this._recordQueue=[],this._callback=e;var r=nR.dom.window;Tm.set.append(r._mutationObservers,this)}return t.prototype.observe=function(e,r){var n,i;if(r=r||{childList:!1,subtree:!1},(r.attributeOldValue!==void 0||r.attributeFilter!==void 0)&&r.attributes===void 0&&(r.attributes=!0),r.characterDataOldValue!==void 0&&r.characterData===void 0&&(r.characterData=!0),!r.childList&&!r.attributes&&!r.characterData)throw new TypeError;if(r.attributeOldValue&&!r.attributes)throw new TypeError;if(r.attributeFilter!==void 0&&!r.attributes)throw new TypeError;if(r.characterDataOldValue&&!r.characterData)throw new TypeError;var o=!1,a=r,s=function(d){var p,h;if(d.observer===l){o=!0;try{for(var m=(p=void 0,Lm(l._nodeList)),y=m.next();!y.done;y=m.next()){var g=y.value;Tm.list.remove(g._registeredObserverList,function(b){return iR.Guard.isTransientRegisteredObserver(b)&&b.source===d})}}catch(b){p={error:b}}finally{try{y&&!y.done&&(h=m.return)&&h.call(m)}finally{if(p)throw p.error}}d.options=a}},l=this;try{for(var u=Lm(e._registeredObserverList),c=u.next();!c.done;c=u.next()){var f=c.value;s(f)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}o||(e._registeredObserverList.push({observer:this,options:r}),this._nodeList.push(e))},t.prototype.disconnect=function(){var e,r,n=this;try{for(var i=Lm(this._nodeList),o=i.next();!o.done;o=i.next()){var a=o.value;Tm.list.remove(a._registeredObserverList,function(s){return s.observer===n})}}catch(s){e={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}this._recordQueue=[]},t.prototype.takeRecords=function(){var e=this._recordQueue;return this._recordQueue=[],e},t}();es.MutationObserverImpl=oR});var Mb=_(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});var Fc=de(),aR=function(){function t(){}return Object.defineProperty(t.prototype,"previousElementSibling",{get:function(){for(var e=Fc.Cast.asNode(this)._previousSibling;e;){if(Fc.Guard.isElementNode(e))return e;e=e._previousSibling}return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextElementSibling",{get:function(){for(var e=Fc.Cast.asNode(this)._nextSibling;e;){if(Fc.Guard.isElementNode(e))return e;e=e._nextSibling}return null},enumerable:!0,configurable:!0}),t}();Pm.NonDocumentTypeChildNodeImpl=aR});var kb=_(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});var Mc=de(),Rb=Z(),sR=function(){function t(){}return t.prototype.getElementById=function(e){for(var r=Rb.tree_getFirstDescendantNode(Mc.Cast.asNode(this),!1,!1,function(n){return Mc.Guard.isElementNode(n)});r!==null;){if(r._uniqueIdentifier===e)return r;r=Rb.tree_getNextDescendantNode(Mc.Cast.asNode(this),r,!1,!1,function(n){return Mc.Guard.isElementNode(n)})}return null},t}();Dm.NonElementParentNodeImpl=sR});var zb=_(ts=>{"use strict";var lR=ts&&ts.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ts,"__esModule",{value:!0});var ur=de(),Tn=Z(),uR=function(){function t(){}return Object.defineProperty(t.prototype,"children",{get:function(){return Tn.create_htmlCollection(ur.Cast.asNode(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstElementChild",{get:function(){for(var e=ur.Cast.asNode(this)._firstChild;e;){if(ur.Guard.isElementNode(e))return e;e=e._nextSibling}return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastElementChild",{get:function(){for(var e=ur.Cast.asNode(this)._lastChild;e;){if(ur.Guard.isElementNode(e))return e;e=e._previousSibling}return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childElementCount",{get:function(){var e,r,n=0;try{for(var i=lR(ur.Cast.asNode(this)._children),o=i.next();!o.done;o=i.next()){var a=o.value;ur.Guard.isElementNode(a)&&n++}}catch(s){e={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},enumerable:!0,configurable:!0}),t.prototype.prepend=function(){for(var e=[],r=0;r{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});var cR=Z(),fR=function(){function t(){}return Object.defineProperty(t.prototype,"_name",{get:function(){return this.__name||""},set:function(e){this.__name=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_assignedSlot",{get:function(){return this.__assignedSlot||null},set:function(e){this.__assignedSlot=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"assignedSlot",{get:function(){return cR.shadowTree_findASlot(this,!0)},enumerable:!0,configurable:!0}),t}();Im.SlotableImpl=fR});var Bb=_(rs=>{"use strict";var dR=rs&&rs.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(rs,"__esModule",{value:!0});var pR=Ku(),hR=Ue(),Rc=de(),mR=function(t){dR(e,t);function e(r){var n=t.call(this)||this;if(Rc.Guard.isDocumentTypeNode(r.startContainer)||Rc.Guard.isAttrNode(r.startContainer)||Rc.Guard.isDocumentTypeNode(r.endContainer)||Rc.Guard.isAttrNode(r.endContainer))throw new hR.InvalidNodeTypeError;return n._start=[r.startContainer,r.startOffset],n._end=[r.endContainer,r.endOffset],n}return e}(pR.AbstractRangeImpl);rs.StaticRangeImpl=mR});var zc=_(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var It=le(),_R=dh();Y.AbortController=_R.AbortControllerImpl;var vR=ph();Y.AbortSignal=vR.AbortSignalImpl;var yR=Ku();Y.AbstractRange=yR.AbstractRangeImpl;var gR=vh();Y.Attr=gR.AttrImpl;var bR=yh();Y.CDATASection=bR.CDATASectionImpl;var Fm=Aa();Y.CharacterData=Fm.CharacterDataImpl;var Mm=Db(),wR=gh();Y.Comment=wR.CommentImpl;var SR=Uh();Y.CustomEvent=SR.CustomEventImpl;var Rm=Yu();Y.DocumentFragment=Rm.DocumentFragmentImpl;var kc=Vu();Y.Document=kc.DocumentImpl;var jb=Ib(),Gb=hh();Y.DocumentType=Gb.DocumentTypeImpl;var ER=De();Y.dom=ER.dom;var xR=Hp();Y.DOMImplementation=xR.DOMImplementationImpl;var NR=kh();Y.DOMTokenList=NR.DOMTokenListImpl;var ns=Xu();Y.Element=ns.ElementImpl;var CR=nc();Y.Event=CR.EventImpl;var AR=ma();Y.EventTarget=AR.EventTargetImpl;var OR=Sh();Y.HTMLCollection=OR.HTMLCollectionImpl;var LR=Fb();Y.MutationObserver=LR.MutationObserverImpl;var TR=Mh();Y.MutationRecord=TR.MutationRecordImpl;var PR=Nh();Y.NamedNodeMap=PR.NamedNodeMapImpl;var DR=Ih();Y.NodeFilter=DR.NodeFilterImpl;var IR=yn();Y.Node=IR.NodeImpl;var FR=Th();Y.NodeIterator=FR.NodeIteratorImpl;var MR=Eh();Y.NodeList=MR.NodeListImpl;var RR=xh();Y.NodeListStatic=RR.NodeListStaticImpl;var Ub=Mb(),Hb=kb(),km=zb(),kR=bh();Y.ProcessingInstruction=kR.ProcessingInstructionImpl;var zR=Oh();Y.Range=zR.RangeImpl;var Wb=mh();Y.ShadowRoot=Wb.ShadowRootImpl;var $b=qb(),qR=Bb();Y.StaticRange=qR.StaticRangeImpl;var Vb=Ju();Y.Text=Vb.TextImpl;var BR=ec();Y.Traverser=BR.TraverserImpl;var jR=Ph();Y.TreeWalker=jR.TreeWalkerImpl;var GR=Yp();Y.Window=GR.WindowImpl;var UR=ch();Y.XMLDocument=UR.XMLDocumentImpl;It.applyMixin(ns.ElementImpl,Mm.ChildNodeImpl);It.applyMixin(Fm.CharacterDataImpl,Mm.ChildNodeImpl);It.applyMixin(Gb.DocumentTypeImpl,Mm.ChildNodeImpl);It.applyMixin(kc.DocumentImpl,jb.DocumentOrShadowRootImpl);It.applyMixin(Wb.ShadowRootImpl,jb.DocumentOrShadowRootImpl);It.applyMixin(ns.ElementImpl,Ub.NonDocumentTypeChildNodeImpl);It.applyMixin(Fm.CharacterDataImpl,Ub.NonDocumentTypeChildNodeImpl);It.applyMixin(kc.DocumentImpl,Hb.NonElementParentNodeImpl);It.applyMixin(Rm.DocumentFragmentImpl,Hb.NonElementParentNodeImpl);It.applyMixin(kc.DocumentImpl,km.ParentNodeImpl);It.applyMixin(Rm.DocumentFragmentImpl,km.ParentNodeImpl);It.applyMixin(ns.ElementImpl,km.ParentNodeImpl);It.applyMixin(Vb.TextImpl,$b.SlotableImpl);It.applyMixin(ns.ElementImpl,$b.SlotableImpl)});var Bc=_(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var HR;(function(t){t[t.EOF=0]="EOF",t[t.Declaration=1]="Declaration",t[t.DocType=2]="DocType",t[t.Element=3]="Element",t[t.Text=4]="Text",t[t.CDATA=5]="CDATA",t[t.PI=6]="PI",t[t.Comment=7]="Comment",t[t.ClosingTag=8]="ClosingTag"})(HR=qc.TokenType||(qc.TokenType={}))});var zm=_(is=>{"use strict";var WR=is&&is.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(is,"__esModule",{value:!0});var Nt=Bc(),$R=function(){function t(e,r){this._options={skipWhitespaceOnlyText:!1},this.err={line:-1,col:-1,index:-1,str:""},this._str=e,this._index=0,this._length=e.length,r&&(this._options.skipWhitespaceOnlyText=r.skipWhitespaceOnlyText||!1)}return t.prototype.nextToken=function(){if(this.eof())return{type:Nt.TokenType.EOF};var e=this.skipIfStartsWith("<")?this.openBracket():this.text();return this._options.skipWhitespaceOnlyText&&e.type===Nt.TokenType.Text&&t.isWhiteSpaceToken(e)&&(e=this.nextToken()),e},t.prototype.openBracket=function(){if(this.skipIfStartsWith("?"))return this.skipIfStartsWith("xml")?t.isSpace(this._str[this._index])?this.declaration():(this.seek(-3),this.pi()):this.pi();if(this.skipIfStartsWith("!")){if(this.skipIfStartsWith("--"))return this.comment();if(this.skipIfStartsWith("[CDATA["))return this.cdata();if(this.skipIfStartsWith("DOCTYPE"))return this.doctype();this.throwError("Invalid '!' in opening tag.")}else return this.skipIfStartsWith("/")?this.closeTag():this.openTag()},t.prototype.declaration=function(){for(var e="",r="",n="";!this.eof();){if(this.skipSpace(),this.skipIfStartsWith("?>"))return{type:Nt.TokenType.Declaration,version:e,encoding:r,standalone:n};var i=WR(this.attribute(),2),o=i[0],a=i[1];o==="version"?e=a:o==="encoding"?r=a:o==="standalone"?n=a:this.throwError("Invalid attribute name: "+o)}this.throwError("Missing declaration end symbol `?>`")},t.prototype.doctype=function(){var e="",r="";this.skipSpace();var n=this.takeUntil2("[",">",!0);return this.skipSpace(),this.skipIfStartsWith("PUBLIC")?(e=this.quotedString(),r=this.quotedString()):this.skipIfStartsWith("SYSTEM")&&(r=this.quotedString()),this.skipSpace(),this.skipIfStartsWith("[")&&(this.skipUntil("]"),this.skipIfStartsWith("]")||this.throwError("Missing end bracket of DTD internal subset")),this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing doctype end symbol `>`"),{type:Nt.TokenType.DocType,name:n,pubId:e,sysId:r}},t.prototype.pi=function(){var e=this.takeUntilStartsWith("?>",!0);if(this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.skipSpace(),this.skipIfStartsWith("?>"))return{type:Nt.TokenType.PI,target:e,data:""};var r=this.takeUntilStartsWith("?>");return this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.seek(2),{type:Nt.TokenType.PI,target:e,data:r}},t.prototype.text=function(){var e=this.takeUntil("<");return{type:Nt.TokenType.Text,data:e}},t.prototype.comment=function(){var e=this.takeUntilStartsWith("-->");return this.eof()&&this.throwError("Missing comment end symbol `-->`"),this.seek(3),{type:Nt.TokenType.Comment,data:e}},t.prototype.cdata=function(){var e=this.takeUntilStartsWith("]]>");return this.eof()&&this.throwError("Missing CDATA end symbol `]>`"),this.seek(3),{type:Nt.TokenType.CDATA,data:e}},t.prototype.openTag=function(){this.skipSpace();var e=this.takeUntil2(">","/",!0);if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:Nt.TokenType.Element,name:e,attributes:[],selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:Nt.TokenType.Element,name:e,attributes:[],selfClosing:!0};for(var r=[];!this.eof();){if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:Nt.TokenType.Element,name:e,attributes:r,selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:Nt.TokenType.Element,name:e,attributes:r,selfClosing:!0};var n=this.attribute();r.push(n)}this.throwError("Missing opening element tag end symbol `>`")},t.prototype.closeTag=function(){this.skipSpace();var e=this.takeUntil(">",!0);return this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing closing element tag end symbol `>`"),{type:Nt.TokenType.ClosingTag,name:e}},t.prototype.attribute=function(){this.skipSpace();var e=this.takeUntil("=",!0);this.skipSpace(),this.skipIfStartsWith("=")||this.throwError("Missing equals sign before attribute value");var r=this.quotedString();return[e,r]},t.prototype.quotedString=function(){this.skipSpace();var e=this.take(1);t.isQuote(e)||this.throwError("Missing start quote character before quoted value");var r=this.takeUntil(e);return this.skipIfStartsWith(e)||this.throwError("Missing end quote character after quoted value"),r},t.prototype.eof=function(){return this._index>=this._length},t.prototype.skipIfStartsWith=function(e){var r=e.length;if(r===1)return this._str[this._index]===e?(this._index++,!0):!1;for(var n=0;nthis._length&&(this._index=this._length)},t.prototype.skipSpace=function(){for(;!this.eof()&&t.isSpace(this._str[this._index]);)this._index++},t.prototype.take=function(e){if(e===1)return this._str[this._index++];var r=this._index;return this.seek(e),this._str.slice(r,this._index)},t.prototype.takeUntil=function(e,r){r===void 0&&(r=!1);for(var n=this._index;this._indexthis._index){a=n.index;break}throw this.err={line:i,col:this._index-o,index:this._index,str:this._str.substring(o,a)},new Error(e+` Index: `+this.err.index+` Ln: `+this.err.line+", Col: "+this.err.col+` Input: `+this.err.str)},t.prototype[Symbol.iterator]=function(){return this._index=0,{next:function(){var e=this.nextToken();return e.type===Nt.TokenType.EOF?{done:!0,value:null}:{done:!1,value:e}}.bind(this)}},t}();is.XMLStringLexer=$R});var Yb=_(gi=>{"use strict";var os=gi&&gi.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},Xb=gi&&gi.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(gi,"__esModule",{value:!0});var VR=zm(),$r=Bc(),qm=Fe(),Zt=Z(),XR=fa(),YR=function(){function t(){}return t.prototype.parse=function(e){for(var r,n,i,o,a=new VR.XMLStringLexer(e,{skipWhitespaceOnlyText:!0}),s=Zt.create_document(),l=s,u=a.nextToken();u.type!==$r.TokenType.EOF;){switch(u.type){case $r.TokenType.Declaration:var c=u;if(c.version!=="1.0")throw new Error("Invalid xml version: "+c.version);break;case $r.TokenType.DocType:var f=u;if(!Zt.xml_isPubidChar(f.pubId))throw new Error("DocType public identifier does not match PubidChar construct.");if(!Zt.xml_isLegalChar(f.sysId)||f.sysId.indexOf('"')!==-1&&f.sysId.indexOf("'")!==-1)throw new Error("DocType system identifier contains invalid characters.");l.appendChild(s.implementation.createDocumentType(f.name,f.pubId,f.sysId));break;case $r.TokenType.CDATA:var d=u;if(!Zt.xml_isLegalChar(d.data)||d.data.indexOf("]]>")!==-1)throw new Error("CDATA contains invalid characters.");l.appendChild(s.createCDATASection(d.data));break;case $r.TokenType.Comment:var p=u;if(!Zt.xml_isLegalChar(p.data)||p.data.indexOf("--")!==-1||p.data.endsWith("-"))throw new Error("Comment data contains invalid characters.");l.appendChild(s.createComment(p.data));break;case $r.TokenType.PI:var h=u;if(h.target.indexOf(":")!==-1||/^xml$/i.test(h.target))throw new Error("Processing instruction target contains invalid characters.");if(!Zt.xml_isLegalChar(h.data)||h.data.indexOf("?>")!==-1)throw new Error("Processing instruction data contains invalid characters.");l.appendChild(s.createProcessingInstruction(h.target,h.data));break;case $r.TokenType.Text:var m=u;if(!Zt.xml_isLegalChar(m.data))throw new Error("Text data contains invalid characters.");l.appendChild(s.createTextNode(this._decodeText(m.data)));break;case $r.TokenType.Element:var y=u,g=os(Zt.namespace_extractQName(y.name),2),b=g[0],v=g[1];if(v.indexOf(":")!==-1||!Zt.xml_isName(v))throw new Error("Node local name contains invalid characters.");if(b==="xmlns")throw new Error("An element cannot have the 'xmlns' prefix.");var S=l.lookupNamespaceURI(b),E={};try{for(var A=(r=void 0,Xb(y.attributes)),N=A.next();!N.done;N=A.next()){var D=os(N.value,2),P=D[0],C=D[1];if(P==="xmlns")S=C;else{var T=os(Zt.namespace_extractQName(P),2),B=T[0],M=T[1];B==="xmlns"&&(M===b&&(S=C),E[M]=C)}}}catch(dr){r={error:dr}}finally{try{N&&!N.done&&(n=A.return)&&n.call(A)}finally{if(r)throw r.error}}var U=S!==null?s.createElementNS(S,y.name):s.createElement(y.name);l.appendChild(U);var Te=new XR.LocalNameSet;try{for(var Ce=(i=void 0,Xb(y.attributes)),Rt=Ce.next();!Rt.done;Rt=Ce.next()){var kt=os(Rt.value,2),P=kt[0],C=kt[1],fr=os(Zt.namespace_extractQName(P),2),B=fr[0],M=fr[1],Pe=null;if(B==="xmlns"||B===null&&M==="xmlns"?Pe=qm.namespace.XMLNS:(Pe=U.lookupNamespaceURI(B),Pe!==null&&U.isDefaultNamespace(Pe)?Pe=null:Pe===null&&B!==null&&(Pe=E[B]||null)),Te.has(Pe,M))throw new Error("Element contains duplicate attributes.");if(Te.set(Pe,M),Pe===qm.namespace.XMLNS&&C===qm.namespace.XMLNS)throw new Error("XMLNS namespace is reserved.");if(M.indexOf(":")!==-1||!Zt.xml_isName(M))throw new Error("Attribute local name contains invalid characters.");if(B==="xmlns"&&C==="")throw new Error("Empty XML namespace is not allowed.");Pe!==null?U.setAttributeNS(Pe,P,this._decodeAttributeValue(C)):U.setAttribute(P,this._decodeAttributeValue(C))}}catch(dr){i={error:dr}}finally{try{Rt&&!Rt.done&&(o=Ce.return)&&o.call(Ce)}finally{if(i)throw i.error}}y.selfClosing||(l=U);break;case $r.TokenType.ClosingTag:var $n=u;if($n.name!==l.nodeName)throw new Error("Closing tag name does not match opening tag name.");l._parent&&(l=l._parent);break}u=a.nextToken()}return s},t.prototype._decodeText=function(e){return e==null?e:e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},t.prototype._decodeAttributeValue=function(e){return e==null?e:e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},t}();gi.XMLParserImpl=YR});var Jb=_(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});var JR=Z(),KR=Yb(),QR=function(){function t(){}return t.prototype.parseFromString=function(e,r){if(r==="text/html")throw new Error("HTML parser not implemented.");try{var n=new KR.XMLParserImpl,i=n.parse(e);return i._contentType=r,i}catch(l){var o="http://www.mozilla.org/newlayout/xml/parsererror.xml",i=JR.create_xmlDocument(),a=i.createElementNS(o,"parsererror"),s=i.createElementNS(o,"error");return s.setAttribute("message",l.message),a.appendChild(s),i.appendChild(a),i}},t}();Bm.DOMParserImpl=QR});var Kb=_(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});var ZR=Jb();jm.DOMParser=ZR.DOMParserImpl});var Zb=_(as=>{"use strict";var Vr=as&&as.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(as,"__esModule",{value:!0});var yt=oe(),ek=fa(),tk=Du(),Qb=Ue(),Xr=Fe(),Sr=Z(),rk=function(){function t(){}return t.prototype.serializeToString=function(e){return this._xmlSerialization(e,!1)},t.prototype._xmlSerialization=function(e,r){if(e._nodeDocument===void 0||e._nodeDocument._hasNamespaces){var n=null,i=new tk.NamespacePrefixMap;i.set("xml",Xr.namespace.XML);var o={value:1};try{return this._serializeNodeNS(e,n,i,o,r)}catch{throw new Qb.InvalidStateError}}else try{return this._serializeNode(e,r)}catch{throw new Qb.InvalidStateError}},t.prototype._serializeNodeNS=function(e,r,n,i,o){switch(e.nodeType){case yt.NodeType.Element:return this._serializeElementNS(e,r,n,i,o);case yt.NodeType.Document:return this._serializeDocumentNS(e,r,n,i,o);case yt.NodeType.Comment:return this._serializeComment(e,o);case yt.NodeType.Text:return this._serializeText(e,o);case yt.NodeType.DocumentFragment:return this._serializeDocumentFragmentNS(e,r,n,i,o);case yt.NodeType.DocumentType:return this._serializeDocumentType(e,o);case yt.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,o);case yt.NodeType.CData:return this._serializeCData(e,o);default:throw new Error("Unknown node type: "+e.nodeType)}},t.prototype._serializeNode=function(e,r){switch(e.nodeType){case yt.NodeType.Element:return this._serializeElement(e,r);case yt.NodeType.Document:return this._serializeDocument(e,r);case yt.NodeType.Comment:return this._serializeComment(e,r);case yt.NodeType.Text:return this._serializeText(e,r);case yt.NodeType.DocumentFragment:return this._serializeDocumentFragment(e,r);case yt.NodeType.DocumentType:return this._serializeDocumentType(e,r);case yt.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,r);case yt.NodeType.CData:return this._serializeCData(e,r);default:throw new Error("Unknown node type: "+e.nodeType)}},t.prototype._serializeElementNS=function(e,r,n,i,o){var a,s;if(o&&(e.localName.indexOf(":")!==-1||!Sr.xml_isName(e.localName)))throw new Error("Node local name contains invalid characters (well-formed required).");var l="<",u="",c=!1,f=!1,d=n.copy(),p={},h=this._recordNamespaceInformation(e,d,p),m=r,y=e.namespaceURI;if(m===y)h!==null&&(f=!0),y===Xr.namespace.XML?u="xml:"+e.localName:u=e.localName,l+=u;else{var g=e.prefix,b=null;if((g!==null||y!==h)&&(b=d.get(g,y)),g==="xmlns"){if(o)throw new Error("An element cannot have the 'xmlns' prefix (well-formed required).");b=g}b!==null?(u=b+":"+e.localName,h!==null&&h!==Xr.namespace.XML&&(m=h||null),l+=u):g!==null?(g in p&&(g=this._generatePrefix(y,d,i)),d.set(g,y),u+=g+":"+e.localName,l+=u,l+=" xmlns:"+g+'="'+this._serializeAttributeValue(y,o)+'"',h!==null&&(m=h||null)):h===null||h!==null&&h!==y?(f=!0,u+=e.localName,m=y,l+=u,l+=' xmlns="'+this._serializeAttributeValue(y,o)+'"'):(u+=e.localName,m=y,l+=u)}l+=this._serializeAttributesNS(e,d,i,p,f,o);var v=y===Xr.namespace.HTML;if(v&&e.childNodes.length===0&&t._VoidElementNames.has(e.localName)?(l+=" /",c=!0):!v&&e.childNodes.length===0&&(l+="/",c=!0),l+=">",c)return l;if(!(v&&e.localName==="template"))try{for(var S=Vr(e._children||e.childNodes),E=S.next();!E.done;E=S.next()){var A=E.value;l+=this._serializeNodeNS(A,m,d,i,o)}}catch(N){a={error:N}}finally{try{E&&!E.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}return l+="",l},t.prototype._serializeDocumentNS=function(e,r,n,i,o){var a,s;if(o&&e.documentElement===null)throw new Error("Missing document element (well-formed required).");var l="";try{for(var u=Vr(e._children||e.childNodes),c=u.next();!c.done;c=u.next()){var f=c.value;l+=this._serializeNodeNS(f,r,n,i,o)}}catch(d){a={error:d}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}return l},t.prototype._serializeComment=function(e,r){if(r&&(!Sr.xml_isLegalChar(e.data)||e.data.indexOf("--")!==-1||e.data.endsWith("-")))throw new Error("Comment data contains invalid characters (well-formed required).");return""},t.prototype._serializeText=function(e,r){if(r&&!Sr.xml_isLegalChar(e.data))throw new Error("Text data contains invalid characters (well-formed required).");for(var n="",i=0;i"?n+=">":n+=o}return n},t.prototype._serializeDocumentFragmentNS=function(e,r,n,i,o){var a,s,l="";try{for(var u=Vr(e._children||e.childNodes),c=u.next();!c.done;c=u.next()){var f=c.value;l+=this._serializeNodeNS(f,r,n,i,o)}}catch(d){a={error:d}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}return l},t.prototype._serializeDocumentType=function(e,r){if(r&&!Sr.xml_isPubidChar(e.publicId))throw new Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(r&&(!Sr.xml_isLegalChar(e.systemId)||e.systemId.indexOf('"')!==-1&&e.systemId.indexOf("'")!==-1))throw new Error("DocType system identifier contains invalid characters (well-formed required).");return e.publicId&&e.systemId?"':e.publicId?"':e.systemId?"':""},t.prototype._serializeProcessingInstruction=function(e,r){if(r&&(e.target.indexOf(":")!==-1||/^xml$/i.test(e.target)))throw new Error("Processing instruction target contains invalid characters (well-formed required).");if(r&&(!Sr.xml_isLegalChar(e.data)||e.data.indexOf("?>")!==-1))throw new Error("Processing instruction data contains invalid characters (well-formed required).");return""},t.prototype._serializeCData=function(e,r){if(r&&e.data.indexOf("]]>")!==-1)throw new Error("CDATA contains invalid characters (well-formed required).");return""},t.prototype._serializeAttributesNS=function(e,r,n,i,o,a){var s,l,u="",c=a?new ek.LocalNameSet:void 0;try{for(var f=Vr(e.attributes),d=f.next();!d.done;d=f.next()){var p=d.value;if(!o&&!a&&p.namespaceURI===null){u+=" "+p.localName+'="'+this._serializeAttributeValue(p.value,a)+'"';continue}if(a&&c&&c.has(p.namespaceURI,p.localName))throw new Error("Element contains duplicate attributes (well-formed required).");a&&c&&c.set(p.namespaceURI,p.localName);var h=p.namespaceURI,m=null;if(h!==null)if(m=r.get(p.prefix,h),h===Xr.namespace.XMLNS){if(p.value===Xr.namespace.XML||p.prefix===null&&o||p.prefix!==null&&(!(p.localName in i)||i[p.localName]!==p.value)&&r.has(p.localName,p.value))continue;if(a&&p.value===Xr.namespace.XMLNS)throw new Error("XMLNS namespace is reserved (well-formed required).");if(a&&p.value==="")throw new Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");p.prefix==="xmlns"&&(m="xmlns")}else m===null&&(p.prefix!==null&&(!r.hasPrefix(p.prefix)||r.has(p.prefix,h))?m=p.prefix:m=this._generatePrefix(h,r,n),u+=" xmlns:"+m+'="'+this._serializeAttributeValue(h,a)+'"');if(u+=" ",m!==null&&(u+=m+":"),a&&(p.localName.indexOf(":")!==-1||!Sr.xml_isName(p.localName)||p.localName==="xmlns"&&h===null))throw new Error("Attribute local name contains invalid characters (well-formed required).");u+=p.localName+'="'+this._serializeAttributeValue(p.value,a)+'"'}}catch(y){s={error:y}}finally{try{d&&!d.done&&(l=f.return)&&l.call(f)}finally{if(s)throw s.error}}return u},t.prototype._recordNamespaceInformation=function(e,r,n){var i,o,a=null;try{for(var s=Vr(e.attributes),l=s.next();!l.done;l=s.next()){var u=l.value,c=u.namespaceURI,f=u.prefix;if(c===Xr.namespace.XMLNS)if(f===null){a=u.value;continue}else{var d=u.localName,p=u.value;if(p===Xr.namespace.XML||(p===""&&(p=null),r.has(d,p)))continue;r.set(d,p),n[d]=p||""}}}catch(h){i={error:h}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a},t.prototype._generatePrefix=function(e,r,n){var i="ns"+n.value;return n.value++,r.set(i,e),i},t.prototype._serializeAttributeValue=function(e,r){if(r&&e!==null&&!Sr.xml_isLegalChar(e))throw new Error("Invalid characters in attribute value.");if(e===null)return"";for(var n="",i=0;i"?n+=">":n+=o}return n},t.prototype._serializeElement=function(e,r){var n,i;if(r&&(e.localName.indexOf(":")!==-1||!Sr.xml_isName(e.localName)))throw new Error("Node local name contains invalid characters (well-formed required).");var o=!1,a=e.localName,s="<"+a;if(s+=this._serializeAttributes(e,r),e._children.size===0&&(s+="/",o=!0),s+=">",o)return s;try{for(var l=Vr(e._children),u=l.next();!u.done;u=l.next()){var c=u.value;s+=this._serializeNode(c,r)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return s+="",s},t.prototype._serializeDocument=function(e,r){var n,i;if(r&&e.documentElement===null)throw new Error("Missing document element (well-formed required).");var o="";try{for(var a=Vr(e._children),s=a.next();!s.done;s=a.next()){var l=s.value;o+=this._serializeNode(l,r)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o},t.prototype._serializeDocumentFragment=function(e,r){var n,i,o="";try{for(var a=Vr(e._children),s=a.next();!s.done;s=a.next()){var l=s.value;o+=this._serializeNode(l,r)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o},t.prototype._serializeAttributes=function(e,r){var n,i,o="",a=r?{}:void 0;try{for(var s=Vr(e.attributes),l=s.next();!l.done;l=s.next()){var u=l.value;if(r&&a&&u.localName in a)throw new Error("Element contains duplicate attributes (well-formed required).");if(r&&a&&(a[u.localName]=!0),r&&(u.localName.indexOf(":")!==-1||!Sr.xml_isName(u.localName)))throw new Error("Attribute local name contains invalid characters (well-formed required).");o+=" "+u.localName+'="'+this._serializeAttributeValue(u.value,r)+'"'}}catch(c){n={error:c}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},t._VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),t}();as.XMLSerializerImpl=rk});var ew=_(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});var nk=Zb();Gm.XMLSerializer=nk.XMLSerializerImpl});var tw=_(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});var ik=zc();ik.dom.setFeatures(!0);var ok=zc();ss.DOMImplementation=ok.DOMImplementation;var ak=Kb();ss.DOMParser=ak.DOMParser;var sk=ew();ss.XMLSerializer=sk.XMLSerializer});var Gc=_(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var lk=tw(),uk=zc(),rw=le();uk.dom.setFeatures(!1);function ck(){var t=new lk.DOMImplementation,e=t.createDocument(null,"root",null);return e.documentElement&&e.removeChild(e.documentElement),e}jc.createDocument=ck;function fk(t,e){if(t==null)return t;if(e===void 0)return t+"";var r="";t=t+"";for(var n=0;n=32&&i<=55295||i>=57344&&i<=65533)r+=t.charAt(n);else if(i>=55296&&i<=56319&&n=56320&&o<=57343?(i=(i-55296)*1024+o-56320+65536,r+=String.fromCodePoint(i),n++):r+=rw.isString(e)?e:e(t.charAt(n),n,t)}else r+=rw.isString(e)?e:e(t.charAt(n),n,t)}return r}jc.sanitizeInput=fk});var ls=_(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var dk=Gc(),pk=function(){function t(e){this._builderOptions=e,e.parser&&Object.assign(this,e.parser)}return t.prototype._docType=function(e,r,n,i){return e.dtd({name:r,pubID:n,sysID:i})},t.prototype._comment=function(e,r){return e.com(r)},t.prototype._text=function(e,r){return e.txt(r)},t.prototype._instruction=function(e,r,n){return e.ins(r,n)},t.prototype._cdata=function(e,r){return e.dat(r)},t.prototype._element=function(e,r,n){return r===void 0?e.ele(n):e.ele(r,n)},t.prototype._attribute=function(e,r,n,i){return r===void 0?e.att(n,i):e.att(r,n,i)},t.prototype._sanitize=function(e){return dk.sanitizeInput(e,this._builderOptions.invalidCharReplacement)},t.prototype._decodeText=function(e){return e==null?e:e.replace(/&(quot|amp|apos|lt|gt);/g,function(r,n){return t._entityTable[n]}).replace(/&#(?:x([a-fA-F0-9]+)|([0-9]+));/g,function(r,n,i){return String.fromCodePoint(parseInt(n||i,n?16:10))})},t.prototype._decodeAttributeValue=function(e){return this._decodeText(e)},t.prototype.parse=function(e,r){return this._parse(e,r)},t.prototype.docType=function(e,r,n,i){return this._docType(e,r,n,i)},t.prototype.comment=function(e,r){return this._comment(e,r)},t.prototype.text=function(e,r){return this._text(e,r)},t.prototype.instruction=function(e,r,n){return this._instruction(e,r,n)},t.prototype.cdata=function(e,r){return this._cdata(e,r)},t.prototype.element=function(e,r,n){return this._element(e,r,n)},t.prototype.attribute=function(e,r,n,i){return this._attribute(e,r,n,i)},t.prototype.sanitize=function(e){return this._sanitize(e)},t._entityTable={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},t}();Um.BaseReader=pk});var iw=_(Jr=>{"use strict";var hk=Jr&&Jr.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),us=Jr&&Jr.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},nw=Jr&&Jr.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Jr,"__esModule",{value:!0});var mk=zm(),Yr=Bc(),_k=oe(),vk=Fe(),Hm=Z(),yk=ls(),gk=function(t){hk(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._parse=function(r,n){for(var i,o,a,s,l=new mk.XMLStringLexer(n,{skipWhitespaceOnlyText:this._builderOptions.skipWhitespaceOnlyText}),u=r,c=r,f=l.nextToken();f.type!==Yr.TokenType.EOF;){switch(f.type){case Yr.TokenType.Declaration:var d=f,p=this.sanitize(d.version);if(p!=="1.0")throw new Error("Invalid xml version: "+p);var h={version:p};d.encoding&&(h.encoding=this.sanitize(d.encoding)),d.standalone&&(h.standalone=this.sanitize(d.standalone)==="yes"),c.set(h);break;case Yr.TokenType.DocType:var m=f;c=this.docType(c,this.sanitize(m.name),this.sanitize(m.pubId),this.sanitize(m.sysId))||c;break;case Yr.TokenType.CDATA:var y=f;c=this.cdata(c,this.sanitize(y.data))||c;break;case Yr.TokenType.Comment:var g=f;c=this.comment(c,this.sanitize(g.data))||c;break;case Yr.TokenType.PI:var b=f;c=this.instruction(c,this.sanitize(b.target),this.sanitize(b.data))||c;break;case Yr.TokenType.Text:if(c.node.nodeType===_k.NodeType.Document)break;var v=f;c=this.text(c,this._decodeText(this.sanitize(v.data)))||c;break;case Yr.TokenType.Element:var S=f,E=this.sanitize(S.name),A=us(Hm.namespace_extractQName(E),1),N=A[0],D=c.node.lookupNamespaceURI(N),P={};try{for(var C=(i=void 0,nw(S.attributes)),T=C.next();!T.done;T=C.next()){var B=us(T.value,2),M=B[0],U=B[1];if(M=this.sanitize(M),U=this.sanitize(U),M==="xmlns")D=U;else{var Te=us(Hm.namespace_extractQName(M),2),Ce=Te[0],Rt=Te[1];Ce==="xmlns"&&(Rt===N&&(D=U),P[Rt]=U)}}}catch(Zf){i={error:Zf}}finally{try{T&&!T.done&&(o=C.return)&&o.call(C)}finally{if(i)throw i.error}}var kt=D!==null?this.element(c,D,E):this.element(c,void 0,E);if(kt===void 0)break;c.node===r.node&&(u=kt);try{for(var fr=(a=void 0,nw(S.attributes)),Pe=fr.next();!Pe.done;Pe=fr.next()){var $n=us(Pe.value,2),M=$n[0],U=$n[1];M=this.sanitize(M),U=this.sanitize(U);var dr=us(Hm.namespace_extractQName(M),2),Ce=dr[0],Rt=dr[1],Tr=null;Ce==="xmlns"||Ce===null&&Rt==="xmlns"?Tr=vk.namespace.XMLNS:(Tr=kt.node.lookupNamespaceURI(Ce),Tr!==null&&kt.node.isDefaultNamespace(Tr)?Tr=null:Tr===null&&Ce!==null&&(Tr=P[Ce]||null)),Tr!==null?this.attribute(kt,Tr,M,this._decodeAttributeValue(U)):this.attribute(kt,void 0,M,this._decodeAttributeValue(U))}}catch(Zf){a={error:Zf}}finally{try{Pe&&!Pe.done&&(s=fr.return)&&s.call(fr)}finally{if(a)throw a.error}}S.selfClosing||(c=kt);break;case Yr.TokenType.ClosingTag:c.node.parentNode&&(c=c.up());break}f=l.nextToken()}return u},e}(yk.BaseReader);Jr.XMLReader=gk});var Uc=_(cs=>{"use strict";var bk=cs&&cs.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(cs,"__esModule",{value:!0});var J=le(),wk=ls(),Sk=function(t){bk(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._parse=function(r,n){var i=this,o=this._builderOptions,a=null;return J.isFunction(n)?a=this.parse(r,n.apply(this)):J.isArray(n)||J.isSet(n)?J.forEachArray(n,function(s){return a=i.parse(r,s)},this):J.isMap(n)||J.isObject(n)?J.forEachObject(n,function(s,l){if(J.isFunction(l)&&(l=l.apply(i)),!o.ignoreConverters&&s.indexOf(o.convert.att)===0)if(s===o.convert.att){if(J.isArray(l)||J.isSet(l))throw new Error("Invalid attribute: "+l.toString()+". "+r._debugInfo());J.forEachObject(l,function(p,h){a=i.attribute(r,void 0,i.sanitize(p),i._decodeAttributeValue(i.sanitize(h)))||a})}else a=i.attribute(r,void 0,i.sanitize(s.substr(o.convert.att.length)),i._decodeAttributeValue(i.sanitize(l)))||a;else if(!o.ignoreConverters&&s.indexOf(o.convert.text)===0)J.isMap(l)||J.isObject(l)?a=i.parse(r,l):a=i.text(r,i._decodeText(i.sanitize(l)))||a;else if(!o.ignoreConverters&&s.indexOf(o.convert.cdata)===0)J.isArray(l)||J.isSet(l)?J.forEachArray(l,function(p){return a=i.cdata(r,i.sanitize(p))||a},i):a=i.cdata(r,i.sanitize(l))||a;else if(!o.ignoreConverters&&s.indexOf(o.convert.comment)===0)J.isArray(l)||J.isSet(l)?J.forEachArray(l,function(p){return a=i.comment(r,i.sanitize(p))||a},i):a=i.comment(r,i.sanitize(l))||a;else if(!o.ignoreConverters&&s.indexOf(o.convert.ins)===0)if(J.isString(l)){var u=l.indexOf(" "),c=u===-1?l:l.substr(0,u),f=u===-1?"":l.substr(u+1);a=i.instruction(r,i.sanitize(c),i.sanitize(f))||a}else J.isArray(l)||J.isSet(l)?J.forEachArray(l,function(p){var h=p.indexOf(" "),m=h===-1?p:p.substr(0,h),y=h===-1?"":p.substr(h+1);a=i.instruction(r,i.sanitize(m),i.sanitize(y))||a},i):J.forEachObject(l,function(p,h){return a=i.instruction(r,i.sanitize(p),i.sanitize(h))||a},i);else if(!((J.isArray(l)||J.isSet(l))&&J.isEmpty(l))){if((J.isMap(l)||J.isObject(l))&&J.isEmpty(l))a=i.element(r,void 0,i.sanitize(s))||a;else if(!(!o.keepNullNodes&&l==null))if(J.isArray(l)||J.isSet(l))J.forEachArray(l,function(p){var h={};h[s]=p,a=i.parse(r,h)},i);else if(J.isMap(l)||J.isObject(l)){var d=i.element(r,void 0,i.sanitize(s));d&&(a=d,i.parse(d,l))}else if(l!=null&&l!==""){var d=i.element(r,void 0,i.sanitize(s));d&&(a=d,i.text(d,i._decodeText(i.sanitize(l))))}else a=i.element(r,void 0,i.sanitize(s))||a}},this):!o.keepNullNodes&&n==null||(a=this.text(r,this._decodeText(this.sanitize(n)))||a),a||r},e}(wk.BaseReader);cs.ObjectReader=Sk});var ow=_(fs=>{"use strict";var Ek=fs&&fs.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(fs,"__esModule",{value:!0});var xk=Uc(),Nk=ls(),Ck=function(t){Ek(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._parse=function(r,n){return new xk.ObjectReader(this._builderOptions).parse(r,JSON.parse(n))},e}(Nk.BaseReader);fs.JSONReader=Ck});var wi=_((YH,bi)=>{"use strict";function aw(t){return typeof t>"u"||t===null}function Ak(t){return typeof t=="object"&&t!==null}function Ok(t){return Array.isArray(t)?t:aw(t)?[]:[t]}function Lk(t,e){var r,n,i,o;if(e)for(o=Object.keys(e),r=0,n=o.length;r{"use strict";function ds(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ds.prototype=Object.create(Error.prototype);ds.prototype.constructor=ds;ds.prototype.toString=function(e){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!e&&this.mark&&(r+=" "+this.mark.toString()),r};sw.exports=ds});var cw=_((KH,uw)=>{"use strict";var lw=wi();function Wm(t,e,r,n,i){this.name=t,this.buffer=e,this.position=r,this.line=n,this.column=i}Wm.prototype.getSnippet=function(e,r){var n,i,o,a,s;if(!this.buffer)return null;for(e=e||4,r=r||75,n="",i=this.position;i>0&&`\0\r \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;ar/2-1){o=" ... ",a-=5;break}return s=this.buffer.slice(i,a),lw.repeat(" ",e)+n+s+o+` `+lw.repeat(" ",e+this.position-i+n.length)+"^"};Wm.prototype.toString=function(e){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(r=this.getSnippet(),r&&(n+=`: `+r)),n};uw.exports=Wm});var We=_((QH,dw)=>{"use strict";var fw=bo(),Dk=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Ik=["scalar","sequence","mapping"];function Fk(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function Mk(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Dk.indexOf(r)===-1)throw new fw('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=Fk(e.styleAliases||null),Ik.indexOf(this.kind)===-1)throw new fw('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}dw.exports=Mk});var Si=_((ZH,hw)=>{"use strict";var pw=wi(),Hc=bo(),Rk=We();function $m(t,e,r){var n=[];return t.include.forEach(function(i){r=$m(i,e,r)}),t[e].forEach(function(i){r.forEach(function(o,a){o.tag===i.tag&&o.kind===i.kind&&n.push(a)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}function kk(){var t={scalar:{},sequence:{},mapping:{},fallback:{}},e,r;function n(i){t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e{"use strict";var zk=We();mw.exports=new zk("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}})});var yw=_((tW,vw)=>{"use strict";var qk=We();vw.exports=new qk("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}})});var bw=_((rW,gw)=>{"use strict";var Bk=We();gw.exports=new Bk("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}})});var Wc=_((nW,ww)=>{"use strict";var jk=Si();ww.exports=new jk({explicit:[_w(),yw(),bw()]})});var Ew=_((iW,Sw)=>{"use strict";var Gk=We();function Uk(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Hk(){return null}function Wk(t){return t===null}Sw.exports=new Gk("tag:yaml.org,2002:null",{kind:"scalar",resolve:Uk,construct:Hk,predicate:Wk,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var Nw=_((oW,xw)=>{"use strict";var $k=We();function Vk(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Xk(t){return t==="true"||t==="True"||t==="TRUE"}function Yk(t){return Object.prototype.toString.call(t)==="[object Boolean]"}xw.exports=new $k("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Vk,construct:Xk,predicate:Yk,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})});var Aw=_((aW,Cw)=>{"use strict";var Jk=wi(),Kk=We();function Qk(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Zk(t){return 48<=t&&t<=55}function ez(t){return 48<=t&&t<=57}function tz(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0"+t.toString(8):"-0"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Tw=_((sW,Lw)=>{"use strict";var Ow=wi(),iz=We(),oz=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function az(t){return!(t===null||!oz.test(t)||t[t.length-1]==="_")}function sz(t){var e,r,n,i;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,i=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:e.indexOf(":")>=0?(e.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),e=0,n=1,i.forEach(function(o){e+=o*n,n*=60}),r*e):r*parseFloat(e,10)}var lz=/^[-+]?[0-9]+e/;function uz(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ow.isNegativeZero(t))return"-0.0";return r=t.toString(10),lz.test(r)?r.replace("e",".e"):r}function cz(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Ow.isNegativeZero(t))}Lw.exports=new iz("tag:yaml.org,2002:float",{kind:"scalar",resolve:az,construct:sz,predicate:cz,represent:uz,defaultStyle:"lowercase"})});var Vm=_((lW,Pw)=>{"use strict";var fz=Si();Pw.exports=new fz({include:[Wc()],implicit:[Ew(),Nw(),Aw(),Tw()]})});var Xm=_((uW,Dw)=>{"use strict";var dz=Si();Dw.exports=new dz({include:[Vm()]})});var Rw=_((cW,Mw)=>{"use strict";var pz=We(),Iw=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Fw=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function hz(t){return t===null?!1:Iw.exec(t)!==null||Fw.exec(t)!==null}function mz(t){var e,r,n,i,o,a,s,l=0,u=null,c,f,d;if(e=Iw.exec(t),e===null&&(e=Fw.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(o=+e[4],a=+e[5],s=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(c=+e[10],f=+(e[11]||0),u=(c*60+f)*6e4,e[9]==="-"&&(u=-u)),d=new Date(Date.UTC(r,n,i,o,a,s,l)),u&&d.setTime(d.getTime()-u),d}function _z(t){return t.toISOString()}Mw.exports=new pz("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:hz,construct:mz,instanceOf:Date,represent:_z})});var zw=_((fW,kw)=>{"use strict";var vz=We();function yz(t){return t==="<<"||t===null}kw.exports=new vz("tag:yaml.org,2002:merge",{kind:"scalar",resolve:yz})});var jw=_((dW,Bw)=>{"use strict";var Ei;try{qw=je,Ei=qw("buffer").Buffer}catch{}var qw,gz=We(),Ym=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= \r`;function bz(t){if(t===null)return!1;var e,r,n=0,i=t.length,o=Ym;for(r=0;r64)){if(e<0)return!1;n+=6}return n%8===0}function wz(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,o=Ym,a=0,s=[];for(e=0;e>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|o.indexOf(n.charAt(e));return r=i%4*6,r===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):r===18?(s.push(a>>10&255),s.push(a>>2&255)):r===12&&s.push(a>>4&255),Ei?Ei.from?Ei.from(s):new Ei(s):s}function Sz(t){var e="",r=0,n,i,o=t.length,a=Ym;for(n=0;n>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[n];return i=o%3,i===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):i===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):i===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}function Ez(t){return Ei&&Ei.isBuffer(t)}Bw.exports=new gz("tag:yaml.org,2002:binary",{kind:"scalar",resolve:bz,construct:wz,predicate:Ez,represent:Sz})});var Uw=_((hW,Gw)=>{"use strict";var xz=We(),Nz=Object.prototype.hasOwnProperty,Cz=Object.prototype.toString;function Az(t){if(t===null)return!0;var e=[],r,n,i,o,a,s=t;for(r=0,n=s.length;r{"use strict";var Lz=We(),Tz=Object.prototype.toString;function Pz(t){if(t===null)return!0;var e,r,n,i,o,a=t;for(o=new Array(a.length),e=0,r=a.length;e{"use strict";var Iz=We(),Fz=Object.prototype.hasOwnProperty;function Mz(t){if(t===null)return!0;var e,r=t;for(e in r)if(Fz.call(r,e)&&r[e]!==null)return!1;return!0}function Rz(t){return t!==null?t:{}}$w.exports=new Iz("tag:yaml.org,2002:set",{kind:"mapping",resolve:Mz,construct:Rz})});var So=_((vW,Xw)=>{"use strict";var kz=Si();Xw.exports=new kz({include:[Xm()],implicit:[Rw(),zw()],explicit:[jw(),Uw(),Ww(),Vw()]})});var Jw=_((yW,Yw)=>{"use strict";var zz=We();function qz(){return!0}function Bz(){}function jz(){return""}function Gz(t){return typeof t>"u"}Yw.exports=new zz("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:qz,construct:Bz,predicate:Gz,represent:jz})});var Qw=_((gW,Kw)=>{"use strict";var Uz=We();function Hz(t){if(t===null||t.length===0)return!1;var e=t,r=/\/([gim]*)$/.exec(t),n="";return!(e[0]==="/"&&(r&&(n=r[1]),n.length>3||e[e.length-n.length-1]!=="/"))}function Wz(t){var e=t,r=/\/([gim]*)$/.exec(t),n="";return e[0]==="/"&&(r&&(n=r[1]),e=e.slice(1,e.length-n.length-1)),new RegExp(e,n)}function $z(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}function Vz(t){return Object.prototype.toString.call(t)==="[object RegExp]"}Kw.exports=new Uz("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Hz,construct:Wz,predicate:Vz,represent:$z})});var tS=_((bW,eS)=>{"use strict";var $c;try{Zw=je,$c=Zw("esprima")}catch{typeof window<"u"&&($c=window.esprima)}var Zw,Xz=We();function Yz(t){if(t===null)return!1;try{var e="("+t+")",r=$c.parse(e,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function Jz(t){var e="("+t+")",r=$c.parse(e,{range:!0}),n=[],i;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,e.slice(i[0]+1,i[1]-1)):new Function(n,"return "+e.slice(i[0],i[1]))}function Kz(t){return t.toString()}function Qz(t){return Object.prototype.toString.call(t)==="[object Function]"}eS.exports=new Xz("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:Yz,construct:Jz,predicate:Qz,represent:Kz})});var ps=_((SW,nS)=>{"use strict";var rS=Si();nS.exports=rS.DEFAULT=new rS({include:[So()],explicit:[Jw(),Qw(),tS()]})});var SS=_((EW,hs)=>{"use strict";var Kr=wi(),cS=bo(),Zz=cw(),fS=So(),eq=ps(),Dn=Object.prototype.hasOwnProperty,Vc=1,dS=2,pS=3,Xc=4,Jm=1,tq=2,iS=3,rq=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,nq=/[\x85\u2028\u2029]/,iq=/[,\[\]\{\}]/,hS=/^(?:!|!!|![a-z\-]+!)$/i,mS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function oS(t){return Object.prototype.toString.call(t)}function Er(t){return t===10||t===13}function Ni(t){return t===9||t===32}function Ft(t){return t===9||t===32||t===10||t===13}function Eo(t){return t===44||t===91||t===93||t===123||t===125}function oq(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function aq(t){return t===120?2:t===117?4:t===85?8:0}function sq(t){return 48<=t&&t<=57?t-48:-1}function aS(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?` `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function lq(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var _S=new Array(256),vS=new Array(256);for(xi=0;xi<256;xi++)_S[xi]=aS(xi)?1:0,vS[xi]=aS(xi);var xi;function uq(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||eq,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function yS(t,e){return new cS(e,new Zz(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}function j(t,e){throw yS(t,e)}function Yc(t,e){t.onWarning&&t.onWarning.call(null,yS(t,e))}var sS={YAML:function(e,r,n){var i,o,a;e.version!==null&&j(e,"duplication of %YAML directive"),n.length!==1&&j(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&j(e,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&j(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&Yc(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var i,o;n.length!==2&&j(e,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],hS.test(i)||j(e,"ill-formed tag handle (first argument) of the TAG directive"),Dn.call(e.tagMap,i)&&j(e,'there is a previously declared suffix for "'+i+'" tag handle'),mS.test(o)||j(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[i]=o}};function Pn(t,e,r,n){var i,o,a,s;if(e1&&(t.result+=Kr.repeat(` `,e-1))}function cq(t,e,r){var n,i,o,a,s,l,u,c,f=t.kind,d=t.result,p;if(p=t.input.charCodeAt(t.position),Ft(p)||Eo(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=t.input.charCodeAt(t.position+1),Ft(i)||r&&Eo(i)))return!1;for(t.kind="scalar",t.result="",o=a=t.position,s=!1;p!==0;){if(p===58){if(i=t.input.charCodeAt(t.position+1),Ft(i)||r&&Eo(i))break}else if(p===35){if(n=t.input.charCodeAt(t.position-1),Ft(n))break}else{if(t.position===t.lineStart&&Jc(t)||r&&Eo(p))break;if(Er(p))if(l=t.line,u=t.lineStart,c=t.lineIndent,ze(t,!1,-1),t.lineIndent>=e){s=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=u,t.lineIndent=c;break}}s&&(Pn(t,o,a,!1),Qm(t,t.line-l),o=a=t.position,s=!1),Ni(p)||(a=t.position+1),p=t.input.charCodeAt(++t.position)}return Pn(t,o,a,!1),t.result?!0:(t.kind=f,t.result=d,!1)}function fq(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Pn(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else Er(r)?(Pn(t,n,i,!0),Qm(t,ze(t,!1,e)),n=i=t.position):t.position===t.lineStart&&Jc(t)?j(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);j(t,"unexpected end of the stream within a single quoted scalar")}function dq(t,e){var r,n,i,o,a,s;if(s=t.input.charCodeAt(t.position),s!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(s=t.input.charCodeAt(t.position))!==0;){if(s===34)return Pn(t,r,t.position,!0),t.position++,!0;if(s===92){if(Pn(t,r,t.position,!0),s=t.input.charCodeAt(++t.position),Er(s))ze(t,!1,e);else if(s<256&&_S[s])t.result+=vS[s],t.position++;else if((a=aq(s))>0){for(i=a,o=0;i>0;i--)s=t.input.charCodeAt(++t.position),(a=oq(s))>=0?o=(o<<4)+a:j(t,"expected hexadecimal character");t.result+=lq(o),t.position++}else j(t,"unknown escape sequence");r=n=t.position}else Er(s)?(Pn(t,r,n,!0),Qm(t,ze(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Jc(t)?j(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}j(t,"unexpected end of the stream within a double quoted scalar")}function pq(t,e){var r=!0,n,i=t.tag,o,a=t.anchor,s,l,u,c,f,d={},p,h,m,y;if(y=t.input.charCodeAt(t.position),y===91)l=93,f=!1,o=[];else if(y===123)l=125,f=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),y=t.input.charCodeAt(++t.position);y!==0;){if(ze(t,!0,e),y=t.input.charCodeAt(t.position),y===l)return t.position++,t.tag=i,t.anchor=a,t.kind=f?"mapping":"sequence",t.result=o,!0;r||j(t,"missed comma between flow collection entries"),h=p=m=null,u=c=!1,y===63&&(s=t.input.charCodeAt(t.position+1),Ft(s)&&(u=c=!0,t.position++,ze(t,!0,e))),n=t.line,No(t,e,Vc,!1,!0),h=t.tag,p=t.result,ze(t,!0,e),y=t.input.charCodeAt(t.position),(c||t.line===n)&&y===58&&(u=!0,y=t.input.charCodeAt(++t.position),ze(t,!0,e),No(t,e,Vc,!1,!0),m=t.result),f?xo(t,o,d,h,p,m):u?o.push(xo(t,null,d,h,p,m)):o.push(p),ze(t,!0,e),y=t.input.charCodeAt(t.position),y===44?(r=!0,y=t.input.charCodeAt(++t.position)):r=!1}j(t,"unexpected end of the stream within a flow collection")}function hq(t,e){var r,n,i=Jm,o=!1,a=!1,s=e,l=0,u=!1,c,f;if(f=t.input.charCodeAt(t.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Jm===i?i=f===43?iS:tq:j(t,"repeat of a chomping mode identifier");else if((c=sq(f))>=0)c===0?j(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?j(t,"repeat of an indentation width identifier"):(s=e+c-1,a=!0);else break;if(Ni(f)){do f=t.input.charCodeAt(++t.position);while(Ni(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Er(f)&&f!==0)}for(;f!==0;){for(Km(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!a||t.lineIndents&&(s=t.lineIndent),Er(f)){l++;continue}if(t.lineIndente)&&l!==0)j(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(No(t,e,Xc,!0,i)&&(h?d=t.result:p=t.result),h||(xo(t,u,c,f,d,p,o,a),f=d=p=null),ze(t,!0,-1),y=t.input.charCodeAt(t.position)),t.lineIndent>e&&y!==0)j(t,"bad indentation of a mapping entry");else if(t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),f=0,d=t.implicitTypes.length;f tag; it should be "'+p.kind+'", not "'+t.kind+'"'),p.resolve(t.result)?(t.result=p.construct(t.result),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):j(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):j(t,"unknown tag !<"+t.tag+">");return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||c}function gq(t){var e=t.position,r,n,i,o=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};(a=t.input.charCodeAt(t.position))!==0&&(ze(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(o=!0,a=t.input.charCodeAt(++t.position),r=t.position;a!==0&&!Ft(a);)a=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&j(t,"directive name must not be less than one character in length");a!==0;){for(;Ni(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!Er(a));break}if(Er(a))break;for(r=t.position;a!==0&&!Ft(a);)a=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}a!==0&&Km(t),Dn.call(sS,n)?sS[n](t,n,i):Yc(t,'unknown document directive "'+n+'"')}if(ze(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,ze(t,!0,-1)):o&&j(t,"directives end mark is expected"),No(t,t.lineIndent-1,Xc,!1,!0),ze(t,!0,-1),t.checkLineBreaks&&nq.test(t.input.slice(e,t.position))&&Yc(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Jc(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,ze(t,!0,-1));return}if(t.position"u"&&(r=e,e=null);var n=gS(t,r);if(typeof e!="function")return n;for(var i=0,o=n.length;i"u"&&(r=e,e=null),bS(t,e,Kr.extend({schema:fS},r))}function wq(t,e){return wS(t,Kr.extend({schema:fS},e))}hs.exports.loadAll=bS;hs.exports.load=wS;hs.exports.safeLoadAll=bq;hs.exports.safeLoad=wq});var WS=_((xW,r_)=>{"use strict";var _s=wi(),vs=bo(),Sq=ps(),Eq=So(),TS=Object.prototype.toString,PS=Object.prototype.hasOwnProperty,xq=9,ms=10,Nq=13,Cq=32,Aq=33,Oq=34,DS=35,Lq=37,Tq=38,Pq=39,Dq=42,IS=44,Iq=45,FS=58,Fq=61,Mq=62,Rq=63,kq=64,MS=91,RS=93,zq=96,kS=123,qq=124,zS=125,gt={};gt[0]="\\0";gt[7]="\\a";gt[8]="\\b";gt[9]="\\t";gt[10]="\\n";gt[11]="\\v";gt[12]="\\f";gt[13]="\\r";gt[27]="\\e";gt[34]='\\"';gt[92]="\\\\";gt[133]="\\N";gt[160]="\\_";gt[8232]="\\L";gt[8233]="\\P";var Bq=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function jq(t,e){var r,n,i,o,a,s,l;if(e===null)return{};for(r={},n=Object.keys(e),i=0,o=n.length;i0?t.charCodeAt(o-1):null,d=d&&NS(a,s)}else{for(o=0;on&&t[f+1]!==" ",f=o);else if(!Co(a))return Kc;s=o>0?t.charCodeAt(o-1):null,d=d&&NS(a,s)}u=u||c&&o-f-1>n&&t[f+1]!==" "}return!l&&!u?d&&!i(t)?BS:jS:r>9&&qS(t)?Kc:u?US:GS}function Vq(t,e,r,n){t.dump=function(){if(e.length===0)return"''";if(!t.noCompatMode&&Bq.indexOf(e)!==-1)return"'"+e+"'";var i=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-i),a=n||t.flowLevel>-1&&r>=t.flowLevel;function s(l){return Uq(t,l)}switch($q(e,a,t.indent,o,s)){case BS:return e;case jS:return"'"+e.replace(/'/g,"''")+"'";case GS:return"|"+CS(e,t.indent)+AS(xS(e,i));case US:return">"+CS(e,t.indent)+AS(xS(Xq(e,o),i));case Kc:return'"'+Yq(e,o)+'"';default:throw new vs("impossible error: invalid scalar style")}}()}function CS(t,e){var r=qS(t)?String(e):"",n=t[t.length-1]===` `,i=n&&(t[t.length-2]===` `||t===` `),o=i?"+":n?"":"-";return r+o+` `}function AS(t){return t[t.length-1]===` `?t.slice(0,-1):t}function Xq(t,e){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=t.indexOf(` `);return u=u!==-1?u:t.length,r.lastIndex=u,OS(t.slice(0,u),e)}(),i=t[0]===` `||t[0]===" ",o,a;a=r.exec(t);){var s=a[1],l=a[2];o=l[0]===" ",n+=s+(!i&&!o&&l!==""?` `:"")+OS(l,e),i=o}return n}function OS(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,o,a=0,s=0,l="";n=r.exec(t);)s=n.index,s-i>e&&(o=a>i?a:s,l+=` `+t.slice(i,o),i=o+1),a=s;return l+=` `,t.length-i>e&&a>i?l+=t.slice(i,a)+` `+t.slice(a+1):l+=t.slice(i),l.slice(1)}function Yq(t){for(var e="",r,n,i,o=0;o=55296&&r<=56319&&(n=t.charCodeAt(o+1),n>=56320&&n<=57343)){e+=ES((r-55296)*1024+n-56320+65536),o++;continue}i=gt[r],e+=!i&&Co(r)?t[o]:i||ES(r)}return e}function Jq(t,e,r){var n="",i=t.tag,o,a;for(o=0,a=r.length;o1024&&(c+="? "),c+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Ci(t,e,u,!1,!1)&&(c+=t.dump,n+=c));t.tag=i,t.dump="{"+n+"}"}function Zq(t,e,r,n){var i="",o=t.tag,a=Object.keys(r),s,l,u,c,f,d;if(t.sortKeys===!0)a.sort();else if(typeof t.sortKeys=="function")a.sort(t.sortKeys);else if(t.sortKeys)throw new vs("sortKeys must be a boolean or a function");for(s=0,l=a.length;s1024,f&&(t.dump&&ms===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,f&&(d+=Zm(t,e)),Ci(t,e+1,c,!0,f)&&(t.dump&&ms===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,i+=d));t.tag=o,t.dump=i||"{}"}function LS(t,e,r){var n,i,o,a,s,l;for(i=r?t.explicitTypes:t.implicitTypes,o=0,a=i.length;o tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}function Ci(t,e,r,n,i,o){t.tag=null,t.dump=r,LS(t,r,!1)||LS(t,r,!0);var a=TS.call(t.dump);n&&(n=t.flowLevel<0||t.flowLevel>e);var s=a==="[object Object]"||a==="[object Array]",l,u;if(s&&(l=t.duplicates.indexOf(r),u=l!==-1),(t.tag!==null&&t.tag!=="?"||u||t.indent!==2&&e>0)&&(i=!1),u&&t.usedDuplicates[l])t.dump="*ref_"+l;else{if(s&&u&&!t.usedDuplicates[l]&&(t.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(Zq(t,e,t.dump,i),u&&(t.dump="&ref_"+l+t.dump)):(Qq(t,e,t.dump),u&&(t.dump="&ref_"+l+" "+t.dump));else if(a==="[object Array]"){var c=t.noArrayIndent&&e>0?e-1:e;n&&t.dump.length!==0?(Kq(t,c,t.dump,i),u&&(t.dump="&ref_"+l+t.dump)):(Jq(t,c,t.dump),u&&(t.dump="&ref_"+l+" "+t.dump))}else if(a==="[object String]")t.tag!=="?"&&Vq(t,t.dump,e,o);else{if(t.skipInvalid)return!1;throw new vs("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}function e2(t,e){var r=[],n=[],i,o;for(e_(t,r,n),i=0,o=n.length;i{"use strict";var Qc=SS(),$S=WS();function Zc(t){return function(){throw new Error("Function "+t+" is deprecated and cannot be used.")}}Le.exports.Type=We();Le.exports.Schema=Si();Le.exports.FAILSAFE_SCHEMA=Wc();Le.exports.JSON_SCHEMA=Vm();Le.exports.CORE_SCHEMA=Xm();Le.exports.DEFAULT_SAFE_SCHEMA=So();Le.exports.DEFAULT_FULL_SCHEMA=ps();Le.exports.load=Qc.load;Le.exports.loadAll=Qc.loadAll;Le.exports.safeLoad=Qc.safeLoad;Le.exports.safeLoadAll=Qc.safeLoadAll;Le.exports.dump=$S.dump;Le.exports.safeDump=$S.safeDump;Le.exports.YAMLException=bo();Le.exports.MINIMAL_SCHEMA=Wc();Le.exports.SAFE_SCHEMA=So();Le.exports.DEFAULT_SCHEMA=ps();Le.exports.scan=Zc("scan");Le.exports.parse=Zc("parse");Le.exports.compose=Zc("compose");Le.exports.addConstructor=Zc("addConstructor")});var YS=_((CW,XS)=>{"use strict";var r2=VS();XS.exports=r2});var JS=_(ys=>{"use strict";var n2=ys&&ys.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ys,"__esModule",{value:!0});var i2=Uc(),o2=ls(),a2=YS(),s2=function(t){n2(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._parse=function(r,n){var i=a2.safeLoad(n);if(i===void 0)throw new Error("Unable to parse YAML document.");return new i2.ObjectReader(this._builderOptions).parse(r,i)},e}(o2.BaseReader);ys.YAMLReader=s2});var KS=_(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});var l2=iw();Ao.XMLReader=l2.XMLReader;var u2=Uc();Ao.ObjectReader=u2.ObjectReader;var c2=ow();Ao.JSONReader=c2.JSONReader;var f2=JS();Ao.YAMLReader=f2.YAMLReader});var ZS=_(Ai=>{"use strict";var Ct=Ai&&Ai.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o},n_=Ai&&Ai.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ai,"__esModule",{value:!0});var d2=Nu(),se=le(),gs=Pb(),p2=oe(),Qr=de(),cr=Z(),bt=Gc(),QS=Fe(),ef=KS(),h2=function(){function t(e){this._domNode=e}return Object.defineProperty(t.prototype,"node",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),t.prototype.set=function(e){return this._options=se.applyDefaults(se.applyDefaults(this._options,e,!0),d2.DefaultBuilderOptions),this},t.prototype.ele=function(e,r,n){var i,o,a,s,l,u;if(se.isObject(e))return new ef.ObjectReader(this._options).parse(this,e);if(e!==null&&/^\s*0&&(e===void 0&&(e=r.slice(i+1)),r=r.slice(0,i)),e===void 0)e=n?this._options.defaultNamespace.ele:this._options.defaultNamespace.att;else if(e!==null&&e[0]==="@"){var o=e.slice(1);if(e=this._options.namespaceAlias[o],e===void 0)throw new Error("Namespace alias `"+o+"` is not defined. "+this._debugInfo())}return[e,r]},t.prototype._updateNamespace=function(e){var r,n,i,o,a=this._domNode;if(Qr.Guard.isElementNode(a)&&e!==null&&a.namespaceURI!==e){var s=Ct(cr.namespace_extractQName(a.prefix?a.prefix+":"+a.localName:a.localName),2),l=s[0],u=s[1],c=cr.create_element(this._doc,u,e,l);try{for(var f=n_(a.attributes),d=f.next();!d.done;d=f.next()){var p=d.value,h=p.prefix?p.prefix+":"+p.localName:p.localName,m=Ct(cr.namespace_extractQName(h),1),y=m[0],g=p.namespaceURI;g===null&&y!==null&&(g=a.lookupNamespaceURI(y)),g===null?c.setAttribute(h,p.value):c.setAttributeNS(g,h,p.value)}}catch(C){r={error:C}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}var b=a.parentNode;if(b===null)throw new Error("Parent node is null."+this._debugInfo());b.replaceChild(c,a),this._domNode=c;try{for(var v=n_(a.childNodes),S=v.next();!S.done;S=v.next()){var E=S.value,A=E.cloneNode(!0);if(c.appendChild(A),Qr.Guard.isElementNode(A)){var N=Ct(cr.namespace_extractQName(A.prefix?A.prefix+":"+A.localName:A.localName),1),D=N[0],P=c.lookupNamespaceURI(D);new t(A)._updateNamespace(P)}}}catch(C){i={error:C}}finally{try{S&&!S.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}}},Object.defineProperty(t.prototype,"_doc",{get:function(){var e=this.node;if(Qr.Guard.isDocumentNode(e))return e;var r=e.ownerDocument;if(!r)throw new Error("Owner document is null. "+this._debugInfo());return r},enumerable:!0,configurable:!0}),t.prototype._debugInfo=function(e){var r=this.node,n=r.parentNode;e=e||r.nodeName;var i=n?n.nodeName:"";return i?"node: <"+e+">, parent: <"+i+">":"node: <"+e+">"},Object.defineProperty(t.prototype,"_options",{get:function(){var e=this._doc;if(e._xmlBuilderOptions===void 0)throw new Error("Builder options is not set.");return e._xmlBuilderOptions},set:function(e){var r=this._doc;r._xmlBuilderOptions=e},enumerable:!0,configurable:!0}),t}();Ai.XMLBuilderImpl=h2});var o_=_(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});var Lo=Nu(),tf=le(),m2=de(),rf=nf(),eE=Gc();function _2(t,e){var r=i_(Oo(t)?t:Lo.DefaultBuilderOptions),n=m2.Guard.isNode(t)||tf.isArray(t)?t:e;if(n===void 0)throw new Error("Invalid arguments.");if(tf.isArray(n)){for(var i=[],o=0;o{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});var g2=function(){function t(e){this.level=0,this._builderOptions=e,this._writerOptions=e}return t}();a_.BaseCBWriter=g2});var nE=_(bs=>{"use strict";var b2=bs&&bs.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(bs,"__esModule",{value:!0});var w2=of(),S2=function(t){b2(e,t);function e(r){var n=t.call(this,r)||this;return n._lineLength=0,n}return e.prototype.frontMatter=function(){return""},e.prototype.declaration=function(r,n,i){var o=this._beginLine()+"",o},e.prototype.docType=function(r,n,i){var o=this._beginLine();return n&&i?o+="':n?o+="':i?o+="':o+="",o},e.prototype.comment=function(r){return this._beginLine()+""},e.prototype.text=function(r){return this._beginLine()+r},e.prototype.instruction=function(r,n){return n?this._beginLine()+"":this._beginLine()+""},e.prototype.cdata=function(r){return this._beginLine()+""},e.prototype.openTagBegin=function(r){return this._lineLength+=1+r.length,this._beginLine()+"<"+r},e.prototype.openTagEnd=function(r,n,i){return i?" />":n?this._writerOptions.allowEmptyTags?">":this._writerOptions.spaceBeforeSlash?" />":"/>":">"},e.prototype.closeTag=function(r){return this._beginLine()+""},e.prototype.attribute=function(r,n){var i=r+'="'+n+'"';return this._writerOptions.prettyPrint&&this._writerOptions.width>0&&this._lineLength+1+i.length>this._writerOptions.width?(i=this._beginLine()+this._indent(1)+i,this._lineLength=i.length,i):(this._lineLength+=1+i.length," "+i)},e.prototype.beginElement=function(r){},e.prototype.endElement=function(r){},e.prototype._beginLine=function(){if(this._writerOptions.prettyPrint){var r=(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level);return this._lineLength=r.length,r}else return""},e.prototype._indent=function(r){return r<=0?"":this._writerOptions.indent.repeat(r)},e}(w2.BaseCBWriter);bs.XMLCBWriter=S2});var iE=_(ws=>{"use strict";var E2=ws&&ws.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ws,"__esModule",{value:!0});var x2=of(),N2=function(t){E2(e,t);function e(r){var n=t.call(this,r)||this;return n._hasChildren=[],n._additionalLevel=0,n}return e.prototype.frontMatter=function(){return""},e.prototype.declaration=function(r,n,i){return""},e.prototype.docType=function(r,n,i){return""},e.prototype.comment=function(r){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.comment)+this._sep()+this._val(r)+this._sep()+"}"},e.prototype.text=function(r){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.text)+this._sep()+this._val(r)+this._sep()+"}"},e.prototype.instruction=function(r,n){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.ins)+this._sep()+this._val(n?r+" "+n:r)+this._sep()+"}"},e.prototype.cdata=function(r){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.cdata)+this._sep()+this._val(r)+this._sep()+"}"},e.prototype.attribute=function(r,n){return this._comma()+this._beginLine(1)+"{"+this._sep()+this._key(this._builderOptions.convert.att+r)+this._sep()+this._val(n)+this._sep()+"}"},e.prototype.openTagBegin=function(r){var n=this._comma()+this._beginLine()+"{"+this._sep()+this._key(r)+this._sep()+"{";return this._additionalLevel++,this.hasData=!0,n+=this._beginLine()+this._key(this._builderOptions.convert.text)+this._sep()+"[",this._hasChildren.push(!1),n},e.prototype.openTagEnd=function(r,n,i){if(n){var o=this._sep()+"]";return this._additionalLevel--,o+=this._beginLine()+"}"+this._sep()+"}",o}else return""},e.prototype.closeTag=function(r){var n=this._beginLine()+"]";return this._additionalLevel--,n+=this._beginLine()+"}"+this._sep()+"}",n},e.prototype.beginElement=function(r){},e.prototype.endElement=function(r){this._hasChildren.pop()},e.prototype._beginLine=function(r){return r===void 0&&(r=0),this._writerOptions.prettyPrint?(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level+r):""},e.prototype._indent=function(r){return r+this._additionalLevel<=0?"":this._writerOptions.indent.repeat(r+this._additionalLevel)},e.prototype._comma=function(){var r=this._hasChildren[this._hasChildren.length-1]?",":"";return this._hasChildren.length>0&&(this._hasChildren[this._hasChildren.length-1]=!0),r},e.prototype._sep=function(){return this._writerOptions.prettyPrint?" ":""},e.prototype._key=function(r){return'"'+r+'":'},e.prototype._val=function(r){return JSON.stringify(r)},e}(x2.BaseCBWriter);ws.JSONCBWriter=N2});var oE=_(Ss=>{"use strict";var C2=Ss&&Ss.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Ss,"__esModule",{value:!0});var A2=of(),O2=function(t){C2(e,t);function e(r){var n=t.call(this,r)||this;if(n._rootWritten=!1,n._additionalLevel=0,r.indent.length<2)throw new Error("YAML indententation string must be at least two characters long.");if(r.offset<0)throw new Error("YAML offset should be zero or a positive number.");return n}return e.prototype.frontMatter=function(){return this._beginLine()+"---"},e.prototype.declaration=function(r,n,i){return""},e.prototype.docType=function(r,n,i){return""},e.prototype.comment=function(r){return this._beginLine()+this._key(this._builderOptions.convert.comment)+" "+this._val(r)},e.prototype.text=function(r){return this._beginLine()+this._key(this._builderOptions.convert.text)+" "+this._val(r)},e.prototype.instruction=function(r,n){return this._beginLine()+this._key(this._builderOptions.convert.ins)+" "+this._val(n?r+" "+n:r)},e.prototype.cdata=function(r){return this._beginLine()+this._key(this._builderOptions.convert.cdata)+" "+this._val(r)},e.prototype.attribute=function(r,n){this._additionalLevel++;var i=this._beginLine()+this._key(this._builderOptions.convert.att+r)+" "+this._val(n);return this._additionalLevel--,i},e.prototype.openTagBegin=function(r){var n=this._beginLine()+this._key(r);return this._rootWritten||(this._rootWritten=!0),this.hasData=!0,this._additionalLevel++,n+=this._beginLine(!0)+this._key(this._builderOptions.convert.text),n},e.prototype.openTagEnd=function(r,n,i){return n?" "+this._val(""):""},e.prototype.closeTag=function(r){return this._additionalLevel--,""},e.prototype.beginElement=function(r){},e.prototype.endElement=function(r){},e.prototype._beginLine=function(r){return r===void 0&&(r=!1),(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level,r)},e.prototype._indent=function(r,n){if(r+this._additionalLevel<=0)return"";var i=this._writerOptions.indent.repeat(r+this._additionalLevel);return!n&&this._rootWritten?i.substr(0,i.length-2)+"-"+i.substr(-1,1):i},e.prototype._key=function(r){return'"'+r+'":'},e.prototype._val=function(r){return JSON.stringify(r)},e}(A2.BaseCBWriter);Ss.YAMLCBWriter=O2});var aE=_(en=>{"use strict";var L2=en&&en.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Po=en&&en.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},T2=en&&en.__read||function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(en,"__esModule",{value:!0});var P2=Nu(),s_=le(),In=o_(),Fn=Z(),Zr=Fe(),D2=Du(),I2=fa(),Es=de(),F2=nE(),M2=iE(),R2=oE(),k2=je("events"),z2=function(t){L2(e,t);function e(r,n){n===void 0&&(n=!1);var i=t.call(this)||this;return i._hasDeclaration=!1,i._docTypeName="",i._hasDocumentElement=!1,i._currentElementSerialized=!1,i._openTags=[],i._ended=!1,i._fragment=n,i._options=s_.applyDefaults(r||{},P2.DefaultXMLBuilderCBOptions),i._builderOptions={defaultNamespace:i._options.defaultNamespace,namespaceAlias:i._options.namespaceAlias},i._options.format==="json"?i._writer=new M2.JSONCBWriter(i._options):i._options.format==="yaml"?i._writer=new R2.YAMLCBWriter(i._options):i._writer=new F2.XMLCBWriter(i._options),i._options.data!==void 0&&i.on("data",i._options.data),i._options.end!==void 0&&i.on("end",i._options.end),i._options.error!==void 0&&i.on("error",i._options.error),i._prefixMap=new D2.NamespacePrefixMap,i._prefixMap.set("xml",Zr.namespace.XML),i._prefixIndex={value:1},i._push(i._writer.frontMatter()),i}return e.prototype.ele=function(r,n,i){var o,a;if(s_.isObject(r)||s_.isString(r)&&(/^\s*/g,">");return this._push(this._writer.text(i)),this},e.prototype.ins=function(r,n){n===void 0&&(n=""),this._serializeOpenTag(!0);var i;try{i=In.fragment(this._builderOptions).ins(r,n).first().node}catch(o){return this.emit("error",o),this}return this._options.wellFormed&&(i.target.indexOf(":")!==-1||/^xml$/i.test(i.target))?(this.emit("error",new Error("Processing instruction target contains invalid characters (well-formed required).")),this):this._options.wellFormed&&!Fn.xml_isLegalChar(i.data)?(this.emit("error",Error("Processing instruction data contains invalid characters (well-formed required).")),this):(this._push(this._writer.instruction(i.target,i.data)),this)},e.prototype.dat=function(r){this._serializeOpenTag(!0);var n;try{n=In.fragment(this._builderOptions).dat(r).first().node}catch(i){return this.emit("error",i),this}return this._push(this._writer.cdata(n.data)),this},e.prototype.dec=function(r){return r===void 0&&(r={version:"1.0"}),this._fragment?(this.emit("error",Error("Cannot insert an XML declaration into a document fragment.")),this):this._hasDeclaration?(this.emit("error",Error("XML declaration is already inserted.")),this):(this._push(this._writer.declaration(r.version||"1.0",r.encoding,r.standalone)),this._hasDeclaration=!0,this)},e.prototype.dtd=function(r){if(this._fragment)return this.emit("error",Error("Cannot insert a DocType declaration into a document fragment.")),this;if(this._docTypeName!=="")return this.emit("error",new Error("DocType declaration is already inserted.")),this;if(this._hasDocumentElement)return this.emit("error",new Error("Cannot insert DocType declaration after document element.")),this;var n;try{n=In.create().dtd(r).first().node}catch(i){return this.emit("error",i),this}return this._options.wellFormed&&!Fn.xml_isPubidChar(n.publicId)?(this.emit("error",new Error("DocType public identifier does not match PubidChar construct (well-formed required).")),this):this._options.wellFormed&&(!Fn.xml_isLegalChar(n.systemId)||n.systemId.indexOf('"')!==-1&&n.systemId.indexOf("'")!==-1)?(this.emit("error",new Error("DocType system identifier contains invalid characters (well-formed required).")),this):(this._docTypeName=r.name,this._push(this._writer.docType(r.name,n.publicId,n.systemId)),this)},e.prototype.import=function(r){var n,i,o=In.fragment().set(this._options);try{o.import(r)}catch(u){return this.emit("error",u),this}try{for(var a=Po(o.node.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;this._fromNode(l)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this},e.prototype.up=function(){return this._serializeOpenTag(!1),this._serializeCloseTag(),this},e.prototype.end=function(){for(this._serializeOpenTag(!1);this._openTags.length>0;)this._serializeCloseTag();return this._push(null),this},e.prototype._serializeOpenTag=function(r){if(!this._currentElementSerialized&&this._currentElement!==void 0){var n=this._currentElement.node;if(this._options.wellFormed&&(n.localName.indexOf(":")!==-1||!Fn.xml_isName(n.localName))){this.emit("error",new Error("Node local name contains invalid characters (well-formed required)."));return}var i="",o=!1,a=this._prefixMap.copy(),s={},l=this._recordNamespaceInformation(n,a,s),u=this._openTags.length===0?null:this._openTags[this._openTags.length-1][1],c=n.namespaceURI;if(c===null&&(c=u),u===c)l!==null&&(o=!0),c===Zr.namespace.XML?i="xml:"+n.localName:i=n.localName,this._writer.beginElement(i),this._push(this._writer.openTagBegin(i));else{var f=n.prefix,d=null;if((f!==null||c!==l)&&(d=a.get(f,c)),f==="xmlns"){if(this._options.wellFormed){this.emit("error",new Error("An element cannot have the 'xmlns' prefix (well-formed required)."));return}d=f}d!==null?(i=d+":"+n.localName,l!==null&&l!==Zr.namespace.XML&&(u=l||null),this._writer.beginElement(i),this._push(this._writer.openTagBegin(i))):f!==null?(f in s&&(f=this._generatePrefix(c,a,this._prefixIndex)),a.set(f,c),i+=f+":"+n.localName,this._writer.beginElement(i),this._push(this._writer.openTagBegin(i)),this._push(this._writer.attribute("xmlns:"+f,this._serializeAttributeValue(c,this._options.wellFormed))),l!==null&&(u=l||null)):l===null||l!==null&&l!==c?(o=!0,i+=n.localName,u=c,this._writer.beginElement(i),this._push(this._writer.openTagBegin(i)),this._push(this._writer.attribute("xmlns",this._serializeAttributeValue(c,this._options.wellFormed)))):(i+=n.localName,u=c,this._writer.beginElement(i),this._push(this._writer.openTagBegin(i)))}this._serializeAttributes(n,a,this._prefixIndex,s,o,this._options.wellFormed);var p=c===Zr.namespace.HTML;p&&!r&&e._VoidElementNames.has(n.localName)?(this._push(this._writer.openTagEnd(i,!0,!0)),this._writer.endElement(i)):!p&&!r?(this._push(this._writer.openTagEnd(i,!0,!1)),this._writer.endElement(i)):this._push(this._writer.openTagEnd(i,!1,!1)),this._currentElementSerialized=!0,this._openTags.push([i,u,this._prefixMap,r]),this._isPrefixMapModified(this._prefixMap,a)&&(this._prefixMap=a),this._writer.level++}},e.prototype._serializeCloseTag=function(){this._writer.level--;var r=this._openTags.pop();if(r===void 0){this.emit("error",new Error("Last element is undefined."));return}var n=T2(r,4),i=n[0],o=n[1],a=n[2],s=n[3];this._prefixMap=a,s&&(this._push(this._writer.closeTag(i)),this._writer.endElement(i))},e.prototype._push=function(r){r===null?(this._ended=!0,this.emit("end")):this._ended?this.emit("error",new Error("Cannot push to ended stream.")):r.length!==0&&(this._writer.hasData=!0,this.emit("data",r,this._writer.level))},e.prototype._fromNode=function(r){var n,i,o,a;if(Es.Guard.isElementNode(r)){var s=r.prefix?r.prefix+":"+r.localName:r.localName;r.namespaceURI!==null?this.ele(r.namespaceURI,s):this.ele(s);try{for(var l=Po(r.attributes),u=l.next();!u.done;u=l.next()){var c=u.value,f=c.prefix?c.prefix+":"+c.localName:c.localName;c.namespaceURI!==null?this.att(c.namespaceURI,f,c.value):this.att(f,c.value)}}catch(m){n={error:m}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}try{for(var d=Po(r.childNodes),p=d.next();!p.done;p=d.next()){var h=p.value;this._fromNode(h)}}catch(m){o={error:m}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}this.up()}else Es.Guard.isExclusiveTextNode(r)&&r.data?this.txt(r.data):Es.Guard.isCommentNode(r)?this.com(r.data):Es.Guard.isCDATASectionNode(r)?this.dat(r.data):Es.Guard.isProcessingInstructionNode(r)&&this.ins(r.target,r.data)},e.prototype._serializeAttributes=function(r,n,i,o,a,s){var l,u,c=s?new I2.LocalNameSet:void 0;try{for(var f=Po(r.attributes),d=f.next();!d.done;d=f.next()){var p=d.value;if(!s&&!a&&p.namespaceURI===null){this._push(this._writer.attribute(p.localName,this._serializeAttributeValue(p.value,this._options.wellFormed)));continue}if(s&&c&&c.has(p.namespaceURI,p.localName)){this.emit("error",new Error("Element contains duplicate attributes (well-formed required)."));return}s&&c&&c.set(p.namespaceURI,p.localName);var h=p.namespaceURI,m=null;if(h!==null)if(m=n.get(p.prefix,h),h===Zr.namespace.XMLNS){if(p.value===Zr.namespace.XML||p.prefix===null&&a||p.prefix!==null&&(!(p.localName in o)||o[p.localName]!==p.value)&&n.has(p.localName,p.value))continue;if(s&&p.value===Zr.namespace.XMLNS){this.emit("error",new Error("XMLNS namespace is reserved (well-formed required)."));return}if(s&&p.value===""){this.emit("error",new Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required)."));return}p.prefix==="xmlns"&&(m="xmlns")}else m===null&&(p.prefix!==null&&(!n.hasPrefix(p.prefix)||n.has(p.prefix,h))?m=p.prefix:m=this._generatePrefix(h,n,i),this._push(this._writer.attribute("xmlns:"+m,this._serializeAttributeValue(h,this._options.wellFormed))));if(s&&(p.localName.indexOf(":")!==-1||!Fn.xml_isName(p.localName)||p.localName==="xmlns"&&h===null)){this.emit("error",new Error("Attribute local name contains invalid characters (well-formed required)."));return}this._push(this._writer.attribute((m!==null?m+":":"")+p.localName,this._serializeAttributeValue(p.value,this._options.wellFormed)))}}catch(y){l={error:y}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(l)throw l.error}}},e.prototype._serializeAttributeValue=function(r,n){return n&&r!==null&&!Fn.xml_isLegalChar(r)?(this.emit("error",new Error("Invalid characters in attribute value.")),""):r===null?"":r.replace(/(?!&(lt|gt|amp|apos|quot);)&/g,"&").replace(//g,">").replace(/"/g,""")},e.prototype._recordNamespaceInformation=function(r,n,i){var o,a,s=null;try{for(var l=Po(r.attributes),u=l.next();!u.done;u=l.next()){var c=u.value,f=c.namespaceURI,d=c.prefix;if(f===Zr.namespace.XMLNS)if(d===null){s=c.value;continue}else{var p=c.localName,h=c.value;if(h===Zr.namespace.XML||(h===""&&(h=null),n.has(p,h)))continue;n.set(p,h),i[p]=h||""}}}catch(m){o={error:m}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}return s},e.prototype._generatePrefix=function(r,n,i){var o="ns"+i.value;return i.value++,n.set(o,r),o},e.prototype._isPrefixMapModified=function(r,n){var i=r._items,o=n._items,a=r._nullItems,s=n._nullItems;for(var l in o){var u=i[l];if(u===void 0)return!0;var c=o[l];if(u.length!==c.length)return!0;for(var f=0;f{"use strict";Object.defineProperty(af,"__esModule",{value:!0});var sE=nf();function q2(t){return new sE.XMLBuilderCBImpl(t)}af.createCB=q2;function B2(t){return new sE.XMLBuilderCBImpl(t,!0)}af.fragmentCB=B2});var nf=_(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});var j2=ZS();xr.XMLBuilderImpl=j2.XMLBuilderImpl;var G2=aE();xr.XMLBuilderCBImpl=G2.XMLBuilderCBImpl;var sf=o_();xr.builder=sf.builder;xr.create=sf.create;xr.fragment=sf.fragment;xr.convert=sf.convert;var uE=lE();xr.createCB=uE.createCB;xr.fragmentCB=uE.fragmentCB});var cE=_(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});var Do=nf();Mn.builder=Do.builder;Mn.create=Do.create;Mn.fragment=Do.fragment;Mn.convert=Do.convert;Mn.createCB=Do.createCB;Mn.fragmentCB=Do.fragmentCB});var pE=_(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0});var fE=cE();if(typeof fE.create!="function")throw new Error("`create` is not a function");l_.default=function(t,{space:e}={}){let r=H2(e),n=(0,fE.create)({encoding:"UTF-8"});return dE(n,t),n.end({format:"xml",newline:` `,prettyPrint:r.length>0,indent:r})};function dE(t,e,r=null){if(e.type!=="element")return;let n=U2(e)??r,i=t.ele(n,e.name,e.attributes);if(e.children!==void 0)if(typeof e.children=="string"||typeof e.children=="number")i.txt(e.children.toString());else for(let o of e.children)dE(i,o,n)}function U2(t){let e=(t.namespace??t.attributes?.xmlns)?.toString()??"";return e.length>0?e:null}function H2(t){return typeof t=="number"?" ".repeat(Math.max(0,t)):typeof t=="string"?t:""}});var hE=_(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});var W2=ug();u_.default=(0,W2.default)("XmlStringifier",[["xmlbuilder2",()=>pE().default]])});var mE=_(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.XmlSerializer=void 0;var $2=hl(),V2=hE(),X2=Kd(),Y2=Sp(),c_=class extends Y2.XmlBaseSerializer{_serialize(e,r={}){try{return(0,V2.default)(e,r)}catch(n){throw n instanceof $2.OptPlugError?new X2.MissingOptionalDependencyError(n.message,n):n}}};lf.XmlSerializer=c_});var vE=_(Rn=>{"use strict";var J2=Rn&&Rn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),_E=Rn&&Rn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&J2(e,t,r)};Object.defineProperty(Rn,"__esModule",{value:!0});_E(lg(),Rn);_E(mE(),Rn)});var yE=_(kn=>{"use strict";var Ze=kn&&kn.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},et=kn&&kn.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},uf,cf,ff,df,pf,hf,mf,_f,vf,yf,gf,bf,wf,Sf,Ef,xf,Nf,Cf;Object.defineProperty(kn,"__esModule",{value:!0});kn._Spec=void 0;var f_=class{constructor(e,r,n,i,o,a,s,l,u,c,f,d,p,h,m,y,g,b){uf.set(this,void 0),cf.set(this,void 0),ff.set(this,void 0),df.set(this,void 0),pf.set(this,void 0),hf.set(this,void 0),mf.set(this,void 0),_f.set(this,void 0),vf.set(this,void 0),yf.set(this,void 0),gf.set(this,void 0),bf.set(this,void 0),wf.set(this,void 0),Sf.set(this,void 0),Ef.set(this,void 0),xf.set(this,void 0),Nf.set(this,void 0),Cf.set(this,void 0),Ze(this,uf,e,"f"),Ze(this,cf,new Set(r),"f"),Ze(this,ff,new Set(n),"f"),Ze(this,df,new Set(i),"f"),Ze(this,pf,o,"f"),Ze(this,hf,new Set(a),"f"),Ze(this,_f,s,"f"),Ze(this,vf,l,"f"),Ze(this,yf,u,"f"),Ze(this,gf,c,"f"),Ze(this,bf,f,"f"),Ze(this,mf,new Set(d),"f"),Ze(this,wf,p,"f"),Ze(this,Sf,h,"f"),Ze(this,Ef,m,"f"),Ze(this,xf,y,"f"),Ze(this,Nf,g,"f"),Ze(this,Cf,b,"f")}get version(){return et(this,uf,"f")}supportsFormat(e){return et(this,cf,"f").has(e)}supportsComponentType(e){return et(this,ff,"f").has(e)}supportsHashAlgorithm(e){return et(this,df,"f").has(e)}supportsHashValue(e){return typeof e=="string"&&et(this,pf,"f").test(e)}supportsExternalReferenceType(e){return et(this,hf,"f").has(e)}get supportsDependencyGraph(){return et(this,_f,"f")}get supportsToolReferences(){return et(this,vf,"f")}get requiresComponentVersion(){return et(this,yf,"f")}supportsProperties(){return et(this,gf,"f")}get supportsVulnerabilities(){return et(this,bf,"f")}supportsVulnerabilityRatingMethod(e){return et(this,mf,"f").has(e)}get supportsComponentEvidence(){return et(this,wf,"f")}get supportsMetadataLifecycles(){return et(this,Sf,"f")}get supportsMetadataLicenses(){return et(this,Ef,"f")}get supportsMetadataProperties(){return et(this,xf,"f")}get supportsExternalReferenceHashes(){return et(this,Nf,"f")}get supportsLicenseAcknowledgement(){return et(this,Cf,"f")}};kn._Spec=f_;uf=new WeakMap,cf=new WeakMap,ff=new WeakMap,df=new WeakMap,pf=new WeakMap,hf=new WeakMap,mf=new WeakMap,_f=new WeakMap,vf=new WeakMap,yf=new WeakMap,gf=new WeakMap,bf=new WeakMap,wf=new WeakMap,Sf=new WeakMap,Ef=new WeakMap,xf=new WeakMap,Nf=new WeakMap,Cf=new WeakMap});var gE=_(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.SpecVersionDict=Ve.Spec1dot6=Ve.Spec1dot5=Ve.Spec1dot4=Ve.Spec1dot3=Ve.Spec1dot2=void 0;var G=Bs(),w=Jo(),F=Cd(),$e=Ld(),xs=yE(),qe=Yn();Ve.Spec1dot2=Object.freeze(new xs._Spec(qe.Version.v1dot2,[qe.Format.XML,qe.Format.JSON],[G.ComponentType.Application,G.ComponentType.Framework,G.ComponentType.Library,G.ComponentType.Container,G.ComponentType.OperatingSystem,G.ComponentType.Device,G.ComponentType.Firmware,G.ComponentType.File],[F.HashAlgorithm.MD5,F.HashAlgorithm["SHA-1"],F.HashAlgorithm["SHA-256"],F.HashAlgorithm["SHA-384"],F.HashAlgorithm["SHA-512"],F.HashAlgorithm["SHA3-256"],F.HashAlgorithm["SHA3-384"],F.HashAlgorithm["SHA3-512"],F.HashAlgorithm["BLAKE2b-256"],F.HashAlgorithm["BLAKE2b-384"],F.HashAlgorithm["BLAKE2b-512"],F.HashAlgorithm.BLAKE3],/^([a-fA-F0-9]{32})$|^([a-fA-F0-9]{40})$|^([a-fA-F0-9]{64})$|^([a-fA-F0-9]{96})$|^([a-fA-F0-9]{128})$/,[w.ExternalReferenceType.VCS,w.ExternalReferenceType.IssueTracker,w.ExternalReferenceType.Website,w.ExternalReferenceType.Advisories,w.ExternalReferenceType.BOM,w.ExternalReferenceType.MailingList,w.ExternalReferenceType.Social,w.ExternalReferenceType.Chat,w.ExternalReferenceType.Documentation,w.ExternalReferenceType.Support,w.ExternalReferenceType.Distribution,w.ExternalReferenceType.License,w.ExternalReferenceType.BuildMeta,w.ExternalReferenceType.BuildSystem,w.ExternalReferenceType.Other],!0,!1,!0,!1,!1,[],!1,!1,!1,!1,!1,!1));Ve.Spec1dot3=Object.freeze(new xs._Spec(qe.Version.v1dot3,[qe.Format.XML,qe.Format.JSON],[G.ComponentType.Application,G.ComponentType.Framework,G.ComponentType.Library,G.ComponentType.Container,G.ComponentType.OperatingSystem,G.ComponentType.Device,G.ComponentType.Firmware,G.ComponentType.File],[F.HashAlgorithm.MD5,F.HashAlgorithm["SHA-1"],F.HashAlgorithm["SHA-256"],F.HashAlgorithm["SHA-384"],F.HashAlgorithm["SHA-512"],F.HashAlgorithm["SHA3-256"],F.HashAlgorithm["SHA3-384"],F.HashAlgorithm["SHA3-512"],F.HashAlgorithm["BLAKE2b-256"],F.HashAlgorithm["BLAKE2b-384"],F.HashAlgorithm["BLAKE2b-512"],F.HashAlgorithm.BLAKE3],/^([a-fA-F0-9]{32})$|^([a-fA-F0-9]{40})$|^([a-fA-F0-9]{64})$|^([a-fA-F0-9]{96})$|^([a-fA-F0-9]{128})$/,[w.ExternalReferenceType.VCS,w.ExternalReferenceType.IssueTracker,w.ExternalReferenceType.Website,w.ExternalReferenceType.Advisories,w.ExternalReferenceType.BOM,w.ExternalReferenceType.MailingList,w.ExternalReferenceType.Social,w.ExternalReferenceType.Chat,w.ExternalReferenceType.Documentation,w.ExternalReferenceType.Support,w.ExternalReferenceType.Distribution,w.ExternalReferenceType.License,w.ExternalReferenceType.BuildMeta,w.ExternalReferenceType.BuildSystem,w.ExternalReferenceType.Other],!0,!1,!0,!0,!1,[],!0,!1,!0,!0,!0,!1));Ve.Spec1dot4=Object.freeze(new xs._Spec(qe.Version.v1dot4,[qe.Format.XML,qe.Format.JSON],[G.ComponentType.Application,G.ComponentType.Framework,G.ComponentType.Library,G.ComponentType.Container,G.ComponentType.OperatingSystem,G.ComponentType.Device,G.ComponentType.Firmware,G.ComponentType.File],[F.HashAlgorithm.MD5,F.HashAlgorithm["SHA-1"],F.HashAlgorithm["SHA-256"],F.HashAlgorithm["SHA-384"],F.HashAlgorithm["SHA-512"],F.HashAlgorithm["SHA3-256"],F.HashAlgorithm["SHA3-384"],F.HashAlgorithm["SHA3-512"],F.HashAlgorithm["BLAKE2b-256"],F.HashAlgorithm["BLAKE2b-384"],F.HashAlgorithm["BLAKE2b-512"],F.HashAlgorithm.BLAKE3],/^([a-fA-F0-9]{32})$|^([a-fA-F0-9]{40})$|^([a-fA-F0-9]{64})$|^([a-fA-F0-9]{96})$|^([a-fA-F0-9]{128})$/,[w.ExternalReferenceType.VCS,w.ExternalReferenceType.IssueTracker,w.ExternalReferenceType.Website,w.ExternalReferenceType.Advisories,w.ExternalReferenceType.BOM,w.ExternalReferenceType.MailingList,w.ExternalReferenceType.Social,w.ExternalReferenceType.Chat,w.ExternalReferenceType.Documentation,w.ExternalReferenceType.Support,w.ExternalReferenceType.Distribution,w.ExternalReferenceType.License,w.ExternalReferenceType.BuildMeta,w.ExternalReferenceType.BuildSystem,w.ExternalReferenceType.ReleaseNotes,w.ExternalReferenceType.Other],!0,!0,!1,!0,!0,[$e.RatingMethod.CVSSv2,$e.RatingMethod.CVSSv3,$e.RatingMethod.CVSSv31,$e.RatingMethod.OWASP,$e.RatingMethod.Other],!0,!1,!0,!0,!0,!1));Ve.Spec1dot5=Object.freeze(new xs._Spec(qe.Version.v1dot5,[qe.Format.XML,qe.Format.JSON],[G.ComponentType.Application,G.ComponentType.Framework,G.ComponentType.Library,G.ComponentType.Container,G.ComponentType.Platform,G.ComponentType.OperatingSystem,G.ComponentType.Device,G.ComponentType.DeviceDriver,G.ComponentType.Firmware,G.ComponentType.File,G.ComponentType.MachineLearningModel,G.ComponentType.Data],[F.HashAlgorithm.MD5,F.HashAlgorithm["SHA-1"],F.HashAlgorithm["SHA-256"],F.HashAlgorithm["SHA-384"],F.HashAlgorithm["SHA-512"],F.HashAlgorithm["SHA3-256"],F.HashAlgorithm["SHA3-384"],F.HashAlgorithm["SHA3-512"],F.HashAlgorithm["BLAKE2b-256"],F.HashAlgorithm["BLAKE2b-384"],F.HashAlgorithm["BLAKE2b-512"],F.HashAlgorithm.BLAKE3],/^([a-fA-F0-9]{32})$|^([a-fA-F0-9]{40})$|^([a-fA-F0-9]{64})$|^([a-fA-F0-9]{96})$|^([a-fA-F0-9]{128})$/,[w.ExternalReferenceType.VCS,w.ExternalReferenceType.IssueTracker,w.ExternalReferenceType.Website,w.ExternalReferenceType.Advisories,w.ExternalReferenceType.BOM,w.ExternalReferenceType.MailingList,w.ExternalReferenceType.Social,w.ExternalReferenceType.Chat,w.ExternalReferenceType.Documentation,w.ExternalReferenceType.Support,w.ExternalReferenceType.Distribution,w.ExternalReferenceType.DistributionIntake,w.ExternalReferenceType.License,w.ExternalReferenceType.BuildMeta,w.ExternalReferenceType.BuildSystem,w.ExternalReferenceType.ReleaseNotes,w.ExternalReferenceType.SecurityContact,w.ExternalReferenceType.ModelCard,w.ExternalReferenceType.Log,w.ExternalReferenceType.Configuration,w.ExternalReferenceType.Evidence,w.ExternalReferenceType.Formulation,w.ExternalReferenceType.Attestation,w.ExternalReferenceType.ThreatModel,w.ExternalReferenceType.AdversaryModel,w.ExternalReferenceType.RiskAssessment,w.ExternalReferenceType.VulnerabilityAssertion,w.ExternalReferenceType.ExploitabilityStatement,w.ExternalReferenceType.PentestReport,w.ExternalReferenceType.StaticAnalysisReport,w.ExternalReferenceType.DynamicAnalysisReport,w.ExternalReferenceType.RuntimeAnalysisReport,w.ExternalReferenceType.ComponentAnalysisReport,w.ExternalReferenceType.MaturityReport,w.ExternalReferenceType.CertificationReport,w.ExternalReferenceType.CodifiedInfrastructure,w.ExternalReferenceType.QualityMetrics,w.ExternalReferenceType.POAM,w.ExternalReferenceType.Other],!0,!0,!1,!0,!0,[$e.RatingMethod.CVSSv2,$e.RatingMethod.CVSSv3,$e.RatingMethod.CVSSv31,$e.RatingMethod.CVSSv4,$e.RatingMethod.OWASP,$e.RatingMethod.SSVC,$e.RatingMethod.Other],!0,!0,!0,!0,!0,!1));Ve.Spec1dot6=Object.freeze(new xs._Spec(qe.Version.v1dot6,[qe.Format.XML,qe.Format.JSON],[G.ComponentType.Application,G.ComponentType.Framework,G.ComponentType.Library,G.ComponentType.Container,G.ComponentType.Platform,G.ComponentType.OperatingSystem,G.ComponentType.Device,G.ComponentType.DeviceDriver,G.ComponentType.Firmware,G.ComponentType.File,G.ComponentType.MachineLearningModel,G.ComponentType.Data,G.ComponentType.CryptographicAsset],[F.HashAlgorithm.MD5,F.HashAlgorithm["SHA-1"],F.HashAlgorithm["SHA-256"],F.HashAlgorithm["SHA-384"],F.HashAlgorithm["SHA-512"],F.HashAlgorithm["SHA3-256"],F.HashAlgorithm["SHA3-384"],F.HashAlgorithm["SHA3-512"],F.HashAlgorithm["BLAKE2b-256"],F.HashAlgorithm["BLAKE2b-384"],F.HashAlgorithm["BLAKE2b-512"],F.HashAlgorithm.BLAKE3],/^([a-fA-F0-9]{32})$|^([a-fA-F0-9]{40})$|^([a-fA-F0-9]{64})$|^([a-fA-F0-9]{96})$|^([a-fA-F0-9]{128})$/,[w.ExternalReferenceType.VCS,w.ExternalReferenceType.IssueTracker,w.ExternalReferenceType.Website,w.ExternalReferenceType.Advisories,w.ExternalReferenceType.BOM,w.ExternalReferenceType.MailingList,w.ExternalReferenceType.Social,w.ExternalReferenceType.Chat,w.ExternalReferenceType.Documentation,w.ExternalReferenceType.Support,w.ExternalReferenceType.SourceDistribution,w.ExternalReferenceType.Distribution,w.ExternalReferenceType.DistributionIntake,w.ExternalReferenceType.License,w.ExternalReferenceType.BuildMeta,w.ExternalReferenceType.BuildSystem,w.ExternalReferenceType.ReleaseNotes,w.ExternalReferenceType.SecurityContact,w.ExternalReferenceType.ModelCard,w.ExternalReferenceType.Log,w.ExternalReferenceType.Configuration,w.ExternalReferenceType.Evidence,w.ExternalReferenceType.Formulation,w.ExternalReferenceType.Attestation,w.ExternalReferenceType.ThreatModel,w.ExternalReferenceType.AdversaryModel,w.ExternalReferenceType.RiskAssessment,w.ExternalReferenceType.VulnerabilityAssertion,w.ExternalReferenceType.ExploitabilityStatement,w.ExternalReferenceType.PentestReport,w.ExternalReferenceType.StaticAnalysisReport,w.ExternalReferenceType.DynamicAnalysisReport,w.ExternalReferenceType.RuntimeAnalysisReport,w.ExternalReferenceType.ComponentAnalysisReport,w.ExternalReferenceType.MaturityReport,w.ExternalReferenceType.CertificationReport,w.ExternalReferenceType.CodifiedInfrastructure,w.ExternalReferenceType.QualityMetrics,w.ExternalReferenceType.POAM,w.ExternalReferenceType.ElectronicSignature,w.ExternalReferenceType.DigitalSignature,w.ExternalReferenceType.RFC9116,w.ExternalReferenceType.Other],!0,!0,!1,!0,!0,[$e.RatingMethod.CVSSv2,$e.RatingMethod.CVSSv3,$e.RatingMethod.CVSSv31,$e.RatingMethod.CVSSv4,$e.RatingMethod.OWASP,$e.RatingMethod.SSVC,$e.RatingMethod.Other],!0,!0,!0,!0,!0,!0));Ve.SpecVersionDict=Object.freeze({[qe.Version.v1dot6]:Ve.Spec1dot6,[qe.Version.v1dot5]:Ve.Spec1dot5,[qe.Version.v1dot4]:Ve.Spec1dot4,[qe.Version.v1dot3]:Ve.Spec1dot3,[qe.Version.v1dot2]:Ve.Spec1dot2})});var bE=_(tn=>{"use strict";var K2=tn&&tn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),d_=tn&&tn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&K2(e,t,r)};Object.defineProperty(tn,"__esModule",{value:!0});d_(gE(),tn);d_(Yn(),tn);d_(Xl(),tn)});var NE=_(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.LRUCache=void 0;var Io=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,SE=new Set,p_=typeof process=="object"&&!!process?process:{},EE=(t,e,r,n)=>{typeof p_.emitWarning=="function"?p_.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},Of=globalThis.AbortController,wE=globalThis.AbortSignal;if(typeof Of>"u"){wE=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},Of=class{constructor(){e()}signal=new wE;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let t=p_.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{!t||(t=!1,EE("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var Q2=t=>!SE.has(t),XW=Symbol("type"),zn=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),xE=t=>zn(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Mo:null:null,Mo=class extends Array{constructor(e){super(e),this.fill(0)}},Ro,Fo=class{heap;length;static create(e){let r=xE(e);if(!r)return[];td(Fo,Ro,!0);let n=new Fo(e,r);return td(Fo,Ro,!1),n}constructor(e,r){if(!pr(Fo,Ro))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Af=Fo;Ro=new WeakMap,Oi(Af,Ro,!1);var Ns=class{#h;#c;#m;#_;#T;#P;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#i;#v;#n;#r;#e;#l;#f;#s;#o;#y;#a;#g;#b;#d;#w;#C;#u;static unsafeExposeInternals(e){return{starts:e.#b,ttls:e.#d,sizes:e.#g,keyMap:e.#n,keyList:e.#r,valList:e.#e,next:e.#l,prev:e.#f,get head(){return e.#s},get tail(){return e.#o},free:e.#y,isBackgroundFetch:r=>e.#t(r),backgroundFetch:(r,n,i,o)=>e.#F(r,n,i,o),moveToTail:r=>e.#L(r),indexes:r=>e.#S(r),rindexes:r=>e.#E(r),isStale:r=>e.#p(r)}}get max(){return this.#h}get maxSize(){return this.#c}get calculatedSize(){return this.#v}get size(){return this.#i}get fetchMethod(){return this.#T}get memoMethod(){return this.#P}get dispose(){return this.#m}get disposeAfter(){return this.#_}constructor(e){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:u,disposeAfter:c,noDisposeOnSet:f,noUpdateTTL:d,maxSize:p=0,maxEntrySize:h=0,sizeCalculation:m,fetchMethod:y,memoMethod:g,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:E,ignoreFetchAbort:A}=e;if(r!==0&&!zn(r))throw new TypeError("max option must be a nonnegative integer");let N=r?xE(r):Array;if(!N)throw new Error("invalid max value: "+r);if(this.#h=r,this.#c=p,this.maxEntrySize=h||this.#c,this.sizeCalculation=m,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#P=g,y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#T=y,this.#C=!!y,this.#n=new Map,this.#r=new Array(r).fill(void 0),this.#e=new Array(r).fill(void 0),this.#l=new N(r),this.#f=new N(r),this.#s=0,this.#o=0,this.#y=Af.create(r),this.#i=0,this.#v=0,typeof u=="function"&&(this.#m=u),typeof c=="function"?(this.#_=c,this.#a=[]):(this.#_=void 0,this.#a=void 0),this.#w=!!this.#m,this.#u=!!this.#_,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!E,this.ignoreFetchAbort=!!A,this.maxEntrySize!==0){if(this.#c!==0&&!zn(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!zn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#j()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=zn(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=n||0,this.ttl){if(!zn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#M()}if(this.#h===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#h&&!this.#c){let D="LRU_CACHE_UNBOUNDED";Q2(D)&&(SE.add(D),EE("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",D,Ns))}}getRemainingTTL(e){return this.#n.has(e)?1/0:0}#M(){let e=new Mo(this.#h),r=new Mo(this.#h);this.#d=e,this.#b=r,this.#R=(o,a,s=Io.now())=>{if(r[o]=a!==0?s:0,e[o]=a,a!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#p(o)&&this.#x(this.#r[o],"expire")},a+1);l.unref&&l.unref()}},this.#A=o=>{r[o]=e[o]!==0?Io.now():0},this.#N=(o,a)=>{if(e[a]){let s=e[a],l=r[a];if(!s||!l)return;o.ttl=s,o.start=l,o.now=n||i();let u=o.now-l;o.remainingTTL=s-u}};let n=0,i=()=>{let o=Io.now();if(this.ttlResolution>0){n=o;let a=setTimeout(()=>n=0,this.ttlResolution);a.unref&&a.unref()}return o};this.getRemainingTTL=o=>{let a=this.#n.get(o);if(a===void 0)return 0;let s=e[a],l=r[a];if(!s||!l)return 1/0;let u=(n||i())-l;return s-u},this.#p=o=>{let a=r[o],s=e[o];return!!s&&!!a&&(n||i())-a>s}}#A=()=>{};#N=()=>{};#R=()=>{};#p=()=>!1;#j(){let e=new Mo(this.#h);this.#v=0,this.#g=e,this.#O=r=>{this.#v-=e[r],e[r]=0},this.#k=(r,n,i,o)=>{if(this.#t(n))return 0;if(!zn(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(n,r),!zn(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#D=(r,n,i)=>{if(e[r]=n,this.#c){let o=this.#c-e[r];for(;this.#v>o;)this.#I(!0)}this.#v+=e[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#v)}}#O=e=>{};#D=(e,r,n)=>{};#k=(e,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#S({allowStale:e=this.allowStale}={}){if(this.#i)for(let r=this.#o;!(!this.#z(r)||((e||!this.#p(r))&&(yield r),r===this.#s));)r=this.#f[r]}*#E({allowStale:e=this.allowStale}={}){if(this.#i)for(let r=this.#s;!(!this.#z(r)||((e||!this.#p(r))&&(yield r),r===this.#o));)r=this.#l[r]}#z(e){return e!==void 0&&this.#n.get(this.#r[e])===e}*entries(){for(let e of this.#S())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#t(this.#e[e])&&(yield[this.#r[e],this.#e[e]])}*rentries(){for(let e of this.#E())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#t(this.#e[e])&&(yield[this.#r[e],this.#e[e]])}*keys(){for(let e of this.#S()){let r=this.#r[e];r!==void 0&&!this.#t(this.#e[e])&&(yield r)}}*rkeys(){for(let e of this.#E()){let r=this.#r[e];r!==void 0&&!this.#t(this.#e[e])&&(yield r)}}*values(){for(let e of this.#S())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e])}*rvalues(){for(let e of this.#E())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let n of this.#S()){let i=this.#e[n],o=this.#t(i)?i.__staleWhileFetching:i;if(o!==void 0&&e(o,this.#r[n],this))return this.get(this.#r[n],r)}}forEach(e,r=this){for(let n of this.#S()){let i=this.#e[n],o=this.#t(i)?i.__staleWhileFetching:i;o!==void 0&&e.call(r,o,this.#r[n],this)}}rforEach(e,r=this){for(let n of this.#E()){let i=this.#e[n],o=this.#t(i)?i.__staleWhileFetching:i;o!==void 0&&e.call(r,o,this.#r[n],this)}}purgeStale(){let e=!1;for(let r of this.#E({allowStale:!0}))this.#p(r)&&(this.#x(this.#r[r],"expire"),e=!0);return e}info(e){let r=this.#n.get(e);if(r===void 0)return;let n=this.#e[r],i=this.#t(n)?n.__staleWhileFetching:n;if(i===void 0)return;let o={value:i};if(this.#d&&this.#b){let a=this.#d[r],s=this.#b[r];if(a&&s){let l=a-(Io.now()-s);o.ttl=l,o.start=Date.now()}}return this.#g&&(o.size=this.#g[r]),o}dump(){let e=[];for(let r of this.#S({allowStale:!0})){let n=this.#r[r],i=this.#e[r],o=this.#t(i)?i.__staleWhileFetching:i;if(o===void 0||n===void 0)continue;let a={value:o};if(this.#d&&this.#b){a.ttl=this.#d[r];let s=Io.now()-this.#b[r];a.start=Math.floor(Date.now()-s)}this.#g&&(a.size=this.#g[r]),e.unshift([n,a])}return e}load(e){this.clear();for(let[r,n]of e){if(n.start){let i=Date.now()-n.start;n.start=Io.now()-i}this.set(r,n.value,n)}}set(e,r,n={}){if(r===void 0)return this.delete(e),this;let{ttl:i=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=n,{noUpdateTTL:u=this.noUpdateTTL}=n,c=this.#k(e,r,n.size||0,s);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#x(e,"set"),this;let f=this.#i===0?void 0:this.#n.get(e);if(f===void 0)f=this.#i===0?this.#o:this.#y.length!==0?this.#y.pop():this.#i===this.#h?this.#I(!1):this.#i,this.#r[f]=e,this.#e[f]=r,this.#n.set(e,f),this.#l[this.#o]=f,this.#f[f]=this.#o,this.#o=f,this.#i++,this.#D(f,c,l),l&&(l.set="add"),u=!1;else{this.#L(f);let d=this.#e[f];if(r!==d){if(this.#C&&this.#t(d)){d.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=d;p!==void 0&&!a&&(this.#w&&this.#m?.(p,e,"set"),this.#u&&this.#a?.push([p,e,"set"]))}else a||(this.#w&&this.#m?.(d,e,"set"),this.#u&&this.#a?.push([d,e,"set"]));if(this.#O(f),this.#D(f,c,l),this.#e[f]=r,l){l.set="replace";let p=d&&this.#t(d)?d.__staleWhileFetching:d;p!==void 0&&(l.oldValue=p)}}else l&&(l.set="update")}if(i!==0&&!this.#d&&this.#M(),this.#d&&(u||this.#R(f,i,o),l&&this.#N(l,f)),!a&&this.#u&&this.#a){let d=this.#a,p;for(;p=d?.shift();)this.#_?.(...p)}return this}pop(){try{for(;this.#i;){let e=this.#e[this.#s];if(this.#I(!0),this.#t(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#u&&this.#a){let e=this.#a,r;for(;r=e?.shift();)this.#_?.(...r)}}}#I(e){let r=this.#s,n=this.#r[r],i=this.#e[r];return this.#C&&this.#t(i)?i.__abortController.abort(new Error("evicted")):(this.#w||this.#u)&&(this.#w&&this.#m?.(i,n,"evict"),this.#u&&this.#a?.push([i,n,"evict"])),this.#O(r),e&&(this.#r[r]=void 0,this.#e[r]=void 0,this.#y.push(r)),this.#i===1?(this.#s=this.#o=0,this.#y.length=0):this.#s=this.#l[r],this.#n.delete(n),this.#i--,r}has(e,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,o=this.#n.get(e);if(o!==void 0){let a=this.#e[o];if(this.#t(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#p(o))i&&(i.has="stale",this.#N(i,o));else return n&&this.#A(o),i&&(i.has="hit",this.#N(i,o)),!0}else i&&(i.has="miss");return!1}peek(e,r={}){let{allowStale:n=this.allowStale}=r,i=this.#n.get(e);if(i===void 0||!n&&this.#p(i))return;let o=this.#e[i];return this.#t(o)?o.__staleWhileFetching:o}#F(e,r,n,i){let o=r===void 0?void 0:this.#e[r];if(this.#t(o))return o;let a=new Of,{signal:s}=n;s?.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let l={signal:a.signal,options:n,context:i},u=(m,y=!1)=>{let{aborted:g}=a.signal,b=n.ignoreFetchAbort&&m!==void 0;if(n.status&&(g&&!y?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,b&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),g&&!b&&!y)return f(a.signal.reason);let v=p;return this.#e[r]===p&&(m===void 0?v.__staleWhileFetching?this.#e[r]=v.__staleWhileFetching:this.#x(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(e,m,l.options))),m},c=m=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=m),f(m)),f=m=>{let{aborted:y}=a.signal,g=y&&n.allowStaleOnFetchAbort,b=g||n.allowStaleOnFetchRejection,v=b||n.noDeleteOnFetchRejection,S=p;if(this.#e[r]===p&&(!v||S.__staleWhileFetching===void 0?this.#x(e,"fetch"):g||(this.#e[r]=S.__staleWhileFetching)),b)return n.status&&S.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),S.__staleWhileFetching;if(S.__returned===S)throw m},d=(m,y)=>{let g=this.#T?.(e,o,l);g&&g instanceof Promise&&g.then(b=>m(b===void 0?void 0:b),y),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(m(void 0),n.allowStaleOnFetchAbort&&(m=b=>u(b,!0)))})};n.status&&(n.status.fetchDispatched=!0);let p=new Promise(d).then(u,c),h=Object.assign(p,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return r===void 0?(this.set(e,h,{...l.options,status:void 0}),r=this.#n.get(e)):this.#e[r]=h,h}#t(e){if(!this.#C)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Of}async fetch(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:m,forceRefresh:y=!1,status:g,signal:b}=r;if(!this.#C)return g&&(g.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:g});let v={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:u,noUpdateTTL:c,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:h,ignoreFetchAbort:p,status:g,signal:b},S=this.#n.get(e);if(S===void 0){g&&(g.fetch="miss");let E=this.#F(e,S,v,m);return E.__returned=E}else{let E=this.#e[S];if(this.#t(E)){let C=n&&E.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",C&&(g.returnedStale=!0)),C?E.__staleWhileFetching:E.__returned=E}let A=this.#p(S);if(!y&&!A)return g&&(g.fetch="hit"),this.#L(S),i&&this.#A(S),g&&this.#N(g,S),E;let N=this.#F(e,S,v,m),P=N.__staleWhileFetching!==void 0&&n;return g&&(g.fetch=A?"stale":"refresh",P&&A&&(g.returnedStale=!0)),P?N.__staleWhileFetching:N.__returned=N}}async forceFetch(e,r={}){let n=await this.fetch(e,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(e,r={}){let n=this.#P;if(!n)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:o,...a}=r,s=this.get(e,a);if(!o&&s!==void 0)return s;let l=n(e,s,{options:a,context:i});return this.set(e,l,a),l}get(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=r,s=this.#n.get(e);if(s!==void 0){let l=this.#e[s],u=this.#t(l);return a&&this.#N(a,s),this.#p(s)?(a&&(a.get="stale"),u?(a&&n&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?l.__staleWhileFetching:void 0):(o||this.#x(e,"expire"),a&&n&&(a.returnedStale=!0),n?l:void 0)):(a&&(a.get="hit"),u?l.__staleWhileFetching:(this.#L(s),i&&this.#A(s),l))}else a&&(a.get="miss")}#q(e,r){this.#f[r]=e,this.#l[e]=r}#L(e){e!==this.#o&&(e===this.#s?this.#s=this.#l[e]:this.#q(this.#f[e],this.#l[e]),this.#q(this.#o,e),this.#o=e)}delete(e){return this.#x(e,"delete")}#x(e,r){let n=!1;if(this.#i!==0){let i=this.#n.get(e);if(i!==void 0)if(n=!0,this.#i===1)this.#B(r);else{this.#O(i);let o=this.#e[i];if(this.#t(o)?o.__abortController.abort(new Error("deleted")):(this.#w||this.#u)&&(this.#w&&this.#m?.(o,e,r),this.#u&&this.#a?.push([o,e,r])),this.#n.delete(e),this.#r[i]=void 0,this.#e[i]=void 0,i===this.#o)this.#o=this.#f[i];else if(i===this.#s)this.#s=this.#l[i];else{let a=this.#f[i];this.#l[a]=this.#l[i];let s=this.#l[i];this.#f[s]=this.#f[i]}this.#i--,this.#y.push(i)}}if(this.#u&&this.#a?.length){let i=this.#a,o;for(;o=i?.shift();)this.#_?.(...o)}return n}clear(){return this.#B("delete")}#B(e){for(let r of this.#E({allowStale:!0})){let n=this.#e[r];if(this.#t(n))n.__abortController.abort(new Error("deleted"));else{let i=this.#r[r];this.#w&&this.#m?.(n,i,e),this.#u&&this.#a?.push([n,i,e])}}if(this.#n.clear(),this.#e.fill(void 0),this.#r.fill(void 0),this.#d&&this.#b&&(this.#d.fill(0),this.#b.fill(0)),this.#g&&this.#g.fill(0),this.#s=0,this.#o=0,this.#y.length=0,this.#v=0,this.#i=0,this.#u&&this.#a){let r=this.#a,n;for(;n=r?.shift();)this.#_?.(...n)}}};Lf.LRUCache=Ns});var OE=_((KW,AE)=>{"use strict";var ie=(...t)=>t.every(e=>e)?t.join(""):"",Be=t=>t?encodeURIComponent(t):"",CE=t=>t.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Z2={sshtemplate:({domain:t,user:e,project:r,committish:n})=>`git@${t}:${e}/${r}.git${ie("#",n)}`,sshurltemplate:({domain:t,user:e,project:r,committish:n})=>`git+ssh://git@${t}/${e}/${r}.git${ie("#",n)}`,edittemplate:({domain:t,user:e,project:r,committish:n,editpath:i,path:o})=>`https://${t}/${e}/${r}${ie("/",i,"/",Be(n||"HEAD"),"/",o)}`,browsetemplate:({domain:t,user:e,project:r,committish:n,treepath:i})=>`https://${t}/${e}/${r}${ie("/",i,"/",Be(n))}`,browsetreetemplate:({domain:t,user:e,project:r,committish:n,treepath:i,path:o,fragment:a,hashformat:s})=>`https://${t}/${e}/${r}/${i}/${Be(n||"HEAD")}/${o}${ie("#",s(a||""))}`,browseblobtemplate:({domain:t,user:e,project:r,committish:n,blobpath:i,path:o,fragment:a,hashformat:s})=>`https://${t}/${e}/${r}/${i}/${Be(n||"HEAD")}/${o}${ie("#",s(a||""))}`,docstemplate:({domain:t,user:e,project:r,treepath:n,committish:i})=>`https://${t}/${e}/${r}${ie("/",n,"/",Be(i))}#readme`,httpstemplate:({auth:t,domain:e,user:r,project:n,committish:i})=>`git+https://${ie(t,"@")}${e}/${r}/${n}.git${ie("#",i)}`,filetemplate:({domain:t,user:e,project:r,committish:n,path:i})=>`https://${t}/${e}/${r}/raw/${Be(n||"HEAD")}/${i}`,shortcuttemplate:({type:t,user:e,project:r,committish:n})=>`${t}:${e}/${r}${ie("#",n)}`,pathtemplate:({user:t,project:e,committish:r})=>`${t}/${e}${ie("#",r)}`,bugstemplate:({domain:t,user:e,project:r})=>`https://${t}/${e}/${r}/issues`,hashformat:CE},qn={};qn.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:t,user:e,project:r,committish:n,path:i})=>`https://${ie(t,"@")}raw.githubusercontent.com/${e}/${r}/${Be(n||"HEAD")}/${i}`,gittemplate:({auth:t,domain:e,user:r,project:n,committish:i})=>`git://${ie(t,"@")}${e}/${r}/${n}.git${ie("#",i)}`,tarballtemplate:({domain:t,user:e,project:r,committish:n})=>`https://codeload.${t}/${e}/${r}/tar.gz/${Be(n||"HEAD")}`,extract:t=>{let[,e,r,n,i]=t.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=t.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:i}}};qn.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:t,user:e,project:r,committish:n,treepath:i,path:o,editpath:a})=>`https://${t}/${e}/${r}${ie("/",i,"/",Be(n||"HEAD"),"/",o,a)}`,tarballtemplate:({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/get/${Be(n||"HEAD")}.tar.gz`,extract:t=>{let[,e,r,n]=t.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:t.hash.slice(1)}}};qn.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:t,domain:e,user:r,project:n,committish:i})=>`git+https://${ie(t,"@")}${e}/${r}/${n}.git${ie("#",i)}`,tarballtemplate:({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/repository/archive.tar.gz?ref=${Be(n||"HEAD")}`,extract:t=>{let e=t.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let r=e.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:t.hash.slice(1)}}};qn.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:t,project:e,committish:r})=>`git@${t}:${e}.git${ie("#",r)}`,sshurltemplate:({domain:t,project:e,committish:r})=>`git+ssh://git@${t}/${e}.git${ie("#",r)}`,edittemplate:({domain:t,user:e,project:r,committish:n,editpath:i})=>`https://${t}/${e}/${r}${ie("/",Be(n))}/${i}`,browsetemplate:({domain:t,project:e,committish:r})=>`https://${t}/${e}${ie("/",Be(r))}`,browsetreetemplate:({domain:t,project:e,committish:r,path:n,hashformat:i})=>`https://${t}/${e}${ie("/",Be(r))}${ie("#",i(n))}`,browseblobtemplate:({domain:t,project:e,committish:r,path:n,hashformat:i})=>`https://${t}/${e}${ie("/",Be(r))}${ie("#",i(n))}`,docstemplate:({domain:t,project:e,committish:r})=>`https://${t}/${e}${ie("/",Be(r))}`,httpstemplate:({domain:t,project:e,committish:r})=>`git+https://${t}/${e}.git${ie("#",r)}`,filetemplate:({user:t,project:e,committish:r,path:n})=>`https://gist.githubusercontent.com/${t}/${e}/raw${ie("/",Be(r))}/${n}`,shortcuttemplate:({type:t,project:e,committish:r})=>`${t}:${e}${ie("#",r)}`,pathtemplate:({project:t,committish:e})=>`${t}${ie("#",e)}`,bugstemplate:({domain:t,project:e})=>`https://${t}/${e}`,gittemplate:({domain:t,project:e,committish:r})=>`git://${t}/${e}.git${ie("#",r)}`,tarballtemplate:({project:t,committish:e})=>`https://codeload.github.com/gist/${t}/tar.gz/${Be(e||"HEAD")}`,extract:t=>{let[,e,r,n]=t.pathname.split("/",4);if(n!=="raw"){if(!r){if(!e)return;r=e,e=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:e,project:r,committish:t.hash.slice(1)}}},hashformat:function(t){return t&&"file-"+CE(t)}};qn.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:t,user:e,project:r,committish:n,path:i})=>`https://${t}/${e}/${r}/blob/${Be(n)||"HEAD"}/${i}`,httpstemplate:({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}.git${ie("#",n)}`,tarballtemplate:({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/archive/${Be(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:t=>{let[,e,r,n]=t.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:t.hash.slice(1)}}};for(let[t,e]of Object.entries(qn))qn[t]=Object.assign({},Z2,e);AE.exports=qn});var m_=_((QW,TE)=>{var eB=je("url"),h_=(t,e,r)=>{let n=t.indexOf(r);return t.lastIndexOf(e,n>-1?n:1/0)},LE=t=>{try{return new eB.URL(t)}catch{}},tB=(t,e)=>{let r=t.indexOf(":"),n=t.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(e,n))return t;let i=t.indexOf("@");return i>-1?i>r?`git+ssh://${t}`:t:t.indexOf("//")===r+1?t:`${t.slice(0,r+1)}//${t.slice(r+1)}`},rB=t=>{let e=h_(t,"@","#"),r=h_(t,":","#");return r>e&&(t=t.slice(0,r)+"/"+t.slice(r+1)),h_(t,":","#")===-1&&t.indexOf("//")===-1&&(t=`git+ssh://${t}`),t};TE.exports=(t,e)=>{let r=e?tB(t,e):t;return LE(r)||LE(rB(r))}});var DE=_((ZW,PE)=>{"use strict";var nB=m_(),iB=t=>{let e=t.indexOf("#"),r=t.indexOf("/"),n=t.indexOf("/",r+1),i=t.indexOf(":"),o=/\s/.exec(t),a=t.indexOf("@"),s=!o||e>-1&&o.index>e,l=a===-1||e>-1&&a>e,u=i===-1||e>-1&&i>e,c=n===-1||e>-1&&n>e,f=r>0,d=e>-1?t[e-1]!=="/":!t.endsWith("/"),p=!t.startsWith(".");return s&&f&&d&&p&&l&&u&&c};PE.exports=(t,e,{gitHosts:r,protocols:n})=>{if(!t)return;let i=iB(t)?`github:${t}`:t,o=nB(i,n);if(!o)return;let a=r.byShortcut[o.protocol],s=r.byDomain[o.hostname.startsWith("www.")?o.hostname.slice(4):o.hostname],l=a||s;if(!l)return;let u=r[a||s],c=null;n[o.protocol]?.auth&&(o.username||o.password)&&(c=`${o.username}${o.password?":"+o.password:""}`);let f=null,d=null,p=null,h=null;try{if(a){let m=o.pathname.startsWith("/")?o.pathname.slice(1):o.pathname,y=m.indexOf("@");y>-1&&(m=m.slice(y+1));let g=m.lastIndexOf("/");g>-1?(d=decodeURIComponent(m.slice(0,g)),d||(d=null),p=decodeURIComponent(m.slice(g+1))):p=decodeURIComponent(m),p.endsWith(".git")&&(p=p.slice(0,-4)),o.hash&&(f=decodeURIComponent(o.hash.slice(1))),h="shortcut"}else{if(!u.protocols.includes(o.protocol))return;let m=u.extract(o);if(!m)return;d=m.user&&decodeURIComponent(m.user),p=decodeURIComponent(m.project),f=decodeURIComponent(m.committish),h=n[o.protocol]?.name||o.protocol.slice(0,-1)}}catch(m){if(m instanceof URIError)return;throw m}return[l,d,c,p,f,h,e]}});var v_=_((e$,IE)=>{"use strict";var{LRUCache:oB}=NE(),aB=OE(),sB=DE(),lB=m_(),__=new oB({max:1e3}),Bn,Cs,Xe,st,Nr=class{constructor(e,r,n,i,o,a,s={}){Oi(this,Xe);Object.assign(this,pr(Nr,Bn)[e],{type:e,user:r,auth:n,project:i,committish:o,default:a,opts:s})}static addHost(e,r){pr(Nr,Bn)[e]=r,pr(Nr,Bn).byDomain[r.domain]=e,pr(Nr,Bn).byShortcut[`${e}:`]=e,pr(Nr,Cs)[`${e}:`]={name:e}}static fromUrl(e,r){if(typeof e!="string")return;let n=e+JSON.stringify(r||{});if(!__.has(n)){let i=sB(e,r,{gitHosts:pr(Nr,Bn),protocols:pr(Nr,Cs)});__.set(n,i?new Nr(...i):void 0)}return __.get(n)}static parseUrl(e){return lB(e)}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return tt(this,Xe,st).call(this,this.sshtemplate,e)}sshurl(e){return tt(this,Xe,st).call(this,this.sshurltemplate,e)}browse(e,...r){return typeof e!="string"?tt(this,Xe,st).call(this,this.browsetemplate,e):typeof r[0]!="string"?tt(this,Xe,st).call(this,this.browsetreetemplate,{...r[0],path:e}):tt(this,Xe,st).call(this,this.browsetreetemplate,{...r[1],fragment:r[0],path:e})}browseFile(e,...r){return typeof r[0]!="string"?tt(this,Xe,st).call(this,this.browseblobtemplate,{...r[0],path:e}):tt(this,Xe,st).call(this,this.browseblobtemplate,{...r[1],fragment:r[0],path:e})}docs(e){return tt(this,Xe,st).call(this,this.docstemplate,e)}bugs(e){return tt(this,Xe,st).call(this,this.bugstemplate,e)}https(e){return tt(this,Xe,st).call(this,this.httpstemplate,e)}git(e){return tt(this,Xe,st).call(this,this.gittemplate,e)}shortcut(e){return tt(this,Xe,st).call(this,this.shortcuttemplate,e)}path(e){return tt(this,Xe,st).call(this,this.pathtemplate,e)}tarball(e){return tt(this,Xe,st).call(this,this.tarballtemplate,{...e,noCommittish:!1})}file(e,r){return tt(this,Xe,st).call(this,this.filetemplate,{...r,path:e})}edit(e,r){return tt(this,Xe,st).call(this,this.edittemplate,{...r,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}},ko=Nr;Bn=new WeakMap,Cs=new WeakMap,Xe=new WeakSet,st=function(e,r){if(typeof e!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=e(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i},Oi(ko,Bn,{byShortcut:{},byDomain:{}}),Oi(ko,Cs,{"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}});for(let[t,e]of Object.entries(aB))ko.addHost(t,e);IE.exports=ko});var qE=_(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.Attachment=void 0;var w_=class{constructor(e,r={}){this.contentType=r.contentType,this.content=e,this.encoding=r.encoding}};Tf.Attachment=w_});var Pf=_(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.isInteger=S_;Os.isNonNegativeInteger=uB;Os.isPositiveInteger=cB;function S_(t){return Number.isInteger(t)}function uB(t){return S_(t)&&t>=0}function cB(t){return S_(t)&&t>0}});var Ls=_(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.OrganizationalContactRepository=zo.OrganizationalContact=void 0;var fB=Ot(),E_=class{constructor(e={}){this.name=e.name,this.email=e.email,this.phone=e.phone}compare(e){return(this.name??"").localeCompare(e.name??"")||(this.email??"").localeCompare(e.email??"")||(this.phone??"").localeCompare(e.phone??"")}};zo.OrganizationalContact=E_;var x_=class extends fB.SortableComparables{};zo.OrganizationalContactRepository=x_});var C_=_(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.Metadata=void 0;var dB=an(),pB=ta(),hB=Ls(),mB=$o(),_B=Vo(),N_=class{constructor(e={}){this.timestamp=e.timestamp,this.lifecycles=e.lifecycles??new pB.LifecycleRepository,this.tools=e.tools??new _B.ToolRepository,this.authors=e.authors??new hB.OrganizationalContactRepository,this.component=e.component,this.manufacture=e.manufacture,this.supplier=e.supplier,this.licenses=e.licenses??new dB.LicenseRepository,this.properties=e.properties??new mB.PropertyRepository}};Df.Metadata=N_});var BE=_(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.CweRepository=void 0;Ts.isCWE=gB;var vB=Ot(),yB=Pf();function gB(t){return(0,yB.isPositiveInteger)(t)}var A_=class extends vB.SortableNumbers{};Ts.CweRepository=A_});var T_=_(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.AdvisoryRepository=qo.Advisory=void 0;var bB=Ot(),O_=class{constructor(e,r={}){this.url=e,this.title=r.title}compare(e){return this.url.toString().localeCompare(e.url.toString())||(this.title??"").localeCompare(e.title??"")}};qo.Advisory=O_;var L_=class extends bB.SortableComparables{};qo.AdvisoryRepository=L_});var I_=_(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.RatingRepository=Bo.Rating=void 0;var wB=Ot(),P_=class{constructor(e={}){this.source=e.source,this.score=e.score,this.severity=e.severity,this.method=e.method,this.vector=e.vector,this.justification=e.justification}compare(e){return(this.score??0)-(e.score??0)||(this.vector??"").localeCompare(e.vector??"")||(this.justification??"").localeCompare(e.justification??"")||(this.severity??"").localeCompare(e.severity??"")||(this.method??"").localeCompare(e.method??"")||(this.source&&e.source?this.source.compare(e.source):0)}};Bo.Rating=P_;var D_=class extends wB.SortableComparables{};Bo.RatingRepository=D_});var R_=_(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.ReferenceRepository=jo.Reference=void 0;var SB=Ot(),F_=class{constructor(e,r){this.id=e,this.source=r}compare(e){return this.id.localeCompare(e.id)||this.source.compare(e.source)}};jo.Reference=F_;var M_=class extends SB.SortableComparables{};jo.ReferenceRepository=M_});var q_=_(Cr=>{"use strict";var EB=Cr&&Cr.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},xB=Cr&&Cr.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},If;Object.defineProperty(Cr,"__esModule",{value:!0});Cr.VulnerabilityRepository=Cr.Vulnerability=void 0;var NB=Ot(),CB=BE(),AB=Gs(),OB=$o(),LB=Vo(),TB=T_(),PB=ra(),DB=I_(),IB=R_(),k_=class{constructor(e={}){If.set(this,void 0),EB(this,If,new AB.BomRef(e.bomRef),"f"),this.id=e.id,this.source=e.source,this.references=e.references??new IB.ReferenceRepository,this.ratings=e.ratings??new DB.RatingRepository,this.cwes=e.cwes??new CB.CweRepository,this.description=e.description,this.detail=e.detail,this.recommendation=e.recommendation,this.advisories=e.advisories??new TB.AdvisoryRepository,this.created=e.created,this.published=e.published,this.updated=e.updated,this.credits=e.credits,this.tools=e.tools??new LB.ToolRepository,this.analysis=e.analysis,this.affects=e.affects??new PB.AffectRepository,this.properties=e.properties??new OB.PropertyRepository}get bomRef(){return xB(this,If,"f")}compare(e){let r=this.bomRef.compare(e.bomRef);return r!==0?r:(this.id??"").localeCompare(e.id??"")||(this.created?.getTime()??0)-(e.created?.getTime()??0)||(this.published?.getTime()??0)-(e.published?.getTime()??0)||(this.updated?.getTime()??0)-(e.updated?.getTime()??0)||this.ratings.compare(e.ratings)||this.cwes.compare(e.cwes)||(this.description??"").localeCompare(e.description??"")||(this.detail??"").localeCompare(e.detail??"")||(this.recommendation??"").localeCompare(e.recommendation??"")||(this.source&&e.source?this.source.compare(e.source):0)||this.properties.compare(e.properties)}};Cr.Vulnerability=k_;If=new WeakMap;var z_=class extends NB.SortableComparables{};Cr.VulnerabilityRepository=z_});var UE=_(jn=>{"use strict";var jE=jn&&jn.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},GE=jn&&jn.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Ff,Mf;Object.defineProperty(jn,"__esModule",{value:!0});jn.Bom=void 0;var FB=Pf(),MB=Ys(),RB=C_(),kB=q_(),B_=class{constructor(e={}){Ff.set(this,1),Mf.set(this,void 0),this.metadata=e.metadata??new RB.Metadata,this.components=e.components??new MB.ComponentRepository,this.version=e.version??this.version,this.vulnerabilities=e.vulnerabilities??new kB.VulnerabilityRepository,this.serialNumber=e.serialNumber}get version(){return jE(this,Ff,"f")}set version(e){if(!(0,FB.isPositiveInteger)(e))throw new TypeError("Not PositiveInteger");GE(this,Ff,e,"f")}get serialNumber(){return jE(this,Mf,"f")}set serialNumber(e){GE(this,Mf,e===""?void 0:e,"f")}};jn.Bom=B_;Ff=new WeakMap,Mf=new WeakMap});var $E=_(Ar=>{"use strict";var zB=Ar&&Ar.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},U_=Ar&&Ar.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Rf,j_,HE,G_,WE;Object.defineProperty(Ar,"__esModule",{value:!0});Ar.BomLinkElement=Ar.BomLinkDocument=void 0;var kf=class{constructor(e){Rf.set(this,void 0),this.value=e}set value(e){if(!this._isValid(e))throw new RangeError("invalid value");zB(this,Rf,e,"f")}get value(){return U_(this,Rf,"f")}compare(e){return this.toString().localeCompare(e.toString())}toString(){return this.value}};Rf=new WeakMap;var zf=class extends kf{static isValid(e){return typeof e=="string"&&U_(this,j_,"f",HE).test(e)}_isValid(e){return j_.isValid(e)}};Ar.BomLinkDocument=zf;j_=zf;HE={value:/^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[1-9][0-9]*$/};var qf=class extends kf{static isValid(e){return typeof e=="string"&&U_(this,G_,"f",WE).test(e)}_isValid(e){return G_.isValid(e)}};Ar.BomLinkElement=qf;G_=qf;WE={value:/^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[1-9][0-9]*#.+$/}});var V_=_(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.OrganizationalEntityRepository=Go.OrganizationalEntity=void 0;var H_=Ot(),qB=Ls(),W_=class{constructor(e={}){this.name=e.name,this.url=e.url??new Set,this.contact=e.contact??new qB.OrganizationalContactRepository}compare(e){return(this.name??"").localeCompare(e.name??"")||this.contact.compare(e.contact)||new H_.SortableStringables(this.url).compare(new H_.SortableStringables(e.url))}};Go.OrganizationalEntity=W_;var $_=class extends H_.SortableComparables{};Go.OrganizationalEntityRepository=$_});var VE=_(Gn=>{"use strict";var BB=Gn&&Gn.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},jB=Gn&&Gn.__classPrivateFieldSet||function(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r},Bf;Object.defineProperty(Gn,"__esModule",{value:!0});Gn.SWID=void 0;var GB=Pf(),X_=class{constructor(e,r,n={}){Bf.set(this,void 0),this.tagId=e,this.name=r,this.version=n.version,this.patch=n.patch,this.text=n.text,this.url=n.url,this.tagVersion=n.tagVersion}get tagVersion(){return BB(this,Bf,"f")}set tagVersion(e){if(e!==void 0&&!(0,GB.isNonNegativeInteger)(e))throw new TypeError("Not NonNegativeInteger nor undefined");jB(this,Bf,e,"f")}};Gn.SWID=X_;Bf=new WeakMap});var XE=_(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.Analysis=void 0;var UB=Od(),Y_=class{constructor(e={}){this.state=e.state,this.justification=e.justification,this.response=e.response??new UB.AnalysisResponseRepository,this.detail=e.detail}};jf.Analysis=Y_});var YE=_(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.Credits=void 0;var HB=Ls(),WB=V_(),J_=class{constructor(e={}){this.organizations=e.organizations??new WB.OrganizationalEntityRepository,this.individuals=e.individuals??new HB.OrganizationalContactRepository}};Gf.Credits=J_});var JE=_(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.Source=void 0;var K_=class{constructor(e={}){this.name=e.name,this.url=e.url}compare(e){return(this.url?.toString()??"").localeCompare(e.url?.toString()??"")||(this.name??"").localeCompare(e.name??"")}};Uf.Source=K_});var KE=_(Mt=>{"use strict";var $B=Mt&&Mt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Un=Mt&&Mt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&$B(e,t,r)};Object.defineProperty(Mt,"__esModule",{value:!0});Un(T_(),Mt);Un(ra(),Mt);Un(XE(),Mt);Un(YE(),Mt);Un(I_(),Mt);Un(R_(),Mt);Un(JE(),Mt);Un(q_(),Mt)});var QE=_(Ne=>{"use strict";var VB=Ne&&Ne.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),At=Ne&&Ne.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&VB(e,t,r)};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.Vulnerability=void 0;At(qE(),Ne);At(UE(),Ne);At($E(),Ne);At(Gs(),Ne);At(Ys(),Ne);At(Ii(),Ne);At(Wo(),Ne);At(an(),Ne);At(ta(),Ne);At(C_(),Ne);At(Ls(),Ne);At(V_(),Ne);At($o(),Ne);At(VE(),Ne);At(Vo(),Ne);Ne.Vulnerability=KE()});var ZE=_(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0});Q_.randomSerialNumber=XB;function XB(){let t=[Math.round(Math.random()*65535),Math.round(Math.random()*65535),Math.round(Math.random()*65535),Math.round(Math.random()*4095)|16384,Math.round(Math.random()*16383)|32768,Math.round(Math.random()*65535),Math.round(Math.random()*65535),Math.round(Math.random()*65535)].map(e=>e.toString(16).padStart(4,"0"));return`urn:uuid:${t[0]}${t[1]}-${t[2]}-${t[3]}-${t[4]}-${t[5]}${t[6]}${t[7]}`}});var ex=_(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.BomUtility=void 0;Hf.BomUtility=ZE()});var Z_=_((x$,tx)=>{var YB=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};tx.exports=YB});var ev=_((N$,rx)=>{var JB="2.0.0",KB=Number.MAX_SAFE_INTEGER||9007199254740991,QB=16,ZB=256-6,ej=["major","premajor","minor","preminor","patch","prepatch","prerelease"];rx.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:QB,MAX_SAFE_BUILD_LENGTH:ZB,MAX_SAFE_INTEGER:KB,RELEASE_TYPES:ej,SEMVER_SPEC_VERSION:JB,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ix=_((rn,nx)=>{var{MAX_SAFE_COMPONENT_LENGTH:tv,MAX_SAFE_BUILD_LENGTH:tj,MAX_LENGTH:rj}=ev(),nj=Z_();rn=nx.exports={};var ij=rn.re=[],oj=rn.safeRe=[],O=rn.src=[],L=rn.t={},aj=0,rv="[a-zA-Z0-9-]",sj=[["\\s",1],["\\d",rj],[rv,tj]],lj=t=>{for(let[e,r]of sj)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},W=(t,e,r)=>{let n=lj(e),i=aj++;nj(t,i,e),L[t]=i,O[i]=e,ij[i]=new RegExp(e,r?"g":void 0),oj[i]=new RegExp(n,r?"g":void 0)};W("NUMERICIDENTIFIER","0|[1-9]\\d*");W("NUMERICIDENTIFIERLOOSE","\\d+");W("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${rv}*`);W("MAINVERSION",`(${O[L.NUMERICIDENTIFIER]})\\.(${O[L.NUMERICIDENTIFIER]})\\.(${O[L.NUMERICIDENTIFIER]})`);W("MAINVERSIONLOOSE",`(${O[L.NUMERICIDENTIFIERLOOSE]})\\.(${O[L.NUMERICIDENTIFIERLOOSE]})\\.(${O[L.NUMERICIDENTIFIERLOOSE]})`);W("PRERELEASEIDENTIFIER",`(?:${O[L.NUMERICIDENTIFIER]}|${O[L.NONNUMERICIDENTIFIER]})`);W("PRERELEASEIDENTIFIERLOOSE",`(?:${O[L.NUMERICIDENTIFIERLOOSE]}|${O[L.NONNUMERICIDENTIFIER]})`);W("PRERELEASE",`(?:-(${O[L.PRERELEASEIDENTIFIER]}(?:\\.${O[L.PRERELEASEIDENTIFIER]})*))`);W("PRERELEASELOOSE",`(?:-?(${O[L.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${O[L.PRERELEASEIDENTIFIERLOOSE]})*))`);W("BUILDIDENTIFIER",`${rv}+`);W("BUILD",`(?:\\+(${O[L.BUILDIDENTIFIER]}(?:\\.${O[L.BUILDIDENTIFIER]})*))`);W("FULLPLAIN",`v?${O[L.MAINVERSION]}${O[L.PRERELEASE]}?${O[L.BUILD]}?`);W("FULL",`^${O[L.FULLPLAIN]}$`);W("LOOSEPLAIN",`[v=\\s]*${O[L.MAINVERSIONLOOSE]}${O[L.PRERELEASELOOSE]}?${O[L.BUILD]}?`);W("LOOSE",`^${O[L.LOOSEPLAIN]}$`);W("GTLT","((?:<|>)?=?)");W("XRANGEIDENTIFIERLOOSE",`${O[L.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);W("XRANGEIDENTIFIER",`${O[L.NUMERICIDENTIFIER]}|x|X|\\*`);W("XRANGEPLAIN",`[v=\\s]*(${O[L.XRANGEIDENTIFIER]})(?:\\.(${O[L.XRANGEIDENTIFIER]})(?:\\.(${O[L.XRANGEIDENTIFIER]})(?:${O[L.PRERELEASE]})?${O[L.BUILD]}?)?)?`);W("XRANGEPLAINLOOSE",`[v=\\s]*(${O[L.XRANGEIDENTIFIERLOOSE]})(?:\\.(${O[L.XRANGEIDENTIFIERLOOSE]})(?:\\.(${O[L.XRANGEIDENTIFIERLOOSE]})(?:${O[L.PRERELEASELOOSE]})?${O[L.BUILD]}?)?)?`);W("XRANGE",`^${O[L.GTLT]}\\s*${O[L.XRANGEPLAIN]}$`);W("XRANGELOOSE",`^${O[L.GTLT]}\\s*${O[L.XRANGEPLAINLOOSE]}$`);W("COERCEPLAIN",`(^|[^\\d])(\\d{1,${tv}})(?:\\.(\\d{1,${tv}}))?(?:\\.(\\d{1,${tv}}))?`);W("COERCE",`${O[L.COERCEPLAIN]}(?:$|[^\\d])`);W("COERCEFULL",O[L.COERCEPLAIN]+`(?:${O[L.PRERELEASE]})?(?:${O[L.BUILD]})?(?:$|[^\\d])`);W("COERCERTL",O[L.COERCE],!0);W("COERCERTLFULL",O[L.COERCEFULL],!0);W("LONETILDE","(?:~>?)");W("TILDETRIM",`(\\s*)${O[L.LONETILDE]}\\s+`,!0);rn.tildeTrimReplace="$1~";W("TILDE",`^${O[L.LONETILDE]}${O[L.XRANGEPLAIN]}$`);W("TILDELOOSE",`^${O[L.LONETILDE]}${O[L.XRANGEPLAINLOOSE]}$`);W("LONECARET","(?:\\^)");W("CARETTRIM",`(\\s*)${O[L.LONECARET]}\\s+`,!0);rn.caretTrimReplace="$1^";W("CARET",`^${O[L.LONECARET]}${O[L.XRANGEPLAIN]}$`);W("CARETLOOSE",`^${O[L.LONECARET]}${O[L.XRANGEPLAINLOOSE]}$`);W("COMPARATORLOOSE",`^${O[L.GTLT]}\\s*(${O[L.LOOSEPLAIN]})$|^$`);W("COMPARATOR",`^${O[L.GTLT]}\\s*(${O[L.FULLPLAIN]})$|^$`);W("COMPARATORTRIM",`(\\s*)${O[L.GTLT]}\\s*(${O[L.LOOSEPLAIN]}|${O[L.XRANGEPLAIN]})`,!0);rn.comparatorTrimReplace="$1$2$3";W("HYPHENRANGE",`^\\s*(${O[L.XRANGEPLAIN]})\\s+-\\s+(${O[L.XRANGEPLAIN]})\\s*$`);W("HYPHENRANGELOOSE",`^\\s*(${O[L.XRANGEPLAINLOOSE]})\\s+-\\s+(${O[L.XRANGEPLAINLOOSE]})\\s*$`);W("STAR","(<|>)?=?\\s*\\*");W("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");W("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ax=_((C$,ox)=>{var uj=Object.freeze({loose:!0}),cj=Object.freeze({}),fj=t=>t?typeof t!="object"?uj:t:cj;ox.exports=fj});var cx=_((A$,ux)=>{var sx=/^[0-9]+$/,lx=(t,e)=>{let r=sx.test(t),n=sx.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:tlx(e,t);ux.exports={compareIdentifiers:lx,rcompareIdentifiers:dj}});var mx=_((O$,hx)=>{var Wf=Z_(),{MAX_LENGTH:fx,MAX_SAFE_INTEGER:$f}=ev(),{safeRe:dx,t:px}=ix(),pj=ax(),{compareIdentifiers:Uo}=cx(),Ut=class{constructor(e,r){if(r=pj(r),e instanceof Ut){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>fx)throw new TypeError(`version is longer than ${fx} characters`);Wf("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?dx[px.LOOSE]:dx[px.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>$f||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$f||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$f||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let o=+i;if(o>=0&&o<$f)return o}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Wf("SemVer.compare",this.version,this.options,e),!(e instanceof Ut)){if(typeof e=="string"&&e===this.version)return 0;e=new Ut(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Ut||(e=new Ut(e,this.options)),Uo(this.major,e.major)||Uo(this.minor,e.minor)||Uo(this.patch,e.patch)}comparePre(e){if(e instanceof Ut||(e=new Ut(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(Wf("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Uo(n,i)}while(++r)}compareBuild(e){e instanceof Ut||(e=new Ut(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(Wf("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Uo(n,i)}while(++r)}inc(e,r,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let o=[r,i];n===!1&&(o=[r]),Uo(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};hx.exports=Ut});var nv=_((L$,vx)=>{var _x=mx(),hj=(t,e,r=!1)=>{if(t instanceof _x)return t;try{return new _x(t,e)}catch(n){if(!r)return null;throw n}};vx.exports=hj});var gx=_((T$,yx)=>{var mj=nv(),_j=(t,e)=>{let r=mj(t,e);return r?r.version:null};yx.exports=_j});var wx=_((P$,bx)=>{var vj=nv(),yj=(t,e)=>{let r=vj(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};bx.exports=yj});var Ex=_((D$,Sx)=>{"use strict";var gj=[].concat(ll()).concat(Pd()),bj=Dd();Sx.exports=function(t){var e=0;function r(){return e1&&t[e-2]===" ")throw new Error("Space before `+`");return h&&{type:"OPERATOR",string:h}}function a(){return n(/[A-Za-z0-9-.]+/)}function s(){var h=a();if(!h)throw new Error("Expected idstring at offset "+e);return h}function l(){if(n("DocumentRef-")){var h=s();return{type:"DOCUMENTREF",string:h}}}function u(){if(n("LicenseRef-")){var h=s();return{type:"LICENSEREF",string:h}}}function c(){var h=e,m=a();if(gj.indexOf(m)!==-1)return{type:"LICENSE",string:m};if(bj.indexOf(m)!==-1)return{type:"EXCEPTION",string:m};e=h}function f(){return o()||l()||u()||c()}for(var d=[];r()&&(i(),!!r());){var p=f();if(!p)throw new Error("Unexpected `"+t[e]+"` at offset "+e);d.push(p)}return d}});var Nx=_((I$,xx)=>{"use strict";xx.exports=function(t){var e=0;function r(){return e{"use strict";var wj=Ex(),Sj=Nx();Cx.exports=function(t){return Sj(wj(t))}});var Mx=_((M$,Fx)=>{var Ej=iv(),xj=ll();function Vf(t){try{return Ej(t),!0}catch{return!1}}function Ix(t,e){var r=e[0].length-t[0].length;return r!==0?r:t[0].toUpperCase().localeCompare(e[0].toUpperCase())}var Ax=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(Ix),Nj=0,Cj=1,Ox=[function(t){return t.toUpperCase()},function(t){return t.trim()},function(t){return t.replace(/\./g,"")},function(t){return t.replace(/\s+/g,"")},function(t){return t.replace(/\s+/g,"-")},function(t){return t.replace("v","-")},function(t){return t.replace(/,?\s*(\d)/,"-$1")},function(t){return t.replace(/,?\s*(\d)/,"-$1.0")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(t){return t[0].toUpperCase()+t.slice(1)},function(t){return t.replace("/","-")},function(t){return t.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(t){return t.indexOf("3.0")!==-1?t+"-or-later":t+"-only"},function(t){return t+"only"},function(t){return t.replace(/(\d)$/,"-$1.0")},function(t){return t.replace(/(-| )?(\d)$/,"-$2-Clause")},function(t){return t.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(t){return t.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(t){return t.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(t){return t.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(t){return t.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(t){return t.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(t){return"CC-"+t},function(t){return"CC-"+t+"-4.0"},function(t){return t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(t){return"CC-"+t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],ov=xj.map(function(t){var e=/^(.*)-\d+\.\d+$/.exec(t);return e?[e[0],e[1]]:[t,null]}).reduce(function(t,e){var r=e[1];return t[r]=t[r]||[],t[r].push(e[0]),t},{}),Aj=Object.keys(ov).map(function(e){return[e,ov[e]]}).filter(function(e){return e[1].length===1&&e[0]!==null&&e[0]!=="APL"}).map(function(e){return[e[0],e[1][0]]});ov=void 0;var Lx=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(Aj).sort(Ix),Oj=0,Lj=1,Tx=function(t){for(var e=0;e-1)return n[Lj]}return null},Dx=function(t,e){for(var r=0;r-1){var o=t.replace(i,n[Cj]),a=e(o);if(a!==null)return a}}return null};Fx.exports=function(t,e){e=e||{};var r=e.upgrade===void 0?!0:!!e.upgrade;function n(s){return r?Tj(s):s}var i=typeof t=="string"&&t.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(t=t.trim(),Vf(t))return n(t);var o=t.replace(/\+$/,"").trim();if(Vf(o))return n(o);var a=Tx(t);return a!==null||(a=Dx(t,function(s){return Vf(s)?s:Tx(s)}),a!==null)||(a=Px(t),a!==null)||(a=Dx(t,Px),a!==null)?n(a):null};function Tj(t){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(t)!==-1?t+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(t)!==-1?t.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(t)!==-1?t+"-or-later":t}});var qx=_((R$,zx)=>{var Pj=iv(),Dj=Mx(),Rx='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN "',Ij=/^SEE LICEN[CS]E IN (.+)$/;function kx(t,e){return e.slice(0,t.length)===t}function av(t){if(t.hasOwnProperty("license")){var e=t.license;return kx("LicenseRef",e)||kx("DocumentRef",e)}else return av(t.left)||av(t.right)}zx.exports=function(t){var e;try{e=Pj(t)}catch{var r;if(t==="UNLICENSED"||t==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=Ij.exec(t))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[Rx]};if(t.trim().length!==0){var i=Dj(t);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return av(e)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Rx]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var Gx=_((k$,jx)=>{"use strict";var Fj="Function.prototype.bind called on incompatible ",Mj=Object.prototype.toString,Rj=Math.max,kj="[object Function]",Bx=function(e,r){for(var n=[],i=0;i{"use strict";var Bj=Gx();Ux.exports=Function.prototype.bind||Bj});var $x=_((q$,Wx)=>{"use strict";var jj=Function.prototype.call,Gj=Object.prototype.hasOwnProperty,Uj=Hx();Wx.exports=Uj.call(jj,Gj)});var Vx=_((B$,Hj)=>{Hj.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3","node:test/mock_loader":">= 22.3","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Kx=_((j$,Jx)=>{"use strict";var Wj=$x();function $j(t,e){for(var r=t.split("."),n=e.split(" "),i=n.length>1?n[0]:"=",o=(n.length>1?n[1]:n[0]).split("."),a=0;a<3;++a){var s=parseInt(r[a]||0,10),l=parseInt(o[a]||0,10);if(s!==l)return i==="<"?s="?s>=l:!1}return i===">="}function Xx(t,e){var r=e.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n"u"?process.versions&&process.versions.node:t;if(typeof r!="string")throw new TypeError(typeof t>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var n=0;n{Qx.exports=Xj;function Xj(t){if(!t||t==="ERROR: No README data found!")return;t=t.trim().split(` `);let e=0;for(;t[e]&&t[e].trim().match(/^(#|$)/);)e++;let r=t.length,n=e+1;for(;n{Yj.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var iN=_((H$,nN)=>{var Jj=gx(),Kj=wx(),Qj=qx(),Xf=v_(),Zj=Kx(),eG=["dependencies","devDependencies","optionalDependencies"],tG=Zx(),sv=je("url"),Hn=eN(),tN=t=>t.includes("@")&&t.indexOf("@")"u"&&(e={});var r=e.strict;if(!t.name&&!r){t.name="";return}if(typeof t.name!="string")throw new Error("name field must be a string.");r||(t.name=t.name.trim()),iG(t.name,r,e.allowLegacyCase),Zj(t.name)&&this.warn("conflictingName",t.name)},fixDescriptionField:function(t){t.description&&typeof t.description!="string"&&(this.warn("nonStringDescription"),delete t.description),t.readme&&!t.description&&(t.description=tG(t.readme)),t.description===void 0&&delete t.description,t.description||this.warn("missingDescription")},fixReadmeField:function(t){t.readme||(this.warn("missingReadme"),t.readme="ERROR: No README data found!")},fixBugsField:function(t){if(!t.bugs&&t.repository&&t.repository.url){var e=Xf.fromUrl(t.repository.url);e&&e.bugs()&&(t.bugs={url:e.bugs()})}else if(t.bugs){if(typeof t.bugs=="string")tN(t.bugs)?t.bugs={email:t.bugs}:sv.parse(t.bugs).protocol?t.bugs={url:t.bugs}:this.warn("nonEmailUrlBugsString");else{cG(t.bugs,this.warn);var r=t.bugs;t.bugs={},r.url&&(typeof r.url=="string"&&sv.parse(r.url).protocol?t.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&tN(r.email)?t.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!t.bugs.email&&!t.bugs.url&&(delete t.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(t){if(!t.homepage&&t.repository&&t.repository.url){var e=Xf.fromUrl(t.repository.url);e&&e.docs()&&(t.homepage=e.docs())}if(!!t.homepage){if(typeof t.homepage!="string")return this.warn("nonUrlHomepage"),delete t.homepage;sv.parse(t.homepage).protocol||(t.homepage="http://"+t.homepage)}},fixLicenseField:function(t){let e=t.license||t.licence;if(!e)return this.warn("missingLicense");if(typeof e!="string"||e.length<1||e.trim()==="")return this.warn("invalidLicense");if(!Qj(e).validForNewPackages)return this.warn("invalidLicense")}};function rG(t){if(t.charAt(0)!=="@")return!1;var e=t.slice(1).split("/");return e.length!==2?!1:e[0]&&e[1]&&e[0]===encodeURIComponent(e[0])&&e[1]===encodeURIComponent(e[1])}function nG(t){return!t.match(/[/@\s+%:]/)&&t===encodeURIComponent(t)}function iG(t,e,r){if(t.charAt(0)==="."||!(rG(t)||nG(t))||e&&!r&&t!==t.toLowerCase()||t.toLowerCase()==="node_modules"||t.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(t))}function rN(t,e){return t.author&&(t.author=e(t.author)),["maintainers","contributors"].forEach(function(r){!Array.isArray(t[r])||(t[r]=t[r].map(e))}),t}function oG(t){if(typeof t=="string")return t;var e=t.name||"",r=t.url||t.web,n=r?" ("+r+")":"",i=t.email||t.mail,o=i?" <"+i+">":"";return e+o+n}function aG(t){if(typeof t!="string")return t;var e=t.match(/^([^(<]+)/),r=t.match(/\(([^()]+)\)/),n=t.match(/<([^<>]+)>/),i={};return e&&e[0].trim()&&(i.name=e[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function sG(t){var e=t.optionalDependencies;if(!!e){var r=t.dependencies||{};Object.keys(e).forEach(function(n){r[n]=e[n]}),t.dependencies=r}}function lG(t,e,r){if(!t)return{};if(typeof t=="string"&&(t=t.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(t))return t;r("deprecatedArrayDependencies",e);var n={};return t.filter(function(i){return typeof i=="string"}).forEach(function(i){i=i.trim().split(/(:?[@\s><=])/);var o=i.shift(),a=i.join("");a=a.trim(),a=a.replace(/^@/,""),n[o]=a}),n}function uG(t,e){eG.forEach(function(r){!t[r]||(t[r]=lG(t[r],r,e))})}function cG(t,e){!t||Object.keys(t).forEach(function(r){Hn.bugs[r]&&(e("typo",r,Hn.bugs[r],"bugs"),t[Hn.bugs[r]]=t[r],delete t[r])})}});var oN=_((W$,fG)=>{fG.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var lN=_(($$,sN)=>{var aN=je("util"),lv=oN();sN.exports=function(){var t=Array.prototype.slice.call(arguments,0),e=t.shift();if(e==="typo")return dG.apply(null,t);var r=lv[e]?lv[e]:e+": '%s'";return t.unshift(r),aN.format.apply(null,t)};function dG(t,e,r){return r&&(t=r+"['"+t+"']",e=r+"['"+e+"']"),aN.format(lv.typo,t,e)}});var dN=_((V$,fN)=>{fN.exports=uN;var uv=iN();uN.fixer=uv;var pG=lN(),hG=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],mG=["dependencies","people","typos"],cv=hG.map(function(t){return cN(t)+"Field"});cv=cv.concat(mG);function uN(t,e,r){e===!0&&(e=null,r=!0),r||(r=!1),(!e||t.private)&&(e=function(){}),t.scripts&&t.scripts.install==="node-gyp rebuild"&&!t.scripts.preinstall&&(t.gypfile=!0),uv.warn=function(){e(pG.apply(null,arguments))},cv.forEach(function(n){uv["fix"+cN(n)](t,r)}),t._id=t.name+"@"+t.version}function cN(t){return t.charAt(0).toUpperCase()+t.slice(1)}});var yG={};NN(yG,{default:()=>vG});var gN=je("@yarnpkg/cli");async function zs(){return(await Promise.resolve().then(()=>tr(vv()))).default}var mv=tr(Pv()),Ps=tr(Td()),Is=tr(Sy()),Wn=tr(vE()),Fs=tr(bE()),Kf=je("@yarnpkg/core"),Ms=je("@yarnpkg/fslib"),Lr=je("clipanion"),yN=je("typanion");var FE=je("@yarnpkg/fslib"),ME=tr(v_());async function RE(t,e){let r=Buffer.from(e),n=r.byteLength,i=0;for(;isetTimeout(a,100))}return i}function y_(t){return typeof t=="string"}function g_(t){try{let e=new URL(t);return e.password="",e.toString()}catch{return t}}function kE(t){let e=ME.default.fromUrl(t);return e===void 0?t:(e.auth=void 0,e.toString())}var b_=je("@yarnpkg/core");var As=b_.YarnVersion===null?null:Object.freeze(b_.YarnVersion.split(".").map(Number));function zE(t){return t.anchoredPackage??t.project.storedPackages.get(t.anchoredLocator.locatorHash)}var nn=tr(Td()),er=tr(QE()),pN=tr(ex()),Or=je("@yarnpkg/core"),hN=je("@yarnpkg/fslib"),mN=je("@yarnpkg/plugin-git"),_N=tr(dN());var Yf=class{constructor(e,r,n,i,o){this.toolBuilder=e,this.componentBuilder=r,this.purlFactory=n,this.omitDevDependencies=i.omitDevDependencies??!1,this.metaComponentType=i.metaComponentType??nn.ComponentType.Application,this.reproducible=i.reproducible??!1,this.shortPURLs=i.shortPURLs??!1,this.console=o}async buildFromWorkspace(e){let r=await this.makeManifestFetcher(e.project),n=function(s){s.acknowledgement=nn.LicenseAcknowledgement.Declared},i=this.makeComponentFromWorkspace(e,this.metaComponentType)||new Jf(this.metaComponentType,"RootComponent");i.licenses.forEach(n);let o=new er.Bom;o.metadata.component=i;for await(let s of this.makeTools())o.metadata.tools.add(s);this.reproducible?o.metadata.properties.add(new er.Property("cdx:reproducible","true")):(o.serialNumber=pN.BomUtility.randomSerialNumber(),o.metadata.timestamp=new Date);let a=zE(e);if(this.omitDevDependencies)for(let s of e.manifest.devDependencies.keys())a.dependencies.delete(s);for await(let s of this.gatherDependencies(i,a,e.project,r))s.licenses.forEach(n),this.console.info("INFO | add component for %s/%s@%s",s.group??"-",s.name,s.version??"-"),o.components.add(s);return o}makeComponentFromWorkspace(e,r){return this.makeComponent(e.anchoredLocator,e.manifest.raw,r)}async makeManifestFetcher(e){let r=e.configuration.makeFetcher(),n={project:e,fetcher:r,cache:await Or.Cache.find(e.configuration),checksums:e.storedChecksums,report:new Or.ThrowReport,cacheOptions:{skipIntegrityCheck:!0}};return async function(i){let{packageFs:o,prefixPath:a,releaseFs:s}=await r.fetch(i,n);try{let l=hN.ppath.join(a,"package.json");return JSON.parse(await o.readFilePromise(l,"utf8"))}finally{s!==void 0&&s()}}}async makeComponentFromPackage(e,r,n){let i=await r(e);return i.name=e.scope?`@${e.scope}/${e.name}`:e.name,i.version=e.version,this.makeComponent(e,i,n)}makeComponent(e,r,n){let i=_G(r);(0,_N.default)(i),y_(r.version)&&(i.version=r.version.trim());let o=this.componentBuilder.makeComponent(i,n);if(o===void 0){this.console.debug("DEBUG | skip broken component: %j",e);return}switch(!0){case e.reference.startsWith("workspace:"):break;case e.reference.startsWith("npm:"):{let{params:a}=Or.structUtils.parseRange(e.reference);a!==null&&y_(a.__archiveUrl)&&o.externalReferences.add(new er.ExternalReference(g_(a.__archiveUrl),nn.ExternalReferenceType.Distribution,{comment:'as detected from YarnLocator property "reference::__archiveUrl"'}));break}case mN.gitUtils.isGitUrl(e.reference):{o.externalReferences.add(new er.ExternalReference(kE(e.reference),nn.ExternalReferenceType.VCS,{comment:'as detected from YarnLocator property "reference"'}));break}case(e.reference.startsWith("http:")||e.reference.startsWith("https:")):{o.externalReferences.add(new er.ExternalReference(g_(e.reference),nn.ExternalReferenceType.Distribution,{comment:'as detected from YarnLocator property "reference"'}));break}case e.reference.startsWith("link:"):break;case e.reference.startsWith("portal:"):break;case e.reference.startsWith("file:"):break}return o.purl=this.makePurl(o),o.bomRef.value=Or.structUtils.prettyLocatorNoColors(e),o}makePurl(e){let r=this.purlFactory.makeFromComponent(e,this.reproducible);if(r!==void 0)return this.shortPURLs&&(r.qualifiers=void 0,r.subpath=void 0),r}async*makeTools(){yield new er.Tool({name:"yarn",version:Or.YarnVersion??"UNKNOWN"});for(let e of Object.values(await zs())){let r=this.toolBuilder.makeTool(e);r!==void 0&&(yield r)}}*getDeps(e,r){for(let n of e.dependencies.values()){let i=r.storedResolutions.get(n.descriptorHash);if(typeof i>"u")throw new Error(`missing depRes for : ${n.descriptorHash}`);let o=r.storedPackages.get(i);if(typeof o>"u")throw new Error(`missing depPackage for depRes: ${i}`);yield o}}async*gatherDependencies(e,r,n,i){let o=new Map([[r.locatorHash,e]]),a=[[r,e]],s;for(;(s=a.pop())!==void 0;){let[l,u]=s;for(let c of this.getDeps(l,n)){let f=o.get(c.locatorHash);if(f===void 0){let d=Or.structUtils.prettyLocatorNoColors(c),p=await this.makeComponentFromPackage(c,i);if(p===!1){this.console.debug("DEBUG | skip impossible component %j",d);continue}p===void 0?(f=new Jf(nn.ComponentType.Library,`InterferedDependency.${d}`),this.console.warn("WARN | InterferedDependency %j",d)):(f=p,this.console.debug("DEBUG | built component %j: %j",d,f)),yield f,o.set(c.locatorHash,f),a.push([c,f])}u.dependencies.add(f.bomRef)}}}},Jf=class extends er.Component{constructor(e,r){super(e,`DummyComponent.${r}`,{bomRef:`DummyComponent.${r}`,description:`This is a dummy component "${r}" that fills the gap where the actual built failed.`})}},_G=typeof structuredClone=="function"?structuredClone:function(t){return JSON.parse(JSON.stringify(t))};function fv(){}function vN(t,e){let r=new console.Console(e.stderr,e.stderr);return t<3&&(r.debug=fv,t<2&&(r.info=fv,t<1&&(r.log=fv))),r}var dv="-";var pv=Object.freeze({SUCCESS:0,FAILURE:1,INVALID:2});function hv(t,e,r,n){return Lr.Option.String(t,r,{description:`${n} (choices: ${e.join(", ")}, default: ${r})`,validator:(0,yN.isEnum)(e)})}var Ds=class extends Lr.Command{constructor(){super(...arguments);this.specVersion=hv("--spec-version",Object.keys(Fs.SpecVersionDict).sort(),Fs.Version.v1dot5,"Which version of CycloneDX to use.");this.outputFormat=hv("--output-format",["JSON","XML"],"JSON","Which output format to use.");this.outputFile=Lr.Option.String("--output-file",dv,{description:`Path to the output file. Set to "${dv}" to write to STDOUT. (default: write to STDOUT)`});this.production=Lr.Option.Boolean("--production,--prod",process.env.NODE_ENV==="production",{description:`Exclude development dependencies. (default: true if the NODE_ENV environment variable is set to "production", otherwise false)`});this.mcType=hv("--mc-type",[Ps.ComponentType.Application,Ps.ComponentType.Library,Ps.ComponentType.Firmware],Ps.ComponentType.Application,"Type of the main component.");this.shortPURLs=Lr.Option.Boolean("--short-PURLs",!1,{description:`Omit all qualifiers from PackageURLs. This causes information loss in trade-off shorter PURLs, which might improve ingesting these strings.`});this.outputReproducible=Lr.Option.Boolean("--output-reproducible",!1,{description:`Whether to go the extra mile and make the output reproducible. This might result in loss of time- and random-based values.`});this.verbosity=Lr.Option.Counter("--verbose,-v",1,{description:`Increase the verbosity of messages. Use multiple times to increase the verbosity even more.`})}async execute(){if(As!==null&&As[0]<3)return console.error("Error: expected yarn version >= 3 - got",As),pv.INVALID;let r=this.context.cwd,n=vN(this.verbosity,this.context);n.debug("DEBUG | YARN_VERSION:",As),n.debug("DEBUG | options: %j",{specVersion:this.specVersion,outputFormat:this.outputFormat,outputFile:this.outputFile,production:this.production,mcType:this.mcType,shortPURLs:this.shortPURLs,outputReproducible:this.outputReproducible,verbosity:this.verbosity,projectDir:r}),n.info("INFO | gathering project & workspace ...");let{project:i,workspace:o}=await Kf.Project.find(await Kf.Configuration.find(r,this.context.plugins),r);if(o===null)throw new Error(`missing workspace for project ${i.cwd} in ${r}`);n.debug("DEBUG | project:",i.cwd),n.debug("DEBUG | workspace:",o.cwd),await o.project.restoreInstallState();let a=new Is.FromNodePackageJson.ExternalReferenceFactory;n.log("LOG | gathering BOM data ...");let s=await new Yf(new mv.FromNodePackageJson.ToolBuilder(a),new mv.FromNodePackageJson.ComponentBuilder(a,new Is.LicenseFactory),new Is.FromNodePackageJson.PackageUrlFactory("npm"),{omitDevDependencies:this.production,metaComponentType:this.mcType,reproducible:this.outputReproducible,shortPURLs:this.shortPURLs},n).buildFromWorkspace(o),l=Fs.SpecVersionDict[this.specVersion];if(l===void 0)throw new Error("unsupported spec-version");let u;switch(this.outputFormat){case"XML":u=new Wn.XmlSerializer(new Wn.XML.Normalize.Factory(l));break;case"JSON":u=new Wn.JsonSerializer(new Wn.JSON.Normalize.Factory(l));break}n.log("LOG | serializing BOM ...");let c=u.serialize(s,{sortLists:this.outputReproducible,space:2});n.log("LOG | writing BOM to: %s",this.outputFile);let f=await RE(this.outputFile===dv?process.stdout.fd:Ms.xfs.openSync(Ms.npath.toPortablePath(Ms.npath.resolve(process.cwd(),this.outputFile)),"w"),c);return n.info("INFO | wrote %d bytes to: %s",f,this.outputFile),f>0?pv.SUCCESS:pv.FAILURE}};Ds.usage=Lr.Command.Usage({description:"Generates CycloneDX SBOM for current workspace.",details:"Recursively scan workspace dependencies and emits them as Software-Bill-of-Materials(SBOM) in CycloneDX format."});var Rs=class extends Ds{};Rs.paths=[["cyclonedx"],["CycloneDX","make-sbom"],["sbom"]];var Qf=class extends gN.BaseCommand{async execute(){let{self:{name:e,version:r}}=await zs();this.context.stdout.write(`${e} v${r} `)}};Qf.paths=Rs.paths.map(e=>[...e,"--version"]);var vG={commands:[Rs,Qf]};return CN(yG);})(); /*! Copyright (c) the purl authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*! This file is part of CycloneDX JavaScript Library. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. SPDX-License-Identifier: Apache-2.0 Copyright (c) OWASP Foundation. All Rights Reserved. */ /*! This file is part of CycloneDX SBOM plugin for yarn. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. SPDX-License-Identifier: Apache-2.0 Copyright (c) OWASP Foundation. All Rights Reserved. */ return plugin; } };